jensstein / oandbackup

backup manager for android
Other
545 stars 199 forks source link

Restore of data fails on Android 7.1.1 #157

Open lightonflux opened 7 years ago

lightonflux commented 7 years ago

Trying LineageOS 14.1 (Android 7.1.1). Tried to restore apps and data, but only apps are restored no data.

There is no error log. And the data is in the backups.

Any hints what to look for?

lightonflux commented 7 years ago

The app is properly installed. A data directory in /data/data is restored, but only with dummy data. The permissions are fine. Just the data is not there.

Restored with oandbackup:

ls  /data/data/at.bitfire.davdroid/                     
cache  code_cache

Manually extracted zip:

ls /sdcard/tmp-restore/at.bitfire.davdroid

databases  shared_prefs  

No log entry is created. No errors reported.

lightonflux commented 7 years ago

logcat.txt

 oandbackup: java.io.FileNotFoundException: /storage/F723-7BA6/oandbackups/com.commit451.gitlab/com.commit451.gitlab/shared_prefs/com.commit451.gitlab_preferences.xml (No such file or directory)

The problem here is that is looking for files that are in the .zip file:

   /storage/F723-7BA6/oandbackups/com.commit451.gitlab/**com.commit451.gitlab.zip**:/shared_prefs/com.commit451.gitlab_preferences.xml

Manually extracting the zip files fixes the error, but not the underlying problem.

jensstein commented 7 years ago

hmm, the line numbers in the stacktrace in your log seem a little off. could you try taking a logcat with this one just so i'm sure where to look: https://drive.google.com/open?id=0B0bNUNWd2wPPTjJ3T25KaEVQd2c

edit: the version of the file refered to in your logcat is actually just HEAD right now but please make a logcat anyway so we can get some debugging log lines.