diff --git a/Android.mk b/Android.mk
index add91a0..6128b3e 100644
--- a/Android.mk
+++ b/Android.mk
@@ -16,7 +16,7 @@
LOCAL_PATH := $(call my-dir)
-ifeq ($(TARGET_DEVICE),davinci)
+ifneq ($(filter davinci phoenix toco violet,$(TARGET_DEVICE)),)
include $(call all-makefiles-under,$(LOCAL_PATH))
diff --git a/AndroidProducts.mk b/AndroidProducts.mk
deleted file mode 100644
index e29465c..0000000
--- a/AndroidProducts.mk
+++ /dev/null
@@ -1,23 +0,0 @@
-#
-# Copyright (C) 2020 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.
-#
-
-PRODUCT_MAKEFILES := \
- $(LOCAL_DIR)/lineage_davinci.mk
-
-COMMON_LUNCH_CHOICES := \
- lineage_davinci-user \
- lineage_davinci-userdebug \
- lineage_davinci-eng
diff --git a/BoardConfig.mk b/BoardConfigCommon.mk
similarity index 66%
rename from BoardConfig.mk
rename to BoardConfigCommon.mk
index 3623e75..6fc67fa 100644
--- a/BoardConfig.mk
+++ b/BoardConfigCommon.mk
@@ -14,12 +14,12 @@
# limitations under the License.
#
-DEVICE_PATH := device/xiaomi/davinci
+COMMON_PATH := device/xiaomi/sm6150-common
BUILD_BROKEN_DUP_RULES := true
# Inherit from proprietary files
-include vendor/xiaomi/davinci/BoardConfigVendor.mk
+include vendor/xiaomi/sm6150-common/BoardConfigVendor.mk
# Architecture
TARGET_ARCH := arm64
@@ -39,9 +39,6 @@ TARGET_2ND_CPU_VARIANT_RUNTIME := cortex-a76
# ANT+
BOARD_ANT_WIRELESS_DEVICE := "qualcomm-hidl"
-# Assert
-TARGET_OTA_ASSERT_DEVICE := davinci,davinciin
-
# Audio
AUDIO_FEATURE_ENABLED_EXT_AMPLIFIER := true
AUDIO_FEATURE_ENABLED_EXTENDED_COMPRESS_FORMAT := true
@@ -59,7 +56,7 @@ USE_CUSTOM_AUDIO_POLICY := 1
USE_XML_AUDIO_POLICY_CONF := 1
# Bluetooth
-BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(DEVICE_PATH)/bluetooth/include
+BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(COMMON_PATH)/bluetooth/include
# Bootloader
TARGET_BOOTLOADER_BOARD_NAME := sm6150
@@ -80,32 +77,20 @@ TARGET_USES_HWC2 := true
TARGET_ENABLE_MEDIADRM_64 := true
# Filesystem
-TARGET_FS_CONFIG_GEN := $(DEVICE_PATH)/configs/config.fs
+TARGET_FS_CONFIG_GEN := $(COMMON_PATH)/configs/config.fs
# FM
BOARD_HAVE_QCOM_FM := true
-# FOD
-TARGET_SURFACEFLINGER_FOD_LIB := //$(DEVICE_PATH):libfod_extension.davinci
-TARGET_USES_FOD_ZPOS := true
-
# GPS
BOARD_VENDOR_QCOM_GPS_LOC_API_HARDWARE := default
LOC_HIDL_VERSION := 4.0
# HIDL
-DEVICE_MANIFEST_FILE := $(DEVICE_PATH)/configs/hidl/manifest.xml
-DEVICE_MANIFEST_FILE += $(DEVICE_PATH)/configs/hidl/c2_manifest.xml
-DEVICE_MATRIX_FILE := $(DEVICE_PATH)/configs/hidl/compatibility_matrix.xml
-ODM_MANIFEST_FILES += $(DEVICE_PATH)/configs/hidl/manifest-qva.xml
-ODM_MANIFEST_SKUS += davinci
-ODM_MANIFEST_DAVINCI_FILES := \
- $(DEVICE_PATH)/configs/hidl/manifest-nfc.xml \
- $(DEVICE_PATH)/configs/hidl/manifest-qva.xml
-
-# Init
-TARGET_INIT_VENDOR_LIB := //$(DEVICE_PATH):libinit_davinci
-TARGET_RECOVERY_DEVICE_MODULES := libinit_davinci
+DEVICE_MANIFEST_FILE := $(COMMON_PATH)/configs/hidl/manifest.xml
+DEVICE_MANIFEST_FILE += $(COMMON_PATH)/configs/hidl/c2_manifest.xml
+DEVICE_MATRIX_FILE := $(COMMON_PATH)/configs/hidl/compatibility_matrix.xml
+ODM_MANIFEST_FILES += $(COMMON_PATH)/configs/hidl/manifest-qva.xml
# Kernel
BOARD_KERNEL_BASE := 0x00000000
@@ -114,7 +99,6 @@ BOARD_KERNEL_PAGESIZE := 4096
BOARD_KERNEL_SEPARATED_DTBO := true
TARGET_KERNEL_CLANG_COMPILE := true
-TARGET_KERNEL_CONFIG := davinci_defconfig
TARGET_KERNEL_SOURCE := kernel/xiaomi/sm6150
BOARD_KERNEL_CMDLINE := console=ttyMSM0,115200n8 earlycon=msm_geni_serial,0xa88000
@@ -130,41 +114,22 @@ BOARD_MKBOOTIMG_ARGS := --header_version $(BOARD_BOOTIMG_HEADER_VERSION)
TARGET_USES_ION := true
TARGET_DISABLED_UBWC := true
-# Partitions
-BOARD_BOOTIMAGE_PARTITION_SIZE := 134217728
-BOARD_CACHEIMAGE_PARTITION_SIZE := 268435456
-BOARD_DTBOIMG_PARTITION_SIZE := 33554432
-BOARD_RECOVERYIMAGE_PARTITION_SIZE := 67108864
-BOARD_SYSTEMIMAGE_PARTITION_SIZE := 3758096384
-BOARD_USERDATAIMAGE_PARTITION_SIZE := 55371083776
-BOARD_VENDORIMAGE_PARTITION_SIZE := 1610612736
-BOARD_FLASH_BLOCK_SIZE := 262144 # (BOARD_KERNEL_PAGESIZE * 64)
-
-BOARD_BUILD_SYSTEM_ROOT_IMAGE := true
-BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
-BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
-
-TARGET_USERIMAGES_USE_EXT4 := true
-TARGET_USERIMAGES_USE_F2FS := true
-TARGET_COPY_OUT_VENDOR := vendor
-
# Platform
TARGET_BOARD_PLATFORM := sm6150
# Power
-TARGET_POWERHAL_MODE_EXT := $(DEVICE_PATH)/power/power-mode.cpp
+TARGET_POWERHAL_MODE_EXT := $(COMMON_PATH)/power/power-mode.cpp
# Properties
-TARGET_ODM_PROP += $(DEVICE_PATH)/odm.prop
-TARGET_SYSTEM_PROP += $(DEVICE_PATH)/system.prop
-TARGET_VENDOR_PROP += $(DEVICE_PATH)/vendor.prop
+TARGET_ODM_PROP += $(COMMON_PATH)/odm.prop
+TARGET_SYSTEM_PROP += $(COMMON_PATH)/system.prop
+TARGET_VENDOR_PROP += $(COMMON_PATH)/vendor.prop
# QCOM
BOARD_USES_QCOM_HARDWARE := true
# Recovery
BOARD_INCLUDE_RECOVERY_DTBO := true
-TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/rootdir/etc/fstab.qcom
TARGET_RECOVERY_PIXEL_FORMAT := "RGBX_8888"
# RIL
@@ -172,7 +137,7 @@ ENABLE_VENDOR_RIL_SERVICE := true
# Releasetools
TARGET_RECOVERY_UPDATER_LIBS := librecovery_updater_xiaomi
-TARGET_RELEASETOOLS_EXTENSIONS := $(DEVICE_PATH)
+TARGET_RELEASETOOLS_EXTENSIONS := $(COMMON_PATH)
# Security patch level
VENDOR_SECURITY_PATCH := 2020-10-01
@@ -181,9 +146,8 @@ VENDOR_SECURITY_PATCH := 2020-10-01
TARGET_SEPOLICY_DIR := msmsteppe
include device/qcom/sepolicy_vndr/SEPolicy.mk
-BOARD_PLAT_PRIVATE_SEPOLICY_DIR += $(DEVICE_PATH)/sepolicy/private
-BOARD_PLAT_PUBLIC_SEPOLICY_DIR += $(DEVICE_PATH)/sepolicy/public
-BOARD_VENDOR_SEPOLICY_DIRS += $(DEVICE_PATH)/sepolicy/vendor
+BOARD_PLAT_PRIVATE_SEPOLICY_DIR += $(COMMON_PATH)/sepolicy/private
+BOARD_VENDOR_SEPOLICY_DIRS += $(COMMON_PATH)/sepolicy/vendor
# Verified Boot
BOARD_AVB_ENABLE := true
diff --git a/README.md b/README.md
index 3099dff..0975610 100644
--- a/README.md
+++ b/README.md
@@ -1,26 +1,4 @@
Copyright (C) 2020 The LineageOS Project
+Copyright (C) 2020-2021 Paranoid Android.
-Device configuration for Xiaomi Mi 9T/Redmi K20
-=========================================
-
-The Xiaomi Mi 9T/Redmi K20 (codenamed _"davinci"_) is a mid-range smartphone from Xiaomi.
-
-It was announced in June 2019. Release date was June 2019.
-
-## Device specifications
-
-Basic | Spec Sheet
--------:|:-------------------------
-CPU | Dual-core 2.2 GHz Kryo 470 Gold & Hexa-core 1.8 GHz Kryo 470 Silver
-Chipset | Qualcomm SDM730 Snapdragon 730
-GPU | Adreno 618
-Memory | 6 GB RAM
-Shipped Android Version | 9.0
-Storage | 64/128 GB (UFS 2.0)
-Battery | Non-removable Li-Po 4000 mAh
-Display | 1080 x 2340 pixels, 6.39 inches (~428 ppi pixel density)
-Camera | Main 48 MP f/1.8, telephoto lens, ultrawide lens, dual-LED (dual tone) flash
-
-## Device picture
-
-![Xiaomi Mi 9T/Redmi K20](https://i01.appmifile.com/webfile/globalimg/products/pc/redmik20/index_slider_1.png "Xiaomi Mi 9T/Redmi K20 in carbon black")
+# Common device tree for Xiaomi SM6150 based devices
diff --git a/board-info.txt b/board-info.txt
deleted file mode 100644
index 827958f..0000000
--- a/board-info.txt
+++ /dev/null
@@ -1 +0,0 @@
-require version-baseband=4.3.c5-00069,20.10.20
diff --git a/configs/audio/audio_platform_info_intcodec.xml b/configs/audio/audio_platform_info_intcodec.xml
deleted file mode 100644
index 4238908..0000000
--- a/configs/audio/audio_platform_info_intcodec.xml
+++ /dev/null
@@ -1,401 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
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
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/configs/audio/sound_trigger_mixer_paths.xml b/configs/audio/sound_trigger_mixer_paths.xml
deleted file mode 100644
index a33fed3..0000000
--- a/configs/audio/sound_trigger_mixer_paths.xml
+++ /dev/null
@@ -1,230 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/configs/hidl/manifest-nfc.xml b/configs/hidl/manifest-nfc.xml
deleted file mode 100644
index 2fb7ccd..0000000
--- a/configs/hidl/manifest-nfc.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
- android.hardware.nfc
- hwbinder
- 1.2
-
- INfc
- default
-
- @1.2::INfc/default
-
-
diff --git a/configs/hidl/manifest.xml b/configs/hidl/manifest.xml
index 9e034c5..fea153e 100644
--- a/configs/hidl/manifest.xml
+++ b/configs/hidl/manifest.xml
@@ -1,4 +1,4 @@
-
+
android.hardware.audio
hwbinder
@@ -522,24 +522,4 @@
@1.0::IXiaomiFingerprint/default
-
- vendor.xiaomi.hardware.motor
- hwbinder
- 1.0
-
- IMotor
- default
-
- @1.0::IMotor/default
-
-
- vendor.xiaomi.hardware.touchfeature
- hwbinder
- 1.0
-
- ITouchFeature
- default
-
- @1.0::ITouchFeature/default
-
diff --git a/configs/nfc/libnfc-nci.conf b/configs/nfc/libnfc-nci.conf
deleted file mode 100644
index 3af3081..0000000
--- a/configs/nfc/libnfc-nci.conf
+++ /dev/null
@@ -1,126 +0,0 @@
-########################## Start of libnfc-nci.conf ###########################
-###############################################################################
-# Application options
-NFC_DEBUG_ENABLED=1
-
-###############################################################################
-# performance measurement
-# Change this setting to control how often USERIAL log the performance (throughput)
-# data on read/write/poll
-# defailt is to log performance dara for every 100 read or write
-#REPORT_PERFORMANCE_MEASURE=100
-
-###############################################################################
-# File used for NFA storage
-NFA_STORAGE="/data/nfc"
-
-###############################################################################
-# Configure the default NfcA/IsoDep techology and protocol route. Can be
-# either a secure element (e.g. 0xF4) or the host (0x00)
-#DEFAULT_ISODEP_ROUTE=0x00
-
-###############################################################################
-## Default poll duration (in ms)
-## The defualt is 500ms if not set
-NFA_DM_DISC_DURATION_POLL=500
-
-###############################################################################
-# Force UICC to only listen to the following technology(s).
-# The bits are defined as tNFA_TECHNOLOGY_MASK in nfa_api.h.
-# Default is NFA_TECHNOLOGY_MASK_A | NFA_TECHNOLOGY_MASK_B | NFA_TECHNOLOGY_MASK_F
-UICC_LISTEN_TECH_MASK=0x07
-
-###############################################################################
-# Force HOST listen feature enable or disable.
-# 0: Disable
-# 1: Enable
-HOST_LISTEN_ENABLE=0x01
-
-###############################################################################
-# When screen is turned off, specify the desired power state of the controller.
-# 0: power-off-sleep state; DEFAULT
-# 1: full-power state
-# 2: screen-off card-emulation (CE4/CE3/CE1 modes are used)
-SCREEN_OFF_POWER_STATE=1
-
-###############################################################################
-# Force tag polling for the following technology(s).
-# The bits are defined as tNFA_TECHNOLOGY_MASK in nfa_api.h.
-# Default is NFA_TECHNOLOGY_MASK_A | NFA_TECHNOLOGY_MASK_B |
-# NFA_TECHNOLOGY_MASK_F | NFA_TECHNOLOGY_MASK_ISO15693 |
-# NFA_TECHNOLOGY_MASK_B_PRIME | NFA_TECHNOLOGY_MASK_KOVIO |
-# NFA_TECHNOLOGY_MASK_A_ACTIVE | NFA_TECHNOLOGY_MASK_F_ACTIVE.
-#
-# Notable bits:
-# NFA_TECHNOLOGY_MASK_A 0x01 /* NFC Technology A */
-# NFA_TECHNOLOGY_MASK_B 0x02 /* NFC Technology B */
-# NFA_TECHNOLOGY_MASK_F 0x04 /* NFC Technology F */
-# NFA_TECHNOLOGY_MASK_ISO15693 0x08 /* Proprietary Technology */
-# NFA_TECHNOLOGY_MASK_KOVIO 0x20 /* Proprietary Technology */
-# NFA_TECHNOLOGY_MASK_ACTIVE 0x40 /* NFC Technology active mode */
-POLLING_TECH_MASK=0x4F
-
-###############################################################################
-# Force P2P to only listen for the following technology(s).
-# The bits are defined as tNFA_TECHNOLOGY_MASK in nfa_api.h.
-# Default is NFA_TECHNOLOGY_MASK_A | NFA_TECHNOLOGY_MASK_F |
-# NFA_TECHNOLOGY_MASK_A_ACTIVE | NFA_TECHNOLOGY_MASK_F_ACTIVE
-#
-# Notable bits:
-# NFA_TECHNOLOGY_MASK_A 0x01 /* NFC Technology A */
-# NFA_TECHNOLOGY_MASK_F 0x04 /* NFC Technology F */
-# NFA_TECHNOLOGY_MASK_A_ACTIVE 0x40 /* NFC Technology A active mode */
-# NFA_TECHNOLOGY_MASK_F_ACTIVE 0x80 /* NFC Technology F active mode */
-P2P_LISTEN_TECH_MASK=0x45
-
-###############################################################################
-PRESERVE_STORAGE=0x01
-
-###############################################################################
-# Override the stack default for NFA_EE_MAX_EE_SUPPORTED set in nfc_target.h.
-# The value is set to 3 by default as it assumes we will discover 0xF2,
-# 0xF3, and 0xF4. If a platform will exclude and SE, this value can be reduced
-# so that the stack will not wait any longer than necessary.
-# Maximum EE supported number
-# NXP PN547C2 0x02
-# NXP PN65T 0x03
-# NXP PN548C2 0x02
-# NXP PN66T 0x03
-NFA_MAX_EE_SUPPORTED=0x03
-
-##############################################################################
-# Deactivate notification wait time out in seconds used in ETSI Reader mode
-# 0 - Infinite wait
-NFA_DM_DISC_NTF_TIMEOUT=100
-
-###############################################################################
-# AID_MATCHING constants
-# AID_MATCHING_EXACT_ONLY 0x00
-# AID_MATCHING_EXACT_OR_PREFIX 0x01
-# AID_MATCHING_PREFIX_ONLY 0x02
-#AID_MATCHING_EXACT_OR_SUBSET_OR_PREFIX 0x03
-AID_MATCHING_MODE=0x03
-
-###############################################################################
-# Preferred Secure Element for Technology based routing
-# eSE 0x01
-# UICC 0x02
-NXP_PRFD_TECH_SE=0x01
-
-################################################################################
-#Set bit to 1 , black list is enabled
-#Set bit to 0, to disable balcklist
-NFA_AID_BLOCK_ROUTE=0x01
-
-################################################################################
-# Maximum WTX requests entertained by MW
-NXP_WM_MAX_WTX_COUNT=50
-
-################################################################################
-#Set the default Felica T3T System Code :
-#This settings will be used when application does not set this parameter
-DEFAULT_SYS_CODE={FE:FF}
-
-#########################################################################
-#Set NCI credit notification timeout value
-NXP_NCI_CREDIT_NTF_TIMEOUT=2
diff --git a/configs/nfc/libnfc-nxp.conf b/configs/nfc/libnfc-nxp.conf
deleted file mode 100644
index 2e78fad..0000000
--- a/configs/nfc/libnfc-nxp.conf
+++ /dev/null
@@ -1,427 +0,0 @@
-#################### This file is used by NXP NFC NCI HAL #####################
-###############################################################################
-# Application options
-# Logging Levels
-# NXPLOG_DEFAULT_LOGLEVEL 0x01
-# ANDROID_LOG_DEBUG 0x03
-# ANDROID_LOG_WARN 0x02
-# ANDROID_LOG_ERROR 0x01
-# ANDROID_LOG_SILENT 0x00
-NXPLOG_EXTNS_LOGLEVEL=0x03
-NXPLOG_NCIHAL_LOGLEVEL=0x03
-NXPLOG_NCIX_LOGLEVEL=0x03
-NXPLOG_NCIR_LOGLEVEL=0x03
-NXPLOG_FWDNLD_LOGLEVEL=0x03
-NXPLOG_TML_LOGLEVEL=0x03
-
-###############################################################################
-# Nfc Device Node name
-NXP_NFC_DEV_NODE="/dev/nq-nci"
-
-#################################################################################
-#VEN Toggle Config
-#Disable = 0x00
-#Enable = 0x01
-ENABLE_VEN_TOGGLE=0x00
-
-###############################################################################
-# Extension for Mifare reader enable
-MIFARE_READER_ENABLE=0x01
-
-###############################################################################
-# File name for Firmware
-NXP_FW_NAME="libsn100u_fw.so"
-
-###############################################################################
-# System clock source selection configuration
-#define CLK_SRC_XTAL 1
-#define CLK_SRC_PLL 2
-NXP_SYS_CLK_SRC_SEL=0x02
-
-###############################################################################
-# System clock frequency selection configuration
-#define CLK_FREQ_13MHZ 1
-#define CLK_FREQ_19_2MHZ 2
-#define CLK_FREQ_24MHZ 3
-#define CLK_FREQ_26MHZ 4
-#define CLK_FREQ_38_4MHZ 5
-#define CLK_FREQ_52MHZ 6
-NXP_SYS_CLK_FREQ_SEL=0x02
-
-###############################################################################
-# The timeout value to be used for clock request acknowledgment
-# min value = 0x01 to max = 0x06
-#NXP_SYS_CLOCK_TO_CFG=0x06
-
-###############################################################################
-# The delay to try to start PLL/XTAL when using sys clock 256/fc units = ~18.8 us
-# min value = 0x01 to max = 0x1F
-NXP_CLOCK_REQ_DELAY=0x1F
-
-###############################################################################
-# NXP proprietary settings
-NXP_ACT_PROP_EXTN={2F, 02, 00}
-
-###############################################################################
-# NFC forum profile settings
-NXP_NFC_PROFILE_EXTN={20, 02, 05, 01, A0, 44, 01, 00}
-
-###############################################################################
-# NXP TVDD configurations settings
-# Allow NFCC to configure External TVDD, two configurations (1 and 2) supported,
-# out of them only one can be configured at a time.
-#NXP_EXT_TVDD_CFG=0x02
-
-###############################################################################
-#config1:SLALM, 3.3V for both RM and CM
-#NXP_EXT_TVDD_CFG_1={20, 02, 0F, 01, A0, 0E, 0B, 31, 01, 01, 31, 00, 00, 00, 01, 00, D0, 0C}
-
-###############################################################################
-#config2: use DCDC in CE, use Tx_Pwr_Req, set CFG2 mode, SLALM,
-#monitoring 5V from DCDC, 3.3V for both RM and CM, DCDCWaitTime=4.2ms
-#NXP_EXT_TVDD_CFG_2={20, 02, 0F, 01, A0, 0E, 0B, 11, 01, C2, B2, 00, B2, 1E, 1F, 00, D0, 0C}
-
-###############################################################################
-# Core configuration rf field filter settings to enable set to 01 to disable set
-# to 00 last bit
-#NXP_CORE_RF_FIELD={ 20, 02, 05, 01, A0, 62, 01, 00 }
-
-###############################################################################
-# To enable i2c fragmentation set i2c fragmentation enable 0x01 to disable set
-# to 0x00
-#NXP_I2C_FRAGMENTATION_ENABLED=0x00
-
-###############################################################################
-#set autonomous mode
-# disable autonomous 0x00
-# enable autonomous 0x01
-NXP_AUTONOMOUS_ENABLE=0x00
-
-###############################################################################
-#Enable SWP full power mode when phone is power off
-#NXP_SWP_FULL_PWR_ON=0x00
-
-################################################################################
-#This is used to configure UICC2 at boot time.
-# UICC2 0x03
-NXP_DEFAULT_UICC2_SELECT=0x03
-
-###############################################################################
-# CE when Screen state is locked
-# This setting is for DEFAULT_AID_ROUTE,
-# DEFAULT_DESFIRE_ROUTE and DEFAULT_MIFARE_CLT_ROUTE
-# Disable 0x00
-# Enable 0x01
-NXP_CE_ROUTE_STRICT_DISABLE=0x01
-
-###############################################################################
-#Timeout in secs
-NXP_SWP_RD_TAG_OP_TIMEOUT=0x01
-
-###############################################################################
-#Set the default AID route Location :
-#This settings will be used when application does not set this parameter
-# host 0x00
-# eSE 0x01
-# UICC 0x02
-# UICC2 0x03
-DEFAULT_AID_ROUTE=0x01
-
-###############################################################################
-#Set the Mifare Desfire route Location :
-#This settings will be used when application does not set this parameter
-# host 0x00
-# eSE 0x01
-# UICC 0x02
-# UICC2 0x03
-DEFAULT_ISODEP_ROUTE=0x01
-
-###############################################################################
-#Set the Mifare CLT route Location :
-#This settings will be used when application does not set this parameter
-# host 0x00
-# eSE 0x01
-# UICC 0x02
-# UICC2 0x03
-DEFAULT_MIFARE_CLT_ROUTE=0x01
-
-###############################################################################
-#Set the Felica CLT route Location :
-#This settings will be used when application does not set this parameter
-# eSE 0x01
-# UICC 0x02
-# UICC2 0x03
-DEFAULT_FELICA_CLT_ROUTE=0x01
-
-###############################################################################
-#Set the default AID Power state :
-#This settings will be used when application does not set this parameter
-# bit pos 0 = Switch On
-# bit pos 1 = Switch Off
-# bit pos 2 = Battery Off
-# bit pos 3 = Screen off unlock
-# bit pos 4 = Screen On lock
-# bit pos 5 = Screen Off lock
-DEFAULT_AID_PWR_STATE=0x3B
-
-###############################################################################
-#Set the Mifare Desfire Power state :
-#This settings will be used when application does not set this parameter
-# bit pos 0 = Switch On
-# bit pos 1 = Switch Off
-# bit pos 2 = Battery Off
-# bit pos 3 = Screen off unlock
-# bit pos 4 = Screen On lock
-# bit pos 5 = Screen Off lock
-DEFAULT_DESFIRE_PWR_STATE=0x3B
-
-###############################################################################
-#Set the Mifare CLT Power state :
-#This settings will be used when application does not set this parameter
-# bit pos 0 = Switch On
-# bit pos 1 = Switch Off
-# bit pos 2 = Battery Off
-# bit pos 3 = Screen off unlock
-# bit pos 4 = Screen On lock
-# bit pos 5 = Screen Off lock
-DEFAULT_MIFARE_CLT_PWR_STATE=0x3B
-
-###############################################################################
-#Set the Felica CLT Power state :
-#This settings will be used when application does not set this parameter
-# bit pos 0 = Switch On
-# bit pos 1 = Switch Off
-# bit pos 2 = Battery Off
-# bit pos 3 = Screen off unlock
-# bit pos 4 = Screen On lock
-# bit pos 5 = Screen Off lock
-DEFAULT_FELICA_CLT_PWR_STATE=0x3B
-
-###############################################################################
-#Set the default Felica T3T System Code OffHost route Location :
-#This settings will be used when application does not set this parameter
-# host 0x00
-# eSE 0x01
-# UICC 0x02
-# UICC2 0x03
-DEFAULT_SYS_CODE_ROUTE=0x00
-
-###############################################################################
-# AID Matching platform options
-# AID_MATCHING_L 0x01
-# AID_MATCHING_K 0x02
-#AID_MATCHING_PLATFORM=0x01
-
-###############################################################################
-# eSE interface options
-# NFC 0x01
-# SPI 0x02
-NXP_P61_LS_DEFAULT_INTERFACE=0x02
-
-###############################################################################
-#CHINA_TIANJIN_RF_SETTING
-#Enable 0x01
-#Disable 0x00
-#NXP_CHINA_TIANJIN_RF_ENABLED=0x01
-
-###############################################################################
-#SWP_SWITCH_TIMEOUT_SETTING
-# Allowed range of swp timeout setting is 0x00 to 0x3C [0 - 60].
-# Timeout in milliseconds, for example
-# No Timeout 0x00
-# 10 millisecond timeout 0x0A
-#NXP_SWP_SWITCH_TIMEOUT=0x0A
-
-###############################################################################
-# Flashing Options Configurations
-# FLASH_UPPER_VERSION 0x01
-# FLASH_DIFFERENT_VERSION 0x02
-# FLASH_ALWAYS 0x03
-NXP_FLASH_CONFIG=0x02
-
-###############################################################################
-# eSE interface options for JCOP Download
-# NFC 0x01
-# SPI 0x02
-NXP_P61_JCOP_DEFAULT_INTERFACE=0x02
-
-###############################################################################
-# Option to perform LS update every boot
-# Enable 0x01
-# Disable 0x00
-NXP_LS_FORCE_UPDATE_REQUIRED=0x00
-
-###############################################################################
-# Option to perform JCOP update every boot
-# Enable 0x01
-# Disable 0x00
-NXP_JCOP_FORCE_UPDATE_REQUIRED=0x00
-
-###############################################################################
-# Bail out mode
-# If set to 1, NFCC is using bail out mode for either Type A or Type B poll.
-# Set this parameter value to 1 if Android Beam is enabled, else set to 0.
-NFA_POLL_BAIL_OUT_MODE=0x00
-
-###############################################################################
-# White list of Hosts
-# This values will be the Hosts(NFCEEs) in the HCI Network.
-DEVICE_HOST_WHITE_LIST={C0, 80}
-
-###############################################################################
-# Choose the presence-check algorithm for type-4 tag. If not defined, the default value is 1.
-# 0 NFA_RW_PRES_CHK_DEFAULT; Let stack selects an algorithm
-# 1 NFA_RW_PRES_CHK_I_BLOCK; ISO-DEP protocol's empty I-block
-# 2 NFA_RW_PRES_CHK_ISO_DEP_NAK; Type - 4 tag protocol iso-dep nak presence check
-# command is sent waiting for rsp and ntf.
-PRESENCE_CHECK_ALGORITHM=2
-
-###############################################################################
-# Vendor Specific Proprietary Protocol & Discovery Configuration
-# Set to 0xFF if unsupported
-# byte[0] NCI_PROTOCOL_18092_ACTIVE
-# byte[1] NCI_PROTOCOL_B_PRIME
-# byte[2] NCI_PROTOCOL_DUAL
-# byte[3] NCI_PROTOCOL_15693
-# byte[4] NCI_PROTOCOL_KOVIO
-# byte[5] NCI_PROTOCOL_MIFARE
-# byte[6] NCI_DISCOVERY_TYPE_POLL_KOVIO
-# byte[7] NCI_DISCOVERY_TYPE_POLL_B_PRIME
-# byte[8] NCI_DISCOVERY_TYPE_LISTEN_B_PRIME
-NFA_PROPRIETARY_CFG={05, FF, FF, 06, 81, 80, 70, FF, FF}
-
-###############################################################################
-#NXP_CN_TRANSIT_BLK_NUM_CHECK_ENABLE
-#Enable/Disable block number checks for china transit use case
-#Enable 0x01
-#Disable 0x00
-#NXP_CN_TRANSIT_BLK_NUM_CHECK_ENABLE=0x01
-
-###################################################################################################
-#This flags will enable different modes of Lx Debug based on bits of the Byte0 & Byte1
- #Byte 0:
- # |_________Bit Mask_______| Debug Mode
- # b7|b6|b5|b4|b3|b2|b1|b0|
- # | | |X | | | | | Enable L1 Events (ISO14443-4, ISO18092)
- # | | | |X | | | | Enable L2 Reader Events(ROW specific)
- # | | | | |X | | | Enable Felica SystemCode
- # | | | | | |X | | Enable Felica RF (all Felica CM events)
- # | | | | | | |X | Enable L2 Events Card Emulation (ISO14443-3, Modulation detected, RF Field ON/OFF)
- #Byte 1:
- # Enable RSSI 0x01 Byte1 Byte0
- # Disable RSSI 0x00 \__ __/
-# e.g. NXP_CORE_PROP_SYSTEM_DEBUG=0x0110 ==> L1 with RSSI
-#NXP_CORE_PROP_SYSTEM_DEBUG=0x11
-
-###############################################################################
-#Enable NXP NCI runtime parser library
-#Enable 0x01
-#Disable 0x00
-NXP_NCI_PARSER_LIBRARY=0x00
-
-###############################################################################
-# Timeout value in milliseconds for JCOP OS download to complete
-OS_DOWNLOAD_TIMEOUT_VALUE=60000
-
-###############################################################################
-# Forcing HOST to listen for a selected protocol
-# 0x00 : Disable Host Listen
-# 0x01 : Enable Host to Listen (A) for ISO-DEP tech A
-# 0x02 : Enable Host to Listen (B) for ISO-DEP tech B
-# 0x04 : Enable Host to Listen (F) for T3T Tag Type Protocol tech F
-# 0x07 : Enable Host to Listen (ABF)for ISO-DEP tech AB & T3T Tag Type Protocol tech F
-HOST_LISTEN_TECH_MASK=0x07
-
-###############################################################################
-# Enable forward functionality
-# Disable 0x00
-# Enable 0x01
-FORWARD_FUNCTIONALITY_ENABLE=0x01
-
-###############################################################################
-# Configure the NFC Extras to open and use a static pipe. If the value is
-# not set or set to 0, then the default is use a dynamic pipe based on a
-# destination gate (see NFA_HCI_DEFAULT_DEST_GATE). Note there is a value
-# for each EE (ESE/SIM)
-OFF_HOST_ESE_PIPE_ID=0x16
-OFF_HOST_SIM_PIPE_ID=0x0A
-
-###############################################################################
-#Set the Felica T3T System Code Power state :
-#This settings will be used when application does not set this parameter
-#Update Power state as per NCI2.0
-DEFAULT_SYS_CODE_PWR_STATE=0x39
-
-###############################################################################
-#Default Secure Element route id
-DEFAULT_OFFHOST_ROUTE=0x02
-
-###############################################################################
-#Maximum SMB transceive wait for response
-NXP_SMB_TRANSCEIVE_TIMEOUT=2000
-
-###############################################################################
-# Firmware file type
-#.so file 0x01
-#.bin file 0x02
-NXP_FW_TYPE=0x01
-
-############################################################################
-# Extended APDU length for ISO_DEP
-ISO_DEP_MAX_TRANSCEIVE=0xFEFF
-
-#########################################################################
-# Support for Amendment I SEMS specification
-# Support SEMS Amendment I 0x01
-# Support NXP LS client 0x00
-NXP_GP_AMD_I_SEMS_SUPPORTED=0x01
-
-#########################################################################
-# Enable/Disable default route to host in case default se is not active
-# Disable feature 0x00
-# Enable feature 0x01
-NXP_CHECK_DEFAULT_PROTO_SE_ID=0x01
-
-###############################################################################
-# Assign terminal number to each interface based on system config
-NXP_SPI_SE_TERMINAL_NUM="eSE1"
-NXP_NFC_SE_TERMINAL_NUM="eSE2"
-#NXP_VISO_SE_TERMINAL_NUM="eSE3"
-
-###############################################################################
-#For static or dynamic dual UICC feature support
-#Enable static dual uicc feature by setting value 0x00
-#Enable dynamic dual uicc feature by setting value 0x01
-NXP_DUAL_UICC_ENABLE=0x01
-
-###############################################################################
-# Time to wait by DH when NFCC will report eSE Cold Temp Error.
-# The value is as per the UM and in seconds
-NXP_SE_COLD_TEMP_ERROR_DELAY=0x05
-
-###############################################################################
-# Set configuration optimization decision setting
-# Enable = 0x01
-# Disable = 0x00
-NXP_SET_CONFIG_ALWAYS=0x01
-###############################################################################
-#OffHost ESE route location for MultiSE
-#ESE = 01
-OFFHOST_ROUTE_ESE={01}
-###############################################################################
-#OffHost UICC route location for MultiSE
-#UICC1 = 02
-#UICC2 = 03
-OFFHOST_ROUTE_UICC={02:03}
-################################################################################
-# This will enable power state required for GSMA testing.
-# When this is enabled , then default AID route power state is added with this power state
-# If any aid with power state 0 is added, then this power state is used.
-# bit pos 0 = Switch On
-# bit pos 1 = Switch Off
-# bit pos 2 = Battery Off
-# bit pos 3 = Screen off unlock
-# bit pos 4 = Screen On lock
-# bit pos 5 = Screen Off lock
-#DEFUALT_GSMA_PWR_STATE=0x3B
-#################################################################################
diff --git a/extract-files.sh b/extract-files.sh
index 0b2a600..6691ae5 100755
--- a/extract-files.sh
+++ b/extract-files.sh
@@ -8,9 +8,6 @@
set -e
-DEVICE=davinci
-VENDOR=xiaomi
-
# Load extract_utils and do some sanity checks
MY_DIR="${BASH_SOURCE%/*}"
if [[ ! -d "${MY_DIR}" ]]; then MY_DIR="${PWD}"; fi
@@ -27,11 +24,19 @@ source "${HELPER}"
# Default to sanitizing the vendor folder before extraction
CLEAN_VENDOR=true
+ONLY_COMMON=
+ONLY_TARGET=
KANG=
SECTION=
while [ "${#}" -gt 0 ]; do
case "${1}" in
+ --only-common )
+ ONLY_COMMON=true
+ ;;
+ --only-target )
+ ONLY_TARGET=true
+ ;;
-n | --no-cleanup )
CLEAN_VENDOR=false
;;
@@ -58,17 +63,22 @@ function blob_fixup() {
system_ext/lib64/libwfdnative.so)
"${PATCHELF}" --remove-needed "android.hidl.base@1.0.so" "${2}"
;;
- vendor/lib64/hw/camera.qcom.so)
- "${PATCHELF}" --remove-needed "libMegviiFacepp-0.5.2.so" "${2}"
- "${PATCHELF}" --remove-needed "libmegface.so" "${2}"
- "${PATCHELF}" --add-needed "libshim_megvii.so" "${2}"
- ;;
esac
}
-# Initialize the helper
-setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}" false "${CLEAN_VENDOR}"
+if [ -z "${ONLY_TARGET}" ]; then
+ # Initialize the helper for common device
+ setup_vendor "${DEVICE_COMMON}" "${VENDOR}" "${ANDROID_ROOT}" true "${CLEAN_VENDOR}"
-extract "${MY_DIR}/proprietary-files.txt" "${SRC}" "${KANG}" --section "${SECTION}"
+ extract "${MY_DIR}/proprietary-files.txt" "${SRC}" "${KANG}" --section "${SECTION}"
+fi
+
+if [ -z "${ONLY_COMMON}" ] && [ -s "${MY_DIR}/../${DEVICE}/proprietary-files.txt" ]; then
+ # Reinitialize the helper for device
+ source "${MY_DIR}/../${DEVICE}/extract-files.sh"
+ setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}" false "${CLEAN_VENDOR}"
+
+ extract "${MY_DIR}/../${DEVICE}/proprietary-files.txt" "${SRC}" "${KANG}" --section "${SECTION}"
+fi
"${MY_DIR}/setup-makefiles.sh"
diff --git a/fod/Android.bp b/fod/Android.bp
deleted file mode 100644
index 4645e88..0000000
--- a/fod/Android.bp
+++ /dev/null
@@ -1,49 +0,0 @@
-//
-// Copyright (C) 2019-2020 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.
-
-cc_binary {
- name: "vendor.lineage.biometrics.fingerprint.inscreen@1.0-service.davinci",
- defaults: ["hidl_defaults"],
- vintf_fragments: ["vendor.lineage.biometrics.fingerprint.inscreen@1.0-service.davinci.xml"],
- init_rc: ["vendor.lineage.biometrics.fingerprint.inscreen@1.0-service.davinci.rc"],
- relative_install_path: "hw",
- srcs: [
- "service.cpp",
- "FingerprintInscreen.cpp",
- ],
- vendor: true,
- shared_libs: [
- "libbase",
- "libhardware",
- "libhidlbase",
- "liblog",
- "libutils",
- "vendor.goodix.hardware.biometrics.fingerprint@2.1",
- "vendor.lineage.biometrics.fingerprint.inscreen@1.0",
- "vendor.xiaomi.hardware.fingerprintextension@1.0",
- "vendor.xiaomi.hardware.touchfeature@1.0",
- ],
-}
-
-cc_library_static {
- name: "libfod_extension.davinci",
- srcs: ["FodExtension.cpp"],
- include_dirs: [
- "frameworks/native/services/surfaceflinger/CompositionEngine/include",
- ],
- header_libs: [
- "generated_kernel_headers",
- ],
-}
diff --git a/fod/FingerprintInscreen.cpp b/fod/FingerprintInscreen.cpp
deleted file mode 100644
index 27da174..0000000
--- a/fod/FingerprintInscreen.cpp
+++ /dev/null
@@ -1,202 +0,0 @@
-/*
- * Copyright (C) 2019-2020 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.
- */
-
-#define LOG_TAG "FingerprintInscreenService"
-
-#include "FingerprintInscreen.h"
-
-#include
-#include
-#include
-#include
-
-#include
-#include
-#include
-
-#define FINGERPRINT_ACQUIRED_VENDOR 6
-
-#define COMMAND_NIT 10
-#define PARAM_NIT_FOD 1
-#define PARAM_NIT_NONE 0
-
-#define TOUCH_FOD_ENABLE 10
-
-#define FOD_UI_PATH "/sys/devices/platform/soc/soc:qcom,dsi-display/fod_ui"
-
-#define FOD_SENSOR_X 445
-#define FOD_SENSOR_Y 1931
-#define FOD_SENSOR_SIZE 190
-
-namespace {
-
-static bool readBool(int fd) {
- char c;
- int rc;
-
- rc = lseek(fd, 0, SEEK_SET);
- if (rc) {
- LOG(ERROR) << "failed to seek fd, err: " << rc;
- return false;
- }
-
- rc = read(fd, &c, sizeof(char));
- if (rc != 1) {
- LOG(ERROR) << "failed to read bool from fd, err: " << rc;
- return false;
- }
-
- return c != '0';
-}
-
-} // anonymous namespace
-
-namespace vendor {
-namespace lineage {
-namespace biometrics {
-namespace fingerprint {
-namespace inscreen {
-namespace V1_0 {
-namespace implementation {
-
-FingerprintInscreen::FingerprintInscreen() {
- touchFeatureService = ITouchFeature::getService();
- xiaomiFingerprintService = IXiaomiFingerprint::getService();
-
- std::thread([this]() {
- int fd = open(FOD_UI_PATH, O_RDONLY);
- if (fd < 0) {
- LOG(ERROR) << "failed to open fd, err: " << fd;
- return;
- }
-
- struct pollfd fodUiPoll = {
- .fd = fd,
- .events = POLLERR | POLLPRI,
- .revents = 0,
- };
-
- while (true) {
- int rc = poll(&fodUiPoll, 1, -1);
- if (rc < 0) {
- LOG(ERROR) << "failed to poll fd, err: " << rc;
- continue;
- }
-
- xiaomiFingerprintService->extCmd(COMMAND_NIT,
- readBool(fd) ? PARAM_NIT_FOD : PARAM_NIT_NONE);
- }
- }).detach();
-}
-
-Return FingerprintInscreen::getPositionX() {
- return FOD_SENSOR_X;
-}
-
-Return FingerprintInscreen::getPositionY() {
- return FOD_SENSOR_Y;
-}
-
-Return FingerprintInscreen::getSize() {
- return FOD_SENSOR_SIZE;
-}
-
-Return FingerprintInscreen::onStartEnroll() {
- return Void();
-}
-
-Return FingerprintInscreen::onFinishEnroll() {
- return Void();
-}
-
-Return FingerprintInscreen::onPress() {
- return Void();
-}
-
-Return FingerprintInscreen::onRelease() {
- return Void();
-}
-
-Return FingerprintInscreen::onShowFODView() {
- touchFeatureService->setTouchMode(TOUCH_FOD_ENABLE, 1);
- return Void();
-}
-
-Return FingerprintInscreen::onHideFODView() {
- touchFeatureService->resetTouchMode(TOUCH_FOD_ENABLE);
- return Void();
-}
-
-Return FingerprintInscreen::handleAcquired(int32_t acquiredInfo, int32_t vendorCode) {
- std::lock_guard _lock(mCallbackLock);
- if (mCallback == nullptr) {
- return false;
- }
-
- if (acquiredInfo == FINGERPRINT_ACQUIRED_VENDOR) {
- if (vendorCode == 22) {
- Return ret = mCallback->onFingerDown();
- if (!ret.isOk()) {
- LOG(ERROR) << "FingerDown() error: " << ret.description();
- }
- return true;
- }
-
- if (vendorCode == 23) {
- Return ret = mCallback->onFingerUp();
- if (!ret.isOk()) {
- LOG(ERROR) << "FingerUp() error: " << ret.description();
- }
- return true;
- }
- }
-
- return false;
-}
-
-Return FingerprintInscreen::handleError(int32_t error, int32_t vendorCode) {
- LOG(ERROR) << "error: " << error << ", vendorCode: " << vendorCode;
- return false;
-}
-
-Return FingerprintInscreen::setLongPressEnabled(bool) {
- return Void();
-}
-
-Return FingerprintInscreen::getDimAmount(int32_t /* brightness */) {
- return 0;
-}
-
-Return FingerprintInscreen::shouldBoostBrightness() {
- return false;
-}
-
-Return FingerprintInscreen::setCallback(const sp& callback) {
- {
- std::lock_guard _lock(mCallbackLock);
- mCallback = callback;
- }
-
- return Void();
-}
-
-} // namespace implementation
-} // namespace V1_0
-} // namespace inscreen
-} // namespace fingerprint
-} // namespace biometrics
-} // namespace lineage
-} // namespace vendor
diff --git a/fod/FingerprintInscreen.h b/fod/FingerprintInscreen.h
deleted file mode 100644
index 8d39985..0000000
--- a/fod/FingerprintInscreen.h
+++ /dev/null
@@ -1,73 +0,0 @@
-/*
- * Copyright (C) 2019-2020 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.
- */
-
-#ifndef VENDOR_LINEAGE_BIOMETRICS_FINGERPRINT_INSCREEN_V1_0_FINGERPRINTINSCREEN_H
-#define VENDOR_LINEAGE_BIOMETRICS_FINGERPRINT_INSCREEN_V1_0_FINGERPRINTINSCREEN_H
-
-#include
-#include
-#include
-
-namespace vendor {
-namespace lineage {
-namespace biometrics {
-namespace fingerprint {
-namespace inscreen {
-namespace V1_0 {
-namespace implementation {
-
-using ::android::sp;
-using ::android::hardware::Return;
-using ::android::hardware::Void;
-using ::vendor::xiaomi::hardware::fingerprintextension::V1_0::IXiaomiFingerprint;
-using ::vendor::xiaomi::hardware::touchfeature::V1_0::ITouchFeature;
-
-class FingerprintInscreen : public IFingerprintInscreen {
-public:
- FingerprintInscreen();
- Return getPositionX() override;
- Return getPositionY() override;
- Return getSize() override;
- Return onStartEnroll() override;
- Return onFinishEnroll() override;
- Return onPress() override;
- Return onRelease() override;
- Return onShowFODView() override;
- Return onHideFODView() override;
- Return handleAcquired(int32_t acquiredInfo, int32_t vendorCode) override;
- Return handleError(int32_t error, int32_t vendorCode) override;
- Return setLongPressEnabled(bool enabled) override;
- Return getDimAmount(int32_t brightness) override;
- Return shouldBoostBrightness() override;
- Return setCallback(const sp& callback) override;
-
-private:
- sp touchFeatureService;
- sp xiaomiFingerprintService;
-
- std::mutex mCallbackLock;
- sp mCallback;
-};
-
-} // namespace implementation
-} // namespace V1_0
-} // namespace inscreen
-} // namespace fingerprint
-} // namespace biometrics
-} // namespace lineage
-} // namespace vendor
-
-#endif // VENDOR_LINEAGE_BIOMETRICS_FINGERPRINT_INSCREEN_V1_0_FINGERPRINTINSCREEN_H
diff --git a/fod/FodExtension.cpp b/fod/FodExtension.cpp
deleted file mode 100644
index 1a0358e..0000000
--- a/fod/FodExtension.cpp
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Copyright (C) 2020 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.
- */
-
-#include
-#include
-#include
-
-uint32_t getFodZOrder(uint32_t z, bool touched) {
- if (touched) {
- z |= FOD_PRESSED_LAYER_ZORDER;
- }
-
- return z;
-}
-
-uint64_t getFodUsageBits(uint64_t usageBits, bool touched) {
- (void) touched;
- return usageBits;
-}
diff --git a/fod/service.cpp b/fod/service.cpp
deleted file mode 100644
index 8c53163..0000000
--- a/fod/service.cpp
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Copyright (C) 2019 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.
- */
-
-#define LOG_TAG "vendor.lineage.biometrics.fingerprint.inscreen@1.0-service.davinci"
-
-#include
-#include
-
-#include "FingerprintInscreen.h"
-
-using android::hardware::configureRpcThreadpool;
-using android::hardware::joinRpcThreadpool;
-
-using vendor::lineage::biometrics::fingerprint::inscreen::V1_0::IFingerprintInscreen;
-using vendor::lineage::biometrics::fingerprint::inscreen::V1_0::implementation::FingerprintInscreen;
-
-using android::OK;
-using android::status_t;
-
-int main() {
- android::sp service = new FingerprintInscreen();
-
- configureRpcThreadpool(1, true);
-
- status_t status = service->registerAsService();
- if (status != OK) {
- LOG(ERROR) << "Cannot register FOD HAL service.";
- return 1;
- }
-
- LOG(INFO) << "FOD HAL service ready.";
-
- joinRpcThreadpool();
-
- LOG(ERROR) << "FOD HAL service failed to join thread pool.";
- return 1;
-}
diff --git a/fod/vendor.lineage.biometrics.fingerprint.inscreen@1.0-service.davinci.rc b/fod/vendor.lineage.biometrics.fingerprint.inscreen@1.0-service.davinci.rc
deleted file mode 100644
index 8b93887..0000000
--- a/fod/vendor.lineage.biometrics.fingerprint.inscreen@1.0-service.davinci.rc
+++ /dev/null
@@ -1,10 +0,0 @@
-on boot
- chown system system /sys/devices/platform/soc/soc:qcom,dsi-display/fod_ui
- chmod 0444 /sys/devices/platform/soc/soc:qcom,dsi-display/fod_ui
-
-service vendor.fingerprint-inscreen-1-0 /vendor/bin/hw/vendor.lineage.biometrics.fingerprint.inscreen@1.0-service.davinci
- interface vendor.lineage.biometrics.fingerprint.inscreen@1.0::IFingerprintInscreen default
- class hal
- user system
- group system
- shutdown critical
diff --git a/fod/vendor.lineage.biometrics.fingerprint.inscreen@1.0-service.davinci.xml b/fod/vendor.lineage.biometrics.fingerprint.inscreen@1.0-service.davinci.xml
deleted file mode 100644
index e03c70c..0000000
--- a/fod/vendor.lineage.biometrics.fingerprint.inscreen@1.0-service.davinci.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
- vendor.lineage.biometrics.fingerprint.inscreen
- hwbinder
- 1.0
-
- IFingerprintInscreen
- default
-
-
-
diff --git a/init/Android.bp b/init/Android.bp
deleted file mode 100644
index d1accf1..0000000
--- a/init/Android.bp
+++ /dev/null
@@ -1,25 +0,0 @@
-//
-// Copyright (C) 2020 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.
-//
-
-cc_library_static {
- name: "libinit_davinci",
- srcs: ["init_davinci.cpp"],
- recovery_available: true,
- include_dirs: [
- "system/core/init",
- ],
- shared_libs: ["libbase"],
-}
diff --git a/init/init_davinci.cpp b/init/init_davinci.cpp
deleted file mode 100644
index a2a0c04..0000000
--- a/init/init_davinci.cpp
+++ /dev/null
@@ -1,115 +0,0 @@
-/*
- Copyright (C) 2020 The LineageOS Project.
-
- 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.
- */
-
-#include
-
-#include
-#define _REALLY_INCLUDE_SYS__SYSTEM_PROPERTIES_H_
-#include
-
-using android::base::GetProperty;
-
-std::vector ro_props_default_source_order = {
- "",
- "bootimage.",
- "odm.",
- "product.",
- "system.",
- "vendor.",
-};
-
-void property_override(char const prop[], char const value[], bool add = true)
-{
- prop_info *pi;
-
- pi = (prop_info *) __system_property_find(prop);
- if (pi)
- __system_property_update(pi, value, strlen(value));
- else if (add)
- __system_property_add(prop, strlen(prop), value, strlen(value));
-}
-
-void set_ro_build_prop(const std::string &prop, const std::string &value) {
- for (const auto &source : ro_props_default_source_order) {
- auto prop_name = "ro." + source + "build." + prop;
- if (source == "")
- property_override(prop_name.c_str(), value.c_str());
- else
- property_override(prop_name.c_str(), value.c_str(), false);
- }
-};
-
-void set_ro_product_prop(const std::string &prop, const std::string &value) {
- for (const auto &source : ro_props_default_source_order) {
- auto prop_name = "ro.product." + source + prop;
- property_override(prop_name.c_str(), value.c_str(), false);
- }
-};
-
-void vendor_load_properties() {
- std::string region;
- std::string hardware_revision;
- region = GetProperty("ro.boot.hwc", "GLOBAL");
- hardware_revision = GetProperty("ro.boot.hwversion", "UNKNOWN");
-
- std::string model;
- std::string device;
- std::string fingerprint;
- std::string description;
- std::string mod_device;
-
- if (region == "GLOBAL") {
- model = "Mi 9T";
- device = "davinci";
- fingerprint = "Xiaomi/davinci/davinci:10/QKQ1.190825.002/V12.0.3.0.QFJMIXM:user/release-keys";
- description = "davinci-user 10 QKQ1.190825.002 V12.0.3.0.QFJMIXM release-keys";
- mod_device = "davinci_global";
- } else if (region == "CN") {
- model = "Redmi K20";
- device = "davinci";
- fingerprint = "Xiaomi/davinci/davinci:10/QKQ1.190825.002/V12.0.3.0.QFJCNXM:user/release-keys";
- description = "davinci-user 10 QKQ1.190825.002 V12.0.3.0.QFJCNXM release-keys";
- } else if (region == "INDIA") {
- model = "Redmi K20";
- device = "davinciin";
- fingerprint = "Xiaomi/davinciin/davinciin:10/QKQ1.190825.002/V12.0.3.0.QFJINXM:user/release-keys";
- description = "davinciin-user 10 QKQ1.190825.002 V12.0.3.0.QFJINXM release-keys";
- mod_device = "davinciin_in_global";
- }
-
- set_ro_build_prop("fingerprint", fingerprint);
- set_ro_product_prop("device", device);
- set_ro_product_prop("model", model);
- property_override("ro.build.description", description.c_str());
- if (mod_device != "") {
- property_override("ro.product.mod_device", mod_device.c_str());
- }
-
- property_override("ro.boot.hardware.revision", hardware_revision.c_str());
-}
diff --git a/light/Android.bp b/light/Android.bp
index 031bc45..9aa0bc9 100644
--- a/light/Android.bp
+++ b/light/Android.bp
@@ -14,10 +14,10 @@
// limitations under the License.
cc_binary {
- name: "android.hardware.light@2.0-service.davinci",
+ name: "android.hardware.light@2.0-service.xiaomi_sm6150",
defaults: ["hidl_defaults"],
- vintf_fragments: ["android.hardware.light@2.0-service.davinci.xml"],
- init_rc: ["android.hardware.light@2.0-service.davinci.rc"],
+ vintf_fragments: ["android.hardware.light@2.0-service.xiaomi_sm6150.xml"],
+ init_rc: ["android.hardware.light@2.0-service.xiaomi_sm6150.rc"],
relative_install_path: "hw",
srcs: [
"service.cpp",
diff --git a/light/android.hardware.light@2.0-service.davinci.rc b/light/android.hardware.light@2.0-service.xiaomi_sm6150.rc
similarity index 95%
rename from light/android.hardware.light@2.0-service.davinci.rc
rename to light/android.hardware.light@2.0-service.xiaomi_sm6150.rc
index 9803b27..5ee5955 100644
--- a/light/android.hardware.light@2.0-service.davinci.rc
+++ b/light/android.hardware.light@2.0-service.xiaomi_sm6150.rc
@@ -9,7 +9,7 @@ on boot
chmod 0644 /sys/class/leds/right/brightness
chmod 0644 /sys/class/leds/right/breath
-service vendor.light-hal-2-0 /vendor/bin/hw/android.hardware.light@2.0-service.davinci
+service vendor.light-hal-2-0 /vendor/bin/hw/android.hardware.light@2.0-service.xiaomi_sm6150
interface android.hardware.light@2.0::ILight default
class hal
user system
diff --git a/light/android.hardware.light@2.0-service.davinci.xml b/light/android.hardware.light@2.0-service.xiaomi_sm6150.xml
similarity index 100%
rename from light/android.hardware.light@2.0-service.davinci.xml
rename to light/android.hardware.light@2.0-service.xiaomi_sm6150.xml
diff --git a/light/service.cpp b/light/service.cpp
index e7cffb8..86f1242 100644
--- a/light/service.cpp
+++ b/light/service.cpp
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-#define LOG_TAG "android.hardware.light@2.0-service.davinci"
+#define LOG_TAG "android.hardware.light@2.0-service.xiaomi_sm6150"
#include
diff --git a/lineage_davinci.mk b/lineage_davinci.mk
deleted file mode 100644
index 45f99a7..0000000
--- a/lineage_davinci.mk
+++ /dev/null
@@ -1,33 +0,0 @@
-#
-# Copyright (C) 2020 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.
-#
-
-# Inherit from those products. Most specific first.
-$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
-$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
-
-# Inherit from davinci device
-$(call inherit-product, device/xiaomi/davinci/device.mk)
-
-# Inherit some common Lineage stuff.
-$(call inherit-product, vendor/lineage/config/common_full_phone.mk)
-
-PRODUCT_NAME := lineage_davinci
-PRODUCT_DEVICE := davinci
-PRODUCT_BRAND := Xiaomi
-PRODUCT_MODEL := Mi 9T
-PRODUCT_MANUFACTURER := Xiaomi
-
-PRODUCT_GMS_CLIENTID_BASE := android-xiaomi
diff --git a/livedisplay/Android.bp b/livedisplay/Android.bp
index 7efc444..d703560 100644
--- a/livedisplay/Android.bp
+++ b/livedisplay/Android.bp
@@ -14,10 +14,10 @@
// limitations under the License.
cc_binary {
- name: "vendor.lineage.livedisplay@2.0-service.davinci",
+ name: "vendor.lineage.livedisplay@2.0-service.xiaomi_sm6150",
defaults: ["hidl_defaults"],
- vintf_fragments: ["vendor.lineage.livedisplay@2.0-service.davinci.xml"],
- init_rc: ["vendor.lineage.livedisplay@2.0-service.davinci.rc"],
+ vintf_fragments: ["vendor.lineage.livedisplay@2.0-service.xiaomi_sm6150.xml"],
+ init_rc: ["vendor.lineage.livedisplay@2.0-service.xiaomi_sm6150.rc"],
relative_install_path: "hw",
srcs: [
"SunlightEnhancement.cpp",
diff --git a/livedisplay/service.cpp b/livedisplay/service.cpp
index 27c6671..604f220 100644
--- a/livedisplay/service.cpp
+++ b/livedisplay/service.cpp
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-#define LOG_TAG "vendor.lineage.livedisplay@2.0-service.davinci"
+#define LOG_TAG "vendor.lineage.livedisplay@2.0-service.xiaomi_sm6150"
#include
#include
diff --git a/livedisplay/vendor.lineage.livedisplay@2.0-service.davinci.rc b/livedisplay/vendor.lineage.livedisplay@2.0-service.xiaomi_sm6150.rc
similarity index 88%
rename from livedisplay/vendor.lineage.livedisplay@2.0-service.davinci.rc
rename to livedisplay/vendor.lineage.livedisplay@2.0-service.xiaomi_sm6150.rc
index eba2943..5877b3a 100644
--- a/livedisplay/vendor.lineage.livedisplay@2.0-service.davinci.rc
+++ b/livedisplay/vendor.lineage.livedisplay@2.0-service.xiaomi_sm6150.rc
@@ -2,7 +2,7 @@ on boot
chown system system /sys/devices/platform/soc/soc:qcom,dsi-display/hbm
chmod 0660 /sys/devices/platform/soc/soc:qcom,dsi-display/hbm
-service vendor.livedisplay-hal-2-0 /vendor/bin/hw/vendor.lineage.livedisplay@2.0-service.davinci
+service vendor.livedisplay-hal-2-0 /vendor/bin/hw/vendor.lineage.livedisplay@2.0-service.xiaomi_sm6150
class hal
user system
group system
diff --git a/livedisplay/vendor.lineage.livedisplay@2.0-service.davinci.xml b/livedisplay/vendor.lineage.livedisplay@2.0-service.xiaomi_sm6150.xml
similarity index 100%
rename from livedisplay/vendor.lineage.livedisplay@2.0-service.davinci.xml
rename to livedisplay/vendor.lineage.livedisplay@2.0-service.xiaomi_sm6150.xml
diff --git a/overlay-lineage/frameworks/base/packages/SystemUI/res-keyguard/values/dimens.xml b/overlay-lineage/frameworks/base/packages/SystemUI/res-keyguard/values/dimens.xml
deleted file mode 100644
index 0135b00..0000000
--- a/overlay-lineage/frameworks/base/packages/SystemUI/res-keyguard/values/dimens.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-
- 505px
-
diff --git a/overlay-lineage/frameworks/base/packages/SystemUI/res/drawable-nodpi/fod_icon_pressed.png b/overlay-lineage/frameworks/base/packages/SystemUI/res/drawable-nodpi/fod_icon_pressed.png
deleted file mode 100644
index 8775132..0000000
Binary files a/overlay-lineage/frameworks/base/packages/SystemUI/res/drawable-nodpi/fod_icon_pressed.png and /dev/null differ
diff --git a/overlay-lineage/frameworks/base/packages/SystemUI/res/values/config.xml b/overlay-lineage/frameworks/base/packages/SystemUI/res/values/config.xml
index ef5ba49..5413539 100644
--- a/overlay-lineage/frameworks/base/packages/SystemUI/res/values/config.xml
+++ b/overlay-lineage/frameworks/base/packages/SystemUI/res/values/config.xml
@@ -17,7 +17,4 @@
6
7
-
-
- #00ffffff
diff --git a/overlay-lineage/packages/apps/Settings/res/values/config.xml b/overlay-lineage/packages/apps/Settings/res/values/config.xml
deleted file mode 100644
index 9b87822..0000000
--- a/overlay-lineage/packages/apps/Settings/res/values/config.xml
+++ /dev/null
@@ -1,24 +0,0 @@
-
-
-
-
- 1
-
diff --git a/overlay-lineage/packages/apps/Settings/res/values/dimens.xml b/overlay-lineage/packages/apps/Settings/res/values/dimens.xml
deleted file mode 100644
index 51f9c73..0000000
--- a/overlay-lineage/packages/apps/Settings/res/values/dimens.xml
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
- - 78%
-
diff --git a/overlay-system/frameworks/base/packages/SystemUI/res/layout/auth_biometric_fingerprint_view.xml b/overlay-system/frameworks/base/packages/SystemUI/res/layout/auth_biometric_fingerprint_view.xml
deleted file mode 100644
index 4dc47ce..0000000
--- a/overlay-system/frameworks/base/packages/SystemUI/res/layout/auth_biometric_fingerprint_view.xml
+++ /dev/null
@@ -1,119 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml
index 996d4cf..5e2f6c8 100644
--- a/overlay/frameworks/base/core/res/res/values/config.xml
+++ b/overlay/frameworks/base/core/res/res/values/config.xml
@@ -506,9 +506,6 @@
- 3
-
- 35.0dip
-
- 0
diff --git a/overlay/frameworks/base/core/res/res/xml/power_profile.xml b/overlay/frameworks/base/core/res/res/xml/power_profile.xml
deleted file mode 100644
index 6b45499..0000000
--- a/overlay/frameworks/base/core/res/res/xml/power_profile.xml
+++ /dev/null
@@ -1,99 +0,0 @@
-
-
- - 0
- - 75.47
- - 387.93
- - 4.43
- - 0.9
- - 0.5
- - 135.59
- - 19.46
- - 20.71
- - 40.63
- - 288.29
- - 770.28
- - 59.39
- - 165.56
- - 45
-
- 9.48
- 9.48
-
- - 0
- - 0
- - 0
- - 0
-
- 6
- 2
-
-
- 300000
- 576000
- 768000
- 1017600
- 1248000
- 1324800
- 1497600
- 1621800
- 1708800
- 1804800
-
-
- 120.09
- 128.85
- 139.87
- 159.83
- 180.88
- 191.4
- 209.57
- 257.8
- 276.02
- 285.67
-
-
- 300000
- 652800
- 806400
- 979200
- 1094400
- 1209600
- 1324800
- 1555200
- 1708800
- 1843200
- 1939200
- 2169600
- 2208000
-
-
- 199.52
- 282.09
- 317.76
- 379.8
- 425.25
- 478.55
- 532.35
- 705.83
- 813.09
- 1140.65
- 1242.73
- 1514.4
- 1583.92
-
- - 7.44
- - 4.48
- - 4000
- - 0
- - 0
- - 0
-
- - 0
-
- .0002
- .002
- .02
- .2
- 2
-
-
diff --git a/overlay/frameworks/base/packages/SystemUI/res/drawable/rounded.xml b/overlay/frameworks/base/packages/SystemUI/res/drawable/rounded.xml
deleted file mode 100644
index 74811c6..0000000
--- a/overlay/frameworks/base/packages/SystemUI/res/drawable/rounded.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-
-
-
-
-
diff --git a/overlay/frameworks/base/packages/SystemUI/res/values/config.xml b/overlay/frameworks/base/packages/SystemUI/res/values/config.xml
index 7b65fc0..2f4e407 100644
--- a/overlay/frameworks/base/packages/SystemUI/res/values/config.xml
+++ b/overlay/frameworks/base/packages/SystemUI/res/values/config.xml
@@ -18,12 +18,6 @@
-->
-
- M21,0C19.94,0.01 18.83,0.04 17.73,0.11C16.91,0.17 16.09,0.25 15.3,0.36C14.5,0.48 13.72,0.62 12.95,0.81C11.42,1.19 9.97,1.72 8.65,2.43C7.32,3.14 6.12,4.02 5.08,5.07C4.04,6.11 3.15,7.31 2.44,8.64C1.73,9.97 1.19,11.42 0.82,12.94C0.63,13.7 0.48,14.49 0.37,15.29C0.25,16.09 0.17,16.9 0.12,17.72C0.05,18.82 0.02,19.93 0.01,21.55
-
true
diff --git a/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml b/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml
deleted file mode 100644
index 50a83c3..0000000
--- a/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
-
- 1dp
-
-
- 33px
-
-
- 22px
-
-
- 44px
-
diff --git a/proprietary-files.txt b/proprietary-files.txt
index ddc800f..5a2896b 100644
--- a/proprietary-files.txt
+++ b/proprietary-files.txt
@@ -54,21 +54,6 @@ vendor/lib/libadm.so
vendor/lib/libaudcal.so
vendor/lib/libqtigef.so
-# Audio ACDB
-vendor/etc/acdbdata/adsp_avs_config.acdb
-vendor/etc/acdbdata/Forte/Forte_Bluetooth_cal.acdb
-vendor/etc/acdbdata/Forte/Forte_Codec_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
-
-# Audio firmware
-vendor/firmware/tfa98xx.cnt
-
# Bluetooth
vendor/bin/hw/android.hardware.bluetooth@1.0-service-qti
vendor/etc/init/android.hardware.bluetooth@1.0-service-qti.rc
@@ -90,203 +75,6 @@ vendor/lib/vendor.qti.hardware.bluetooth_audio@2.0.so
system_ext/lib64/libaptXHD_encoder.so|e13fa70c97caaa24d061678bdee608eb8850a69e
system_ext/lib64/libaptX_encoder.so|df1c89d7af1bb35808d5fe3496b04ba066c10cbc
-# Camera
-vendor/bin/remosaic_daemon
-vendor/lib64/hw/camera.qcom.so
-vendor/lib64/hw/com.qti.chi.override.so
-vendor/lib64/libalAILDC.so
-vendor/lib64/libalCFR.so
-vendor/lib64/libalhLDC.so
-vendor/lib64/libalLDC.so
-vendor/lib64/libarcsat.so
-vendor/lib64/libarcsoft_beautyshot.so
-vendor/lib64/libarcsoft_bodyslim.so
-vendor/lib64/libarcsoft_distortion_correction.so
-vendor/lib64/libarcsoft_dualcam_image_optical_zoom.so
-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_dualcam_refocus.so
-vendor/lib64/libarcsoft_high_dynamic_range.so
-vendor/lib64/libarcsoft_low_light_hdr.so
-vendor/lib64/libarcsoft_portrait_lighting_c.so
-vendor/lib64/libarcsoft_portrait_lighting.so
-vendor/lib64/libarcsoft_preview_deflicker.so
-vendor/lib64/libarcsoft_supernight.so
-vendor/lib64/libcamera_nn_stub.so
-vendor/lib64/libcamera_scene.so
-vendor/lib64/libcamxfdalgov8.so
-vendor/lib64/libcamxfdengine.so
-vendor/lib64/libcamxstatscore.so
-vendor/lib64/libcamxswprocessalgo.so
-vendor/lib64/libcamxtintlessalgo.so
-vendor/lib64/libcom.qti.chinodeutils.so
-vendor/lib64/lib_denoiser3.so
-vendor/lib64/libFaceGrade.so
-vendor/lib64/libft2vendor.so
-vendor/lib64/libHalSuperSensorServer.so
-vendor/lib64/libmialgo_fs.so
-vendor/lib64/libmialgo_rfs.so
-vendor/lib64/libmialgo_sd.so
-vendor/lib64/libmialgo_utils.so
-vendor/lib64/libmibokeh_712.so
-vendor/lib64/libmpbase.so
-vendor/lib64/libremosaiclib.so
-vendor/lib64/libremosaic_daemon.so
-vendor/lib64/libSuperSensorCPU.so
-vendor/lib64/libSuperSensor.so
-vendor/lib64/libtriplecam_optical_zoom_control.so
-vendor/lib64/libtriplecam_video_optical_zoom.so
-vendor/lib64/libVDClearShot.so
-vendor/lib64/libVDSuperPhotoAPI.so
-vendor/lib64/libvidhance.so
-vendor/lib64/libXMFD_AgeGender.so
-vendor/lib64/libc++_shared.so
-
-# Camera components
-vendor/lib64/camera/components/com.almalence.node.sr.so
-vendor/lib64/camera/components/com.altek.node.depurple.so
-vendor/lib64/camera/components/com.altek.node.distortioncorrection.so
-vendor/lib64/camera/components/com.arcsoft.node.bodyslim.so
-vendor/lib64/camera/components/com.arcsoft.node.capturebokeh.so
-vendor/lib64/camera/components/com.arcsoft.node.capturefusion.so
-vendor/lib64/camera/components/com.arcsoft.node.deflicker.so
-vendor/lib64/camera/components/com.arcsoft.node.distortioncorrection.so
-vendor/lib64/camera/components/com.arcsoft.node.hdrchecker.so
-vendor/lib64/camera/components/com.arcsoft.node.hdr.so
-vendor/lib64/camera/components/com.arcsoft.node.realtimebokeh.so
-vendor/lib64/camera/components/com.arcsoft.node.skinbeautifier.so
-vendor/lib64/camera/components/com.arcsoft.node.smooth_transition.so
-vendor/lib64/camera/components/com.arcsoft.node.superlowlight.so
-vendor/lib64/camera/components/com.mi.node.aiasd.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.depth.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.gpu.so
-vendor/lib64/camera/components/com.qti.node.memcpy.so
-vendor/lib64/camera/components/com.qti.node.photosolid.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.swregistration.so
-vendor/lib64/camera/components/com.qti.node.watermark.so
-vendor/lib64/camera/components/com.qti.node.xiaomigenderage.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.qti.stats.aec.so
-vendor/lib64/camera/components/com.qti.stats.afd.so
-vendor/lib64/camera/components/com.qti.stats.af.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.hafoverride.so
-vendor/lib64/camera/components/com.qti.stats.haf.so
-vendor/lib64/camera/components/com.qti.stats.localhistogram.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.vidhance.node.eis.so
-vendor/lib64/camera/components/com.vidhance.stats.aec_dmbr.so
-vendor/lib64/camera/components/com.visidon.node.clearshot.so
-vendor/lib64/camera/components/com.visidon.node.sr.so
-vendor/lib64/camera/components/com.xiaomi.node.mibokeh.so
-vendor/lib64/camera/components/com.xiaomi.node.mifragment.so
-vendor/lib64/camera/components/com.xiaomi.node.misegment.so
-vendor/lib64/camera/components/etc/morpho_lowlight4.0_3hdr.xml
-vendor/lib64/camera/components/etc/morpho_lowlight4.0_adrc_high_1.xml
-vendor/lib64/camera/components/etc/morpho_lowlight4.0_adrc_high.xml
-vendor/lib64/camera/components/etc/morpho_lowlight4.0.xml
-vendor/lib64/camera/components/etc/visidon_clearshot_params.xml
-vendor/lib64/camera/components/libdepthmapwrapper.so
-vendor/lib64/camera/components/libmmcamera_cac3.so
-
-# Camera configs
-vendor/etc/camera/almalence_sr_params_tele.config
-vendor/etc/camera/almalence_sr_params_wide.config
-vendor/etc/camera/beauty_ui9_intelligent_params.config
-vendor/etc/camera/body_slim_ui9_params.config
-vendor/etc/camera/camxoverridesettings.txt
-vendor/etc/camera/CFR_para_T.bin
-vendor/etc/camera/CFR_para_UW.bin
-vendor/etc/camera/CFR_para_W.bin
-vendor/etc/camera/eisoverridesettings.txt
-vendor/etc/camera/eyelineblush.cng
-vendor/etc/camera/golden_rear_dc_cal_wu.bin
-vendor/etc/camera/LDC_FPC_TUNING_DATA.bin
-vendor/etc/camera/LDC_PACKDATA_VENDORID_0x01.bin
-vendor/etc/camera/LDC_PACKDATA_VENDORID_0x07.bin
-vendor/etc/camera/LDC_table_src1.dat
-vendor/etc/camera/LDC_table_src2.dat
-vendor/etc/camera/lf_facerank_model.bin
-vendor/etc/camera/mibokeh_712_opencl.bin
-vendor/etc/camera/mibokeh_712_parameter.bin
-vendor/etc/camera/sdm_ys_32p_120_21_5_perturb50.bin
-
-# Camera sensors
-vendor/lib64/camera/com.qti.sensor.imx582_davinci.so
-vendor/lib64/camera/com.qti.sensor.imx586_davinci.so
-vendor/lib64/camera/com.qti.sensormodule.davinci_luxvisions_imx582.bin
-vendor/lib64/camera/com.qti.sensormodule.davinci_luxvisions_imx586.bin
-vendor/lib64/camera/com.qti.sensormodule.davinci_luxvisions_ov8856.bin
-vendor/lib64/camera/com.qti.sensormodule.davinci_luxvisions_s5k3l6.bin
-vendor/lib64/camera/com.qti.sensormodule.davinci_ofilm_imx582.bin
-vendor/lib64/camera/com.qti.sensormodule.davinci_ofilm_imx586.bin
-vendor/lib64/camera/com.qti.sensormodule.davinci_ofilm_ov8856.bin
-vendor/lib64/camera/com.qti.sensormodule.davinci_ofilm_s5k3l6.bin
-vendor/lib64/camera/com.qti.sensormodule.davinci_sunny_s5k3t2.bin
-vendor/lib64/camera/com.qti.sensor.ov8856_davinci.so
-vendor/lib64/camera/com.qti.sensor.s5k3l6_davinci.so
-vendor/lib64/camera/com.qti.sensor.s5k3t2_davinci.so
-vendor/lib64/camera/com.qti.tuned.davinci_luxvisions_imx582.bin
-vendor/lib64/camera/com.qti.tuned.davinci_luxvisions_imx586.bin
-vendor/lib64/camera/com.qti.tuned.davinci_luxvisions_ov8856.bin
-vendor/lib64/camera/com.qti.tuned.davinci_luxvisions_s5k3l6.bin
-vendor/lib64/camera/com.qti.tuned.davinci_ofilm_imx582.bin
-vendor/lib64/camera/com.qti.tuned.davinci_ofilm_imx586.bin
-vendor/lib64/camera/com.qti.tuned.davinci_ofilm_ov8856.bin
-vendor/lib64/camera/com.qti.tuned.davinci_ofilm_s5k3l6.bin
-vendor/lib64/camera/com.qti.tuned.davinci_sunny_s5k3t2.bin
-vendor/lib64/camera/com.qti.tuned.default.bin
-vendor/lib64/camera/fdconfigpreview.bin
-vendor/lib64/camera/fdconfigpreviewlite.bin
-vendor/lib64/camera/fdconfigvideo.bin
-vendor/lib64/camera/fdconfigvideolite.bin
-
-# Camera firmware
-vendor/firmware/CAMERA_ICP.elf
-
-# Camera motor
-vendor/bin/hw/vendor.xiaomi.hardware.motor@1.0-service
-vendor/etc/step_motor/mi_camera_config.xml
-vendor/lib64/hw/vendor.xiaomi.hardware.motor@1.0-impl.so
-vendor/lib64/libmivendor_module_calibration.so
-vendor/lib64/libmivendor_module_hall.so
-vendor/lib64/libmivendor_module_motor.so
-vendor/lib64/mi.motor.daemon.so
-
-# Camera (popup sound effects)
-media/audio/ui/popup_cangmen_down.ogg
-media/audio/ui/popup_cangmen_up.ogg
-media/audio/ui/popup_chilun_down.ogg
-media/audio/ui/popup_chilun_up.ogg
-media/audio/ui/popup_jijia_down.ogg
-media/audio/ui/popup_jijia_up.ogg
-media/audio/ui/popup_mofa_down.ogg
-media/audio/ui/popup_mofa_up.ogg
-media/audio/ui/popup_muqin_down.ogg
-media/audio/ui/popup_muqin_up.ogg
-media/audio/ui/popup_yingyan_down.ogg
-media/audio/ui/popup_yingyan_up.ogg
-
# Charger
vendor/bin/hvdcp_opti
@@ -369,10 +157,6 @@ vendor/lib64/libtinyxml2_1.so
# Display - from NX627J 20201029.204053
vendor/lib64/libsdedrm.so|582910d21139781ad9e414c35207584f51e035e2
-# Display calibration - from MIUI 12.0.3
-vendor/etc/qdcm_calib_data_ss_ea_fhd_cmd_dsi_panel.xml|4c8c166bba6ef7de86d7ab3c722dc7afc8e18a8d
-vendor/etc/qdcm_calib_data_ss_eb_fhd_cmd_dsi_panel.xml|9592ec2725e2be9b43a13d7ba87ef2a10ba5e249
-
# DPM
framework/tcmclient.jar
system_ext/bin/dpmd
@@ -422,15 +206,6 @@ vendor/etc/init/vendor.qti.hardware.dsp@1.0-service.rc
vendor/etc/seccomp_policy/vendor.qti.hardware.dsp.policy
vendor/lib64/vendor.qti.hardware.dsp@1.0.so
-# Fingerprint
-vendor/bin/hw/android.hardware.biometrics.fingerprint@2.1-service
-vendor/etc/init/android.hardware.biometrics.fingerprint@2.1-service.rc
--vendor/etc/vintf/manifest/android.hardware.biometrics.fingerprint@2.1-service.xml
-vendor/lib64/hw/fingerprint.goodix_fod.so
-vendor/lib64/libgf_hal.so
-vendor/lib64/vendor.goodix.hardware.biometrics.fingerprint@2.1.so
-vendor/lib64/vendor.xiaomi.hardware.fingerprintextension@1.0.so
-
# FM
system_ext/lib64/fm_helium.so
system_ext/lib64/libfm-hci.so
@@ -470,15 +245,6 @@ vendor/lib/libllvm-glnext.so
vendor/lib/libllvm-qcom.so
vendor/lib/libOpenCL.so
-# Graphics firmware
-vendor/firmware/a615_zap.b00
-vendor/firmware/a615_zap.b01
-vendor/firmware/a615_zap.b02
-vendor/firmware/a615_zap.elf
-vendor/firmware/a615_zap.mdt
-vendor/firmware/a618_gmu.bin
-vendor/firmware/a630_sqe.fw
-
# Gatekeeper
vendor/bin/hw/android.hardware.gatekeeper@1.0-service-qti
vendor/etc/init/android.hardware.gatekeeper@1.0-service-qti.rc
@@ -576,13 +342,6 @@ vendor/lib64/vendor.qti.imsrtpservice@3.0.so
# IPA
vendor/etc/init/ipa_fws.rc
-vendor/firmware/ipa_fws.b00
-vendor/firmware/ipa_fws.b01
-vendor/firmware/ipa_fws.b02
-vendor/firmware/ipa_fws.b03
-vendor/firmware/ipa_fws.b04
-vendor/firmware/ipa_fws.elf
-vendor/firmware/ipa_fws.mdt
# Keymaster
vendor/bin/hw/android.hardware.keymaster@3.0-service-qti
@@ -638,9 +397,6 @@ vendor/lib/vendor.qti.hardware.vpp@1.1.so
vendor/lib/vendor.qti.hardware.vpp@1.2.so
vendor/lib/vendor.qti.hardware.vpp@1.3.so
-# NFC
-vendor/lib/libsn100u_fw.so
-
# Perf
vendor/bin/hw/vendor.qti.hardware.perf@2.2-service
vendor/bin/msm_irqbalance
@@ -778,59 +534,6 @@ vendor/radio/qcril_database/upgrade/5_version_update_ecc_table.sql
vendor/radio/qcril_database/upgrade/6_version_update_ecc_table.sql
vendor/radio/qcril_database/upgrade/7_version_update_ecc_table.sql
-# Sensors
-vendor/bin/sensors.qti
-vendor/etc/init/init.vendor.sensors.rc
-vendor/etc/init/vendor.sensors.qti.rc
-vendor/etc/sensors/hals.conf
-vendor/lib64/libsensorslog.so
-vendor/lib64/libsnsapi.so
-vendor/lib64/libsnsdiaglog.so
-vendor/lib64/libsns_fastRPC_util.so
-vendor/lib64/libsns_low_lat_stream_stub.so
-vendor/lib64/libssc.so
-vendor/lib64/sensors.ssc.so
-
-# Sensors config
-vendor/etc/sensors/config/adux1050_0.json
-vendor/etc/sensors/config/ak991x_dri_0.json
-vendor/etc/sensors/config/icm4x6xx_0.json
-vendor/etc/sensors/config/lsm6ds3c_0.json
-vendor/etc/sensors/config/sm6150_adux1050_0.json
-vendor/etc/sensors/config/sm6150_ak991x_0.json
-vendor/etc/sensors/config/sm6150_icm4x6xx_0.json
-vendor/etc/sensors/config/sm6150_lsm6ds3c_0.json
-vendor/etc/sensors/config/sm6150_power_0.json
-vendor/etc/sensors/config/sm6150_tcs3701.json
-vendor/etc/sensors/config/sns_amd.json
-vendor/etc/sensors/config/sns_amd_sw_disabled.json
-vendor/etc/sensors/config/sns_aod.json
-vendor/etc/sensors/config/sns_basic_gestures.json
-vendor/etc/sensors/config/sns_bring_to_ear.json
-vendor/etc/sensors/config/sns_ccd.json
-vendor/etc/sensors/config/sns_cm.json
-vendor/etc/sensors/config/sns_dae.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_mag_cal.json
-vendor/etc/sensors/config/sns_multishake.json
-vendor/etc/sensors/config/sns_nonui.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_smd.json
-vendor/etc/sensors/config/sns_tilt.json
-vendor/etc/sensors/config/sns_tilt_sw_enabled.json
-vendor/etc/sensors/config/sns_tilt_to_wake.json
-vendor/etc/sensors/config/tcs3701.json
-vendor/etc/sensors/sns_reg_config
-
# Soter
-app/SoterService/SoterService.apk
vendor/bin/hw/vendor.qti.hardware.soter@1.0-service
@@ -838,37 +541,12 @@ vendor/etc/init/vendor.qti.hardware.soter@1.0-service.rc
vendor/lib64/hw/vendor.qti.hardware.soter@1.0-impl.so
vendor/lib64/vendor.qti.hardware.soter@1.0.so
-# Thermal
-vendor/bin/mi_thermald
-vendor/bin/thermal-engine
-vendor/etc/init/init.mi_thermald.rc
-vendor/etc/thermal-arvr.conf
-vendor/etc/thermal-camera.conf
-vendor/etc/thermal-chg-only.conf
-vendor/etc/thermal-engine.conf
-vendor/etc/thermal-map.conf
-vendor/etc/thermal-nolimits.conf
-vendor/etc/thermal-normal.conf
-vendor/etc/thermal-phone.conf
-vendor/etc/thermal-tgame.conf
-vendor/etc/thermald-devices.conf
-vendor/lib64/libthermalclient.so
-
# Time
-vendor/app/TimeService/TimeService.apk
vendor/bin/time_daemon
vendor/etc/init/init.time_daemon.rc
vendor/lib64/libtime_genoff.so
-# Touchfeature
-vendor/bin/hw/vendor.xiaomi.hardware.touchfeature@1.0-service
-vendor/etc/init/vendor.xiaomi.hardware.touchfeature@1.0-service.rc
-vendor/lib64/hw/vendor.xiaomi.hardware.touchfeature@1.0-impl.so
-
-# Touchscreen firmware
-vendor/firmware/goodix_gt9886_limit_f10_first.tporder
-vendor/firmware/goodix_gt9886_limit_f10_second.tporder
-
# WiFi Display
-framework/WfdCommon.jar
system_ext/bin/wfdservice
diff --git a/rootdir/etc/fstab.qcom b/rootdir/etc/fstab.qcom
deleted file mode 100644
index fdf9fd9..0000000
--- a/rootdir/etc/fstab.qcom
+++ /dev/null
@@ -1,51 +0,0 @@
-# Copyright (c) 2018, The Linux Foundation. All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are
-# met:
-# * Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# * Redistributions in binary form must reproduce the above
-# copyright notice, this list of conditions and the following
-# disclaimer in the documentation and/or other materials provided
-# with the distribution.
-# * Neither the name of The Linux Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
-# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
-# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-# Android fstab file.
-# The filesystem that contains the filesystem checker binary (typically /system) cannot
-# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
-
-#TODO: Add 'check' as fs_mgr_flags with data partition.
-# Currently we dont have e2fsck compiled. So fs check would failed.
-
-#
-/dev/block/bootdevice/by-name/boot /boot emmc defaults recoveryonly
-/dev/block/bootdevice/by-name/recovery /recovery emmc defaults recoveryonly
-/dev/block/bootdevice/by-name/system / ext4 ro,barrier=1,discard wait,avb
-/dev/block/bootdevice/by-name/vendor /vendor ext4 ro,barrier=1 wait,recoveryonly
-/dev/block/bootdevice/by-name/cache /cache ext4 nosuid,noatime,nodev,barrier=1 wait
-/dev/block/bootdevice/by-name/userdata /data f2fs noatime,nosuid,nodev,nodiscard,fsync_mode=nobarrier,reserve_root=32768,resgid=1065,inlinecrypt wait,check,fileencryption=ice,wrappedkey,quota,reservedsize=128M,latemount
-/dev/block/bootdevice/by-name/modem /vendor/firmware_mnt vfat ro,shortname=lower,uid=1000,gid=1000,dmask=227,fmask=337,context=u:object_r:firmware_file:s0 wait
-/dev/block/bootdevice/by-name/dsp /vendor/dsp ext4 ro,nosuid,nodev,barrier=1 wait
-/dev/block/bootdevice/by-name/persist /mnt/vendor/persist ext4 noatime,nosuid,nodev,barrier=1 wait,check
-/dev/block/bootdevice/by-name/bluetooth /vendor/bt_firmware vfat ro,shortname=lower,uid=1002,gid=3002,dmask=227,fmask=337,context=u:object_r:bt_firmware_file:s0 wait
-/devices/platform/soc/a600000.ssusb/a600000.dwc3/xhci-hcd.0.auto* auto auto defaults voldmanaged=usbotg:auto
-# Need to have this entry in here even though the mount point itself is no longer needed.
-# The update_engine code looks for this entry in order to determine the boot device address
-# and fails if it does not find it.
-/dev/block/bootdevice/by-name/misc /misc emmc defaults defaults
-/dev/block/zram0 none swap defaults zramsize=2684350464,max_comp_streams=8
diff --git a/rootdir/etc/init.target.rc b/rootdir/etc/init.target.rc
index e8d2b1e..bc6f4cb 100644
--- a/rootdir/etc/init.target.rc
+++ b/rootdir/etc/init.target.rc
@@ -41,21 +41,6 @@ on init
chown cameraserver cameraserver /dev/cpuset/camera-daemon/tasks
chmod 0660 /dev/cpuset/camera-daemon/tasks
- # Camera motor
- chown system camera /dev/drv8846_dev
- chown system camera /dev/akm09970
- chmod 0660 /dev/drv8846_dev
- chmod 0660 /dev/akm09970
-
-on init && property:ro.boot.hwc=GLOBAL
- setprop ro.boot.product.hardware.sku davinci
-
-on init && property:ro.boot.hwc=CN
- setprop ro.boot.product.hardware.sku davinci
-
-on property:ro.boot.product.hardware.sku=davinci
- enable vendor.nfc_hal_service
-
on fs
mount_all --early
@@ -212,17 +197,3 @@ service vendor.nv_mac /vendor/bin/nv_mac
user system
group system inet net_admin wifi net_raw
oneshot
-
-service vendor.motor /vendor/bin/hw/vendor.xiaomi.hardware.motor@1.0-service
- class hal
- user system
- group system
- writepid /dev/cpuset/system-background/tasks
-
-service vendor.nfc_hal_service /vendor/bin/hw/android.hardware.nfc@1.2-service
- override
- class hal
- user nfc
- group nfc
- writepid /dev/cpuset/system-background/tasks
- disabled
diff --git a/rro_overlays/WifiOverlay/AndroidManifest.xml b/rro_overlays/WifiOverlay/AndroidManifest.xml
index c84763c..d3ae469 100644
--- a/rro_overlays/WifiOverlay/AndroidManifest.xml
+++ b/rro_overlays/WifiOverlay/AndroidManifest.xml
@@ -15,7 +15,7 @@
-->
diff --git a/rro_overlays/WifiOverlay/res/values/config.xml b/rro_overlays/WifiOverlay/res/values/config.xml
index 8ce1ff0..07acef7 100644
--- a/rro_overlays/WifiOverlay/res/values/config.xml
+++ b/rro_overlays/WifiOverlay/res/values/config.xml
@@ -57,7 +57,4 @@
true
-
-
- Xiaomi Mi 9T
diff --git a/sepolicy/public/attributes b/sepolicy/public/attributes
deleted file mode 100644
index a147288..0000000
--- a/sepolicy/public/attributes
+++ /dev/null
@@ -1,7 +0,0 @@
-attribute hal_motor;
-attribute hal_motor_client;
-attribute hal_motor_server;
-
-attribute hal_touchfeature;
-attribute hal_touchfeature_client;
-attribute hal_touchfeature_server;
diff --git a/sepolicy/vendor/cameraserver.te b/sepolicy/vendor/cameraserver.te
deleted file mode 100644
index 1f31860..0000000
--- a/sepolicy/vendor/cameraserver.te
+++ /dev/null
@@ -1 +0,0 @@
-hal_client_domain(cameraserver, hal_motor)
diff --git a/sepolicy/vendor/file_contexts b/sepolicy/vendor/file_contexts
index 013e482..cae6f46 100644
--- a/sepolicy/vendor/file_contexts
+++ b/sepolicy/vendor/file_contexts
@@ -3,7 +3,6 @@
# Display
/sys/devices/platform/soc/[a-f0-9]+.qcom,mdss_mdp/drm/card([0-3])+/card([0-3])+-DSI-1/panel_info u:object_r:vendor_sysfs_graphics:s0
-/sys/devices/platform/soc/soc:qcom,dsi-display/fod_ui u:object_r:sysfs_fod:s0
/sys/devices/platform/soc/soc:qcom,dsi-display/hbm u:object_r:sysfs_hbm:s0
# Fingerprint
@@ -11,15 +10,8 @@
/data/vendor/goodix(/.*)? u:object_r:fingerprint_data_file:s0
# HALs
-/vendor/bin/hw/android\.hardware\.light@2\.0-service\.davinci u:object_r:hal_light_default_exec:s0
-/vendor/bin/hw/vendor\.lineage\.biometrics\.fingerprint\.inscreen@1\.0-service\.davinci u:object_r:hal_lineage_fod_default_exec:s0
-/vendor/bin/hw/vendor\.lineage\.livedisplay@2\.0-service\.davinci u:object_r:hal_lineage_livedisplay_qti_exec:s0
-/vendor/bin/hw/vendor\.xiaomi\.hardware\.motor@1\.0-service u:object_r:hal_motor_default_exec:s0
-/vendor/bin/hw/vendor\.xiaomi\.hardware\.touchfeature@1\.0-service u:object_r:hal_touchfeature_default_exec:s0
-
-# Motor
-/dev/akm09970 u:object_r:hall_device:s0
-/dev/drv8846_dev u:object_r:motor_device:s0
+/vendor/bin/hw/android\.hardware\.light@2\.0-service\.xiaomi_sm6150 u:object_r:hal_light_default_exec:s0
+/vendor/bin/hw/vendor\.lineage\.livedisplay@2\.0-service\.xiaomi_sm6150 u:object_r:hal_lineage_livedisplay_qti_exec:s0
# Remosaic
/vendor/bin/remosaic_daemon u:object_r:remosaic_daemon_exec:s0
@@ -27,9 +19,6 @@
# WiFi
/vendor/bin/nv_mac u:object_r:vendor_wcnss_service_exec:s0
-# Touchfeature
-/dev/xiaomi-touch u:object_r:touchfeature_device:s0
-
# Xiaomi thermal daemon
/vendor/bin/mi_thermald u:object_r:mi_thermald_exec:s0
/data/vendor/thermal(/.*)? u:object_r:thermal_data_file:s0
diff --git a/sepolicy/vendor/hal_lineage_fod_default.te b/sepolicy/vendor/hal_lineage_fod_default.te
deleted file mode 100644
index e35731c..0000000
--- a/sepolicy/vendor/hal_lineage_fod_default.te
+++ /dev/null
@@ -1,10 +0,0 @@
-type sysfs_fod, sysfs_type, fs_type;
-
-allow hal_lineage_fod_default sysfs_fod:file rw_file_perms;
-allow hal_lineage_fod_default vendor_sysfs_graphics:file rw_file_perms;
-
-allow hal_lineage_fod_default hal_fingerprint_hwservice_xiaomi:hwservice_manager find;
-allow hal_lineage_fod_default hal_touchfeature_hwservice_xiaomi:hwservice_manager find;
-
-binder_call(hal_lineage_fod_default, hal_fingerprint_default)
-binder_call(hal_lineage_fod_default, hal_touchfeature_default)
diff --git a/sepolicy/vendor/hal_motor_default.te b/sepolicy/vendor/hal_motor_default.te
deleted file mode 100644
index 75df086..0000000
--- a/sepolicy/vendor/hal_motor_default.te
+++ /dev/null
@@ -1,26 +0,0 @@
-type hal_motor_hwservice_xiaomi, hwservice_manager_type;
-type hall_device, dev_type;
-type motor_device, dev_type;
-
-type hal_motor_default, domain;
-hal_server_domain(hal_motor_default, hal_motor)
-
-binder_call(hal_motor_client, hal_motor_server)
-
-binder_call(hal_motor_default, system_app)
-
-type hal_motor_default_exec, exec_type, vendor_file_type, file_type;
-init_daemon_domain(hal_motor_default)
-
-add_hwservice(hal_motor_server, hal_motor_hwservice_xiaomi)
-allow hal_motor_client hal_motor_hwservice_xiaomi:hwservice_manager find;
-
-allow hal_motor_default hall_device:chr_file rw_file_perms;
-allow hal_motor_default motor_device:chr_file rw_file_perms;
-
-allow hal_motor_default vendor_persist_sensors_file:dir rw_dir_perms;
-allow hal_motor_default vendor_persist_sensors_file:file rw_file_perms;
-
-allow hal_motor_default mnt_vendor_file:dir { search };
-
-vndbinder_use(hal_motor_default)
diff --git a/sepolicy/vendor/hal_touchfeature_default.te b/sepolicy/vendor/hal_touchfeature_default.te
deleted file mode 100644
index ea3c237..0000000
--- a/sepolicy/vendor/hal_touchfeature_default.te
+++ /dev/null
@@ -1,19 +0,0 @@
-type hal_touchfeature_hwservice_xiaomi, hwservice_manager_type;
-type touchfeature_device, dev_type;
-type vendor_touchfeature_prop, property_type;
-
-type hal_touchfeature_default, domain;
-hal_server_domain(hal_touchfeature_default, hal_touchfeature)
-
-binder_call(hal_touchfeature_client, hal_touchfeature_server)
-
-type hal_touchfeature_default_exec, exec_type, vendor_file_type, file_type;
-init_daemon_domain(hal_touchfeature_default)
-
-add_hwservice(hal_touchfeature_server, hal_touchfeature_hwservice_xiaomi)
-allow hal_touchfeature_client hal_touchfeature_hwservice_xiaomi:hwservice_manager find;
-
-allow hal_touchfeature_default touchfeature_device:chr_file rw_file_perms;
-set_prop(hal_touchfeature_default, vendor_touchfeature_prop)
-
-vndbinder_use(hal_touchfeature_default)
diff --git a/sepolicy/vendor/hwservice_contexts b/sepolicy/vendor/hwservice_contexts
index 7742d0e..39ebeef 100644
--- a/sepolicy/vendor/hwservice_contexts
+++ b/sepolicy/vendor/hwservice_contexts
@@ -1,4 +1,2 @@
vendor.goodix.hardware.biometrics.fingerprint::IGoodixFingerprintDaemon u:object_r:hal_fingerprint_hwservice_xiaomi:s0
vendor.xiaomi.hardware.fingerprintextension::IXiaomiFingerprint u:object_r:hal_fingerprint_hwservice_xiaomi:s0
-vendor.xiaomi.hardware.motor::IMotor u:object_r:hal_motor_hwservice_xiaomi:s0
-vendor.xiaomi.hardware.touchfeature::ITouchFeature u:object_r:hal_touchfeature_hwservice_xiaomi:s0
diff --git a/sepolicy/vendor/property_contexts b/sepolicy/vendor/property_contexts
index d6cb045..0d24ef2 100644
--- a/sepolicy/vendor/property_contexts
+++ b/sepolicy/vendor/property_contexts
@@ -21,8 +21,5 @@ vendor.fps_hal. u:object_r:vendor_fp_prop:s0
# Sensors
persist.sensor. u:object_r:persist_sensors_prop:s0
-# Touchfeature
-ro.vendor.touchfeature.type u:object_r:vendor_touchfeature_prop:s0
-
# Xiaomi thermal daemon
vendor.sys.thermal. u:object_r:vendor_thermal_normal_prop:s0
diff --git a/sepolicy/vendor/system_app.te b/sepolicy/vendor/system_app.te
deleted file mode 100644
index b16bcb2..0000000
--- a/sepolicy/vendor/system_app.te
+++ /dev/null
@@ -1,7 +0,0 @@
-allow system_app hal_motor_hwservice_xiaomi:hwservice_manager find;
-
-binder_call(system_app, hal_motor)
-
-allow system_app { motor_device vendor_sysfs_graphics sysfs_leds }:dir search;
-allow system_app { cgroup vendor_sysfs_graphics }:file rw_file_perms;
-allow system_app { motor_device vendor_sysfs_graphics hall_device }:chr_file rw_file_perms;
diff --git a/sepolicy/vendor/vendor_init.te b/sepolicy/vendor/vendor_init.te
new file mode 100644
index 0000000..8bd20c9
--- /dev/null
+++ b/sepolicy/vendor/vendor_init.te
@@ -0,0 +1 @@
+set_prop(vendor_init, vendor_fp_prop)
diff --git a/setup-makefiles.sh b/setup-makefiles.sh
index 9f61649..9eb4320 100755
--- a/setup-makefiles.sh
+++ b/setup-makefiles.sh
@@ -8,9 +8,6 @@
set -e
-DEVICE=davinci
-VENDOR=xiaomi
-
# Load extract_utils and do some sanity checks
MY_DIR="${BASH_SOURCE%/*}"
if [[ ! -d "${MY_DIR}" ]]; then MY_DIR="${PWD}"; fi
@@ -24,13 +21,28 @@ if [ ! -f "${HELPER}" ]; then
fi
source "${HELPER}"
-# Initialize the helper
-setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}"
+# Initialize the helper for common
+setup_vendor "${DEVICE_COMMON}" "${VENDOR}" "${ANDROID_ROOT}" true
# Warning headers and guards
-write_headers
+write_headers "davinci phoenix toco violet"
+# The standard common blobs
write_makefiles "${MY_DIR}/proprietary-files.txt" true
# Finish
write_footers
+
+if [ -s "${MY_DIR}/../${DEVICE}/proprietary-files.txt" ]; then
+ # Reinitialize the helper for device
+ setup_vendor "${DEVICE}" "${VENDOR}" "${ANDROID_ROOT}" false
+
+ # Warning headers and guards
+ write_headers
+
+ # The standard device blobs
+ write_makefiles "${MY_DIR}/../${DEVICE}/proprietary-files.txt" true
+
+ # Finish
+ write_footers
+fi
diff --git a/device.mk b/sm6150.mk
similarity index 84%
rename from device.mk
rename to sm6150.mk
index 9ca15ba..659b650 100644
--- a/device.mk
+++ b/sm6150.mk
@@ -14,14 +14,11 @@
# limitations under the License.
#
-# Product launched with 9.0
-$(call inherit-product, $(SRC_TARGET_DIR)/product/product_launched_with_p.mk)
-
# Setup dalvik vm configs
$(call inherit-product, frameworks/native/build/phone-xhdpi-6144-dalvik-heap.mk)
# Call the proprietary setup
-$(call inherit-product, vendor/xiaomi/davinci/davinci-vendor.mk)
+$(call inherit-product, vendor/xiaomi/sm6150-common/sm6150-common-vendor.mk)
# Additional native libraries
PRODUCT_COPY_FILES += \
@@ -70,13 +67,10 @@ PRODUCT_PACKAGES += \
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/audio/audio_effects.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_effects.xml \
$(LOCAL_PATH)/configs/audio/audio_io_policy.conf:$(TARGET_COPY_OUT_VENDOR)/etc/audio_io_policy.conf \
- $(LOCAL_PATH)/configs/audio/audio_platform_info_intcodec.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_platform_info_intcodec.xml \
$(LOCAL_PATH)/configs/audio/audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/audio_policy_configuration.xml \
- $(LOCAL_PATH)/configs/audio/audio_tuning_mixer_tavil.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer_tavil.txt \
- $(LOCAL_PATH)/configs/audio/mixer_paths_idp.xml:$(TARGET_COPY_OUT_VENDOR)/etc/mixer_paths_idp.xml
+ $(LOCAL_PATH)/configs/audio/audio_tuning_mixer_tavil.txt:$(TARGET_COPY_OUT_VENDOR)/etc/audio_tuning_mixer_tavil.txt
PRODUCT_COPY_FILES += \
- $(LOCAL_PATH)/configs/audio/sound_trigger_mixer_paths.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_mixer_paths.xml \
$(LOCAL_PATH)/configs/audio/sound_trigger_platform_info.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sound_trigger_platform_info.xml
PRODUCT_COPY_FILES += \
@@ -97,10 +91,6 @@ PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.bluetooth_le.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth_le.xml \
frameworks/native/data/etc/android.hardware.bluetooth.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.bluetooth.xml
-# Boot animation
-TARGET_SCREEN_HEIGHT := 2340
-TARGET_SCREEN_WIDTH := 1080
-
# Camera
PRODUCT_PACKAGES += \
android.hardware.camera.provider@2.4-impl \
@@ -119,10 +109,6 @@ PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.camera.full.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.full.xml \
frameworks/native/data/etc/android.hardware.camera.raw.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.camera.raw.xml
-# Camera motor
-PRODUCT_PACKAGES += \
- vendor.xiaomi.hardware.motor@1.0.vendor
-
# Device-specific settings
PRODUCT_PACKAGES += \
XiaomiParts
@@ -152,22 +138,14 @@ PRODUCT_PACKAGES += \
android.hardware.drm@1.3-service.clearkey
# Fingerprint
-PRODUCT_PACKAGES += \
- vendor.lineage.biometrics.fingerprint.inscreen@1.0-service.davinci
-
PRODUCT_COPY_FILES += \
- frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml \
- vendor/lineage/config/permissions/vendor.lineage.biometrics.fingerprint.inscreen.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/vendor.lineage.biometrics.fingerprint.inscreen.xml
+ frameworks/native/data/etc/android.hardware.fingerprint.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.fingerprint.xml
# FM
PRODUCT_PACKAGES += \
FM2 \
qcom.fmradio
-# Fstab
-PRODUCT_COPY_FILES += \
- $(LOCAL_PATH)/rootdir/etc/fstab.qcom:$(TARGET_COPY_OUT_VENDOR)/etc/fstab.qcom
-
# GPS
PRODUCT_PACKAGES += \
android.hardware.gnss@2.1-impl-qti \
@@ -222,12 +200,12 @@ PRODUCT_COPY_FILES += \
# Lights
PRODUCT_PACKAGES += \
- android.hardware.light@2.0-service.davinci
+ android.hardware.light@2.0-service.xiaomi_sm6150
# LiveDisplay
PRODUCT_PACKAGES += \
vendor.lineage.livedisplay@2.0-service-sdm \
- vendor.lineage.livedisplay@2.0-service.davinci
+ vendor.lineage.livedisplay@2.0-service.xiaomi_sm6150
# Media
PRODUCT_PACKAGES += \
@@ -262,38 +240,12 @@ PRODUCT_COPY_FILES += \
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.software.ipsec_tunnels.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.ipsec_tunnels.xml
-# NFC
-PRODUCT_PACKAGES += \
- com.android.nfc_extras \
- NfcNci \
- SecureElement \
- Tag
-
-PRODUCT_PACKAGES += \
- android.hardware.nfc@1.2-service
-
-PRODUCT_COPY_FILES += \
- $(LOCAL_PATH)/configs/nfc/libnfc-nci.conf:$(TARGET_COPY_OUT_PRODUCT)/etc/libnfc-nci.conf \
- $(LOCAL_PATH)/configs/nfc/libnfc-nxp.conf:$(TARGET_COPY_OUT_VENDOR)/etc/libnfc-nxp.conf
-
-PRODUCT_COPY_FILES += \
- frameworks/native/data/etc/android.hardware.nfc.xml:$(TARGET_COPY_OUT_ODM)/etc/permissions/sku_davinci/android.hardware.nfc.xml \
- frameworks/native/data/etc/android.hardware.nfc.ese.xml:$(TARGET_COPY_OUT_ODM)/etc/permissions/sku_davinci/android.hardware.nfc.ese.xml \
- frameworks/native/data/etc/android.hardware.nfc.hce.xml:$(TARGET_COPY_OUT_ODM)/etc/permissions/sku_davinci/android.hardware.nfc.hce.xml \
- frameworks/native/data/etc/android.hardware.nfc.hcef.xml:$(TARGET_COPY_OUT_ODM)/etc/permissions/sku_davinci/android.hardware.nfc.hcef.xml \
- frameworks/native/data/etc/android.hardware.nfc.uicc.xml:$(TARGET_COPY_OUT_ODM)/etc/permissions/sku_davinci/android.hardware.nfc.uicc.xml \
- frameworks/native/data/etc/com.android.nfc_extras.xml:$(TARGET_COPY_OUT_ODM)/etc/permissions/sku_davinci/com.android.nfc_extras.xml \
- frameworks/native/data/etc/com.nxp.mifare.xml:$(TARGET_COPY_OUT_ODM)/etc/permissions/sku_davinci/com.nxp.mifare.xml
-
# Overlay
DEVICE_PACKAGE_OVERLAYS += \
$(LOCAL_PATH)/overlay \
- $(LOCAL_PATH)/overlay-lineage \
- $(LOCAL_PATH)/overlay-system
+ $(LOCAL_PATH)/overlay-lineage
PRODUCT_ENFORCE_RRO_TARGETS += *
-PRODUCT_ENFORCE_RRO_EXCLUDED_OVERLAYS += \
- $(LOCAL_PATH)/overlay-system
# Power
PRODUCT_PACKAGES += \
@@ -327,7 +279,6 @@ PRODUCT_PACKAGES += \
# Screen density
PRODUCT_AAPT_CONFIG := normal
PRODUCT_AAPT_PREF_CONFIG := xxhdpi
-TARGET_SCREEN_DENSITY := 440
# Sensors
PRODUCT_PACKAGES += \
diff --git a/vendor.prop b/vendor.prop
index 9e8b541..cf343a0 100644
--- a/vendor.prop
+++ b/vendor.prop
@@ -26,7 +26,6 @@ vendor.audio.feature.battery_listener.enable=false
vendor.audio.feature.compr_cap.enable=false
vendor.audio.feature.compress_in.enable=false
vendor.audio.feature.compress_meta_data.enable=true
-vendor.audio.feature.compr_voip.enable=false
vendor.audio.feature.concurrent_capture.enable=false
vendor.audio.feature.custom_stereo.enable=true
vendor.audio.feature.deepbuffer_as_primary.enable=false
@@ -80,7 +79,6 @@ vendor.audio.usb.disable.sidetone=true
vendor.audio.use.sw.alac.decoder=true
vendor.audio.use.sw.ape.decoder=true
vendor.audio.volume.headset.gain.depcal=true
-vendor.voice.path.for.pcm.voip=false
# Bluetooth
persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac
@@ -151,12 +149,6 @@ vendor.gralloc.disable_ubwc=0
# FRP
ro.frp.pst=/dev/block/bootdevice/by-name/frp
-# HVDCP
-persist.vendor.cp.taper_term_mv=6500
-persist.vendor.qg_cld_coff_gain=1.5
-persist.vendor.qg_coff_gain=1
-persist.vendor.qg_cold_temp=-150
-
# IMS
persist.dbg.volte_avail_ovr=1
persist.dbg.vt_avail_ovr=1