MiuiCamera: Initial Poco F3 Repository

- Includes following changes:
* Import Xiaomi MiSys Hal and Sepolicy
* Import needed camera permissions
* Import Camera Postprocessing
* Import Poco F3 / Mi 11x Device Features [For Miui Deps]
* Import camxoverride settings & tune down CameraX logging
* Import needed camera prebuilts for Poco F3 AOSP Device trees
* Import Leica/Miui Camera mod 5.x by https://t.me/itzdfplayer & HollyBear
* Create device-specific config overlay for following Camera to enable appropriate features
* Import device-specific OpenCL
* Import AOSP and LOS aux camera overlays
* Import appropriate sepolicy for Poco F3 / Mi11x

- Repo requires:
* Have device-side hides in libinit for .mod_device and .name
* Import MiSys entries to FCM [Example: 47e3f385a6 ]
* Enable newer HIDL overrideFormat [4d9f9a23e9 ]
* Build camera for Jemalloc [c5d5ea6706 ]
* Set TARGET_CAMERA_PACKAGE_NAME for vendor tags [60ad521bf1 ] -> [c4fbccafa0 ]

Used changes from following authors:
Co-authored-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
Co-authored-by: ItzDFPlayer <deniskovalevskiy91@gmail.com>
Co-authored-by: chrisl7 <wandersonrodriguesf1@gmail.com>
This commit is contained in:
johnmart19
2024-02-22 20:55:51 +02:00
commit f369a00f69
107 changed files with 2473 additions and 0 deletions

2
.gitattributes vendored Normal file
View File

@@ -0,0 +1,2 @@
*.apk filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text

79
Android.bp Normal file
View File

@@ -0,0 +1,79 @@
// Automatically generated file. DO NOT MODIFY
//
// This file is generated by vendor/xiaomi/camera/setup-makefiles.sh
soong_namespace {
}
android_app_import {
name: "MiuiCamera",
owner: "xiaomi",
apk: "proprietary/system/priv-app/MiuiCamera/MiuiCamera.apk",
overrides: ["GrapheneCamera", "Camera", "Camera2", "Aperture", "GoogleCameraGo"],
certificate: "platform",
dex_preopt: {
enabled: false,
},
privileged: true,
}
dex_import {
name: "vendor.xiaomi.hardware.misys-V1.0-java",
owner: "xiaomi",
jars: ["proprietary/system/framework/vendor.xiaomi.hardware.misys-V1.0-java.jar"],
}
dex_import {
name: "vendor.xiaomi.hardware.misys-V2.0-java",
owner: "xiaomi",
jars: ["proprietary/system/framework/vendor.xiaomi.hardware.misys-V2.0-java.jar"],
}
dex_import {
name: "vendor.xiaomi.hardware.misys-V4.0-java",
owner: "xiaomi",
jars: ["proprietary/system/framework/vendor.xiaomi.hardware.misys-V4.0-java.jar"],
}
dex_import {
name: "vendor.xiaomi.hardware.misys.V3_0",
owner: "xiaomi",
jars: ["proprietary/system/framework/vendor.xiaomi.hardware.misys.V3_0.jar"],
}
prebuilt_etc_xml {
name: "vendor.xiaomi.hardware.misys@1.0",
owner: "xiaomi",
src: "proprietary/vendor/etc/vintf/manifest/vendor.xiaomi.hardware.misys@1.0.xml",
filename_from_src: true,
sub_dir: "vintf/manifest",
soc_specific: true,
}
prebuilt_etc_xml {
name: "vendor.xiaomi.hardware.misys@2.0",
owner: "xiaomi",
src: "proprietary/vendor/etc/vintf/manifest/vendor.xiaomi.hardware.misys@2.0.xml",
filename_from_src: true,
sub_dir: "vintf/manifest",
soc_specific: true,
}
prebuilt_etc_xml {
name: "vendor.xiaomi.hardware.misys@3.0",
owner: "xiaomi",
src: "proprietary/vendor/etc/vintf/manifest/vendor.xiaomi.hardware.misys@3.0.xml",
filename_from_src: true,
sub_dir: "vintf/manifest",
soc_specific: true,
}
prebuilt_etc_xml {
name: "vendor.xiaomi.hardware.misys@4.0",
owner: "xiaomi",
src: "proprietary/vendor/etc/vintf/manifest/vendor.xiaomi.hardware.misys@4.0.xml",
filename_from_src: true,
sub_dir: "vintf/manifest",
soc_specific: true,
}

9
Android.mk Normal file
View File

@@ -0,0 +1,9 @@
# Automatically generated file. DO NOT MODIFY
#
# This file is generated by vendor/xiaomi/camera/setup-makefiles.sh
LOCAL_PATH := $(call my-dir)
ifneq ($(filter alioth,$(TARGET_DEVICE)),)
endif

4
BoardConfigVendor.mk Normal file
View File

@@ -0,0 +1,4 @@
# Automatically generated file. DO NOT MODIFY
#
# This file is generated by vendor/xiaomi/camera/setup-makefiles.sh

52
README.md Normal file
View File

@@ -0,0 +1,52 @@
# proprietary_vendor_xiaomi_camera
Prebuilt stock MIUI/Leica Camera for Poco F3/Redmi K40/Mi 11x (alioth), to include in custom ROM builds.
### How to use?
1. Clone this repo to `vendor/xiaomi/camera`
2. Inherit it from `device.mk` in device tree:
```
# Camera
$(call inherit-product-if-exists, vendor/xiaomi/camera/miuicamera.mk)
```
3. Ensure that you added misys vintf dependencies in your framework_compatibility_matrix.xml:
```
<hal format="hidl" optional="true">
<name>vendor.xiaomi.hardware.misys</name>
<version>1.0</version>
<interface>
<name>IMiSys</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>vendor.xiaomi.hardware.misys</name>
<version>2.0</version>
<interface>
<name>IMiSys</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>vendor.xiaomi.hardware.misys</name>
<version>3.0</version>
<interface>
<name>IMiSys</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl" optional="true">
<name>vendor.xiaomi.hardware.misys</name>
<version>4.0</version>
<interface>
<name>IMiSys</name>
<instance>default</instance>
</interface>
</hal>
```
3.1 Reference - https://github.com/VoidUI-Devices/device_xiaomi_sm8250-common/commit/47e3f385a6cd16b0200a4bfd34cad1fba75ac210

63
camera-vendor.mk Normal file
View File

@@ -0,0 +1,63 @@
# Automatically generated file. DO NOT MODIFY
#
# This file is generated by vendor/xiaomi/camera/setup-makefiles.sh
PRODUCT_SOONG_NAMESPACES += \
vendor/xiaomi/camera
PRODUCT_COPY_FILES += \
vendor/xiaomi/camera/proprietary/system/etc/permissions/vendor.xiaomi.hardware.misys-V1.0-java-permission.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/vendor.xiaomi.hardware.misys-V1.0-java-permission.xml \
vendor/xiaomi/camera/proprietary/system/etc/permissions/vendor.xiaomi.hardware.misys-V2.0-java-permission.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/vendor.xiaomi.hardware.misys-V2.0-java-permission.xml \
vendor/xiaomi/camera/proprietary/system/etc/permissions/vendor.xiaomi.hardware.misys-V4.0-java-permission.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/vendor.xiaomi.hardware.misys-V4.0-java-permission.xml \
vendor/xiaomi/camera/proprietary/system/etc/permissions/vendor.xiaomi.hardware.misys.V3_0-permission.xml:$(TARGET_COPY_OUT_SYSTEM)/etc/permissions/vendor.xiaomi.hardware.misys.V3_0-permission.xml \
vendor/xiaomi/camera/proprietary/system/etc/public.libraries-xiaomi.txt:$(TARGET_COPY_OUT_SYSTEM)/etc/public.libraries-xiaomi.txt \
vendor/xiaomi/camera/proprietary/system/lib64/libcamera_algoup_jni.xiaomi.so:$(TARGET_COPY_OUT_SYSTEM)/lib64/libcamera_algoup_jni.xiaomi.so \
vendor/xiaomi/camera/proprietary/system/lib64/libcamera_mianode_jni.xiaomi.so:$(TARGET_COPY_OUT_SYSTEM)/lib64/libcamera_mianode_jni.xiaomi.so \
vendor/xiaomi/camera/proprietary/system/lib64/libmicampostproc_client.so:$(TARGET_COPY_OUT_SYSTEM)/lib64/libmicampostproc_client.so \
vendor/xiaomi/camera/proprietary/system/lib64/libmisys_jni.xiaomi.so:$(TARGET_COPY_OUT_SYSTEM)/lib64/libmisys_jni.xiaomi.so \
vendor/xiaomi/camera/proprietary/system/lib64/vendor.xiaomi.hardware.campostproc@1.0.so:$(TARGET_COPY_OUT_SYSTEM)/lib64/vendor.xiaomi.hardware.campostproc@1.0.so \
vendor/xiaomi/camera/proprietary/system/lib64/vendor.xiaomi.hardware.misys@1.0.so:$(TARGET_COPY_OUT_SYSTEM)/lib64/vendor.xiaomi.hardware.misys@1.0.so \
vendor/xiaomi/camera/proprietary/system/lib64/vendor.xiaomi.hardware.misys@2.0.so:$(TARGET_COPY_OUT_SYSTEM)/lib64/vendor.xiaomi.hardware.misys@2.0.so \
vendor/xiaomi/camera/proprietary/system/lib64/vendor.xiaomi.hardware.misys@3.0.so:$(TARGET_COPY_OUT_SYSTEM)/lib64/vendor.xiaomi.hardware.misys@3.0.so \
vendor/xiaomi/camera/proprietary/system/lib64/vendor.xiaomi.hardware.misys@4.0.so:$(TARGET_COPY_OUT_SYSTEM)/lib64/vendor.xiaomi.hardware.misys@4.0.so \
vendor/xiaomi/camera/proprietary/system_ext/lib/libOpenCL_system.so:$(TARGET_COPY_OUT_SYSTEM_EXT)/lib/libOpenCL_system.so \
vendor/xiaomi/camera/proprietary/system_ext/lib64/libOpenCL_system.so:$(TARGET_COPY_OUT_SYSTEM_EXT)/lib64/libOpenCL_system.so \
vendor/xiaomi/camera/proprietary/vendor/bin/hw/vendor.xiaomi.hardware.misys@1.0-service:$(TARGET_COPY_OUT_VENDOR)/bin/hw/vendor.xiaomi.hardware.misys@1.0-service \
vendor/xiaomi/camera/proprietary/vendor/bin/hw/vendor.xiaomi.hardware.misys@2.0-service:$(TARGET_COPY_OUT_VENDOR)/bin/hw/vendor.xiaomi.hardware.misys@2.0-service \
vendor/xiaomi/camera/proprietary/vendor/bin/hw/vendor.xiaomi.hardware.misys@3.0-service:$(TARGET_COPY_OUT_VENDOR)/bin/hw/vendor.xiaomi.hardware.misys@3.0-service \
vendor/xiaomi/camera/proprietary/vendor/bin/hw/vendor.xiaomi.hardware.misys@4.0-service:$(TARGET_COPY_OUT_VENDOR)/bin/hw/vendor.xiaomi.hardware.misys@4.0-service \
vendor/xiaomi/camera/proprietary/vendor/etc/init/android.hardware.camera.provider@2.4-service_64.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/android.hardware.camera.provider@2.4-service_64.rc \
vendor/xiaomi/camera/proprietary/vendor/etc/init/vendor.xiaomi.hardware.misys@1.0-service.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/vendor.xiaomi.hardware.misys@1.0-service.rc \
vendor/xiaomi/camera/proprietary/vendor/etc/init/vendor.xiaomi.hardware.misys@2.0-service.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/vendor.xiaomi.hardware.misys@2.0-service.rc \
vendor/xiaomi/camera/proprietary/vendor/etc/init/vendor.xiaomi.hardware.misys@3.0-service.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/vendor.xiaomi.hardware.misys@3.0-service.rc \
vendor/xiaomi/camera/proprietary/vendor/etc/init/vendor.xiaomi.hardware.misys@4.0-service.rc:$(TARGET_COPY_OUT_VENDOR)/etc/init/vendor.xiaomi.hardware.misys@4.0-service.rc \
vendor/xiaomi/camera/proprietary/vendor/lib/libOpenCL.so:$(TARGET_COPY_OUT_VENDOR)/lib/libOpenCL.so \
vendor/xiaomi/camera/proprietary/vendor/lib64/hw/vendor.xiaomi.hardware.misys@1.0-impl.so:$(TARGET_COPY_OUT_VENDOR)/lib64/hw/vendor.xiaomi.hardware.misys@1.0-impl.so \
vendor/xiaomi/camera/proprietary/vendor/lib64/hw/vendor.xiaomi.hardware.misys@2.0-impl.so:$(TARGET_COPY_OUT_VENDOR)/lib64/hw/vendor.xiaomi.hardware.misys@2.0-impl.so \
vendor/xiaomi/camera/proprietary/vendor/lib64/hw/vendor.xiaomi.hardware.misys@3.0-impl.so:$(TARGET_COPY_OUT_VENDOR)/lib64/hw/vendor.xiaomi.hardware.misys@3.0-impl.so \
vendor/xiaomi/camera/proprietary/vendor/lib64/hw/vendor.xiaomi.hardware.misys@4.0-impl.so:$(TARGET_COPY_OUT_VENDOR)/lib64/hw/vendor.xiaomi.hardware.misys@4.0-impl.so \
vendor/xiaomi/camera/proprietary/vendor/lib64/libOpenCL.so:$(TARGET_COPY_OUT_VENDOR)/lib64/libOpenCL.so \
vendor/xiaomi/camera/proprietary/vendor/lib64/lib_sr_models.so:$(TARGET_COPY_OUT_VENDOR)/lib64/lib_sr_models.so \
vendor/xiaomi/camera/proprietary/vendor/lib64/libarcsat.so:$(TARGET_COPY_OUT_VENDOR)/lib64/libarcsat.so \
vendor/xiaomi/camera/proprietary/vendor/lib64/libbeauty_face_interface.so:$(TARGET_COPY_OUT_VENDOR)/lib64/libbeauty_face_interface.so \
vendor/xiaomi/camera/proprietary/vendor/lib64/libcheckpid.so:$(TARGET_COPY_OUT_VENDOR)/lib64/libcheckpid.so \
vendor/xiaomi/camera/proprietary/vendor/lib64/libflaw.so:$(TARGET_COPY_OUT_VENDOR)/lib64/libflaw.so \
vendor/xiaomi/camera/proprietary/vendor/lib64/liblogwrap_vendor.so:$(TARGET_COPY_OUT_VENDOR)/lib64/liblogwrap_vendor.so \
vendor/xiaomi/camera/proprietary/vendor/lib64/librelight_only.so:$(TARGET_COPY_OUT_VENDOR)/lib64/librelight_only.so \
vendor/xiaomi/camera/proprietary/vendor/lib64/libsdk_sr.so:$(TARGET_COPY_OUT_VENDOR)/lib64/libsdk_sr.so \
vendor/xiaomi/camera/proprietary/vendor/lib64/libsupermoon.so:$(TARGET_COPY_OUT_VENDOR)/lib64/libsupermoon.so \
vendor/xiaomi/camera/proprietary/vendor/lib64/vendor.xiaomi.hardware.misys@1.0.so:$(TARGET_COPY_OUT_VENDOR)/lib64/vendor.xiaomi.hardware.misys@1.0.so \
vendor/xiaomi/camera/proprietary/vendor/lib64/vendor.xiaomi.hardware.misys@2.0.so:$(TARGET_COPY_OUT_VENDOR)/lib64/vendor.xiaomi.hardware.misys@2.0.so \
vendor/xiaomi/camera/proprietary/vendor/lib64/vendor.xiaomi.hardware.misys@3.0.so:$(TARGET_COPY_OUT_VENDOR)/lib64/vendor.xiaomi.hardware.misys@3.0.so \
vendor/xiaomi/camera/proprietary/vendor/lib64/vendor.xiaomi.hardware.misys@4.0.so:$(TARGET_COPY_OUT_VENDOR)/lib64/vendor.xiaomi.hardware.misys@4.0.so
PRODUCT_PACKAGES += \
MiuiCamera \
vendor.xiaomi.hardware.misys-V1.0-java \
vendor.xiaomi.hardware.misys-V2.0-java \
vendor.xiaomi.hardware.misys-V4.0-java \
vendor.xiaomi.hardware.misys.V3_0 \
vendor.xiaomi.hardware.misys@1.0 \
vendor.xiaomi.hardware.misys@2.0 \
vendor.xiaomi.hardware.misys@3.0 \
vendor.xiaomi.hardware.misys@4.0

