Compare commits
26 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| cfe430317c | |||
| 5c903beffe | |||
| df8a25e71e | |||
| 80bd1711b6 | |||
| d65a74d215 | |||
| 8be10dc365 | |||
| f619f5fa22 | |||
| b8bb50c373 | |||
| 5dd086e59f | |||
| c6a9457327 | |||
| 600c0fb4c6 | |||
|
|
98b1cfb987 | ||
|
|
afe8ea17c8 | ||
|
|
d823fe125a | ||
|
|
88f247c37c | ||
|
|
0c0af3ae2e | ||
|
|
4e271e6089 | ||
|
|
6ce87e3969 | ||
|
|
337cd451ff | ||
|
|
cda320a0f4 | ||
|
|
e49c657396 | ||
|
|
2209102dcf | ||
|
|
bf7cbe860e | ||
|
|
7eb3817a89 | ||
|
|
1850e177bc | ||
|
|
0cc9f00781 |
@@ -6,8 +6,3 @@
|
||||
|
||||
PRODUCT_MAKEFILES := \
|
||||
$(LOCAL_DIR)/lineage_umi.mk
|
||||
|
||||
COMMON_LUNCH_CHOICES := \
|
||||
lineage_umi-user \
|
||||
lineage_umi-userdebug \
|
||||
lineage_umi-eng
|
||||
|
||||
@@ -12,16 +12,9 @@ DEVICE_PATH := device/xiaomi/umi
|
||||
# Display
|
||||
TARGET_SCREEN_DENSITY := 440
|
||||
|
||||
# Init
|
||||
TARGET_INIT_VENDOR_LIB := //$(DEVICE_PATH):init_xiaomi_umi
|
||||
TARGET_RECOVERY_DEVICE_MODULES := init_xiaomi_umi
|
||||
|
||||
# OTA assert
|
||||
TARGET_OTA_ASSERT_DEVICE := umi
|
||||
|
||||
# PowerShare
|
||||
TARGET_POWERSHARE_PATH := /sys/devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-02/c440000.qcom,spmi:qcom,pm8150b@2:qcom,qpnp-smb5/power_supply/wireless/reverse_chg_mode
|
||||
|
||||
# Properties
|
||||
TARGET_VENDOR_PROP += $(DEVICE_PATH)/vendor.prop
|
||||
|
||||
|
||||
4
configs/sensors/hals.conf
Normal file
4
configs/sensors/hals.conf
Normal file
@@ -0,0 +1,4 @@
|
||||
sensors.elliptic.so
|
||||
sensors.ssc.so
|
||||
sensors.touch.so
|
||||
sensors.udfps.so
|
||||
23
device.mk
23
device.mk
@@ -4,9 +4,6 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
# Fingerprint
|
||||
TARGET_HAS_UDFPS := true
|
||||
|
||||
# Inherit from sm8250-common
|
||||
$(call inherit-product, device/xiaomi/sm8250-common/kona.mk)
|
||||
|
||||
@@ -18,10 +15,6 @@ PRODUCT_AAPT_PREF_CONFIG := xxhdpi
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(call find-copy-subdir-files,*,$(LOCAL_PATH)/audio/,$(TARGET_COPY_OUT_VENDOR)/etc)
|
||||
|
||||
# Boot animation
|
||||
TARGET_SCREEN_HEIGHT := 2340
|
||||
TARGET_SCREEN_WIDTH := 1080
|
||||
|
||||
# Camera
|
||||
PRODUCT_PACKAGES += \
|
||||
libMegviiFacepp-0.5.2 \
|
||||
@@ -32,16 +25,14 @@ PRODUCT_PACKAGES += \
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(call find-copy-subdir-files,qdcm_calib_data_*.xml,$(LOCAL_PATH)/qdcm/,$(TARGET_COPY_OUT_VENDOR)/etc/)
|
||||
|
||||
# Init
|
||||
$(call soong_config_set,xiaomi_kona,variant_lib,//$(LOCAL_PATH):libvariant_xiaomi_umi)
|
||||
|
||||
# Overlays
|
||||
DEVICE_PACKAGE_OVERLAYS += \
|
||||
$(LOCAL_PATH)/overlay \
|
||||
$(LOCAL_PATH)/overlay-lineage
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
xiaomi_umi_hwlevel_default_overlay \
|
||||
xiaomi_umi_hwlevel_p01_overlay \
|
||||
xiaomi_umi_hwlevel_p1_overlay
|
||||
|
||||
# Permissions
|
||||
PRODUCT_COPY_FILES += \
|
||||
frameworks/native/data/etc/android.hardware.sensor.barometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.barometer.xml
|
||||
@@ -51,12 +42,18 @@ PRODUCT_SHIPPING_API_LEVEL := 29
|
||||
|
||||
# PowerShare
|
||||
PRODUCT_PACKAGES += \
|
||||
vendor.lineage.powershare@1.0-service.default
|
||||
vendor.lineage.powershare-service.default
|
||||
|
||||
$(call soong_config_set,lineage_powershare,powershare_path,/sys/class/power_supply/wireless/reverse_chg_mode)
|
||||
|
||||
# Rootdir
|
||||
PRODUCT_PACKAGES += \
|
||||
init.device.rc
|
||||
|
||||
# Sensors
|
||||
PRODUCT_COPY_FILES += \
|
||||
$(LOCAL_PATH)/configs/sensors/hals.conf:$(TARGET_COPY_OUT_VENDOR)/etc/sensors/hals.conf
|
||||
|
||||
# Soong namespaces
|
||||
PRODUCT_SOONG_NAMESPACES += \
|
||||
$(LOCAL_PATH)
|
||||
|
||||
@@ -4,31 +4,34 @@
|
||||
"target_path": "device/xiaomi/sm8250-common"
|
||||
},
|
||||
{
|
||||
"repository": "vendor_xiaomi_sm8250-common",
|
||||
"target_path": "vendor/xiaomi/sm8250-common"
|
||||
"repository": "SM8250-Development/vendor_xiaomi_sm8250-common",
|
||||
"target_path": "vendor/xiaomi/sm8250-common",
|
||||
"remote": "gitlab"
|
||||
},
|
||||
{
|
||||
"repository": "vendor_xiaomi_umi",
|
||||
"target_path": "vendor/xiaomi/umi"
|
||||
"repository": "SM8250-Development/vendor_xiaomi_umi",
|
||||
"target_path": "vendor/xiaomi/umi",
|
||||
"remote": "gitlab"
|
||||
},
|
||||
{
|
||||
"repository": "SM8250-Development/kernel_xiaomi_sm8250",
|
||||
"target_path": "kernel/xiaomi/sm8250",
|
||||
"remote": "github-non-los"
|
||||
},
|
||||
{
|
||||
"repository": "hardware_xiaomi",
|
||||
"target_path": "hardware/xiaomi"
|
||||
},
|
||||
{
|
||||
"repository": "packages_apps_ViPER4AndroidFX",
|
||||
"target_path": "packages/apps/ViPER4AndroidFX"
|
||||
},
|
||||
{
|
||||
"repository": "TechPanelGM/android_kernel_xiaomi_sm8250-MagicTime",
|
||||
"target_path": "kernel/xiaomi/sm8250",
|
||||
"repository": "Xiaomi-Development/device_xiaomi_camera",
|
||||
"target_path": "device/xiaomi/camera",
|
||||
"remote": "github-non-los",
|
||||
"branch": "magictime-new"
|
||||
"branch": "aosp-16"
|
||||
},
|
||||
{
|
||||
"repository": "TechPanelGM/vendor_xiaomi_MiuiCamera",
|
||||
"target_path": "vendor/xiaomi/miuicamera-sm8250",
|
||||
"remote": "github-non-los",
|
||||
"branch": "14"
|
||||
{
|
||||
"repository": "xiaomi-development/vendor_xiaomi_camera",
|
||||
"target_path": "vendor/xiaomi/camera",
|
||||
"remote": "gitlab",
|
||||
"branch": "aosp-16"
|
||||
}
|
||||
]
|
||||
|
||||
75
extract-files.py
Executable file
75
extract-files.py
Executable file
@@ -0,0 +1,75 @@
|
||||
#!/usr/bin/env -S PYTHONPATH=../../../tools/extract-utils python3
|
||||
#
|
||||
# SPDX-FileCopyrightText: 2024 The LineageOS Project
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
from extract_utils.fixups_blob import (
|
||||
blob_fixup,
|
||||
blob_fixups_user_type,
|
||||
)
|
||||
from extract_utils.fixups_lib import (
|
||||
lib_fixups,
|
||||
)
|
||||
from extract_utils.main import (
|
||||
ExtractUtils,
|
||||
ExtractUtilsModule,
|
||||
)
|
||||
|
||||
blob_fixups: blob_fixups_user_type = {
|
||||
'vendor/etc/init/init.batterysecret.rc': blob_fixup()
|
||||
.regex_replace('.*seclabel u:r:batterysecret:s0\n', ''),
|
||||
'vendor/lib/libaudioroute_ext.so': blob_fixup()
|
||||
.replace_needed('libaudioroute.so', 'libaudioroute-v34.so'),
|
||||
'vendor/lib/hw/audio.primary.umi.so': blob_fixup()
|
||||
.binary_regex_replace(
|
||||
b'/vendor/lib/liba2dpoffload.so',
|
||||
b'liba2dpoffload_umi.so\x00\x00\x00\x00\x00\x00\x00\x00',
|
||||
)
|
||||
.replace_needed('libaudioroute.so', 'libaudioroute-v34.so'),
|
||||
'vendor/lib64/camera/components/com.mi.node.watermark.so': blob_fixup()
|
||||
.add_needed('libpiex_shim.so'),
|
||||
(
|
||||
'vendor/lib64/libMIAIHDRhvx_interface.so',
|
||||
'vendor/lib64/libarcsoft_hdrplus_hvx_stub.so',
|
||||
'vendor/lib64/libarcsoft_super_night_raw.so',
|
||||
'vendor/lib64/libmialgo_rfs.so',
|
||||
): blob_fixup()
|
||||
.clear_symbol_version('remote_handle_close')
|
||||
.clear_symbol_version('remote_handle_invoke')
|
||||
.clear_symbol_version('remote_handle_open')
|
||||
.clear_symbol_version('remote_register_buf')
|
||||
.clear_symbol_version('remote_register_buf_attr'),
|
||||
(
|
||||
'vendor/lib64/libalAILDC.so',
|
||||
'vendor/lib64/libalLDC.so',
|
||||
'vendor/lib64/libalhLDC.so',
|
||||
): blob_fixup()
|
||||
.clear_symbol_version('AHardwareBuffer_allocate')
|
||||
.clear_symbol_version('AHardwareBuffer_describe')
|
||||
.clear_symbol_version('AHardwareBuffer_lock')
|
||||
.clear_symbol_version('AHardwareBuffer_release')
|
||||
.clear_symbol_version('AHardwareBuffer_unlock'),
|
||||
'vendor/lib64/vendor.qti.hardware.camera.postproc@1.0-service-impl.so': blob_fixup()
|
||||
.binary_regex_replace(b'\x9A\x0A\x00\x94', b'\x1F\x20\x03\xD5'),
|
||||
} # fmt: skip
|
||||
|
||||
namespace_imports = [
|
||||
'hardware/qcom-caf/common/libqti-perfd-client',
|
||||
'hardware/xiaomi',
|
||||
'vendor/qcom/opensource/display',
|
||||
'vendor/xiaomi/sm8250-common',
|
||||
'hardware/qcom-caf/sm8250',
|
||||
]
|
||||
|
||||
module = ExtractUtilsModule(
|
||||
'umi',
|
||||
'xiaomi',
|
||||
blob_fixups=blob_fixups,
|
||||
lib_fixups=lib_fixups,
|
||||
namespace_imports=namespace_imports,
|
||||
)
|
||||
|
||||
if __name__ == '__main__':
|
||||
utils = ExtractUtils.device(module)
|
||||
utils.run()
|
||||
@@ -1,51 +0,0 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# SPDX-FileCopyrightText: 2016 The CyanogenMod Project
|
||||
# SPDX-FileCopyrightText: 2017-2024 The LineageOS Project
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
function blob_fixup() {
|
||||
case "${1}" in
|
||||
vendor/etc/init/init.batterysecret.rc)
|
||||
[ "$2" = "" ] && return 0
|
||||
sed -i "/seclabel u:r:batterysecret:s0/d" "${2}"
|
||||
;;
|
||||
vendor/lib/hw/audio.primary.umi.so)
|
||||
[ "$2" = "" ] && return 0
|
||||
sed -i "s|/vendor/lib/liba2dpoffload\.so|liba2dpoffload_umi\.so\x00\x00\x00\x00\x00\x00\x00\x00|g" "${2}"
|
||||
;;
|
||||
vendor/lib64/camera/components/com.mi.node.watermark.so)
|
||||
[ "$2" = "" ] && return 0
|
||||
grep -q "libpiex_shim.so" "${2}" || "${PATCHELF}" --add-needed "libpiex_shim.so" "${2}"
|
||||
;;
|
||||
vendor/lib64/vendor.qti.hardware.camera.postproc@1.0-service-impl.so)
|
||||
[ "$2" = "" ] && return 0
|
||||
"${SIGSCAN}" -p "9A 0A 00 94" -P "1F 20 03 D5" -f "${2}"
|
||||
;;
|
||||
*)
|
||||
return 1
|
||||
;;
|
||||
esac
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
function blob_fixup_dry() {
|
||||
blob_fixup "$1" ""
|
||||
}
|
||||
|
||||
# If we're being sourced by the common script that we called,
|
||||
# stop right here. No need to go down the rabbit hole.
|
||||
if [ "${BASH_SOURCE[0]}" != "${0}" ]; then
|
||||
return
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
export DEVICE=umi
|
||||
export DEVICE_COMMON=sm8250-common
|
||||
export VENDOR=xiaomi
|
||||
export VENDOR_COMMON=${VENDOR}
|
||||
|
||||
"./../../${VENDOR_COMMON}/${DEVICE_COMMON}/extract-files.sh" "$@"
|
||||
@@ -1,13 +1,12 @@
|
||||
//
|
||||
// Copyright (C) 2021 The LineageOS Project
|
||||
// Copyright (C) 2021-2025 The LineageOS Project
|
||||
//
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
//
|
||||
|
||||
cc_library_static {
|
||||
name: "init_xiaomi_umi",
|
||||
srcs: ["init_xiaomi_umi.cpp"],
|
||||
whole_static_libs: ["//device/xiaomi/sm8250-common:libinit_xiaomi_kona"],
|
||||
include_dirs: ["system/core/init"],
|
||||
name: "libvariant_xiaomi_umi",
|
||||
srcs: ["libvariant_xiaomi_umi.cpp"],
|
||||
header_libs: ["//device/xiaomi/sm8250-common:libvariant_headers"],
|
||||
recovery_available: true,
|
||||
}
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
/*
|
||||
* Copyright (C) 2021 The LineageOS Project
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <libinit_dalvik_heap.h>
|
||||
#include <libinit_variant.h>
|
||||
|
||||
#include "vendor_init.h"
|
||||
|
||||
static const variant_info_t umi_info = {
|
||||
.hwc_value = "",
|
||||
.sku_value = "",
|
||||
|
||||
.brand = "Xiaomi",
|
||||
.device = "umi",
|
||||
.marketname = "Xiaomi Mi 10",
|
||||
.model = "Mi 10",
|
||||
.build_fingerprint = "Xiaomi/umi_global/umi:13/TKQ1.221114.001/V816.0.5.0.TJBCNXM:user/release-keys",
|
||||
.nfc = true,
|
||||
};
|
||||
|
||||
void vendor_load_properties() {
|
||||
set_variant_props(umi_info);
|
||||
set_dalvik_heap();
|
||||
}
|
||||
24
libinit/libvariant_xiaomi_umi.cpp
Normal file
24
libinit/libvariant_xiaomi_umi.cpp
Normal file
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* Copyright (C) 2021-2025 The LineageOS Project
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <libvariant.h>
|
||||
|
||||
static const variant_info umi_info = {
|
||||
.hwc_value = "",
|
||||
.sku_value = "",
|
||||
|
||||
.brand = "Xiaomi",
|
||||
.device = "umi",
|
||||
.marketname = "",
|
||||
.model = "Mi 10",
|
||||
.build_fingerprint = "Xiaomi/umi_global/umi:13/TKQ1.221114.001/V816.0.3.0.TJBMIXM:user/release-keys",
|
||||
|
||||
.nfc = true,
|
||||
};
|
||||
|
||||
const std::vector<variant_info> variants = {
|
||||
umi_info,
|
||||
};
|
||||
@@ -14,28 +14,25 @@ $(call inherit-product, vendor/lineage/config/common_full_phone.mk)
|
||||
# Inherit from umi device
|
||||
$(call inherit-product, device/xiaomi/umi/device.mk)
|
||||
|
||||
# Extra Packages
|
||||
$(call inherit-product, vendor/xiaomi/miuicamera-sm8250/miuicamera.mk) # HolyBear Leica camera
|
||||
$(call inherit-product, packages/apps/ViPER4AndroidFX/config.mk) # ViPER4AndroidFX
|
||||
# Camera
|
||||
include device/xiaomi/camera/miuicamera.mk
|
||||
|
||||
# Include Vendor Keys
|
||||
include vendor/evolution-priv/keys/keys.mk
|
||||
# Build Flags
|
||||
TARGET_SCREEN_HEIGHT := 2340
|
||||
TARGET_SCREEN_WIDTH := 1080
|
||||
TARGET_USES_MINI_GAPPS := true
|
||||
TARGET_BUILD_DEVICE_AS_WEBCAM := true
|
||||
TARGET_HAS_UDFPS := true
|
||||
TARGET_INCLUDE_ACCORD := false
|
||||
BUILD_BCR := true
|
||||
|
||||
# Extra Tags
|
||||
TARGET_HAS_UDFPS := true
|
||||
BUILD_BCR := true
|
||||
WITH_GMS := true
|
||||
|
||||
# Device Details
|
||||
PRODUCT_NAME := evolution_umi
|
||||
PRODUCT_DEVICE := umi
|
||||
PRODUCT_MANUFACTURER := Xiaomi
|
||||
PRODUCT_BRAND := Xiaomi
|
||||
PRODUCT_MODEL := Mi 10
|
||||
PRODUCT_NAME := lineage_umi
|
||||
PRODUCT_DEVICE := umi
|
||||
PRODUCT_MANUFACTURER := Xiaomi
|
||||
PRODUCT_BRAND := Xiaomi
|
||||
PRODUCT_MODEL := Mi 10
|
||||
|
||||
PRODUCT_GMS_CLIENTID_BASE := android-xiaomi
|
||||
|
||||
PRODUCT_BUILD_PROP_OVERRIDES += \
|
||||
PRIVATE_BUILD_DESC="umi-user 13 TKQ1.221114.001 V816.0.5.0.TJBCNXM release-keys"
|
||||
|
||||
BUILD_FINGERPRINT := Xiaomi/umi_global/umi:13/TKQ1.221114.001/V816.0.5.0.TJBCNXM:user/release-keys
|
||||
BuildDesc="umi-user 13 TKQ1.221114.001 V816.0.3.0.TJBMIXM release-keys" \
|
||||
|
||||
@@ -740,28 +740,11 @@
|
||||
<!-- How long it takes for the HW to start illuminating after the illumination is requested. -->
|
||||
<integer name="config_udfps_illumination_transition_ms">0</integer>
|
||||
|
||||
<!-- The properties of a UDFPS sensor in pixels, in the order listed below: -->
|
||||
<integer-array name="config_udfps_sensor_props" translatable="false" >
|
||||
<!--
|
||||
<item>sensorLocationX</item>
|
||||
<item>sensorLocationY</item>
|
||||
<item>sensorRadius</item>
|
||||
-->
|
||||
<item>539</item>
|
||||
<item>1907</item>
|
||||
<item>99</item>
|
||||
</integer-array>
|
||||
|
||||
<!-- Type of the udfps long press sensor. Empty if long press is not supported. -->
|
||||
<string name="config_dozeUdfpsLongPressSensorType" translatable="false">org.lineageos.sensor.udfps</string>
|
||||
|
||||
<!-- Flag specifying whether VoLTE is available on device -->
|
||||
<bool name="config_device_volte_available">true</bool>
|
||||
|
||||
<!-- Flag specifying whether VoLTE should be available for carrier: independent of
|
||||
carrier provisioning. If false: hard disabled. If true: then depends on carrier
|
||||
provisioning, availability etc -->
|
||||
<bool name="config_carrier_volte_available">true</bool>
|
||||
<!-- Whether to enable fp unlock when screen turns off on udfps devices -->
|
||||
<bool name="config_screen_off_udfps_enabled">true</bool>
|
||||
|
||||
<!-- The bounding path of the cutout region of the main built-in display.
|
||||
Must either be empty if there is no cutout region, or a string that is parsable by
|
||||
|
||||
@@ -21,28 +21,21 @@
|
||||
for different hardware and product builds. Do not translate. -->
|
||||
|
||||
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
||||
|
||||
<!-- Whether Pixel props is enabled -->
|
||||
<bool name="config_enablePixelProps">true</bool>
|
||||
|
||||
<!-- Whether devices suports in-display fingerprint when screen is off -->
|
||||
<bool name="config_supportScreenOffUdfps">true</bool>
|
||||
|
||||
<!-- Pocket Lock -->
|
||||
<bool name="config_pocketModeSupported">true</bool>
|
||||
|
||||
<!-- Path to fast charging status file to detect whether an oem fast charger is active -->
|
||||
<!-- <string name="config_oemFastChargerStatusPath" translatable="false"></string> -->
|
||||
|
||||
<!-- Path to fast charging status file to detect whether an oem fast charger is active -->
|
||||
<string name="config_oemFastChargerStatusPath" translatable="false">/sys/class/power_supply/bms/fastcharge_mode</string>
|
||||
|
||||
<!-- Expected value from fast charging status file -->
|
||||
<string name="config_oemFastChargerStatusValue" translatable="false">1</string>
|
||||
|
||||
<!-- Defines the sysfs attribute path used by the device
|
||||
to enable/disable DC dimming. -->
|
||||
<!-- Defines the sysfs attribute path used by the device to enable/disable DC dimming. -->
|
||||
<string name="config_deviceDcDimmingSysfsNode">/sys/devices/platform/soc/soc:qcom,dsi-display-primary/dimlayer_exposure</string>
|
||||
|
||||
<!-- Defines the value used by the device sysfs node
|
||||
to enable DC dimming -->
|
||||
<string name="config_deviceDcDimmingEnableValue">0</string>
|
||||
<!-- Defines the value used by the device sysfs node to enable DC dimming -->
|
||||
<string name="config_deviceDcDimmingEnableValue">1</string>
|
||||
</resources>
|
||||
|
||||
@@ -11,10 +11,6 @@
|
||||
limitations under the License.
|
||||
-->
|
||||
<resources>
|
||||
<!-- Battery Health -->
|
||||
<string name="config_batteryRemainingCapacityNode">/sys/class/power_supply/bms/charge_full</string>
|
||||
<string name="config_batteryDesignCapacityNode">/sys/class/power_supply/bms/charge_full_design</string>
|
||||
|
||||
<!-- The number of vibration intensity levels supported by the device.
|
||||
Note that this should correspond to the ability to vary the vibration amplitude, with
|
||||
enough dynamic range to have at least as many distinct intensity levels as defined here.
|
||||
@@ -45,5 +41,4 @@
|
||||
|
||||
<!-- Whether to display Cloned Apps page in Settings (Settings > Apps > Cloned Apps).-->
|
||||
<bool name="config_cloned_apps_page_enabled">true</bool>
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Unpinned blobs from umi-user 13 RKQ1.211001.001 V14.0.5.0.TJBMIXM release-keys
|
||||
# Unpinned blobs from umi-user 13 TKQ1.221114.001 V816.0.3.0.TJBMIXM release-keys
|
||||
|
||||
# ACDB
|
||||
vendor/etc/acdbdata/Tutu/Tutu_Bluetooth_cal.acdb
|
||||
@@ -131,14 +131,14 @@ vendor/lib64/com.qti.feature2.softispsupernight.so
|
||||
vendor/lib64/com.qti.feature2.sr.so
|
||||
vendor/lib64/com.qti.feature2.stub.so
|
||||
vendor/lib64/com.qti.feature2.swmf.so
|
||||
vendor/lib64/libMIAIHDRhvx_interface.so;DISABLE_CHECKELF
|
||||
vendor/lib64/libMIAIHDRhvx_interface.so
|
||||
vendor/lib64/libSNPE.so
|
||||
vendor/lib64/libalAILDC.so;DISABLE_CHECKELF
|
||||
vendor/lib64/libalLDC.so;DISABLE_CHECKELF
|
||||
vendor/lib64/libalhLDC.so;DISABLE_CHECKELF
|
||||
vendor/lib64/libalAILDC.so
|
||||
vendor/lib64/libalCFR.so
|
||||
vendor/lib64/libalLDC.so
|
||||
vendor/lib64/libalhLDC.so
|
||||
vendor/lib64/libarcdualcamsat.so
|
||||
vendor/lib64/libarcmulticamsat.so
|
||||
vendor/lib64/libarcsat.so
|
||||
vendor/lib64/libarcsoft_beautyshot.so
|
||||
vendor/lib64/libarcsoft_bodyslim.so
|
||||
vendor/lib64/libarcsoft_distortion_correction.so
|
||||
@@ -147,12 +147,12 @@ vendor/lib64/libarcsoft_dualcam_refocus_front.so
|
||||
vendor/lib64/libarcsoft_dualcam_refocus_rear_t.so
|
||||
vendor/lib64/libarcsoft_dualcam_refocus_rear_w.so
|
||||
vendor/lib64/libarcsoft_hdr_detection.so
|
||||
vendor/lib64/libarcsoft_hdrplus_hvx_stub.so;DISABLE_CHECKELF
|
||||
vendor/lib64/libarcsoft_hdrplus_hvx_stub.so
|
||||
vendor/lib64/libarcsoft_high_dynamic_range.so
|
||||
vendor/lib64/libarcsoft_portrait_lighting.so
|
||||
vendor/lib64/libarcsoft_portrait_lighting_c.so
|
||||
vendor/lib64/libarcsoft_preview_deflicker.so
|
||||
vendor/lib64/libarcsoft_super_night_raw.so;DISABLE_CHECKELF
|
||||
vendor/lib64/libarcsoft_super_night_raw.so
|
||||
vendor/lib64/libarcsoft_superportrait.so
|
||||
vendor/lib64/libc++_shared.so
|
||||
vendor/lib64/libcamera_dirty.so
|
||||
@@ -171,11 +171,15 @@ vendor/lib64/libdualcam_video_optical_zoom.so
|
||||
vendor/lib64/libflaw.so
|
||||
vendor/lib64/libfocus.so
|
||||
vendor/lib64/libft2vendor.so
|
||||
vendor/lib64/libHalSuperSensorServer.so
|
||||
vendor/lib64/libhta.so
|
||||
vendor/lib64/libipebpsstriping.so
|
||||
vendor/lib64/libmiai_deblur.so
|
||||
vendor/lib64/libmialgoengine.so
|
||||
vendor/lib64/libmialgo_ie_capture.so
|
||||
vendor/lib64/libmialgo_ie_preview.so
|
||||
vendor/lib64/libmialgo_image_colourkeeping.so
|
||||
vendor/lib64/libmialgo_rfs.so;DISABLE_CHECKELF
|
||||
vendor/lib64/libmialgo_rfs.so
|
||||
vendor/lib64/libmialgo_sd.so
|
||||
vendor/lib64/libmialgo_utils.so
|
||||
vendor/lib64/libmialgo_video_colourkeeping.so
|
||||
@@ -190,6 +194,7 @@ vendor/lib64/libmulticam_video_optical_zoom.so
|
||||
vendor/lib64/libnpu.so
|
||||
vendor/lib64/libofflinelog.so
|
||||
vendor/lib64/libos.so
|
||||
vendor/lib64/librelight_only.so
|
||||
vendor/lib64/libremosaic_wrapper.so
|
||||
vendor/lib64/libremosaichvx_stub.so
|
||||
vendor/lib64/libremosaiclib.so
|
||||
@@ -201,6 +206,8 @@ vendor/lib64/libsnpe_dsp_domains_v2_system.so
|
||||
vendor/lib64/libsns_registry_skel.so
|
||||
vendor/lib64/libst_soft_isp_calc_exposure_shared.so
|
||||
vendor/lib64/libst_soft_isp_shared.so
|
||||
vendor/lib64/libSuperSensor.so
|
||||
vendor/lib64/libSuperSensorCPU.so
|
||||
vendor/lib64/libsymphony-cpu.so
|
||||
vendor/lib64/libsynx.so
|
||||
vendor/lib64/libthreadutils.so
|
||||
@@ -373,8 +380,8 @@ vendor/lib64/hw/fingerprint.goodix_fod.so:vendor/lib64/hw/fingerprint.goodix_fod
|
||||
vendor/lib64/libgf_hal.so
|
||||
|
||||
# HotwordEnrollment
|
||||
-product/priv-app/HotwordEnrollmentOKGoogleHEXAGON_WIDEBAND/HotwordEnrollmentOKGoogleHEXAGON_WIDEBAND.apk
|
||||
-product/priv-app/HotwordEnrollmentXGoogleHEXAGON_WIDEBAND/HotwordEnrollmentXGoogleHEXAGON_WIDEBAND.apk
|
||||
product/priv-app/HotwordEnrollmentOKGoogleHEXAGON_WIDEBAND/HotwordEnrollmentOKGoogleHEXAGON_WIDEBAND.apk
|
||||
product/priv-app/HotwordEnrollmentXGoogleHEXAGON_WIDEBAND/HotwordEnrollmentXGoogleHEXAGON_WIDEBAND.apk
|
||||
system_ext/etc/permissions/com.android.hotwordenrollment.common.util.xml
|
||||
system_ext/framework/com.android.hotwordenrollment.common.util.jar
|
||||
|
||||
@@ -408,7 +415,6 @@ vendor/etc/init/init.vendor.sensors.rc
|
||||
vendor/etc/init/vendor.qti.hardware.sensorscalibrate@1.0-service.rc
|
||||
vendor/etc/init/vendor.sensors.qti.rc
|
||||
vendor/etc/init/vendor.sensors.sscrpcd.rc
|
||||
vendor/etc/sensors/hals.conf
|
||||
vendor/lib64/hw/vendor.qti.hardware.sensorscalibrate@1.0-impl.so
|
||||
vendor/lib64/libnotifyaudiohal.so
|
||||
vendor/lib64/libsensorcal.so
|
||||
|
||||
@@ -1,3 +1,10 @@
|
||||
# PowerShare
|
||||
on boot
|
||||
chown system system /sys/devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-02/c440000.qcom,spmi:qcom,pm8150b@2:qcom,qpnp-smb5/power_supply/wireless/reverse_chg_mode
|
||||
chown system system /sys/class/power_supply/wireless/reverse_chg_mode
|
||||
|
||||
# UDFPS
|
||||
on property:ro.boot.hwlevel=P0.1
|
||||
setprop persist.vendor.fingerprint.sensor_location 549|1925|99
|
||||
|
||||
on property:ro.boot.hwlevel=P1
|
||||
setprop persist.vendor.fingerprint.sensor_location 549|1925|99
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
runtime_resource_overlay {
|
||||
name: "xiaomi_umi_hwlevel_default_overlay",
|
||||
sdk_version: "current",
|
||||
vendor: true
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="org.xiaomi_sm8250.umi.overlay.hwlevel_default"
|
||||
android:versionCode="1"
|
||||
android:versionName="1.0">
|
||||
<application android:hasCode="false" />
|
||||
<overlay
|
||||
android:targetPackage="android"
|
||||
android:isStatic="true"
|
||||
android:priority="1"/>
|
||||
</manifest>
|
||||
@@ -1,30 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2017 The LineageOS Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
||||
<!-- The properties of a UDFPS sensor in pixels, in the order listed below: -->
|
||||
<integer-array name="config_udfps_sensor_props" translatable="false" >
|
||||
<!--
|
||||
<item>sensorLocationX</item>
|
||||
<item>sensorLocationY</item>
|
||||
<item>sensorRadius</item>
|
||||
-->
|
||||
<item>540</item>
|
||||
<item>1907</item>
|
||||
<item>99</item>
|
||||
</integer-array>
|
||||
</resources>
|
||||
@@ -1,5 +0,0 @@
|
||||
runtime_resource_overlay {
|
||||
name: "xiaomi_umi_hwlevel_p01_overlay",
|
||||
sdk_version: "current",
|
||||
vendor: true
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="org.xiaomi_sm8250.umi.overlay.hwlevel_p01"
|
||||
android:versionCode="1"
|
||||
android:versionName="1.0">
|
||||
<application android:hasCode="false" />
|
||||
<overlay
|
||||
android:requiredSystemPropertyName="ro.boot.hwlevel"
|
||||
android:requiredSystemPropertyValue="P0.1"
|
||||
android:targetPackage="android"
|
||||
android:isStatic="true"
|
||||
android:priority="2"/>
|
||||
</manifest>
|
||||
@@ -1,30 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2017 The LineageOS Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
||||
<!-- The properties of a UDFPS sensor in pixels, in the order listed below: -->
|
||||
<integer-array name="config_udfps_sensor_props" translatable="false" >
|
||||
<!--
|
||||
<item>sensorLocationX</item>
|
||||
<item>sensorLocationY</item>
|
||||
<item>sensorRadius</item>
|
||||
-->
|
||||
<item>549</item>
|
||||
<item>1925</item>
|
||||
<item>99</item>
|
||||
</integer-array>
|
||||
</resources>
|
||||
@@ -1,5 +0,0 @@
|
||||
runtime_resource_overlay {
|
||||
name: "xiaomi_umi_hwlevel_p1_overlay",
|
||||
sdk_version: "current",
|
||||
vendor: true
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="org.xiaomi_sm8250.umi.overlay.hwlevel_p1"
|
||||
android:versionCode="1"
|
||||
android:versionName="1.0">
|
||||
<application android:hasCode="false" />
|
||||
<overlay
|
||||
android:requiredSystemPropertyName="ro.boot.hwlevel"
|
||||
android:requiredSystemPropertyValue="P1"
|
||||
android:targetPackage="android"
|
||||
android:isStatic="true"
|
||||
android:priority="2"/>
|
||||
</manifest>
|
||||
@@ -1,30 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2017 The LineageOS Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
|
||||
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
||||
<!-- The properties of a UDFPS sensor in pixels, in the order listed below: -->
|
||||
<integer-array name="config_udfps_sensor_props" translatable="false" >
|
||||
<!--
|
||||
<item>sensorLocationX</item>
|
||||
<item>sensorLocationY</item>
|
||||
<item>sensorRadius</item>
|
||||
-->
|
||||
<item>549</item>
|
||||
<item>1925</item>
|
||||
<item>99</item>
|
||||
</integer-array>
|
||||
</resources>
|
||||
1
sepolicy/vendor/system_server.te
vendored
1
sepolicy/vendor/system_server.te
vendored
@@ -1 +0,0 @@
|
||||
get_prop(system_server, bootloader_prop)
|
||||
1
sepolicy/vendor/zygote.te
vendored
1
sepolicy/vendor/zygote.te
vendored
@@ -1 +0,0 @@
|
||||
get_prop(zygote, bootloader_prop)
|
||||
1
setup-makefiles.py
Executable file
1
setup-makefiles.py
Executable file
@@ -0,0 +1 @@
|
||||
#!./extract-files.py --regenerate_makefiles
|
||||
@@ -1,29 +0,0 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# SPDX-FileCopyrightText: 2016 The CyanogenMod Project
|
||||
# SPDX-FileCopyrightText: 2017-2024 The LineageOS Project
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
#
|
||||
|
||||
function vendor_imports() {
|
||||
cat <<EOF >>"$1"
|
||||
"hardware/qcom-caf/common/libqti-perfd-client",
|
||||
"hardware/xiaomi",
|
||||
"vendor/qcom/opensource/display",
|
||||
EOF
|
||||
}
|
||||
|
||||
# If we're being sourced by the common script that we called,
|
||||
# stop right here. No need to go down the rabbit hole.
|
||||
if [ "${BASH_SOURCE[0]}" != "${0}" ]; then
|
||||
return
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
||||
export DEVICE=umi
|
||||
export DEVICE_COMMON=sm8250-common
|
||||
export VENDOR=xiaomi
|
||||
export VENDOR_COMMON=${VENDOR}
|
||||
|
||||
"./../../${VENDOR_COMMON}/${DEVICE_COMMON}/setup-makefiles.sh" "$@"
|
||||
@@ -33,3 +33,8 @@ ro.hardware.audio.primary=umi
|
||||
# Display
|
||||
ro.surface_flinger.set_touch_timer_ms=200
|
||||
vendor.display.defer_fps_frame_count=2
|
||||
|
||||
# Fingerprint
|
||||
persist.vendor.fingerprint.sensor_location=540|1907|99
|
||||
persist.vendor.fingerprint.type=udfps_optical
|
||||
persist.vendor.fingerprint.udfps.control_illumination=true
|
||||
|
||||
Reference in New Issue
Block a user