Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 55faf374 authored by Nazanin Bakhshi's avatar Nazanin Bakhshi Committed by Gerrit Code Review
Browse files

Merge "Make isRebootRequiredForModemConfigChange SystemApi"

parents c7ec1a89 0e3e93a0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -6343,6 +6343,7 @@ package android.telephony {
    method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public boolean isMultisimCarrierRestricted();
    method @Deprecated @RequiresPermission(anyOf={android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE, android.Manifest.permission.READ_PHONE_STATE}) public boolean isOffhook();
    method @Deprecated @RequiresPermission(anyOf={android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE, android.Manifest.permission.READ_PHONE_STATE}) public boolean isRadioOn();
    method @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) public boolean isRebootRequiredForModemConfigChange();
    method @Deprecated @RequiresPermission(anyOf={android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE, android.Manifest.permission.READ_PHONE_STATE}) public boolean isRinging();
    method @RequiresPermission(anyOf={android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE, android.Manifest.permission.READ_PHONE_STATE}) public boolean isVideoCallingEnabled();
    method @Deprecated @RequiresPermission(android.Manifest.permission.READ_PHONE_STATE) public boolean isVisualVoicemailEnabled(android.telecom.PhoneAccountHandle);
+5 −2
Original line number Diff line number Diff line
@@ -10166,11 +10166,14 @@ public class TelephonyManager {

    /**
     * Get whether reboot is required or not after making changes to modem configurations.
     * @Return {@code True} if reboot is required after making changes to modem configurations,
     * otherwise return {@code False}.
     * The modem configuration change refers to switching from single SIM configuration to DSDS
     * or the other way around.
     * @Return {@code true} if reboot is required after making changes to modem configurations,
     * otherwise return {@code false}.
     *
     * @hide
     */
    @SystemApi
    @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE)
    public boolean isRebootRequiredForModemConfigChange() {
        try {
+2 −1
Original line number Diff line number Diff line
@@ -1842,6 +1842,7 @@ interface ITelephony {
    int getNumOfActiveSims();
    /**
     * Get if reboot is required upon altering modems configurations
     * @hide
     */
    boolean isRebootRequiredForModemConfigChange();
}