View File

@@ -0,0 +1,73 @@
multiCameraEnable=TRUE
logInfoMask=0x0
overrideLogLevels=0x1
logConfigMask=0x0
logWarningMask=0x0
logVerboseMask=0x0
logDRQEnable=0x0
logMetaEnable=0x0
logRequestMapping=0x0
systemLogEnable=TRUE
logCoreCfgMask=0
enableAsciiLogging=FALSE
enableTxtLogging=0
traceGroupsEnable=0
enable3ADebugData=FALSE
enableTuningMetadata=FALSE
MPMSizeThresToDisableDelayedUnmap=0
MPMForceDisableDelayedUnmap=TRUE
#pdafHWEnable=TRUE
oisMaxWaitingTime=50
enableOISOptimization=TRUE
enableResourceManager=TRUE
enableRawHDR=0
#forceHWMFFixedNumOfFrames=5
enableICAInGrid=1
enableNCSService=1
iseispreviewSupported=TRUE
ismfnrbokehsupported=TRUE
isBeautyMakeupSupported=TRUE
isVideoBeautifierSupported=TRUE
isSuperPortraitSupported=TRUE
is3rdLightWeightSupported=TRUE
raiserecoverysigabrt=FALSE
minReprocessInputWidth=8000
minReprocessInputHeight=6000
gyroSensitivityLLS=0.04
gyroSensitivityLLSEnable=FALSE
disableFocusIndication=TRUE
overrideFlashTorchCurrent=380
overrideFlashlightCurrent=130
enableSensorHWSync=1
enableSensorFpsMatch=TRUE
isVideoBokehSupported=TRUE
isVideoMimovieSupported=TRUE
isVideoLogformatSupported=TRUE
isFrontVideoBokehSupported=TRUE
isColorRetentionSupported=TRUE
isVideoFilterSupported=TRUE
AIEnhancementVersion=2
multiCameraFrameSync=1
#isParallelCameraDeviceSupported=TRUE
FDFilterEngine=FD_Standard_ARM
isVideoColorRetentionBackSupported=TRUE
fovcEnable=1
vsquality=5@30|6@30
FDPreprocessing=GTM
#miIfeCamnocBandwidthMBytes=4317
#miIfeExternalBandwidthMBytes=3746
#miIfeBandwidthBoostCount=1
algoNormalSupportedValue=0:99|21:99|1:39|G:33
algoHQSupportedValue=0:66|21:66|1:6|G:0
algoSuperNightSupportedValue=0:8|1:8|21:0|G:0
algoEISSupportedValue=0:16|1:0|21:16|G:0
algoCameraXEnabled=TRUE
sessionMaxFlushWaitTime=2000
algoSDKEnabled=TRUE
enableCHIPartialData=1
quickviewsupport=TRUE
enableGPURotation=TRUE
colorBokehVersion=0
AIEnhancementVideoSupportVersion=1
superVideoFilterVersion=1
isVideoBeautyScreenshotSupported=TRUE

View File

