Loading res/values/arrays.xml +4 −0 Original line number Diff line number Diff line Loading @@ -1552,4 +1552,8 @@ <item>Theater</item> <item>Flower</item> </string-array> <!-- Packages that will not show Display over other apps permission --> <string-array name="display_over_apps_permission_change_exempt"> </string-array> </resources> src/com/android/settings/spa/app/specialaccess/DisplayOverOtherApps.kt +10 −0 Original line number Diff line number Diff line Loading @@ -44,6 +44,16 @@ class DisplayOverOtherAppsListModel(context: Context) : AppOpPermissionListModel logPermissionChange(newAllowed) } // TODO (b/349195999) override fun isChangeable(record: AppOpPermissionRecord): Boolean { if (record.app.packageName in context.resources.getStringArray(R.array.display_over_apps_permission_change_exempt) && record.app.isSystemApp()) { return false } return super.isChangeable(record) } private fun logPermissionChange(newAllowed: Boolean) { val category = when { newAllowed -> SettingsEnums.APP_SPECIAL_PERMISSION_APPDRAW_ALLOW Loading Loading
res/values/arrays.xml +4 −0 Original line number Diff line number Diff line Loading @@ -1552,4 +1552,8 @@ <item>Theater</item> <item>Flower</item> </string-array> <!-- Packages that will not show Display over other apps permission --> <string-array name="display_over_apps_permission_change_exempt"> </string-array> </resources>
src/com/android/settings/spa/app/specialaccess/DisplayOverOtherApps.kt +10 −0 Original line number Diff line number Diff line Loading @@ -44,6 +44,16 @@ class DisplayOverOtherAppsListModel(context: Context) : AppOpPermissionListModel logPermissionChange(newAllowed) } // TODO (b/349195999) override fun isChangeable(record: AppOpPermissionRecord): Boolean { if (record.app.packageName in context.resources.getStringArray(R.array.display_over_apps_permission_change_exempt) && record.app.isSystemApp()) { return false } return super.isChangeable(record) } private fun logPermissionChange(newAllowed: Boolean) { val category = when { newAllowed -> SettingsEnums.APP_SPECIAL_PERMISSION_APPDRAW_ALLOW Loading