jensstein / oandbackup

backup manager for android
Other
543 stars 194 forks source link

Apps crashing after restoring #205

Open Nonononoki opened 6 years ago

Nonononoki commented 6 years ago

Certain apps are crashing after restoring App and Data. I have experienced it on my banking app "DKB Tan2Go" and "Twitter".

Easy steps to follow:

  1. Install the app Tan2Go, current version is 2.1.2
  2. Open it to see if it crashes (needs Magsik Hide, download Twitter instead if you don't use Magisk)
  3. Uninstall app
  4. Restore app with data

Expected bahavior: App launches with backed up data

Actual behavior: App crashes

I'm on Android 8.1.0 with AEX custom ROM. I wonder how they developed the banking app, because clearing the data (not just cache) will not suffice. You have to manually uninstall and reinstall the application to get it to work again.

ildar commented 6 years ago

Just a quick guess: maybe these apps use Accounts which are stored in system area. So restoring app data doesn't get the apps to working state...

Nonononoki commented 6 years ago

@ildar What do you mean by accounts? You do not have to log in to reproduce this error.

ildar commented 6 years ago

I mean that an app may use https://i.stack.imgur.com/LtvvX.png In that case restoring a backup is just not enough. OAndBackup can't handle account info. The apps must be confused that data is there but account info is not. But that's generally app's fault, not OAndBackup's Can you check my assumption?

Nonononoki commented 6 years ago

@ildar I can't say for Twitter because a Twitter account definitely being created and added to the system, but the banking app is not creating nor requiring any account (it doesn't even have to contacts permission).

ointeractive-depot commented 6 years ago

@Nonononoki some of apps have allowBackup="false" tag in AndroidManifest.xml file. Bank apps are 100% have it. You can't backup this apps. Other backup utilites marks this apps as not supported backups even it using root on the device. Seems that OAB don't mark this apps so.

Nonononoki commented 6 years ago

@acuna-personal Figured. Is there really no workaround?

ointeractive-depot commented 6 years ago

@Nonononoki all (known) backupers which I see deny to backup this apps due you can't restore it. It's simply use copy utility to copy neccessary folders (with su of course, so you need root), but you can't restore it on started with Lollipop devices because it needs to call restorecon command after, but it can't be done for apps which backups possibility is denied.