jberkel / sms-backup-plus

Backup Android SMS, MMS and call log to Gmail / Gcal / IMAP
https://play.google.com/store/apps/details?id=com.zegoggles.smssync
Apache License 2.0
1.81k stars 499 forks source link

Support Multi-SIM phones #598

Open yuphorian6 opened 9 years ago

yuphorian6 commented 9 years ago

Dual sim phones keep track of messages and call logs to which sim they are related.

Sms backup plus doesn't have the option to keep track of sim specific sms and call log data.

it would be ideal to have sms backup plus differentiate sim1 and sim2 data, and then backup data with respective labels, so that when restoring data, sim1 and sim2 data are well separated (just as they were before backing up).

Gargarospo commented 9 years ago

Interesting request! I never thought about it, but now I do think that it would be a very interesting feature!

jberkel commented 8 years ago

Dual sim, #611

yuphorian6 commented 8 years ago

Can this have a user defined sim1 and sim2 phone numbers within the app? And every backup or restore entry having

from phone number. to phone number. contact name if present. time and duration values.

Ezwen commented 8 years ago

+1, I now have two sim cards, and it seems that only messages from one sim card are saved. But maybe I did something wrong in the configuration :).

jberkel commented 8 years ago

@Gwend4l which version of Android do you use? Which messages get backed up properly, from the 1st or 2nd sim?

It looks like there are some official APIs providing multi-sim support in Android 5.1: https://developer.android.com/about/versions/android-5.1.html#multisim

However I could not find any documentation about simulating a device with 2 sims with in the emulator, so this might be tricky to test.

Ezwen commented 8 years ago

I see, it might be difficult for you to test it... If you manage to implement something at some point, I can help you by testing some builds on my phone.

I am using Android 4.4.4, and the messages from the first sim were backed up very well! Very nice app by the way :)

jberkel commented 8 years ago

Alright, thanks, will let you know. Another thing worth trying might be to upgrade to 5.1 or newer. But just guessing here. A few other people have reported problems with dual sims, haven't been able to track down the exact cause.

Ezwen commented 8 years ago

Unfortunately it is impossible to upgrade my phone, which is a Fairphone 1 (no update provided by either the constructor or the community). I'll let you know if I find some time to investigate a bit the issue myself.

yuphorian6 commented 8 years ago

I have yu yureka with cyanogenmod 12.0 (android 5.0.2) dual sim phone. The call logs and messages are well separated in the phone. There is no issue backing up 2nd sims calls and messages. But sms backup app backs up everything so that when they are restored, all entries come under sim1.

I have no issues making calls or messages using any sim in my device. Maybe cyanogenmod 12 has apis that android 5.0 doesn't.

I can help testing this feature on my phone with cyanogenmod 12 (android 5.0.2) . Or I will upgrade to cyanogenmod 12.1 (android 5.1.1) if it is necessary.

jberkel commented 8 years ago

@bharat226g good to hear it's working for you. OK, so the the main thing is that in a dual SIM situation the restore process needs to take that into account.

Cyber1000 commented 6 years ago

Any plans to implement this? (separating messages/calls from dual sim)

Cyber1000 commented 6 years ago

Ok I've a solution to this: https://github.com/Cyber1000/sms-backup-plus/tree/Cyber1000-old-multi-sim

I think it's not ready for a pullrequest yet, but you may use (and test it from there):

How it works:

krist0ph3r commented 6 years ago

I love SMS Backup+, and have it on every Android phone I've ever used. It's very heartening to see the dual sim backup thread getting some activity, as I don't think any other app reliably supports this yet. I need to leave my local sim at home when I travel abroad, but I need SMS as it's used to validate a few apps. I tried inserting the sim in my dad's phone (Redmi 4a, MIUI, Android 7.1.2), but SMS Backup+ only backs up sim1 messages, which is my dad's sim. I'm not concerned with the restore bit, as I'd rather leave my SMS in gmail. I'll be happy to test the feature if required.

ps: If you get this working, my wife and I will donate you a coffee or two! ;)

kurahaupo commented 4 years ago

Feature request #1007 wants completely separate IMAP services for two SIMs. That would imply other configuration items being separable as well, possibly including whether each is IMAP or Gmail/XOAUTH.

