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)