miuicamera: Setup permissions and props
This commit is contained in:
parent
f8225f0f5a
commit
c9605a52ed
14
configs/permissions/privapp-permissions-miuicamera.xml
Normal file
14
configs/permissions/privapp-permissions-miuicamera.xml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<permissions>
|
||||||
|
<privapp-permissions package="com.android.camera">
|
||||||
|
<permission name="android.permission.WRITE_MEDIA_STORAGE" />
|
||||||
|
<permission name="android.permission.WRITE_SECURE_SETTINGS" />
|
||||||
|
<permission name="android.permission.INTERACT_ACROSS_USERS" />
|
||||||
|
<permission name="mediatek.permission.ACCESS_APU_SYS" />
|
||||||
|
<permission name="android.permission.LOG_COMPAT_CHANGE" />
|
||||||
|
<permission name="android.permission.READ_COMPAT_CHANGE_CONFIG" />
|
||||||
|
<permission name="android.permission.START_ACTIVITIES_FROM_BACKGROUND" />
|
||||||
|
<permission name="android.permission.SYSTEM_CAMERA" />
|
||||||
|
<permission name="android.permission.TURN_SCREEN_ON" />
|
||||||
|
</privapp-permissions>
|
||||||
|
</permissions>
|
@ -0,0 +1,4 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<config>
|
||||||
|
<hidden-api-whitelisted-app package="com.android.camera" />
|
||||||
|
</config>
|
@ -14,4 +14,18 @@
|
|||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
# Permissions
|
||||||
|
PRODUCT_COPY_FILES += \
|
||||||
|
vendor/xiaomi/garnet-miuicamera/configs/permissions/privapp-permissions-miuicamera.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-miuicamera.xml
|
||||||
|
|
||||||
|
# Sysconfig
|
||||||
|
PRODUCT_COPY_FILES += \
|
||||||
|
vendor/xiaomi/garnet-miuicamera/configs/sysconfig/miuicamera-hiddenapi-package-whitelist.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/sysconfig/miuicamera-hiddenapi-package-whitelist.xml
|
||||||
|
|
||||||
|
# Props
|
||||||
|
PRODUCT_SYSTEM_PROPERTIES += \
|
||||||
|
persist.vendor.camera.privapp.list=com.android.camera \
|
||||||
|
ro.com.google.lens.oem_camera_package=com.android.camera \
|
||||||
|
vendor.camera.aux.packagelist=com.android.camera
|
||||||
|
|
||||||
$(call inherit-product, vendor/xiaomi/garnet-miuicamera/common/common-vendor.mk)
|
$(call inherit-product, vendor/xiaomi/garnet-miuicamera/common/common-vendor.mk)
|
||||||
|
Loading…
Reference in New Issue
Block a user