aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Bestas <mkbestas@lineageos.org>2020-05-06 20:48:18 +0300
committerMichael Bestas <mkbestas@lineageos.org>2020-05-06 20:48:18 +0300
commit618ecad81ac01c1b75fe0aca584b5b62436622cd (patch)
tree56fce51f558698527e25a51843a603d3240f3113
parente944ca06619df0f0fd85d0d5b1167c796478b307 (diff)
downloadandroid_packages_apps_Updater-618ecad81ac01c1b75fe0aca584b5b62436622cd.tar.gz
android_packages_apps_Updater-618ecad81ac01c1b75fe0aca584b5b62436622cd.tar.bz2
android_packages_apps_Updater-618ecad81ac01c1b75fe0aca584b5b62436622cd.zip
Updater: Add privapp permissions xml
Change-Id: If1953e76859850359a63dc4a4ab50940d76fd59f
-rw-r--r--Android.mk10
-rw-r--r--privapp_whitelist_org.lineageos.updater.xml23
2 files changed, 33 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index b74fe64..5f418ef 100644
--- a/Android.mk
+++ b/Android.mk
@@ -24,8 +24,18 @@ LOCAL_PRIVATE_PLATFORM_APIS := true
LOCAL_PRIVILEGED_MODULE := true
LOCAL_PROGUARD_FLAG_FILES := proguard.flags
+LOCAL_REQUIRED_MODULES := privapp_whitelist_org.lineageos.updater.xml
+
include $(BUILD_PACKAGE)
+include $(CLEAR_VARS)
+LOCAL_MODULE := privapp_whitelist_org.lineageos.updater.xml
+LOCAL_MODULE_CLASS := ETC
+LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE_PATH := $(TARGET_OUT_ETC)/permissions
+LOCAL_SRC_FILES := $(LOCAL_MODULE)
+include $(BUILD_PREBUILT)
+
include $(CLEAR_VARS)
LOCAL_MODULE := UpdaterStudio
diff --git a/privapp_whitelist_org.lineageos.updater.xml b/privapp_whitelist_org.lineageos.updater.xml
new file mode 100644
index 0000000..74e1753
--- /dev/null
+++ b/privapp_whitelist_org.lineageos.updater.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Copyright (C) 2017-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.
+-->
+<permissions>
+ <privapp-permissions package="org.lineageos.updater">
+ <permission name="android.permission.ACCESS_CACHE_FILESYSTEM"/>
+ <permission name="android.permission.REBOOT"/>
+ <permission name="android.permission.RECOVERY"/>
+ </privapp-permissions>
+</permissions>