[HowTo] Get your Android app data backup (like Viber) from your android phone to your Sailfish device
Gd evening!
Since I had a hard time trying to do all this myself, and I could not find any appropriate guide, I will try to help out other ppl who struggle to move their app data from android to sailfish...
Note that, if you have already used the android app on your Sailfish device, and perform the below, you will possibly loose your Sailfish-side data.
You also need to root your Android device.
- On your Android phone, use a file manager (e.g. Xplore), give root access, and choose to show hidden and system files.
- Navigate to folder (root)/data/data/
- Here you see lots of folders, each named after the app whose data it holds. For example, the folder for Viber should be /data/data/com.viber.voip/
- Now copy the folders of the applications whose data you need to transfer to your Sailfish Android Support, and transfer them to a temporary folder in your Sailfish device.
- Onto our Sailfish device now, go on and enable the Developer Mode in order to gain root access and be able to transfer the folders to the android_support root (Settings->Developer Tools->Developer Mode).
- Copy the folders retrieved from your android device, to the folder /home/.android/data/data/
- Restart your Android Support, and you should be fine!
I already tested this method for Viber, Peggle Blast and Nonograms Katana, and worked flawlessly!
Note:
this currently works because you're passing data through a Windows laptop (which has a completely different concept of acces rights - ACL - and tends to not use them) or go through some otjer intermediate state that junks the Unix access rights on the files.
Android normally hands out a different UID and GID to each application (e.g.: 10040).
The best practices would be to check what UID:GID your app got after installing it, and then run: chown and chmod on it. e.g., using thr same 10040 example as above, and your example of Viber :
(otherwise: yes, it works I used to do exactly your approach for.my WhatsApp installation)
DrYak ( 2019-07-18 17:52:33 +0200 )edit