@@ -0,0 +1,623 @@
<?xml version="1.0" encoding="UTF-8"?>
<features>
<!--whether the device is pad-->
<bool name="is_pad">false</bool>
<!--whether the device is xiaomi-->
<bool name="is_xiaomi">true</bool>
<!--whether the device is hongmi-->
<bool name="is_hongmi">false</bool>
<!--whether the device support alpha optimized-->
<bool name="support_alpha_optimized">true</bool>
<!--whether the device support simple launcher-->
<bool name="support_simple_launcher">false</bool>
<!--whether the device supports torch-->
<bool name="support_torch">true</bool>
<!--whether install the fm app-->
<bool name="support_fm">false</bool>
<!--whether the device supports oldman mode-->
<bool name="support_oldman_mode">false</bool>
<!--whether the device is dual sim card-->
<bool name="support_dual_sim_card">true</bool>
<!--whether the device support 4G+-->
<bool name="support_ca">true</bool>
<!--whether the device has dual systems-->
<bool name="is_dual_system">false</bool>
<!--whether the device is emulated sdcard-->
<bool name="is_emulated_sdcard">true</bool>
<!--whether the device has dual sd card-->
<bool name="support_dual_sd_card">false</bool>
<!--whether the device supports bt debug trace-->
<bool name="btdebug_enabled">true</bool>
<!--whether the device supports page layout-->
<bool name="support_page_layout">false</bool>
<!--whether the device supports record param-->
<bool name="support_record_param">false</bool>
<!--whether the device supports interview record param-->
<bool name="support_interview_record_param">false</bool>
<!--whether the device supports stereo record-->
<bool name="support_stereo_record">true</bool>
<!--whether the device supports hd record param-->
<bool name="support_hd_record_param">false</bool>
<!--whether the device supports voip record -->
<bool name="support_voip_record">true</bool>
<!--whether the device supports screenrecorder inner-sound recorder mode-->
<integer name="support_inner_record">1</integer>
<!--whether the device supports screen paper mode-->
<bool name="support_screen_paper_mode">true</bool>
<!--whether the device supports button light-->
<bool name="support_button_light">false</bool>
<!--whether the device supports emulated storage-->
<bool name="support_emulated_storage">true</bool>
<!--whether the device supports internal sdcard-->
<bool name="support_internal_sdcard">false</bool>
<!--whether the device supports power mode-->
<bool name="support_power_mode">false</bool>
<!--whether the device supports dolby-->
<bool name="support_dolby">false</bool>
<!--which screen effect options should be show-->
<integer name="screen_effect_supported">7</integer>
<!--whether support the new automatic brightness logic-->
<bool name="support_autobrightness_optimize">true</bool>
<!--whether the device supports wapi-->
<bool name="support_wapi">true</bool>
<!--whether the device is mediatek-->
<bool name="is_mediatek">false</bool>
<!--whether the device supports media feedback-->
<bool name="support_media_feedback">false</bool>
<!--whether the device supports phone call noise suppression-->
<bool name="support_phone_call_noise_suppression">false</bool>
<!--whether the device supports touch sensitive-->
<bool name="support_touch_sensitive">false</bool>
<!--whether the device supports broadcom wapi-->
<bool name="support_broadcom_wapi">true</bool>
<!--whether the device supports erase external storage-->
<bool name="support_erase_external_storage">true</bool>
<!--whether the device supports headset-->
<bool name="support_headset">true</bool>
<!--whether the device supports nvdia wifi display-->
<bool name="support_nvdia_wifi_display">false</bool>
<!-- whether support miplay privacy cast(wifi display)-->
<bool name="support_miplay_cast_privacy">true</bool>
<!--whether the device supports eap sim-->
<bool name="support_eap_sim">true</bool>
<!--whether the device supports screen optimize-->
<bool name="support_screen_optimize">true</bool>
<!--whether the device supports agps-->
<bool name="support_agps">true</bool>
<!--whether the device supports feedback level-->
<bool name="support_feedback_level">true</bool>
<!--whether the device supports miui lite-->
<bool name="enable_miui_lite">false</bool>
<!--whether the device supports steps_provider-->
<bool name="support_steps_provider">true</bool>
<!--whether the device support hall sensor-->
<bool name="support_hall_sensor">true</bool>
<!--whether the device supports hifi-->
<bool name="support_hifi">false</bool>
<!--whether the device supports agps parameters-->
<bool name="support_agps_paras">true</bool>
<!--whether the device supports agps roaming-->
<bool name="support_agps_roaming">false</bool>
<!--whether the device supports IR-->
<!-- Support Dual Gps-->
<bool name="support_dual_gps">true</bool>
<bool name="support_ir">true</bool>
<!-- whether the device supports app hiding-->
<bool name="support_app_hiding">true</bool>
<!--whether the device can read cpu4 freq-->
<bool name="is_read_cpu4_freq">false</bool>
<!--whether the device supports cit-->
<bool name="support_cit">true</bool>
<!--whether the device is xiaomi-->
<bool name="is_xiaomi_device">true</bool>
<!--whether the device supports encrypt-->
<bool name="support_device_encrypt">true</bool>
<!--whether support burst shoot in camera-->
<bool name="support_camera_burst_shoot">true</bool>
<!--whether support solid recording in camera-->
<bool name="support_camera_movie_solid">true</bool>
<!--whether support shader effect in camera-->
<bool name="support_camera_shader_effect">true</bool>
<!--whether support skin beauty in camera-->
<bool name="support_camera_skin_beauty">true</bool>
<!--whether support age detection in camera-->
<bool name="support_camera_age_detection">true</bool>
<!--whether support record location in camera-->
<bool name="support_camera_record_location">true</bool>
<!--whether support time watermark in camera-->
<bool name="support_camera_water_mark">true</bool>
<!--whether support new style time watermark in camera-->
<bool name="support_camera_new_style_time_water_mark">true</bool>
<!--whether support face info watermark in camera-->
<bool name="support_camera_face_info_water_mark">true</bool>
<!--whether support square mode in camera-->
<bool name="support_camera_square_mode">true</bool>
<!--whether support pause recording in camera-->
<bool name="support_camera_video_pause">true</bool>
<!--whether support boosting screen brightness in camera-->
<bool name="support_camera_boost_brightness">true</bool>
<!-- whether support dynamic light spot in portrait module -->
<bool name="support_camera_dynamic_light_spot">true</bool>
<!--whether taking lower size panorama in camera-->
<bool name="is_lower_size_panorama">false</bool>
<!--whether support full size panorama in camera-->
<bool name="support_full_size_panorama">true</bool>
<!--whether taking lower size effect image in camera-->
<bool name="is_lower_size_effect">false</bool>
<!--whether taking full size effect image in camera-->
<bool name="is_full_size_effect">true</bool>
<!--whether support aohdr in camera-->
<bool name="support_camera_aohdr">false</bool>
<!--whether support high frame recording in camera-->
<bool name="support_camera_hfr">true</bool>
<!--whether support chroma flash in camera-->
<bool name="support_chroma_flash">false</bool>
<!--whether support Android Flashlight Controller-->
<bool name="support_android_flashlight">true</bool>
<!--whether support object tracking in camera-->
<bool name="support_object_track">false</bool>
<!--whether support 4k recording in camera-->
<bool name="support_camera_4k_quality">true</bool>
<!--whether support audio focus recording in camera-->
<bool name="support_camera_audio_focus">false</bool>
<!--whether use morpho lib in camera-->
<bool name="is_camera_use_morpho_lib">true</bool>
<!--whether replace a lower cost effect to avoid preview lag-->
<bool name="is_camera_replace_higher_cost_effect">false</bool>
<!--whether support manual focus/exposure_time in camera-->
<bool name="support_camera_manual_function">true</bool>
<!--whether capture when user press down the shutter in camera instead of left the shutter-->
<bool name="support_camera_press_down_capture">true</bool>
<!--whether support capture in torch mode in camera-->
<bool name="support_camera_torch_capture">true</bool>
<!--whether freeze preview after hdr capture in camera-->
<bool name="is_camera_freeze_after_hdr_capture">false</bool>
<!--whether set orientation info for face detection in camera-->
<bool name="is_camera_face_detection_need_orientation">true</bool>
<!--whether hold blured background for effects preview in camera-->
<bool name="is_camera_hold_blur_background">false</bool>
<!--whether support peaking mf in camera-->
<bool name="support_camera_peaking_mf">true</bool>
<!--whether support pause in hfr recording-->
<bool name="support_hfr_video_pause">false</bool>
<!--whether support gradienter in camera-->
<bool name="support_camera_gradienter">true</bool>
<!--whether scan qrcode with lower frequency in camera-->
<bool name="is_camera_lower_qrscan_frequency">true</bool>
<!--whether listen frame with single subthread looper in camera-->
<bool name="is_camera_preview_with_subthread_looper">true</bool>
<!--whether add watermark in camera app-->
<bool name="is_camera_app_water_mark">true</bool>
<!--whether support tiltshift in camera-->
<bool name="support_camera_tilt_shift">true</bool>
<!--whether support magic mirror in camera-->
<bool name="support_camera_magic_mirror">true</bool>
<!--whether support groupshot mode in camera-->
<bool name="support_camera_groupshot">true</bool>
<!--whether support snap with screen off in camera-->
<bool name="support_camera_quick_snap">true</bool>
<!--whether compass support tilt rotate calibrate -->
<bool name="support_rotate_calibrate">true</bool>
<!-- whether support double tap to wake up device -->
<bool name="support_gesture_wakeup">true</bool>
<!-- whether support always on -->
<bool name="support_aod">true</bool>
<!-- whether support edge handgrip -->
<bool name="support_edge_handgrip">false</bool>
<!-- whether the device app permission detail show in provision-->
<bool name="support_provision_app_permission">true</bool>
<!--whether support pre-installed application-->
<bool name="support_pre_installed_application">true</bool>
<!--wheater support validate device when syste upadte -->
<bool name="support_ota_validate">true</bool>
<!--whether show basic info items-->
<bool name="support_show_basic_items">true</bool>
<!--whether show my device-->
<bool name="support_my_device">true</bool>
<!--whether round corner-->
<bool name="support_round_corner">true</bool>
<!--wheater support show credentials-->
<bool name="support_credentials">true</bool>
<!--whether support main show XiaoAi-->
<bool name="support_main_xiaoai">true</bool>
<!--battery capacity typ of the device-->
<string name="battery_capacity_typ">4520</string>
<!--the vendor feature, it's value may be qcom,mediatek,leadcore or nvidia-->
<string name="vendor">qcom</string>
<!--release time for the device, should be an unix timestamp-->
<string name="release_time">1473868800000</string>
<!--0:not support 1:close gamut 2:close ce-->
<integer name="screen_standard_mode">1</integer>
<!--the max level for paper mode -->
<float name="paper_mode_max_level">255.0</float>
<!--The value of papar min level-->
<float name="paper_mode_min_level">58.0</float>
<!--Flag of reduce preview size in camera(1:reduce, 0:do not reduce; 1st byte:rear camera, 2nd byte:front camera, 3rd byte:rear video, 4th byte:front video )-->
<integer name="camera_reduce_preview_flag">14</integer>
<!--max number of burst images one time -->
<integer name="burst_shoot_count">100</integer>
<!--b0:flash b1:hdr b2:motion b3:night-->
<integer name="camera_supported_asd">11</integer>
<!--whether rotate the final image in camera isp-->
<bool name="is_camera_isp_rotated">false</bool>
<!--max cpu freq of the device-->
<integer name="cpu_max_freq">320</integer>
<!--Successful flag of camera continuous auto focus result-->
<integer name="camera_focus_success_flag">2</integer>
<!--total steps number of camera compensation-->
<float name="camera_exposure_compensation_steps_num">12.0</float>
<!--Left margin of count down parent layout for front camera-->
<float name="camera_front_count_down_margin">-0.5573</float>
<bool name="front_fingerprint_sensor">false</bool>
<!--whether the device supports smart cover with small window-->$
<bool name="support_small_win_cover">true</bool>
<!--0: x7 type; 1: A1 type -->
<integer name="small_win_cover_type">1</integer>
<integer name="smartcover_smallwindow_left">0</integer>
<integer name="smartcover_smallwindow_top">0</integer>
<integer name="smartcover_smallwindow_right">1080</integer>
<integer name="smartcover_smallwindow_bottom">1920</integer>
<!-- fingerprint navigation event name list -->
<string-array name="fp_nav_event_name_list">
<item>uinput-fpc</item>
<item>uinput-goodix</item>
</string-array>
<bool name="support_tap_fingerprint_sensor_to_home">false</bool>
<!-- type of soter finger pay, config by owner of soter -->
<integer name="type_soter_finger_pay">2</integer>
<!-- wheter the device support widevine l1, 1: support, 2: ota_support -->
<integer name="support_widevine_l1">1</integer>
<!-- finger record, config by owner -->
<integer name="type_mqs_finger_record">3</integer>
<!--wheater the device supports persist screen color in driver-->
<bool name="support_screen_color_persist">true</bool>
<!--cpu combination -->
<integer name="cpu_combination">44</integer>
<integer name="xo_therm">9</integer>
<integer name="case_therm">9</integer>
<!--whether the middle keycode is KEYCODE_DPAD_CENTER-->
<bool name="middle_keycode_is_dpad_center">false</bool>
<!--wheater the device supports force touch -->
<bool name="support_force_touch">false</bool>
<!-- font scale for largeui mode -->
<float name="smallui_font_scale">0.86</float>
<!-- font scale for largeui mode -->
<float name="mediumui_font_scale">1.05</float>
<!-- font scale for largeui mode -->
<float name="largeui_font_scale">1.25</float>
<!-- font scale for largeui mode -->
<float name="hugeui_font_scale">1.40</float>
<!-- font scale for largeui mode -->
<float name="godzillaui_font_scale">1.40</float>
<!-- support nfc -->
<bool name="support_nfc">true</bool>
<!-- NFC related -->
<bool name="support_se_route">true</bool>
<!--whether the device supports screen key position swap-->
<bool name="support_screen_key_swap">false</bool>
<!--These app has permission to access aux camera -->
<string-array name="camera_aux_package_list">
<item>org.codeaurora.snapcam</item>
<item>com.android.camera</item>
<item>com.miui.cit</item>
<item>com.qualcomm.qti.qmmi</item>
<item>com.android.keyguard</item>
<item>com.android.systemui</item>
<item>com.phonetest.application</item>
<item>com.phonetest.application.test</item>
<item>com.ss.android.ugc.aweme</item>
<item>com.xiaomi.cameratest</item>
<item>com.xiaomi.cameratools</item>
<item>com.blink.academy.protake</item>
<item>com.xiaomi.camera.mivi</item>
<item>com.xiaomi.camera.sample</item>
<item>com.smile.gifmaker</item>
<item>com.snapchat.android</item>
</string-array>
<!--These app can only access physical camera -->
<string-array name="camera_hide_logical_package_list">
<item>com.blink.academy.protake</item>
<item>com.xiaomi.camera.mivi</item>
<item>com.xiaomi.camera.sample</item>
<item>com.smile.gifmaker</item>
<item>com.snapchat.android</item>
</string-array>
<!-- -->
<string-array name="camera_adjust_picture_size_cmd_list">
<!-- camera id 0 set sensor size 48M, camera id 1 set sensor size 20M -->
<item>com.ludashi:0, add, 8000, 6000, 33,false</item>
<item>com.ludashi:1, add, 5184, 3880, 33,false</item>
<!-- camera id 0 set sensor size 48M, camera id 1 set sensor size 20M -->
<item>com.antutu:0, ssize, 8000, 6000;1, ssize, 5184, 3880</item>
<!-- camera id 1 limit picture-size <= 1920x1080 -->
<item>com.tencent.mobileqq:1,limit,1920, 1080</item>
</string-array>
<!--still beautify value for 3rd party call-->
<string name="extra_still_beautify_value">i:2</string>
<!--min previewsize value for video call case-->
<integer name="extra_min_preview_size">921600</integer>
<!--Led light features-->
<bool name="support_led_light">false</bool>
<bool name="support_led_color">false</bool>
<bool name="support_audio_loopback">true</bool>
<bool name="support_new_silentmode">true</bool>
<!-- whether CN hardware can flash Global rom -->
<bool name="enable_flash_global">true</bool>
<!-- Support Sign Verify In Cust Partition-->
<bool name="support_sign_verify_in_cust">true</bool>
<!--Add for the system data-app which could uninstall by user-->
<string-array name="system_data_packagename_list">
<item>com.xiaomi.pass</item>
<item>com.xiaomi.scanner</item>
<item>com.xiaomi.gamecenter</item>
<item>com.miui.weather2</item>
<item>com.miui.notes</item>
<item>com.miui.compass</item>
<item>com.miui.calculator</item>
<item>com.android.email</item>
<item>com.miui.cleanmaster</item>
<item>com.mi.misupport</item>
<item>com.mfashiongallery.emag</item>
<item>com.miui.personalassistant</item>
<item>com.miui.voip</item>
<item>com.miui.yellowpage</item>
<item>com.xiaomi.midrop</item>
<item>com.android.midrive</item>
<item>com.xiaomi.drivemode</item>
<item>com.miui.smarttravel</item>
</string-array>
<!--system data-app path list -->
<string-array name="system_data_path_list">
<item>/system/data-app/XMPass/XMPass.apk</item>
<item>/system/data-app/MiuiScanner/MiuiScanner.apk</item>
<item>/system/data-app/GameCenter/GameCenter.apk</item>
<item>/system/data-app/Weather/Weather.apk</item>
<item>/system/data-app/Notes/Notes.apk</item>
<item>/system/data-app/MiuiCompass/MiuiCompass.apk</item>
<item>/system/data-app/Calculator/Calculator.apk</item>
<item>/system/data-app/Email/Email.apk</item>
<item>/system/data-app/CleanMaster/CleanMaster.apk</item>
<item>/system/data-app/MiSupport/MiSupport.apk</item>
<item>/system/data-app/MiGalleryLockscreen/MiGalleryLockscreen.apk</item>
<item>/system/data-app/PersonalAssistant/PersonalAssistant.apk</item>
<item>/system/data-app/MiuiVoip/MiuiVoip.apk</item>
<item>/system/data-app/YellowPage/YellowPage.apk</item>
<item>/system/data-app/MiDrop/MiDrop.apk</item>
<item>/system/data-app/MiDrive/MiDrive.apk</item>
<item>/system/data-app/MiuiDriveMode/MiuiDriveMode.apk</item>
<item>/system/data-app/SmartTravel/SmartTravel.apk</item>
</string-array>
<!--whether surpport paper mode animation-->
<bool name="support_papermode_animation">true</bool>
<!--whether paper mode and screen effect is compatible-->
<bool name="is_compatible_paper_and_screen_effect">true</bool>
<!--whether support optical zoom in camera-->
<bool name="is_support_optical_zoom">true</bool>
<!--whether support portrait in camera-->
<bool name="is_support_portrait">true</bool>
<!--whether taking legacy face beauty in camera-->
<bool name="is_legacy_face_beauty">false</bool>
<!--whether taking 18x9 ratio screen in camera-->
<bool name="is_18x9_ratio_screen">false</bool>
<!--whether support add watermark on bottom left of picture-->
<bool name="support_picture_watermark">true</bool>
<!--whether front camera support bokeh or not-->
<bool name="support_front_bokeh">true</bool>
<!--whether front camera support mfnr with face beauty-->
<bool name="support_front_beauty_mfnr">true</bool>
<!--whether camera support portrait mode switch -->
<bool name="camera_is_support_portrait_front">true</bool>
<!--whether camera support 3D face beauty-->
<bool name="support_3d_face_beauty">true</bool>
<!--whether camera support HFR video mode-->
<bool name="support_video_hfr_mode">false</bool>
<!--whether camera support superresolution mode-->
<bool name="support_super_resolution">true</bool>
<!--whether camera support front flash-->
<bool name="support_front_flash">true</bool>
<!--whether support psensor in pocket mode (true by default)-->
<bool name="support_psensor_pocket_mode">false</bool>
<!--whether camera support realtime manual exposure time-->
<bool name="support_realtime_manual_exposure_time">true</bool>
<!--camera_adjust_picture_size_enabled-->
<bool name="camera_adjust_picture_size_enabled">true</bool>
<!--whether sensor_has_latency-->
<bool name="sensor_has_latency">true</bool>
<!-- whether disable always discoverable -->
<bool name="support_hide_discoverable">true</bool>
<!-- whether support bluetooth fast startup -->
<bool name="support_bluetooth_boost">true</bool>
<string name="bluetooth_boost_value">0x000011C0</string>
<!-- whether support fast connect bluetooth device -->
<bool name="support_bluetooth_fast_connect">true</bool>
<!-- whether support fast connect for blackshark -->
<bool name="support_blackshark_fast_connect">true</bool>
<bool name="support_blackshark_right_fast_connect">true</bool>
<!-- whether support ai task button -->
<bool name="support_ai_task">false</bool>
<!-- whether support touch gamemode -->
<bool name="support_touchfeature_gamemode">true</bool>
<!-- whether support LHDC codec offload -->
<bool name="support_lhdc_offload">true</bool>
<!-- whether support a2dp latency-->
<bool name="support_a2dp_latency">true</bool>
<!-- whether support display gamemode -->
<bool name="support_displayfeature_gamemode">true</bool>
<!-- whether support fps change -->
<integer-array name="fpsList">
<item>120</item>
<item>60</item>
</integer-array>
<integer name="defaultFps">60</integer>
<!-- whether support wlan low latency mode -->
<bool name="support_wifi_low_latency_mode">true</bool>
<!-- whether support network rps mode -->
<bool name="support_network_rps_mode">true</bool>
<!-- whether support extreme mode only support perseus-->
<bool name="support_extreme_battery_saver">false</bool>
<!--These region support face unlock-->
<string-array name="support_face_unlock_region_global">
<item>ALL</item>
</string-array>
<!--These region support face unlock-->
<string-array name="support_face_unlock_region_dom">
<item>CN</item>
</string-array>
<!-- whether support multi face input -->
<bool name="support_multi_face_input">true</bool>
<bool name="support_multi_face_input_global">true</bool>
<!-- whether support ifaa 2dfa feature -->
<integer name="ifaa_2dfa_support">0</integer>
<!-- Support ARCore, This feature is subjected to change if google defines a standard feature.-->
<bool name="support_ar_core">true</bool>
<!-- whether support_screen_on_delayed -->
<bool name="support_screen_on_delayed">true</bool>
<!-- whether support hangup while screen turnning off -->
<bool name="support_hangup_while_screen_off">true</bool>
<!-- whether support dc backlight -->
<bool name="support_dc_backlight">false</bool>
<!-- whether support backlight bit switch -->
<bool name="support_backlight_bit_switch">true</bool>
<!-- whether support display expert mode -->
<bool name="support_display_expert_mode">true</bool>
<!-- display expert mode color gamut default -->
<integer name="expert_gamut_default">0</integer>
<!-- display expert mode color gamut min -->
<integer name="expert_gamut_min">0</integer>
<!-- display expert mode color gamut max -->
<integer name="expert_gamut_max">3</integer>
<!-- display expert mode RGB default -->
<integer name="expert_RGB_default">255</integer>
<!-- display expert mode RGB min -->
<integer name="expert_RGB_min">50</integer>
<!-- display expert mode RGB max -->
<integer name="expert_RGB_max">255</integer>
<!-- display expert mode hue default -->
<integer name="expert_hue_default">0</integer>
<!-- display expert mode hue min -->
<integer name="expert_hue_min">-180</integer>
<!-- display expert mode hue max -->
<integer name="expert_hue_max">180</integer>
<!-- display expert mode saturation default -->
<integer name="expert_saturation_default">0</integer>
<!-- display expert mode saturation min -->
<integer name="expert_saturation_min">-50</integer>
<!-- display expert mode saturation max -->
<integer name="expert_saturation_max">50</integer>
<!-- display expert mode value default -->
<integer name="expert_value_default">0</integer>
<!-- display expert mode value min -->
<integer name="expert_value_min">-255</integer>
<!-- display expert mode value max -->
<integer name="expert_value_max">255</integer>
<!-- display expert mode contrast default -->
<integer name="expert_contrast_default">0</integer>
<!-- display expert mode contrast min -->
<integer name="expert_contrast_min">-100</integer>
<!-- display expert mode contrast max -->
<integer name="expert_contrast_max">100</integer>
<!-- display expert mode gamma default -->
<integer name="expert_gamma_default">220</integer>
<!-- display expert mode gamma min -->
<integer name="expert_gamma_min">170</integer>
<!-- display expert mode gamma max -->
<integer name="expert_gamma_max">270</integer>
<!-- device head sar value -->
<float name="device_head_sar">1.037</float>
<!-- device body sar value -->
<float name="device_body_sar">0.718</float>
<!-- whether support video box display effect -->
<bool name="support_videobox_display_effect">true</bool>
<!-- support video toolbox -->
<bool name="is_support_video_tool_box">true</bool>
<!-- whether support 12bit backlight -->
<bool name="support_12bit_backlight">true</bool>
<!-- gamebooster mi time -->
<bool name="support_game_mi_time">true</bool>
<!-- whether support true color -->
<bool name="support_true_color">true</bool>
<!-- whether support keycode_goto_dismiss -->
<bool name="aod_support_keycode_goto_dismiss">true</bool>
<!-- FOD solution -->
<integer name="fod_solution">3</integer>
<!-- whether support low brightness FOD -->
<bool name="support_low_brightness_fod">false</bool>
<!-- whether support sound assist function -->
<bool name="support_sound_assist">true</bool>
<!-- Whether support sunlight mode -->
<bool name="config_sunlight_mode_available">true</bool>
<!-- EdgeSettings Adjust settings -->
<integer-array name="edge_suppresson_condition">
<!-- The max Allow to Adjust -->
<item>50</item>
<item>2</item>
<item>4</item>
<item>6</item>
<item>8</item>
<item>10</item>
</integer-array>
<integer-array name="edge_suppresson_absolute">
<item>0</item>
<item>3</item>
<item>5</item>
<item>8</item>
<item>10</item>
</integer-array>
<integer-array name="edge_suppresson_corner">
<item>150</item>
<item>300</item>
<item>170</item>
<item>170</item>
</integer-array>
<integer-array name="edge_suppresson_size">
<item>12</item>
<item>96</item>
</integer-array>
<!-- whether support paper eyecare-->
<bool name="support_paper_eyecare">true</bool>
<!-- default color temp for paper eyecare -->
<float name="paper_eyecare_default_value">91.0</float>
<!-- default texture for paper eyecare -->
<integer name="paper_eyecare_default_texture">18</integer>
<!-- texture min value for paper eyecare -->
<integer name="paper_eyecare_min_texture">0</integer>
<!-- texture max value for paper eyecare -->
<integer name="paper_eyecare_max_texture">35</integer>
<!-- whether need remove vgpaper-->
<bool name="remove_vgpaper">true</bool>
<!-- whether support truetone-->
<bool name="support_truetone">true</bool>
<!-- device support screen enhance engine -->
<bool name="support_screen_enhance_engine">true</bool>
<!-- is support fingerprint tap-->
<bool name="is_support_fingerprint_tap">true</bool>
<!-- Sunlight mode threshold, 4096 level backlight is 1000, 2047 is 500-->
<integer name="threashold_sunlight_brightness">1000</integer>
<!-- whether support Macro Keyboard -->
<bool name="support_mi_game_macro">true</bool>
<bool name="remove_vgpaper">true</bool>
<!-- gamebooster game gunsight -->
<bool name="support_game_gunsight">true</bool>
<string-array name="dynamic_partition_list">
<item>/system</item>
<item>/system_ext</item>
<item>/product</item>
<item>/vendor</item>
<item>/odm</item>
<item>/mi_ext</item>
</string-array>
<string-array name="log_partition_list">
<item>rescue</item>
<item>oops</item>
<item>minidump</item>
<item>rawdump</item>
<item>crash_history</item>
<item>expdb</item>
</string-array>
<string name="partition_name_path">/dev/block/by-name/</string>
</features>

