[GH-ISSUE #598] Support Multi-SIM phones #510

Open
opened 2026-02-26 01:30:48 +03:00 by kerem · 31 comments
Owner

Originally created by @yuphorian6 on GitHub (Sep 24, 2015).
Original GitHub issue: https://github.com/jberkel/sms-backup-plus/issues/598

Originally assigned to: @jberkel, @kurahaupo on GitHub.

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

Originally created by @yuphorian6 on GitHub (Sep 24, 2015). Original GitHub issue: https://github.com/jberkel/sms-backup-plus/issues/598 Originally assigned to: @jberkel, @kurahaupo on GitHub. 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).
Author
Owner

@Gargarospo commented on GitHub (Sep 25, 2015):

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

<!-- gh-comment-id:143146131 --> @Gargarospo commented on GitHub (Sep 25, 2015): Interesting request! I never thought about it, but now I do think that it would be a very interesting feature!
Author
Owner

@jberkel commented on GitHub (Feb 7, 2016):

Dual sim, #611

<!-- gh-comment-id:181021699 --> @jberkel commented on GitHub (Feb 7, 2016): Dual sim, #611
Author
Owner

@yuphorian6 commented on GitHub (Feb 8, 2016):

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.

<!-- gh-comment-id:181223088 --> @yuphorian6 commented on GitHub (Feb 8, 2016): 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.
Author
Owner

@Ezwen commented on GitHub (Mar 10, 2016):

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

<!-- gh-comment-id:194927329 --> @Ezwen commented on GitHub (Mar 10, 2016): +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 :).
Author
Owner

@jberkel commented on GitHub (Mar 10, 2016):

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

<!-- gh-comment-id:194933306 --> @jberkel commented on GitHub (Mar 10, 2016): @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.
Author
Owner

@Ezwen commented on GitHub (Mar 10, 2016):

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

<!-- gh-comment-id:194936034 --> @Ezwen commented on GitHub (Mar 10, 2016): 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 :)
Author
Owner

@jberkel commented on GitHub (Mar 10, 2016):

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.

<!-- gh-comment-id:194940377 --> @jberkel commented on GitHub (Mar 10, 2016): 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.
Author
Owner

@Ezwen commented on GitHub (Mar 10, 2016):

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.

<!-- gh-comment-id:194951203 --> @Ezwen commented on GitHub (Mar 10, 2016): 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.
Author
Owner

@yuphorian6 commented on GitHub (Mar 10, 2016):

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.

<!-- gh-comment-id:194969564 --> @yuphorian6 commented on GitHub (Mar 10, 2016): 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.
Author
Owner

@jberkel commented on GitHub (Mar 10, 2016):

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

<!-- gh-comment-id:194988457 --> @jberkel commented on GitHub (Mar 10, 2016): @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.
Author
Owner

@Cyber1000 commented on GitHub (Oct 10, 2017):

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

<!-- gh-comment-id:335546204 --> @Cyber1000 commented on GitHub (Oct 10, 2017): Any plans to implement this? (separating messages/calls from dual sim)
Author
Owner

@Cyber1000 commented on GitHub (Oct 13, 2017):

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
<!-- gh-comment-id:336426372 --> @Cyber1000 commented on GitHub (Oct 13, 2017): 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
Author
Owner

@krist0ph3r commented on GitHub (May 4, 2018):

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

<!-- gh-comment-id:386535308 --> @krist0ph3r commented on GitHub (May 4, 2018): 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! ;)
Author
Owner

@kurahaupo commented on GitHub (Jan 3, 2020):

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.

<!-- gh-comment-id:570450448 --> @kurahaupo commented on GitHub (Jan 3, 2020): 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.
Author
Owner

@KoolPal commented on GitHub (Jul 18, 2020):

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

<!-- gh-comment-id:660491106 --> @KoolPal commented on GitHub (Jul 18, 2020): Just wanted to check if there are any plans to introduce this feature. Thanks
Author
Owner

