XayahSuSuSu / Android-DataBackup

DataBackup for Android 8.0+
https://DataBackupOfficial.github.io
GNU General Public License v3.0
2.4k stars 98 forks source link

[Bug] Restore problem #120

Closed Mahantor closed 9 months ago

Mahantor commented 1 year ago

Describe the bug Hello After restoring some applications, some of their settings are reset, for example, I logged into the MT Manager application and had pinned a number of bookmarks and the program was set to dark mode, but every time after restoring the application, the bookmarks are deleted. and I need to login again and the dark mode settings are changed to light mode This problem occurs to me in many other applications as well Is this a bug? Is there a solution to this issue?

Expected behavior Full restoration of apps without resetting their settings

Screenshots If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

XayahSuSuSu commented 1 year ago

Can you offer a log in DataBackup/backup/0/log?

Mahantor commented 1 year ago

https://github.com/XayahSuSuSu/Android-DataBackup/assets/91434001/e98621e7-45d3-4b32-82a0-57d7e70f934f

# BackupApp #: ===========# BackupApp #===========
# BackupApp #: Global map check finished.
# BackupApp #: Task added, size: 1.
# BackupApp #: keyboard: (true, dev.patrickgold.florisboard.beta/dev.patrickgold.florisboard.FlorisImeService), services: (true, ).
# Backup itself #: com.xayah.databackup APK path: /data/app/~~NPT6IJaKQj989pV8ULgQLQ==/com.xayah.databackup-teKYm4bSvY66FM75bkVPOA==.
# BackupApp #: Copy com.xayah.databackup to out: true.
# BackupApp #: Timestamp: Cover.
# BackupApp #: Date: Cover.
# BackupApp #: userId: 0.
# BackupApp #: CompressionType: zstd.
# BackupApp #: AppName: MT Manager.
# BackupApp #: PackageName: bin.mt.plus.
# Compress APK #: bin.mt.plus APK path: /data/app/~~WI_hmOt4KxcV5b5bpsNwqw==/bin.mt.plus-CCDqpn2KbldaJOUywSED7A==.
# Compress APK #: /storage/4672-1E0D/DataBackup/backup/0/data/bin.mt.plus/Cover/apk.tar.zst is missing, needs update.
# Compress APK #: Apk compressed.
# Compress APK #: Test /storage/4672-1E0D/DataBackup/backup/0/data/bin.mt.plus/Cover/apk.tar.zst.
# Compress APK #: Test passed.
# Compress #: /storage/4672-1E0D/DataBackup/backup/0/data/bin.mt.plus/Cover/user.tar.zst is missing, needs update.
# Compress #: user compressed.
# Compress #: Test /storage/4672-1E0D/DataBackup/backup/0/data/bin.mt.plus/Cover/user.tar.zst.
# Compress #: Test passed.
# Compress #: /storage/4672-1E0D/DataBackup/backup/0/data/bin.mt.plus/Cover/user_de.tar.zst is missing, needs update.
# Compress #: user_de compressed.
# Compress #: Test /storage/4672-1E0D/DataBackup/backup/0/data/bin.mt.plus/Cover/user_de.tar.zst.
# Compress #: Test passed.
# Compress #: /storage/4672-1E0D/DataBackup/backup/0/data/bin.mt.plus/Cover/data.tar.zst is missing, needs update.
# Compress #: data compressed.
# Compress #: Test /storage/4672-1E0D/DataBackup/backup/0/data/bin.mt.plus/Cover/data.tar.zst.
# Compress #: Test passed.
# BackupApp #: Trying to save icon.
# BackupApp #: Icon saved successfully: 22294
# BackupApp #: Restore keyboard and services.
# BackupApp #: Save global map.
# BackupApp #: ===========# BackupApp #===========
# RestoreApp #: ===========# RestoreApp #===========
# RestoreApp #: Global map check finished.
# RestoreApp #: Task added, size: 1.
# RestoreApp #: userId: 0.
# RestoreApp #: CompressionType: zstd.
# RestoreApp #: AppName: MT Manager.
# RestoreApp #: PackageName: bin.mt.plus.
# Install APK #: Failed to get bin.mt.plus version code.
# Install APK #: versionCode: 23050873, actual appVersionCode: -1.
# Install APK #: apkPath: /storage/4672-1E0D/DataBackup/backup/0/data/bin.mt.plus/Cover/apk.tar.zst.
# Install APK #: Apk installed.
# Decompress #: user decompressed.
# Set owner and SELinux #: user finished.
# Decompress #: user_de decompressed.
# Set owner and SELinux #: user_de finished.
# Decompress #: data decompressed.
# Set owner and SELinux #: data finished.
# RestoreApp #: Save global map.
# RestoreApp #: ===========# RestoreApp #===========
XayahSuSuSu commented 1 year ago

Some apps don't use nornal ways to store loggin state and it's not easy to restore. I tested MT manager, the bookmarks here were restored well while the loggin state wasn't. Maybe it validates something else like ssaid and that's not supported yet for backing up/restoring.

Mahantor commented 1 year ago

Some apps don't use nornal ways to store loggin state and it's not easy to restore. I tested MT manager, the bookmarks here were restored well while the loggin state wasn't. Maybe it validates something else like ssaid and that's not supported yet for backing up/restoring.

Ok thanks