From 195a75e47e9ceda4ee6f8a24a64ea1653c3384cb Mon Sep 17 00:00:00 2001 From: Chiachang Wang Date: Fri, 18 Dec 2020 17:44:33 +0800 Subject: [PATCH] Update getMobileProvisioningUrl to telephony surface ConnectivityService is going to become mainline and can not access hidden APIs. The mobile provisioning url is used by telephony and it will use the hidden xml parsing APIs. It also would make more sense to have the parsing inside telephony code. Thus, move getMobileProvisioningUrl parsing to telephony surface from ConnectivitySerivce and update the corresponding callers. Bug: 175177794 Test: m and verify the url could be read successfully from the telephony surface Change-Id: Ie8b46bc9b652f926277b10e36a86adba4dbd0121 --- .../settings/network/MobilePlanPreferenceController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/settings/network/MobilePlanPreferenceController.java b/src/com/android/settings/network/MobilePlanPreferenceController.java index 255dfcd99a6..b4135b8b6f8 100644 --- a/src/com/android/settings/network/MobilePlanPreferenceController.java +++ b/src/com/android/settings/network/MobilePlanPreferenceController.java @@ -145,7 +145,7 @@ public class MobilePlanPreferenceController extends AbstractPreferenceController } // Get provisioning URL - String url = mCm.getMobileProvisioningUrl(); + String url = mTm.getMobileProvisioningUrl(); if (!TextUtils.isEmpty(url)) { Intent intent = Intent.makeMainSelectorActivity(Intent.ACTION_MAIN, Intent.CATEGORY_APP_BROWSER);