From cfe9e61ce4029da61b973f5b80fccafdde4c9cc3 Mon Sep 17 00:00:00 2001 From: Shuo Qian Date: Wed, 12 Apr 2017 22:11:17 +0000 Subject: ECBM SystemProperty cleanup - Add getEmergencyCallbackMode() method in the TelephonyManager.java to get the boolean value for ECBM callback mode from the phone through ITelephony.aidl/java interface - Use the added TelephonyManager Api to replace the 'get' of PROPERTY_INECM_MODE system property in the framework/base Change-Id: I83fbdeef5c0b43a8fc16ece044c9e191e9922bce Test: manual Bug: 30361624 --- .../java/com/android/internal/location/GpsNetInitiatedHandler.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'location/java/com') diff --git a/location/java/com/android/internal/location/GpsNetInitiatedHandler.java b/location/java/com/android/internal/location/GpsNetInitiatedHandler.java index 4c39c308ef87..6bc5e917aa32 100644 --- a/location/java/com/android/internal/location/GpsNetInitiatedHandler.java +++ b/location/java/com/android/internal/location/GpsNetInitiatedHandler.java @@ -242,8 +242,7 @@ public class GpsNetInitiatedHandler { } public boolean getInEmergency() { - boolean isInEmergencyCallback = Boolean.parseBoolean( - SystemProperties.get(TelephonyProperties.PROPERTY_INECM_MODE)); + boolean isInEmergencyCallback = mTelephonyManager.getEmergencyCallbackMode(); return mIsInEmergency || isInEmergencyCallback; } -- cgit v1.2.3-59-g8ed1b