miuicamera: Disable MiuiCamera app for CN users

This commit is contained in:
AdarshGrewal 2022-04-19 00:30:10 +05:30
parent 69b7f6337b
commit f629989014
4 changed files with 22 additions and 0 deletions

View file

@ -31,4 +31,7 @@ PRODUCT_SYSTEM_PROPERTIES += \
persist.vendor.camera.privapp.list=com.android.camera \
vendor.camera.aux.packagelist=com.android.camera
PRODUCT_PACKAGES += \
DisableMiuiCamera
$(call inherit-product, vendor/xiaomi/haydn-miuicamera/common/common-vendor.mk)

View file

@ -0,0 +1,4 @@
runtime_resource_overlay {
name: "DisableMiuiCamera",
product_specific: true,
}

View file

@ -0,0 +1,6 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.overlay.disablemiuicamera"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="android" android:priority="1" android:isStatic="true" android:requiredSystemPropertyName="ro.boot.hwc" android:requiredSystemPropertyValue="CN"/>
</manifest>

View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- The list of components which should be automatically disabled for a specific device.
Note: this MUST not be used to randomly disable components, ask for approval first! -->
<string-array name="config_disableApksUnlessMatchedSku_apk_list" translatable="false">
<item>com.android.camera</item>
</string-array>
</resources>