[HowTo] Get your Android app data backup (like Viber) from your android phone to your Sailfish device

asked 2019-07-18 16:22:37 +0200

kostas12ldb gravatar image

updated 2019-07-18 16:23:23 +0200

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.

  1. On your Android phone, use a file manager (e.g. Xplore), give root access, and choose to show hidden and system files.
  2. Navigate to folder (root)/data/data/
  3. 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/
  4. 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.
  5. 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).
  6. Copy the folders retrieved from your android device, to the folder /home/.android/data/data/
  7. Restart your Android Support, and you should be fine!

I already tested this method for Viber, Peggle Blast and Nonograms Katana, and worked flawlessly!

edit retag flag offensive close delete

Comments

1

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 :

chown 10040:10040 /data/data/com.viber.voip
chmod o-rw /data/data/com.viber.voip

(otherwise: yes, it works I used to do exactly your approach for.my WhatsApp installation)

DrYak ( 2019-07-18 17:52:33 +0200 )edit