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.
Steps to reproduce
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:
which will replace existing packages (
-r
) and accept downgrades (-d
). Maybe it would help to usepm install
for all APK restore operations.