oandbackup icon indicating copy to clipboard operation
oandbackup copied to clipboard

Data restore fails

Open simonsen23 opened this issue 7 years ago • 15 comments

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

simonsen23 avatar May 29 '18 11:05 simonsen23

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

jensstein avatar Jun 16 '18 20:06 jensstein

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'

lee5783 avatar Jun 21 '18 03:06 lee5783

@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 :)

jensstein avatar Jun 21 '18 18:06 jensstein

@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 avatar Jun 22 '18 09:06 simonsen23

The error hasn't changed. log_oandbackup.txt

simonsen23 avatar Jun 24 '18 11:06 simonsen23

is there anything in oandbackup.log?

jensstein avatar Jun 24 '18 17:06 jensstein

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]

simonsen23 avatar Jun 24 '18 17:06 simonsen23

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

jensstein avatar Jun 24 '18 18:06 jensstein

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

simonsen23 avatar Jun 24 '18 20:06 simonsen23

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?

jensstein avatar Jun 30 '18 12:06 jensstein

It is permissive.

simonsen23 avatar Jun 30 '18 12:06 simonsen23

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

jensstein avatar Jul 08 '18 09:07 jensstein

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 ;)

simonsen23 avatar Jul 20 '18 12:07 simonsen23

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 :)

jensstein avatar Aug 07 '18 16:08 jensstein

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 :(

simonsen23 avatar Aug 07 '18 20:08 simonsen23