I'm using Whatsapp from a virtual machine since I lost my phone, and now need to transfer it to a new VM.
The easy way would be to use the backup feature native to Whatsapp, but it is disabled since the VM is connected via Ethernet (and Android thinks it's a Mobile connection). In fact the very "local backup" feature is not available. I have a ton of messages which I really wouldn't like to lose.
There's an Xposed module which could possible fake an Wifi connection in the Android VM, but at this point I really want to do the entire transfer locally as my internet is painfully slow right now.
I tried the built-in
adb backup feature, only to find out it's disabled for Whatsapp and can't be easily enabled (requires decompiling the
So, how can I manually transfer Whatspp app data to the new "device"? What folders do I need to copy, and what files must be modified in order for the transfer to work seamlessly?
I do of course have full root access.
[Update] Neither of the following work:
Copying the entire contents of
/data/data/com.whatsapp/databasesafter installing Whatsapp, signing in and closing it. It will crash when opening, without any error message.
Copying the same directory, but without opening Whatsapp and signing in after installation. Same error as above.
/data/data/com/whatsapp/databases/msgstore.dbafter installing Whatsapp and signing in. An error message is presented: "Something went wrong with your chat history"
Copying the entire
/data/data/com.whatsappdirectory, after installing and closing it. It will crash when opening, without any error message.