mirror of
https://github.com/jberkel/sms-backup-plus.git
synced 2026-04-25 17:05:59 +03:00
[GH-ISSUE #974] Feature request: save to local file #774
Labels
No labels
AM+RCS
FAQ
awaiting response
backup
bespoke
bug
calendar
call log
cannot reproduce
cloudless
device-specific
documentation
dual- & multi-SIM
duplicate
feature-request
fixed in beta
good first issue
half-missing
help wanted
helpful
meta
misattribution
mms
other message sources
pull-request
question
rejuvenation
restore
schedule
security
stale
task
thanks
v1.5.1
v1.5.10
v1.5.11
v1.5.2
v1.5.3
v1.5.3
v1.5.4
v1.5.4
v1.5.5
v1.5.5
v1.5.6
v1.5.7
v1.5.8
v1.5.9
v1.6β
xoauth
~$ bounty $~
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/sms-backup-plus-jberkel#774
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @hydrargyrum on GitHub (Aug 17, 2019).
Original GitHub issue: https://github.com/jberkel/sms-backup-plus/issues/974
It might sound out of scope for this app, but it would be nice if it were possible to export SMSes to a local file instead of only imap/gmail. It's SMS backup so it can still fit in this app.
For the format, there's a "de facto standard" XML used by non-opensource app sms-backup-and-restore.
@lesmana commented on GitHub (Sep 20, 2019):
duplicate of https://github.com/jberkel/sms-backup-plus/issues/749
@Techwolf commented on GitHub (Feb 1, 2020):
I second this. There is no upvote on issue, only thing I can do is leave a "me too" comment.
Big plus if it can read and import from contacts.db and mmsms.db that was recovered from a nandroid backup.
@hydrargyrum commented on GitHub (Feb 12, 2020):
Since this feature is primordial to me, and with the lack of response, I made my own app. It only dumps for now but it may be enough for some people like me: Epistolaire. App on F-Droid, and github repository
@kurahaupo commented on GitHub (May 3, 2020):
@hydrargyrum well done, thankyou.
As you may have gathered, the future for this app lies in integration with email.
Relatively few users actually care about keeping messages in the SMS app on their phone, when it's so much easier to see SMSes in the context of other communications including gmail & hangouts.
@kurahaupo commented on GitHub (May 3, 2020):
Do you think it would be useful to share a common library?
@hydrargyrum commented on GitHub (May 3, 2020):
@kurahaupo,
The backup can be transferred to a workstation. In the Epistolaire repository, you'll find a Python converter script that converts SMSes and MMSes to Maildir, which you can easily use to push to an SMTP server.
Of course! I'm quite new to android programming so I'm not sure how to make a shared library.
The heavy lifting work is done in https://github.com/hydrargyrum/epistolaire/blob/master/app/src/main/java/re/indigo/epistolaire/MmsDumper.kt Functions return
org.json.JSONObjectinstances rather than custom classes, but any code can extract data fromorg.json.JSONObjectvalues.How do you see it? (Anyway, I published in public domain so you can do whatever you want)
@kurahaupo commented on GitHub (May 22, 2020):
Thanks for that. I will keep an eye on this subject.
It occurs to me that installing an IMAP server on ones phone would solve a number of problems all at once.
@kurahaupo commented on GitHub (May 28, 2020):
In closed ticket #979 @pintspin wrote:
@kurahaupo commented on GitHub (May 28, 2020):
Please read the substantive technical discussion and rationale in #749 before commenting here.
In particular @jberkel wrote there:
@ell1e commented on GitHub (Jun 9, 2020):
I think all arguments pale given the naming of the app. It's SMS Backup, I wanted to backup my text messages to a local file. I can't, so not adding this fails to fulfill the basic promise of the app and I ended up here via googling where the button was, as well as uninstalling the app again. If this is not what it was meant to do, maybe it should be renamed to "SMS IMAP Sync" to stop misleading users, otherwise I recommend adding this feature.
Regarding the privacy policy:
This really is a non-issue if it is by user request. Just write into the privacy policy the app won't ever store data locally unless the user asks to store it locally, in which case it is up to the user to delete or take care of it. It's not that hard. (disclaimer: I'm not a lawyer)
@kurahaupo commented on GitHub (Jun 11, 2020):
@ell1e FYI having "Backup" in the name has been an obstacle to using XOAuth to access Gmail, because that means that the review team at Google classified the app as "not a program whose principal purpose is to allow the user to send and receive email". There's a moderate chance that they will relent if it is renamed and marketed as a plugin to any standard email program.
One possible future for this project is forking into multiple cooperating apps: one which manages the interaction with Gmail, with its permissions tuned so that it can pass Google's requirements for "sensitive scope" access (and thus restore XOAuth access), and at least one other that manages non-email functions. (There is precedent for this approach: projects such as OpenIntents have suites of cooperating apps where each has only the minimal permissions it needs to perform its own job.)
A "local file" plugin would certainly be possible then.
In the meantime, I recommend you look at
@pintspin's ReadSMS project
NB: I'm only a minor contributor; it's up to the principal developer @jberkel to say for sure.
@kurahaupo commented on GitHub (Jun 14, 2020):
@ell1e some further thoughts:
I agree that it seems odd to say that saving to a local file violates the privacy policy when that would only be done at the explicit request of the user. However the current privacy policy is unequivocal on this point, so the first step would need to be an amendment to the privacy policy, and amendments must always be notified to users when they upgrade from an older version, regardless of how trivial the modification is. That notification itself requires coding effort, even if it's just to add a note to the new configuration section pointing out that the privacy policy has changed.
I would argue that an app that only wrote to a local file and called itself "SMS Backup+" would be more misleading to a naïve user, since the most common way that people lose access to their SMSes is by losing or destroying their device. And I am not sympathetic to arguments against "using the cloud" per se, since it is straightforward to configure SMS Backup+ to use one's own IMAP server.
That said, having more ways of connecting to external services and devices would be better, and a modular approach would assist with that.
Some related features that have been requested:
However I note that:
@h2oforlife commented on GitHub (Sep 30, 2020):
For me this is also a must have function. And unfortunately there is no proper solution for this atm.
With proper I mean, foss, with functions to export / import, schedule, destination folder, encrypt export, without need of google services.
I would pay for an app like this.
@kurahaupo commented on GitHub (Sep 30, 2020):
@rubensudos see the local-save solution by @pintspin mentioned above (and in closed ticket #979).
@h2oforlife commented on GitHub (Sep 30, 2020):
Thanks for the fast reply.
I just can't believe that there's no decent option to backup an android device without using big tech spyware and trade my data for a free service to be able to do a simple backup. Something as simple and fundamental as that, not possible.
@hydrargyrum commented on GitHub (Sep 30, 2020):
self-advertising: @rubensudos https://f-droid.org/packages/re.indigo.epistolaire/ backups sms and mms locally and is open-source
@h2oforlife commented on GitHub (Sep 30, 2020):
Thanks for the info and thanks for the awesome work.
But unfortunately is not something I could use because when I make backups is to be able to restore the previous state of the device in case something happens to it and I believe this app doesnt have an option to restore SMS, etc back to the device or does it?
@kurahaupo commented on GitHub (Oct 2, 2020):
If anything cares to implement an IMAP server that runs inside the phone (and obviously, only listens on localhost), SMS Backup+ could use that to both save and restore state.
Obviously that makes the restoration process a bit more cumbersome, but it will "just work".
@HT-7 commented on GitHub (Mar 10, 2025):
Agreed. Why bother with gmail accounts if you can simply drop a file in internal storage? Doesn't even require a Google account or Internet connection!
@HT-7 commented on GitHub (Mar 10, 2025):
And if it really were an issue, another possibility is letting the user store it in an encrypted ZIP file.
From #749:
That's why lock screens exist. Data in internal storage is inaccessible without unlocking the phone. The data is under the control of the end user.
If you're so concerned, maybe let the user put it in an encrypted ZIP file.
@HT-7 commented on GitHub (Mar 13, 2025):
From #1046:
Things like these show once again why an option to export locally is needed. It does not depend on an external account system to work flawlessly.
Dependence on an online service for something that could just as well be done locally = digital tenancy.
Just cut out the middleman entirely.