dual-sim

Turning off second SIM via adb shell/Tasker - using activities/intents

僤鯓⒐⒋嵵緔 提交于 2020-08-26 08:06:38
问题 I have a Xiaomi Mi6, which supports two SIMs. I need to figure out how I can switch the second SIM (SIM2) off outside business hours using Tasker. I've got as far as figuring out how to open the settings page for SIM2 with Tasker: Action: android.intent.action.MAIN Cat: Launcher Extra 1: subscription_id:1 Extra 2: slot_id:1 Package: com.android.phone Class: com.android.phone.settings.MultiSimInfoEditorActivity Target: Activity which brings up the settings page for SIM2, like so. However, I

Turning off second SIM via adb shell/Tasker - using activities/intents

心已入冬 提交于 2020-08-26 08:05:21
问题 I have a Xiaomi Mi6, which supports two SIMs. I need to figure out how I can switch the second SIM (SIM2) off outside business hours using Tasker. I've got as far as figuring out how to open the settings page for SIM2 with Tasker: Action: android.intent.action.MAIN Cat: Launcher Extra 1: subscription_id:1 Extra 2: slot_id:1 Package: com.android.phone Class: com.android.phone.settings.MultiSimInfoEditorActivity Target: Activity which brings up the settings page for SIM2, like so. However, I

SubscriptionManager to read IMSI for dual SIM devices ruuning Android 5.1+

我只是一个虾纸丫 提交于 2020-07-19 05:52:11
问题 For API 22+ I am trying to use SubscriptionManager to read dual SIM IMSI. The IMSI is a 14 to 15 characters in the following format: "MCC-MNC-MSIN" MCC = Mobile Country Code (e.g. 310 for USA); MNC = Mobile Network Code (e.g. 410 for AT&T), MSIN = sequential serial number. There is no method in the class to get the IMSI. There are methods to get both MCC & MNC but not MSIN. So my question is, how to get the full IMSI using SubscriptionManager? Update: SubscriptionManager returns wrong/same

SubscriptionManager to read IMSI for dual SIM devices ruuning Android 5.1+

荒凉一梦 提交于 2020-07-19 05:51:20
问题 For API 22+ I am trying to use SubscriptionManager to read dual SIM IMSI. The IMSI is a 14 to 15 characters in the following format: "MCC-MNC-MSIN" MCC = Mobile Country Code (e.g. 310 for USA); MNC = Mobile Network Code (e.g. 410 for AT&T), MSIN = sequential serial number. There is no method in the class to get the IMSI. There are methods to get both MCC & MNC but not MSIN. So my question is, how to get the full IMSI using SubscriptionManager? Update: SubscriptionManager returns wrong/same

SubscriptionManager to read IMSI for dual SIM devices ruuning Android 5.1+

那年仲夏 提交于 2020-07-19 05:51:07
问题 For API 22+ I am trying to use SubscriptionManager to read dual SIM IMSI. The IMSI is a 14 to 15 characters in the following format: "MCC-MNC-MSIN" MCC = Mobile Country Code (e.g. 310 for USA); MNC = Mobile Network Code (e.g. 410 for AT&T), MSIN = sequential serial number. There is no method in the class to get the IMSI. There are methods to get both MCC & MNC but not MSIN. So my question is, how to get the full IMSI using SubscriptionManager? Update: SubscriptionManager returns wrong/same

Sending message automatically in Dual Sim

你离开我真会死。 提交于 2020-01-25 17:37:53
问题 I am developing an app that requires sending messages automatically for hardware button press. It is working nice in single SIM phone, but not in dual SIM. So is there any way to set the default SIM while sending message or making a voice call programmatically when using dual SIM phones? 回答1: ContentValues val = new ContentValues(); val.put("value", "here goes the preferred SIM ID"); getContentResolver().update(Uri.parse("content://settings/system"), val, "name='sms_sim_setting'", null); This

How to find target sim for an incoming call in dual sim android phone?

断了今生、忘了曾经 提交于 2020-01-24 17:24:31
问题 I am creating an android application in which I need to detect the target sim for an incoming call in dual sim phone. The Android API provides the access of only one SIM. I did googling about this but couldn't find the solution, All I found is that we can not detect the target SIM because this is depend upon the device manufactures. Is there any API available to detect the target SIM ? 回答1: in lollipop 22+ public class MessageReceiver extends BroadcastReceiver { @Override public void

Get the SIM number used on a call through the call log of Android

那年仲夏 提交于 2020-01-13 19:23:09
问题 I know Android SDK is big mess for dual SIM support, but stock dialer shows this information on call log which SIM card ( 1 or 2) was used in a call. I guess it´s stored on call log default database and just want to know if it is possible to retrieve it as simple as possible. I don´t need to know if the SIM is the current one in use. By the way, probably the call log became3s a big mess if you change the Sim cards... but it is another subject and does not matter for me (at the moment ;-) My

Android - How to place a call through specific sim in dual sim phone?

人走茶凉 提交于 2020-01-02 15:27:42
问题 I am not able to set the default sim for calling. I am trying to alter the system settings to change the default sim every before I sent the ACTION_CALL intent but ever time I am getting the sim selection dialog public class CallUtil { public static void sendCallIntent(Context context, String number) { Intent intent = new Intent(Intent.ACTION_CALL) .setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); intent.setData(Uri.parse("tel:" + number)); setDefaultSim(context); if (ActivityCompat

Android Dual Sim Emulator

我只是一个虾纸丫 提交于 2020-01-01 07:53:07
问题 How can I emulate an Android device with Dual sim support? It's important that the Android level is 5.1 or higher. This emulator is intended to send/receive SMS 回答1: May this is help you: Buddy in Document it is said that Emulators are supported with simulated SimCard.. "A GSM modem, including a simulated SIM Card" More Information And There are some patches available which allows sim card support in emulator using standard USB PCSC reader... Here are some links which may guide you through..