View File

@@ -0,0 +1,619 @@
<?xml version="1.0" encoding="UTF-8"?>
<features>
<!--whether the device is pad-->
<bool name="is_pad">false</bool>
<!--whether the device is xiaomi-->
<bool name="is_xiaomi">true</bool>
<!--whether the device is hongmi-->
<bool name="is_hongmi">false</bool>
<!--whether the device support alpha optimized-->
<bool name="support_alpha_optimized">true</bool>
<!--whether the device support simple launcher-->
<bool name="support_simple_launcher">false</bool>
<!--whether the device supports torch-->
<bool name="support_torch">true</bool>
<!--whether install the fm app-->
<bool name="support_fm">false</bool>
<!--whether the device supports oldman mode-->
<bool name="support_oldman_mode">false</bool>
<!--whether the device is dual sim card-->
<bool name="support_dual_sim_card">true</bool>
<!--whether the device support 4G+-->
<bool name="support_ca">true</bool>
<!--whether the device has dual systems-->
<bool name="is_dual_system">false</bool>
<!--whether the device is emulated sdcard-->
<bool name="is_emulated_sdcard">true</bool>
<!--whether the device has dual sd card-->
<bool name="support_dual_sd_card">false</bool>
<!--whether the device supports bt debug trace-->
<bool name="btdebug_enabled">true</bool>
<!--whether the device supports page layout-->
<bool name="support_page_layout">false</bool>
<!--whether the device supports record param-->
<bool name="support_record_param">false</bool>
<!--whether the device supports interview record param-->
<bool name="support_interview_record_param">false</bool>
<!--whether the device supports stereo record-->
<bool name="support_stereo_record">true</bool>
<!--whether the device supports hd record param-->
<bool name="support_hd_record_param">false</bool>
<!--whether the device supports voip record -->
<bool name="support_voip_record">true</bool>
<!--whether the device supports screenrecorder inner-sound recorder mode-->
<integer name="support_inner_record">1</integer>
<!--whether the device supports screen paper mode-->
<bool name="support_screen_paper_mode">true</bool>
<!--whether the device supports button light-->
<bool name="support_button_light">false</bool>
<!--whether the device supports emulated storage-->
<bool name="support_emulated_storage">true</bool>
<!--whether the device supports internal sdcard-->
<bool name="support_internal_sdcard">false</bool>
<!--whether the device supports power mode-->
<bool name="support_power_mode">false</bool>
<!--whether the device supports dolby-->
<bool name="support_dolby">false</bool>
<!--which screen effect options should be show-->
<integer name="screen_effect_supported">7</integer>
<!--whether support the new automatic brightness logic-->
<bool name="support_autobrightness_optimize">true</bool>
<!--whether the device supports wapi-->
<bool name="support_wapi">true</bool>
<!--whether the device is mediatek-->
<bool name="is_mediatek">false</bool>
<!--whether the device supports media feedback-->
<bool name="support_media_feedback">false</bool>
<!--whether the device supports phone call noise suppression-->
<bool name="support_phone_call_noise_suppression">false</bool>
<!--whether the device supports touch sensitive-->
<bool name="support_touch_sensitive">false</bool>
<!--whether the device supports broadcom wapi-->
<bool name="support_broadcom_wapi">true</bool>
<!--whether the device supports erase external storage-->
<bool name="support_erase_external_storage">true</bool>
<!--whether the device supports headset-->
<bool name="support_headset">true</bool>
<!--whether the device supports nvdia wifi display-->
<bool name="support_nvdia_wifi_display">false</bool>
<!-- whether support miplay privacy cast(wifi display)-->
<bool name="support_miplay_cast_privacy">true</bool>
<!--whether the device supports eap sim-->
<bool name="support_eap_sim">true</bool>
<!--whether the device supports screen optimize-->
<bool name="support_screen_optimize">true</bool>
<!--whether the device supports agps-->
<bool name="support_agps">true</bool>
<!--whether the device supports feedback level-->
<bool name="support_feedback_level">true</bool>
<!--whether the device supports miui lite-->
<bool name="enable_miui_lite">false</bool>
<!--whether the device supports steps_provider-->
<bool name="support_steps_provider">true</bool>
<!--whether the device support hall sensor-->
<bool name="support_hall_sensor">true</bool>
<!--whether the device supports hifi-->
<bool name="support_hifi">false</bool>
<!--whether the device supports agps parameters-->
<bool name="support_agps_paras">true</bool>
<!--whether the device supports agps roaming-->
<bool name="support_agps_roaming">false</bool>
<!--whether the device supports IR-->
<!-- Support Dual Gps-->
<bool name="support_dual_gps">true</bool>
<bool name="support_ir">true</bool>
<!-- whether the device supports app hiding-->
<bool name="support_app_hiding">true</bool>
<!--whether the device can read cpu4 freq-->
<bool name="is_read_cpu4_freq">false</bool>
<!--whether the device supports cit-->
<bool name="support_cit">true</bool>
<!--whether the device is xiaomi-->
<bool name="is_xiaomi_device">true</bool>
<!--whether the device supports encrypt-->
<bool name="support_device_encrypt">true</bool>
<!--whether support burst shoot in camera-->
<bool name="support_camera_burst_shoot">true</bool>
<!--whether support solid recording in camera-->
<bool name="support_camera_movie_solid">true</bool>
<!--whether support shader effect in camera-->
<bool name="support_camera_shader_effect">true</bool>
<!--whether support skin beauty in camera-->
<bool name="support_camera_skin_beauty">true</bool>
<!--whether support age detection in camera-->
<bool name="support_camera_age_detection">true</bool>
<!--whether support record location in camera-->
<bool name="support_camera_record_location">true</bool>
<!--whether support time watermark in camera-->
<bool name="support_camera_water_mark">true</bool>
<!--whether support new style time watermark in camera-->
<bool name="support_camera_new_style_time_water_mark">true</bool>
<!--whether support face info watermark in camera-->
<bool name="support_camera_face_info_water_mark">true</bool>
<!--whether support square mode in camera-->
<bool name="support_camera_square_mode">true</bool>
<!--whether support pause recording in camera-->
<bool name="support_camera_video_pause">true</bool>
<!--whether support boosting screen brightness in camera-->
<bool name="support_camera_boost_brightness">true</bool>
<!-- whether support dynamic light spot in portrait module -->
<bool name="support_camera_dynamic_light_spot">true</bool>
<!--whether taking lower size panorama in camera-->
<bool name="is_lower_size_panorama">false</bool>
<!--whether support full size panorama in camera-->
<bool name="support_full_size_panorama">true</bool>
<!--whether taking lower size effect image in camera-->
<bool name="is_lower_size_effect">false</bool>
<!--whether taking full size effect image in camera-->
<bool name="is_full_size_effect">true</bool>
<!--whether support aohdr in camera-->
<bool name="support_camera_aohdr">false</bool>
<!--whether support high frame recording in camera-->
<bool name="support_camera_hfr">true</bool>
<!--whether support chroma flash in camera-->
<bool name="support_chroma_flash">false</bool>
<!--whether support Android Flashlight Controller-->
<bool name="support_android_flashlight">true</bool>
<!--whether support object tracking in camera-->
<bool name="support_object_track">false</bool>
<!--whether support 4k recording in camera-->
<bool name="support_camera_4k_quality">true</bool>
<!--whether support audio focus recording in camera-->
<bool name="support_camera_audio_focus">false</bool>
<!--whether use morpho lib in camera-->
<bool name="is_camera_use_morpho_lib">true</bool>
<!--whether replace a lower cost effect to avoid preview lag-->
<bool name="is_camera_replace_higher_cost_effect">false</bool>
<!--whether support manual focus/exposure_time in camera-->
<bool name="support_camera_manual_function">true</bool>
<!--whether capture when user press down the shutter in camera instead of left the shutter-->
<bool name="support_camera_press_down_capture">true</bool>
<!--whether support capture in torch mode in camera-->
<bool name="support_camera_torch_capture">true</bool>
<!--whether freeze preview after hdr capture in camera-->
<bool name="is_camera_freeze_after_hdr_capture">false</bool>
<!--whether set orientation info for face detection in camera-->
<bool name="is_camera_face_detection_need_orientation">true</bool>
<!--whether hold blured background for effects preview in camera-->
<bool name="is_camera_hold_blur_background">false</bool>
<!--whether support peaking mf in camera-->
<bool name="support_camera_peaking_mf">true</bool>
<!--whether support pause in hfr recording-->
<bool name="support_hfr_video_pause">false</bool>
<!--whether support gradienter in camera-->
<bool name="support_camera_gradienter">true</bool>
<!--whether scan qrcode with lower frequency in camera-->
<bool name="is_camera_lower_qrscan_frequency">true</bool>
<!--whether listen frame with single subthread looper in camera-->
<bool name="is_camera_preview_with_subthread_looper">true</bool>
<!--whether add watermark in camera app-->
<bool name="is_camera_app_water_mark">true</bool>
<!--whether support tiltshift in camera-->
<bool name="support_camera_tilt_shift">true</bool>
<!--whether support magic mirror in camera-->
<bool name="support_camera_magic_mirror">true</bool>
<!--whether support groupshot mode in camera-->
<bool name="support_camera_groupshot">true</bool>
<!--whether support snap with screen off in camera-->
<bool name="support_camera_quick_snap">true</bool>
<!--whether compass support tilt rotate calibrate -->
<bool name="support_rotate_calibrate">true</bool>
<!-- whether support double tap to wake up device -->
<bool name="support_gesture_wakeup">true</bool>
<!-- whether support always on -->
<bool name="support_aod">true</bool>
<!-- whether support edge handgrip -->
<bool name="support_edge_handgrip">false</bool>
<!-- whether the device app permission detail show in provision-->
<bool name="support_provision_app_permission">true</bool>
<!--whether support pre-installed application-->
<bool name="support_pre_installed_application">true</bool>
<!--wheater support validate device when syste upadte -->
<bool name="support_ota_validate">true</bool>
<!--whether show basic info items-->
<bool name="support_show_basic_items">true</bool>
<!--whether show my device-->
<bool name="support_my_device">true</bool>
<!--whether round corner-->
<bool name="support_round_corner">true</bool>
<!--wheater support show credentials-->
<bool name="support_credentials">true</bool>
<!--whether support main show XiaoAi-->
<bool name="support_main_xiaoai">true</bool>
<!--battery capacity typ of the device-->
<string name="battery_capacity_typ">4520</string>
<!--the vendor feature, it's value may be qcom,mediatek,leadcore or nvidia-->
<string name="vendor">qcom</string>
<!--release time for the device, should be an unix timestamp-->
<string name="release_time">1473868800000</string>
<!--0:not support 1:close gamut 2:close ce-->
<integer name="screen_standard_mode">1</integer>
<!--the max level for paper mode -->
<float name="paper_mode_max_level">255.0</float>
<!--The value of papar min level-->
<float name="paper_mode_min_level">58.0</float>
<!--Flag of reduce preview size in camera(1:reduce, 0:do not reduce; 1st byte:rear camera, 2nd byte:front camera, 3rd byte:rear video, 4th byte:front video )-->
<integer name="camera_reduce_preview_flag">14</integer>
<!--max number of burst images one time -->
<integer name="burst_shoot_count">100</integer>
<!--b0:flash b1:hdr b2:motion b3:night-->
<integer name="camera_supported_asd">11</integer>
<!--whether rotate the final image in camera isp-->
<bool name="is_camera_isp_rotated">false</bool>
<!--max cpu freq of the device-->
<integer name="cpu_max_freq">320</integer>
<!--Successful flag of camera continuous auto focus result-->
<integer name="camera_focus_success_flag">2</integer>
<!--total steps number of camera compensation-->
<float name="camera_exposure_compensation_steps_num">12.0</float>
<!--Left margin of count down parent layout for front camera-->
<float name="camera_front_count_down_margin">-0.5573</float>
<bool name="front_fingerprint_sensor">false</bool>
<!--whether the device supports smart cover with small window-->$
<bool name="support_small_win_cover">true</bool>
<!--0: x7 type; 1: A1 type -->
<integer name="small_win_cover_type">1</integer>
<integer name="smartcover_smallwindow_left">0</integer>
<integer name="smartcover_smallwindow_top">0</integer>
<integer name="smartcover_smallwindow_right">1080</integer>
<integer name="smartcover_smallwindow_bottom">1920</integer>
<!-- fingerprint navigation event name list -->
<string-array name="fp_nav_event_name_list">
<item>uinput-fpc</item>
<item>uinput-goodix</item>
</string-array>
<bool name="support_tap_fingerprint_sensor_to_home">false</bool>
<!-- type of soter finger pay, config by owner of soter -->
<integer name="type_soter_finger_pay">2</integer>
<!-- wheter the device support widevine l1, 1: support, 2: ota_support -->
<integer name="support_widevine_l1">1</integer>
<!-- finger record, config by owner -->
<integer name="type_mqs_finger_record">3</integer>
<!--wheater the device supports persist screen color in driver-->
<bool name="support_screen_color_persist">true</bool>
<!--cpu combination -->
<integer name="cpu_combination">44</integer>
<integer name="xo_therm">9</integer>
<integer name="case_therm">9</integer>
<!--whether the middle keycode is KEYCODE_DPAD_CENTER-->
<bool name="middle_keycode_is_dpad_center">false</bool>
<!--wheater the device supports force touch -->
<bool name="support_force_touch">false</bool>
<!-- font scale for largeui mode -->
<float name="smallui_font_scale">0.86</float>
<!-- font scale for largeui mode -->
<float name="mediumui_font_scale">1.05</float>
<!-- font scale for largeui mode -->
<float name="largeui_font_scale">1.25</float>
<!-- font scale for largeui mode -->
<float name="hugeui_font_scale">1.40</float>
<!-- font scale for largeui mode -->
<float name="godzillaui_font_scale">1.40</float>
<!-- support nfc -->
<bool name="support_nfc">true</bool>
<!-- NFC related -->
<bool name="support_se_route">true</bool>
<!--whether the device supports screen key position swap-->
<bool name="support_screen_key_swap">false</bool>
<!--These app has permission to access aux camera -->
<string-array name="camera_aux_package_list">
<item>org.codeaurora.snapcam</item>
<item>com.android.camera</item>
<item>com.miui.cit</item>
<item>com.qualcomm.qti.qmmi</item>
<item>com.android.keyguard</item>
<item>com.android.systemui</item>
<item>com.phonetest.application</item>
<item>com.phonetest.application.test</item>
<item>com.ss.android.ugc.aweme</item>
<item>com.xiaomi.cameratest</item>
<item>com.xiaomi.cameratools</item>
<item>com.blink.academy.protake</item>
<item>com.xiaomi.camera.mivi</item>
<item>com.xiaomi.camera.sample</item>
<item>com.smile.gifmaker</item>
<item>com.snapchat.android</item>
</string-array>
<!--These app can only access physical camera -->
<string-array name="camera_hide_logical_package_list">
<item>com.blink.academy.protake</item>
<item>com.xiaomi.camera.mivi</item>
<item>com.xiaomi.camera.sample</item>
<item>com.smile.gifmaker</item>
<item>com.snapchat.android</item>
</string-array>
<!-- -->
<string-array name="camera_adjust_picture_size_cmd_list">
<!-- camera id 0 set sensor size 48M, camera id 1 set sensor size 20M -->
<item>com.ludashi:0, add, 8000, 6000, 33,false</item>
<item>com.ludashi:1, add, 5184, 3880, 33,false</item>
<!-- camera id 0 set sensor size 48M, camera id 1 set sensor size 20M -->
<item>com.antutu:0, ssize, 8000, 6000;1, ssize, 5184, 3880</item>
<!-- camera id 1 limit picture-size <= 1920x1080 -->
<item>com.tencent.mobileqq:1,limit,1920, 1080</item>
</string-array>
<!--still beautify value for 3rd party call-->
<string name="extra_still_beautify_value">i:2</string>
<!--min previewsize value for video call case-->
<integer name="extra_min_preview_size">921600</integer>
<!--Led light features-->
<bool name="support_led_light">false</bool>
<bool name="support_led_color">false</bool>
<bool name="support_audio_loopback">true</bool>
<bool name="support_new_silentmode">true</bool>
<!-- whether CN hardware can flash Global rom -->
<bool name="enable_flash_global">true</bool>
<!-- Support Sign Verify In Cust Partition-->
<bool name="support_sign_verify_in_cust">true</bool>
<!--Add for the system data-app which could uninstall by user-->
<string-array name="system_data_packagename_list">
<item>com.xiaomi.pass</item>
<item>com.xiaomi.scanner</item>
<item>com.xiaomi.gamecenter</item>
<item>com.miui.weather2</item>
<item>com.miui.notes</item>
<item>com.miui.compass</item>
<item>com.miui.calculator</item>
<item>com.android.email</item>
<item>com.miui.cleanmaster</item>
<item>com.mi.misupport</item>
<item>com.duokan.reader</item>
<item>com.mfashiongallery.emag</item>
<item>com.miui.personalassistant</item>
<item>com.miui.voip</item>
<item>com.miui.yellowpage</item>
<item>com.xiaomi.midrop</item>
<item>com.android.midrive</item>
<item>com.xiaomi.drivemode</item>
<item>com.miui.smarttravel</item>
</string-array>
<!--system data-app path list -->
<string-array name="system_data_path_list">
<item>/system/data-app/XMPass/XMPass.apk</item>
<item>/system/data-app/MiuiScanner/MiuiScanner.apk</item>
<item>/system/data-app/GameCenter/GameCenter.apk</item>
<item>/system/data-app/Weather/Weather.apk</item>
<item>/system/data-app/Notes/Notes.apk</item>
<item>/system/data-app/MiuiCompass/MiuiCompass.apk</item>
<item>/system/data-app/Calculator/Calculator.apk</item>
<item>/system/data-app/Email/Email.apk</item>
<item>/system/data-app/CleanMaster/CleanMaster.apk</item>
<item>/system/data-app/MiSupport/MiSupport.apk</item>
<item>/system/data-app/com.duokan.reader/com.duokan.reader.apk</item>
<item>/system/data-app/MiGalleryLockscreen/MiGalleryLockscreen.apk</item>
<item>/system/data-app/PersonalAssistant/PersonalAssistant.apk</item>
<item>/system/data-app/MiuiVoip/MiuiVoip.apk</item>
<item>/system/data-app/YellowPage/YellowPage.apk</item>
<item>/system/data-app/MiDrop/MiDrop.apk</item>
<item>/system/data-app/MiDrive/MiDrive.apk</item>
<item>/system/data-app/MiuiDriveMode/MiuiDriveMode.apk</item>
<item>/system/data-app/SmartTravel/SmartTravel.apk</item>
</string-array>
<!--whether surpport paper mode animation-->
<bool name="support_papermode_animation">true</bool>
<!--whether paper mode and screen effect is compatible-->
<bool name="is_compatible_paper_and_screen_effect">true</bool>
<!--whether support optical zoom in camera-->
<bool name="is_support_optical_zoom">true</bool>
<!--whether support portrait in camera-->
<bool name="is_support_portrait">true</bool>
<!--whether taking legacy face beauty in camera-->
<bool name="is_legacy_face_beauty">false</bool>
<!--whether taking 18x9 ratio screen in camera-->
<bool name="is_18x9_ratio_screen">false</bool>
<!--whether support add watermark on bottom left of picture-->
<bool name="support_picture_watermark">true</bool>
<!--whether front camera support bokeh or not-->
<bool name="support_front_bokeh">true</bool>
<!--whether front camera support mfnr with face beauty-->
<bool name="support_front_beauty_mfnr">true</bool>
<!--whether camera support portrait mode switch -->
<bool name="camera_is_support_portrait_front">true</bool>
<!--whether camera support 3D face beauty-->
<bool name="support_3d_face_beauty">true</bool>
<!--whether camera support HFR video mode-->
<bool name="support_video_hfr_mode">false</bool>
<!--whether camera support superresolution mode-->
<bool name="support_super_resolution">true</bool>
<!--whether camera support front flash-->
<bool name="support_front_flash">true</bool>
<!--whether support psensor in pocket mode (true by default)-->
<bool name="support_psensor_pocket_mode">false</bool>
<!--whether camera support realtime manual exposure time-->
<bool name="support_realtime_manual_exposure_time">true</bool>
<!--camera_adjust_picture_size_enabled-->
<bool name="camera_adjust_picture_size_enabled">true</bool>
<!--whether sensor_has_latency-->
<bool name="sensor_has_latency">true</bool>
<!-- whether disable always discoverable -->
<bool name="support_hide_discoverable">true</bool>
<!-- whether support bluetooth fast startup -->
<bool name="support_bluetooth_boost">true</bool>
<string name="bluetooth_boost_value">0x000011C0</string>
<!-- whether support fast connect bluetooth device -->
<bool name="support_bluetooth_fast_connect">true</bool>
<!-- whether support fast connect for blackshark -->
<bool name="support_blackshark_fast_connect">true</bool>
<bool name="support_blackshark_right_fast_connect">true</bool>
<!-- whether support ai task button -->
<bool name="support_ai_task">false</bool>
<!-- whether support touch gamemode -->
<bool name="support_touchfeature_gamemode">true</bool>
<!-- whether support LHDC codec offload -->
<bool name="support_lhdc_offload">true</bool>
<!-- whether support a2dp latency-->
<bool name="support_a2dp_latency">true</bool>
<!-- whether support display gamemode -->
<bool name="support_displayfeature_gamemode">true</bool>
<!-- whether support fps change -->
<integer-array name="fpsList">
<item>120</item>
<item>60</item>
</integer-array>
<integer name="defaultFps">60</integer>
<!-- whether support wlan low latency mode -->
<bool name="support_wifi_low_latency_mode">true</bool>
<!-- whether support network rps mode -->
<bool name="support_network_rps_mode">true</bool>
<!-- whether support extreme mode only support perseus-->
<bool name="support_extreme_battery_saver">false</bool>
<!--These region support face unlock-->
<string-array name="support_face_unlock_region_global">
<item>ALL</item>
</string-array>
<!--These region support face unlock-->
<string-array name="support_face_unlock_region_dom">
<item>CN</item>
</string-array>
<!-- whether support multi face input -->
<bool name="support_multi_face_input">true</bool>
<bool name="support_multi_face_input_global">true</bool>
<!-- whether support ifaa 2dfa feature -->
<integer name="ifaa_2dfa_support">0</integer>
<!-- Support ARCore, This feature is subjected to change if google defines a standard feature.-->
<bool name="support_ar_core">true</bool>
<!-- whether support_screen_on_delayed -->
<bool name="support_screen_on_delayed">true</bool>
<!-- whether support hangup while screen turnning off -->
<bool name="support_hangup_while_screen_off">true</bool>
<!-- whether support dc backlight -->
<bool name="support_dc_backlight">false</bool>
<!-- whether support backlight bit switch -->
<bool name="support_backlight_bit_switch">true</bool>
<!-- whether support display expert mode -->
<bool name="support_display_expert_mode">true</bool>
<!-- display expert mode color gamut default -->
<integer name="expert_gamut_default">0</integer>
<!-- display expert mode color gamut min -->
<integer name="expert_gamut_min">0</integer>
<!-- display expert mode color gamut max -->
<integer name="expert_gamut_max">3</integer>
<!-- display expert mode RGB default -->
<integer name="expert_RGB_default">255</integer>
<!-- display expert mode RGB min -->
<integer name="expert_RGB_min">50</integer>
<!-- display expert mode RGB max -->
<integer name="expert_RGB_max">255</integer>
<!-- display expert mode hue default -->
<integer name="expert_hue_default">0</integer>
<!-- display expert mode hue min -->
<integer name="expert_hue_min">-180</integer>
<!-- display expert mode hue max -->
<integer name="expert_hue_max">180</integer>
<!-- display expert mode saturation default -->
<integer name="expert_saturation_default">0</integer>
<!-- display expert mode saturation min -->
<integer name="expert_saturation_min">-50</integer>
<!-- display expert mode saturation max -->
<integer name="expert_saturation_max">50</integer>
<!-- display expert mode value default -->
<integer name="expert_value_default">0</integer>
<!-- display expert mode value min -->
<integer name="expert_value_min">-255</integer>
<!-- display expert mode value max -->
<integer name="expert_value_max">255</integer>
<!-- display expert mode contrast default -->
<integer name="expert_contrast_default">0</integer>
<!-- display expert mode contrast min -->
<integer name="expert_contrast_min">-100</integer>
<!-- display expert mode contrast max -->
<integer name="expert_contrast_max">100</integer>
<!-- display expert mode gamma default -->
<integer name="expert_gamma_default">220</integer>
<!-- display expert mode gamma min -->
<integer name="expert_gamma_min">170</integer>
<!-- display expert mode gamma max -->
<integer name="expert_gamma_max">270</integer>
<!-- device head sar value -->
<float name="device_head_sar">0.860</float>
<!-- device body sar value -->
<float name="device_body_sar">0.694</float>
<!-- whether support video box display effect -->
<bool name="support_videobox_display_effect">true</bool>
<!-- support video toolbox -->
<bool name="is_support_video_tool_box">true</bool>
<!-- whether support 12bit backlight -->
<bool name="support_12bit_backlight">true</bool>
<!-- gamebooster mi time -->
<bool name="support_game_mi_time">true</bool>
<!-- whether support true color -->
<bool name="support_true_color">true</bool>
<!-- whether support keycode_goto_dismiss -->
<bool name="aod_support_keycode_goto_dismiss">true</bool>
<!-- FOD solution -->
<integer name="fod_solution">3</integer>
<!-- whether support low brightness FOD -->
<bool name="support_low_brightness_fod">false</bool>
<!-- whether support sound assist function -->
<bool name="support_sound_assist">true</bool>
<!-- Whether support sunlight mode -->
<bool name="config_sunlight_mode_available">true</bool>
<!-- EdgeSettings Adjust settings -->
<integer-array name="edge_suppresson_condition">
<!-- The max Allow to Adjust -->
<item>50</item>
<item>2</item>
<item>4</item>
<item>6</item>
<item>8</item>
<item>10</item>
</integer-array>
<integer-array name="edge_suppresson_absolute">
<item>0</item>
<item>3</item>
<item>5</item>
<item>8</item>
<item>10</item>
</integer-array>
<integer-array name="edge_suppresson_corner">
<item>150</item>
<item>300</item>
<item>170</item>
<item>170</item>
</integer-array>
<integer-array name="edge_suppresson_size">
<item>12</item>
<item>96</item>
</integer-array>
<!-- whether support paper eyecare-->
<bool name="support_paper_eyecare">true</bool>
<!-- default color temp for paper eyecare -->
<float name="paper_eyecare_default_value">91.0</float>
<!-- default texture for paper eyecare -->
<integer name="paper_eyecare_default_texture">18</integer>
<!-- texture min value for paper eyecare -->
<integer name="paper_eyecare_min_texture">0</integer>
<!-- texture max value for paper eyecare -->
<integer name="paper_eyecare_max_texture">35</integer>
<!-- whether need remove vgpaper-->
<bool name="remove_vgpaper">true</bool>
<!-- whether support truetone-->
<bool name="support_truetone">true</bool>
<!-- device support screen enhance engine -->
<bool name="support_screen_enhance_engine">true</bool>
<!-- is support fingerprint tap-->
<bool name="is_support_fingerprint_tap">true</bool>
<bool name="remove_vgpaper">true</bool>
<string-array name="dynamic_partition_list">
<item>/system</item>
<item>/system_ext</item>
<item>/product</item>
<item>/vendor</item>
<item>/odm</item>
<item>/mi_ext</item>
</string-array>
<string-array name="log_partition_list">
<item>rescue</item>
<item>oops</item>
<item>minidump</item>
<item>rawdump</item>
<item>crash_history</item>
<item>expdb</item>
</string-array>
<string name="partition_name_path">/dev/block/by-name/</string>
</features>

