miuicamera: Disable MiuiCamera app for CN users
This commit is contained in:
parent
69b7f6337b
commit
f629989014
4 changed files with 22 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
4
rro_overlay/DisableMiuiCamera/Android.bp
Normal file
4
rro_overlay/DisableMiuiCamera/Android.bp
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
runtime_resource_overlay {
|
||||
name: "DisableMiuiCamera",
|
||||
product_specific: true,
|
||||
}
|
||||
6
rro_overlay/DisableMiuiCamera/AndroidManifest.xml
Normal file
6
rro_overlay/DisableMiuiCamera/AndroidManifest.xml
Normal 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>
|
||||
9
rro_overlay/DisableMiuiCamera/res/values/config.xml
Normal file
9
rro_overlay/DisableMiuiCamera/res/values/config.xml
Normal 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>
|
||||
Loading…
Add table
Reference in a new issue