Trouble restoring settings for streamed installed apps #51
Replies: 2 comments 4 replies
-
I notice that the data for K9 email client seems to live in a directory outside of /storage/. On my daily driver phone (Pixel2XL with LineageOS), with "adb root" then "adb shell", I see the data in the filesystem here:- All directories in /data/user/0/ have unique UIDs and GIDs, so I am guessing that user permissions would have to be set on that folder. On the CalyxOS Pixel 5, adb root gives permission denied. Bugger. |
Beta Was this translation helpful? Give feedback.
-
Unfortunately, Linux Android Backup is unable to back up app data because Android tightly controls which apps can access the data directory - you need either root access or a privileged system app to do that, and this project is advertised as working without root. I think it is possible to add this functionality using hooks (example) though. Most apps nowadays sync to the cloud or give you an option to export their data to the internal storage (like Signal), so you can do that as a workaround.
Could you explain where does it fail (i.e. does the companion app lag/crash, or is it the script that's showing error messages)? I'd like to fix this. |
Beta Was this translation helpful? Give feedback.
-
I have been testing this script on a Pixel 5 phone with CalyxOS 4.6.0 (android 13) and cannot get the data or settings connected to the two apps I am testing. I factory reset the phone then install the two apps and configure them.
Both apps are from fdroid. They are:
I commented out the companion app parts of backup.sh, backup_func.sh, and restore_func.sh because it fails on the contacts and sms. This may be due to contacts being synced to my own nextcloud instance, or maybe because there is 400 odd contacts there, not sure. In any case, I am not concerned about contacts because I just use davx and sync to the nextcloud server. As for sms and call logs, I found a good little app to export and import them to/from Documents and that export is backed up by this script. The app I mention is https://play.google.com/store/apps/details?id=com.riteshsahu.SMSBackupRestore.
Once the restore is completed with no errors, I open the two apps (above) and they behave like a brand new install, asking for permissions and other initialisations as if there was no data.
I noticed that there was no "Storage" location for the sudoku app so not sure where it keeps its settings and highscore data.
As for the K9 email client, there is a Storage location under Android/data/com.fsck.k9 but no files in there, nor are there any there when the app is installed and configured.
Any help would be appreciated.
I am using a PC with Fedora 36 Linux with latest updates etc. I am also using USB cable for the testing. It is the same cable that I used to flash the CalyxOS rom onto the device.
Thanks, Graham
Beta Was this translation helpful? Give feedback.
All reactions