This was tested only with google authenticator v2.49 on android 4.4.4 (rooted) from Ubuntu 15.10. Thanks to dchapkine for providing the awesome repo to fork.
- Make sure you have sqlite3, netcat (nc), adb and bash installed on your machine
- Plug in the phone
- Check that you can see the device using
adb devices - If yes, run
./extract.sh - If no error showed, it means it worked and the file was saved to
./data/databases - If step 4 was successful, run
./dumpcsv.sh - run
./server.sh - goto http://localhost:2001 in your browser
- Hover your mouse on one of blue squares, qrcode is shown. Open google authenticator on new device, and scan each code
- Congratulations if you made it so far, your google authenticator codes are now transfered to your new device. Before you remove your codes from old device, make sure that one time passwords generated by google authenticator are EXACTLY the same on both devices. Note that both devices should have correct datetime set Thank you for using this guide :)
- Now that you understand the process, you can run ./main.sh to do all this steps in one command. Enjoy !
- https://github.com/dchapkine/extract-google-authenticator-credentials
- Google auth url format https://code.google.com/p/google-authenticator/wiki/KeyUriFormat
- QRcode js library http://davidshimjs.github.io/qrcodejs/
- QRcode commandline library https://github.com/gtanner/qrcode-terminal
- Tutorial http://www.howtogeek.com/130755/how-to-move-your-google-authenticator-credentials-to-a-new-android-phone-or-tablet/