@kurahaupo commented on GitHub (Oct 1, 2020):

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

<!-- gh-comment-id:702417946 --> @kurahaupo commented on GitHub (Oct 1, 2020): Since I have a multi-SIM phone myself, _yes_, but I need to get some tuits first.
Author
Owner

@KoolPal commented on GitHub (Oct 2, 2020):

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

Sorry, did not understand the tuits bit.

<!-- gh-comment-id:702534294 --> @KoolPal commented on GitHub (Oct 2, 2020): > > > Since I have a multi-SIM phone myself, _yes_, but I need to get some tuits first. Sorry, did not understand the **tuits** bit.
Author
Owner

@kurahaupo commented on GitHub (Oct 3, 2020):

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

<!-- gh-comment-id:703041120 --> @kurahaupo commented on GitHub (Oct 3, 2020): @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".
Author
Owner

@kurahaupo commented on GitHub (Oct 3, 2020):

Square tuits are much less effective than round ones.

<!-- gh-comment-id:703041183 --> @kurahaupo commented on GitHub (Oct 3, 2020): Square _tuits_ are much less effective than round ones.
Author
Owner

@schneemaier commented on GitHub (Dec 5, 2020):

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

<!-- gh-comment-id:739314074 --> @schneemaier commented on GitHub (Dec 5, 2020): 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
Author
Owner

@Cyber1000 commented on GitHub (May 11, 2021):

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.

<!-- gh-comment-id:837544828 --> @Cyber1000 commented on GitHub (May 11, 2021): 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.
Author
Owner

@Vaentus commented on GitHub (Oct 30, 2021):

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.

<!-- gh-comment-id:955598097 --> @Vaentus commented on GitHub (Oct 30, 2021): 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.
Author
Owner

@hieu76 commented on GitHub (Nov 28, 2021):

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.

<!-- gh-comment-id:980816307 --> @hieu76 commented on GitHub (Nov 28, 2021): 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>. > >
Author
Owner

@Cyber1000 commented on GitHub (May 28, 2022):

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!

<!-- gh-comment-id:1140331649 --> @Cyber1000 commented on GitHub (May 28, 2022): 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!
Author
Owner

@Vaentus commented on GitHub (Jul 31, 2022):

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

<!-- gh-comment-id:1200484450 --> @Vaentus commented on GitHub (Jul 31, 2022): but but but how?!?! Your screenshots look perfect @Cyber1000 but I am naught more than a simple nerf herder
Author
Owner

@Cyber1000 commented on GitHub (Sep 2, 2022):

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

<!-- gh-comment-id:1235216861 --> @Cyber1000 commented on GitHub (Sep 2, 2022): @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.
Author
Owner

@kurahaupo commented on GitHub (Sep 3, 2022):

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

<!-- gh-comment-id:1236079840 --> @kurahaupo commented on GitHub (Sep 3, 2022): @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?
Author
Owner

@amuagarwal commented on GitHub (Sep 13, 2022):

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

<!-- gh-comment-id:1244969048 --> @amuagarwal commented on GitHub (Sep 13, 2022): Any date planned to get the build here on release page or playstore?
Author
Owner

@Vaentus commented on GitHub (Sep 13, 2022):

@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

<!-- gh-comment-id:1245450395 --> @Vaentus commented on GitHub (Sep 13, 2022): @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
Author
Owner

@amuagarwal commented on GitHub (Oct 31, 2022):

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

<!-- gh-comment-id:1296585701 --> @amuagarwal commented on GitHub (Oct 31, 2022): Any update or APK which can be installed for this implemented feature?
Author
Owner

@marclaporte commented on GitHub (Jan 24, 2024):

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.

<!-- gh-comment-id:1908845097 --> @marclaporte commented on GitHub (Jan 24, 2024): 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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/sms-backup-plus-jberkel#510
No description provided.