mirror of
https://github.com/jberkel/sms-backup-plus.git
synced 2026-04-25 17:05:59 +03:00
[GH-ISSUE #554] Gmail doesn't support XOAUTH anymore #469
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#469
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 @mtomana on GitHub (May 7, 2015).
Original GitHub issue: https://github.com/jberkel/sms-backup-plus/issues/554
"Server does not support XOAUTH".
Google turned off XOAUTH. Only XOAUTH2 is now supported.
Detailt: https://developers.google.com/gmail/xoauth_migration
@jberkel commented on GitHub (May 7, 2015):
Thanks for the info. I'll try to get an update out soon.
@opello commented on GitHub (May 7, 2015):
I ran in to this yesterday and "disconnecting" (and then removing the authorization) and "reconnecting" to my GMail account seemed to fix things. I saved a debug log before and after and saw the change from XOAUTH to XOAUTH2. This was all using version 1.5.8.
@mtomana commented on GitHub (May 7, 2015):
Yep, I have to confirm that it works, just like opello said :) But how is it possible? Is this just a workaround?
@opello commented on GitHub (May 7, 2015):
It seems like this is the announcement that says May 5 was the end of support for XOAUTH. The next time this might come up seems to be if/when XOAUTH2 goes away in favor of something more standardized.
Here is a log comparison of the two attempts.
@jberkel commented on GitHub (May 7, 2015):
I just checked the app, it actually does already support XOAuth2, however if you connect using the web flow it will still use XOAuth1. When authenticating using Android's AccountManager XOAuth2 is used. @opello maybe you still had an old token stored.
@opello commented on GitHub (May 7, 2015):
@jberkel Very likely, I'm going on a few years with this phone and install. @mtomana probably was in the same situation. I only checked for issues after resolving it and wondering if it was reasonable to think I should have been prompted to upgrade tokens. :)
@jberkel commented on GitHub (May 7, 2015):
ok, so there will only be a problem for people who have an old token stored and for some reason can't use the android account manager. then there's also a big group of people who don't check the app (because it's running in the background) so it might make sense to release an update which automatically migrates old tokens.
@phireman481 commented on GitHub (May 8, 2015):
I'm completely illiterate when it comes to these things...that is why I donate to the developers. You guys do amazing work. Is there a timeframe for the update to fix the problem? I hate not having this backup to my Gmail.
@jberkel commented on GitHub (May 8, 2015):
@phireman481 does the disconnect / reconnect trick @opello mentioned not work for you?
@phireman481 commented on GitHub (May 8, 2015):
@jberkel I honestly have no idea how to do that
@opello commented on GitHub (May 8, 2015):
@phireman481 Open SMS Backup+, uncheck "Connect," then follow these steps to revoke the auth token. Once that's all done go back to SMS Backup+ and check "Connect" again, basically follow these steps.
The major down side to this approach is items that were added between the last successful sync and the first new sync will be lost. At least that's my understanding -- because I believe if you back up everything again you will have duplicates. But I might be wrong on this point.
@phireman481 commented on GitHub (May 8, 2015):
@opello Got it. Works perfectly again. Thanks so much for all the help.
@ealprr commented on GitHub (May 10, 2015):
As mentioned, following @opello method will force a full sync of all events.
That should not be a problem for call and sms/mms log in Gmail because Gmail automatically delete duplicate messages (at least, in my case, I did not have duplicate logs).
However for calendar call log, it will duplicate events.
Here is a solution I used to clean my calendar:
fromDate,toDateandcalendarName. Ensure thatdelete_duplicateis set to false.Google Calendar tool).processCalendarfunction and run it ; allow Calendar access if asked.View > Logs(ctrl+return) to validate parameters choosed in step 3.delete_duplicateto true and re-runprocessCalendar[1]: Google AppScript:
@haridsv commented on GitHub (May 10, 2015):
@ealprr are you sure that we will not end up with duplicates if we choose to backup sms and call log again? I had this broken for the last 3 days so I don't want to choose skip unless the other option causes duplicates. I am guessing that the dedupe (if at all it is working) would be done by SMS Backup + itself and not by gmail.
@ealprr commented on GitHub (May 10, 2015):
I am sure that Gmail delete duplicate messages.
Otherwise you would end up with duplicate messages when you send an email to a mailing-list which you suscribed (or any other way of receiving the same message several times.)
There is also the way Gmail expose labels though smtp which is folder: to apply labels to an email you need to copy/move the message in the desired folders. Hopefully, you do not duplicate the message for each label.
Finally, I recently did a full sync with SMS Backup+ with about 6k messages already synchronized and did not find duplicate.
However, you need to ensure to use the same
Email address stylein settings.@haridsv commented on GitHub (May 11, 2015):
Thanks @ealprr, appreciate your clarification.
@ctash commented on GitHub (May 14, 2015):
Thanks @opello! Those steps worked, I did have to do a full backup, as noted by @ealprr, but since I just unchecked and rechecked "connect", all my settings should be the same (which hopefully means no duplicates).
@kflaming1 commented on GitHub (May 15, 2015):
I have SMS Backup+ running in the background so I had hundreds of messages that weren't backed up by the time I noticed "Server does not support XOAUTH".
Here's what I've done:
I turned on access for less secure apps in Google Mail.
I turned on plain text authorization in SMS Backup+.
I filled in my email address and password .
I started a manual backup In SMS Backup+.
SMS Backup+ successfully logged in and backed up several hundred new messages including the call log.
I re-enabled XOAuth authorization in SMS Backup+.
I turned off access for less secure apps in Google Mail.
I disconnected and reconnected my Gmail account in SMS Backup+.
I skipped the initial backup because everything was now current.
I chose this approach to back up the items that were added between the last successful sync and the first new sync while avoiding the chance of any duplication.
I'm just hoping the disconnect/reconnect cleared out any old auth tokens because I'm not exactly sure on the procedure for doing that if it doesn't happen automatically.
@jseideman commented on GitHub (May 18, 2015):
hi there--
amazing app. one of my favorites, and the one i send everyone to when they get a new phone.
now...this pesky XOAuth thing. my phone is older (DROID X running android 2.3.4) and therefore i cannot use the android account manager (unless i can??). I updated to 1.5.8 today (because of the android 2.x compatibility fixes) but i am still getting the XOAuth authorization error (and yes, IMAP is enabled in my gmail). Will there be a release that will also migrate the auth tokens? I would rather not have to disconnect from my account and lose my sync history if possible, and as I have an older phone, wont i still have to go through the web interface to authorize?
thanks!
@jberkel commented on GitHub (May 18, 2015):
@jseideman yes it will happen, don't want to promise any exact dates though!
@jseideman commented on GitHub (May 18, 2015):
That's great! I know you said earlier in his thread that it may happen...I
was curious if it had made the leap from 'maybe' to 'yes it will happen'
Thanks!
On May 18, 2015 1:04 PM, "Jan Berkel" notifications@github.com wrote:
@haridsv commented on GitHub (May 22, 2015):
Right now, the only two options are to skip all or backup everything. With thousands of SMS on my phone, I dread having to backup all (even though it doesn't seem to cause any duplicates), so I am experimenting with adding a setting to specify a date from which to backup the messages. I noticed that in the code, it uses
-1as the lower bound for the epoch timestamp initially, so I modified it to use a user specified preference. It seems to work nicely, except for a small issue with saving the preference (you may have to have to try multiple times to save the preference). Would anybody like to try it out and send me feedback? You can build it from my fork here:https://github.com/haridsv/sms-backup-plus
For your convenience, I also created a binary release:
https://github.com/haridsv/sms-backup-plus/releases/tag/1.5.9-BETA4-HARI
I still have to figure out how to create resources for this preference, but it is hardcoded to show in English. The preference is at "Advanced Settings > Backup Settings > Backup Since Date".
@opello commented on GitHub (May 22, 2015):
@haridsv I had considered this approach as well, wondering if I could use adb and sqlite3 (or something else) to manually reset the "last sync" date. I didn't pursue it as far as you because I only looking at losing 2 phone calls.
What I actually ended up doing was deleting all of my SMS and MMS messages and allowing sms-backup-plus to restore them. This took quite a while, but resulted in no lost data as far as I can tell.
Maybe some instructions for changing this wherever it persists would be a good manual solution for those facing this problem?
@haridsv commented on GitHub (May 23, 2015):
@opello I am a little paranoid in that sense. I lost about 5 days of sms and call log as I chose to skip all, probably not a big deal, but I wanted to get my hands dirty and I had a bit of time too. If I can get some feedback, then I could try to create a PR.
@Smsbackup commented on GitHub (May 28, 2015):
in 5/5/2015 my apps error by "Server does not support XOAUTH". for replace, i switching to plain text authentication but apps can't backup automatically, it just succeed in manual: fill all blank such as imap address,user nam/password anh click backup each time i login my apps. Who know why? help me, i want it auto.
@opello commented on GitHub (May 28, 2015):
@Smsbackup If you have a current backup, try the steps mentioned above.
@Smsbackup commented on GitHub (May 29, 2015):
disconnect / reconnect as opello mentioned not work for me. The URL of the consent screen includes the string /oauth1, google said "you must migrate to OAuth 2.0". So sad for me. Do Opello know some apps like sms backup+ who auto sent sms backup to mail as schedule.
@castanedaru commented on GitHub (Jun 4, 2015):
Is not work for me too, from 01.06.2015 is trouble. "google no longer supports OAuth 1.0, you must migrate to OAuth 2.0 "
Your made amazing app. Please, fix it. i hope, that it possible.
@jberkel commented on GitHub (Jun 4, 2015):
hello everybody, can you please try this release: https://github.com/jberkel/sms-backup-plus/releases/tag/1.5.9-BETA4
there's support for automatically migrating tokens in it but not sure if this works, since i cannot test it (impossible to get old xoauth1 tokens). it should automatically happen, but you might need to trigger the backup twice.
@jberkel commented on GitHub (Jun 6, 2015):
try https://github.com/jberkel/sms-backup-plus/releases/tag/1.5.9-BETA5 instead
@jberkel commented on GitHub (Jun 12, 2015):
Nobody able to test this? I'd like to do a new release soon
@castanedaru @Smsbackup
@castanedaru commented on GitHub (Jun 12, 2015):
Thank you!
I use version 1.5.9 on Android 5.0.2. No any troubles more.
@jberkel commented on GitHub (Jun 12, 2015):
great, thanks for the feedback. closing.
@drHeimskirk commented on GitHub (Jun 27, 2015):
Sorry to add to a closed bug but just wanted to give you some more information.
The 1.5.9 update finally made it to Google play and I updated today.
I could still not do a backup.
The logcat shows the following...
06-27 19:31:19.552 757 1408 W SMSBackup+: invalid response from server: HTTP/1.1 400 Bad Request
06-27 19:31:19.552 757 1408 W SMSBackup+: did not get a refresh token
This is on Android 2.2.
Is there something else that I should try or should I attempt the steps mentioned above to get things back on track.
Thanks.