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
This commit is contained in:
goneil
2017-11-09 13:32:42 -08:00
parent 097af0fa8f
commit 8f5733897a
2 changed files with 3 additions and 0 deletions

View File

@@ -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());
}