Use carrierconfig instead of overlay to get USE_HFA_FOR_PROVISIONING and USE_OTASP_FOR_PROVISIONING.
Bug: b/20270007
Change-Id: Iddd60183f06459a317d87d568edd401aa533517d
diff --git a/src/com/android/phone/InCallScreenShowActivation.java b/src/com/android/phone/InCallScreenShowActivation.java
index 34710a1..3b5fe16 100644
--- a/src/com/android/phone/InCallScreenShowActivation.java
+++ b/src/com/android/phone/InCallScreenShowActivation.java
@@ -25,6 +25,7 @@
import android.os.Bundle;
import android.os.SystemProperties;
import android.provider.Settings;
+import android.telephony.CarrierConfigManager;
import android.util.Log;
import com.android.internal.telephony.Phone;
@@ -71,7 +72,8 @@
if (intent.getAction().equals(OtaUtils.ACTION_PERFORM_CDMA_PROVISIONING)) {
- boolean usesHfa = getResources().getBoolean(R.bool.config_use_hfa_for_provisioning);
+ Bundle carrierConfig = app.getCarrierConfig();
+ boolean usesHfa = carrierConfig.getBoolean(CarrierConfigManager.BOOL_USE_HFA_FOR_PROVISIONING);
if (usesHfa) {
Log.i(LOG_TAG, "Starting Hfa from ACTION_PERFORM_CDMA_PROVISIONING");
startHfa();
@@ -79,7 +81,7 @@
return;
}
- boolean usesOtasp = getResources().getBoolean(R.bool.config_use_otasp_for_provisioning);
+ boolean usesOtasp = carrierConfig.getBoolean(CarrierConfigManager.BOOL_USE_OTASP_FOR_PROVISIONING);
if (usesOtasp) {
// On voice-capable devices, we perform CDMA provisioning in
// "interactive" mode by directly launching the InCallScreen.