From 685f1e47718761442da50c99734dfae08c6fb801 Mon Sep 17 00:00:00 2001 From: Lyn Date: Wed, 1 Feb 2023 05:41:03 +0000 Subject: [PATCH] Settings page to manage FSI permission Apps > Special App Access > Manage Full Screen Intents > App Specific page Follows new Settings Platform Architecture that the Settings team is migrating to for UDC. Bug: 243421660 Test: make SettingsGoogle -j40 adb install -r out/target/product/$TARGET_PRODUCT/system_ext/priv-app/SettingsGoogle/SettingsGoogle.apk Change-Id: Id2ca18480ddf788bee18b67a3689ef9593059a24 --- AndroidManifest.xml | 19 ++++++++ res/values/strings.xml | 9 ++++ res/xml/special_access.xml | 5 ++ .../settings/spa/SettingsSpaEnvironment.kt | 2 + .../spa/app/specialaccess/SpecialAppAccess.kt | 1 + .../app/specialaccess/UseFullScreenIntent.kt | 38 +++++++++++++++ ...eFullScreenIntentPreferenceController.java | 47 +++++++++++++++++++ 7 files changed, 121 insertions(+) create mode 100644 src/com/android/settings/spa/app/specialaccess/UseFullScreenIntent.kt create mode 100644 src/com/android/settings/spa/app/specialaccess/UseFullScreenIntentPreferenceController.java diff --git a/AndroidManifest.xml b/AndroidManifest.xml index d357e8c40fe..863ace4ff8e 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -1681,6 +1681,25 @@ android:value="@string/menu_key_apps"/> + + + + + + + + + + + + + diff --git a/res/values/strings.xml b/res/values/strings.xml index ecd8aad779e..36d17cad5a3 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -8880,6 +8880,15 @@ Can access all files + + Manage full screen intents + + + Allow apps to send full screen intents + + + Allow this app to send full screen intent notifications that cover the entire screen. + Media management apps diff --git a/res/xml/special_access.xml b/res/xml/special_access.xml index e6dd3edfb9b..eb023698af2 100644 --- a/res/xml/special_access.xml +++ b/res/xml/special_access.xml @@ -94,6 +94,11 @@ android:fragment="com.android.settings.notification.NotificationAccessSettings" settings:controller="com.android.settings.applications.specialaccess.notificationaccess.NotificationAccessController" /> + +