From c9605a52edd4efbb3f7dd88faa49d3ba678b926e Mon Sep 17 00:00:00 2001 From: AdarshGrewal Date: Fri, 19 Apr 2024 21:26:15 +0530 Subject: [PATCH] miuicamera: Setup permissions and props --- .../permissions/privapp-permissions-miuicamera.xml | 14 ++++++++++++++ .../miuicamera-hiddenapi-package-whitelist.xml | 4 ++++ products/miuicamera.mk | 14 ++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 configs/permissions/privapp-permissions-miuicamera.xml create mode 100644 configs/sysconfig/miuicamera-hiddenapi-package-whitelist.xml diff --git a/configs/permissions/privapp-permissions-miuicamera.xml b/configs/permissions/privapp-permissions-miuicamera.xml new file mode 100644 index 0000000..4f06726 --- /dev/null +++ b/configs/permissions/privapp-permissions-miuicamera.xml @@ -0,0 +1,14 @@ + + + + + + + + + + + + + + diff --git a/configs/sysconfig/miuicamera-hiddenapi-package-whitelist.xml b/configs/sysconfig/miuicamera-hiddenapi-package-whitelist.xml new file mode 100644 index 0000000..aa1df44 --- /dev/null +++ b/configs/sysconfig/miuicamera-hiddenapi-package-whitelist.xml @@ -0,0 +1,4 @@ + + + + diff --git a/products/miuicamera.mk b/products/miuicamera.mk index 56261ae..27dd8b6 100644 --- a/products/miuicamera.mk +++ b/products/miuicamera.mk @@ -14,4 +14,18 @@ # 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)