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/Android.bp b/Android.bp
index dad0e6c..5b8af0a 100644
--- a/Android.bp
+++ b/Android.bp
@@ -79,6 +79,13 @@
},
}
+// Allow other applications to use public constants from SliceStore
+java_library {
+ name: "SliceStore",
+ srcs: ["src/com/android/phone/slicestore/SliceStore.java",],
+ static_libs: ["telephony-common"],
+}
+
platform_compat_config {
name: "TeleService-platform-compat-config",
src: ":TeleService",