helloworld1 / FreeOTPPlus

Enhanced fork of FreeOTP-Android providing a feature-rich 2FA authenticator
Apache License 2.0
653 stars 75 forks source link

Can't import from FreeOTP to FreeOTPPlus #242

Open Benjie56 opened 1 year ago

Benjie56 commented 1 year ago

Selecting "backup" from FreeOTP (freeotp-android) 2.0 (24) results in a file named externalBackup. I tried importing this file into FreeOTP+ (FreeOTPPlus) 3.0 (21) using both "import JSON format" and "key URI format". Both result in the error message "Failed to import [format]. The file is malformed".

Maschmalow commented 1 year ago

Hey, I've made a tool to convert FreeOTP backups to a URI list compatible with FreeOTP+. you can find it here: https://github.com/Maschmalow/freeotp-android

Benjamin-Loison commented 11 months ago

@Maschmalow Would you mind opening Issues on your repository? I would like to discuss about proposing a trustful APK (built on F-Droid transparent infrastructure for instance, as I am unable to build the app for my Fairphone 4 running LineageOS) and wanted to share with people this script easing reviewing your changes.

johnnynoone commented 10 months ago

For anyone wanting to review @Maschmalow 's code (commits fcd0aa2753050e88b404cbd2e8ec6767f33e077d and 2e86b9b3bea061f7f0d9f866f0fdb840228084fc), most of the changed files contain only fluff (changed README, renamed freeotp to freeotpbackup, deleted unneeded imports, added one import (android.net.Uri), added new string (for the convert action)). The important changes are in:


EDIT: The same issue in another project: https://github.com/beemdevelopment/Aegis/issues/1084 "Support for importing FreeOTP 2.0 encrypted backups"