summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Bestas <mkbestas@lineageos.org>2020-05-06 20:46:17 +0300
committerMichael Bestas <mkbestas@lineageos.org>2020-05-09 00:22:08 +0300
commitbda901371dd328d0d31a51e2c7c2ba428cba2bcb (patch)
treefc3281a349e0c1a3a4613ba45213941f732432d0
parentb8759d7a015ce606be98b9499980b05f881ba3cb (diff)
downloadandroid_packages_apps_Snap-bda901371dd328d0d31a51e2c7c2ba428cba2bcb.zip
android_packages_apps_Snap-bda901371dd328d0d31a51e2c7c2ba428cba2bcb.tar.gz
android_packages_apps_Snap-bda901371dd328d0d31a51e2c7c2ba428cba2bcb.tar.bz2
Snap: Add privapp permissions xml
Change-Id: I46b29c519f98d56eea3057f73e9411f9ea9a2340
-rw-r--r--[-rwxr-xr-x]Android.mk10
-rw-r--r--privapp_whitelist_org.lineageos.snap.xml31
2 files changed, 41 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index 2b36b76..bdf1807 100755..100644
--- a/Android.mk
+++ b/Android.mk
@@ -60,9 +60,19 @@ else
LOCAL_REQUIRED_MODULES := libjni_snapmosaic libjni_snaptinyplanet libjni_snapimageutil
endif
+LOCAL_REQUIRED_MODULES += privapp_whitelist_org.lineageos.snap.xml
+
include $(BUILD_PACKAGE)
include $(CLEAR_VARS)
+LOCAL_MODULE := privapp_whitelist_org.lineageos.snap.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_PREBUILT_STATIC_JAVA_LIBRARIES += \
qreader-core:quickReader/libs/core-1.9.8.aar \
diff --git a/privapp_whitelist_org.lineageos.snap.xml b/privapp_whitelist_org.lineageos.snap.xml
new file mode 100644
index 0000000..f5f3924
--- /dev/null
+++ b/privapp_whitelist_org.lineageos.snap.xml
@@ -0,0 +1,31 @@
+<?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>
+ <!-- Compatibility for upgrades from old package name -->
+ <privapp-permissions package="org.cyanogenmod.snap">
+ <permission name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>
+ <permission name="android.permission.START_ACTIVITIES_FROM_BACKGROUND"/>
+ <permission name="android.permission.WRITE_MEDIA_STORAGE"/>
+ <permission name="lineage.permission.PREVENT_POWER_KEY"/>
+ </privapp-permissions>
+ <privapp-permissions package="org.lineageos.snap">
+ <permission name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>
+ <permission name="android.permission.START_ACTIVITIES_FROM_BACKGROUND"/>
+ <permission name="android.permission.WRITE_MEDIA_STORAGE"/>
+ <permission name="lineage.permission.PREVENT_POWER_KEY"/>
+ </privapp-permissions>
+</permissions>