Wednesday, May 24, 2017

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"))));
    }

No comments:

Post a Comment