View File

@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<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" />
<!-- Omni -->
<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>

View File

@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2009 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- This is the standard set of features for a camera with a flash. Note
that this currently requires having auto-focus as well. -->
<permissions>
<feature name="android.hardware.camera.any" />
<feature name="android.hardware.camera" />
<feature name="android.hardware.camera.autofocus" />
<feature name="android.hardware.camera.flash" />
</permissions>

View File

@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2010 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- This is the standard set of features for a front facing camera. -->
<permissions>
<feature name="android.hardware.camera.any" />
<feature name="android.hardware.camera.front" />
</permissions>

View File

@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2014 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- This is the set of features required for a full-capability camera2 device -->
<permissions>
<feature name="android.hardware.camera.any" />
<feature name="android.hardware.camera.level.full" />
<feature name="android.hardware.camera.capability.manual_sensor" />
<feature name="android.hardware.camera.capability.manual_post_processing" />
</permissions>

View File

@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2014 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- This is the set of features required for a camera2 device that supports raw sensor output -->
<permissions>
<feature name="android.hardware.camera.any" />
<feature name="android.hardware.camera.capability.raw" />
</permissions>

View File

@@ -0,0 +1,40 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
This XML file declares which signature|privileged permissions should be granted to privileged
applications that come with the miui
-->
<permissions>
<privapp-permissions package="com.android.camera">
<permission name="android.permission.SYSTEM_CAMERA"/>
<permission name="android.permission.LOG_COMPAT_CHANGE" />
<permission name="android.permission.READ_COMPAT_CHANGE_CONFIG" />
<permission name="android.permission.INTERACT_ACROSS_USERS"/>
<permission name="android.permission.WRITE_MEDIA_STORAGE"/>
<permission name="android.permission.WRITE_SECURE_SETTINGS"/>
<permission name="android.permission.PACKAGE_USAGE_STATS"/>
<permission name="mediatek.permission.ACCESS_APU_SYS"/>
<permission name="android.permission.START_ACTIVITIES_FROM_BACKGROUND"/>
</privapp-permissions>
<privapp-permissions package="com.xiaomi.mimoji">
<permission name="android.permission.CAMERA"/>
<permission name="android.permission.INTERACT_ACROSS_USERS"/>
<permission name="android.permission.WRITE_MEDIA_STORAGE"/>
<permission name="android.permission.WRITE_SECURE_SETTINGS"/>
<permission name="android.permission.PACKAGE_USAGE_STATS"/>
</privapp-permissions>
<privapp-permissions package="com.miui.extraphoto">
<permission name="android.permission.WRITE_MEDIA_STORAGE"/>
</privapp-permissions>
<privapp-permissions package="com.xiaomi.scanner">
<permission name="android.permission.CHANGE_CONFIGURATION"/>
<permission name="android.permission.OVERRIDE_WIFI_CONFIG"/>
<permission name="android.permission.READ_PRIVILEGED_PHONE_STATE"/>
<permission name="android.permission.WRITE_MEDIA_STORAGE"/>
<permission name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS"/>
<permission name="android.permission.START_ACTIVITIES_FROM_BACKGROUND"/>
</privapp-permissions>
</permissions>

