jensstein / oandbackup

backup manager for android
Other
543 stars 194 forks source link

Restore fails (Android 9.0) #217

Closed ghost closed 5 years ago

ghost commented 6 years ago

I updated my OnePlus 6 to Android 9.0 (official release) and since then oandbackup fails to restore any of my backed-up apps.

My phone is rooted (Magisk 17.1) and I have BusyBox installed. I'm not sure what the issue is, but I attached a copy of the error log.

error_log.txt

nonno-cicala commented 5 years ago

I worked around this. The problem is it cannot install the apk from the path where oandbackup stores it, so when I needed to install an apk from the backup I copied it (base.apk inside the package backup dir) in /data/local/tmp/ , as suggested by the error log, and installed it with pm install /data/local/tmp/base.apk (IIRC, I did that some time ago).

Nonononoki commented 5 years ago

Same problem here, I had to install all apk's manually and restore each one manually (data only, or else it will try in reinstall the apk and fail). I'm no expert, but maybe the app is missing the "install from external source" permission?

sideload-apps-android-8-0-oreo-now-unknown-sources-is-gone w1456

mahesh1729 commented 5 years ago

I think issue is with Android 9. This link explains a bit https://stackoverflow.com/questions/50540334/install-apk-using-root-handling-new-limitations-of-data-local-tmp-folder

jensstein commented 5 years ago

it seems to be changes in selinux rules preventing system_server from accessing the storage directories. can you try this apk: https://gitlab.com/jensstein/oandbackup/-/jobs/125046812/artifacts/file/apks/oandbackup-universal-debug.apk (or another debug apk appropriate for your device here: https://gitlab.com/jensstein/oandbackup/-/jobs/125046812/artifacts/browse/apks/)

andretiagogr commented 5 years ago

it seems to be changes in selinux rules preventing system_server from accessing the storage directories. can you try this apk: https://gitlab.com/jensstein/oandbackup/-/jobs/125046812/artifacts/file/apks/oandbackup-universal-debug.apk

It works. I tried that apk on android 9 and I was able to restore an app without any error

jensstein commented 5 years ago

brilliant :)

ghost commented 5 years ago

Is this still an issue with the latest 0.3.5 version? Updated to Android 9, installed Busybox and the backup process fails.

ghost commented 5 years ago

it seems to be changes in selinux rules preventing system_server from accessing the storage directories. can you try this apk: https://gitlab.com/jensstein/oandbackup/-/jobs/125046812/artifacts/file/apks/oandbackup-universal-debug.apk

This version works. I hope that the stable build will be updated with Android 9 compatibility.

sentriz commented 5 years ago

working for me now too 😎

Eternal010 commented 3 years ago

Debug apk working for android 10.... 💯

ghost commented 3 years ago

https://github.com/machiav3lli/oandbackupx