jensstein / oandbackup

backup manager for android
Other
543 stars 194 forks source link

Data restore fails #211

Open simonsen23 opened 6 years ago

simonsen23 commented 6 years ago

When I try to restore an app with oandbackup I get the following error:

"Appname": selinux_android_restorecon: not implemented for libselinux_vendor "Appname": restorecon: restorecon failed: /data/user/0/"Appfolder"

The app gets restored but without any data.

Phone: Oneplus 2 with LOS 15.1

jensstein commented 6 years ago

does this work for you? https://drive.google.com/file/d/1hEagkOpnctLOAuWB3CPmTGul4Fxm3E_7/view?usp=sharing

lee5783 commented 6 years ago

hi @jensstein i used your link and got this error at opening app 'couldn't find oab-utils - running in legacy mode, please report this to the developer'

jensstein commented 6 years ago

@lee5783 which architecture is your device? armv7? please pick an appropriate apk here and try again: https://gitlab.com/jensstein/oandbackup/builds/artifacts/master/browse?job=sign if you still get the message, could you please open a new issue with information about your device and an attached logcat. also try executing ls -l /data/data/dk.jens.backup/files as root on your device. thanks :)

simonsen23 commented 6 years ago

@jensstein I get the same error as lee5783. Result from ls -l: -rwxrw---- (...) oab-utils

log_oabutils.txt

PS: I'll open a new issue too. PPS: Mine is ARM64

simonsen23 commented 6 years ago

The error hasn't changed. log_oandbackup.txt

jensstein commented 6 years ago

is there anything in oandbackup.log?

simonsen23 commented 6 years ago

Nothing new as far as I know:

2018/06/24 - 13:24:19: selinux_android_restorecon: not implemented for libselinux_vendor [ARD] 2018/06/24 - 13:24:19: restorecon: restorecon failed: /data/user/0/de.swr.avp.ard [ARD]

jensstein commented 6 years ago

i just updated to lineageos 15.1 and now restorecon gives me the same error as you. does this help: https://gitlab.com/jensstein/oandbackup/-/jobs/77041353/artifacts/file/apks/arm64/oandbackup-debug.apk

simonsen23 commented 6 years ago

I get a notification "Restoration completed" (or something like that) without an error, but the data does not get restored. In logcat and oandbackup.log there is no entry, but in oandbackup itself there is an error:

screenshot_oandbackup_20180624-223416

jensstein commented 6 years ago

i'm moving at the moment, so for the next week or so i don't have that much time or internet but i'll come back to this problem as soon as i can. in the meantime could you check whether you have selinux enforcing or permissive: getenforce?

simonsen23 commented 6 years ago

It is permissive.

jensstein commented 6 years ago

this apk has some more debugging (no fixes yet though). please send me a logcat. https://gitlab.com/jensstein/oandbackup/-/jobs/80180769/artifacts/raw/apks/arm64/oandbackup-debug.apk

simonsen23 commented 6 years ago

oandlog.txt

Afaik the restoration from apk and data went well. When I have more time, I can try it with more apps.

I have one suggestion: Everytime I install oandbackup I have to set the path for busybox manually (/system/xbin/busybox). Maybe you can add a check for this path too ;)

jensstein commented 6 years ago

yes it seems to have gone well. if you can confirm that it works with this apk i'll close the issue: https://gitlab.com/jensstein/oandbackup/-/jobs/86828190/artifacts/file/oandbackup-signed-arm64.apk

i also added your suggestion about checking for /system/xbin/busybox :)

simonsen23 commented 6 years ago

log.txt

With old backups it worked afaik well. But it won't create new backups. I tried to look in the logfiles, but they seem empty (New issue?).

Unfortunately the check for the path didn't work :(