Loading services/core/java/com/android/server/TelephonyRegistry.java +18 −1 Original line number Diff line number Diff line Loading @@ -2803,6 +2803,11 @@ public class TelephonyRegistry extends ITelephonyRegistry.Stub { + " callback.asBinder=" + callback.asBinder()); } // In case this is triggered from the caller who has handled multiple SIM config change // firstly, we need to update the status (mNumPhone and mCarrierPrivilegeStates) firstly. // This is almost a no-op if there is no multiple SIM config change in advance. onMultiSimConfigChanged(); synchronized (mRecords) { if (!validatePhoneId(phoneId)) { throw new IllegalArgumentException("Invalid slot index: " + phoneId); Loading Loading @@ -2865,6 +2870,12 @@ public class TelephonyRegistry extends ITelephonyRegistry.Stub { + ", <packages=" + pii(privilegedPackageNames) + ", uids=" + Arrays.toString(privilegedUids) + ">"); } // In case this is triggered from the caller who has handled multiple SIM config change // firstly, we need to update the status (mNumPhone and mCarrierPrivilegeStates) firstly. // This is almost a no-op if there is no multiple SIM config change in advance. onMultiSimConfigChanged(); synchronized (mRecords) { if (!validatePhoneId(phoneId)) { throw new IllegalArgumentException("Invalid slot index: " + phoneId); Loading Loading @@ -2900,6 +2911,11 @@ public class TelephonyRegistry extends ITelephonyRegistry.Stub { + ", package=" + pii(packageName) + ", uid=" + uid); } // In case this is triggered from the caller who has handled multiple SIM config change // firstly, we need to update the status (mNumPhone and mCarrierServiceStates) firstly. // This is almost a no-op if there is no multiple SIM config change in advance. onMultiSimConfigChanged(); synchronized (mRecords) { mCarrierServiceStates.set( phoneId, new Pair<>(packageName, uid)); Loading Loading @@ -3365,7 +3381,8 @@ public class TelephonyRegistry extends ITelephonyRegistry.Stub { } private boolean validatePhoneId(int phoneId) { boolean valid = (phoneId >= 0) && (phoneId < mNumPhones); // Call getActiveModemCount to get the latest value instead of depending on mNumPhone boolean valid = (phoneId >= 0) && (phoneId < getTelephonyManager().getActiveModemCount()); if (VDBG) log("validatePhoneId: " + valid); return valid; } Loading Loading
services/core/java/com/android/server/TelephonyRegistry.java +18 −1 Original line number Diff line number Diff line Loading @@ -2803,6 +2803,11 @@ public class TelephonyRegistry extends ITelephonyRegistry.Stub { + " callback.asBinder=" + callback.asBinder()); } // In case this is triggered from the caller who has handled multiple SIM config change // firstly, we need to update the status (mNumPhone and mCarrierPrivilegeStates) firstly. // This is almost a no-op if there is no multiple SIM config change in advance. onMultiSimConfigChanged(); synchronized (mRecords) { if (!validatePhoneId(phoneId)) { throw new IllegalArgumentException("Invalid slot index: " + phoneId); Loading Loading @@ -2865,6 +2870,12 @@ public class TelephonyRegistry extends ITelephonyRegistry.Stub { + ", <packages=" + pii(privilegedPackageNames) + ", uids=" + Arrays.toString(privilegedUids) + ">"); } // In case this is triggered from the caller who has handled multiple SIM config change // firstly, we need to update the status (mNumPhone and mCarrierPrivilegeStates) firstly. // This is almost a no-op if there is no multiple SIM config change in advance. onMultiSimConfigChanged(); synchronized (mRecords) { if (!validatePhoneId(phoneId)) { throw new IllegalArgumentException("Invalid slot index: " + phoneId); Loading Loading @@ -2900,6 +2911,11 @@ public class TelephonyRegistry extends ITelephonyRegistry.Stub { + ", package=" + pii(packageName) + ", uid=" + uid); } // In case this is triggered from the caller who has handled multiple SIM config change // firstly, we need to update the status (mNumPhone and mCarrierServiceStates) firstly. // This is almost a no-op if there is no multiple SIM config change in advance. onMultiSimConfigChanged(); synchronized (mRecords) { mCarrierServiceStates.set( phoneId, new Pair<>(packageName, uid)); Loading Loading @@ -3365,7 +3381,8 @@ public class TelephonyRegistry extends ITelephonyRegistry.Stub { } private boolean validatePhoneId(int phoneId) { boolean valid = (phoneId >= 0) && (phoneId < mNumPhones); // Call getActiveModemCount to get the latest value instead of depending on mNumPhone boolean valid = (phoneId >= 0) && (phoneId < getTelephonyManager().getActiveModemCount()); if (VDBG) log("validatePhoneId: " + valid); return valid; } Loading