sms-backup-plus icon indicating copy to clipboard operation
sms-backup-plus copied to clipboard

Support Multi-SIM phones

Open yuphorian6 opened this issue 8 years ago • 31 comments

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).

yuphorian6 avatar Sep 24 '15 22:09 yuphorian6

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

Gargarospo avatar Sep 25 '15 07:09 Gargarospo

Dual sim, #611

jberkel avatar Feb 07 '16 14:02 jberkel

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.

yuphorian6 avatar Feb 08 '16 06:02 yuphorian6

+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 :).

Ezwen avatar Mar 10 '16 16:03 Ezwen

@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.

jberkel avatar Mar 10 '16 16:03 jberkel

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 :)

Ezwen avatar Mar 10 '16 16:03 Ezwen

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.

jberkel avatar Mar 10 '16 16:03 jberkel

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.

Ezwen avatar Mar 10 '16 16:03 Ezwen

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.

yuphorian6 avatar Mar 10 '16 17:03 yuphorian6

@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.

jberkel avatar Mar 10 '16 18:03 jberkel

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

Cyber1000 avatar Oct 10 '17 17:10 Cyber1000

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):

  • I've written no new tests
  • I've tried it with my Honor 8 with dualsim and it works
  • Recognition of dualsim should work from API 22 (Android 5.1) onwards
  • I haven't tried it with a singlesim or Pre-Android-5.1-Mobile, althought I'm quite confident that old behaviour is still the same
  • Restore will definitely not work with dualsim (but should still with singlesim), but my primary issue was to save my messages and not restore them on new phones. Don't have enough time to fix this.

How it works:

  • In Settings you have a new flag "Handle Multisim", it is also translated to german, but no other language
  • If you activate it and your Gmail-Folder is given as "SMS", there will be a folder "SMS_1" and "SMS_2" instead.
  • SMS_1 is your first Simcard, SMS_2 is your second. At least my "Honor 8" works that way. My first thoughts were using something "SMS_{Your phone number}" which would be better, also if you change to a new mobile, it wouldn't be dependant on the numbering of your new mobile. But that was the easy way for now, perhaps I change it later, you can manually change labels in gmail, so there is no pressure to do it now ...
  • Should work for SMS, MMS (not tested, don't use them) and Call logs

Cyber1000 avatar Oct 13 '17 11:10 Cyber1000

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! ;)

krist0ph3r avatar May 04 '18 08:05 krist0ph3r

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.

kurahaupo avatar Jan 03 '20 03:01 kurahaupo

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

KoolPal avatar Jul 18 '20 14:07 KoolPal

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

kurahaupo avatar Oct 01 '20 21:10 kurahaupo

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

Sorry, did not understand the tuits bit.

KoolPal avatar Oct 02 '20 05:10 KoolPal

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

  • I'll do it when I get a round tuit
  • I'll do it when I get around to it.

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 avatar Oct 03 '20 03:10 kurahaupo

Square tuits are much less effective than round ones.

kurahaupo avatar Oct 03 '20 03:10 kurahaupo

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

schneemaier avatar Dec 05 '20 15:12 schneemaier

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.

Cyber1000 avatar May 11 '21 00:05 Cyber1000

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.

Vaentus avatar Oct 30 '21 21:10 Vaentus

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.

hieu76 avatar Nov 28 '21 01:11 hieu76

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!

Cyber1000 avatar May 28 '22 21:05 Cyber1000

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

Vaentus avatar Jul 31 '22 19:07 Vaentus

@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.

Cyber1000 avatar Sep 02 '22 08:09 Cyber1000

@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?

kurahaupo avatar Sep 03 '22 09:09 kurahaupo

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

amuagarwal avatar Sep 13 '22 06:09 amuagarwal

@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

Vaentus avatar Sep 13 '22 13:09 Vaentus

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

amuagarwal avatar Oct 31 '22 06:10 amuagarwal