Move SliceStore notification and activity to a separate app
Android does not allow privileged processes to display a WebView in an
activity. Move the notification logic and SliceStoreActivity to a
separate app and send responses back to SliceStore instead.
Test: atest TelephonyManagerReadNonDangerousPermissionTest
Test: Manually verify notification click, manage, timeout, cancel
Test: Manually verify premium capability throttle, pending, unsupported
Test: Manually verify WebView shows up when activity starts
Test: Manually verify notification/activity behavior with multi user
Bug: 245882092
Bug: 245882601
Change-Id: Ia971d7c859ef281eb13ed4e06a64aba785dcc9d2
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index d6aacd8..5599a50 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -19,8 +19,11 @@
package="com.android.phone"
coreApp="true"
android:sharedUserId="android.uid.phone"
- android:sharedUserLabel="@string/phoneAppLabel"
->
+ android:sharedUserLabel="@string/phoneAppLabel">
+
+ <!-- Allows broadcasting for SliceStore events. -->
+ <protected-broadcast android:name="com.android.phone.slicestore.action.START_SLICE_STORE" />
+ <protected-broadcast android:name="com.android.phone.slicestore.action.SLICE_STORE_RESPONSE_TIMEOUT" />
<original-package android:name="com.android.phone" />
<!-- Allows granting runtime permissions to telephony related components. -->