Simple-SMS-Messenger icon indicating copy to clipboard operation
Simple-SMS-Messenger copied to clipboard

Import/Export encryption and progress notification

Open Spitfireap opened this issue 3 years ago • 6 comments

NOTE : This is a work in progress. It is working, but some cleanup is needed, and I need to test it with a great amount of data.

Since exporting messages saves them into a json. It would be easy to grep a bunch of phone number, messages and mms, so I thought of adding this. It is completely based on FairEmail implementation.

  • It won't affect older backup, and new backup can be created w/o a password.

To encrypt the backup, simply input a password on the export dialog. Extension will be changed to .json to .sec by default. To decrypt, put the same password you provided at first.

Spitfireap avatar Mar 03 '22 15:03 Spitfireap

@tibbi okay, strings are done. I'm starting java and Kotlin, so I have trouble understanding how onProgress.invoke() in MessagesImporter().importMessages() is processed (is it actually?). I was wondering if I could use it to set an import progress bar or progress count...

Spitfireap avatar Mar 03 '22 22:03 Spitfireap

it was @KryptKode doing it, onProgress isnt doing anything now. Guess it was some preparation for showing a progress bar, but we can remove it until it gets actually used.

tibbi avatar Mar 03 '22 23:03 tibbi

Okay, I think it's ready. I did some test, and it worked well. I could test with a backup size up to 150MB. I didn't remove the OnProgress Unit, it could be really useful since backups tends to take some time to restore, but I have no clue on how to link it to a Dialog function...

Spitfireap avatar Mar 09 '22 14:03 Spitfireap

Okay so I documented myself a bit on Unit in Kotlin, and here is a progress notification system for importing/exporting :)

Spitfireap avatar Mar 09 '22 18:03 Spitfireap

Heu @tibbi, is it possible to merge, or you don't want the feature? I can update it if you want

Spitfireap avatar Jul 15 '22 17:07 Spitfireap

I dont know, havent tested it properly yet, will take a look at it soon

tibbi avatar Jul 15 '22 18:07 tibbi