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

Commit 8f573389 authored by goneil's avatar goneil
Browse files

Make TelephonyManager#getEmergencyCallbackMode SystemApi

BUG: 67750821
Test: android.telephony.cts.TelephonyManagerTest#testTelephonyManager().
Basic test to ensure that the method does not throw any exception.

Change-Id: I00f0e62803810b2650eba7562a84774369e917c6
parent 097af0fa
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -4110,6 +4110,7 @@ package android.telephony {
    method public int getCurrentPhoneType(int);
    method public deprecated boolean getDataEnabled();
    method public deprecated boolean getDataEnabled(int);
    method public boolean getEmergencyCallbackMode();
    method public java.util.List<android.telephony.TelephonyHistogram> getTelephonyHistograms();
    method public android.os.Bundle getVisualVoicemailSettings();
    method public boolean handlePinMmi(java.lang.String);
+2 −0
Original line number Diff line number Diff line
@@ -6866,6 +6866,8 @@ public class TelephonyManager {
     * @return true if phone is in emergency callback mode
     * @hide
     */
    @SystemApi
    @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE)
    public boolean getEmergencyCallbackMode() {
        return getEmergencyCallbackMode(getSubId());
    }