AppManager icon indicating copy to clipboard operation
AppManager copied to clipboard

Add a "transfer/copy data" function

Open Atrate opened this issue 4 years ago • 6 comments

Related issue: https://github.com/MuntashirAkon/AppManager/issues/138

Situations:

Situation 1:

  • User uses a FOSS app
  • User decides to modify and compile the app by themselves from source
  • User installs modified app
  • There are two apps, one with previous data, one without
  • User now needs to transfer the data, while making sure the permissions are changed automatically — tedious for lots of data

Situation 2:

  • User uses AM to "clone" an app (e.g. create an app named App-copy)
  • There are two apps, one with previous data, one without
  • User now needs to transfer the data, while making sure the permissions are changed automatically — tedious for lots of data

Solution: It would be nice if AM provided a function that could transfer/copy the user data from one app to another, while making sure the permissions are changed accordingly. A warning should also be shown that such operations should only be conducted between different versions/builds/flavours of an app, not between completely different apps.

Atrate avatar Apr 21 '21 14:04 Atrate

@PookaMustard: Isn't this what you talked about earlier?

MuntashirAkon avatar Apr 21 '21 14:04 MuntashirAkon

It does sound like my use case of transferring the data of com.telegram.messenger to com.telegram.messenger.web, yes.

PookaMustard avatar Apr 21 '21 15:04 PookaMustard

It would be nice :grinning:

prono69 avatar Apr 25 '21 22:04 prono69

What is the best place to provide such an option?

MuntashirAkon avatar May 28 '21 17:05 MuntashirAkon

What is the best place to provide such an option?

With the introduction of the new backup UI, we can add transfer backup option in the three-dots menu. However, this feature requires a lot of testing and, therefore, once implemented, will only be available in the pre-releases until v4.

MuntashirAkon avatar Jul 07 '22 12:07 MuntashirAkon

App Manager can reliably provide an option to transfer data provided the app did not have any tricks in place to prevent such efforts. This can be done in the following way:

  1. Copy both internal and external data
    • A special case is the copying of the shared preferences for apps that still use legacy way of handling shared preferences.
  2. Copy permissions and app ops
  3. Copy blocking rules, battery optimisation, net policy, etc. when possible.

MuntashirAkon avatar Feb 15 '23 11:02 MuntashirAkon