LineageParts: Add privapp permissions xml
Change-Id: Idf41d848cd2f056e9f3cb79eb7191c779300b564
diff --git a/Android.bp b/Android.bp
index ef89741..24587a3 100644
--- a/Android.bp
+++ b/Android.bp
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2019 The LineageOS Project
+ * Copyright (C) 2019-2020 The LineageOS Project
* Copyright (C) 2020 Shift GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -44,4 +44,15 @@
"jsr305",
"com.shiftos.platform.internal",
],
+
+ required: [
+ "privapp_whitelist_com.shiftos.shiftparts"
+ ],
+}
+
+prebuilt_etc {
+ name: "privapp_whitelist_com.shiftos.shiftparts",
+ sub_dir: "permissions",
+ src: "privapp_whitelist_com.shiftos.shiftparts.xml",
+ filename_from_src: true,
}
diff --git a/privapp_whitelist_com.shiftos.shiftparts.xml b/privapp_whitelist_com.shiftos.shiftparts.xml
new file mode 100644
index 0000000..6a15c6a
--- /dev/null
+++ b/privapp_whitelist_com.shiftos.shiftparts.xml
@@ -0,0 +1,24 @@
+<?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="com.shiftos.shiftparts">
+ <permission name="android.permission.CHANGE_CONFIGURATION"/>
+ <permission name="android.permission.READ_SEARCH_INDEXABLES"/>
+ <permission name="android.permission.WRITE_MEDIA_STORAGE"/>
+ <permission name="android.permission.WRITE_SECURE_SETTINGS"/>
+ </privapp-permissions>
+</permissions>