View File

@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<config>
<hidden-api-whitelisted-app package="com.android.camera" />
</config>

69
extract-files.sh Executable file
View File

@@ -0,0 +1,69 @@
#!/bin/bash
#
# Copyright (C) 2016 The CyanogenMod Project
# Copyright (C) 2017-2020 The LineageOS Project
#
# SPDX-License-Identifier: Apache-2.0
#
set -e
DEVICE=camera
VENDOR=xiaomi
# Load extract_utils and do some sanity checks
MY_DIR="${BASH_SOURCE%/*}"
if [[ ! -d "${MY_DIR}" ]]; then MY_DIR="${PWD}"; fi
ANDROID_ROOT="${MY_DIR}/../../.."
HELPER="${ANDROID_ROOT}/tools/extract-utils/extract_utils.sh"
if [ ! -f "${HELPER}" ]; then
echo "Unable to find helper script at ${HELPER}"
exit 1
fi
source "${HELPER}"
# Default to sanitizing the vendor folder before extraction
CLEAN_VENDOR=true
KANG=
SECTION=
while [ "${#}" -gt 0 ]; do
case "${1}" in
-n | --no-cleanup )
CLEAN_VENDOR=false
;;
-k | --kang )
KANG="--kang"
;;
-s | --section )
SECTION="${2}"; shift
CLEAN_VENDOR=false
;;
* )
SRC="${1}"
;;
esac
shift
done
if [ -z "${SRC}" ]; then
SRC="adb"
fi
function blob_fixup() {
case "${1}" in
system/lib64/libmicampostproc_client.so)
patchelf --remove-needed libhidltransport.so "${2}"
;;
esac
}
# Initialize the helper
setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}" false "${CLEAN_VENDOR}"
extract "${MY_DIR}/proprietary-files.txt" "${SRC}" "${KANG}" --section "${SECTION}"
"${MY_DIR}/setup-makefiles.sh"

