Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore fails silently when downgrading #264

Open
mvglasow opened this issue Oct 17, 2019 · 0 comments
Open

Restore fails silently when downgrading #264

mvglasow opened this issue Oct 17, 2019 · 0 comments

Comments

@mvglasow
Copy link

Steps to reproduce

  1. Make a backup of an app.
  2. Update that app (i.e. to a version with a newer version code in the manifest)
  3. Try to restore the backup of that app, and check the app

Expected behavior

The old version of the app is back

Actual behavior

oandbackup reports success, but the updated version of the app is still around

Versions affected

oandbackup 0.3.5-universal (from F-Droid), LineageOS 15.1

Further information

Without having looked at the internals of oandbackup: the package manager prevents downgrades and I am not sure if the Android API exposes a way around that. With root and shell access, it is possible to achieve that by doing:

pm install -r -d base.apk

which will replace existing packages (-r) and accept downgrades (-d). Maybe it would help to use pm install for all APK restore operations.

@mvglasow mvglasow changed the title Restore fails when downgrading Restore fails silently when downgrading Oct 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant