miuicamera-surya: Grant default runtime and privileged permissions

Change-Id: I5d0df76ce416e87f55f3bbcf6798191aa15ea5fe
This commit is contained in:
Raya Mahardika committed 2026-09-29 15:52:40 +00:00
1 parent 0946b6a942
commit 9e84dd0435
3 files changed
+41

No files matched your search

@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2024-2026 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<exceptions>
<exception package="com.android.camera">
<!-- Camera -->
<permission name="android.permission.CAMERA" fixed="true" />
<!-- Location -->
<permission name="android.permission.ACCESS_FINE_LOCATION" fixed="true" />
<permission name="android.permission.ACCESS_COARSE_LOCATION" fixed="true" />
<!-- Microphone -->
<permission name="android.permission.RECORD_AUDIO" fixed="true" />
<!-- Phone -->
<permission name="android.permission.READ_PHONE_STATE" fixed="true" />
<!-- Storage -->
<permission name="android.permission.READ_EXTERNAL_STORAGE" fixed="true" />
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" fixed="true" />
<permission name="android.permission.ACCESS_MEDIA_LOCATION" fixed="true" />
<permission name="android.permission.WRITE_MEDIA_STORAGE" fixed="true" />
<permission name="android.permission.READ_MEDIA_IMAGES" fixed="true" />
<permission name="android.permission.READ_MEDIA_VIDEO" fixed="true" />
<permission name="android.permission.READ_MEDIA_AUDIO" fixed="true" />
<!-- System & UI -->
<permission name="android.permission.INTERACT_ACROSS_USERS" fixed="true" />
<permission name="android.permission.WRITE_SECURE_SETTINGS" fixed="true" />
<permission name="android.permission.PACKAGE_USAGE_STATS" fixed="true" />
<permission name="android.permission.CONTROL_DISPLAY_BRIGHTNESS" fixed="true" />
</exception>
</exceptions>
@@ -1,9 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) 2024-2026 The LineageOS Project
SPDX-License-Identifier: Apache-2.0
-->
<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="android.permission.PACKAGE_USAGE_STATS" />
<permission name="android.permission.CONTROL_DISPLAY_BRIGHTNESS" />
<permission name="mediatek.permission.ACCESS_APU_SYS" />
<permission name="android.permission.LOG_COMPAT_CHANGE" />
<permission name="android.permission.READ_COMPAT_CHANGE_CONFIG" />
+4
View File
@@ -11,6 +11,10 @@ $(call inherit-product, vendor/xiaomi/miuicamera-surya/surya/surya-vendor.mk)
PRODUCT_PACKAGES += \
MiuiCameraOverlay
# Default permissions
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/default-permissions-miuicamera.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/default-permissions/default-permissions-miuicamera.xml
# Priv-app permission
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/privapp-permissions-miuicamera.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/privapp-permissions-miuicamera.xml