Bugs and issues of Android apps

Regarding WhatsApp: if you switch from a regular Android phone, you best bet is to use the method described by ahjolinna, that is restoring a Google Drive backup from a Google account that you added to microG through WhatsApp.

In the future, should you want to switch to another Sailfish OS device or to / from a rooted Android device, a reliable method is to copy the media and private data folders. These are stored in the following locations:

Android Sailfish OS
media /storage/emulated/0/Android/media/com.whatsapp/ /home/defaultuser/android_storage/Android/media/com.whatsapp/
private data /data/data/com.whatsapp/ /home/.appsupport/instance/defaultuser/data/data/com.whatsapp/

You can tar -cf them when WhatsApp / AppSupport is fully stopped. Once you copied the tar files over to the new phone, where WhatsApp has been installed and opened once, note the ownership of the com.whatsapp folders (stat com.whatsapp/). This has been 510059:501023 for my media and 510059:510059 for my private data, it will be different for you. Delete the folders already there, tar -xf in the respective locations and change the ownerships (chown -R 510059:510059 com.whatsapp). WhatsApp should then open, magically set up just like on the old device.

swap-indiana-jones

6 Likes