multiSimAllowed should be consistent with max active modem property.

Bug: 153023231
Test: manual - using test app
Change-Id: I2d38dd9a0a860ee451fe51372a62c2910b88c88f
This commit is contained in:
Malcolm Chen
2020-04-02 10:54:50 -07:00
parent 2b93ea07f7
commit ba874c6827

View File

@@ -12337,6 +12337,9 @@ public class TelephonyManager {
@RequiresPermission(android.Manifest.permission.READ_PHONE_STATE) @RequiresPermission(android.Manifest.permission.READ_PHONE_STATE)
@IsMultiSimSupportedResult @IsMultiSimSupportedResult
public int isMultiSimSupported() { public int isMultiSimSupported() {
if (getSupportedModemCount() < 2) {
return TelephonyManager.MULTISIM_NOT_SUPPORTED_BY_HARDWARE;
}
try { try {
ITelephony service = getITelephony(); ITelephony service = getITelephony();
if (service != null) { if (service != null) {