diff --git a/Android.bp b/Android.bp index 0073031..ed867cd 100644 --- a/Android.bp +++ b/Android.bp @@ -18,3 +18,10 @@ install_symlink { installed_location: "firmware/wlan/qca_cld/WCNSS_qcom_cfg.ini", symlink_target: "/vendor/etc/wifi/WCNSS_qcom_cfg.ini", } + +install_symlink { + name: "firmware_WCNSS_qcom_cfg_qca6750.ini_symlink", + vendor: true, + installed_location: "firmware/wlan/qca_cld/qca6750/WCNSS_qcom_cfg.ini", + symlink_target: "/vendor/etc/wifi/qca6750/WCNSS_qcom_cfg.ini", +} diff --git a/AndroidProducts.mk b/AndroidProducts.mk new file mode 100644 index 0000000..2cdf3fb --- /dev/null +++ b/AndroidProducts.mk @@ -0,0 +1,8 @@ +# +# Copyright (C) 2022 The LineageOS Project +# +# SPDX-License-Identifier: Apache-2.0 +# + +PRODUCT_MAKEFILES := \ + $(LOCAL_DIR)/lineage_taoyao.mk diff --git a/BoardConfigCommon.mk b/BoardConfig.mk similarity index 80% rename from BoardConfigCommon.mk rename to BoardConfig.mk index 63ab0ae..5d2064b 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfig.mk @@ -4,7 +4,7 @@ # SPDX-License-Identifier: Apache-2.0 # -COMMON_PATH := device/xiaomi/sm8350-common +DEVICE_PATH := device/xiaomi/taoyao BOARD_VENDOR := xiaomi @@ -51,9 +51,10 @@ TARGET_PROVIDES_AUDIO_EXTNS := true # Bootloader TARGET_NO_BOOTLOADER := true +TARGET_BOOTLOADER_BOARD_NAME := taoyao # Camera -TARGET_CAMERA_SERVICE_EXT_LIB := //$(COMMON_PATH):libcameraservice_extension.xiaomi_sm8350 +TARGET_CAMERA_SERVICE_EXT_LIB := //$(DEVICE_PATH):libcameraservice_extension.xiaomi_sm8350 # Display TARGET_SCREEN_DENSITY ?= 440 @@ -64,7 +65,7 @@ SOONG_CONFIG_dolby_vision += enabled SOONG_CONFIG_dolby_vision_enabled := true # Filesystem -TARGET_FS_CONFIG_GEN := $(COMMON_PATH)/config.fs +TARGET_FS_CONFIG_GEN := $(DEVICE_PATH)/config.fs # GPS BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := default @@ -76,12 +77,13 @@ DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE := \ hardware/qcom-caf/common/vendor_framework_compatibility_matrix.xml \ hardware/xiaomi/vintf/xiaomi_framework_compatibility_matrix.xml \ vendor/lineage/config/device_framework_matrix.xml \ - $(COMMON_PATH)/hidl/vendor_framework_compatibility_matrix.xml \ - $(COMMON_PATH)/hidl/xiaomi_framework_compatibility_matrix.xml + $(DEVICE_PATH)/hidl/vendor_framework_compatibility_matrix.xml \ + $(DEVICE_PATH)/hidl/xiaomi_framework_compatibility_matrix.xml DEVICE_MANIFEST_FILE := \ - $(COMMON_PATH)/hidl/manifest_lahaina.xml \ - $(COMMON_PATH)/hidl/manifest_xiaomi.xml + $(DEVICE_PATH)/hidl/manifest_lahaina.xml \ + $(DEVICE_PATH)/hidl/manifest_taoyao.xml \ + $(DEVICE_PATH)/hidl/manifest_xiaomi.xml # Kernel BOARD_KERNEL_BASE := 0x00000000 @@ -94,8 +96,8 @@ BOARD_MKBOOTIMG_ARGS += --header_version $(BOARD_BOOT_HEADER_VERSION) TARGET_KERNEL_ADDITIONAL_FLAGS := TARGET_PRODUCT=$(PRODUCT_DEVICE) TARGET_KERNEL_NO_GCC := true -TARGET_KERNEL_SOURCE := kernel/xiaomi/sm8350 -TARGET_KERNEL_CONFIG := vendor/lahaina-qgki_defconfig vendor/debugfs.config vendor/xiaomi_QGKI.config +TARGET_KERNEL_SOURCE := kernel/xiaomi/taoyao +TARGET_KERNEL_CONFIG := vendor/taoyao-qgki_defconfig BOARD_KERNEL_CMDLINE += androidboot.console=ttyMSM0 BOARD_KERNEL_CMDLINE += androidboot.hardware=qcom @@ -111,12 +113,22 @@ BOARD_KERNEL_CMDLINE += iptable_raw.raw_before_defrag=1 BOARD_KERNEL_CMDLINE += ip6table_raw.raw_before_defrag=1 BOARD_KERNEL_CMDLINE += androidboot.init_fatal_reboot_target=recovery +# Kernel modules +BOOT_KERNEL_MODULES := \ + focaltech_touch.ko \ + goodix_core.ko \ + hwid.ko \ + msm_drm.ko \ + xiaomi_touch.ko +BOARD_VENDOR_RAMDISK_RECOVERY_KERNEL_MODULES_LOAD := $(BOOT_KERNEL_MODULES) + # Lineage Health TARGET_HEALTH_CHARGING_CONTROL_SUPPORTS_BYPASS := false # Partitions BOARD_FLASH_BLOCK_SIZE := 131072 BOARD_BOOTIMAGE_PARTITION_SIZE := 201326592 +BOARD_DTBOIMG_PARTITION_SIZE := 25165824 BOARD_SUPER_PARTITION_SIZE := 9126805504 BOARD_VENDOR_BOOTIMAGE_PARTITION_SIZE := 100663296 BOARD_USES_METADATA_PARTITION := true @@ -147,17 +159,17 @@ TARGET_COPY_OUT_VENDOR_DLKM := vendor_dlkm TARGET_BOARD_PLATFORM := lahaina # Power -TARGET_POWERHAL_MODE_EXT := $(COMMON_PATH)/power/power-mode.cpp -TARGET_POWER_LIBPERFMGR_MODE_EXTENSION_LIB := //$(COMMON_PATH):libperfmgr-ext-xiaomi +TARGET_POWERHAL_MODE_EXT := $(DEVICE_PATH)/power/power-mode.cpp +TARGET_POWER_LIBPERFMGR_MODE_EXTENSION_LIB := //$(DEVICE_PATH):libperfmgr-ext-xiaomi # PowerShare TARGET_POWERSHARE_PATH := /sys/class/qcom-battery/reverse_chg_mode # Properties -TARGET_ODM_PROP += $(COMMON_PATH)/odm.prop -TARGET_SYSTEM_PROP += $(COMMON_PATH)/system.prop -TARGET_SYSTEM_EXT_PROP += $(COMMON_PATH)/system_ext.prop -TARGET_VENDOR_PROP += $(COMMON_PATH)/vendor.prop +TARGET_ODM_PROP += $(DEVICE_PATH)/odm.prop +TARGET_SYSTEM_PROP += $(DEVICE_PATH)/system.prop +TARGET_SYSTEM_EXT_PROP += $(DEVICE_PATH)/system_ext.prop +TARGET_VENDOR_PROP += $(DEVICE_PATH)/vendor.prop # QCOM BOARD_USES_QCOM_HARDWARE := true @@ -165,7 +177,7 @@ BOARD_USES_QCOM_HARDWARE := true # Recovery BOARD_INCLUDE_DTB_IN_BOOTIMG := true BOARD_MOVE_RECOVERY_RESOURCES_TO_VENDOR_BOOT := true -TARGET_RECOVERY_FSTAB := $(COMMON_PATH)/rootdir/etc/fstab.qcom +TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/rootdir/etc/fstab.qcom TARGET_RECOVERY_PIXEL_FORMAT := RGBX_8888 TARGET_USERIMAGES_USE_EXT4 := true TARGET_USERIMAGES_USE_F2FS := true @@ -180,9 +192,9 @@ VENDOR_SECURITY_PATCH := $(PLATFORM_SECURITY_PATCH) include device/lineage/sepolicy/libperfmgr/sepolicy.mk include device/qcom/sepolicy_vndr/SEPolicy.mk -SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += $(COMMON_PATH)/sepolicy/private -SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS += $(COMMON_PATH)/sepolicy/public -BOARD_VENDOR_SEPOLICY_DIRS += $(COMMON_PATH)/sepolicy/vendor +SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += $(DEVICE_PATH)/sepolicy/private +SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS += $(DEVICE_PATH)/sepolicy/public +BOARD_VENDOR_SEPOLICY_DIRS += $(DEVICE_PATH)/sepolicy/vendor SELINUX_IGNORE_NEVERALLOWS := true # Verified Boot @@ -217,4 +229,4 @@ WIFI_HIDL_UNIFIED_SUPPLICANT_SERVICE_RC_ENTRY := true WPA_SUPPLICANT_VERSION := VER_0_8_X # Inherit proprietary blobs -include vendor/xiaomi/sm8350-common/BoardConfigVendor.mk +include vendor/xiaomi/taoyao/BoardConfigVendor.mk diff --git a/README.md b/README.md index 91c9cef..9c54d0b 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,20 @@ -Copyright (C) 2020 - The LineageOS Project +Device configuration for Xiaomi 12 Lite +========================================= -Common device tree for Xiaomi SM8350 based devices -============== +The Xiaomi 12 Lite (codenamed _"taoyao"_) is a mid-range smartphone from Xiaomi. + +It was released in September 2021. + +## Device specifications + +Basic | Spec Sheet +-------:|:------------------------- +CPU | Kryo 670, Up to 2.4 GHz, Octa-core CPU +Chipset | Qualcomm Snapdragon 778G 5G (SM7325-2-AB) +GPU | Adreno 642L +Memory | 8 GB, LPDDR4X +Storage | 128/256 GB, UFS 2.2 +Shipped Android Version | 11 +Battery | Non-removable 4250 mAh +Display | 2400 x 1080 pixels, 6.55 inches +Camera | 64 MP main, 8 MP ultra-wide angle, 5 MP telemacro, 20 MP front diff --git a/configs/idc/uinput-goodix.idc b/configs/idc/uinput-goodix.idc new file mode 100644 index 0000000..2b580cd --- /dev/null +++ b/configs/idc/uinput-goodix.idc @@ -0,0 +1,16 @@ +# +# FPC1020 Touch sensor driver +# +# Copyright (c) 2013,2014 Fingerprint Cards AB +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License Version 2 +# as published by the Free Software Foundation. +# + +device.internal = 1 + +keyboard.layout = uinput-goodix +keyboard.builtIn = 1 +keyboard.orientationAware = 1 + diff --git a/configs/keylayout/gpio-keys.kl b/configs/keylayout/gpio-keys.kl new file mode 100644 index 0000000..7d5afc3 --- /dev/null +++ b/configs/keylayout/gpio-keys.kl @@ -0,0 +1,32 @@ +# Copyright (c) 2013, The Linux Foundation. All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are +# met: +# * Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# * Redistributions in binary form must reproduce the above +# copyright notice, this list of conditions and the following +# disclaimer in the documentation and/or other materials provided +# with the distribution. +# * Neither the name of The Linux Foundation nor the names of its +# contributors may be used to endorse or promote products derived +# from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT +# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS +# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR +# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE +# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +key 115 VOLUME_UP +key 114 VOLUME_DOWN +key 102 HOME +key 528 FOCUS +key 766 CAMERA diff --git a/configs/keylayout/uinput-goodix.kl b/configs/keylayout/uinput-goodix.kl new file mode 100644 index 0000000..016c6b6 --- /dev/null +++ b/configs/keylayout/uinput-goodix.kl @@ -0,0 +1,19 @@ +# +# FPC1020 Touch sensor driver +# +# Copyright (c) 2013,2014 Fingerprint Cards AB +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License Version 2 +# as published by the Free Software Foundation. +# + +#single click +key 353 DPAD_CENTER VIRTUAL +#double click +key 306 BUTTON_C VIRTUAL +# HOME --> DPAD_CENTER +key 102 DPAD_CENTER VIRTUAL +#key 105 DPAD_LEFT VIRTUAL +#key 106 DPAD_RIGHT VIRTUAL + diff --git a/common.mk b/device.mk similarity index 93% rename from common.mk rename to device.mk index 0987785..6750c35 100644 --- a/common.mk +++ b/device.mk @@ -6,7 +6,6 @@ # Inherit from those products. Most specific first. $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk) -TARGET_SUPPORTS_OMX_SERVICE := false $(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk) # Enable virtual A/B OTA @@ -16,7 +15,7 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota/launch_with_ven $(call inherit-product, $(SRC_TARGET_DIR)/product/emulated_storage.mk) # Inherit proprietary targets -$(call inherit-product, vendor/xiaomi/sm8350-common/sm8350-common-vendor.mk) +$(call inherit-product, vendor/xiaomi/taoyao/taoyao-vendor.mk) # Setup dalvik vm configs $(call inherit-product, frameworks/native/build/phone-xhdpi-6144-dalvik-heap.mk) @@ -166,7 +165,8 @@ PRODUCT_PACKAGES += \ # Fingerprint PRODUCT_PACKAGES += \ - android.hardware.biometrics.fingerprint-service.xiaomi + android.hardware.biometrics.fingerprint-service.xiaomi \ + libudfpshandler PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml @@ -243,9 +243,15 @@ PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/rootdir/bin/init.qcom.sh:$(TARGET_COPY_OUT_VENDOR)/bin/init.qcom.sh \ $(LOCAL_PATH)/rootdir/bin/vendor_modprobe.sh:$(TARGET_COPY_OUT_VENDOR)/bin/vendor_modprobe.sh +# Input +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/configs/idc/uinput-goodix.idc:$(TARGET_COPY_OUT_VENDOR)/usr/idc/uinput-goodix.idc \ + $(LOCAL_PATH)/configs/keylayout/uinput-goodix.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/uinput-goodix.kl \ + $(LOCAL_PATH)/configs/keylayout/gpio-keys.kl:$(TARGET_COPY_OUT_VENDOR)/usr/keylayout/gpio-keys.kl + # IFAA manager PRODUCT_PACKAGES += \ - IFAAService + IFAAService # IPACM PRODUCT_PACKAGES += \ @@ -261,6 +267,7 @@ PRODUCT_COPY_FILES += \ # Kernel PRODUCT_ENABLE_UFFD_GC := false +PRODUCT_OTA_ENFORCE_VINTF_KERNEL_REQUIREMENTS := false # Lineage Health PRODUCT_PACKAGES += \ @@ -314,6 +321,9 @@ PRODUCT_COPY_FILES += \ frameworks/native/data/etc/com.android.nfc_extras.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.android.nfc_extras.xml \ frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/com.nxp.mifare.xml +# OMX +TARGET_SUPPORTS_OMX_SERVICE := false + # Overlays DEVICE_PACKAGE_OVERLAYS += \ $(LOCAL_PATH)/overlay \ @@ -321,6 +331,12 @@ DEVICE_PACKAGE_OVERLAYS += \ PRODUCT_ENFORCE_RRO_TARGETS := * +PRODUCT_PACKAGES += \ + CarrierConfigOverlay \ + NfcOverlay \ + SettingsProviderOverlay \ + WifiOverlay + # Partitions PRODUCT_PACKAGES += \ vendor_bt_firmware_mountpoint \ @@ -352,13 +368,10 @@ PRODUCT_COPY_FILES += \ PRODUCT_PACKAGES += \ libvndfwk_detect_jni.qti.vendor # Needed by CNE app -# RIL -PRODUCT_PACKAGES += \ - CarrierConfigOverlay - # Sensors PRODUCT_PACKAGES += \ - android.hardware.sensors-service.xiaomi-multihal + android.hardware.sensors-service.xiaomi-multihal \ + sensors.xiaomi.v2 PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \ @@ -371,6 +384,9 @@ PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepcounter.xml \ frameworks/native/data/etc/android.hardware.sensor.stepdetector.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.stepdetector.xml +PRODUCT_COPY_FILES += \ + $(LOCAL_PATH)/sensors/hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/hals.conf + # Soong namespaces PRODUCT_SOONG_NAMESPACES += \ $(LOCAL_PATH) \ @@ -458,7 +474,6 @@ PRODUCT_PACKAGES += \ android.hardware.wifi-service \ hostapd \ libwifi-hal-qcom \ - WifiOverlay \ wpa_cli \ wpa_supplicant \ wpa_supplicant.conf @@ -466,7 +481,12 @@ PRODUCT_PACKAGES += \ PRODUCT_COPY_FILES += \ $(LOCAL_PATH)/wifi/wpa_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/wpa_supplicant_overlay.conf \ $(LOCAL_PATH)/wifi/p2p_supplicant_overlay.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/p2p_supplicant_overlay.conf \ - $(LOCAL_PATH)/wifi/WCNSS_qcom_cfg.ini:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_qcom_cfg.ini + $(LOCAL_PATH)/wifi/WCNSS_qcom_cfg.ini:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/WCNSS_qcom_cfg.ini \ + $(LOCAL_PATH)/wifi/WCNSS_qcom_cfg_qca6750.ini:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/qca6750/WCNSS_qcom_cfg.ini \ + $(LOCAL_PATH)/wifi/fstman.ini:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/fstman.ini \ + $(LOCAL_PATH)/wifi/icm.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/icm.conf \ + $(LOCAL_PATH)/wifi/passpointProfile.conf:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/passpointProfile.conf \ + $(LOCAL_PATH)/wifi/vendor_cmd.xml:$(TARGET_COPY_OUT_VENDOR)/etc/wifi/vendor_cmd.xml PRODUCT_COPY_FILES += \ frameworks/native/data/etc/android.hardware.wifi.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.wifi.xml \ @@ -477,4 +497,5 @@ PRODUCT_COPY_FILES += \ # WiFi firmware symlinks PRODUCT_PACKAGES += \ - firmware_WCNSS_qcom_cfg.ini_symlink + firmware_WCNSS_qcom_cfg.ini_symlink \ + firmware_WCNSS_qcom_cfg_qca6750.ini_symlink diff --git a/extract-files.py b/extract-files.py index 92ec96f..4c13ba7 100755 --- a/extract-files.py +++ b/extract-files.py @@ -18,7 +18,7 @@ from extract_utils.main import ( ) namespace_imports = [ - 'device/xiaomi/sm8350-common', + 'device/xiaomi/taoyao', 'hardware/qcom-caf/sm8350', 'hardware/qcom-caf/wlan', 'hardware/xiaomi', @@ -45,6 +45,7 @@ lib_fixups: lib_fixups_user_type = { 'vendor.xiaomi.hardware.misys@2.0', 'vendor.xiaomi.hardware.misys@3.0', 'vendor.xiaomi.hardware.misys@4.0', + 'vendor.xiaomi.hardware.campostproc@1.0', ): lib_fixup_vendor_suffix, } @@ -68,14 +69,30 @@ blob_fixups: blob_fixups_user_type = { .add_needed('libcrypto_shim.so'), 'vendor/lib64/android.hardware.secure_element@1.0-impl.so': blob_fixup() .remove_needed('android.hidl.base@1.0.so'), + ('vendor/etc/camera/pureShot_parameter.xml', 'vendor/etc/camera/pureView_parameter.xml'): blob_fixup() + .regex_replace(r'=(\d+)>', r'="\1">'), + 'vendor/lib64/hw/camera.qcom.so': blob_fixup() + .binary_regex_replace(b'\x73\x74\x5F\x6C\x69\x63\x65\x6E\x73\x65\x2E\x6C\x69\x63', b'\x63\x61\x6D\x65\x72\x61\x5F\x63\x6E\x66\x2E\x74\x78\x74') + .replace_needed('libmegface.so', 'libmegface_xiaomi.so') + .add_needed('libprocessgroup_shim.so'), + 'vendor/lib64/libMegviiFacepp-0.5.2.so': blob_fixup() + .replace_needed('libmegface.so', 'libmegface_xiaomi.so'), + 'vendor/lib64/hw/camera.xiaomi.so': blob_fixup() + .sig_replace('29 07 00 94', '1F 20 03 D5'), + 'vendor/lib64/hw/com.qti.chi.override.so': blob_fixup() + .add_needed('libprocessgroup_shim.so') + .binary_regex_replace(b'system/lib64/libion.so', b'vendor/lib64/libion.so'), + 'vendor/etc/camera/taoyao_motiontuning.xml': blob_fixup() + .regex_replace('xml=version', 'xml version'), } # fmt: skip module = ExtractUtilsModule( - 'sm8350-common', + 'taoyao', 'xiaomi', blob_fixups=blob_fixups, lib_fixups=lib_fixups, namespace_imports=namespace_imports, + add_firmware_proprietary_file=True, ) if __name__ == '__main__': diff --git a/hidl/manifest_taoyao.xml b/hidl/manifest_taoyao.xml new file mode 100644 index 0000000..2b493be --- /dev/null +++ b/hidl/manifest_taoyao.xml @@ -0,0 +1,12 @@ + + + vendor.qti.hardware.sensorscalibrate + hwbinder + 1.0 + + ISensorsCalibrate + default + + @1.0::ISensorsCalibrate/default + + diff --git a/hidl/xiaomi_framework_compatibility_matrix.xml b/hidl/xiaomi_framework_compatibility_matrix.xml index d1f71bc..f48bae5 100644 --- a/hidl/xiaomi_framework_compatibility_matrix.xml +++ b/hidl/xiaomi_framework_compatibility_matrix.xml @@ -11,4 +11,21 @@ default + + vendor.xiaomi.hardware.citsensorservice + hwbinder + 1.1 + + ICitSensorService + default + + + + vendor.xiaomi.hardware.dtool + 1.0 + + IDtool + default + + diff --git a/lineage_taoyao.mk b/lineage_taoyao.mk new file mode 100644 index 0000000..803c14d --- /dev/null +++ b/lineage_taoyao.mk @@ -0,0 +1,24 @@ +# +# Copyright (C) 2023 The LineageOS Project +# +# SPDX-License-Identifier: Apache-2.0 +# + +# Inherit from taoyao device +$(call inherit-product, device/xiaomi/taoyao/device.mk) + +# Inherit from common PixelOS configuration +$(call inherit-product, vendor/lineage/config/common_full_phone.mk) + +TARGET_BOOT_ANIMATION_RES := 1080 +TARGET_HAS_UDFPS := true +TARGET_INCLUDE_ACCORD := false + +# Device identifier. This must come after all inclusions. +PRODUCT_NAME := lineage_taoyao +PRODUCT_DEVICE := taoyao +PRODUCT_MANUFACTURER := Xiaomi +PRODUCT_BRAND := Xiaomi +PRODUCT_MODEL := 2203129G + +PRODUCT_GMS_CLIENTID_BASE := android-xiaomi diff --git a/odm.prop b/odm.prop index 585fab2..a56a86a 100644 --- a/odm.prop +++ b/odm.prop @@ -1,2 +1,5 @@ +# Bluetooth +bluetooth.device.default_name=Xiaomi 12 Lite + # Qcom ro.vendor.qti.va_odm.support=1 diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index 8718807..9059f79 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -236,6 +236,7 @@ May be less than the minimum allowed brightness setting that can be set by the user. --> 17 + -2.0 true @@ -317,4 +318,397 @@ true + + + true + + + + 2 + 5 + 10 + 30 + 100 + 400 + 600 + 1000 + + + + + 800 + 800 + 500 + 500 + 500 + 500 + 500 + 500 + + + + + 2 + 10 + 30 + 100 + 800 + 2000 + 4000 + + + + + 3.5 + 4.3 + 5.0 + 17.0 + 24.0 + 31.0 + 34.0 + 46.0 + 59.0 + 76.0 + 81.0 + 82.0 + 82.0 + 82.0 + 83.0 + 83.0 + 83.0 + 84.0 + 84.0 + 85.0 + 85.0 + 85.0 + 85.0 + 86.0 + 86.0 + 87.0 + 89.0 + 90.0 + 91.0 + 93.0 + 94.0 + 96.0 + 97.0 + 99.0 + 100.0 + 101.0 + 104.0 + 105.0 + 106.0 + 108.0 + 109.0 + 111.0 + 112.0 + 114.0 + 116.0 + 137.0 + 157.0 + 180.0 + 205.0 + 226.0 + 257.0 + 280.0 + 295.0 + 369.0 + 400.0 + 416.7 + 433.3 + 450.0 + 466.7 + 483.3 + 500.0 + 512.5 + 525.0 + 537.5 + 550.0 + 562.5 + 575.0 + 587.5 + 600.0 + 610.0 + 620.0 + 630.0 + 640.0 + 650.0 + 660.0 + 670.0 + 680.0 + 690.0 + 700.0 + 705.0 + 710.0 + 715.0 + 720.0 + 725.0 + 730.0 + 735.0 + 740.0 + 745.0 + 750.0 + 755.0 + 760.0 + 765.0 + 770.0 + 775.0 + 800.0 + 816.7 + 833.3 + 850.0 + 866.7 + 883.3 + 900.0 + 914.3 + 928.6 + 942.9 + 957.1 + 971.4 + 985.7 + 1000.0 + + + + + 1 + 2 + 5 + 9 + 13 + 17 + 21 + 26 + 30 + 40 + 83 + 104 + 200 + 400 + 500 + 600 + 700 + 800 + 1000 + 1200 + 1500 + 1800 + 2000 + 2165 + 2680 + 3000 + 3540 + 4000 + + + + + 0 + + + + + 0 + + + + + 4 + 4 + 4 + 8 + 15 + 20 + 26 + 35 + 45 + 46 + 46 + 46 + 60 + 60 + 60 + 64 + 66 + 70 + 73 + 80 + 88 + 110 + 130 + 135 + 145 + 180 + 200 + 240 + 255 + + + + 2000 + 2000 + 1000 + 1000 + 500 + 500 + 500 + 500 + + + + 800 + 800 + 800 + 800 + 800 + 500 + 500 + 500 + + + + 2 + 10 + 30 + 100 + 800 + 2000 + 4000 + + + + 1000 + 1000 + + + 180 + + + 60 + + + 300.0% + + + 1 + -2.0 + + + + M -60,0 L -60,120 L 60,120 L 60,0 Z + + + + false + + + 90 + + + 580 + + true + + + 67 + + + 1 + + + 6 + + + 3700 + + + 28 + + + 36 diff --git a/overlay/frameworks/base/core/res/res/values/dimens.xml b/overlay/frameworks/base/core/res/res/values/dimens.xml new file mode 100644 index 0000000..ad5ee2e --- /dev/null +++ b/overlay/frameworks/base/core/res/res/values/dimens.xml @@ -0,0 +1,11 @@ + + + + + 44dp + diff --git a/overlay/frameworks/base/core/res/res/xml/power_profile.xml b/overlay/frameworks/base/core/res/res/xml/power_profile.xml new file mode 100644 index 0000000..9f27f3e --- /dev/null +++ b/overlay/frameworks/base/core/res/res/xml/power_profile.xml @@ -0,0 +1,69 @@ + + + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + 0.1 + + 0.2 + 0.1 + + + 0.1 + + + 1 + + + 400000 + + + 0.1 + + 0.1 + + 22.7 + + 1000 + 0 + 0 + 0 + + 0 + + .0002 + .002 + .02 + .2 + 2 + + + 0 + 0 + + 0 + 0 + 0 + 0 + 0 + 0 + + + 0 + + 0 + 0 + + 0 + diff --git a/overlay/frameworks/base/packages/SystemUI/res/values-sw372dp/dimens.xml b/overlay/frameworks/base/packages/SystemUI/res/values-sw372dp/dimens.xml deleted file mode 100644 index c59030c..0000000 --- a/overlay/frameworks/base/packages/SystemUI/res/values-sw372dp/dimens.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - 16dp - diff --git a/overlay/frameworks/base/packages/SystemUI/res/values/config.xml b/overlay/frameworks/base/packages/SystemUI/res/values/config.xml index 3c30aef..99f4efa 100644 --- a/overlay/frameworks/base/packages/SystemUI/res/values/config.xml +++ b/overlay/frameworks/base/packages/SystemUI/res/values/config.xml @@ -20,44 +20,6 @@ - - true - - - false - - - xiaomi.sensor.aod - - - - -1 - -1 - -1 - -1 - 24 - 4 - - - - - -1 - 0 - 0 - 0 - 0 - 0 - - - - 60 - 60 diff --git a/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml b/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml new file mode 100644 index 0000000..c9433f7 --- /dev/null +++ b/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml @@ -0,0 +1,18 @@ + + + + + 24dp + + + 0dp + + + 12dp + + + 63.2 + diff --git a/overlay/packages/apps/Settings/res/values/config.xml b/overlay/packages/apps/Settings/res/values/config.xml index e09fc68..7bd45f4 100644 --- a/overlay/packages/apps/Settings/res/values/config.xml +++ b/overlay/packages/apps/Settings/res/values/config.xml @@ -57,4 +57,10 @@ false + + + true + + + 71 diff --git a/proprietary-files.txt b/proprietary-files.txt index ab5b3c8..c108031 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -1,17 +1,147 @@ # All unpinned blobs below are extracted from haydn V816.0.11.0.UKKMIXM +# ACDB +vendor/etc/acdbdata/Forte/Forte_Bluetooth_cal.acdb +vendor/etc/acdbdata/Forte/Forte_General_cal.acdb +vendor/etc/acdbdata/Forte/Forte_Global_cal.acdb +vendor/etc/acdbdata/Forte/Forte_Handset_cal.acdb +vendor/etc/acdbdata/Forte/Forte_Hdmi_cal.acdb +vendor/etc/acdbdata/Forte/Forte_Headset_cal.acdb +vendor/etc/acdbdata/Forte/Forte_Speaker_cal.acdb +vendor/etc/acdbdata/Forte/Forte_workspaceFile.qwsp +vendor/etc/acdbdata/QRD/lahaina-yupikqrd-snd-card/QRD_Yupik_Bluetooth_cal.acdb:vendor/etc/acdbdata/QRD/QRD_Yupik_Bluetooth_cal.acdb +vendor/etc/acdbdata/QRD/lahaina-yupikqrd-snd-card/QRD_Yupik_General_cal.acdb:vendor/etc/acdbdata/QRD/QRD_Yupik_General_cal.acdb +vendor/etc/acdbdata/QRD/lahaina-yupikqrd-snd-card/QRD_Yupik_Global_cal.acdb:vendor/etc/acdbdata/QRD/QRD_Yupik_Global_cal.acdb +vendor/etc/acdbdata/QRD/lahaina-yupikqrd-snd-card/QRD_Yupik_Handset_cal.acdb:vendor/etc/acdbdata/QRD/QRD_Yupik_Handset_cal.acdb +vendor/etc/acdbdata/QRD/lahaina-yupikqrd-snd-card/QRD_Yupik_Hdmi_cal.acdb:vendor/etc/acdbdata/QRD/QRD_Yupik_Hdmi_cal.acdb +vendor/etc/acdbdata/QRD/lahaina-yupikqrd-snd-card/QRD_Yupik_Headset_cal.acdb:vendor/etc/acdbdata/QRD/QRD_Yupik_Headset_cal.acdb +vendor/etc/acdbdata/QRD/lahaina-yupikqrd-snd-card/QRD_Yupik_Speaker_cal.acdb:vendor/etc/acdbdata/QRD/QRD_Yupik_Speaker_cal.acdb +vendor/etc/acdbdata/QRD/lahaina-yupikqrd-snd-card/QRD_Yupik_workspaceFile.qwsp:vendor/etc/acdbdata/QRD/QRD_Yupik_workspaceFile.qwsp +vendor/etc/acdbdata/IDP/lahaina-yupikidp-snd-card/IDP_Yupik_Bluetooth_cal.acdb +vendor/etc/acdbdata/IDP/lahaina-yupikidp-snd-card/IDP_Yupik_General_cal.acdb +vendor/etc/acdbdata/IDP/lahaina-yupikidp-snd-card/IDP_Yupik_Global_cal.acdb +vendor/etc/acdbdata/IDP/lahaina-yupikidp-snd-card/IDP_Yupik_Handset_cal.acdb +vendor/etc/acdbdata/IDP/lahaina-yupikidp-snd-card/IDP_Yupik_Hdmi_cal.acdb +vendor/etc/acdbdata/IDP/lahaina-yupikidp-snd-card/IDP_Yupik_Headset_cal.acdb +vendor/etc/acdbdata/IDP/lahaina-yupikidp-snd-card/IDP_Yupik_Speaker_cal.acdb +vendor/etc/acdbdata/IDP/lahaina-yupikidp-snd-card/IDP_Yupik_workspaceFile.qwsp +vendor/etc/acdbdata/nn_ns_models/fai__2.0.0_0.1__3.0.0_0.0__eai_1.00.pmd +vendor/etc/acdbdata/nn_ns_models/fai__2.0.0_0.1__3.0.0_0.0__eai_1.10.pmd +vendor/etc/acdbdata/nn_ns_models/fai__2.3.0_0.1__3.0.0_0.0__eai_1.00.pmd +vendor/etc/acdbdata/nn_ns_models/fai__2.3.0_0.1__3.0.0_0.0__eai_1.10.pmd +vendor/etc/acdbdata/nn_vad_models/fai_3.0.0_0.0_eai_1.00.pmd +vendor/etc/acdbdata/nn_vad_models/fai__3.0.0_0.0__eai_1.10.pmd +vendor/etc/acdbdata/adsp_avs_config.acdb + +# ACDB libraries +vendor/lib/libacdb-fts.so +vendor/lib/libacdbloader.so +vendor/lib/libacdbrtac.so +vendor/lib/libadiertac.so +vendor/lib/libaudcal.so + # ADSP vendor/bin/adsprpcd vendor/etc/init/vendor.qti.adsprpc-guestos-service.rc vendor/lib64/libadsp_default_listener.so vendor/lib64/libadsprpc.so +# ADSP modules +vendor/lib/rfsa/adsp/bm2n06.bin +vendor/lib/rfsa/adsp/bm2n08.bin +vendor/lib/rfsa/adsp/bm2n13.bin +vendor/lib/rfsa/adsp/bm2n14.bin +vendor/lib/rfsa/adsp/bm2n15.bin +vendor/lib/rfsa/adsp/capi_v2_aptX_CLHDADV_Encoder.so +vendor/lib/rfsa/adsp/capi_v2_aptX_CLHDAD_Speech_Decoder.so +vendor/lib/rfsa/adsp/capi_v2_dap_cpdp.so +vendor/lib/rfsa/adsp/hrtf5c.bin +vendor/lib/rfsa/adsp/libMIAIHDR_skel.so +vendor/lib/rfsa/adsp/libQ6MSFR_manager_skel.so +vendor/lib/rfsa/adsp/libQnnHtpAltPrepSkel.so +vendor/lib/rfsa/adsp/libQnnHtpSkel.so +vendor/lib/rfsa/adsp/libVppAisQnnHtp.so +vendor/lib/rfsa/adsp/libVppQnnHtp.so +vendor/lib/rfsa/adsp/libadsp_jpege_skel.so +vendor/lib/rfsa/adsp/libapps_mem_heap.so +vendor/lib/rfsa/adsp/libarcsoft_hdrplus_hvx_skel.so +vendor/lib/rfsa/adsp/libbitml_nsp_skel.so +vendor/lib/rfsa/adsp/libbitml_nsp_v2_skel.so +vendor/lib/rfsa/adsp/libcamera_nn_skel.so +vendor/lib/rfsa/adsp/libcvpdsp_2_1.so +vendor/lib/rfsa/adsp/libdspCV_skel.so +vendor/lib/rfsa/adsp/libdsp_streamer_binning.so +vendor/lib/rfsa/adsp/libfastcvadsp.so +vendor/lib/rfsa/adsp/libfastcvdsp_skel.so +vendor/lib/rfsa/adsp/libhdr_cdsp_skel.so +vendor/lib/rfsa/adsp/libhdr_skel.so +vendor/lib/rfsa/adsp/libmctfengine_skel.so +vendor/lib/rfsa/adsp/libmialgo_basic_cdsp_skel.so +vendor/lib/rfsa/adsp/libmialgo_mc_bokeh_cdsp_skel.so +vendor/lib/rfsa/adsp/libmialgo_mfnr_cdsp_skel.so +vendor/lib/rfsa/adsp/libmialgo_pureview_cdsp_skel.so +vendor/lib/rfsa/adsp/libmialgo_rfs_cdsp_skel.so +vendor/lib/rfsa/adsp/libmialgo_sfnr_cdsp_skel.so +vendor/lib/rfsa/adsp/libscveObjectSegmentation_skel.so +vendor/lib/rfsa/adsp/libscveT2T_skel.so +vendor/lib/rfsa/adsp/libsnpe_dsp_v65_domains_v2_skel.so +vendor/lib/rfsa/adsp/libsnpe_dsp_v66_domains_v2_skel.so +vendor/lib/rfsa/adsp/libsnpe_dsp_v68_domains_v3_skel.so +vendor/lib/rfsa/adsp/libsns_device_mode_skel.so +vendor/lib/rfsa/adsp/libsns_low_lat_stream_skel.so +vendor/lib/rfsa/adsp/libsuper_res_networks.so +vendor/lib/rfsa/adsp/libvpp_ais_networks.so +vendor/lib/rfsa/adsp/libvpt_action_recognition.so +vendor/lib/rfsa/adsp/misound_karaoke_res.bin +vendor/lib/rfsa/adsp/misound_karaokemix_res.bin +vendor/lib/rfsa/adsp/misound_res_headphone.bin +vendor/lib/rfsa/adsp/misound_res_spk.bin + +# Audio configs +vendor/etc/audio_policy_engine_configuration.xml +vendor/etc/audio_policy_engine_stream_volumes.xml +vendor/etc/audio_policy_engine_default_stream_volumes.xml +vendor/etc/audio_policy_engine_product_strategies.xml +vendor/etc/audio/sku_yupik/audio_platform_info_yupikidp.xml +vendor/etc/audio/sku_yupik/audio_platform_info_intcodec.xml +vendor/etc/audio/sku_yupik/mixer_paths_yupikidp.xml +vendor/etc/audio/sku_yupik/mixer_paths_overlay_dynamic.xml +vendor/etc/audio/sku_yupik/mixer_paths_overlay_static.xml +vendor/etc/audio/sku_yupik/sound_trigger_mixer_paths_yupikidp.xml +vendor/etc/audio/sku_yupik/sound_trigger_platform_info.xml + +# Audio firmware +vendor/firmware/tfa98xx.cnt + # Audio FX modules system_ext/etc/permissions/audiosphere.xml system_ext/framework/audiosphere.jar vendor/lib/soundfx/libasphere.so vendor/lib/soundfx/libshoebox.so +# Audio Hardware +vendor/lib/hw/audio.primary.lahaina.so +vendor/lib/liba2dpoffload.so +vendor/lib/libadm.so +vendor/lib/libaudio_log_utils.so +vendor/lib/libaudiocloudctrl.so +vendor/lib/libaudioparsers.so +vendor/lib/libaudioroute_ext.so +vendor/lib/libbatterylistener.so +vendor/lib/libhdmiedid.so +vendor/lib/libhdmipassthru.so +vendor/lib/libhfp.so +vendor/lib/libresampler.so +vendor/lib/libsndmonitor.so +vendor/lib/libssrec.so +vendor/lib/libspkrprot.so +vendor/lib/libvideoNS.so;DISABLE_CHECKELF +vendor/lib/vndk/libxlog.so +vendor/lib/libcomprcapture.so +vendor/lib/libqtigef.so +vendor/lib64/libaudio_log_utils.so +vendor/lib64/libqtigef.so + # Bluetooth vendor/bin/hw/android.hardware.bluetooth@1.0-service-qti vendor/etc/init/android.hardware.bluetooth@1.0-service-qti.rc @@ -37,6 +167,454 @@ vendor/lib64/libcacertclient.so vendor/lib64/libjnihelper.so vendor/lib64/vendor.qti.hardware.cacert@1.0.so +# Camera +vendor/bin/loadalgo +vendor/lib/libcamxexternalformatutils.so +vendor/lib64/hw/camera.qcom.so +vendor/lib64/hw/camera.xiaomi.so +vendor/lib64/hw/com.qti.chi.override.so +vendor/lib64/libAF.so +vendor/lib64/libFace3DTA.so +vendor/lib64/libFlickerDet.so +vendor/lib64/libSNPE.so +vendor/lib64/libTrueSight.so;DISABLE_CHECKELF +vendor/lib64/libaidenoiser.so +vendor/lib64/libaidenoiserv2.so +vendor/lib64/libalCFR.so +vendor/lib64/libanc_dc_base.so +vendor/lib64/libanc_hdr.so +vendor/lib64/libancbase.so +vendor/lib64/libarc_sat.so +vendor/lib64/libarc_translate.so +vendor/lib64/libarccali_data.so +vendor/lib64/libarcsoft_hdrplus_hvx_stub.so;DISABLE_CHECKELF +vendor/lib64/libarcsoft_mf_superresolution.so +vendor/lib64/libarcsoft_qnnhtp.so +vendor/lib64/libarcsoft_super_night_raw.so;DISABLE_CHECKELF +vendor/lib64/libbitmlengine.so +vendor/lib64/libbitmlenginev2.so +vendor/lib64/libc++_shared.so +vendor/lib64/libcamera_dirty.so +vendor/lib64/libcamera_nn_stub.so +vendor/lib64/libcamera_scene.so +vendor/lib64/libcamera_scene_dxo.so +vendor/lib64/libcamerapostproc.so +vendor/lib64/libcamxexternalformatutils.so +vendor/lib64/libcamxfacialfeatures.so +vendor/lib64/libcamxfdalgo.so +vendor/lib64/libcamxfdengine.so +vendor/lib64/libcamxifestriping.so +vendor/lib64/libcamximageformatutils.so +vendor/lib64/libcamxqsatalgo.so +vendor/lib64/libcamxstatscore.so +vendor/lib64/libcamxswispiqmodule.so +vendor/lib64/libcamxswprocessalgo.so +vendor/lib64/libcamxtintlessalgo.so +vendor/lib64/libceres.so +vendor/lib64/libchilog.so +vendor/lib64/libcom.qti.chinodeutils.so +vendor/lib64/libcom.xiaomi.debug.so +vendor/lib64/libcom.xiaomi.grallocutils.so +vendor/lib64/libcom.xiaomi.metadatautils.so +vendor/lib64/libcom.xiaomi.pluginutils.so +vendor/lib64/libcvface_api.so +vendor/lib64/libdeflicker.so +vendor/lib64/libdualcam_optical_zoom_control.so +vendor/lib64/libdualcam_video_optical_zoom.so +vendor/lib64/libfocus.so +vendor/lib64/libhexagon_controller.so +vendor/lib64/libhta.so +vendor/lib64/libipebpsstriping.so +vendor/lib64/libipebpsstriping170.so +vendor/lib64/libjpege.so +vendor/lib64/libmctfengine_stub.so +vendor/lib64/libmiStereoFactoryRemapBasicLib.so +vendor/lib64/libmiai_portraitsupernight.so +vendor/lib64/libmialgo_ai_vision.so +vendor/lib64/libmialgo_basic.so +vendor/lib64/libmialgo_det_seg.so +vendor/lib64/libmialgo_ie_capture.so +vendor/lib64/libmialgo_image_colourkeeping.so +vendor/lib64/libmialgo_pureShot.so;DISABLE_CHECKELF +vendor/lib64/libmialgo_pureView.so +vendor/lib64/libmialgo_rfs.so +vendor/lib64/libmialgo_sd.so +vendor/lib64/libmialgo_utils.so +vendor/lib64/libmialgo_video_colourkeeping.so +vendor/lib64/libmialgo_video_seg.so +vendor/lib64/libmialgoengine.so +vendor/lib64/libmibokeh_855.so +vendor/lib64/libmibokeh_mask.so +vendor/lib64/libmibokeh_mask_dsp.so +vendor/lib64/libmiphone_capture_bokeh.so +vendor/lib64/libmiphone_preview_bokeh.so +vendor/lib64/libmmcamera_bestats.so +vendor/lib64/libmmcamera_cac3.so +vendor/lib64/libmmcamera_faceproc2.so +vendor/lib64/libmmcamera_lscv35.so +vendor/lib64/libmmcamera_mfnr.so +vendor/lib64/libmmcamera_mfnr_t4.so +vendor/lib64/libmmcamera_pdpc.so +vendor/lib64/libmpbase.so +vendor/lib64/libminziparchive.so +vendor/lib64/libmmhardware.so +vendor/lib64/libofflinedump.so +vendor/lib64/libofflinelog.so +vendor/lib64/libomp.so +vendor/lib64/libopencv.so +vendor/lib64/libopenvx.so +vendor/lib64/libopestriping.so +vendor/lib64/libos.so +vendor/lib64/libportrait_blur.so +vendor/lib64/libpreview_beautyeffect.so +vendor/lib64/libqll10.so +vendor/lib64/libpowercore.so +vendor/lib64/libqllengine.so;DISABLE_CHECKELF +vendor/lib64/librelight_only.so +vendor/lib64/libremosaic_wrapper.so +vendor/lib64/libremosaiclib.so +vendor/lib64/libshadingcalibrate.so +vendor/lib64/libsnpe_dsp_domains_v2.so +vendor/lib64/libsnpe_dsp_domains_v3.so +vendor/lib64/libswregistrationalgo.so +vendor/lib64/libsynx.so +vendor/lib64/libtfestriping.so +vendor/lib64/libthreadutils.so +vendor/lib64/libtriplecam_video_optical_zoom.so +vendor/lib64/libvideoBokeh.so +vendor/lib64/libvideofilter_only.so +vendor/lib64/libvideooptfeature.so +vendor/lib64/libvidhance.so +vendor/lib64/libvidhance_active_ois.so +vendor/lib64/libvidhance_dmbr.so +vendor/lib64/libvidhance_face_stabilizer.so +vendor/lib64/libvidhance_horizon_correction.so +vendor/lib64/libvidhance_ldc.so +vendor/lib64/libvidhance_stabilizer.so +vendor/lib64/libvidhance_super_stabilization.so +vendor/lib64/libcert_parse.wpa_s.so +vendor/lib64/libwapi_cert.so +vendor/lib64/libwa_depth.so +vendor/lib64/libwa_opticalzoomfactor.so|328f61fe60672b15a73b83f79f63cbdc172c07b3 +vendor/lib64/libwa_refocus.so +vendor/lib64/libwa_widelens_undistort.so +vendor/lib64/libxmi_hdr_bokeh.so +vendor/lib64/libxmi_hdr_checker.so +vendor/lib64/libxmi_high_dynamic_range.so +vendor/lib64/libxmi_high_dynamic_range_cdsp.so +vendor/lib64/vendor.qti.hardware.camera.postproc@1.0-service-impl.so +vendor/lib64/vendor.xiaomi.hardware.campostproc@1.0-service-impl.so +vendor/lib64/vendor.xiaomi.hardware.campostproc@1.0.so;MODULE_SUFFIX=_vendor + +# Camera components +vendor/lib64/camera/components/com.mi.node.aiasd.so +vendor/lib64/camera/components/com.mi.node.beautyLens.so +vendor/lib64/camera/components/com.mi.node.facealign.so +vendor/lib64/camera/components/com.mi.node.hdr.so +vendor/lib64/camera/components/com.mi.node.mimovie.so +vendor/lib64/camera/components/com.mi.node.mipitounpacketraw.so +vendor/lib64/camera/components/com.mi.node.pureShot.so +vendor/lib64/camera/components/com.mi.node.realtimebokeh.so +vendor/lib64/camera/components/com.mi.node.rearvideo.so +vendor/lib64/camera/components/com.mi.node.skinbeautifier.so +vendor/lib64/camera/components/com.mi.node.superiq.so +vendor/lib64/camera/components/com.mi.node.superlowlightraw.so +vendor/lib64/camera/components/com.qti.camx.chiiqutils.so +vendor/lib64/camera/components/com.qti.eisv2.so +vendor/lib64/camera/components/com.qti.eisv3.so +vendor/lib64/camera/components/com.qti.hvx.addconstant.so +vendor/lib64/camera/components/com.qti.hvx.binning.so +vendor/lib64/camera/components/com.qti.node.customhwnode.so +vendor/lib64/camera/components/com.qti.node.depth.so +vendor/lib64/camera/components/com.qti.node.dewarp.so +vendor/lib64/camera/components/com.qti.node.dummyrtb.so +vendor/lib64/camera/components/com.qti.node.dummysat.so +vendor/lib64/camera/components/com.qti.node.eisv2.so +vendor/lib64/camera/components/com.qti.node.eisv3.so +vendor/lib64/camera/components/com.qti.node.fcv.so +vendor/lib64/camera/components/com.qti.node.formatconversion.so +vendor/lib64/camera/components/com.qti.node.gpu.so +vendor/lib64/camera/components/com.qti.node.ldc.so +vendor/lib64/camera/components/com.qti.node.memcpy.so +vendor/lib64/camera/components/com.qti.node.ml.so +vendor/lib64/camera/components/com.qti.node.remosaic.so +vendor/lib64/camera/components/com.qti.node.stich.so +vendor/lib64/camera/components/com.qti.node.swaidenoiser.so +vendor/lib64/camera/components/com.qti.node.swbestats.so +vendor/lib64/camera/components/com.qti.node.swcac.so +vendor/lib64/camera/components/com.qti.node.swlsc.so +vendor/lib64/camera/components/com.qti.node.swmctf.so +vendor/lib64/camera/components/com.qti.node.swmfnr.so +vendor/lib64/camera/components/com.qti.node.swpdpc.so +vendor/lib64/camera/components/com.qti.node.swpreprocess.so +vendor/lib64/camera/components/com.qti.node.swregistration.so +vendor/lib64/camera/components/com.qti.stats.aec.so +vendor/lib64/camera/components/com.qti.stats.aecwrapper.so +vendor/lib64/camera/components/com.qti.stats.aecxcore.so +vendor/lib64/camera/components/com.qti.stats.af.so +vendor/lib64/camera/components/com.qti.stats.afd.so +vendor/lib64/camera/components/com.qti.stats.afwrapper.so +vendor/lib64/camera/components/com.qti.stats.asd.so +vendor/lib64/camera/components/com.qti.stats.awb.so +vendor/lib64/camera/components/com.qti.stats.awbwrapper.so +vendor/lib64/camera/components/com.qti.stats.cnndriver.so +vendor/lib64/camera/components/com.qti.stats.haf.so +vendor/lib64/camera/components/com.qti.stats.hafoverride.so +vendor/lib64/camera/components/com.qti.stats.pdlib.so +vendor/lib64/camera/components/com.qti.stats.pdlibsony.so +vendor/lib64/camera/components/com.qti.stats.pdlibwrapper.so +vendor/lib64/camera/components/com.qti.stats.tracker.so +vendor/lib64/camera/components/com.qtistatic.stats.aec.so +vendor/lib64/camera/components/com.qtistatic.stats.af.so +vendor/lib64/camera/components/com.qtistatic.stats.awb.so +vendor/lib64/camera/components/com.qtistatic.stats.pdlib.so +vendor/lib64/camera/components/com.xiaomi.node.ica.so +vendor/lib64/camera/components/com.xiaomi.node.mibokeh.so +vendor/lib64/camera/components/com.xiaomi.node.mifilter.so +vendor/lib64/camera/components/com.xiaomi.node.misegment.so +vendor/lib64/camera/components/com.xiaomi.node.smooth_transition.so +vendor/lib64/camera/components/com.xiaomi.node.tracker.so +vendor/lib64/camera/components/libdepthmapwrapper_secure.so + +# Camera configs +vendor/etc/camera/beautyLens/dualcam_beauty_effect_pre_config.json +vendor/etc/camera/mibokeh/add_concat_quantize_encry.dlc +vendor/etc/camera/mibokeh/model_dxo.dlc +vendor/etc/camera/mibokeh/portrait_blur_800_quan_encry-softmax.dlc +vendor/etc/camera/model/dof_model/capture_cache +vendor/etc/camera/model/dof_model/capture_model +vendor/etc/camera/model/dof_model/capture_policy +vendor/etc/camera/model/rt_model/preview_cache +vendor/etc/camera/model/rt_model/preview_model +vendor/etc/camera/model/rt_model/preview_policy +vendor/etc/camera/resources/truesight_param.json +vendor/etc/camera/xiaomi/dualbokehjpegsnapshot.json +vendor/etc/camera/xiaomi/dualbokehsnapshot.json +vendor/etc/camera/xiaomi/frontbokehsnapshot.json +vendor/etc/camera/xiaomi/frontsinglesnapshot.json +vendor/etc/camera/xiaomi/frontsupernightsnapshot.json +vendor/etc/camera/xiaomi/frontsupernightsnapshotjpeg.json +vendor/etc/camera/xiaomi/manualsnapshot.json +vendor/etc/camera/xiaomi/miviinfo.json +vendor/etc/camera/xiaomi/mivisettings.txt +vendor/etc/camera/xiaomi/normalsnapshot.json +vendor/etc/camera/xiaomi/rearsupernightsnapshot.json +vendor/etc/camera/xiaomi/satsnapshot.json +vendor/etc/camera/xiaomi/superhdsnapshot.json +vendor/etc/camera/xiaomi/thirdpartydualbokehyuvsnapshot.json +vendor/etc/camera/xiaomi/thirdpartyjpegsnapshot.json +vendor/etc/camera/xiaomi/thirdpartysnapshot.json +vendor/etc/camera/CFR_para_MACRO_V01.bin +vendor/etc/camera/CFR_para_MACRO_V01_L.bin +vendor/etc/camera/CFR_para_MACRO_V01_SN.bin +vendor/etc/camera/CFR_para_MACRO_V01_SN_L.bin +vendor/etc/camera/CFR_para_UW_V01.bin +vendor/etc/camera/CFR_para_UW_V01_L.bin +vendor/etc/camera/CFR_para_UW_V01_SN.bin +vendor/etc/camera/CFR_para_UW_V01_SN_L.bin +vendor/etc/camera/CFR_para_W_V01.bin +vendor/etc/camera/CFR_para_W_V01_HD.bin +vendor/etc/camera/CFR_para_W_V01_HD_L.bin +vendor/etc/camera/CFR_para_W_V01_IZOOM.bin +vendor/etc/camera/CFR_para_W_V01_IZOOM_L.bin +vendor/etc/camera/CFR_para_W_V01_L.bin +vendor/etc/camera/CFR_para_W_V01_SN.bin +vendor/etc/camera/CFR_para_W_V01_SN_L.bin +vendor/etc/camera/GpuKernelRepo.pb +vendor/etc/camera/aivsModels1 +vendor/etc/camera/aivsParams +vendor/etc/camera/arcsat_2sat.bin +vendor/etc/camera/arcsat_2sat_first.bin +vendor/etc/camera/arcsat_2sat_second.bin +vendor/etc/camera/bokehParams.json +vendor/etc/camera/cache +vendor/etc/camera/camxoverridesettings.txt +vendor/etc/camera/com.xiaomi.dcal.wu.fake +vendor/etc/camera/com.xiaomi.dcal.wu.golden +vendor/etc/camera/com.xiaomi_k9_mecp.bin +vendor/etc/camera/com.xiaomi_k9_mecp_for_nocali.bin +vendor/etc/camera/det_aio.dlc +vendor/etc/camera/det_parameters.json +vendor/etc/camera/det_quantize.dlc +vendor/etc/camera/dualcam_bokeh_params.json +vendor/etc/camera/eisoverridesettings.txt +vendor/etc/camera/fold_qianzhi_512_edutpu140_ar36912_depth128_dd48_2_128_inscale_q12qrqfct_rotate45_scale_distortcolor_quantaware_step205420_without_softmax_snpe-1.58.0_3160_soc-sm7325_qat.dlc +vendor/etc/camera/hdrcheckerextendparamsettings.yml +vendor/etc/camera/hdrcheckerparamsettings.yml +vendor/etc/camera/intsense_config_undistort.bin +vendor/etc/camera/m-v2light-aug_u2head_backbone_01246_160000_with_softmax_quant.dlc +vendor/etc/camera/mbv2_epoch_318_wo_norm_spd_with_softmax.dlc +vendor/etc/camera/mbv3tpu_big_1024_2x_postquant_snpe.dlc +vendor/etc/camera/miai_hdr_config.yaml +vendor/etc/camera/miai_psn_config.yaml +vendor/etc/camera/mibokeh_855_opencl.bin +vendor/etc/camera/mibokeh_855_parameter.bin +vendor/etc/camera/model1 +vendor/etc/camera/model2 +vendor/etc/camera/model3 +vendor/etc/camera/model4 +vendor/etc/camera/model_ai_dxo.dlc +vendor/etc/camera/model_back.dlc +vendor/etc/camera/model_ckpt_modify_dwbox_new_002651_qat8832_snpe-1.58.0_3160_soc-sm7325_qat.dlc +vendor/etc/camera/model_front.dlc +vendor/etc/camera/model_glass.dlc +vendor/etc/camera/para_ini_cal_w_u_0.bin +vendor/etc/camera/para_ini_verify_w_u_0.bin +vendor/etc/camera/person_det_dsp.dlc +vendor/etc/camera/person_reid_gpu.dlc +vendor/etc/camera/preview_bokeh_params.json +vendor/etc/camera/pureShot_parameter.xml +vendor/etc/camera/pureView_parameter.xml +vendor/etc/camera/reid_float.dlc +vendor/etc/camera/sceneDetection.xml +vendor/etc/camera/scene_seg_20210802_2cls_384input_271212_snpe-1.58.0_3160_soc-sm7325_qat.dlc +vendor/etc/camera/seg_aio.dlc +vendor/etc/camera/seg_parameters.json +vendor/etc/camera/seg_quantized.dlc +vendor/etc/camera/siq_ocl_cache +vendor/etc/camera/st_license.lic +vendor/etc/camera/superiq_model +vendor/etc/camera/taoyao_motiontuning.xml +vendor/etc/camera/vidhance_calibration +vendor/etc/camera/resources/default_param.json +vendor/etc/camera/resources/kernel/64/s31bc24e5f6c4ef1752c77f3a22ad1ffcs0cc175b9c0f1b6a831c399e269772661t92eb5ffee6ae2fec3ad71c777531578fn92eb5ffee6ae2fec3ad71c777531578fn.bin +vendor/etc/camera/resources/kernel/64/t31bc24e5f6c4ef1752c77f3a22ad1ffcs0cc175b9c0f1b6a831c399e269772661t92eb5ffee6ae2fec3ad71c777531578fn92eb5ffee6ae2fec3ad71c777531578fn.bin +vendor/etc/camera/resources/kernel/FaceRetouch64.bin +vendor/etc/camera/resources/model/2722133617 + +# Camera face detection +vendor/etc/camera/megviifacepp_0_5_2_model +vendor/lib64/libMegviiFacepp-0.5.2.so +vendor/lib64/libmegface.so:vendor/lib64/libmegface_xiaomi.so;FIX_SONAME + +# Camera features +vendor/lib64/com.qti.chiusecaseselector.so +vendor/lib64/com.qti.feature2.anchorsync.so +vendor/lib64/com.qti.feature2.demux.so +vendor/lib64/com.qti.feature2.derivedoffline.so +vendor/lib64/com.qti.feature2.frameselect.so +vendor/lib64/com.qti.feature2.fusion.so +vendor/lib64/com.qti.feature2.generic.so +vendor/lib64/com.qti.feature2.gs.kodiak.so +vendor/lib64/com.qti.feature2.gs.sm8350.so +vendor/lib64/com.qti.feature2.hdr.so +vendor/lib64/com.qti.feature2.mcreprocrt.so +vendor/lib64/com.qti.feature2.memcpy.so +vendor/lib64/com.qti.feature2.mfsr.so +vendor/lib64/com.qti.feature2.ml.so +vendor/lib64/com.qti.feature2.mux.so +vendor/lib64/com.qti.feature2.parallelVTCam.so +vendor/lib64/com.qti.feature2.pureShot.so +vendor/lib64/com.qti.feature2.pureShotPre.so +vendor/lib64/com.qti.feature2.qcfa.so +vendor/lib64/com.qti.feature2.qllimagedump.so +vendor/lib64/com.qti.feature2.rawhdr.so +vendor/lib64/com.qti.feature2.rawsuperiq.so +vendor/lib64/com.qti.feature2.rawsupernight.so +vendor/lib64/com.qti.feature2.realtimeserializer.so +vendor/lib64/com.qti.feature2.rt.so +vendor/lib64/com.qti.feature2.rtmcx.so +vendor/lib64/com.qti.feature2.serializer.so +vendor/lib64/com.qti.feature2.statsregeneration.so +vendor/lib64/com.qti.feature2.stub.so +vendor/lib64/com.qti.feature2.swmf.so +vendor/lib64/com.qti.stats.common.so +vendor/lib64/com.qualcomm.mcx.distortionmapper.so +vendor/lib64/com.qualcomm.mcx.linearmapper.so +vendor/lib64/com.qualcomm.mcx.policy.mfl.so +vendor/lib64/com.qualcomm.qti.mcx.usecase.extension.so + +# Camera firmware +vendor/firmware/CAMERA_ICP.elf +vendor/firmware/CAMERA_ICP_170.elf + +# Camera plugins +vendor/lib64/camera/plugins/com.qcom.plugin.gpu.so +vendor/lib64/camera/plugins/com.qcom.plugin.offlinepostproc.so +vendor/lib64/camera/plugins/com.xiaomi.plugin.capbokeh.so +vendor/lib64/camera/plugins/com.xiaomi.plugin.depurple.so +vendor/lib64/camera/plugins/com.xiaomi.plugin.hdr.so +vendor/lib64/camera/plugins/com.xiaomi.plugin.ldc.so +vendor/lib64/camera/plugins/com.xiaomi.plugin.memcpy.so +vendor/lib64/camera/plugins/com.xiaomi.plugin.miaiie.so +vendor/lib64/camera/plugins/com.xiaomi.plugin.mibokeh.so +vendor/lib64/camera/plugins/com.xiaomi.plugin.misegment.so +vendor/lib64/camera/plugins/com.xiaomi.plugin.pureview.so +vendor/lib64/camera/plugins/com.xiaomi.plugin.rearsupernight.so +vendor/lib64/camera/plugins/com.xiaomi.plugin.sigframe.so +vendor/lib64/camera/plugins/com.xiaomi.plugin.skinbeautifier.so +vendor/lib64/camera/plugins/com.xiaomi.plugin.sr.so +vendor/lib64/camera/plugins/com.xiaomi.plugin.supernight.so + +# Camera sensors +vendor/lib64/camera/com.qti.actuator.taoyao_ofilm_s5kgd2_dw9714v_front.so +vendor/lib64/camera/com.qti.actuator.taoyao_ofilm_s5khm2_dw9800_wide.so +vendor/lib64/camera/com.qti.actuator.taoyao_semco_s5khm2_dw9800_wide.so +vendor/lib64/camera/com.qti.actuator.taoyao_sunny_s5kgd2_dw9714v_front.so +vendor/lib64/camera/com.qti.eeprom.taoyao_aac_imx355_gt24p64e_ultra_eeprom.so +vendor/lib64/camera/com.qti.eeprom.taoyao_ofilm_imx355_gt24p64e_ultra_eeprom.so +vendor/lib64/camera/com.qti.eeprom.taoyao_ofilm_ov2680_gt24p64e_macro_eeprom.so +vendor/lib64/camera/com.qti.eeprom.taoyao_ofilm_s5kgd2_p24c64f_front_eeprom.so +vendor/lib64/camera/com.qti.eeprom.taoyao_ofilm_s5khm2_gt24p128e_wide_eeprom.so +vendor/lib64/camera/com.qti.eeprom.taoyao_semco_s5khm2_gt24p128ca2_wide_eeprom.so +vendor/lib64/camera/com.qti.eeprom.taoyao_sunny_gc02m1_gt24p64e_macro_eeprom.so +vendor/lib64/camera/com.qti.eeprom.taoyao_sunny_s5kgd2_p24c64f_front_eeprom.so +vendor/lib64/camera/com.qti.sensor.taoyao_aac_imx355_ultra.so +vendor/lib64/camera/com.qti.sensor.taoyao_ofilm_imx355_ultra.so +vendor/lib64/camera/com.qti.sensor.taoyao_ofilm_ov2680_macro.so +vendor/lib64/camera/com.qti.sensor.taoyao_ofilm_s5kgd2_front.so +vendor/lib64/camera/com.qti.sensor.taoyao_ofilm_s5khm2_wide.so +vendor/lib64/camera/com.qti.sensor.taoyao_semco_s5khm2_wide.so +vendor/lib64/camera/com.qti.sensor.taoyao_sunny_gc02m1_macro.so +vendor/lib64/camera/com.qti.sensor.taoyao_sunny_s5kgd2_front.so +vendor/lib64/camera/com.qti.sensormodule.taoyao_aac_imx355_ultra.bin +vendor/lib64/camera/com.qti.sensormodule.taoyao_ofilm_imx355_ultra.bin +vendor/lib64/camera/com.qti.sensormodule.taoyao_ofilm_ov2680_macro.bin +vendor/lib64/camera/com.qti.sensormodule.taoyao_ofilm_s5kgd2_front.bin +vendor/lib64/camera/com.qti.sensormodule.taoyao_ofilm_s5khm2_wide.bin +vendor/lib64/camera/com.qti.sensormodule.taoyao_semco_s5khm2_wide.bin +vendor/lib64/camera/com.qti.sensormodule.taoyao_sunny_gc02m1_macro.bin +vendor/lib64/camera/com.qti.sensormodule.taoyao_sunny_s5kgd2_front.bin +vendor/lib64/camera/com.qti.tuned.default.bin +vendor/lib64/camera/com.qti.tuned.taoyao_aac_imx355_ultra.bin +vendor/lib64/camera/com.qti.tuned.taoyao_ofilm_imx355_ultra.bin +vendor/lib64/camera/com.qti.tuned.taoyao_ofilm_ov2680_macro.bin +vendor/lib64/camera/com.qti.tuned.taoyao_ofilm_s5kgd2_front.bin +vendor/lib64/camera/com.qti.tuned.taoyao_ofilm_s5khm2_wide.bin +vendor/lib64/camera/com.qti.tuned.taoyao_semco_s5khm2_wide.bin +vendor/lib64/camera/com.qti.tuned.taoyao_sunny_gc02m1_macro.bin +vendor/lib64/camera/com.qti.tuned.taoyao_sunny_s5kgd2_front.bin +vendor/lib64/camera/fdconfigpreview.bin +vendor/lib64/camera/fdconfigpreviewlite.bin +vendor/lib64/camera/fdconfigvideo.bin +vendor/lib64/camera/fdconfigvideolite.bin + +# Camera settings +vendor/lib64/com.qti.settings.kamorta.so +vendor/lib64/com.qti.settings.kodiak.so +vendor/lib64/com.qti.settings.mannar.so +vendor/lib64/com.qti.settings.sdm865.so +vendor/lib64/com.qti.settings.sm8350.so +vendor/lib64/libloadalgo_stub.so +vendor/lib64/libmm-color-convertor.so + +# CamLegacy +vendor/bin/hw/android.hardware.camera.provider@2.4-virtual-camera-service +vendor/etc/init/android.hardware.camera.provider@2.4-virtual-camera-service.rc +vendor/lib64/android.hardware.camera.provider@2.4-legacy.so +vendor/lib64/android.hardware.camera.provider@2.4-external.so +vendor/lib64/hw/android.hardware.camera.provider@2.4-impl.so +vendor/lib64/hw/android.hardware.camera.provider@2.4-impl-vcamera.so +vendor/lib64/camera.device@3.6-external-impl.so +vendor/lib64/camera.device@3.5-impl.so +vendor/lib64/camera.device@3.5-external-impl.so +vendor/lib64/camera.device@3.4-impl.so +vendor/lib64/camera.device@3.4-external-impl.so +vendor/lib64/camera.device@3.3-impl.so +vendor/lib64/camera.device@3.2-impl.so +vendor/lib64/camera.device@1.0-impl.so +vendor/lib64/vendor.qti.hardware.camera.device@3.5.so + # CDSP vendor/bin/cdsprpcd vendor/etc/init/vendor.qti.cdsprpc-service.rc @@ -46,6 +624,9 @@ vendor/lib64/libcdsprpc.so vendor/lib64/libmdsprpc.so vendor/lib64/libsdsprpc.so +# Charger (Mi Turbo Charge) +vendor/bin/batterysecret + # CNE vendor/app/CneApp/CneApp.apk;REQUIRED=CneApp.libvndfwk_detect_jni.qti_symlink vendor/bin/cnd @@ -119,6 +700,52 @@ vendor/lib64/libfastcvdsp_stub.so vendor/lib64/libfastcvopt.so vendor/lib64/vendor.qti.hardware.cvp@1.0.so +# Computer Vision firmware +vendor/firmware/evass-lt.b00 +vendor/firmware/evass-lt.b01 +vendor/firmware/evass-lt.b02 +vendor/firmware/evass-lt.b03 +vendor/firmware/evass-lt.b04 +vendor/firmware/evass-lt.b05 +vendor/firmware/evass-lt.b06 +vendor/firmware/evass-lt.b07 +vendor/firmware/evass-lt.b08 +vendor/firmware/evass-lt.b09 +vendor/firmware/evass-lt.b10 +vendor/firmware/evass-lt.b11 +vendor/firmware/evass-lt.b12 +vendor/firmware/evass-lt.b13 +vendor/firmware/evass-lt.b14 +vendor/firmware/evass-lt.b15 +vendor/firmware/evass-lt.b16 +vendor/firmware/evass-lt.b17 +vendor/firmware/evass-lt.b18 +vendor/firmware/evass-lt.b19 +vendor/firmware/evass-lt.mbn +vendor/firmware/evass-lt.mdt +vendor/firmware/evass.b00 +vendor/firmware/evass.b01 +vendor/firmware/evass.b02 +vendor/firmware/evass.b03 +vendor/firmware/evass.b04 +vendor/firmware/evass.b05 +vendor/firmware/evass.b06 +vendor/firmware/evass.b07 +vendor/firmware/evass.b08 +vendor/firmware/evass.b09 +vendor/firmware/evass.b10 +vendor/firmware/evass.b11 +vendor/firmware/evass.b12 +vendor/firmware/evass.b13 +vendor/firmware/evass.b14 +vendor/firmware/evass.b15 +vendor/firmware/evass.b16 +vendor/firmware/evass.b17 +vendor/firmware/evass.b18 +vendor/firmware/evass.b19 +vendor/firmware/evass.mbn +vendor/firmware/evass.mdt + # Configstore vendor/bin/hw/vendor.qti.hardware.capabilityconfigstore@1.0-service vendor/etc/init/vendor.qti.hardware.capabilityconfigstore@1.0-service.rc @@ -130,6 +757,15 @@ vendor/etc/init/vendor.qti.diag.rc vendor/etc/vintf/manifest/vendor.qti.diag.hal.service.xml vendor/lib64/vendor.qti.diaghal@1.0.so;MODULE_SUFFIX=_vendor +# Display +vendor/etc/qdcm_calib_data_xiaomi_36_02_0b_cmd_mode_dsc_dsi_panel.xml +vendor/etc/qdcm_calib_data_xiaomi_42_02_0a_cmd_mode_dsc_dsi_panel.xml +vendor/etc/mdss_dsi_l9_36_02_0b_dsc_cmd_mi.xml +vendor/etc/mdss_dsi_l9_42_02_0a_dsc_cmd_mi.xml + +# Display (Hardware) +vendor/lib64/hw/memtrack.default.so + # Display - from sunstone V816.0.8.0.UMQMIXM vendor/etc/display/DPU660.xml|b26dd73e361546d89bf3d7082a471703dc6ac2cb vendor/etc/display/DPU670.xml|e5131a60ceff29ca5eb561eec7eddadef1d0486f @@ -151,6 +787,11 @@ vendor/lib64/libtinyxml2_1.so|11ceb3f1e7650c41621d47e5ec5567c8f466086e # Display HDR - from sunstone V816.0.8.0.UMQMIXM vendor/lib64/libhdr_tm.so|7954c5cd5c0b23fe8d0609361c22d24c59f1448b +# Display HDR dynamic +vendor/lib64/libhdrdynamic.so +vendor/lib64/libhdrdynamicootf.so +vendor/lib64/libhdr_stub.so + # Display postprocessing vendor/bin/hw/vendor.display.color@1.0-service vendor/bin/ppd @@ -169,6 +810,20 @@ vendor/lib64/vendor.display.color@1.4.so vendor/lib64/vendor.display.color@1.5.so vendor/lib64/vendor.display.postproc@1.0.so +# Displayfeature +vendor/bin/displayfeature +vendor/bin/hw/vendor.xiaomi.hardware.displayfeature@1.0-service +vendor/etc/init/vendor.xiaomi.hardware.displayfeature@1.0-service.rc +vendor/lib64/hw/displayfeature.default.so +vendor/lib64/hw/vendor.xiaomi.hardware.displayfeature@1.0-impl.so +vendor/lib64/libclient2slpi.notifier.so +vendor/lib64/libdisplayfeature.so +vendor/lib64/libdisplayfeatureservice.so +vendor/lib64/libmiXmlParser.so +vendor/lib64/libtinyxml.so +vendor/lib64/libmi-stc-HW-modulate.so +vendor/lib64/vendor.xiaomi.hardware.displayfeature@1.0.so:system_ext/lib64/vendor.xiaomi.hardware.displayfeature@1.0.so + # DPM system/framework/tcmclient.jar system_ext/bin/dpmd @@ -206,6 +861,7 @@ vendor/lib64/libops.so vendor/lib64/libqcbor.so vendor/lib64/libqisl.so vendor/lib64/librpmb.so +vendor/lib64/libsecureui.so|654acd5681fdb971528056ebeae5c616492a87dc vendor/lib64/libspcom.so vendor/lib64/libspl.so vendor/lib64/libssd.so @@ -225,6 +881,10 @@ vendor/etc/seccomp_policy/vendor.qti.hardware.dsp.policy vendor/lib/vendor.qti.hardware.dsp@1.0.so vendor/lib64/vendor.qti.hardware.dsp@1.0.so +# Dumpstate +vendor/bin/hw/android.hardware.dumpstate@1.1-service.xiaomi +vendor/etc/init/android.hardware.dumpstate@1.1-service.xiaomi.rc + # Embedded Secure Element power manager vendor/bin/hw/vendor.qti.esepowermanager@1.1-service vendor/etc/init/vendor.qti.esepowermanager@1.1-service.rc @@ -232,6 +892,17 @@ vendor/lib64/hw/vendor.qti.esepowermanager@1.1-impl.so vendor/lib64/vendor.qti.esepowermanager@1.0.so vendor/lib64/vendor.qti.esepowermanager@1.1.so +# Fingerprint +vendor/etc/vintf/manifest/fod.xml +vendor/lib64/libgf_hal.so +vendor/lib64/com.fingerprints.extension@3.0.so +vendor/lib64/hw/fingerprint.goodix_fod.so:vendor/lib64/hw/fingerprint.goodix_fod.default.so;FIX_SONAME + +# Fingerprint dtool +vendor/lib64/vendor.xiaomi.hardware.dtool@1.0.so +vendor/bin/hw/vendor.xiaomi.hardware.dtool@1.0-service +vendor/etc/init/vendor.xiaomi.hardware.dtool@1.0-service.rc + # Gatekeeper vendor/bin/hw/android.hardware.gatekeeper@1.0-service-qti vendor/etc/init/android.hardware.gatekeeper@1.0-service-qti.rc @@ -297,11 +968,22 @@ vendor/lib64/hw/vulkan.adreno.so vendor/lib64/libC2D2.so vendor/lib64/libCB.so vendor/lib64/libOpenCL.so +vendor/lib64/libadreno_app_profiles.so vendor/lib64/libadreno_utils.so vendor/lib64/libc2d30_bltlib.so vendor/lib64/libgsl.so vendor/lib64/libllvm-glnext.so vendor/lib64/libllvm-qcom.so +vendor/lib64/vendor.qti.qspmhal@1.0.so + +# Graphics firmware +vendor/firmware/a660_gmu.bin +vendor/firmware/a660_sqe.fw +vendor/firmware/a660_zap.b00 +vendor/firmware/a660_zap.b01 +vendor/firmware/a660_zap.b02 +vendor/firmware/a660_zap.elf +vendor/firmware/a660_zap.mdt # HotwordEnrollment product/priv-app/HotwordEnrollmentOKGoogleHEXAGON_WIDEBAND/HotwordEnrollmentOKGoogleHEXAGON_WIDEBAND.apk @@ -365,6 +1047,16 @@ vendor/lib64/vendor.qti.ims.rcsconfig@2.1.so vendor/lib64/vendor.qti.imsrtpservice@3.0-service-Impl.so vendor/lib64/vendor.qti.imsrtpservice@3.0.so;MODULE_SUFFIX=_vendor +# IPA firmware +vendor/etc/init/ipa_fws.rc +vendor/firmware/yupik_ipa_fws.b00 +vendor/firmware/yupik_ipa_fws.b01 +vendor/firmware/yupik_ipa_fws.b02 +vendor/firmware/yupik_ipa_fws.b03 +vendor/firmware/yupik_ipa_fws.b04 +vendor/firmware/yupik_ipa_fws.elf +vendor/firmware/yupik_ipa_fws.mdt + # IRQ balance vendor/bin/msm_irqbalance vendor/etc/msm_irqbalance.conf @@ -413,6 +1105,45 @@ vendor/lib/libqcodec2_utils.so vendor/lib/libqcodec2_v4l2codec.so vendor/lib64/libmmosal.so;MODULE_SUFFIX=_vendor +# Media (Hardware) +vendor/lib/libstagefrighthw.so +vendor/lib64/libstagefrighthw.so +vendor/lib64/libmm-omxcore.so +vendor/lib64/libOmxAacEnc.so +vendor/lib64/libOmxAmrEnc.so +vendor/lib64/libOmxCore.so +vendor/lib64/libOmxEvrcEnc.so +vendor/lib64/libOmxG711Enc.so +vendor/lib64/libOmxQcelp13Enc.so +vendor/lib64/libplatformconfig.so + +# Media (VPU firmware) +vendor/firmware/vpu20_1v.b00 +vendor/firmware/vpu20_1v.b01 +vendor/firmware/vpu20_1v.b02 +vendor/firmware/vpu20_1v.b03 +vendor/firmware/vpu20_1v.b04 +vendor/firmware/vpu20_1v.b05 +vendor/firmware/vpu20_1v.b06 +vendor/firmware/vpu20_1v.b07 +vendor/firmware/vpu20_1v.b08 +vendor/firmware/vpu20_1v.b09 +vendor/firmware/vpu20_1v.b10 +vendor/firmware/vpu20_1v.b11 +vendor/firmware/vpu20_1v.b12 +vendor/firmware/vpu20_1v.b13 +vendor/firmware/vpu20_1v.b14 +vendor/firmware/vpu20_1v.b15 +vendor/firmware/vpu20_1v.b16 +vendor/firmware/vpu20_1v.b17 +vendor/firmware/vpu20_1v.b18 +vendor/firmware/vpu20_1v.b19 +vendor/firmware/vpu20_1v.mbn +vendor/firmware/vpu20_1v.mdt +vendor/firmware/vpu20_1v.elf +vendor/firmware/vpu20_1v.lst +vendor/firmware/vpu20_1v_unsigned.mbn + # Mlipay vendor/bin/mlipayd@1.1 vendor/etc/init/vendor.xiaomi.hardware.mlipay@1.1-service.rc @@ -491,6 +1222,11 @@ vendor/lib64/unnhal-acc-htp.so # NFC vendor/lib/libsn100u_fw.so:vendor/lib64/libsn100u_fw.so +# NFC configs +vendor/etc/libnfc-nxp_RF.conf +vendor/etc/libnfc-nxp.conf +vendor/etc/libnfc-nci.conf + # NVRAM vendor/bin/nv_mac @@ -648,6 +1384,114 @@ vendor/lib64/jcos_nq_client.so vendor/lib64/ls_nq_client.so vendor/lib64/se_nq_extn_client.so +# SecureMSM (SECDISP) +vendor/lib64/libStDrvInt.so|3542d63a64d1e51cb2ac49c36a44c9fbfdb23edd +vendor/lib64/libsecureui_svcsock.so + +# Sensor-calibrate +vendor/bin/hw/vendor.qti.hardware.sensorscalibrate@1.0-service +vendor/etc/init/vendor.qti.hardware.sensorscalibrate@1.0-service.rc +vendor/etc/permissions/vendor-qti-hardware-sensorscalibrate.xml +vendor/lib64/hw/vendor.qti.hardware.sensorscalibrate@1.0-impl.so +vendor/lib64/vendor.qti.hardware.sensorscalibrate@1.0.so + +# Sensors +vendor/bin/init.qcom.sensors.sh +vendor/bin/sensors.qti +vendor/bin/sscrpcd +vendor/etc/elliptic_sensor.xml +vendor/etc/init/init.vendor.sensors.rc +vendor/etc/init/vendor.sensors.qti.rc +vendor/etc/init/vendor.sensors.sscrpcd.rc +vendor/lib64/libnanopb.so +vendor/lib64/libnotifyaudiohal.so;FIX_SONAME +vendor/lib64/libsensorcal.so +vendor/lib64/libsensorslog.so +vendor/lib64/libsns_api.so +vendor/lib64/libsns_fastRPC_util.so +vendor/lib64/libsensor_cal_v2.so;DISABLE_CHECKELF +vendor/lib64/libmmcamera_faceproc.so;DISABLE_CHECKELF +vendor/lib64/libsns_device_mode_stub.so +vendor/lib64/libsns_low_lat_stream_stub.so +vendor/lib64/libsns_registry_skel.so +vendor/lib64/libsnsapi.so +vendor/lib64/libsnsdiaglog.so +vendor/lib64/libssc.so +vendor/lib64/libssc_default_listener.so +vendor/lib64/libssccalapi.so +vendor/lib64/libultrasound.so +vendor/lib64/sensors.elliptic@2.0.so +vendor/lib64/sensors.mius.proximity.so +vendor/lib64/sensors.ssc.so +vendor/lib64/sensors.touch.detect.so + +# Sensors (citsensor) +vendor/etc/vintf/manifest/vendor.xiaomi.hardware.citsensorservice@1.1-service.xml +vendor/bin/hw/vendor.xiaomi.hardware.citsensorservice@1.1-service +vendor/etc/init/vendor.xiaomi.hardware.citsensorservice@1.1-service.rc +vendor/lib64/hw/vendor.xiaomi.hardware.citsensorservice@1.1-impl.so +vendor/lib64/vendor.xiaomi.hardware.citsensorservice@1.0.so +vendor/lib64/vendor.xiaomi.hardware.citsensorservice@1.1.so + +# Sensors configs +vendor/etc/sensors/config/ak991x_dri_0.json +vendor/etc/sensors/config/lsm6dso_0.json +vendor/etc/sensors/config/power_0.json +vendor/etc/sensors/config/sm7350_ak991x_0.json +vendor/etc/sensors/config/sm7350_default_sensors.json +vendor/etc/sensors/config/sm7350_dynamic_sensors.json +vendor/etc/sensors/config/sm7350_icm4x6xa_0.json +vendor/etc/sensors/config/sm7350_irq.json +vendor/etc/sensors/config/sm7350_lsm6dso_0.json +vendor/etc/sensors/config/sm7350_power_0.json +vendor/etc/sensors/config/sm7350_sx933x_0.json +vendor/etc/sensors/config/sm7350_sx937x_0.json +vendor/etc/sensors/config/sm7350_tcs3408.json +vendor/etc/sensors/config/sm7350_tcs3701.json +vendor/etc/sensors/config/sm7350_tmd3719.json +vendor/etc/sensors/config/sns_amd.json +vendor/etc/sensors/config/sns_amd_sw_disabled.json +vendor/etc/sensors/config/sns_amd_sw_enabled.json +vendor/etc/sensors/config/sns_aod.json +vendor/etc/sensors/config/sns_aont.json +vendor/etc/sensors/config/sns_basic_gestures.json +vendor/etc/sensors/config/sns_bring_to_ear.json +vendor/etc/sensors/config/sns_cm.json +vendor/etc/sensors/config/sns_dbtap.json +vendor/etc/sensors/config/sns_device_orient.json +vendor/etc/sensors/config/sns_diag_filter.json +vendor/etc/sensors/config/sns_distance_bound.json +vendor/etc/sensors/config/sns_dpc.json +vendor/etc/sensors/config/sns_facing.json +vendor/etc/sensors/config/sns_fmv.json +vendor/etc/sensors/config/sns_geomag_rv.json +vendor/etc/sensors/config/sns_gyro_cal.json +vendor/etc/sensors/config/sns_heart_rate.json +vendor/etc/sensors/config/sns_mag_cal.json +vendor/etc/sensors/config/sns_mag_cal_legacy.json +vendor/etc/sensors/config/sns_multishake.json +vendor/etc/sensors/config/sns_nonui.json +vendor/etc/sensors/config/sns_oem13.json +vendor/etc/sensors/config/sns_pedometer.json +vendor/etc/sensors/config/sns_rmd.json +vendor/etc/sensors/config/sns_rotv.json +vendor/etc/sensors/config/sns_sar_algo.json +vendor/etc/sensors/config/sns_sar_algo_1.json +vendor/etc/sensors/config/sns_smd.json +vendor/etc/sensors/config/sns_tilt.json +vendor/etc/sensors/config/sns_tilt_sw_disabled.json +vendor/etc/sensors/config/sns_tilt_sw_enabled.json +vendor/etc/sensors/config/sns_tilt_to_wake.json +vendor/etc/sensors/config/sns_wrist_pedo.json +vendor/etc/sensors/config/sx933x_0.json +vendor/etc/sensors/config/sx937x_0.json +vendor/etc/sensors/config/sx937x_reg_0.json +vendor/etc/sensors/config/tcs3408.json +vendor/etc/sensors/config/tcs3701.json +vendor/etc/sensors/config/tmd3719.json +vendor/etc/sensors/judge_calibrated.json +vendor/etc/sensors/sns_reg_config + # Snapdragon Computer Vision Engine vendor/lib/libscveCommon.so vendor/lib/libscveCommon_stub.so @@ -673,24 +1517,65 @@ vendor/app/SoterService/SoterService.apk # Thermal vendor/bin/mi_thermald +vendor/bin/thermal-engine +vendor/etc/init/init_thermal-engine.rc +vendor/etc/tzlog.dict vendor/lib/libthermalclient.so vendor/lib64/libthermalclient.so +# Thermal config +vendor/etc/thermal-4k.conf +vendor/etc/thermal-camera.conf +vendor/etc/thermal-class0.conf +vendor/etc/thermal-engine.conf +vendor/etc/thermal-huanji.conf +vendor/etc/thermal-map.conf +vendor/etc/thermal-mgame.conf +vendor/etc/thermal-navigation.conf +vendor/etc/thermal-nolimits.conf +vendor/etc/thermal-normal.conf +vendor/etc/thermal-phone.conf +vendor/etc/thermal-tgame.conf +vendor/etc/thermal-video.conf +vendor/etc/thermal-videochat.conf +vendor/etc/thermald-devices.conf + # Time services vendor/app/TimeService/TimeService.apk vendor/bin/time_daemon vendor/etc/init/init.time_daemon.rc vendor/lib64/libtime_genoff.so +# Touchscreen firmware +vendor/firmware/focaltech_ts_fw.bin +vendor/firmware/goodix_cfg_group_l9.bin +vendor/firmware/goodix_firmware_l9.bin + # Trusted Execution Environment connector vendor/bin/hw/vendor.qti.hardware.qteeconnector@1.0-service vendor/etc/init/vendor.qti.hardware.qteeconnector@1.0-service.rc vendor/lib64/hw/vendor.qti.hardware.qteeconnector@1.0-impl.so vendor/lib64/libGPQTEEC_vendor.so vendor/lib64/libGPTEE_vendor.so +vendor/lib64/libQTEEConnector_listener.so|a68896617b550a240e2352deea23c171e76356a0 vendor/lib64/libQTEEConnector_vendor.so vendor/lib64/vendor.qti.hardware.qteeconnector@1.0.so +# Trusted User Interface +vendor/lib64/vendor.qti.hardware.tui_comm@1.0.so + +# Vibrator firmware +vendor/firmware/aw8624_haptic.bin +vendor/firmware/aw8622x_haptic.bin +vendor/firmware/aw8622xl_haptic.bin +vendor/firmware/aw8624l_rtp_silk.bin +vendor/firmware/aw8624l_rtp_lighthouse.bin +vendor/firmware/aw8624l_rtp.bin +vendor/firmware/aw8624l_osc_rtp_24K_5s.bin +vendor/firmware/aw8624l_haptic.bin +vendor/lib64/libtriplecam_optical_zoom_control.so +vendor/lib64/libsysmon_cdsp_skel.so + # VPP vendor/bin/hw/qconfigservice vendor/bin/vppservice diff --git a/proprietary-firmware.txt b/proprietary-firmware.txt new file mode 100644 index 0000000..57213fa --- /dev/null +++ b/proprietary-firmware.txt @@ -0,0 +1,19 @@ +## All proprietary files from this list are from taoyao V816.0.14.0.ULIMIXM + +abl.img;AB +aop.img;AB +bluetooth.img;AB +cpucp.img;AB +devcfg.img;AB +dsp.img;AB +featenabler.img;AB +hyp.img;AB +imagefv.img;AB +keymaster.img;AB +modem.img;AB +qupfw.img;AB +shrm.img;AB +tz.img;AB +uefisecapp.img;AB +xbl_config.img;AB +xbl.img;AB diff --git a/rootdir/etc/init.target.rc b/rootdir/etc/init.target.rc index 9fc8d9f..15f2894 100644 --- a/rootdir/etc/init.target.rc +++ b/rootdir/etc/init.target.rc @@ -142,6 +142,10 @@ on boot chown system system /sys/class/thermal/thermal_message/charger_temp chown cameraserver cameraserver /sys/class/thermal/thermal_message/flash_state + # Display feature sysfs node + chown system system /sys/class/mi_display/disp-DSI-0/disp_param + chmod 0664 /sys/class/mi_display/disp-DSI-0/disp_param + # Set xiaomi touch permissions chown system system /dev/xiaomi-touch chmod 0660 /dev/xiaomi-touch diff --git a/rro_overlays/CarrierConfigOverlay/AndroidManifest.xml b/rro_overlays/CarrierConfigOverlay/AndroidManifest.xml index b19082c..adcc407 100644 --- a/rro_overlays/CarrierConfigOverlay/AndroidManifest.xml +++ b/rro_overlays/CarrierConfigOverlay/AndroidManifest.xml @@ -13,9 +13,9 @@ See the License for the specific language governing permissions and limitations under the License. --> - + diff --git a/rro_overlays/CarrierConfigOverlay/res/xml/vendor.xml b/rro_overlays/CarrierConfigOverlay/res/xml/vendor.xml index 07e08b7..d948094 100644 --- a/rro_overlays/CarrierConfigOverlay/res/xml/vendor.xml +++ b/rro_overlays/CarrierConfigOverlay/res/xml/vendor.xml @@ -2,10 +2,10 @@ - + - + @@ -28,7 +28,7 @@ - + diff --git a/rro_overlays/NfcOverlay/Android.bp b/rro_overlays/NfcOverlay/Android.bp new file mode 100644 index 0000000..b4fc8e6 --- /dev/null +++ b/rro_overlays/NfcOverlay/Android.bp @@ -0,0 +1,6 @@ +runtime_resource_overlay { + name: "NfcOverlay", + theme: "NfcOverlay", + sdk_version: "current", + product_specific: true +} diff --git a/rro_overlays/NfcOverlay/AndroidManifest.xml b/rro_overlays/NfcOverlay/AndroidManifest.xml new file mode 100644 index 0000000..142c855 --- /dev/null +++ b/rro_overlays/NfcOverlay/AndroidManifest.xml @@ -0,0 +1,26 @@ + + + + + + + diff --git a/rro_overlays/NfcOverlay/res/values/config.xml b/rro_overlays/NfcOverlay/res/values/config.xml new file mode 100644 index 0000000..a1e8886 --- /dev/null +++ b/rro_overlays/NfcOverlay/res/values/config.xml @@ -0,0 +1,19 @@ + + + + + + taoyao + + diff --git a/rro_overlays/SettingsProviderOverlay/Android.bp b/rro_overlays/SettingsProviderOverlay/Android.bp new file mode 100644 index 0000000..b828a54 --- /dev/null +++ b/rro_overlays/SettingsProviderOverlay/Android.bp @@ -0,0 +1,6 @@ +runtime_resource_overlay { + name: "SettingsProviderOverlay", + theme: "SettingsProviderOverlay", + sdk_version: "current", + product_specific: true +} diff --git a/rro_overlays/SettingsProviderOverlay/AndroidManifest.xml b/rro_overlays/SettingsProviderOverlay/AndroidManifest.xml new file mode 100644 index 0000000..ef4271c --- /dev/null +++ b/rro_overlays/SettingsProviderOverlay/AndroidManifest.xml @@ -0,0 +1,26 @@ + + + + + + + diff --git a/rro_overlays/SettingsProviderOverlay/res/values/defaults.xml b/rro_overlays/SettingsProviderOverlay/res/values/defaults.xml new file mode 100644 index 0000000..6b3b44e --- /dev/null +++ b/rro_overlays/SettingsProviderOverlay/res/values/defaults.xml @@ -0,0 +1,9 @@ + + + + + Xiaomi 12 Lite + diff --git a/rro_overlays/WifiOverlay/AndroidManifest.xml b/rro_overlays/WifiOverlay/AndroidManifest.xml index 505609b..29dc405 100644 --- a/rro_overlays/WifiOverlay/AndroidManifest.xml +++ b/rro_overlays/WifiOverlay/AndroidManifest.xml @@ -13,15 +13,14 @@ See the License for the specific language governing permissions and limitations under the License. --> - + diff --git a/rro_overlays/WifiOverlay/res/values/config.xml b/rro_overlays/WifiOverlay/res/values/config.xml index c5ce41f..a4474f3 100644 --- a/rro_overlays/WifiOverlay/res/values/config.xml +++ b/rro_overlays/WifiOverlay/res/values/config.xml @@ -79,4 +79,17 @@ channels this should be empty. Values is a comma separated channel string and/or channel range string like '1-6,11'. --> + + + Xiaomi 12 Lite + + true + true + false + false + false + false + true + 1000 + 524288,1048576,2097152,524288,1048576,4194304 diff --git a/sensors/hals.conf b/sensors/hals.conf new file mode 100644 index 0000000..41bb28e --- /dev/null +++ b/sensors/hals.conf @@ -0,0 +1,4 @@ +sensors.elliptic@2.0.so +sensors.ssc.so +sensors.touch.detect.so +sensors.xiaomi.v2.so diff --git a/sepolicy/vendor/hal_fingerprint_default.te b/sepolicy/vendor/hal_fingerprint_default.te index 6670be8..97cae29 100644 --- a/sepolicy/vendor/hal_fingerprint_default.te +++ b/sepolicy/vendor/hal_fingerprint_default.te @@ -17,6 +17,7 @@ set_prop(hal_fingerprint_default, vendor_fp_prop) set_prop(hal_fingerprint_default, vendor_fp_info_prop) # Sysfs +allow hal_fingerprint_default sysfs:file w_file_perms; allow hal_fingerprint_default sysfs_rtc:dir r_dir_perms; allow hal_fingerprint_default sysfs_rtc:file rw_file_perms; allow hal_fingerprint_default vendor_sysfs_spss:dir r_dir_perms; @@ -31,5 +32,6 @@ allow hal_fingerprint_default vendor_sysfs_graphics:file rw_file_perms; allow hal_fingerprint_default tee_device:chr_file rw_file_perms; allow hal_fingerprint_default uhid_device:chr_file rw_file_perms; allow hal_fingerprint_default vendor_fingerprint_device:chr_file rw_file_perms; +allow hal_fingerprint_default vendor_touchfeature_device:chr_file rw_file_perms; allow hal_fingerprint_default input_device:dir r_dir_perms; allow hal_fingerprint_default input_device:chr_file rw_file_perms; diff --git a/udfps/UdfpsHandler.cpp b/udfps/UdfpsHandler.cpp index 07575e5..c36f66a 100644 --- a/udfps/UdfpsHandler.cpp +++ b/udfps/UdfpsHandler.cpp @@ -8,13 +8,16 @@ #include #include +#include #include +#include #include #include #include #include "UdfpsHandler.h" +#include "xiaomi_touch.h" // Fingerprint hwmodule commands #define COMMAND_NIT 10 @@ -22,13 +25,12 @@ #define PARAM_NIT_NONE 0 // Touchscreen and HBM -#define FOD_HBM_PATH "/sys/devices/platform/soc/soc:qcom,dsi-display-primary/fod_hbm" -#define FOD_STATUS_PATH "/sys/devices/virtual/touch/tp_dev/fod_status" -#define FOD_UI_PATH "/sys/devices/platform/soc/soc:qcom,dsi-display-primary/fod_ui" +#define DISP_PARAM_PATH "/sys/devices/virtual/mi_display/disp_feature/disp-DSI-0/disp_param" #define FOD_PRESS_STATUS_PATH "/sys/class/touch/touch_dev/fod_press_status" -#define FOD_HBM_OFF 0 -#define FOD_HBM_ON 1 +#define FOD_HBM_MODE "9" +#define FOD_HBM_OFF "0" +#define FOD_HBM_ON "1" #define FOD_STATUS_OFF 0 #define FOD_STATUS_ON 1 @@ -36,6 +38,12 @@ #define PARAM_FOD_PRESSED 1 #define PARAM_FOD_RELEASED 0 +#define TOUCH_DEV_PATH "/dev/xiaomi-touch" +#define TOUCH_ID 0 +#define TOUCH_MAGIC 'T' +#define TOUCH_IOC_SET_CUR_VALUE _IO(TOUCH_MAGIC, SET_CUR_VALUE) +#define TOUCH_IOC_GET_CUR_VALUE _IO(TOUCH_MAGIC, GET_CUR_VALUE) + using ::aidl::android::hardware::biometrics::fingerprint::AcquiredInfo; template @@ -67,43 +75,30 @@ class XiaomiUdfpsHandler : public UdfpsHandler { public: void init(fingerprint_device_t* device) { mDevice = device; + touchUniqueFd = android::base::unique_fd(open(TOUCH_DEV_PATH, O_RDWR)); std::thread([this]() { - int fodUiFd = open(FOD_UI_PATH, O_RDONLY); int fodPressStatusFd = open(FOD_PRESS_STATUS_PATH, O_RDONLY); - if (fodUiFd < 0) { - LOG(ERROR) << "failed to open fodUiFd, err: " << fodUiFd; - return; - } if (fodPressStatusFd < 0) { LOG(ERROR) << "failed to open fodPressStatusFd, err: " << fodPressStatusFd; return; } - struct pollfd fds[2] = { - {fodUiFd, .events = POLLERR | POLLPRI, .revents = 0}, + struct pollfd fds[1] = { {fodPressStatusFd, .events = POLLERR | POLLPRI, .revents = 0}, }; while (true) { - int rc = poll(fds, 2, -1); + int rc = poll(fds, 1, -1); if (rc < 0) { if (fds[0].revents & POLLERR) { - LOG(ERROR) << "failed to poll fodUiFd, err: " << rc; - } - if (fds[1].revents & POLLERR) { LOG(ERROR) << "failed to poll fodPressStatusFd, err: " << rc; } continue; } if (fds[0].revents & (POLLERR | POLLPRI)) { - bool nitState = readBool(fodUiFd); - mDevice->extCmd(mDevice, COMMAND_NIT, nitState ? PARAM_NIT_UDFPS : PARAM_NIT_NONE); - } - - if (fds[1].revents & (POLLERR | POLLPRI)) { bool pressState = readBool(fodPressStatusFd); mDevice->extCmd(mDevice, COMMAND_FOD_PRESS_STATUS, pressState ? PARAM_FOD_PRESSED : PARAM_FOD_RELEASED); } @@ -112,34 +107,47 @@ class XiaomiUdfpsHandler : public UdfpsHandler { } void onFingerDown(uint32_t /*x*/, uint32_t /*y*/, float /*minor*/, float /*major*/) { - set(FOD_STATUS_PATH, FOD_STATUS_ON); + LOG(INFO) << __func__; + setFingerDown(true); } void onFingerUp() { - set(FOD_STATUS_PATH, FOD_STATUS_OFF); + LOG(INFO) << __func__; + setFingerDown(false); } void onAcquired(int32_t result, int32_t vendorCode) { + LOG(INFO) << __func__ << " result: " << result << " vendorCode: " << vendorCode; if (static_cast(result) == AcquiredInfo::GOOD) { - set(FOD_HBM_PATH, FOD_HBM_OFF); - set(FOD_STATUS_PATH, FOD_STATUS_OFF); + setFingerDown(false); } else if (vendorCode == 21) { - /* - * vendorCode = 21 waiting for finger - * vendorCode = 22 finger down - * vendorCode = 23 finger up - */ - set(FOD_STATUS_PATH, FOD_STATUS_ON); + setFodStatus(FOD_STATUS_ON); } } void cancel() { - set(FOD_STATUS_PATH, FOD_STATUS_OFF); - set(FOD_HBM_PATH, FOD_HBM_OFF); + LOG(INFO) << __func__; + setFingerDown(false); + setFodStatus(FOD_STATUS_OFF); } private: fingerprint_device_t* mDevice; + android::base::unique_fd touchUniqueFd; + + void setFodStatus(int value) { + int buf[MAX_BUF_SIZE] = {TOUCH_ID, TOUCH_FOD_ENABLE, value}; + ioctl(touchUniqueFd.get(), TOUCH_IOC_SET_CUR_VALUE, &buf); + } + + void setFingerDown(bool pressed) { + mDevice->extCmd(mDevice, COMMAND_NIT, pressed ? PARAM_NIT_UDFPS : PARAM_NIT_NONE); + + int buf[MAX_BUF_SIZE] = {TOUCH_ID, THP_FOD_DOWNUP_CTL, pressed ? 1 : 0}; + ioctl(touchUniqueFd.get(), TOUCH_IOC_SET_CUR_VALUE, &buf); + + set(DISP_PARAM_PATH, std::string(FOD_HBM_MODE) + " " + (pressed ? FOD_HBM_ON : FOD_HBM_OFF)); + } }; static UdfpsHandler* create() { diff --git a/udfps/xiaomi_touch.h b/udfps/xiaomi_touch.h new file mode 100644 index 0000000..9919335 --- /dev/null +++ b/udfps/xiaomi_touch.h @@ -0,0 +1,62 @@ +/* + * Copyright (C) 2022 The LineageOS Project + * + * SPDX-License-Identifier: Apache-2.0 + */ + +#pragma once + +#define VALUE_TYPE_SIZE 6 +#define VALUE_GRIP_SIZE 9 +#define MAX_BUF_SIZE 256 +#define BTN_INFO 0x152 +#define MAX_TOUCH_ID 10 +#define RAW_BUF_NUM 4 +#define THP_CMD_BASE 1000 + +enum suspend_state { + XIAOMI_TOUCH_RESUME = 0, + XIAOMI_TOUCH_SUSPEND, + XIAOMI_TOUCH_LP1, + XIAOMI_TOUCH_LP2, +}; + +enum MODE_CMD { + SET_CUR_VALUE = 0, + GET_CUR_VALUE, + GET_DEF_VALUE, + GET_MIN_VALUE, + GET_MAX_VALUE, + GET_MODE_VALUE, + RESET_MODE, + SET_LONG_VALUE, +}; + +enum MODE_TYPE { + TOUCH_GAME_MODE = 0, + TOUCH_ACTIVE_MODE = 1, + TOUCH_UP_THRESHOLD = 2, + TOUCH_TOLERANCE = 3, + TOUCH_AIM_SENSITIVITY = 4, + TOUCH_TAP_STABILITY = 5, + TOUCH_EXPERT_MODE = 6, + TOUCH_EDGE_FILTER = 7, + TOUCH_PANEL_ORIENTATION = 8, + TOUCH_REPORT_RATE = 9, + TOUCH_FOD_ENABLE = 10, + TOUCH_AOD_ENABLE = 11, + TOUCH_RESIST_RF = 12, + TOUCH_IDLE_TIME = 13, + TOUCH_DOUBLETAP_MODE = 14, + TOUCH_GRIP_MODE = 15, + TOUCH_FODICON_ENABLE = 16, + TOUCH_NONUI_MODE = 17, + TOUCH_DEBUG_LEVEL = 18, + TOUCH_POWER_STATUS = 19, + TOUCH_MODE_NUM = 20, + THP_LOCK_SCAN_MODE = THP_CMD_BASE + 0, + THP_FOD_DOWNUP_CTL = THP_CMD_BASE + 1, + THP_SELF_CAP_SCAN = THP_CMD_BASE + 2, + THP_REPORT_POINT_SWITCH = THP_CMD_BASE + 3, + THP_HAL_INIT_READY = THP_CMD_BASE + 4, +}; diff --git a/vendor.prop b/vendor.prop index 484d1e0..289aa00 100644 --- a/vendor.prop +++ b/vendor.prop @@ -164,6 +164,10 @@ persist.vendor.dpm.idletimer.mode=default persist.vendor.dpm.nsrm.bkg.evt=3955 persist.vendor.dpmhalservice.enable=1 +# Fingerprint +persist.vendor.fingerprint.type=udfps_optical +persist.vendor.fingerprint.sensor_location=540|2149|103 + # FRP ro.frp.pst=/dev/block/bootdevice/by-name/frp @@ -269,6 +273,7 @@ persist.vendor.sensors.debug.hal=0 persist.vendor.sensors.allow_non_default_discovery=true persist.vendor.sensors.on_change_sample_period=true persist.vendor.sensors.sync_request=true +ro.vendor.sensors.xiaomi.udfps=true # Storage ro.incremental.enable=yes diff --git a/wifi/WCNSS_qcom_cfg.ini b/wifi/WCNSS_qcom_cfg.ini index 846a2c1..35a89a2 100644 --- a/wifi/WCNSS_qcom_cfg.ini +++ b/wifi/WCNSS_qcom_cfg.ini @@ -19,6 +19,7 @@ gNeighborScanChannelMinTime=20 FastRoamEnabled=1 RoamRssiDiff=5 gRoamIntraBand=0 +gChannelBondingMode24GHz=1 gChannelBondingMode5GHz=1 gEnableDFSChnlScan=1 gAllowDFSChannelRoam=1 @@ -32,7 +33,7 @@ gEnableTxBFin20MHz=1 gEnableTxSUBeamformer=1 gRrmEnable=1 gEnablefwprint=0 -gEnablefwlog=0 +gEnablefwlog=1 gVhtAmpduLenExponent=7 gVhtMpduLen=2 isP2pDeviceAddrAdministrated=0 @@ -143,10 +144,8 @@ gStaKeepAlivePeriod = 30 etsi13_srd_chan_in_master_mode=7 #####Roaming -# TheCrazyLex@PA Prefer connecting to 5Ghz AP -# even if its RSSI is lower by 3dBm than the 2.4Ghz AP -gRoamPrefer5GHz=1 -gSelect5GHzMargin=3 +# Sets RSSI preference for 5GHz over 2.4GHz AP +gSelect5GHzMargin=5 # Candidate AP minimum RSSI for beacon miss roam trigger # Code default is -70 @@ -203,15 +202,14 @@ gindoor_channel_support=1 #Enable max link speed gReportMaxLinkSpeed=2 -# Disable rx wakelock -rx_wakelock_timeout=0 - # Skip tpe consideration skip_tpe_consideration=1 gEnableNanSupport=1 genable_nan_datapath=1 nan_separate_iface_support=1 + +gEnableSelfRecovery=1 #####################################Xiaomi ADD: END END diff --git a/wifi/WCNSS_qcom_cfg_qca6750.ini b/wifi/WCNSS_qcom_cfg_qca6750.ini new file mode 100644 index 0000000..266b7fb --- /dev/null +++ b/wifi/WCNSS_qcom_cfg_qca6750.ini @@ -0,0 +1,596 @@ +# This file allows user to override the factory +# defaults for the WLAN Driver + +# Enable IMPS or not +gEnableImps=1 + +# Enable BMPS or not +gEnableBmps=1 + +# Use XiaoMi's change instead +# Enable PCI gen switch +#g_enable_pci_gen=1 + +# Phy Mode (auto, b, g, n, etc) +# Valid values are 0-9, with 0 = Auto, 4 = 11n, 9 = 11ac +# 1 = 11abg, 2 = 11b, 3 = 11g, 5 = 11g only, 6 = 11n only +# 7 = 11b only 8 = 11ac only. +gDot11Mode=0 + +# UAPSD service interval for VO,VI, BE, BK traffic +InfraUapsdVoSrvIntv=0 +InfraUapsdViSrvIntv=0 +InfraUapsdBeSrvIntv=0 +InfraUapsdBkSrvIntv=0 + +# Flag to allow STA send AddTspec even when ACM is Off +gAddTSWhenACMIsOff=1 + + +#Flag to enable HostARPOffload feature or not +hostArpOffload=1 + +#Flag to enable HostNSOffload feature or not +hostNSOffload=1 + +# 802.11n Protection flag +gEnableApProt=1 + +#Enable OBSS protection +gEnableApOBSSProt=1 + +#Enable/Disable UAPSD for SoftAP +gEnableApUapsd=1 + +# Maximum Tx power +# gTxPowerCap=30 + +# Fragmentation Threshold +# gFragmentationThreshold=2346 + +# RTS threshold +RTSThreshold=1048576 + +# Intra-BSS forward +gDisableIntraBssFwd=0 + +# WMM Enable/Disable +WmmIsEnabled=0 + +# 802.11d support +g11dSupportEnabled=0 + +# 802.11h support +g11hSupportEnabled=1 + +# DFS Master Capability +gEnableDFSMasterCap=1 + +# ESE Support and fast transition +EseEnabled=0 + +ImplicitQosIsEnabled=0 + +gNeighborScanTimerPeriod=200 +gNeighborLookupThreshold=76 +gNeighborScanChannelMinTime=20 + +# Legacy (non-ESE, non-802.11r) Fast Roaming Support +# To enable, set FastRoamEnabled=1 +# To disable, set FastRoamEnabled=0 +FastRoamEnabled=1 + +# Check if the AP to which we are roaming is better than current AP in +# terms of RSSI. Checking is disabled if set to Zero.Otherwise it will +# use this value as to how better the RSSI of the new/roamable AP should +# be for roaming +RoamRssiDiff=5 + +# To enable, set gRoamIntraBand=1 (Roaming within band) +# To disable, set gRoamIntraBand=0 (Roaming across band) +gRoamIntraBand=0 + +#Short Guard Interval Enable/disable +gShortGI20Mhz=1 +gShortGI40Mhz=1 + +#Auto Shutdown wlan : Value in Seconds. 0 means disabled. Max 1 day = 86400 sec +gWlanAutoShutdown = 0 + +#Channel Bonding +gChannelBondingMode24GHz=1 +gChannelBondingMode5GHz=1 + +#Say gGoKeepAlivePeriod(5 seconds) and gGoLinkMonitorPeriod(10 seconds). +#For every 10 seconds DUT send Qos Null frame(i.e., Keep Alive frame if link +#is idle for last 10 seconds.) For both active and power save clients. + +#Power save clients: DUT set TIM bit from 10th second onwards and till client +#honors TIM bit. If doesn't honor for 5 seconds then DUT remove client. + +#Active clients: DUT send Qos Null frame for 10th seconds onwards if it is not +#success still we try on 11th second if not tries on 12th and so on till 15th +#second. Hence before disconnection DUT will send 5 NULL frames. Hence in any +#case DUT will detect client got removed in (10+5) seconds. +#i.e., (gGoKeepAlivePeriod + gGoLinkMonitorPeriod).. + +#gGoLinkMonitorPeriod/ gApLinkMonitorPeriod is period where link is idle and +#it is period where we send NULL frame. +#gApLinkMonitorPeriod = 10 +#gGoLinkMonitorPeriod = 10 + +#gGoKeepAlivePeriod/gApKeepAlivePeriod is time to spend to check whether frame +#are succeed to send or not. Hence total effective detection time is +# (gGoLinkMonitorPeriod + gGoKeepAlivePeriod) / +# (gApLinkMonitorPeriod + gApKeepAlivePeriod) +gGoKeepAlivePeriod = 20 +gApKeepAlivePeriod = 20 + +#If set to 0, will not scan DFS channels +gEnableDFSChnlScan=1 + +# Enable DFS channel roam +# 0: DISABLE, 1: ENABLED_NORMAL, 2: ENABLED_ACTIVE +gAllowDFSChannelRoam=1 + +gVhtChannelWidth=2 + +#Data Inactivity Timeout when in powersave (in ms) +gDataInactivityTimeout=200 + +# Set txchainmask and rxchainmask +# These parameters are used only if gEnable2x2 is 0 +# Valid values are 1,2 +# Set gSetTxChainmask1x1=1 or gSetRxChainmask1x1=1 to select chain0. +# Set gSetTxChainmask1x1=2 or gSetRxChainmask1x1=2 to select chain1. +gSetTxChainmask1x1=1 +gSetRxChainmask1x1=1 + +# Scan Timing Parameters +# gPassiveMaxChannelTime=110 +# gPassiveMinChannelTime=60 +gActiveMaxChannelTime=40 + +#If set to 0, MCC is not allowed. +gEnableMCCMode=1 + +# MCC to SCC Switch mode: +# 0-Disable +# 1-Enable +# 2-Force SCC if same band, with SAP restart +# 3-Force SCC if same band, without SAP restart by sending (E)CSA +# 4-Force SCC if same band (or) use SAP mandatory channel for DBS, +# without SAP restart by sending (E)CSA +gWlanMccToSccSwitchMode = 3 + +# 1=enable STBC; 0=disable STBC +gEnableRXSTBC=1 + +# 1=enable tx STBC; 0=disable +gEnableTXSTBC=1 + +# 1=enable rx LDPC; 0=disable +gEnableRXLDPC=1 + +#Enable/Disable Tx beamforming +gTxBFEnable=1 + +#Enable/Disable Tx beamformee in SAP mode +gEnableTxBFeeSAP=1 + +# Enable Tx beamforming in VHT20MHz +# Valid values are 0,1. If commented out, the default value is 0. +# 0=disable, 1=enable +gEnableTxBFin20MHz=1 + +#Enable/Disable SU Tx beamformer support. +gEnableTxSUBeamformer=1 + +gEnableFastRoamInConcurrency=1 + +# 802.11K support +gRrmEnable=1 + +#Enable firmware uart print +gEnablefwprint=0 + +# Firmware log mode +# Valid values are 0,1,2 +# 0=Disable, 1=WMI, 2=DIAG +gEnablefwlog=1 + +# Maximum Receive AMPDU size (VHT only. Valid values: +# 0->8k 1->16k 2->32k 3->64k 4->128k) +gVhtAmpduLenExponent=7 + +# Maximum MPDU length (VHT only. Valid values: +# 0->3895 octets, 1->7991 octets, 2->11454 octets) +gVhtMpduLen=2 + +# Maximum number of wow filters required +#gMaxWoWFilters=22 + +# WOW Enable/Disable. +# 0 - Disable both magic pattern match and pattern byte match. +# 1 - Enable magic pattern match on all interfaces. +# 2 - Enable pattern byte match on all interfaces. +# 3 - Enable both magic pattern and pattern byte match on all interfaces. +# Default value of gEnableWoW is 3. +# gEnableWoW=0 + +# Enable or Disable MCC Adaptive Scheduler at the FW +# 1=Enable (default), 0=Disable +gEnableMCCAdaptiveScheduler=1 + +#Enable or Disable p2p device address administered +isP2pDeviceAddrAdministrated=0 + +# Remove Overlap channel restriction +gEnableOverLapCh=0 + +#Enable VHT on 2.4Ghz +gEnableVhtFor24GHzBand=1 + +#Maximum number of offload peers supported +# gMaxOffloadPeers=2 + +# controlling the following offload patterns +# through ini parameter. Default value is 1 +# to disable set it to zero. ssdp = 0 +# Setup multicast pattern for mDNS 224.0.0.251, +# SSDP 239.255.255.250 and LLMNR 224.0.0.252 +ssdp=0 + +#Enable Memory Deep Sleep +gEnableMemDeepSleep=1 + +# RA filtering rate limit param, the current value would not +# help if the lifetime in RA is less than 3*60=3min. Then +# we need to change it, though it is uncommon. +# gRAFilterEnable=0 +gRArateLimitInterval=600 + +# Maximum number of concurrent connections +gMaxConcurrentActiveSessions=3 + +# Disable/Enable GreenAP +# 0 to disable, 1 to enable, default: 1 +gEnableGreenAp=0 + +gPNOScanSupport=1 + +#Enable/Disable LPASS support +# 0 to disable, 1 to enable +gEnableLpassSupport=1 + +# Whether userspace country code setting shld have priority +gCountryCodePriority=1 + +# Enable(1)/Disable(0) SIFS burst +gEnableSifsBurst=1 + +# Enable or Disable Multi-user MIMO +# 1=Enable (default), 0=Disable +gEnableMuBformee=1 + +# Inactivity time (in ms) to end TX Service Period while in IBSS power save mode +gIbssTxSpEndInactivityTime=10 + +# Enable TDLS External Control. That is, user space application has to +# first configure a peer MAC in wlan driver towards which TDLS is desired. +# Device will establish TDLS only towards those configured peers whenever +# TDLS criteria (throughput and RSSI threshold) is met and teardown TDLS +# when teardown criteria (idle packet count and RSSI) is met. However, +# device will accept TDLS connection if it is initiated from any other peer, +# even if that peer is not configured. +# 0 - disable +# 1 - enable +# For TDLS External Control, Implicit Trigger must also be enabled. +gTDLSExternalControl=1 + +# Enable support for TDLS off-channel operation +# 0 - disable +# 1 - enable +# TDLS off-channel operation will be invoked when there is only one +# TDLS connection. +gEnableTDLSOffChannel=1 + +# Enable or Disable Random MAC (Spoofing) +# 1=Enable (default), 0=Disable +gEnableMacAddrSpoof=1 + +################ Datapath feature set Begin ################ +# Bus bandwidth threshold values in terms of number of packets +gBusBandwidthHighThreshold=2000 +gBusBandwidthMediumThreshold=500 +gBusBandwidthLowThreshold=150 + +# Bus bandwidth compute timeout value in ms +gBusBandwidthComputeInterval=100 + +# VHT Tx/Rx MCS values +# Valid values are 0,1,2. If commented out, the default value is 0. +# 0=MCS0-7, 1=MCS0-8, 2=MCS0-9 +gVhtRxMCS=2 +gVhtTxMCS=2 + +# VHT Tx/Rx MCS values for 2x2 +# Valid values are 0,1,2. If commented out, the default value is 0. +# 0=MCS0-7, 1=MCS0-8, 2=MCS0-9 +gEnable2x2=1 +gVhtRxMCS2x2=2 +gVhtTxMCS2x2=2 + +#IPA config is a bit mask and following are the configurations. +#bit0 IPA Enable +#bit1 IPA PRE Filter enable +#bit2 IPv6 enable +#bit3 IPA Resource Manager (RM) enable +#bit4 IPA Clock scaling enable +#bit5 IPA uC ENABLE +#bit6 IPA uC STA ENABLE +#bit8 IPA Real Time Debugging +gIPAConfig=0x7d +gIPADescSize=800 + +# Set IPA bandwidth levels in mbps +gIPALowBandwidthMbps=100 +gIPAMediumBandwidthMbps=400 +gIPAHighBandwidthMbps=800 + +# Set CPU mask for RPS Rx queue +rpsRxQueueCpuMapList=07 + +# Enable/Disable RX full reorder offload +gReorderOffloadSupported=1 + +# Enable CE classification +# 1 - enable(default) 0 - disable +gCEClassifyEnable=1 + +# Enable Rx handling options +# Rx_thread=1 RPS=2(default for ROME) NAPI=4(default for ihelium) +rx_mode=20 + +# Enable(Tx) fastpath for data traffic. +# 1 - enable(default) 0 - disable +gEnableFastPath=1 + +# This flag enables IP, TCP and UDP checksum offload +# 1 - enable(default) 0 - disable +gEnableIpTcpUdpChecksumOffload=1 + +# Enable TCP Segmentation Offload +# 1 - enable 0 - disable +TSOEnable=1 + +# Enable Generic Receive Offload +# 1 - enable(default) 0 - disable +GROEnable=1 + +# Enable HT MPDU Density +# 4 for 2 micro sec +ght_mpdu_density=4 + +# Enable flow steering to enable multiple CEs for Rx flows. +# Multiple Rx CEs<==>Multiple Rx IRQs<==>probably different CPUs. +# Parallel Rx paths. +# 1 - enable 0 - disable(default) +gEnableFlowSteering=1 + +# Time in microseconds after which a NAPI poll must yield +ce_service_max_yield_time=500 + +#Maximum number of HTT messages to be processed per NAPI poll +ce_service_max_rx_ind_flush=1 + +# Maximum number of MSDUs the firmware will pack in one HTT_T2H_MSG_TYPE_RX_IN_ORD_PADDR_IND +maxMSDUsPerRxInd=8 + +# Use XiaoMi's change instead +# Enable NUD tracking feature +# 1 - enable 0 - disable(default) +# gEnableNUDTracking=1 + +################ Datapath feature set End ################ + +################ NAN feature set start ################### + +# Enable NAN discovery (NAN 1.0) +# 1 - enable 0 - disable(default) +gEnableNanSupport=1 +# Enable NAN Datapath +genable_nan_datapath=1 + +################ NAN feature set end ##################### + +adaptive_dwell_mode_enabled=1 + +hostscan_adaptive_dwell_mode=1 + +adapt_dwell_lpf_weight=80 + +adapt_dwell_wifi_act_threshold=10 + +MAWCEnabled=0 + +# Enable/Disable rtt sta mac randomization +enable_rtt_mac_randomization=1 + +#Enable/Disable SNR monitoring +gEnableSNRMonitoring=1 + +# Enable Runtime PM +gRuntimePM=2 +gRuntimePMDelay=500 + +# Rx thread affinity mask in UL case +RX_THREAD_UL_CPU_AFFINITY_MASK=0xc0 + +AutoChannelSelectWeight=0x00fafafa + +bcast_twt=1 + +dp_tx_ring_size=3072 + +gWmiCreditCount=1 + +# Enable RX buffer pool +dp_rx_buff_prealloc_pool=1 + +#Enable RX FISA +dp_rx_fisa_enable=1 +dp_rx_flow_search_table_size=128 + +legacy_mode_csum_disable=0 + +#Enable Rx refill pool +dp_rx_refill_buff_pool=1 + +# Enable Software latency manager +gEnableSWLM=1 + +# Place FST in CMEM +dp_rx_fst_in_cmem=1 + +# Use QMI path to get LL and station stats +send_ll_and_get_station_stats_over_qmi=1 + +#enable 6GHz support for RTT/LOWI +oem_6g_support_disable=0 + +#####################################Xiaomi ADD: START + +# Set 2.4g channel scan time to 40 +active_max_channel_time_2g=0 +# gActiveMaxChannelTime=40 + +# WLM flags setting for ultralow level, bit9 for BMPS disabled +# bit 0: Avoid scan request from HLOS if setting +# bit 1: Skip DFS channel SCAN if setting +# bit 19/20: 1 to set PCIE in L1SS state(low power mode), 0 to set PCIE in L0 state(active mode) +wlm_latency_flags_ultralow=0x180003 + +#APF: Android Packet Filter +gActiveMcBcBpfMode=1 + +# Assoc failure timeout value +# Code default is 2000 +assoc_failure_timeout=5000 + +# Enable NUD tracking feature +# 0 - disable(default),1 - trigger disconnect, 2 - trigger roaming, +# 3 - trigger roaming, but if roam fails, disconnection +gEnableNUDTracking=3 + +#gGoKeepAlivePeriod/gApKeepAlivePeriod is time to spend to check whether frame +#are succeed to send or not. Hence total effective detection time is +# (gGoLinkMonitorPeriod + gGoKeepAlivePeriod) / +# (gApLinkMonitorPeriod + gApKeepAlivePeriod) +# gGoKeepAlivePeriod = 20 +# gApKeepAlivePeriod = 20 +#Enable Keep alive with non-zero period value +gStaKeepAlivePeriod = 30 + +# Enable ETSI SRD channels by Xiaomi. Qualcom default value is disable +# * BIT 0:- Enable/Disable SRD channels for SAP. +# * BIT 1:- Enable/Disable SRD channels for P2P-GO. +# * BIT 2:- Enable/Disable SRD channels for NAN. +# Code default value is 6. +etsi13_srd_chan_in_master_mode=7 + +#####Roaming +# Sets RSSI preference for 5GHz over 2.4GHz AP +gSelect5GHzMargin=5 + +# Candidate AP minimum RSSI for beacon miss roam trigger +# Code default is -70 +candidate_min_rssi_for_beacon_miss=-83 + +# Dense traffic threshold in kBps +# Code default is 400 +gtraffic_threshold=50 + +#Idle Monitor Roaming: START +# Code default is flase to disable idle roaming +enable_idle_roam=1 +idle_roam_min_rssi=-65 +#Idle Monitor Roaming: END + +#enable/disable FT open feature +# Code default is 1 +enable_ftopen=0 + +# Stop auto-creating twt session +twt_congestion_timeout=0 + +# Disable triggers of data rssi threshold for roam. +# Sometimes have big gap between data rssi and beacon rssi, +# this triggers will Interfere and delay the normal roam. +roam_data_rssi_threshold_triggers=0 + +#VTS SAR test fail as sar version is not match +gEnableSARV1toSARV2=1 + +# This ini is used to give higher priority for 5g scc than dbs. +# It is bitmap per enum policy_mgr_con_mode. +# For example in GO+STA(5G) mode, when TPUT is onfigured as wlan system +# preference option, If 5G SCC needs higher priority than dbs, set it as 8. +g_prefer_5g_scc_to_dbs=8 + +# set modulated DTIM interval +gEnableModulatedDTIM=3 +gMaxLIModulatedDTIM=3 + +# Enable modulated DTIM only for System suspend wow. +# For RTPM wow, the device will stay in DTIM 1 (non-modulated DTIM). +enable_mod_dtim_on_system_suspend=1 + +# Reduce the expiry time for avoid list and black list in drv. +avoid_list_expiry_time=3 +black_list_expiry_time=5 +# Improve threshold to move the Ap from avoid to blacklist +bad_bssid_counter_thresh=7 + +# Enable the sending of ICMP requests to the +# FW at an interval of 200 milliseconds +send_icmp_req_to_fw=200 +icmp_req_to_fw_mark_interval=200 + +# Enable SoftAP on indoor channel, but Xiaomi's patch in driver only +# allow this when STA was connected on the same indoor channel. +gindoor_channel_support=1 + +#Enable max link speed +gReportMaxLinkSpeed=2 + +# Skip tpe consideration +skip_tpe_consideration=1 + +# Disable PCI gen switch +g_enable_pci_gen=0 + +# Configure ILP HW block +# 0: disable +# 1: perf settings +# 2: max power saving +# 3: balanced settings +g_enable_ilp=1 + +# Set sta preference to connect in 80HZ +# gStaPrefer80MHzOver160MHz=1 + +# Station's in-activity time can be extended +# with the APs of specify OUIs. +# 00e04c:Realtek +gActionOUIITOExtension=00e04c 00 01 + +bss_color_collision_det_sta=1 + +gEnableSelfRecovery=1 +#####################################Xiaomi ADD: END + +END + +# Note: Configuration parser would not read anything past the END marker + diff --git a/wifi/fstman.ini b/wifi/fstman.ini new file mode 100644 index 0000000..8f04102 --- /dev/null +++ b/wifi/fstman.ini @@ -0,0 +1,24 @@ +[fst_manager] +ctrl_iface=/data/vendor/wifi/hostapd/global +groups=bond0 + +[bond0] +interfaces=wlan0,wigig0 +mux_type=bonding +mux_ifname=bond0 +mux_managed=1 +mac_address_by=wlan0 +rate_upgrade_master=wlan0 +txqueuelen=100 +rate_upgrade_acl_file=/data/vendor/wifi/fst_rate_upgrade.accept + +[wlan0] +priority=100 +default_llt=3600 + +[wigig0] +priority=110 +wpa_group=GCMP +wpa_pairwise=GCMP +hw_mode=ad +channel=2 diff --git a/wifi/icm.conf b/wifi/icm.conf new file mode 100644 index 0000000..3a5e88a --- /dev/null +++ b/wifi/icm.conf @@ -0,0 +1,116 @@ +# Copyright (c) 2017, 2019 The Linux Foundation. All rights reserved. + +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are +# met: +# * Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# * Redistributions in binary form must reproduce the above +# copyright notice, this list of conditions and the following +# disclaimer in the documentation and/or other materials provided +# with the distribution. +# * Neither the name of The Linux Foundation nor the names of its +# contributors may be used to endorse or promote products derived +# from this software without specific prior written permission. + +# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT +# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS +# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR +# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE +# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN +# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +# icm configuration file + +#number of devices +num_devices=1 + +# Number of Radios +num_radios=1 + +# Communication interface with driver +# options: ioctl OR cfg +walflag=cfg + +# enable daemon +# 0 - disable +# 1 - enable +daemon=0 + +# enable server_mode +# 0 - disable +# 1 - enable +server_mode=0 + +# debug level +# 1 - minor +# 2 - default +# 3 - major +# 4 - critical +debug_level=2 + +# debug mask +# 0x01 - ICM main module +# 0x02 - ICM SCAN module +# 0x04 - ICM_SELELCTOR module +# 0x08 - ICM_UTIL module +# 0x10 - ICM Test module +# 0xFF - Default +debug_module_bitmap=255 + +# socket interface type +# 0 - TCP socket +# 1 - UDP socket +sock_type=1 + +#### Below this, configuration are per interface starting with id_* #### + +# radio interface name +id_0_radio_ifname=phy0 +#id_1_radio_ifname=phy1 +#id_2_radio_ifname=wifi2 + +# device interface name +id_0_dev_ifname=softap0 +#id_1_dev_ifname=p2p0 +#id_2_dev_ifname=ath2 + +# operating band +# 0 - 2.4 GHz band +# 1 - 5 GHz band +id_0_band=0 +id_1_band=1 +#id_2_band=1 + +# PHY specification +# 0 - 11A +# 1 - 11B +# 2 - 11G +# 3 - FH +# 4 - TURBO_A +# 5 - TURBO_G +# 6 - 11NA +# 7 - 11NG +# 8 - 11AC +id_0_phy_spec=7 +id_1_phy_spec=6 +#id_2_physpec=8 + +# channel width +# 0 - HT20 +# 1 - HT40MINUS +# 2 - HT40PLUS +# 3 - HT40 +id_0_channel_width=0 +id_1_channel_width=2 +#id_2_channel_width=0 + +# channel +id_0_channel=6 +id_1_channel=44 +#id_2_channel=36 diff --git a/wifi/p2p_supplicant_overlay.conf b/wifi/p2p_supplicant_overlay.conf index 6c38a45..b2fc330 100644 --- a/wifi/p2p_supplicant_overlay.conf +++ b/wifi/p2p_supplicant_overlay.conf @@ -4,3 +4,7 @@ persistent_reconnect=1 bss_max_count=400 p2p_go_he=1 p2p_6ghz_disable=1 +p2p_chan_list_dfs_disable=0 +p2p_chan_list_only_sta_dfs_enable=0 +p2p_pref_list_dfs_disable=0 +p2p_go_dfs_disable=0 diff --git a/wifi/passpointProfile.conf b/wifi/passpointProfile.conf new file mode 100644 index 0000000..bb894ec --- /dev/null +++ b/wifi/passpointProfile.conf @@ -0,0 +1 @@ +Q29udGVudC1UeXBlOiBtdWx0aXBhcnQvbWl4ZWQ7IGJvdW5kYXJ5PXtib3VuZGFyeX0NCkNvbnRlbnQtVHJhbnNmZXItRW5jb2Rpbmc6IGJhc2U2NA0KDQotLXtib3VuZGFyeX0NCkNvbnRlbnQtVHlwZTogYXBwbGljYXRpb24veC1wYXNzcG9pbnQtcHJvZmlsZQ0KQ29udGVudC1UcmFuc2Zlci1FbmNvZGluZzogYmFzZTY0DQoNClBFMW5iWFJVY21WbElIaHRiRzV6UFNKemVXNWpiV3c2Wkcxa1pHWXhMaklpUGp4V1pYSkVWRVErTVM0eVBDOVdaWEpFVkVRK1BFNXYNClpHVStQRTV2WkdWT1lXMWxQbEJsY2xCeWIzWnBaR1Z5VTNWaWMyTnlhWEIwYVc5dVBDOU9iMlJsVG1GdFpUNDhVbFJRY205d1pYSjANCmFXVnpQanhVZVhCbFBqeEVSRVpPWVcxbFBuVnlianAzWm1FNmJXODZhRzkwYzNCdmRESmtiM1F3TFhCbGNuQnliM1pwWkdWeWMzVmkNCmMyTnlhWEIwYVc5dU9qRXVNRHd2UkVSR1RtRnRaVDQ4TDFSNWNHVStQQzlTVkZCeWIzQmxjblJwWlhNK1BFNXZaR1UrUEU1dlpHVk8NCllXMWxQbWt3TURFOEwwNXZaR1ZPWVcxbFBqeE9iMlJsUGp4T2IyUmxUbUZ0WlQ1SWIyMWxVMUE4TDA1dlpHVk9ZVzFsUGp4T2IyUmwNClBqeE9iMlJsVG1GdFpUNUdjbWxsYm1Sc2VVNWhiV1U4TDA1dlpHVk9ZVzFsUGp4V1lXeDFaVDVsZUdGdVpITWdVMlZqZFhKbElGZHANCkxVWnBQQzlXWVd4MVpUNDhMMDV2WkdVK1BFNXZaR1UrUEU1dlpHVk9ZVzFsUGtaUlJFNDhMMDV2WkdWT1lXMWxQanhXWVd4MVpUNWwNCmVHRnVaSE11WTI5dFBDOVdZV3gxWlQ0OEwwNXZaR1UrUEM5T2IyUmxQanhPYjJSbFBqeE9iMlJsVG1GdFpUNURjbVZrWlc1MGFXRnMNClBDOU9iMlJsVG1GdFpUNDhUbTlrWlQ0OFRtOWtaVTVoYldVK1VtVmhiRzA4TDA1dlpHVk9ZVzFsUGp4V1lXeDFaVDVsZUdGdVpITXUNClkyOXRQQzlXWVd4MVpUNDhMMDV2WkdVK1BFNXZaR1UrUEU1dlpHVk9ZVzFsUGtWNGNHbHlZWFJwYjI1RVlYUmxQQzlPYjJSbFRtRnQNClpUNDhWbUZzZFdVK01qQXpNUzB3T0MweE1sUXdNRG93TURvd01GbzhMMVpoYkhWbFBqd3ZUbTlrWlQ0OFRtOWtaVDQ4VG05a1pVNWgNCmJXVStWWE5sY201aGJXVlFZWE56ZDI5eVpEd3ZUbTlrWlU1aGJXVStQRTV2WkdVK1BFNXZaR1ZPWVcxbFBsVnpaWEp1WVcxbFBDOU8NCmIyUmxUbUZ0WlQ0OFZtRnNkV1UrUlZoQkxWZzZOREE1TmtSRE0wTTJPVVE1TkRoR05EZzFOREJHTkVFMFFrVkRRVUpET1RBOEwxWmgNCmJIVmxQand2VG05a1pUNDhUbTlrWlQ0OFRtOWtaVTVoYldVK1VHRnpjM2R2Y21ROEwwNXZaR1ZPWVcxbFBqeFdZV3gxWlQ1VU0xSjMNClRtNU9SRmxVVW5GTmFrSkRUVzEwYmxwRlRteFBTR2QzVVZFOVBUd3ZWbUZzZFdVK1BDOU9iMlJsUGp4T2IyUmxQanhPYjJSbFRtRnQNClpUNUZRVkJOWlhSb2IyUThMMDV2WkdWT1lXMWxQanhPYjJSbFBqeE9iMlJsVG1GdFpUNUZRVkJVZVhCbFBDOU9iMlJsVG1GdFpUNDgNClZtRnNkV1UrTWpFOEwxWmhiSFZsUGp3dlRtOWtaVDQ4VG05a1pUNDhUbTlrWlU1aGJXVStTVzV1WlhKTlpYUm9iMlE4TDA1dlpHVk8NCllXMWxQanhXWVd4MVpUNU5VeTFEU0VGUUxWWXlQQzlXWVd4MVpUNDhMMDV2WkdVK1BDOU9iMlJsUGp3dlRtOWtaVDQ4TDA1dlpHVSsNClBDOU9iMlJsUGp3dlRtOWtaVDQ4TDAxbmJYUlVjbVZsUGc9PQ0KLS17Ym91bmRhcnl9DQpDb250ZW50LVR5cGU6IGFwcGxpY2F0aW9uL3gteDUwOS1jYS1jZXJ0DQpDb250ZW50LVRyYW5zZmVyLUVuY29kaW5nOiBiYXNlNjQNCg0KTFMwdExTMUNSVWRKVGlCRFJWSlVTVVpKUTBGVVJTMHRMUzB0Q2sxSlNVUnlla05EUVhCbFowRjNTVUpCWjBsUlEwUjJaMVp3UWtOUw0KY2tkb1pGZHlTbGRhU0VoVGFrRk9RbWRyY1docmFVYzVkekJDUVZGVlJrRkVRbWdLVFZGemQwTlJXVVJXVVZGSFJYZEtWbFY2UlZaTg0KUWsxSFFURlZSVU5vVFUxU1IyeHVZVlZPYkdOdVVXZFRWelZxVFZKcmQwWjNXVVJXVVZGTVJYaENNd3BrTTJOMVdrZHNibUZYVG14ag0KYmxGMVdUSTVkRTFUUVhkSVoxbEVWbEZSUkVWNFpFVmhWMlJ3VVRKV2VXUkRRa2hpUnpscFdWZDNaMVZ0T1haa1EwSkVDbEZVUVdWRw0KZHpCM1RtcEZlRTFVUVhkTlJFRjNUVVJDWVVaM01IcE5WRVY0VFZSQmQwMUVRWGROUkVKaFRVZEZlRU42UVVwQ1owNVdRa0ZaVkVGcw0KVmxRS1RWSlZkMFYzV1VSV1VWRkxSWGQ0UldGWFpIQlJNbFo1WkVOQ1NtSnRUWGhIVkVGWVFtZE9Wa0pCYzFSRlNHUXpaSGsxYTJGWA0KWkhCWk1sWjVaRU0xYWdwaU1qQjRTVVJCWlVKblRsWkNRVTFVUmpCU2NGb3liRVJhV0Vvd1NVVmtjMkl5U21oaVEwSlRZakk1TUVsRg0KVGtKTlNVbENTV3BCVGtKbmEzRm9hMmxIQ2psM01FSkJVVVZHUVVGUFEwRlJPRUZOU1VsQ1EyZExRMEZSUlVFMGFuWm9SVmhNWlhGTA0KVkZSdk1XVnhWVXRMVUVNelpWRjVZVXRzTjJoTVQyeHNjMElLUTFORVRVRmFUMjVVYWtNelZTOWtSSGhIYTBGV05UTnBhbE5NWkdoMw0KV2tGQlNVVktlbk0wWW1jM0wyWjZWSFI0VW5WTVYxcHpZMFp6TTFsdVJtODVOd3B1YURaV1ptVTJNMU5MVFVreWRHRjJaV2QzTlVKdA0KVmk5VGJEQm1ka0ptTkhFM04zVkxUbVF3WmpOd05HMVdiVVpoUnpWalNYcEtUSFl3TjBFMlJuQjBDalF6UXk5a2VFTXZMMEZJTW1oaw0KYlc5U1FrSlpUWEZzTVVkT1dGSnZjalZJTkdsa2NUbEtiM29yUld0SldVbDJWVmczVVRab1RDdG9jV3R3VFdaVU4xQUtWREU1YzJScw0KTm1kVGVtVlNiblIzYVRWdE0wOUdRbkZQWVhOMkszcGlUVlZhUW1aSVYzbHRaVTF5TDNrM2RuSlVRekJNVlhFM1pFSk5kRzlOTVU4dg0KTkFwblpGYzNhbFpuTDNSU2RtOVRVMmxwWTA1dmVFSk9Nek56YUdKNVZFRndUMEkyYW5SVGFqRmxkRmdyYW10TlQzWktkMGxFUVZGQg0KUW04eVRYZFpWRUZQQ2tKblRsWklVVGhDUVdZNFJVSkJUVU5CV1ZsM1JIZFpSRlpTTUZSQlVVZ3ZRa0ZWZDBGM1JVSXZla0ZrUW1kTw0KVmtoUk5FVkdaMUZWUVRrMVVVNVdZbElLVkV4MGJUaExVR2xIZUhaRWJEZEpPVEJXVlhkSWQxbEVWbEl3YWtKQ1ozZEdiMEZWUVRrMQ0KVVU1V1lsSlVUSFJ0T0V0UWFVZDRka1JzTjBrNU1GWlZkd3BFVVZsS1MyOWFTV2gyWTA1QlVVVkdRbEZCUkdkblJVSkJUWFZqVGpadw0KU1VWNFNVc3JkREZGYmtVNVUzTlFWR1p5WjFReFpWaHJTVzk1VVZrdlJYTnlDbWhOUVhSMVpGaElMM1pVUWtneGFreDFSekpqWlc1VQ0KYm0xRGJYSkZZbGhxWTB0RGFIcFZlVWx0V2s5TmExaEVhWEYzT0dOMmNFOXdMekpRVmpWQlpHY0tNRFpQTDI1V2MwbzRaRmRQTkRGUQ0KTUdwdFVEWlFObVppZEVkaVpsbHRZbGN3VnpWQ2FtWkpkSFJsY0ROVGNDdGtWMDlKY2xkalFrRkpLekIwUzBsS1JncFFibXhWYTJsaA0KV1RSSlFrbHhSR1oyT0U1YU5WbENZbVZ5VDJkUGVsYzJjMUpDWXpSTU1HNWhORlZWSzB0eWF6SlZPRGcyVlVGaU0weDFha1ZXTUd4eg0KQ2xsVFJWa3hVVk4wWlVSM2MwOXZRbkp3SzNWMlJsSlVjREpKYmtKMVZHaHpOSEJHYzJsMk9XdDFXR05zVm5wRVFVZDVVMm8wWkhwdw0KTXpCa09IUmlVV3NLUTBGVmR6ZERNamxETnpsR2RqRkROWEZtVUhKdFFVVlRjbU5wU1hod1p6QllOREJMVUUxaWNERmFWMVppWkRROQ0KQ2kwdExTMHRSVTVFSUVORlVsUkpSa2xEUVZSRkxTMHRMUzBLDQotLXtib3VuZGFyeX0tLQ0K \ No newline at end of file diff --git a/wifi/vendor_cmd.xml b/wifi/vendor_cmd.xml new file mode 100644 index 0000000..09440e3 --- /dev/null +++ b/wifi/vendor_cmd.xml @@ -0,0 +1,967 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/wifi/wpa_supplicant_overlay.conf b/wifi/wpa_supplicant_overlay.conf index c73546e..2b126e8 100644 --- a/wifi/wpa_supplicant_overlay.conf +++ b/wifi/wpa_supplicant_overlay.conf @@ -6,3 +6,7 @@ bss_max_count=400 interworking=1 config_methods=virtual_display virtual_push_button keypad driver_param="no_rrm=1" +p2p_chan_list_dfs_disable=0 +p2p_chan_list_only_sta_dfs_enable=0 +p2p_pref_list_dfs_disable=0 +p2p_go_dfs_disable=0