What have you found for these years?

2018-03-16

Backup Google Authenticator secrets

So I finally rooted my new Pixel 2, transferring over my data,
game saves, and setting up everything including Google Authenticator.
Now the most important step! The very reason why I want to root
my Android, to backup Google Authenticator secrets...

What an awful idea to make it only able to backup with a rooted device.

Here are the steps:

# Enable Developer options on the phone
# Enable USB debugging

# Connect the phone with the computer
$ /usr/local/share/android-sdk/platform-tools/adb shell

walleye:/ $ su
# Grant superuser privilege from the phone screen
# If it's not popping up, and it shows permission denied,
# then go to Magisk app which we used to root, and find
# the option to grant superuser privilege to Shell manually
walleye:/ # cp /data/data/com.google.android.apps.authenticator2/databases/databases /sdcard/Download

# Ctrl-D to leave phone console

$ /usr/local/share/android-sdk/platform-tools/adb pull /sdcard/Download/databases .
$ sqlite3 databases
sqlite> select * from accounts;

# You should see all your secrets!

Of course, remove /sdcard/Download/databases on the phone afterward.
Keep that sqlite3 database in a safe place. (or just copy the secrets and remove it)

References:

* Manually Extract Your Credentials [Root Only]

0 retries:

Post a Comment

Note: Only a member of this blog may post a comment.



All texts are licensed under CC Attribution 3.0