app link handling under restricted mobile data
new intent to notify registered carrier apps with default data change
Bug: 62487488
Test: Manual
Change-Id: I371cc88037d5135bac3d7dff1791460d9555edc1
diff --git a/src/com/android/phone/PhoneInterfaceManager.java b/src/com/android/phone/PhoneInterfaceManager.java
index f793a57..dbad37b 100644
--- a/src/com/android/phone/PhoneInterfaceManager.java
+++ b/src/com/android/phone/PhoneInterfaceManager.java
@@ -3778,6 +3778,30 @@
}
/**
+ * Action set from carrier signalling broadcast receivers to start/stop reporting the default
+ * network status based on which carrier apps could apply actions accordingly,
+ * enable/disable default url handler for example.
+ *
+ * @param subId the subscription ID that this action applies to.
+ * @param report control start/stop reporting the default network status.
+ * {@hide}
+ */
+ @Override
+ public void carrierActionReportDefaultNetworkStatus(int subId, boolean report) {
+ enforceModifyPermission();
+ final Phone phone = getPhone(subId);
+ if (phone == null) {
+ loge("carrierAction: ReportDefaultNetworkStatus fails with invalid sibId: " + subId);
+ return;
+ }
+ try {
+ phone.carrierActionReportDefaultNetworkStatus(report);
+ } catch (Exception e) {
+ Log.e(LOG_TAG, "carrierAction: ReportDefaultNetworkStatus fails. Exception ex=" + e);
+ }
+ }
+
+ /**
* Called when "adb shell dumpsys phone" is invoked. Dump is also automatically invoked when a
* bug report is being generated.
*/