tfa_auth_dump
is a command line utility to take a Two-Factor-Auth application database
and dump it into QR codes you can re-import into another phone.
This is useful for:
- Migrating to a new phone
- Copying codes from one phne to a backup phone
- Printing and saving the QR codes in a safe place? (not everyone supports one-time codes)
Assuming you have your GOPATH setup and stuff.
go get github.com/solarkennedy/tfa_auth_dump
scp root@android:/data/data/com.google.android.apps.authenticator2/databases/databases /tmp/android_ga.db
tfa_auth_dump /tmp/android_ga.db
or
make adb
scp root@android:/data/data/com.duosecurity.duomobile/files/duokit/accounts.json /tmp/duo_accounts.json
tfa_auth_dump /tmp/duo_accounts.json
or
adb root
adb pull /data/data/com.duosecurity.duomobile/files/duokit/accounts.json /tmp/duo_accounts.json
tfa_auth_dump /tmp/duo_accounts.json
scp root@android:/data/data/com.duosecurity.duomobile/databases/databases /tmp/duo.db
tfa_auth_dump /tmp/duo.db