71
miuicamera.mk Normal file
View File

@@ -0,0 +1,71 @@
#
# Copyright (C) 2024 VoidUI Project
#
# SPDX-License-Identifier: Apache-2.0
#
CAMERA_PATH := vendor/xiaomi/camera
# Permissions
PRODUCT_COPY_FILES += \
$(call find-copy-subdir-files,*,$(CAMERA_PATH)/configs/permissions/,$(TARGET_COPY_OUT_SYSTEM)/etc)
# CameraX Config Overwrite
PRODUCT_COPY_FILES += \
$(CAMERA_PATH)/configs/camera/camxoverridesettings.txt:$(TARGET_COPY_OUT_VENDOR)/etc/camera/camxoverridesettings.txt
# Device-Features
PRODUCT_COPY_FILES += \
$(CAMERA_PATH)/configs/device_features/alioth.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/device_features/alioth.xml \
$(CAMERA_PATH)/configs/device_features/aliothin.xml:$(TARGET_COPY_OUT_PRODUCT)/etc/device_features/aliothin.xml
# Properties
PRODUCT_SYSTEM_PROPERTIES += \
ro.com.google.lens.oem_camera_package=com.android.camera \
ro.miui.notch=1
# Logging
PRODUCT_SYSTEM_PROPERTIES += \
log.tag.CHIUSECASE=ERROR
PRODUCT_VENDOR_PROPERTIES += \
persist.vendor.camera.logInfoMask=false
# Sepolicy Camera
BOARD_VENDOR_SEPOLICY_DIRS += \
$(CAMERA_PATH)/sepolicy/camera/vendor
SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += \
$(CAMERA_PATH)/sepolicy/camera/private
# Sepolicy MiSys
BOARD_VENDOR_SEPOLICY_DIRS += \
$(CAMERA_PATH)/sepolicy/misys/vendor
SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += \
$(CAMERA_PATH)/sepolicy/misys/private
SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS += \
$(CAMERA_PATH)/sepolicy/misys/public
# MiSys HIDL deps
PRODUCT_PACKAGES += \
android.hidl.manager@1.0 \
android.hidl.manager@1.0.vendor \
android.hidl.memory.block@1.0 \
android.hidl.memory.block@1.0.vendor \
android.hidl.memory@1.0-impl
# RRO Overlays
PRODUCT_PACKAGES += \
MiuiCameraOverlay \
MiuiCameraOverlayLos \
MiuiCameraOverlayAosp
# System Properties
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,org.pixelexperience.faceunlock
$(call inherit-product, $(CAMERA_PATH)/camera-vendor.mk)

67
proprietary-files.txt Normal file
View File

@@ -0,0 +1,67 @@
# From Alioth MIUI V14.0.8.0.TKHMIXM package
# Leica App Mod
system/priv-app/MiuiCamera/MiuiCamera.apk;OVERRIDES=GrapheneCamera,Camera,Camera2,Aperture,GoogleCameraGo
# Device Prebuilts
system/etc/public.libraries-xiaomi.txt
system/lib64/libcamera_algoup_jni.xiaomi.so
system/lib64/libcamera_mianode_jni.xiaomi.so
system/lib64/libmicampostproc_client.so
system/lib64/vendor.xiaomi.hardware.campostproc@1.0.so
# Device OpenCL Prebuilts
vendor/lib/libOpenCL.so
vendor/lib64/libOpenCL.so
system_ext/lib/libOpenCL_system.so
system_ext/lib64/libOpenCL_system.so
# Device Camera Deps
vendor/lib64/lib_sr_models.so
vendor/lib64/libarcsat.so
vendor/lib64/libbeauty_face_interface.so
vendor/lib64/libflaw.so
vendor/lib64/librelight_only.so
vendor/lib64/libsdk_sr.so
vendor/lib64/libsupermoon.so
# MiSys
system/etc/permissions/vendor.xiaomi.hardware.misys-V1.0-java-permission.xml
system/etc/permissions/vendor.xiaomi.hardware.misys-V2.0-java-permission.xml
system/etc/permissions/vendor.xiaomi.hardware.misys-V4.0-java-permission.xml
system/etc/permissions/vendor.xiaomi.hardware.misys.V3_0-permission.xml
system/framework/vendor.xiaomi.hardware.misys-V1.0-java.jar
system/framework/vendor.xiaomi.hardware.misys-V2.0-java.jar
system/framework/vendor.xiaomi.hardware.misys-V4.0-java.jar
system/framework/vendor.xiaomi.hardware.misys.V3_0.jar
system/lib64/libmisys_jni.xiaomi.so
system/lib64/vendor.xiaomi.hardware.misys@1.0.so
system/lib64/vendor.xiaomi.hardware.misys@2.0.so
system/lib64/vendor.xiaomi.hardware.misys@3.0.so
system/lib64/vendor.xiaomi.hardware.misys@4.0.so
vendor/bin/hw/vendor.xiaomi.hardware.misys@1.0-service
vendor/bin/hw/vendor.xiaomi.hardware.misys@2.0-service
vendor/bin/hw/vendor.xiaomi.hardware.misys@3.0-service
vendor/bin/hw/vendor.xiaomi.hardware.misys@4.0-service
vendor/etc/init/vendor.xiaomi.hardware.misys@1.0-service.rc
vendor/etc/init/vendor.xiaomi.hardware.misys@2.0-service.rc
vendor/etc/init/vendor.xiaomi.hardware.misys@3.0-service.rc
vendor/etc/init/vendor.xiaomi.hardware.misys@4.0-service.rc
vendor/etc/vintf/manifest/vendor.xiaomi.hardware.misys@1.0.xml
vendor/etc/vintf/manifest/vendor.xiaomi.hardware.misys@2.0.xml
vendor/etc/vintf/manifest/vendor.xiaomi.hardware.misys@3.0.xml
vendor/etc/vintf/manifest/vendor.xiaomi.hardware.misys@4.0.xml
vendor/lib64/hw/vendor.xiaomi.hardware.misys@1.0-impl.so
vendor/lib64/hw/vendor.xiaomi.hardware.misys@2.0-impl.so
vendor/lib64/hw/vendor.xiaomi.hardware.misys@3.0-impl.so
vendor/lib64/hw/vendor.xiaomi.hardware.misys@4.0-impl.so
vendor/lib64/vendor.xiaomi.hardware.misys@1.0.so
vendor/lib64/vendor.xiaomi.hardware.misys@2.0.so
vendor/lib64/vendor.xiaomi.hardware.misys@3.0.so
vendor/lib64/vendor.xiaomi.hardware.misys@4.0.so
# MiSys Deps
vendor/lib64/libcheckpid.so
vendor/lib64/liblogwrap_vendor.so
# Camera Overwrite
vendor/etc/init/android.hardware.camera.provider@2.4-service_64.rc

View File

@@ -0,0 +1,4 @@
<permissions>
<library name="vendor.xiaomi.hardware.misys-V1.0-java"
file="/system/framework/vendor.xiaomi.hardware.misys-V1.0-java.jar" />
</permissions>

View File

@@ -0,0 +1,4 @@
<permissions>
<library name="vendor.xiaomi.hardware.misys-V2.0-java"
file="/system/framework/vendor.xiaomi.hardware.misys-V2.0-java.jar" />
</permissions>

View File

@@ -0,0 +1,4 @@
<permissions>
<library name="vendor.xiaomi.hardware.misys-V4.0-java"
file="/system/framework/vendor.xiaomi.hardware.misys-V4.0-java.jar" />
</permissions>

View File

@@ -0,0 +1,4 @@
<permissions>
<library name="vendor.xiaomi.hardware.misys.V3_0"
file="/system/framework/vendor.xiaomi.hardware.misys.V3_0.jar" />
</permissions>

View File

@@ -0,0 +1 @@
libmisys_jni.xiaomi.so

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:60b13d1eb3e261512b0eb932c4903d8601d9084015d7d2596954bdbf40a571ac
size 164940624

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,17 @@
#! /bin/sh
#
#Copyright (c) 2019 Qualcomm Technologies, Inc.
#All Rights Reserved.
#Confidential and Proprietary - Qualcomm Technologies, Inc.
#
service vendor.camera-provider-2-4 /vendor/bin/hw/android.hardware.camera.provider@2.4-service_64
override
interface android.hardware.camera.provider@2.4::ICameraProvider legacy/0
interface vendor.qti.hardware.camera.postproc@1.0::IPostProcService camerapostprocservice
class hal
user cameraserver
group audio camera input drmrpc oem_2907
ioprio rt 4
capabilities SYS_NICE
writepid /dev/cpuset/camera-daemon/tasks /dev/stune/foreground/tasks

View File

@@ -0,0 +1,8 @@
on fs
mkdir /mnt/vendor/persist/stability 0755 system system
mkdir /mnt/vendor/persist/misys 0755 system system
service vendor.misys /vendor/bin/hw/vendor.xiaomi.hardware.misys@1.0-service
class hal
user system
group system root

View File

@@ -0,0 +1,8 @@
on fs
mkdir /mnt/vendor/persist/stability 0755 system system
mkdir /mnt/vendor/persist/misys 0755 system system
service vendor.misys@2.0 /vendor/bin/hw/vendor.xiaomi.hardware.misys@2.0-service
class hal
user system
group system

View File

@@ -0,0 +1,8 @@
on fs
mkdir /mnt/vendor/persist/stability 0755 system system
mkdir /mnt/vendor/persist/misys 0755 system system
service vendor.misys@3.0 /vendor/bin/hw/vendor.xiaomi.hardware.misys@3.0-service
class hal
user system
group system

View File

@@ -0,0 +1,4 @@
service vendor.misys@4.0 /vendor/bin/hw/vendor.xiaomi.hardware.misys@4.0-service
class hal
user root
group root system

View File

@@ -0,0 +1,38 @@
<!-- Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.
* Neither the name of The Linux Foundation nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->
<manifest version="1.0" type="device">
<hal format="hidl">
<name>vendor.xiaomi.hardware.misys</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IMiSys</name>
<instance>default</instance>
</interface>
</hal>
</manifest>

View File

@@ -0,0 +1,38 @@
<!-- Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.
* Neither the name of The Linux Foundation nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->
<manifest version="1.0" type="device">
<hal format="hidl">
<name>vendor.xiaomi.hardware.misys</name>
<transport>hwbinder</transport>
<version>2.0</version>
<interface>
<name>IMiSys</name>
<instance>default</instance>
</interface>
</hal>
</manifest>

View File

@@ -0,0 +1,38 @@
<!-- Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.
* Neither the name of The Linux Foundation nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->
<manifest version="1.0" type="device">
<hal format="hidl">
<name>vendor.xiaomi.hardware.misys</name>
<transport>hwbinder</transport>
<version>3.0</version>
<interface>
<name>IMiSys</name>
<instance>default</instance>
</interface>
</hal>
</manifest>

View File