To discourage people from configuring the same IMAP service twice (implying two connections to it, which works badly with some IMAP servers), I suggest starting the configuration settings for the second SIM with a checkbox “Use same account as SIM1”, which would be on by default, and would disable all except the folder or label field.

KoolPal commented 4 years ago

Just wanted to check if there are any plans to introduce this feature. Thanks

kurahaupo commented 4 years ago

Since I have a multi-SIM phone myself, yes, but I need to get some tuits first.

KoolPal commented 4 years ago

Since I have a multi-SIM phone myself, yes, but I need to get some tuits first.

Sorry, did not understand the tuits bit.

kurahaupo commented 4 years ago

@KoolPal "tuit" started as a pun in English:

Latterly "I need some tuits" is shorthand for something like "I need more time, energy, encouragement and inspiration to work on it". Or simply "I need to be less lazy".

kurahaupo commented 4 years ago

Square tuits are much less effective than round ones.

schneemaier commented 3 years ago

I just upgraded to a dual sim phone and realized that this feature does not exists in SMS Backup+

Would be nice to track and attache different labels to the backed up SMS' and also to be able to specify different calendar per SIM if you upload the call log to Goolge Calendar

Cyber1000 commented 3 years ago

Maybe I can have a look on it, I got it working some years before (see https://github.com/jberkel/sms-backup-plus/issues/598#issuecomment-336426372), but only used it on my honor 8 and I was uncertain if it will work on other smartphones and it was also rather messy (no tests, only one IMAP possible, just added _1 and _2 to the label - e.g. SMS_1 and SMS_2) On my new Samsung multisim isn't recognized, maybe android 10 (soon 11) is too new here.

Just got the gradlew build working within a docker container (didn't want to mess my system with an old jdk and other things), trying to debug with vscode will be the next step.

Vaentus commented 2 years ago

Please let me know if there is ANYTHING I can do to help. I have loved using smsbackup+ ever since my first phone and would be overjoyed to show my appreciation and contribute in anyway I can. Dual sim phone arriving tomorrow and I need a way to backup personal texts/calls to my personal email and work texts/calls to my work email.

hieu76 commented 2 years ago

Vào 4:51, CN, 31 thg 10, 2021 Vaentus @.***> đã viết:

Please let me know if there is ANYTHING I can do to help. I have loved using smsbackup+ ever since my first phone and would be overjoyed to show my appreciation and contribute in anyway I can. Dual sim phone arriving tomorrow and I need a way to backup personal texts/calls to my personal email and work texts/calls to my work email.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jberkel/sms-backup-plus/issues/598#issuecomment-955598097, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHG3HMHKSYTR5KHXLFOBM53UJRSGNANCNFSM4BQN4V2Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Cyber1000 commented 2 years ago

Well, added support for multisim, finally got some tuits ;-) Works on my Samsung with gmail (via imap) - see the screenshots in linked PR. Hope it works for others too!

Vaentus commented 2 years ago

but but but how?!?! Your screenshots look perfect @Cyber1000 but I am naught more than a simple nerf herder

Cyber1000 commented 2 years ago

@Vaentus ok saw your comment on the PR before ;-) The problem is that nobody (who owns this repo or has authoring rights) has reviewed my PR and therefore it's not in the official apk. I'll have a look if I can somehow provide one easily on my github page in the next 2 weeks for people who want to try this before.

kurahaupo commented 2 years ago

@Cyber1000 I have a multi-SIM phone myself, so I'm keen to test this, and I have partial admin access to this repo, which means I can vet & assign tickets but not much else.

Can I pick your brains privately?

amuagarwal commented 2 years ago

Any date planned to get the build here on release page or playstore?

Vaentus commented 2 years ago

@Cyber1000 :D dreams do come true, or at least are in process of coming true! Thank you kindly good sir, I will keep an eye on your github page, I'd prefer not to root my phone but for you/smsbackup+ I shall if so required

amuagarwal commented 1 year ago

Any update or APK which can be installed for this implemented feature?

marclaporte commented 8 months ago

FYI, another similar Open Source project handles email backups of SMSs with multi-SIM: https://gitlab.com/axet/android-sms-gate/-/issues/44

But call logs are not supported. I don't know about restores.