pa: add pa-permissions whitelist.
Change-Id: I420eaa82a7439527281b0023e4e53c893ecaa9fc Signed-off-by: Hernán Castañón Álvarez <herna@paranoidandroid.co>
This commit is contained in:
parent
ca2b717196
commit
c5a1322206
3
main.mk
3
main.mk
|
@ -29,6 +29,9 @@ PRODUCT_COPY_FILES += vendor/pa/prebuilt/etc/apns-conf.xml:system/etc/apns-conf.
|
|||
# Include support for preconfigured permissions
|
||||
PRODUCT_COPY_FILES += vendor/pa/prebuilt/etc/default-permissions/pa-permissions.xml:system/etc/default-permissions/pa-permissions.xml
|
||||
|
||||
# Include needed privapp permissions whitelist
|
||||
PRODUCT_COPY_FILES += vendor/pa/prebuilt/etc/privapp-permissions/pa-permissions.xml:system/etc/sysconfig/pa-permissions.xml
|
||||
|
||||
# Copy PA specific init file
|
||||
PRODUCT_COPY_FILES += vendor/pa/prebuilt/root/init.pa.rc:root/init.pa.rc
|
||||
|
||||
|
|
|
@ -0,0 +1,41 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright 2019 Paranoid Android
|
||||
|
||||
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.android.soundrecorder">
|
||||
<permission name="android.permission.CAPTURE_AUDIO_OUTPUT"/>
|
||||
<permission name="android.permission.WRITE_MEDIA_STORAGE"/>
|
||||
</privapp-permissions>
|
||||
|
||||
<privapp-permissions package="com.paranoid.paranoidhub">
|
||||
<permission name="android.permission.ACCESS_CACHE_FILESYSTEM"/>
|
||||
<permission name="android.permission.REBOOT"/>
|
||||
<permission name="android.permission.RECOVERY"/>
|
||||
</privapp-permissions>
|
||||
|
||||
<privapp-permissions package="com.android.mms">
|
||||
<permission name="android.permission.READ_PRIVILEGED_PHONE_STATE"/>
|
||||
<permission name="android.permission.WRITE_APN_SETTINGS"/>
|
||||
</privapp-permissions>
|
||||
|
||||
<privapp-permissions package="com.android.systemui">
|
||||
<permission name="android.permission.REBOOT"/>
|
||||
<permission name="android.permission.RECOVERY"/>
|
||||
<permission name="android.permission.SHUTDOWN"/>
|
||||
</privapp-permissions>
|
||||
|
||||
</permissions>
|
Loading…
Reference in New Issue