Skip to content
Easily move your android GoogleAuthenticator credentials to any new device ( iOS/Android/WP/UbuntuTouch/FFOS ). This reads your google authenticator database and generates original QRcodes
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
templates working version Aug 31, 2015
.gitignore working version Aug 31, 2015 working version Aug 31, 2015 working version Aug 31, 2015 working version Aug 31, 2015 working version Aug 31, 2015

Works for me (TM)

This was tested only with google authenticator v2.49 on android 4.2.1 (rooted)

Scripts in this repository highly depend on sqlite database schema of google authenticator app. So it the schema changes in new versions this method could break until i update the repository.

If it breaks for you, please open an issue with following information:

  • google authenticator exact version (you can check it in settings > about)
  • android exact version
  • any other information about the error

It doesn't work

Sure it does !

The only thing that can fail here is time synchronisation between your different devices and different authenticator app vendors.

Please check that both old and new devices have the same timezone and time

Try to play with "offset compensation" feature in authenticator settings if codes don't match

Keep in mind that you won't be able to have perfect match between two different devices. You may experience 10 seconds offset between two devices.

Does it work on linux/osx/windows ?

Should work everywhere as long as you have all dependencies installed (see below):

  • linux (tested on ubuntu 14.04)
  • osx
  • windows via cygwin


Root your phone that has google authenticator installed


Install adb on your pc/mac


Make sure you have sqlite3, netcat (nc), adb and bash installed on your machine


by default, when you do "adb pull", this command does not run as root on device, so you cant access files you want Install Adb unsecure, to allow "abd pull" command as root

!!! IMPORTANT: open "adbd insecure" app and check "Enable insecure adbd"


plug the phone


check that you can see the device using adb devices


If yes, run ./


If no error showed, it means it worked and the file is not inside data/databases


If step 7 was successful, run ./


run ./


goto http://localhost:2001 in your browser


Here you go, 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 ./ to do all this steps in one command Enjoy !

Awesome links:

You can’t perform that action at this time.