answered
2019-08-06 00:16:46 +0200
Hi, I was struggeling with the same thing, had some trouble to read the steps in your- and other discussions. But got it solved in the end.
I took the liberty to write down the steps that I needed and post them so that others might benefit from that.
- Hardware: Sony Xperia XA2 Plus, Dual Sim.
- SailfishOS: 3.1.0.11-h4413-0.0.7.18
The steps:
- Copy your complete
WhatsApp
-(backup)directory recursively to:
/home/nemo/android_storage/WhatsApp/
- Give these owner & permissions:
devel-su
and the password. cd /home/nemo/android_storage/
chown -R media_rw.media_rw WhatsApp
chmod -R ug+rw media_rw.media_rw WhatsApp
(or 664
instead of ug+rw
)
- Review the backups in
/home/nemo/android_storage/WhatsApp/Databases
eg.:
>[nemo@Sailfish Databases]$ ls -l
total 162368
-rw-rw-r-- 1 media_rw media_rw 20702030 Jul 29 06:00 msgstore-2019-07-29.1.db.crypt12
-rw-rw-r-- 1 media_rw media_rw 20705697 Jul 30 00:10 msgstore-2019-07-30.1.db.crypt12
-rw-rw-r-- 1 media_rw media_rw 20727543 Jul 30 06:00 msgstore-2019-07-31.1.db.crypt12
-rw-rw-r-- 1 media_rw media_rw 20751475 Jul 31 06:00 msgstore-2019-08-01.1.db.crypt12
-rw-rw-r-- 1 media_rw media_rw 20756414 Aug 1 06:00 msgstore-2019-08-02.1.db.crypt12
-rw-rw-r-- 1 media_rw media_rw 20849636 Aug 3 18:40 msgstore-2019-08-03.1.db.crypt12
-rw-rw-r-- 1 media_rw media_rw 20873613 Aug 5 09:54 msgstore-2019-08-05.1.db.crypt12
-rw-rw-r-- 1 media_rw media_rw 20873613 Aug 5 09:55 msgstore.db.crypt12
- The file
msgstore.db.crypt12
was the last backup, because I have not erased any old messages yet, this should be the largest one.
If this one is clearly to small, it can be replaced by an older, more complete one:
eg cp msgstore-2019-08-05.1.db.crypt12 msgstore.db.crypt12
- Install (from the Store for example)
Google Play-services[Edit: removed Play-services again, because it crashed the Spotify app fatally. Afterwards WhatsApp was still working fine.]< Ha & Google play store: I got the impression they provide a bit of spoofing/stubbing for some apps that think they cannot run without this. (I am not sure wheter Whatsapp falls in this last category of whiners, but at the time I got the backup I already had to wait 6 hours for a new whatsapp activation code so not in the mood to experiment with that any more.)
- Install WhatsApp Without starting it immediatly after.
- Check that the second kind of permissions (Allow an android app access to Sailfish-parts outside its Android box) is set correctly via the Sailfish Settings App:
> Settings=>Apps=>WhatsApp=>Open Android(TM)-settings
I simply enabled all access, and think this is the step I missed for most of the time. - Started WhatsApp and after the lot of previous unsuccessfull attempts, it finally recovered the backup.
I did not get Google-Drive backup running as before on my Jolla-1, and for the short period that I tested the Sony Xperia for errors with its stock-Android.
For now I am happy with the aforementioned achievement, but if anyone gets the google-drive cloud-storage backup working, please inform me/us. Or a way to achieve the local backups automated periodically.
(Maybe with some cron job to scp
them to somewhere else equally periodical.)
Regards,
Hans
I have the same issue running X 3.0.2.8 on a Xperia X compact. But also had the issue before the update. I tried different whatsapp versions and a factory reset of the device. The issue was shortly resolved after the factory reset but occurred very soon after again. It is the main reason that I am not using it a a daily driver now.
bertjefred ( 2019-04-04 15:29:44 +0200 )edit@enwine:
jovirkku ( 2019-08-06 13:39:37 +0200 )edit1) You wrote, "I cannot download any media in the app". Do you mean that if someone sends a picture to you, you cannot see it in the Whatsapp message you received? Or how would you like to download media? This appears to work fine on my XA2/3.1.0
2) You also wrote, "nor can I make a local backup". So, obviously, in Whatsapp app, you go to Settings > Chats > Chat backup. I tried this and it worked like a charm. Can you tell what happens when you try?