Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Multi-SIM phones #598

Open
yuphorian6 opened this issue Sep 24, 2015 · 31 comments
Open

Support Multi-SIM phones #598

yuphorian6 opened this issue Sep 24, 2015 · 31 comments

Comments

@yuphorian6
Copy link

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
Copy link

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

@jberkel
Copy link
Owner

jberkel commented Feb 7, 2016

Dual sim, #611

@yuphorian6
Copy link
Author

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
Copy link

Ezwen commented 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 :).

@jberkel
Copy link
Owner

jberkel commented 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.

@Ezwen
Copy link

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

@jberkel
Copy link
Owner

jberkel commented 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.

@Ezwen
Copy link

Ezwen commented 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.

@yuphorian6
Copy link
Author

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
Copy link
Owner

jberkel commented 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.

@Cyber1000
Copy link

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

@Cyber1000
Copy link

Cyber1000 commented 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

@jberkel jberkel added this to the 1.6.0 milestone Mar 28, 2018
@jberkel jberkel changed the title better handle dual sim phone's sms and call log data. Support Multi-SIM phones Mar 29, 2018
@krist0ph3r
Copy link

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

@kurahaupo
Copy link
Collaborator

kurahaupo commented 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.

@KoolPal
Copy link

KoolPal commented Jul 18, 2020

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

@kurahaupo
Copy link
Collaborator

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

@KoolPal
Copy link

KoolPal commented 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.

@kurahaupo
Copy link
Collaborator

@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
Copy link
Collaborator

Square tuits are much less effective than round ones.

@schneemaier
Copy link

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

@kurahaupo kurahaupo self-assigned this Feb 9, 2021
@kurahaupo kurahaupo pinned this issue Feb 9, 2021
@Cyber1000
Copy link

Maybe I can have a look on it, I got it working some years before (see #598 (comment)), 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
Copy link

Vaentus commented 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.

@hieu76
Copy link

hieu76 commented Nov 28, 2021 via email

@Cyber1000
Copy link

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
Copy link

Vaentus commented Jul 31, 2022

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

@Cyber1000
Copy link

@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
Copy link
Collaborator

@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
Copy link

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

@Vaentus
Copy link

Vaentus commented 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

@amuagarwal
Copy link

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

@marclaporte
Copy link

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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests