Python script to migrate from FreeOTP to FreeOTP+
You need retrieve FreeOTP ADB backup by yourself.
Become developer on your phone
- Android -> Settings -> System -> About -> Build number (tap,tap,tap) to get android developer mode
- In "Developer options" allow "USB debugging"
- Connect phone to PC
ADB backup (case for FreeOTP)
- install
adb
package - run
adb backup -f freeotp-backup.ab -apk org.fedorahosted.freeotp
- will be asked for password so entry some
In case encrypted phone
- download https://github.com/nelenkov/android-backup-extractor/releases
- run
java -jar abe-all.jar unpack freeotp-backup.ab freeotp.tar <password>
to extract backup - run
tar xvf freeotp.tar
- tokens are in apps/org.fedorahosted.freeotp/sp/tokens.xml
- run this script in same folder as 'tokens.xml' or specify file by '-i' argument
Do import and export in same time frame as OTP counter can get raised and your newly generated tokens won't work. In my case two day old export from FreeOTP didn't work. When I did export then import within hour everything went ok.