johanw666 / Signal-Android

Fork from a private messenger for Android with extra options added: full backup and (partial, ony text) xml backup of messages. Restore can happen at any time, not only after a fresh install. Import SMS database. Import of (unencrypted) WhatsApp databases. Removed apk expire. Choose between passphrase protection and the Android screenlock. Choice for the backup location (internal or removable storage on Android < 11 (on 11 and higher this is already possible)). Set the maptype in the place picker. Option to treat view-once media as normal media. Option to ignore remote deletion. Choose between FCM or websocket notification delivery.
https://johanw.home.xs4all.nl/Signal/signal-jw.html
GNU Affero General Public License v3.0
252 stars 16 forks source link

Unable to import plaintext sms database #2

Open achkhan opened 5 years ago

achkhan commented 5 years ago

It is not possible to import a plaintext sms database created with sms backup and restore. I tried at least 3 versions of the app.

Os: Android 9 Phone : Huawei P20.

johanw666 commented 5 years ago

Could you please be more specific? What goes wrong? Does it crash? Does it seem to succeed but nothing gets imported? Is there a debug log (especially after a crash)? Do the exports contain any mms? I'll test some imports and see what happens.

achkhan commented 5 years ago

Hello,

The app works correctly except the impot/export option. find bellow the full description of what i have done :

I created a backup of my SMS ( I excluded the MMS, emojis, links, pictures... ) with 'backup and restore app'. I copied the backup to the main storage folder, i renamed the backup to 'SignalPlaintextBackup.xml' .

After installing the application, i try to import this backup using the import/export option. The import take a few seconds. When it is end, Nothing is imported, the app don't crach and continue to work correctly without any problem !

image

johanw666 commented 5 years ago

Odd. Can you import your own Signal exported plaintext files? I created a testfile to import and that works well on my phone:

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<smses count="2">
 <sms protocol="0" address="+123456789" contact_name="Test contact 1" date="1557308567399" readable_date="Wed, 08 May 2019 11:42:47 GMT+02:00" type="2" subject="null" body="Test." toa="null" sc_toa="null" service_center="null" read="1" status="-1" locked="0" />
 <sms protocol="0" address="+123456798" contact_name="Test contact 2" date="1557308698203" readable_date="Wed, 08 May 2019 11:44:58 GMT+02:00" type="2" subject="null" body="Test." toa="null" sc_toa="null" service_center="null" read="1" status="-1" locked="0" />
</smses>

I will check with my (fairly old) version of sms backup and restore to see how that works out.

thinkbrown commented 3 years ago

@johanw666 Sorry to revive an ancient issue, but this appears to be the same issue I ran into. My guess is that it's being caused by large backups that can't be imported in under 10 seconds.