MiuiCamera: Move to device/xiaomi/camera & keep prebuilts in vendor/xiaomi/camera
- Regenerate with Python Utils - Picked latest prebuilts from HyperOS 1.0.3.0 Mi Alioth - Main repo moved to https://github.com/PocoF3Releases/device_xiaomi_camera
This commit is contained in:
1625
Android.bp
1625
Android.bp
File diff suppressed because it is too large
Load Diff
@@ -1,9 +1,5 @@
|
||||
#
|
||||
# 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
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
#
|
||||
# Automatically generated file. DO NOT MODIFY
|
||||
#
|
||||
# This file is generated by vendor/xiaomi/camera/setup-makefiles.sh
|
||||
|
||||
|
||||
11
README.md
11
README.md
@@ -1,16 +1,15 @@
|
||||
# proprietary_vendor_xiaomi_camera
|
||||
|
||||
Prebuilt stock MIUI/Leica Camera for Poco F3/Redmi K40/Mi 11x (alioth), to include in custom ROM builds.
|
||||
Prebuilt modded MIUI/Leica Camera 5.0 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:
|
||||
|
||||
2. Clone https://github.com/PocoF3Releases/device_xiaomi_camera to 'device/xiaomi/camera'
|
||||
3. Inherit it from `device.mk` in device tree:
|
||||
```
|
||||
# Camera
|
||||
$(call inherit-product-if-exists, vendor/xiaomi/camera/miuicamera.mk)
|
||||
$(call inherit-product-if-exists, device/xiaomi/camera/miuicamera.mk)
|
||||
```
|
||||
|
||||
3. Ensure that you added misys vintf dependencies in your framework_compatibility_matrix.xml:
|
||||
@@ -28,4 +27,4 @@ $(call inherit-product-if-exists, vendor/xiaomi/camera/miuicamera.mk)
|
||||
</interface>
|
||||
</hal>
|
||||
```
|
||||
3.1 Reference - https://github.com/VoidUI-Devices/device_xiaomi_sm8250-common/commit/c8ae872b8fdbc682da0f98a2031125d68ef0afe9
|
||||
3.1 Reference - https://github.com/PocoF3Releases/device_xiaomi_sm8250-common/commit/26b57664835c487db278dbda83fe936ceb831c63
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#
|
||||
# Automatically generated file. DO NOT MODIFY
|
||||
#
|
||||
# This file is generated by vendor/xiaomi/camera/setup-makefiles.sh
|
||||
|
||||
PRODUCT_SOONG_NAMESPACES += \
|
||||
vendor/xiaomi/camera
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
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
|
||||
@@ -1,625 +0,0 @@
|
||||
<?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 secret dc backlight -->
|
||||
<bool name="support_secret_dc_backlight">true</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>
|
||||
@@ -1,621 +0,0 @@
|
||||
<?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 secret dc backlight -->
|
||||
<bool name="support_secret_dc_backlight">true</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>
|
||||
@@ -1,24 +0,0 @@
|
||||
<?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>
|
||||
@@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<permissions>
|
||||
<library name="camerax-vendor-extensions.jar"
|
||||
file="/system_ext/framework/camerax-vendor-extensions.jar" />
|
||||
</permissions>
|
||||
@@ -1,25 +0,0 @@
|
||||
<?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>
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
<?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>
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
<?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>
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
<?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>
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
<?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>
|
||||
@@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<config>
|
||||
<hidden-api-whitelisted-app package="com.android.camera" />
|
||||
</config>
|
||||
|
||||
@@ -1,75 +0,0 @@
|
||||
#!/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}/../../.."
|
||||
|
||||
export TARGET_ENABLE_CHECKELF=true
|
||||
|
||||
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}"
|
||||
;;
|
||||
system/lib64/libcamera_algoup_jni.xiaomi.so)
|
||||
[ "$2" = "" ] && return 0
|
||||
sed -i "s/\x08\xad\x40\xf9/\x08\xa9\x40\xf9/" "${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"
|
||||
@@ -1,83 +0,0 @@
|
||||
#
|
||||
# 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
|
||||
|
||||
# Camera Extensions
|
||||
PRODUCT_SYSTEM_PROPERTIES += \
|
||||
ro.camerax.extensions.enabled=true
|
||||
|
||||
# Camera Extensions permissions
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(CAMERA_PATH)/configs/permissions/extensions/camerax-vendor-extensions.xml:$(TARGET_COPY_OUT_SYSTEM_EXT)/etc/permissions/camerax-vendor-extensions.xml
|
||||
|
||||
# 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 \
|
||||
persist.sys.cam.skip_detach_image=true
|
||||
|
||||
# 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
|
||||
|
||||
# Qualcomm Gralloc
|
||||
PRODUCT_PACKAGES += \
|
||||
gralloc.qcom
|
||||
|
||||
# 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
|
||||
|
||||
$(call inherit-product, $(CAMERA_PATH)/camera-vendor.mk)
|
||||
@@ -1,103 +0,0 @@
|
||||
# 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
|
||||
system_ext/lib/libOpenCL_system.so
|
||||
system_ext/lib64/libOpenCL_system.so
|
||||
|
||||
# Device Camera Deps
|
||||
vendor/bin/f2player
|
||||
vendor/lib64/libarcsat.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/lib/libmisys_jni.xiaomi.so
|
||||
system/lib/vendor.xiaomi.hardware.misys@1.0.so;MODULE_SUFFIX=_system
|
||||
system/lib/vendor.xiaomi.hardware.misys@2.0.so;MODULE_SUFFIX=_system
|
||||
system/lib/vendor.xiaomi.hardware.misys@3.0.so;MODULE_SUFFIX=_system
|
||||
system/lib/vendor.xiaomi.hardware.misys@4.0.so;MODULE_SUFFIX=_system
|
||||
system/lib64/libmisys_jni.xiaomi.so
|
||||
system/lib64/vendor.xiaomi.hardware.misys@1.0.so;MODULE_SUFFIX=_system
|
||||
system/lib64/vendor.xiaomi.hardware.misys@2.0.so;MODULE_SUFFIX=_system
|
||||
system/lib64/vendor.xiaomi.hardware.misys@3.0.so;MODULE_SUFFIX=_system
|
||||
system/lib64/vendor.xiaomi.hardware.misys@4.0.so;MODULE_SUFFIX=_system
|
||||
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/lib/hw/vendor.xiaomi.hardware.misys@1.0-impl.so
|
||||
vendor/lib/hw/vendor.xiaomi.hardware.misys@2.0-impl.so
|
||||
vendor/lib/hw/vendor.xiaomi.hardware.misys@3.0-impl.so
|
||||
vendor/lib/hw/vendor.xiaomi.hardware.misys@4.0-impl.so
|
||||
vendor/lib/vendor.xiaomi.hardware.misys@1.0.so
|
||||
vendor/lib/vendor.xiaomi.hardware.misys@2.0.so
|
||||
vendor/lib/vendor.xiaomi.hardware.misys@3.0.so
|
||||
vendor/lib/vendor.xiaomi.hardware.misys@4.0.so
|
||||
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/lib/libcheckpid.so
|
||||
vendor/lib/liblogwrap_vendor.so
|
||||
vendor/lib64/libcheckpid.so
|
||||
vendor/lib64/liblogwrap_vendor.so
|
||||
|
||||
# Camera Dependencies
|
||||
vendor/camera/fonts/FZMiaoWuJW.ttf
|
||||
vendor/camera/fonts/MFYueYuan-Regular.ttf
|
||||
vendor/camera/fonts/MI+LanTing_GB+Outside+YS_V2.3_20160322.ttf
|
||||
vendor/camera/fonts/MIUI_Time.ttf
|
||||
vendor/etc/camera/102_SummerDay.png
|
||||
vendor/etc/camera/103_Fantasy.png
|
||||
vendor/etc/camera/104_Meet.png
|
||||
vendor/etc/camera/105_WindSing.png
|
||||
vendor/etc/camera/106_Lost.png
|
||||
vendor/etc/camera/107_Central.png
|
||||
vendor/etc/camera/108_NorthernEurope.png
|
||||
vendor/etc/camera/109_Rome.png
|
||||
vendor/etc/camera/110_BlackGold.png
|
||||
vendor/etc/camera/111_GreenOrange.png
|
||||
vendor/etc/camera/112_CyberPunk.png
|
||||
vendor/etc/camera/113_BlackIce.png
|
||||
vendor/etc/camera/121_Bleach.png
|
||||
vendor/etc/camera/122_Thriller.png
|
||||
vendor/etc/camera/123_TealOrange.png
|
||||
vendor/etc/camera/124_JapaneseStyle.png
|
||||
vendor/etc/camera/125_Latin.png
|
||||
vendor/etc/camera/126_Fantasy2.png
|
||||
vendor/etc/camera/127_Creamy.png
|
||||
vendor/etc/camera/128_Sepia.png
|
||||
vendor/etc/camera/sceneDetection.xml
|
||||
|
||||
# Camera Extensions
|
||||
system_ext/framework/camerax-vendor-extensions.jar
|
||||
0
proprietary/vendor/bin/f2player
vendored
Normal file → Executable file
0
proprietary/vendor/bin/f2player
vendored
Normal file → Executable file
0
proprietary/vendor/bin/hw/vendor.xiaomi.hardware.misys@1.0-service
vendored
Normal file → Executable file
0
proprietary/vendor/bin/hw/vendor.xiaomi.hardware.misys@1.0-service
vendored
Normal file → Executable file
0
proprietary/vendor/bin/hw/vendor.xiaomi.hardware.misys@2.0-service
vendored
Normal file → Executable file
0
proprietary/vendor/bin/hw/vendor.xiaomi.hardware.misys@2.0-service
vendored
Normal file → Executable file
0
proprietary/vendor/bin/hw/vendor.xiaomi.hardware.misys@3.0-service
vendored
Normal file → Executable file
0
proprietary/vendor/bin/hw/vendor.xiaomi.hardware.misys@3.0-service
vendored
Normal file → Executable file
0
proprietary/vendor/bin/hw/vendor.xiaomi.hardware.misys@4.0-service
vendored
Normal file → Executable file
0
proprietary/vendor/bin/hw/vendor.xiaomi.hardware.misys@4.0-service
vendored
Normal file → Executable file
@@ -1,66 +0,0 @@
|
||||
#!/usr/bin/env python
|
||||
#
|
||||
# Copyright (C) 2021 The LineageOS Project
|
||||
#
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
from functools import cmp_to_key
|
||||
from locale import LC_ALL, setlocale, strcoll
|
||||
from pathlib import Path
|
||||
|
||||
FILES = [Path(file) for file in [
|
||||
"proprietary-files.txt",
|
||||
]]
|
||||
|
||||
setlocale(LC_ALL, "C")
|
||||
|
||||
def strcoll_extract_utils(string1: str, string2: str) -> int:
|
||||
# Skip logic if one of the string if empty
|
||||
if not string1 or not string2:
|
||||
return strcoll(string1, string2)
|
||||
|
||||
# Remove '-' from strings if there,
|
||||
# it is used to indicate a build target
|
||||
string1 = string1.removeprefix('-')
|
||||
string2 = string2.removeprefix('-')
|
||||
|
||||
# If no directories, compare normally
|
||||
if not "/" in string1 and not "/" in string2:
|
||||
return strcoll(string1, string2)
|
||||
|
||||
string1_dir = string1.rsplit("/", 1)[0] + "/"
|
||||
string2_dir = string2.rsplit("/", 1)[0] + "/"
|
||||
if string1_dir == string2_dir:
|
||||
# Same directory, compare normally
|
||||
return strcoll(string1, string2)
|
||||
|
||||
if string1_dir.startswith(string2_dir):
|
||||
# First string dir is a subdirectory of the second one,
|
||||
# return string1 > string2
|
||||
return -1
|
||||
|
||||
if string2_dir.startswith(string1_dir):
|
||||
# Second string dir is a subdirectory of the first one,
|
||||
# return string2 > string1
|
||||
return 1
|
||||
|
||||
# Compare normally
|
||||
return strcoll(string1, string2)
|
||||
|
||||
for file in FILES:
|
||||
if not file.is_file():
|
||||
print(f"File {str(file)} not found")
|
||||
continue
|
||||
|
||||
with open(file, 'r') as f:
|
||||
sections = f.read().split("\n\n")
|
||||
|
||||
ordered_sections = []
|
||||
for section in sections:
|
||||
section_list = [line.strip() for line in section.splitlines()]
|
||||
section_list.sort(key=cmp_to_key(strcoll_extract_utils))
|
||||
ordered_sections.append("\n".join(section_list))
|
||||
|
||||
with open(file, 'w') as f:
|
||||
f.write("\n\n".join(ordered_sections).strip() + "\n")
|
||||
@@ -1,5 +0,0 @@
|
||||
runtime_resource_overlay {
|
||||
name: "MiuiCameraOverlay",
|
||||
product_specific: true,
|
||||
}
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
<?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>
|
||||
@@ -1,53 +0,0 @@
|
||||
<?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 to use Parallel processing and it's features in Photo modes with Rear cameras,
|
||||
main features are Leica/Film filters, AI Watermark, Supermoon, Leica/Redmi watermarks
|
||||
Parallel processing is usually broken on AOSP and MIUI/HyperOS ports,
|
||||
on AOSP it may be fixed by including some libs, also heavily depends on Device Tree and ROM sources -->
|
||||
<bool name="pref_camera_parallel_process_enable_default">true</bool>
|
||||
|
||||
<!-- Portrait Mode -->
|
||||
<!-- Disable Portrait Fix by default -->
|
||||
<bool name="pref_portraitfix_default">false</bool>
|
||||
|
||||
<!-- Disable Experimental Portrait Fix by default -->
|
||||
<bool name="pref_experimental_portrait_default">false</bool>
|
||||
|
||||
<!-- Enable Parallel Processing for Portrait Mode by default -->
|
||||
<bool name="pref_parallelportrait_default">true</bool>
|
||||
|
||||
<!-- Enable 4k 30fps Support -->
|
||||
<bool name="pref_4k_default">true</bool>
|
||||
|
||||
<!-- Experimental - Enable 4k 60fps Support -->
|
||||
<bool name="pref_4k60_default">true</bool>
|
||||
|
||||
<!-- Enable Universal Settings by default -->
|
||||
<bool name="use_universal_settings">true</bool>
|
||||
|
||||
<!-- Enable Smart Tips Support -->
|
||||
<bool name="pref_camera_smart_tip_default">true</bool>
|
||||
|
||||
<!-- Enable QR Codes Scan Support -->
|
||||
<bool name="pref_scan_qrcode_default">true</bool>
|
||||
|
||||
<!-- Night Mode -->
|
||||
<!-- Enable Parallel Processing for Night Mode -->
|
||||
<bool name="pref_parallelnight_default">true</bool>
|
||||
|
||||
<!-- Features -->
|
||||
<!-- Set Documents Ver. 2 by default -->
|
||||
<string name="pref_documents_default">2</string>
|
||||
|
||||
<!-- Enable AI for Front Camera by default -->
|
||||
<bool name="pref_frontAI_default">true</bool>
|
||||
|
||||
<!-- Enable 0.5x UltraWide lens by default -->
|
||||
<!-- 0 - Default, 1 - 0.5x, 2 - 0.6x -->
|
||||
<string name="pref_uw_default">1</string>
|
||||
|
||||
</resources>
|
||||
@@ -1,4 +0,0 @@
|
||||
runtime_resource_overlay {
|
||||
name: "MiuiCameraOverlayAosp",
|
||||
product_specific: true,
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
<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>
|
||||
@@ -1,13 +0,0 @@
|
||||
<?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>
|
||||
@@ -1,4 +0,0 @@
|
||||
runtime_resource_overlay {
|
||||
name: "MiuiCameraOverlayLos",
|
||||
product_specific: true,
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
<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>
|
||||
@@ -1,13 +0,0 @@
|
||||
<?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>
|
||||
@@ -1,3 +0,0 @@
|
||||
allow cameraserver property_socket:sock_file write;
|
||||
allow cameraserver init:unix_stream_socket connectto;
|
||||
set_prop(cameraserver, exported_system_prop)
|
||||
@@ -1,6 +0,0 @@
|
||||
allow platform_app {
|
||||
DisplayFeatureControl
|
||||
miui_multi_display
|
||||
perfshielder
|
||||
ProcessManager
|
||||
}:service_manager find;
|
||||
@@ -1,5 +0,0 @@
|
||||
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;
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
# Miui Camera
|
||||
sys.camera.miui.apk u:object_r:exported_system_prop:s0
|
||||
@@ -1,4 +0,0 @@
|
||||
type DisplayFeatureControl, service_manager_type;
|
||||
type perfshielder, service_manager_type;
|
||||
type miui_multi_display, service_manager_type;
|
||||
type ProcessManager, service_manager_type;
|
||||
@@ -1,4 +0,0 @@
|
||||
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
4
sepolicy/camera/vendor/attributes
vendored
@@ -1,4 +0,0 @@
|
||||
# Camera
|
||||
attribute vendor_hal_camerapostproc_xiaomi;
|
||||
attribute vendor_hal_camerapostproc_xiaomi_client;
|
||||
attribute vendor_hal_camerapostproc_xiaomi_server;
|
||||
111
sepolicy/camera/vendor/file_contexts
vendored
111
sepolicy/camera/vendor/file_contexts
vendored
@@ -1,111 +0,0 @@
|
||||
# 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
|
||||
24
sepolicy/camera/vendor/hal_camera_default.te
vendored
24
sepolicy/camera/vendor/hal_camera_default.te
vendored
@@ -1,24 +0,0 @@
|
||||
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;
|
||||
@@ -1,8 +0,0 @@
|
||||
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
1
sepolicy/camera/vendor/hwservice.te
vendored
@@ -1 +0,0 @@
|
||||
type hal_xiaomi_camera_hwservice, hwservice_manager_type;
|
||||
2
sepolicy/camera/vendor/hwservice_contexts
vendored
2
sepolicy/camera/vendor/hwservice_contexts
vendored
@@ -1,2 +0,0 @@
|
||||
# Camera
|
||||
vendor.xiaomi.hardware.campostproc::IMiPostProcService u:object_r:hal_xiaomi_camera_hwservice:s0
|
||||
30
sepolicy/camera/vendor/platform_app.te
vendored
30
sepolicy/camera/vendor/platform_app.te
vendored
@@ -1,30 +0,0 @@
|
||||
# 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
1
sepolicy/camera/vendor/property.te
vendored
@@ -1 +0,0 @@
|
||||
vendor_public_prop(vendor_camera_sensor_prop)
|
||||
2
sepolicy/camera/vendor/property_contexts
vendored
2
sepolicy/camera/vendor/property_contexts
vendored
@@ -1,2 +0,0 @@
|
||||
# Camera Vendor Props
|
||||
persist.vendor.low.cutoff u:object_r:vendor_camera_prop:s0
|
||||
@@ -1 +0,0 @@
|
||||
allow vendor_hal_camerapostproc_xiaomi platform_app:binder transfer;
|
||||
@@ -1 +0,0 @@
|
||||
hal_client_domain(platform_app, hal_misys)
|
||||
@@ -1 +0,0 @@
|
||||
hal_client_domain(priv_app, hal_misys)
|
||||
@@ -1,4 +0,0 @@
|
||||
# Misys
|
||||
attribute hal_misys;
|
||||
attribute hal_misys_client;
|
||||
attribute hal_misys_server;
|
||||
5
sepolicy/misys/vendor/file_contexts
vendored
5
sepolicy/misys/vendor/file_contexts
vendored
@@ -1,5 +0,0 @@
|
||||
# MiSys
|
||||
/vendor/bin/hw/vendor\.xiaomi\.hardware\.misys@1\.0-service u:object_r:hal_misys_default_exec:s0
|
||||
/vendor/bin/hw/vendor\.xiaomi\.hardware\.misys@2\.0-service u:object_r:hal_misys_default_exec:s0
|
||||
/vendor/bin/hw/vendor\.xiaomi\.hardware\.misys@3\.0-service u:object_r:hal_misys_default_exec:s0
|
||||
/vendor/bin/hw/vendor\.xiaomi\.hardware\.misys@4\.0-service u:object_r:hal_misys_default_exec:s0
|
||||
5
sepolicy/misys/vendor/hal_misys.te
vendored
5
sepolicy/misys/vendor/hal_misys.te
vendored
@@ -1,5 +0,0 @@
|
||||
# HwBinder IPC from client to server
|
||||
binder_call(hal_misys_client, hal_misys_server)
|
||||
|
||||
add_hwservice(hal_misys_server, hal_misys_hwservice)
|
||||
allow hal_misys_client hal_misys_hwservice:hwservice_manager find;
|
||||
11
sepolicy/misys/vendor/hal_misys_default.te
vendored
11
sepolicy/misys/vendor/hal_misys_default.te
vendored
@@ -1,11 +0,0 @@
|
||||
type hal_misys_default, domain;
|
||||
hal_server_domain(hal_misys_default, hal_misys)
|
||||
|
||||
type hal_misys_default_exec, exec_type, vendor_file_type, file_type;
|
||||
|
||||
init_daemon_domain(hal_misys_default)
|
||||
|
||||
r_dir_file(hal_misys_default, firmware_file)
|
||||
r_dir_file(hal_misys_default, mnt_vendor_file)
|
||||
|
||||
get_prop(hal_misys_default, vendor_camera_prop)
|
||||
2
sepolicy/misys/vendor/hwservice.te
vendored
2
sepolicy/misys/vendor/hwservice.te
vendored
@@ -1,2 +0,0 @@
|
||||
# MiSys
|
||||
type hal_misys_hwservice, hwservice_manager_type;
|
||||
2
sepolicy/misys/vendor/hwservice_contexts
vendored
2
sepolicy/misys/vendor/hwservice_contexts
vendored
@@ -1,2 +0,0 @@
|
||||
# MiSys
|
||||
vendor.xiaomi.hardware.misys::IMiSys u:object_r:hal_misys_hwservice:s0
|
||||
2
sepolicy/misys/vendor/platform_app.te
vendored
2
sepolicy/misys/vendor/platform_app.te
vendored
@@ -1,2 +0,0 @@
|
||||
allow platform_app hal_misys_hwservice:hwservice_manager find;
|
||||
binder_call(platform_app, hal_misys_default)
|
||||
@@ -1,76 +0,0 @@
|
||||
#!/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
|
||||
DEVICE_COMMON=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}/../../.."
|
||||
|
||||
export TARGET_ENABLE_CHECKELF=true
|
||||
|
||||
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}"
|
||||
|
||||
function vendor_imports() {
|
||||
cat <<EOF >>"$1"
|
||||
"device/xiaomi/alioth",
|
||||
"device/xiaomi/sm8250-common",
|
||||
"hardware/qcom-caf/sm8250",
|
||||
"hardware/xiaomi",
|
||||
"vendor/qcom/opensource/commonsys/display",
|
||||
"vendor/qcom/opensource/commonsys-intf/display",
|
||||
"vendor/qcom/opensource/dataservices",
|
||||
"vendor/qcom/opensource/display",
|
||||
EOF
|
||||
}
|
||||
|
||||
function lib_to_package_fixup_system_variants() {
|
||||
if [ "$2" != "system" ]; then
|
||||
return 1
|
||||
fi
|
||||
case "$1" in
|
||||
libmisys_jni.xiaomi | \
|
||||
vendor.xiaomi.hardware.misys@1.0 | \
|
||||
vendor.xiaomi.hardware.misys@2.0 | \
|
||||
vendor.xiaomi.hardware.misys@3.0 | \
|
||||
vendor.xiaomi.hardware.misys@4.0)
|
||||
echo "${1}_system"
|
||||
;;
|
||||
*)
|
||||
return 1
|
||||
;;
|
||||
esac
|
||||
}
|
||||
function lib_to_package_fixup() {
|
||||
lib_to_package_fixup_clang_rt_ubsan_standalone "$1" ||
|
||||
lib_to_package_fixup_proto_3_9_1 "$1" ||
|
||||
lib_to_package_fixup_system_variants "$@"
|
||||
}
|
||||
|
||||
# Initialize the helper
|
||||
setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}" true
|
||||
|
||||
# Warning headers and guards
|
||||
write_headers "alioth"
|
||||
sed -i 's|device/|vendor/|g' "$ANDROIDBP" "$ANDROIDMK" "$BOARDMK" "$PRODUCTMK"
|
||||
|
||||
write_makefiles "${MY_DIR}/proprietary-files.txt" true
|
||||
|
||||
# Finish
|
||||
write_footers
|
||||
Reference in New Issue
Block a user