Android (root): Extract Google Authenticator Secret Key

Moving from Google Authenticator to WinAuth or wan't to have the same keys in both apps? Here's how to extract the secret keys from the google authenticator app. This of course only works if your device is rooted.

First open a adb shell or local file explorer with root permissions and copy the following file to the sd card using this command:
cp /data/data/com.google.android.apps.authenticator/databases/databases /sdcard/
(check if your SD Card path matches /sdcard/)

Now simply open a shell and use the following command to get the keys:
sqlite3 ./databases (assuming you're in the same folder)
sqlite3> SELECT * FROM accounts;

You will get your keys displayed along with the choosen display names.
Use these keys to register them in WinAuth.