summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharath <bharath@teamb58.org>2022-11-29 23:30:36 +0530
committeralk3pInjection <webmaster@raspii.tech>2023-04-20 00:08:54 +0800
commitdfb0df7770d9b94ecc1250776e455f929c67dee9 (patch)
tree5c65d1fd68d47405e67376272f5ff68422fad2ac
parent9a5e6ef5819f11b20213f519bbec7bee891bf78e (diff)
ThemePicker: Drop default permissions
This reverts commit 503ea4a87eb19840545696feafcbd659e5a68953. Allowing storage permissions to the application violates DefaultPermissionGrantPolicy. Hence, drop the default permission and let user enable them on first run in order to get wallpaper preview. Issue: FP3-A13#35 Test: run gts -m GtsPermissionTestCases -t com.google.android.permission.gts.DefaultPermissionGrantPolicyTest Change-Id: I7eefdf4330e32910447b1f3e82069ec30bec9a3f
-rw-r--r--Android.bp9
-rw-r--r--default_permissions_com.android.wallpaper.xml37
2 files changed, 0 insertions, 46 deletions
diff --git a/Android.bp b/Android.bp
index e84bf21d..e9a2976b 100644
--- a/Android.bp
+++ b/Android.bp
@@ -110,20 +110,11 @@ android_app {
"WallpaperPicker2"
],
required: [
- "default_permissions_com.android.wallpaper",
"privapp_whitelist_com.android.wallpaper"
],
}
prebuilt_etc {
- name: "default_permissions_com.android.wallpaper",
- system_ext_specific: true,
- src: "default_permissions_com.android.wallpaper.xml",
- sub_dir: "default-permissions",
- filename_from_src: true,
-}
-
-prebuilt_etc {
name: "privapp_whitelist_com.android.wallpaper",
system_ext_specific: true,
src: "privapp_whitelist_com.android.wallpaper.xml",
diff --git a/default_permissions_com.android.wallpaper.xml b/default_permissions_com.android.wallpaper.xml
deleted file mode 100644
index 41b23ce1..00000000
--- a/default_permissions_com.android.wallpaper.xml
+++ /dev/null
@@ -1,37 +0,0 @@
-<?xml version='1.0' encoding='utf-8' standalone='yes' ?>
-<!--
- Copyright (C) 2019-2020 The LineageOS Project
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-
-<!--
- This file contains permissions to be granted by default. Default
- permissions are granted to special platform components and to apps
- that are approved to get default grants. The special components
- are apps that are expected to work out-of-the-box as they provide
- core use cases such as default dialer, default email, etc. These
- grants are managed by the platform. The apps that are additionally
- approved for default grants are ones that provide carrier specific
- functionality, ones legally required at some location, ones providing
- alternative disclosure and opt-out UI, ones providing highlight features
- of a dedicated device, etc. This file contains only the latter exceptions.
- Fixed permissions cannot be controlled by the user and need a special
- approval. Typically these are to ensure either legally mandated functions
- or the app is considered a part of the OS.
--->
-<exceptions>
- <exception package="com.android.wallpaper">
- <permission name="android.permission.READ_EXTERNAL_STORAGE" fixed="false"/>
- </exception>
-</exceptions>