Wednesday, May 24, 2017

How to check the Android SIM count

getprop ro.multisim.simslotcount

or

SystemProperties.getInt("ro.multisim.simslotcount", 1) > 1

How to detect Dual SIM using Android shell ?


getprop persist.radio.multisim.config returns "dsds" or "dsda"   on multi sim Samsung devices

source: https://android.googlesource.com/platform/frameworks/base/+/master/telephony/java/com/android/internal/telephony/TelephonyProperties.java


    public static Boolean isDualSimModel() {
        return (Boolean.valueOf("dsds".equals(SystemProperties.get("persist.radio.multisim.config")))                    Boolean.valueOf("dsda".equals(SystemProperties.get("persist.radio.multisim.config"))));
    }