SDK API doesSwitchModemConfigTriggerReboot
Bug: 129424775
Change-Id: I4885140a41ac65f0401e63c0cb59888743be7799
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java
index f6f5d93..cf96626 100755
--- a/src/com/android/phone/PhoneInterfaceManager.java
+++ b/src/com/android/phone/PhoneInterfaceManager.java
@@ -6855,12 +6855,15 @@
}
/**
- * Get whether reboot is required or not after making changes to modem configurations.
- * Return value defaults to true
+ * Get whether making changes to modem configurations will trigger reboot.
+ * Return value defaults to true.
*/
@Override
- public boolean isRebootRequiredForModemConfigChange() {
- enforceReadPrivilegedPermission("isRebootRequiredForModemConfigChange");
+ public boolean doesSwitchMultiSimConfigTriggerReboot(int subId, String callingPackage) {
+ if (!TelephonyPermissions.checkCallingOrSelfReadPhoneState(
+ mApp, subId, callingPackage, "doesSwitchMultiSimConfigTriggerReboot")) {
+ return false;
+ }
final long identity = Binder.clearCallingIdentity();
try {
return mPhoneConfigurationManager.isRebootRequiredForModemConfigChange();