jensstein / oandbackup

backup manager for android
Other
539 stars 193 forks source link

[bug] oandbackup only backs up data in /data/data, not in /data/user_de/0 #192

Open acornsirup opened 6 years ago

acornsirup commented 6 years ago

Hey,

first off, thanks for this nice application, it works really well!

I just noticed one issue: Alarm timers are stored on a per-user basis in /data/user_de/0/com.android.deskclock/databases (at least on my device with LOS 7.1, so essentially AOSP), a folder which isn't included in the backup.

Checking whether an app also has data in this multi-user environment folder and then including it in the backup should be possible, right? I think it's sufficient to back up the admin's data, i.e. first user, i.e. user "0".

Cheers

ildar commented 6 years ago

AFAIK oandbackup backups current user's data, not all user's. And Android plays with symlinks so that /data/data points to the current user's data (the paths you found already).

acornsirup commented 6 years ago

Sorry for the late reply.

Nope, the contents of /data/data/com.android.deskclock/ and /data/user_de/0/com.android.deskclock/ differ. The alarms are stored in the user directory. Oandbackup usually backups the /data/data directory.

SaifMasoud commented 4 years ago

I see this is an old issue but if someone is reading I confirm that the contents do differ. /data/user_de/0 (not to be confused with /data/user/0, which is a symlink) is currently a directory not backed up by the app. In fairness very few apps store data in /data/user_de.

yennor commented 4 years ago

I've also just landed here, because I've noticed that the data in /data/user_de aren't backuped.

SaifMasoud commented 4 years ago

@yennor What app & and what type of data does it store there?

yennor commented 4 years ago

com.ceco.pie.gravitybox: The app settings. As it seems also edxposed manager and magisk store settings there