Feature Request - secure app Install and account restore api

Problem:

If you switch a Phone you need hours to backup, install andconfigure. I propose a secure way to reduce some time and give some comfort.

Idea:

Work together with KeepassDX (or any other app you think fits better) and build a concept for store and restore account data of apps.

Workflow - backup:

User need KeepassDX installed on Phone. An app with a certain API defined by Fdroid and KeepassDX could (with user permission) ask KeepassDX to store Account and App settings in Keepass and backup these data there. KeepassDX itself could create an installation list-file with a Keepass access key (works only for these apps)

Workflow - restore

Open a specific file with Fdroid. These file contain a list of fdroid apps (which need to support a certain API) and a Key that fit on a specific Keepass file entry.

Fdroid then Download and install the apps and open them and give these apps their key. (at first KeepassDX get installed and request the specific Keepass file. Then the other apps get installed.)

Every Installed app ask on first open, If it is allowed to access a certain ID in Keepass and if the user allows it and the key fits the correct app and entry, the App get alls needed account information and may also some settings.