mirror of
https://github.com/jberkel/sms-backup-plus.git
synced 2026-04-25 17:05:59 +03:00
[GH-ISSUE #389] Android KitKat (hangouts) support #326
Labels
No labels
AM+RCS
FAQ
awaiting response
backup
bespoke
bug
calendar
call log
cannot reproduce
cloudless
device-specific
documentation
dual- & multi-SIM
duplicate
feature-request
fixed in beta
good first issue
half-missing
help wanted
helpful
meta
misattribution
mms
other message sources
pull-request
question
rejuvenation
restore
schedule
security
stale
task
thanks
v1.5.1
v1.5.10
v1.5.11
v1.5.2
v1.5.3
v1.5.3
v1.5.4
v1.5.4
v1.5.5
v1.5.5
v1.5.6
v1.5.7
v1.5.8
v1.5.9
v1.6β
xoauth
~$ bounty $~
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/sms-backup-plus-jberkel#326
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @abrown1982 on GitHub (Nov 5, 2013).
Original GitHub issue: https://github.com/jberkel/sms-backup-plus/issues/389
As the new version of android has no SMS app but its all merged into a single Hangouts app, are there plans to support restoring to this?
@jamgregory commented on GitHub (Nov 5, 2013):
@abrown1982 - as far as I can tell, SMS Backup+ works with Hangouts SMS "out of the box". I've got 1.5.5 on my Nexus 5, and it's been backing up my SMSes without needing any other config than the usual one :)
@abrown1982 commented on GitHub (Nov 5, 2013):
The backing up seems to be working fine, but I ran a restore which says it succeeded but none of the restored messages seem to be showing in the Hangouts, so I assumed it wasn't compatible.
@abrown1982 commented on GitHub (Nov 5, 2013):
Ran a few tests, backup seems fine, restore says it works but nothing shows in the Hangouts app.
@jamgregory commented on GitHub (Nov 5, 2013):
Ah, sorry @abrown1982 - I hadn't realised you were talking about restoring specifically.
@jberkel commented on GitHub (Nov 5, 2013):
restoring is being worked on as part of #388
@viper31 commented on GitHub (Nov 5, 2013):
Same issue here : restore problem due to Android KitKat SMS API change
@maaxxxx commented on GitHub (Nov 8, 2013):
Same issue here.
@wheelerruss commented on GitHub (Nov 10, 2013):
Same issue. Do we have any rough eta on the release? It looks like @beverloo has done the work?
Thanks
@jberkel commented on GitHub (Nov 14, 2013):
@wheelerruss there are few things left to do - i'm hoping to be able to release a new version some point next week.
@wheelerruss commented on GitHub (Nov 14, 2013):
@jberkel Brilliant. I'm holding off really using my Nexus 5 at the moment until I get all my texts etc on there...I don't know why I am, I just am! haha....
@IGBmart commented on GitHub (Nov 17, 2013):
It's the same for me. But now after I read this post I will use it :)
I am a big fan oft this App, and I am glad to see, that the problems and questions does not get ignored.
@jberkel commented on GitHub (Nov 24, 2013):
i also pushed out a new beta (version code 1536) with kitkat fixes, please help to test this.
how to get the beta:
https://github.com/jberkel/sms-backup-plus#beta
after installing the beta make sure it mentions kitkat in the "about" section.
@TobberH commented on GitHub (Nov 26, 2013):
Seems like the beta version does a full restore but you still get no old SMS texts in the Hangout app. If there is anything I can do to help test a new version please tell me! I really want to get my SMS history back! :)
@TobberH commented on GitHub (Nov 26, 2013):
OK, small update.. I've tried to install another SMS app (GO SMS Pro) and that actually shows me all my old SMS messages, so it's the Hangouts app that is not working/updating properly I guess!
@jberkel commented on GitHub (Nov 26, 2013):
ok, interesting. any idea @beverloo ?
@jberkel commented on GitHub (Nov 26, 2013):
i guess hangout uses separate storage, or has some extra flags. not sure if this is documented anywhere
@TobberH commented on GitHub (Nov 26, 2013):
Update! Setting the other app as Default SMS and the opening Hangouts again and letting it take over SMS again actually made it update, so now I have all my SMS in Hangouts! YAY!
@TobberH commented on GitHub (Nov 26, 2013):
I guess it could be because SMS Backup Plus sets the Hangouts app as default instead of letting it figure it out by itself? Anyway it's something that should be possible to fix somehow...
@RoadXY commented on GitHub (Nov 26, 2013):
Indeed, was having the same problem. Checked by using the work around suggested above.
Setting messaging app as default, all my messages appeared (which have been restored several weeks ago). Setting Hangouts as default after that and now all my messages appear in Hangouts without intervention of SMS Backup+.
Thanks for the great app anyway!
@Gappa commented on GitHub (Nov 28, 2013):
Yup, had the same problem. The solution that TobberH/RoadXY mention helped me to get the restored messages to show in Hangouts.
@stefanhoth commented on GitHub (Dec 7, 2013):
I just found this info. I guess it's the better solution for restoring sms on KitKat onwards http://www.androidpolice.com/2013/12/06/non-default-sms-apps-in-kitkat-can-still-write-to-the-sms-database-using-a-switch-in-app-ops-no-root-required/
@jberkel commented on GitHub (Dec 7, 2013):
@stefanhoth thanks for the info, will have a look
@jberkel commented on GitHub (Dec 8, 2013):
i have implemented @stefanhoth's suggestion:
github.com/jberkel/sms-backup-plus@037756fdbfi also pushed a new beta with this code, let me know if it works for you.
@stefanhoth commented on GitHub (Dec 8, 2013):
I'm currently running a restore on my old N4 (with KitKat) and it seems to run fine. But it will take a while and I will only update the ticket again if I run into problems (which I don't expect).
One suggestion for the process: It's a rather technical text and it might help to show the steps in 3 Screenshots with a Next - button rather than just a text. For me personally it was OK but then again I knew what I was looking for. ;-)
Thank you for implementing it so fast!
@mathbouq commented on GitHub (Dec 13, 2013):
As reported on the Google+ page, with the withdrawal of App ops in Android 4.4.2, restore fails on that version of Android. Even the first workaround posted on this thread (set another default sms app, restore, then switch back to hangout) fails: upon restoration, it looks like sms are restored but empty, which finally ends up in no conversation displayed in the sms app (tried with GO SMS Pro and with ChompSMS).
All of this was done on Android 4.4.2 (Nexus 5) with SMS Backup Plus 1.5.6-beta
@ptepper commented on GitHub (Dec 14, 2013):
Hi. I'm on the beta, just installed on KitKat, Nexus 5. When I try to restore I get "SMS write permission required", I click OK and the app crashes. It says "Unfortunately settings has stopped" and gives the option to send a report to Google.
@jberkel commented on GitHub (Dec 14, 2013):
great, google pulled App ops shortly after i implemented this :/ . i hope they'll bring it back at some point, since i don't really like the other solution (changing the default app).
@RoadXY commented on GitHub (Dec 14, 2013):
Changing the default app is the suggested way though:
http://android-developers.blogspot.nl/2013/10/getting-your-sms-apps-ready-for-kitkat.html?m=1
Quote:
Advice for SMS backup & restore apps
Because the ability to write to the SMS Provider is restricted to the app the user selects as the default SMS app, any existing app designed purely to backup and restore SMS messages will currently be unable to restore SMS messages on Android 4.4. An app that backs up and restores SMS messages must also be set as the default SMS app so that it can write messages in the SMS Provider. However, if the app does not also send and receive SMS messages, then it should not remain set as the default SMS app. So, you can provide a functional user experience with the following design when the user opens your app to initiate a one-time restore operation:
Query the current default SMS app's package name and save it.
String defaultSmsApp = Telephony.Sms.getDefaultSmsPackage(context);
Request the user change the default SMS app to your app in order to restore SMS messages (you must be the default SMS app in order to write to the SMS Provider).
Intent intent = new Intent(context, Sms.Intents.ACTION_CHANGE_DEFAULT);
intent.putExtra(Sms.Intents.EXTRA_PACKAGE_NAME, context.getPackageName());
startActivity(intent);
When you finish restoring all SMS messages, request the user to change the default SMS app back to the previously selected app (saved during step 1).
Intent intent = new Intent(context, Sms.Intents.ACTION_CHANGE_DEFAULT);
intent.putExtra(Sms.Intents.EXTRA_PACKAGE_NAME, defaultSmsApp);
startActivity(intent);
@jberkel commented on GitHub (Dec 15, 2013):
yes, i guess i have to revert back to the previous fix. very inelegant solution though.
@artgon commented on GitHub (Dec 16, 2013):
+1 looking forward to this fix
@smarek commented on GitHub (Dec 23, 2013):
@stefanhoth your solution stopped working with 4.4.2 update, stacktrace below:
@RoadXY commented on GitHub (Dec 23, 2013):
App Opps is indeed removed and tucked away more.
@Tuinslak commented on GitHub (Jan 7, 2014):
Any update on this ? Looks like it's still not working ?
@unsound commented on GitHub (Jan 11, 2014):
We desperately need an update to the beta, reverting to the dirty way of setting SMS Backup + as default SMS app... it's non-functional on Android 4.4.2 since App Ops is gone.
@martimlobao commented on GitHub (Jan 17, 2014):
@jberkel what's the status on KitKat compatibility? Is it just a case of reverting to the previous version? If so, would it be possible for the update to get pushed to the beta channel (even pushing it to the stable version seems fine, imo)?
It's clear that Google doesn't want apps to rely on App Ops to implement standard functionality, especially since it is little more than a hack at this point. It's probably preferable to use the documented and recommended method of switching the default SMS app.
@jberkel commented on GitHub (Jan 17, 2014):
@martimlobao yes. i think i'll have to bring the old way of switching SMS apps back.
@nk222 commented on GitHub (Feb 5, 2014):
Any chance for an updated beta with the previously working solution anytime soon? My wife really wants her text messages back :)
@mloraditch commented on GitHub (Feb 10, 2014):
+1. Just got my KitKat Update for the 1 and I keep all my old SMS.
@rah-phi commented on GitHub (Feb 13, 2014):
for the temporary fix, app ops for 4.4.2 is back as an xposed module:
https://github.com/jclehner/AppOpsXposed
@jberkel commented on GitHub (Nov 21, 2014):
dup of #475
@smarek commented on GitHub (Nov 21, 2014):
@jberkel shouldn't newer issues be closed as duplicates of older ones?
@jberkel commented on GitHub (Nov 21, 2014):
in theory yes, in practice the open issues in this project are getting out of control. sorry!
@smarek commented on GitHub (Nov 21, 2014):
@jberkel it's ok, i'm just curious, thanks for your service