@@ -0,0 +1,38 @@
<!-- Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.
* Neither the name of The Linux Foundation nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->
<manifest version="1.0" type="device">
<hal format="hidl">
<name>vendor.xiaomi.hardware.misys</name>
<transport>hwbinder</transport>
<version>4.0</version>
<interface>
<name>IMiSys</name>
<instance>default</instance>
</interface>
</hal>
</manifest>

BIN
proprietary/vendor/lib/libOpenCL.so vendored Normal file

Binary file not shown.

BIN
proprietary/vendor/lib64/libOpenCL.so vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
proprietary/vendor/lib64/libarcsat.so vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
proprietary/vendor/lib64/libcheckpid.so vendored Normal file

Binary file not shown.

BIN
proprietary/vendor/lib64/libflaw.so vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
proprietary/vendor/lib64/libsdk_sr.so vendored Normal file

Binary file not shown.

BIN
proprietary/vendor/lib64/libsupermoon.so vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,5 @@
runtime_resource_overlay {
name: "MiuiCameraOverlay",
product_specific: true,
}

View File

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.camera.overlay.leica">
<overlay
android:isStatic="true"
android:priority="800"
android:targetPackage="com.android.camera"/>
</manifest>

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Leica Camera Overlay Configuration for Poco F3 -->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Enable Parallel Processing by default -->
<bool name="pref_camera_parallel_process_enable_default">true</bool>
<!-- Enable Experimental Portrait Fix by default -->
<bool name="pref_experimental_portrait_default">true</bool>
<!-- Set Documents Ver. 2 by default -->
<string name="pref_documents_default">2</string>
</resources>

View File

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

View File

@@ -0,0 +1,6 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.overlay.miuicameraosp"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="android" android:priority="1" android:isStatic="true"/>
</manifest>

View File

@@ -0,0 +1,13 @@
<?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 package IDs that are allowed to use aux cameras.
NOTE: If this list is empty then all apps will be able to use aux cameras. -->
<string-array name="config_cameraAuxPackageAllowList" translatable="false">
<item>com.android.camera</item>
<item>org.lineageos.aperture</item>
<item>org.lineageos.aperture.dev</item>
<item>com.crdroid.faceunlock</item>
<item>org.pixelexperience.faceunlock</item>
</string-array>
</resources>

View File

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

View File

@@ -0,0 +1,6 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.android.overlay.miuicameralos"
android:versionCode="1"
android:versionName="1.0">
<overlay android:targetPackage="lineageos.platform" android:priority="1" android:isStatic="true"/>
</manifest>

View File

@@ -0,0 +1,13 @@
<?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 package IDs that are allowed to use aux cameras.
NOTE: If this list is empty then all apps will be able to use aux cameras. -->
<string-array name="config_cameraAuxPackageAllowList" translatable="false">
<item>com.android.camera</item>
<item>org.lineageos.aperture</item>
<item>org.lineageos.aperture.dev</item>
<item>com.crdroid.faceunlock</item>
<item>org.pixelexperience.faceunlock</item>
</string-array>
</resources>

View File

@@ -0,0 +1,3 @@
allow cameraserver property_socket:sock_file write;
allow cameraserver init:unix_stream_socket connectto;
set_prop(cameraserver, exported_system_prop)

View File

@@ -0,0 +1,6 @@
allow platform_app {
DisplayFeatureControl
miui_multi_display
perfshielder
ProcessManager
}:service_manager find;

View File

@@ -0,0 +1,5 @@
allow priv_app DisplayFeatureControl:service_manager find;
allow priv_app miui_multi_display:service_manager find;
allow priv_app perfshielder:service_manager find;
allow priv_app ProcessManager:service_manager find;

View File

@@ -0,0 +1,2 @@
# Miui Camera
sys.camera.miui.apk u:object_r:exported_system_prop:s0

View File

@@ -0,0 +1,4 @@
type DisplayFeatureControl, service_manager_type;
type perfshielder, service_manager_type;
type miui_multi_display, service_manager_type;
type ProcessManager, service_manager_type;

View File

@@ -0,0 +1,4 @@
DisplayFeatureControl u:object_r:DisplayFeatureControl:s0
perfshielder u:object_r:perfshielder:s0
miui_multi_display u:object_r:miui_multi_display:s0
ProcessManager u:object_r:ProcessManager:s0

4
sepolicy/camera/vendor/attributes vendored Normal file
View File

@@ -0,0 +1,4 @@
# Camera
attribute vendor_hal_camerapostproc_xiaomi;
attribute vendor_hal_camerapostproc_xiaomi_client;
attribute vendor_hal_camerapostproc_xiaomi_server;

119
sepolicy/camera/vendor/file_contexts vendored Normal file
View File

@@ -0,0 +1,119 @@
# Camera Data Path
/data/user/0/com.android.camera(/.*)? u:object_r:app_data_file:s0
/data/user/0/com.miui.extraphoto(/.*)? u:object_r:app_data_file:s0
# Miui Gallery
/data/user/0/com.miui.gallery(/.*)? u:object_r:app_data_file:s0
/data/user/0/com.miui.mediaeditor(/.*)? u:object_r:app_data_file:s0
# PostProcessing
/(vendor|system/vendor)/bin/hw/vendor\.xiaomi\.hardware\.campostproc@1\.0-service u:object_r:hal_camerapostproc_xiaomi_default_exec:s0
# General Rules
/vendor/lib(64)?/libmialgoengine\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libmpbase\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libmibokeh_855\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libmialgo_image_colourkeeping\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libSuperSensor\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libSuperSensorCPU\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libHalSuperSensorServer\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libSuperSensor_skel\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libmorpho_HDSR\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libHalSuperSensorServerCWrapper\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libarcsoft_beautyshot\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libarcsoft_dualcam_refocus\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libarcsoft_dualcam_refocus_rear_t\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libarcsoft_dualcam_refocus_rear_w\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libarcsoft_dualcam_refocus_front\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libarcsoft_dualcam_refocus_image\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libarcsoft_dualcam_refocus_video\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libarcsoft_portrait_lighting\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libarcsoft_portrait_lighting_c\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libarcsoft_mf_superresolution\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libsupermoon\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libarcsoft_high_dynamic_range\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libarcsoft_high_dynamic_range_v5\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libarcsoft_low_light_hdr\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libalCFR\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libalCFRLV\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libarcsoft_distortion_correction\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libarcsoft_bodyslim\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libcvp2\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libcvp2_hfi\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libcvp\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libcvp_stub\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libcvp_common\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libalhLDC\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libalAILDC\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libwa_widelens_undistort\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libflaw\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libsdk_sr\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libst_sr_models\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/lib_sr_models\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libarcsoft_superportrait\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libmialgo_ie_capture\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libmialgo_basic\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libmialgo_utils\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libmiphone_bokeh_effect\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libmiphone_bokeh_rectify\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libmiphone_bokeh_proc\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libmiphone_bokeh_gpf\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libmialgo_bokeh\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libmiphone_bokeh_depth\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libcamera_scene_dxo\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libcamera_scene\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libportrait_blur\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libmibokeh_mask\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/librelight_only\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libFaceDetLmd\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/rfsa/adsp(/.*)? u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libMIAIHDRhvx_interface\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/rfsa/adsp/libMIAIHDR_skel\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/rfsa/adsp/libapps_mem_heap\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libxmi_high_dynamic_range\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libxmi_high_dynamic_range_cdsp\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/rfsa/adsp/libhdr_cdsp_skel\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libsymphony-cpu\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libc\+\+_shared\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libwa_opticalzoom_fusion\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libmiStereoFactoryRemapLib\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libmibokeh_712\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libbeauty_face_interface\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libmiai_portraitsupernight\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libxml2_vendor\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libmiphone_capture_ldc\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libSNPE\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libsnpe_dsp_domains_v2\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libPlatformValidatorShared\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libmiai_deblur\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libmialgoengine2\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libcom.xiaomi.pluginutils\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/com.xiaomi.plugin.memcpy\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/com.xiaomi.plugin.hdr\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/com.xiaomi.plugin.skinbeautifier\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/com.xiaomi.plugin.aiasd\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/com.xiaomi.plugin.depurple\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/com.xiaomi.plugin.ldc\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/com.xiaomi.plugin.dc\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/com.xiaomi.plugin.mibokeh\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/com.xiaomi.plugin.miaiie\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/com.xiaomi.plugin.capbokeh\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/com.xiaomi.plugin.sr\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/com.qcom.plugin.gpu\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/com.xiaomi.plugin.miflaw\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/com.xiaomi.plugin.misegment\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/com.xiaomi.plugin.mifragment\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/com.xiaomi.plugin.bodyslim\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/com.xiaomi.plugin.superportrait\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/com.xiaomi.plugin.supernight\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/com.xiaomi.plugin.miaideblur\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libsnpe_dsp_skel\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libsnpe_dsp_domains_skel\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libsnpe_dsp_v65_domains_v2_skel\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libsnpe_dsp_v66_domains_v2_skel\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libanc_dc_base\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libwa_dof\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libwa_refocus\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libwa_depth\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libxmi_hdr_checker\.so u:object_r:same_process_hal_file:s0
/vendor/lib(64)?/libmiStereoFactoryRemapBasicLib\.so u:object_r:same_process_hal_file:s0

View File

@@ -0,0 +1,24 @@
binder_call(hal_camera_default, platform_app)
allow hal_camera_default mnt_vendor_file:dir { search };
allow hal_camera_default proc_stat:file { open read };
allow hal_camera_default vendor_xdsp_device:chr_file { read };
# Allow Camera to access system_server
allow hal_camera_default system_server:binder { call transfer };
# Camera Post Processing
type vendor_hal_camerapostproc_xiaomi_hwservice, hwservice_manager_type;
hal_server_domain(hal_camera_default, vendor_hal_camerapostproc_xiaomi)
add_hwservice(hal_camera_server, vendor_hal_camerapostproc_xiaomi_hwservice)
allow hal_camera_client vendor_hal_camerapostproc_xiaomi_hwservice:hwservice_manager find;
# Allow camera to access /data/misc
typeattribute hal_camera_default data_between_core_and_vendor_violators;
# Allow camera to access /data/misc
allow hal_camera_default camera_data_file:sock_file write;
allow hal_camera_default camera_data_file:dir create_dir_perms;
allow hal_camera_default camera_data_file:file create_file_perms;

View File

@@ -0,0 +1,8 @@
type hal_camerapostproc_xiaomi_default_exec, exec_type, vendor_file_type, file_type;
add_hwservice(vendor_hal_camerapostproc_xiaomi_server, vendor_hal_camerapostproc_xiaomi_hwservice)
allow vendor_hal_camerapostproc_xiaomi_client vendor_hal_camerapostproc_xiaomi_hwservice:hwservice_manager find;
binder_call(vendor_hal_camerapostproc_xiaomi_client, vendor_hal_camerapostproc_xiaomi_server)
binder_call(vendor_hal_camerapostproc_xiaomi_server, vendor_hal_camerapostproc_xiaomi_client)

1
sepolicy/camera/vendor/hwservice.te vendored Normal file
View File

@@ -0,0 +1 @@
type hal_xiaomi_camera_hwservice, hwservice_manager_type;

View File

@@ -0,0 +1,2 @@
# Camera
vendor.xiaomi.hardware.campostproc::IMiPostProcService u:object_r:hal_xiaomi_camera_hwservice:s0

30
sepolicy/camera/vendor/platform_app.te vendored Normal file
View File

@@ -0,0 +1,30 @@
# Allow to execute data files
allow platform_app app_data_file:file execute;
# Allow to find camera hal
allow platform_app hal_xiaomi_camera_hwservice:hwservice_manager find;
# Allow to call camera hidl
binder_call(platform_app, hal_camera_default)
# Allow to read camera props
get_prop(platform_app, vendor_camera_prop)
get_prop(platform_app, vendor_camera_sensor_prop)
allow platform_app cgroup:file r_file_perms;
# Allow to read display props
get_prop(platform_app, vendor_display_prop)
# Allow to read audio props
get_prop(platform_app, vendor_audio_prop)
# Allow to access proc/stat
allow platform_app proc_stat:file read;
# Camera Post Processing
typeattribute platform_app halclientdomain;
typeattribute platform_app vendor_hal_camerapostproc_xiaomi_client;
allow platform_app { vendor_hal_camerapostproc_xiaomi_hwservice hal_misys_hwservice }:hwservice_manager find;

1
sepolicy/camera/vendor/property.te vendored Normal file
View File

@@ -0,0 +1 @@
vendor_public_prop(vendor_camera_sensor_prop)

View File

@@ -0,0 +1,5 @@
# Camera Vendor Props
persist.vendor.low.cutoff u:object_r:vendor_camera_prop:s0
# Camera Persist Props
vendor.camera.skip_unconfigure.packagelist u:object_r:vendor_persist_camera_prop:s0

View File

@@ -0,0 +1 @@
allow vendor_hal_camerapostproc_xiaomi platform_app:binder transfer;

View File

@@ -0,0 +1 @@
hal_client_domain(platform_app, hal_misys)

View File

@@ -0,0 +1 @@
hal_client_domain(priv_app, hal_misys)

View File

@@ -0,0 +1,4 @@
# Misys
attribute hal_misys;
attribute hal_misys_client;
attribute hal_misys_server;

Some files were not shown because too many files have changed in this diff Show More