diff options
author | LuK1337 <priv.luk@gmail.com> | 2020-09-15 03:27:19 +0200 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2022-01-28 09:56:25 +0800 |
commit | 2c3c027f96567d92c3871abb956027b6de4bed5a (patch) | |
tree | 9971aa667a1f7a2b35c91bfc37b0376baf752a7b | |
parent | ffbaa0c25ec8af5939dc1fd97081216cfd8a63db (diff) |
Add wallpaper default permissions
Change-Id: If43a594da31fbab9280ce45b049737f6c534b620
-rw-r--r-- | Android.bp | 14 | ||||
-rw-r--r-- | default_permissions_com.android.wallpaper.xml | 37 |
2 files changed, 50 insertions, 1 deletions
@@ -98,7 +98,11 @@ android_app { manifest: "AndroidManifest.xml", additional_manifests: [":WallpaperPicker2_Manifest"], - required: ["privapp_whitelist_com.android.wallpaper.xml"], + required: [ + "privapp_whitelist_com.android.wallpaper.xml", + "default_permissions_com.android.wallpaper.xml", + ], + overrides: ["WallpaperPicker2", "WallpaperPicker"], } @@ -109,3 +113,11 @@ prebuilt_etc_xml { filename_from_src: true, sub_dir: "permissions", } + +prebuilt_etc_xml { + name: "default_permissions_com.android.wallpaper.xml", + src: "default_permissions_com.android.wallpaper.xml", + system_ext_specific: true, + filename_from_src: true, + sub_dir: "default-permissions", +} diff --git a/default_permissions_com.android.wallpaper.xml b/default_permissions_com.android.wallpaper.xml new file mode 100644 index 00000000..41b23ce1 --- /dev/null +++ b/default_permissions_com.android.wallpaper.xml @@ -0,0 +1,37 @@ +<?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> |