From 27eedf505228d692f827ec06961a79357bedb634 Mon Sep 17 00:00:00 2001 From: Anton Hansson Date: Mon, 14 Jan 2019 10:55:57 +0000 Subject: [PATCH] Split out more privapp permissions These apps are all moving to /product, so split them out of the grant file on /system. For now, make them required by the /system file. As part of moving the an app to /product, the grant file will be made required by the app itself. Bug: 122353713 Test: make Exempt-From-Owner-Approval: approved already Change-Id: If207576d1e78037159051de25a733d90c1cb29c8 --- data/etc/Android.bp | 42 ++++++++++++++++++++++- data/etc/com.android.carrierconfig.xml | 21 ++++++++++++ data/etc/com.android.contacts.xml | 22 ++++++++++++ data/etc/com.android.launcher3.xml | 23 +++++++++++++ data/etc/com.android.provision.xml | 21 ++++++++++++ data/etc/com.android.storagemanager.xml | 26 ++++++++++++++ data/etc/privapp-permissions-platform.xml | 28 --------------- 7 files changed, 154 insertions(+), 29 deletions(-) create mode 100644 data/etc/com.android.carrierconfig.xml create mode 100644 data/etc/com.android.contacts.xml create mode 100644 data/etc/com.android.launcher3.xml create mode 100644 data/etc/com.android.provision.xml create mode 100644 data/etc/com.android.storagemanager.xml diff --git a/data/etc/Android.bp b/data/etc/Android.bp index 0bffa387489bb..91fe64bec0d1e 100644 --- a/data/etc/Android.bp +++ b/data/etc/Android.bp @@ -40,8 +40,41 @@ prebuilt_etc { sub_dir: "permissions", src: "privapp-permissions-platform.xml", required: [ + "privapp_whitelist_com.android.carrierconfig", + "privapp_whitelist_com.android.contacts", + "privapp_whitelist_com.android.launcher3", + "privapp_whitelist_com.android.provision", "privapp_whitelist_com.android.settings.intelligence", - ] + "privapp_whitelist_com.android.storagemanager", + ], +} + +prebuilt_etc { + name: "privapp_whitelist_com.android.carrierconfig", + sub_dir: "permissions", + src: "com.android.carrierconfig.xml", + filename_from_src: true, +} + +prebuilt_etc { + name: "privapp_whitelist_com.android.contacts", + sub_dir: "permissions", + src: "com.android.contacts.xml", + filename_from_src: true, +} + +prebuilt_etc { + name: "privapp_whitelist_com.android.launcher3", + sub_dir: "permissions", + src: "com.android.launcher3.xml", + filename_from_src: true, +} + +prebuilt_etc { + name: "privapp_whitelist_com.android.provision", + sub_dir: "permissions", + src: "com.android.provision.xml", + filename_from_src: true, } prebuilt_etc { @@ -59,6 +92,13 @@ prebuilt_etc { filename_from_src: true, } +prebuilt_etc { + name: "privapp_whitelist_com.android.storagemanager", + sub_dir: "permissions", + src: "com.android.storagemanager.xml", + filename_from_src: true, +} + prebuilt_etc { name: "privapp_whitelist_com.android.systemui", product_specific: true, diff --git a/data/etc/com.android.carrierconfig.xml b/data/etc/com.android.carrierconfig.xml new file mode 100644 index 0000000000000..17efb03150406 --- /dev/null +++ b/data/etc/com.android.carrierconfig.xml @@ -0,0 +1,21 @@ + + + + + + + diff --git a/data/etc/com.android.contacts.xml b/data/etc/com.android.contacts.xml new file mode 100644 index 0000000000000..78eae40348e68 --- /dev/null +++ b/data/etc/com.android.contacts.xml @@ -0,0 +1,22 @@ + + + + + + + + diff --git a/data/etc/com.android.launcher3.xml b/data/etc/com.android.launcher3.xml new file mode 100644 index 0000000000000..337e153722ac6 --- /dev/null +++ b/data/etc/com.android.launcher3.xml @@ -0,0 +1,23 @@ + + + + + + + + + diff --git a/data/etc/com.android.provision.xml b/data/etc/com.android.provision.xml new file mode 100644 index 0000000000000..05404ef737320 --- /dev/null +++ b/data/etc/com.android.provision.xml @@ -0,0 +1,21 @@ + + + + + + + diff --git a/data/etc/com.android.storagemanager.xml b/data/etc/com.android.storagemanager.xml new file mode 100644 index 0000000000000..e85a82c983df4 --- /dev/null +++ b/data/etc/com.android.storagemanager.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + diff --git a/data/etc/privapp-permissions-platform.xml b/data/etc/privapp-permissions-platform.xml index a1a4f48fac6e0..c9f0f108ab443 100644 --- a/data/etc/privapp-permissions-platform.xml +++ b/data/etc/privapp-permissions-platform.xml @@ -33,10 +33,6 @@ applications that come with the platform - - - - @@ -45,11 +41,6 @@ applications that come with the platform - - - - - @@ -79,12 +70,6 @@ applications that come with the platform - - - - - - @@ -225,10 +210,6 @@ applications that come with the platform - - - - @@ -333,15 +314,6 @@ applications that come with the platform - - - - - - - - -