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/PhoneGlobals.java b/src/com/android/phone/PhoneGlobals.java
index 48b2bf9..b931340 100644
--- a/src/com/android/phone/PhoneGlobals.java
+++ b/src/com/android/phone/PhoneGlobals.java
@@ -34,6 +34,7 @@
import android.media.AudioManager;
import android.net.Uri;
import android.os.AsyncResult;
+import android.os.Bundle;
import android.os.Handler;
import android.os.IBinder;
import android.os.IPowerManager;
@@ -509,6 +510,10 @@
return mCM;
}
+ /* package */ Bundle getCarrierConfig() {
+ return configLoader.getConfigForSubId(SubscriptionManager.getDefaultSubId());
+ }
+
/**
* Returns PendingIntent for hanging up ongoing phone call. This will typically be used from
* Notification context.