kunlun2: add missing permissions to snapcam

This commit is contained in:
GiaSen 2020-04-28 11:34:38 +02:00
parent d4b68133ed
commit 5ccaf36749
2 changed files with 45 additions and 0 deletions

View file

@ -0,0 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2017 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.codeaurora.snapcam">
<permission name="android.permission.ACCESS_COARSE_LOCATION"/>
<permission name="android.permission.ACCESS_FINE_LOCATION"/>
<permission name="android.permission.ACCESS_NETWORK_STATE"/>
<permission name="android.permission.ACCESS_NOTIFICATION_POLICY"/>
<permission name="android.permission.ACCESS_WIFI_STATE"/>
<permission name="android.permission.BIND_WALLPAPER"/>
<permission name="android.permission.CAMERA"/>
<permission name="android.permission.CHANGE_WIFI_STATE"/>
<permission name="android.permission.INTERNET"/>
<permission name="android.permission.NFC"/>
<permission name="android.permission.READ_SYNC_SETTINGS"/>
<permission name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<permission name="android.permission.RECORD_AUDIO"/>
<permission name="android.permission.SET_WALLPAPER"/>
<permission name="android.permission.USE_CREDENTIALS"/>
<permission name="android.permission.VIBRATE"/>
<permission name="android.permission.WAKE_LOCK"/>
<permission name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<permission name="android.permission.WRITE_SETTINGS"/>
<permission name="android.permission.WRITE_SYNC_SETTINGS"/>
<permission name="com.google.android.elmyra.permission.CONFIGURE_ASSIST_GESTURE"/>
<permission name="com.google.android.providers.gsf.permission.READ_GSERVICES"/>
<permission name="android.permission.CAMERA"/>
<permission name="android.permission.FOREGROUND_SERVICE"/>
<permission name="android.permission.READ_LOGS"/>
</privapp-permissions>
</permissions>

View file

@ -30,6 +30,9 @@ PRODUCT_PACKAGES += \
Snap \
Gcam
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/org.codeaurora.snapcam.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/org.codeaurora.snapcam.xml
# Common init scripts
PRODUCT_PACKAGES += \
init.qcom.rc \