I'm migrating from a standard Google-enabled smartphone to a Huawei one, that does not have the Google Services installed. Anyway, I was able to successfully download and install WhatsApp from the official website.
Of course it didn't find the Google Drive backup because there is no such a Google account.
Looking at the documentation, I copied the files inside WhatsApp/Databases
from the old phone to the new one and reinstalled WhatsApp.
But it still says it cannot find a backup, and leave me with a blank chat history!
I also tried to copy the content of WhatsApp/Backup
too, without success.
Why it does not work? According to the documentation, copying a local database should work!
Of course I'm using the same phone number.
UPDATE
I tried the procedure suggested by the first link posted by alecsx. But it didn't work. Here the output:
Please connect your Android device with USB Debugging enabled:
cannot connect to daemon at tcp:5037: Connection refused
* daemon not running; starting now at tcp:5037
* daemon started successfully
Found legacy WhatsApp 2.11.431 in local folder
WhatsApp 2.20.206.24 installed
Backing up WhatsApp 2.20.206.24
/data/app/com.whatsapp-jYkcwEVhvHkOnFYgxsrM9g==/base.apk: 1 file pulled. 24.8 MB/s (31188619 bytes in 1.202s)
Backup complete
Removing WhatsApp 2.20.206.24 skipping data
Success
Removal complete
Installing legacy WhatsApp 2.11.431
adb: failed to install tmp/LegacyWhatsApp.apk: Failure [INSTALL_PARSE_FAILED_NOT_APK: Failed to parse /data/app/vmdl1329425107.tmp/base.apk]
Install complete
Now unlock your device and confirm the backup operation...
Please enter your backup password (leave blank for none) and press Enter:
Exception in thread "main" java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: java.lang.RuntimeException: java.lang.IllegalArgumentException: Don't know how to process version 5
at org.nick.abe.AndroidBackup.extractAsTar(AndroidBackup.java:420)
at org.nick.abe.Main.main(Main.java:128)
... 5 more
Caused by: java.lang.IllegalArgumentException: Don't know how to process version 5
at org.nick.abe.AndroidBackup.extractAsTar(AndroidBackup.java:282)
... 6 more
tar: tmp/whatsapp.tar: funzione "open" non riuscita: File o directory non esistente
tar: Error is not recoverable: exiting now
tar: tmp/whatsapp.tar: funzione "open" non riuscita: File o directory non esistente
tar: Error is not recoverable: exiting now
tar: tmp/whatsapp.tar: funzione "open" non riuscita: File o directory non esistente
tar: Error is not recoverable: exiting now
tar: tmp/whatsapp.tar: funzione "open" non riuscita: File o directory non esistente
tar: Error is not recoverable: exiting now
tar: tmp/whatsapp.tar: funzione "open" non riuscita: File o directory non esistente
tar: Error is not recoverable: exiting now
Saving whatsapp.cryptkey ...
cp: impossibile eseguire stat di 'tmp/apps/com.whatsapp/f/key': File o directory non esistente
Saving msgstore.db ...
cp: impossibile eseguire stat di 'tmp/apps/com.whatsapp/db/msgstore.db': File o directory non esistente
Saving wa.db ...
cp: impossibile eseguire stat di 'tmp/apps/com.whatsapp/db/wa.db': File o directory non esistente
Saving axolotl.db ...
cp: impossibile eseguire stat di 'tmp/apps/com.whatsapp/db/axolotl.db': File o directory non esistente
Saving chatsettings.db ...
cp: impossibile eseguire stat di 'tmp/apps/com.whatsapp/db/chatsettings.db': File o directory non esistente
Pushing cipher key to: /sdcard/WhatsApp/Databases/.nomedia
adb: error: cannot stat 'tmp/apps/com.whatsapp/f/key': No such file or directory
Restoring WhatsApp 2.20.206.24
adb: failed to install tmp/base.apk: Failure [INSTALL_FAILED_USER_RESTRICTED: Install canceled by user]
Restore complete
Cleaning up temporary files ...
rm: impossibile rimuovere 'tmp/whatsapp.tar': File o directory non esistente
Done
Operation complete
Please press Enter to quit...
Nothing has copied inside the extracted
folder and on my device WhatsApp was removed.
I see a lot of error, but it's not clear to me the root cause of the problems.