Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Cannot Revoke SMS Backup+ Access #369
I used SMS Backup+ to backup SMS from an older phone (thanks!) however I am not able to revoke its access now.
Nexus S 4.04
Maybe this explains why this is happening: http://stackoverflow.com/questions/6852256/how-do-you-force-accountmanager-to-show-the-access-request-screen-after-a-user/6852274
Also reinstalling the app doesn't seem to help either.
Ok just to document this report a bit better here are my details:
The first time SMS Backup+ I clicked "Connect" and a Application Manager prompt came up asking to confirm access of gmail account by SMS Backup (Note: no browser was brought up for authorization). The prompt is similar to this: (https://developers.google.com/google-apps/tasks/images/Android_Auth_Dialog.png)
Everything works great. SMS Backup is able to backup SMS and call logs.
On checking https://accounts.google.com/IssuedAuthSubTokens I see a number of Revokable apps/services none of which are SMS Backup+
Un-checking and rechecking the "Connect" option in SMS Backup+ does not revoke the permission/token either i.e. it doesn't not request a further re-authorization from Application Manager and already seems to have access to gmail IMAP.
Let me know if further info is needed
Ok figured out a solution after doing a lot of study and trial and error. Its a pretty UGLY solution/hack and I would not recommend it unless your a little crazy like me :P . Its also a good idea to make a complete backup of your phone (maybe a nandroid backup) before doing this.
I hope this will be usefull to the developer to come up with a better solution. It turn out that at least on my phone the account manager is the one granting permission to apps and so it is not possible to Revoke the permission from https://accounts.google.com/IssuedAuthSubTokens
WARNING!!!: USE THE METHOD BELOW AT YOUR OWN RISK....BAD THINGS MAY HAPPEN!!!
Note: You need ROOT access on your phone for this :(
a. Freeze "Google Account Manager" using Titanium Backup (It maybe possible without doing this but it eliminates the chance of corrupting the accounts database ... maybe)
b. Using a Root File manager (example ES File Explorer) copy the database /data/system/users/0/accounts.db and its journal file "account.db-journal" to SDCard
c. Using a sqlite3 editor (eg: SQlite Debugger from the Google Play Store) search for the entry for the app in the extras table of the account.db. Do this by opening account.db in Sqlite debugger. Then use the following commands:
select * from extras where key like '%mail.google.com%'
That should give you a list of entries like this (I have modified following so they are representative only):
d. You need to delete the entries corresponding to sms backup in the "extras" table of account.db so make a note of the _id numbers listed above (i.e. 100, 101, 102 and 103)
e. Now delete the rows using the following commands and then COMMIT changes:
delete from extras where _id = 100
f. Copy and replace the modified account.db and account.db-journal to its original location (Make a note of the permissions on original files first!!!)
g. Change permissions and ownership of the files to original in my case this was as shown:
h. Restart the android device.
i. Check if the permission were revoked.