diff --git a/Android.mk b/Android.mk
index 447513b..fe8b5d6 100644
--- a/Android.mk
+++ b/Android.mk
@@ -6,7 +6,7 @@
LOCAL_PATH := $(call my-dir)
-ifneq ($(filter sweet,$(TARGET_DEVICE)),)
+ifneq ($(filter sweet_k6a,$(TARGET_DEVICE)),)
subdir_makefiles=$(call first-makefiles-under,$(LOCAL_PATH))
$(foreach mk,$(subdir_makefiles),$(info including $(mk) ...)$(eval include $(mk)))
diff --git a/AndroidProducts.mk b/AndroidProducts.mk
index 9b1e6a1..6fd9cf4 100644
--- a/AndroidProducts.mk
+++ b/AndroidProducts.mk
@@ -5,4 +5,4 @@
#
PRODUCT_MAKEFILES := \
- $(LOCAL_DIR)/lineage_sweet.mk
+ $(LOCAL_DIR)/lineage_sweet_k6a.mk
diff --git a/BoardConfig.mk b/BoardConfig.mk
index dd6becc..9d16f3b 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -4,7 +4,7 @@
# SPDX-License-Identifier: Apache-2.0
#
-DEVICE_PATH := device/xiaomi/sweet
+DEVICE_PATH := device/xiaomi/sweet_k6a
BUILD_BROKEN_DUP_RULES := true
BUILD_BROKEN_DUP_SYSPROP := true
@@ -27,14 +27,11 @@ TARGET_2ND_CPU_VARIANT := generic
TARGET_2ND_CPU_VARIANT_RUNTIME := cortex-a76
# Assert
-TARGET_OTA_ASSERT_DEVICE := sweet,sweetin
+TARGET_OTA_ASSERT_DEVICE := sweet,sweetin,sweet_k6a
# Audio
AUDIO_FEATURE_ENABLED_EXTENDED_COMPRESS_FORMAT := true
-# Bluetooth
-BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(DEVICE_PATH)/bluetooth/include
-
# Bootloader
TARGET_NO_BOOTLOADER := true
@@ -74,9 +71,12 @@ BOARD_KERNEL_SEPARATED_DTBO := true
TARGET_KERNEL_CLANG_COMPILE := true
TARGET_KERNEL_CONFIG := vendor/sweet_user_defconfig
-TARGET_KERNEL_SOURCE := kernel/xiaomi/sweet
+TARGET_KERNEL_SOURCE := kernel/xiaomi/sweet_k6a
KERNEL_LD := LD=ld.lld
+# Lineage Health
+TARGET_HEALTH_CHARGING_CONTROL_SUPPORTS_BYPASS := false
+
# Manifest
DEVICE_FRAMEWORK_COMPATIBILITY_MATRIX_FILE := \
$(DEVICE_PATH)/manifests/device_framework_matrix.xml \
@@ -136,8 +136,10 @@ BOARD_USES_QCOM_HARDWARE := true
TARGET_BOARD_PLATFORM := sm6150
# Recovery
+BOARD_INCLUDE_RECOVERY_DTBO := true
TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/rootdir/etc/fstab.qcom
TARGET_RECOVERY_PIXEL_FORMAT := RGBX_8888
+TARGET_USES_AOSP_RECOVERY := true
# Releasetools
TARGET_RELEASETOOLS_EXTENSIONS := $(DEVICE_PATH)
@@ -150,10 +152,10 @@ BOARD_VENDOR_SEPOLICY_DIRS += $(DEVICE_PATH)/sepolicy/vendor
SYSTEM_EXT_PRIVATE_SEPOLICY_DIRS += $(DEVICE_PATH)/sepolicy/private
SYSTEM_EXT_PUBLIC_SEPOLICY_DIRS += $(DEVICE_PATH)/sepolicy/public
TARGET_SEPOLICY_DIR := msmsteppe
--include device/qcom/sepolicy_vndr-legacy-um/SEPolicy.mk
+-include device/qcom/sepolicy_vndr/SEPolicy.mk
# Vendor security patch level
-VENDOR_SECURITY_PATCH := 2022-07-01
+VENDOR_SECURITY_PATCH := 2023-03-01
# Verified Boot
BOARD_AVB_ENABLE := true
@@ -186,4 +188,7 @@ WIFI_HIDL_UNIFIED_SUPPLICANT_SERVICE_RC_ENTRY := true
WPA_SUPPLICANT_VERSION := VER_0_8_X
# inherit from the proprietary version
--include vendor/xiaomi/sweet/BoardConfigVendor.mk
+-include vendor/xiaomi/sweet_k6a/BoardConfigVendor.mk
+
+# Inherit from proprietary files for miuicamera
+-include vendor/xiaomi/sweet_k6a-miuicamera/products/board.mk
diff --git a/README.md b/README.md
index 5c7fe9a..c65889d 100644
--- a/README.md
+++ b/README.md
@@ -1,9 +1,9 @@
Copyright (C) 2021 - The LineageOS Project
-Device tree for Xiaomi Redmi Note 10 Pro
+Device tree for Xiaomi Redmi Note 12 Pro 4G
==============
-The Xiaomi Redmi Note 10 Pro (codenamed "sweet / sweetin") are mid range smartphones from Xiaomi.
+The Xiaomi Redmi Note 12 Pro 4G (codenamed "sweet_k6a) is mid range smartphones from Xiaomi.
## Device specifications
@@ -13,17 +13,17 @@ Basic | Spec Sheet
| Chipset | Qualcomm SM7150 Snapdragon 732G (8 nm) |
| GPU | Adreno 618 |
| Memory | 6/8 GB RAM |
-| Shipped Android Version | 11 with MIUI 12 |
-| Storage | 128 GB (UFS 2.2) |
-| Battery | Non-removable Li-Po 5020 mAh |
+| Shipped Android Version | 11 with MIUI 13 |
+| Storage | 128/256 GB (UFS 2.2) |
+| Battery | Non-removable Li-Po 5000 mAh |
| Display | 1080 x 2400 pixels, 6.67 inches (~395 ppi pixel density) |
-| Rear camera 1 | 64 MP, f/1.9, LED flash, HDR, panorama, 4K@30fps |
-| Rear camera 2 | 8 MP, f/2.2, 118Ëš (ultrawide) |
+| Rear camera 1 | 108 MP, f/1.9, LED flash, HDR, panorama, 4K@30fps |
+| Rear camera 2 | 8 MP, f/2.2, 120Ëš (ultrawide) |
| Rear camera 3 | 5 MP, f/2.4, (macro) |
| Rear camera 4 | 2 MP, f/2.4, (depth) |
-| Front Camera | 16 MP, f/2.5, Panorama, 1080p@30fps |
-| Sensors | Fingerprint (side-mounted), accelerometer, gyro, proximity, compass |
-| Release Date | March 2021 |
+| Front Camera | 16 MP, f/2.4, Panorama, 1080p@30fps |
+| Sensors | Fingerprint (side-mounted), accelerometer, gyro, ultrasound proximity, compass |
+| Release Date | April 2023 |
## Device picture
-![Xiaomi Redmi Note 10 Pro](https://i.imgur.com/t3byGh9.png "Xiaomi Redmi Note 10 Pro")
+![Xiaomi Redmi Note 12 Pro 4G](https://i01.appmifile.com/v1/MI_18455B3E4DA706226CF7535A58E875F0267/pms_1681210731.51053703.png "Xiaomi Redmi Note 12 Pro 4G")
diff --git a/configs/audio/a2dp_audio_policy_configuration.xml b/configs/audio/a2dp_audio_policy_configuration.xml
deleted file mode 100644
index 7bcab5c..0000000
--- a/configs/audio/a2dp_audio_policy_configuration.xml
+++ /dev/null
@@ -1,44 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/configs/audio/audio_io_policy.conf b/configs/audio/audio_io_policy.conf
index 7e94df7..ee0d194 100644
--- a/configs/audio/audio_io_policy.conf
+++ b/configs/audio/audio_io_policy.conf
@@ -62,7 +62,7 @@ outputs {
}
direct_pcm_24 {
flags AUDIO_OUTPUT_FLAG_DIRECT
- formats AUDIO_FORMAT_PCM_24_BIT_PACKED|AUDIO_FORMAT_PCM_8_24_BIT|AUDIO_FORMAT_PCM_32_BIT
+ formats AUDIO_FORMAT_PCM_16_BIT|AUDIO_FORMAT_PCM_24_BIT_PACKED|AUDIO_FORMAT_PCM_8_24_BIT|AUDIO_FORMAT_PCM_32_BIT
sampling_rates 44100|48000|88200|96000|176400|192000|352800|384000
bit_width 24
app_type 69940
@@ -90,7 +90,7 @@ outputs {
}
compress_offload_24 {
flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING
- formats AUDIO_FORMAT_PCM_24_BIT_OFFLOAD|AUDIO_FORMAT_FLAC|AUDIO_FORMAT_ALAC|AUDIO_FORMAT_APE|AUDIO_FORMAT_VORBIS|AUDIO_FORMAT_WMA|AUDIO_FORMAT_WMA_PRO
+ formats AUDIO_FORMAT_MP3|AUDIO_FORMAT_PCM_24_BIT_OFFLOAD|AUDIO_FORMAT_FLAC|AUDIO_FORMAT_ALAC|AUDIO_FORMAT_APE|AUDIO_FORMAT_VORBIS|AUDIO_FORMAT_WMA|AUDIO_FORMAT_WMA_PRO
sampling_rates 44100|48000|88200|96000|176400|192000
bit_width 24
app_type 69940
@@ -104,6 +104,18 @@ inputs {
bit_width 16
app_type 69938
}
+ record_24bit {
+ formats AUDIO_FORMAT_PCM_24_BIT_PACKED|AUDIO_FORMAT_PCM_24_BIT
+ sampling_rates 44100|48000|88200|96000|176400|192000
+ bit_width 24
+ app_type 69948
+ }
+ record_32bit {
+ formats AUDIO_FORMAT_PCM_32_BIT|AUDIO_FORMAT_PCM_FLOAT
+ sampling_rates 44100|48000|88200|96000|176400|192000
+ bit_width 32
+ app_type 69949
+ }
record_compress_16 {
flags AUDIO_INPUT_FLAG_COMPRESS
formats AUDIO_FORMAT_PCM_16_BIT
diff --git a/configs/audio/audio_platform_info_intcodec.xml b/configs/audio/audio_platform_info_intcodec.xml
index 5b7ad81..fdfbc74 100644
--- a/configs/audio/audio_platform_info_intcodec.xml
+++ b/configs/audio/audio_platform_info_intcodec.xml
@@ -118,9 +118,13 @@
-
+
+
+
+
+
@@ -131,6 +135,23 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -141,48 +162,48 @@
-
-
-
+
+
+
-
-
-
-
-
+
+
+
+
+
-
+
-
-
-
+
+
+
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
@@ -218,6 +239,7 @@
+
@@ -225,9 +247,9 @@
-
-
-
+
+
+
@@ -257,14 +279,18 @@
-
-
-
-
+
+
+
+
+
+
+
+
diff --git a/configs/audio/audio_policy_configuration.xml b/configs/audio/audio_policy_configuration.xml
index 755a1b6..7e967aa 100644
--- a/configs/audio/audio_policy_configuration.xml
+++ b/configs/audio/audio_policy_configuration.xml
@@ -239,9 +239,10 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/configs/audio/bluetooth_qti_audio_policy_configuration.xml b/configs/audio/bluetooth_qti_audio_policy_configuration.xml
deleted file mode 100644
index f0b2506..0000000
--- a/configs/audio/bluetooth_qti_audio_policy_configuration.xml
+++ /dev/null
@@ -1,44 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/configs/audio/mixer_paths_idp.xml b/configs/audio/mixer_paths_idp.xml
index 881fd80..cc5339b 100644
--- a/configs/audio/mixer_paths_idp.xml
+++ b/configs/audio/mixer_paths_idp.xml
@@ -95,19 +95,19 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -150,7 +150,7 @@
-
+
@@ -441,13 +441,13 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+
@@ -459,8 +459,8 @@
-
-
+
+
@@ -474,98 +474,98 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -648,8 +648,8 @@
-
-
+
+
@@ -757,8 +757,10 @@
-
-
+
+
+
+
@@ -2051,6 +2053,8 @@
+
+
@@ -2435,16 +2439,6 @@
-
-
-
-
-
-
-
-
-
-
@@ -2731,10 +2725,6 @@
-
-
-
-
@@ -2830,9 +2820,6 @@
-
-
-
@@ -2910,16 +2897,12 @@
-
-
-
-
-
+
@@ -2957,21 +2940,22 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -3012,6 +2996,11 @@
+
+
+
+
+
@@ -3024,6 +3013,11 @@
+
+
+
+
+
@@ -3104,15 +3098,16 @@
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
@@ -3227,6 +3222,10 @@
+
+
+
+
@@ -3464,7 +3463,7 @@
-
+
@@ -3524,6 +3523,173 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/configs/audio/mixer_paths_overlay_static.xml b/configs/audio/mixer_paths_overlay_static.xml
index 717f602..5c29a09 100644
--- a/configs/audio/mixer_paths_overlay_static.xml
+++ b/configs/audio/mixer_paths_overlay_static.xml
@@ -9,19 +9,19 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -35,13 +35,12 @@
+
+
+
+
+
-
-
-
-
-
-
@@ -51,10 +50,13 @@
+
+
+
-
+
@@ -62,105 +64,103 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
-
+
-
+
@@ -536,64 +536,69 @@
-
-
+
+
-
-
+
+
-
-
-
-
+
-
-
+
+
-
-
-
+
+
-
+
-
-
+
+
-
-
-
+
+
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -605,14 +610,9 @@
-
-
-
-
-
@@ -620,12 +620,48 @@
-
+
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -696,68 +732,67 @@
-
+
-
+
-
+
-
+
-
-
+
+
-
+
-
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -892,11 +927,11 @@
-
+
-
+
@@ -926,8 +961,6 @@
-
-
@@ -953,5 +986,171 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/configs/component-overrides.xml b/configs/component-overrides.xml
deleted file mode 100644
index 8259125..0000000
--- a/configs/component-overrides.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/configs/gps/apdr.conf b/configs/gps/apdr.conf
index ea2ec52..ce5ba78 100644
--- a/configs/gps/apdr.conf
+++ b/configs/gps/apdr.conf
@@ -24,73 +24,79 @@
#
#
+
######################################
# #
-# QDR3 Configuration #
+# Default Configuration #
+# (GNSS only,QDR Disabled) #
# #
-# For QDR3, #
-# comment default configuration above#
-# and #
-# uncomment below configuration #
-# settings. #
+# For QDR enablement, comment #
+# this section and enabled #
+# either QDR3 OR #
+# QDR2-DWT OR QDR2-Gyro related #
+# configuration section in below. #
# #
######################################
-#
+
SENSOR_SERVICE = accel
SENSOR_PROVIDER = native
-SENSOR_RATE = 10
-SENSOR_SAMPLES = 10
-#
-SENSOR_SERVICE = vehicle_speed
-SENSOR_PROVIDER = native
SENSOR_RATE = 100
SENSOR_SAMPLES = 1
-#
+
SENSOR_SERVICE = gyro
SENSOR_PROVIDER = native
-SENSOR_RATE = 10
-SENSOR_SAMPLES = 10
-#
+SENSOR_RATE = 100
+SENSOR_SAMPLES = 1
+
SENSOR_SERVICE = vehicle_gear
SENSOR_PROVIDER = native
SENSOR_RATE = 100
SENSOR_SAMPLES = 1
+
+
+######################################
+# #
+# QDR3 Configuration #
+# #
+# For QDR3, #
+# comment default configuration above#
+# and #
+# uncomment below configuration #
+# settings. #
+# #
+######################################
#
-SENSOR_SERVICE = accel_temp
-SENSOR_PROVIDER = native
-SENSOR_RATE = 1
-SENSOR_SAMPLES = 1
+#SENSOR_SERVICE = accel
+#SENSOR_PROVIDER = native
+#SENSOR_RATE = 10
+#SENSOR_SAMPLES = 10
#
+#SENSOR_SERVICE = vehicle_speed
+#SENSOR_PROVIDER = native
+#SENSOR_RATE = 100
+#SENSOR_SAMPLES = 1
+#
+#SENSOR_SERVICE = gyro
+#SENSOR_PROVIDER = native
+#SENSOR_RATE = 10
+#SENSOR_SAMPLES = 10
#
+#SENSOR_SERVICE = vehicle_gear
+#SENSOR_PROVIDER = native
+#SENSOR_RATE = 100
+#SENSOR_SAMPLES = 1
+#
+#
+##Enable/disable sensor data flashback feature
+#QDR_FLASHBACK_ENABLED = 0
##Configure QDR library to be loaded 1: QDR3 2: QDR2-GYRO 3: QDR2-DWS
-QDR_DYNAMIC_LOADING = 1
-##Specify CAN sensor type: Valid Options: 14(ODO), 2(ODO_DWT), 3(ODO_DWS)
-QDR_CAN_TYPE = 14
+#QDR_DYNAMIC_LOADING = 1
+##Enable/disable sensor data batching feature
+#QDR_BATCHING_ENABLED = 2
##Reporting offset before PPS boundary
-QDR_REPORTING_OFFSET = 20
-#
-
-##Vehicle Sensor Configuration (CAN data availability)
-##QDR_VEH_SENSOR_CONFIG:
-## 0: VEHICLE_SENSOR_PRESENT - Vehicle Sensor is available (DEFAULT)
-## 1: VEHICLE_SENSOR_OPTIONAL - Vehicle Sensor may or may not be present.
-#QDR_VEH_SENSOR_CONFIG = 0
-
-##Select Wheel set (E.g.: Front two wheels, Rear two wheels OR All four wheels)
-##To be used for differential wheel tick OR speed service.
-##This configuration is applicable when QDR_CAN_TYPE configured as
-##ODO_DWS(3) or ODO_DWT(2).
-##Value "0": Use Front two wheels
-##Value "1": Use Rear two wheels
-##Value "2": Use All four wheels
-#QG_DRIVE_WHEEL_FW_RW_AW = 2
-##Max Wheel tick value above which wheel tick rolls over
-##This configuration is applicable when QDR_CAN_TYPE configured as ODO_DWT(2)
-#QG_DWT_MAX_WHEEL_TICK_COUNT = 255.0
-##Configure Wheel constant for DWT based below equation
-##(2 * pi * WHEEL_RADIUS / Pulses Per revolution)
-##This configuration is applicable when QDR_CAN_TYPE configured as ODO_DWT(2)
-#QG_DWT_WHEEL_CONSTANT = 0.044
+#QDR_REPORTING_OFFSET = 0
+##Sensor dispatch threshold declaration
+#QDR_SENSDISPATCH_MS = 30
#
######################################
@@ -131,17 +137,33 @@ QDR_REPORTING_OFFSET = 20
#GNSS_MSR_STATISTIC_ENABLED = 3
#GNSS_MSR_STATISTIC_PRNTCNT = 10
#
-##Configure QDR library to be loaded 1: QDR3 2: QDR2-GYRO 3: QDR2-DWS
-#QDR_DYNAMIC_LOADING = 3
##Enable/disable sensor data flashback feature
#QDR_FLASHBACK_ENABLED = 0
+##Configure QDR library to be loaded 1: QDR3 2: QDR2-GYRO 3: QDR2-DWS
+#QDR_DYNAMIC_LOADING = 3
##Enable/disable sensor data batching feature
#QDR_BATCHING_ENABLED = 0
##Reporting offset before PPS boundary
-#QDR_REPORTING_OFFSET = 20
+#QDR_REPORTING_OFFSET = 0
##Sensor dispatch threshold declaration
#QDR_SENSDISPATCH_MS = 30
-
+##QDR_ENABLE_QG shall be set as 1
+#QDR_ENABLE_QG = 1
+##Select Wheel set (E.g.: Front two wheels, Rear two wheels OR All four wheels)
+##To be used for differential wheel tick OR speed service.
+##This configuration is applicable when QDR_CAN_TYPE configured as
+##ODO_DWS(3) or ODO_DWT(2).
+##Value "0": Use Front two wheels
+##Value "1": Use Rear two wheels
+##Value "2": Use All four wheels
+#QG_DRIVE_WHEEL_FW_RW_AW = 2
+##Max Wheel tick value above which wheel tick rolls over
+##This configuration is applicable when QDR_CAN_TYPE configured as ODO_DWT(2)
+#QG_DWT_MAX_WHEEL_TICK_COUNT = 255.0
+##Configure Wheel constant for DWT based below equation
+##(2 * pi * WHEEL_RADIUS / Pulses Per revolution)
+##This configuration is applicable when QDR_CAN_TYPE configured as ODO_DWT(2)
+#QG_DWT_WHEEL_CONSTANT = 0.044
######################################
# #
@@ -170,14 +192,14 @@ QDR_REPORTING_OFFSET = 20
#SENSOR_RATE = 100
#SENSOR_SAMPLES = 1
#
-##Configure QDR library to be loaded 1: QDR3 2: QDR2-GYRO 3: QDR2-DWS
-#QDR_DYNAMIC_LOADING = 2
##Enable/disable sensor data flashback feature
#QDR_FLASHBACK_ENABLED = 0
+##Configure QDR library to be loaded 1: QDR3 2: QDR2-GYRO 3: QDR2-DWS
+#QDR_DYNAMIC_LOADING = 2
##Enable/disable sensor data batching feature
#QDR_BATCHING_ENABLED = 0
##Reporting offset before PPS boundary
-#QDR_REPORTING_OFFSET = 20
+#QDR_REPORTING_OFFSET = 0
##Sensor dispatch threshold declaration
#QDR_SENSDISPATCH_MS = 30
#
diff --git a/configs/gps/gnss_antenna_info.conf b/configs/gps/gnss_antenna_info.conf
new file mode 100644
index 0000000..e037daa
--- /dev/null
+++ b/configs/gps/gnss_antenna_info.conf
@@ -0,0 +1,135 @@
+###################################
+##### ANTENNA INFORMATION #####
+###################################
+
+###################################
+# ANTENNA INFO VECTOR SIZE
+###################################
+# The number of antenna info
+# structures in the vector. Each
+# entry in this vector is a structure
+# with the following elements:
+#
+# - CARRIER_FREQUENCY
+# - PC_OFFSET
+# - PC_VARIATION_CORRECTION
+# - PC_VARIATION_CORRECTION_UNC
+# - SIGNAL_GAIN_CORRECTION
+# - SIGNAL_GAIN_CORRECTION_UNC
+#
+# Notes:
+# CARRIER_FREQUENCY
+# The carrier frequency in MHz.
+#
+# PC = PHASE CENTER
+# PC_OFFSET is a structure with six
+# elements: x, y, z and their associated uncertainties
+# Phase center offset (PCO) is defined with
+# respect to the origin of the Android sensor coordinate system, e.g.,
+# center of primary screen for mobiles
+#
+# PC_VARIATION_CORRECTION
+# 2D vectors representing the phase center variation (PCV) corrections,
+# in millimeters, at regularly spaced azimuthal angle (theta) and zenith angle
+# (phi). The PCV correction is added to the phase measurement to obtain the
+# corrected value.
+# The azimuthal angle, theta, is defined with respect to the X axis of the
+# Android sensor coordinate system, increasing toward the Y axis. The zenith
+# angle, phi, is defined with respect to the Z axis of the Android Sensor
+# coordinate system, increasing toward the X-Y plane.
+# Each row vector (outer vectors) represents a fixed theta. The first row
+# corresponds to a theta angle of 0 degrees. The last row corresponds to a
+# theta angle of (360 - deltaTheta) degrees, where deltaTheta is the regular
+# spacing between azimuthal angles, i.e., deltaTheta = 360 / (number of rows).
+# The columns (inner vectors) represent fixed zenith angles, beginning at 0
+# degrees and ending at 180 degrees. They are separated by deltaPhi, the regular
+# spacing between zenith angles, i.e., deltaPhi = 180 / (number of columns - 1).
+#
+# PC_VARIATION_CORRECTION_UNC
+# 2D vectors of 1-sigma uncertainty in millimeters associated with the PCV
+# correction values.
+#
+# SIGNAL_GAIN_CORRECTION
+# 2D vectors representing the signal gain corrections at regularly spaced
+# azimuthal angle (theta) and zenith angle (phi). The values are calculated or
+# measured at the antenna feed point without considering the radio and receiver
+# noise figure and path loss contribution, in dBi, i.e., decibel over isotropic
+# antenna with the same total power. The signal gain correction is added the
+# signal gain measurement to obtain the corrected value.
+# The azimuthal angle, theta, is defined with respect to the X axis of the
+# Android sensor coordinate system, increasing toward the Y axis. The zenith
+# angle, phi, is defined with respect to the Z axis of the Android Sensor
+# coordinate system, increasing toward the X-Y plane.
+# Each row vector (outer vectors) represents a fixed theta. The first row
+# corresponds to a theta angle of 0 degrees. The last row corresponds to a
+# theta angle of (360 - deltaTheta) degrees, where deltaTheta is the regular
+# spacing between azimuthal angles, i.e., deltaTheta = 360 / (number of rows).
+# The columns (inner vectors) represent fixed zenith angles, beginning at 0
+# degrees and ending at 180 degrees. They are separated by deltaPhi, the regular
+# spacing between zenith angles, i.e., deltaPhi = 180 / (number of columns - 1).
+#
+# SIGNAL_GAIN_CORRECTION_UNC
+# 2D vectors of 1-sigma uncertainty in dBi associated with the signal
+# gain correction values.
+#
+# The number of rows and columns could be the same for PC variation correction
+# and signal gain corrections, or could be different
+# If the former then NUMBER_OF_ROWS_ and NUMBER_OF_COLUMNS_ are specified once
+# only, if the latter then NUMBER_OF_ROWS_ and NUMBER_OF_COLUMNS_ represent
+# the number of rows/columns for PC variation correction and
+# NUMBER_OF_ROWS_SGC_ and NUMBER_OF_COLUMNS_SGC_ represent the number of
+# rows/columns for signal gain corrections
+
+# ANTENNA_INFO_VECTOR_SIZE must be non zero if antenna corrections are sent
+# ANTENNA_INFO_VECTOR_SIZE = 2
+
+CARRIER_FREQUENCY_0 = 1575.42
+
+PC_OFFSET_0 = 1.2 0.1 3.4 0.2 5.6 0.3
+
+NUMBER_OF_ROWS_0 = 3
+NUMBER_OF_COLUMNS_0 = 4
+
+PC_VARIATION_CORRECTION_0_ROW_0 = 11.22 33.44 55.66 77.88
+PC_VARIATION_CORRECTION_0_ROW_1 = 10.2 30.4 50.6 70.8
+PC_VARIATION_CORRECTION_0_ROW_2 = 12.2 34.4 56.6 78.8
+
+PC_VARIATION_CORRECTION_UNC_0_ROW_0 = 0.1 0.2 0.3 0.4
+PC_VARIATION_CORRECTION_UNC_0_ROW_1 = 1.1 1.2 1.3 1.4
+PC_VARIATION_CORRECTION_UNC_0_ROW_2 = 2.1 2.2 2.3 2.4
+
+SIGNAL_GAIN_CORRECTION_0_ROW_0 = 9.8 8.7 7.6 6.5
+SIGNAL_GAIN_CORRECTION_0_ROW_1 = 5.4 4.3 3.2 2.1
+SIGNAL_GAIN_CORRECTION_0_ROW_2 = 1.3 2.4 3.5 4.6
+
+SIGNAL_GAIN_CORRECTION_UNC_0_ROW_0 = 0.11 0.22 0.33 0.44
+SIGNAL_GAIN_CORRECTION_UNC_0_ROW_1 = 0.55 0.66 0.77 0.88
+SIGNAL_GAIN_CORRECTION_UNC_0_ROW_2 = 0.91 0.92 0.93 0.94
+
+
+CARRIER_FREQUENCY_1 = 1227.6
+
+PC_OFFSET_1 = 3.4 0.2 5.6 0.3 1.2 0.1
+
+NUMBER_OF_ROWS_1 = 4
+NUMBER_OF_COLUMNS_1 = 2
+NUMBER_OF_ROWS_SGC_1 = 3
+NUMBER_OF_COLUMNS_SGC_1 = 4
+
+PC_VARIATION_CORRECTION_1_ROW_0 = 55.66 77.88
+PC_VARIATION_CORRECTION_1_ROW_1 = 11.22 33.44
+PC_VARIATION_CORRECTION_1_ROW_2 = 56.6 78.8
+PC_VARIATION_CORRECTION_1_ROW_3 = 12.2 34.4
+
+PC_VARIATION_CORRECTION_UNC_1_ROW_0 = 0.3 0.4
+PC_VARIATION_CORRECTION_UNC_1_ROW_1 = 1.1 1.2
+PC_VARIATION_CORRECTION_UNC_1_ROW_2 = 2.1 2.2
+PC_VARIATION_CORRECTION_UNC_1_ROW_3 = 0.1 0.2
+
+SIGNAL_GAIN_CORRECTION_1_ROW_0 = 7.6 6.5 5.4 4.3
+SIGNAL_GAIN_CORRECTION_1_ROW_1 = 1.3 2.4 9.8 8.7
+SIGNAL_GAIN_CORRECTION_1_ROW_2 = 1.4 2.5 3.6 4.7
+
+SIGNAL_GAIN_CORRECTION_UNC_1_ROW_0 = 0.91 0.92 0.55 0.66
+SIGNAL_GAIN_CORRECTION_UNC_1_ROW_1 = 0.11 0.22 0.93 0.94
+SIGNAL_GAIN_CORRECTION_UNC_1_ROW_2 = 0.95 0.96 0.33 0.44
diff --git a/configs/gps/gps.conf b/configs/gps/gps.conf
index 00dcbe5..deea1c5 100644
--- a/configs/gps/gps.conf
+++ b/configs/gps/gps.conf
@@ -1,41 +1,58 @@
+#hardware/qcom/gps/loc_api/conf/gps.conf
+
+NI_SUPL_DENY_ON_NFW_LOCKED = 1
+
+#####################################
+# proxyAppPackageName
+#####################################
+# This is a string that is sent to the framework
+# in nfwNotifyCb callback
+# Add NFW package name
+PROXY_APP_PACKAGE_NAME = com.motorola.nfwlocationattribution
+
+#Version check for XTRA
+#DISABLE = 0
+#AUTO = 1
+#XTRA2 = 2
+#XTRA3 = 3
+XTRA_VERSION_CHECK=0
+
# Error Estimate
# _SET = 1
# _CLEAR = 0
ERR_ESTIMATE=0
#NTP server
-NTP_SERVER=1.android.pool.ntp.org
-NTP_SERVER_2=asia.pool.ntp.org
-NTP_SERVER_3=0.cn.pool.ntp.org
+NTP_SERVER=time.izatcloud.net
#XTRA CA path
-XTRA_CA_PATH=/usr/lib/ssl-1.1/certs
+XTRA_CA_PATH=/usr/lib/ssl/certs
# DEBUG LEVELS: 0 - none, 1 - Error, 2 - Warning, 3 - Info
# 4 - Debug, 5 - Verbose
# If DEBUG_LEVEL is commented, Android's logging levels will be used
-DEBUG_LEVEL = 3
+DEBUG_LEVEL = 1
# Intermediate position report, 1=enable, 0=disable
-INTERMEDIATE_POS=0
+#INTERMEDIATE_POS=0
# supl version 1.0
-SUPL_VER=0x20000
+#SUPL_VER=0x10000
# Emergency SUPL, 1=enable, 0=disable
-SUPL_ES=0
+#SUPL_ES=1
#Choose PDN for Emergency SUPL
#1 - Use emergency PDN
#0 - Use regular SUPL PDN for Emergency SUPL
-USE_EMERGENCY_PDN_FOR_EMERGENCY_SUPL=0
+#USE_EMERGENCY_PDN_FOR_EMERGENCY_SUPL=0
#SUPL_MODE is a bit mask set in config.xml per carrier by default.
#If it is uncommented here, this value will overwrite the value from
#config.xml.
#MSA=0X2
#MSB=0X1
-SUPL_MODE=3
+#SUPL_MODE=
# GPS Capabilities bit mask
# SCHEDULING = 0x01
@@ -43,11 +60,11 @@ SUPL_MODE=3
# MSA = 0x04
# ON_DEMAND_TIME = 0x10
# default = ON_DEMAND_TIME | MSA | MSB | SCHEDULING
-CAPABILITIES=0x17
+CAPABILITIES=0x77
# Accuracy threshold for intermediate positions
# less accurate positions are ignored, 0 for passing all positions
-ACCURACY_THRES=70
+# ACCURACY_THRES=5000
################################
##### AGPS server settings #####
@@ -74,72 +91,38 @@ ACCURACY_THRES=70
#AGPS_CERT_WRITABLE_MASK=0
####################################
-# LTE Positioning Profile Settings
+ # LTE Positioning Profile Settings
####################################
-# LPP_PROFILE is a bit mask
+# LPP_PROFILE is a bit mask(unit8 in HAL interface)
# 0: Enable RRLP on LTE(Default)
-# 1: Enable LPP_User_Plane on LTE
-# 2: Enable LPP_Control_Plane
-# 3: Enable both LPP_User_Plane and LPP_Control_Plane
-LPP_PROFILE = 3
+# 0x01: LPP User Plane
+# 0x02: LPP Control Plane
+# 0x04: LPP User Plane for NR5G
+# 0x08: LPP Control Plane for NR5G
+# Mot modification
+# 0x10: LPPe CP DBH
+# 0x20: LPPe CP WLAN
+# 0x40: LPPe UP DBH
+# 0x80: LPPe UP WLAN
+# TMO = 0x32 (50) LPP CP, RRLP UP, LPPe CP DBH & WLAN, LPPe CP UBP if product support pressure sensor
+# ATT = 0x33 (51) LPP CP, LPP UP, LPPe CP DBH & WLAN, LPPe CP UBP if product support pressure sensor
+# VzW = 0xF3 (243) LPP CP, LPP UP, LPPe CP DBH & WLAN, LPPe UP DBH & WLAN, LPPe CP & UP UBP if product support pressure sensor
+#LPP_PROFILE = 2
####################################
#Datum Type
####################################
# 0: WGS-84
# 1: PZ-90
-DATUM_TYPE = 0
+#DATUM_TYPE = 0
################################
# EXTRA SETTINGS
################################
# NMEA provider (1=Modem Processor, 0=Application Processor)
-NMEA_PROVIDER=0
-
-################################
-# NMEA TAG BLOCK GROUPING
-################################
-# NMEA tag block grouping is only applicable to GSA
-# Default is disabled
-# 0 - disabled
-# 1 - enabled
-NMEA_TAG_BLOCK_GROUPING_ENABLED = 0
-
-# Customized NMEA GGA fix quality that can be used to tell
-# whether SENSOR contributed to the fix.
-#
-# When this configuration item is not enabled (set to any value that is not 1),
-# GGA fix quality conforms to NMEA standard spec as below:
-# PPP/DGNSS/SBAS correction fix w/ or w/o sensor: 2
-# RTK fixed fix w/ or w/o sensor: 4
-# RTK float fix w/ or w/o sensor: 5
-# SPE fix w/ or w/o sensor: 1
-# Sensor dead reckoning fix: 6
-#
-# When this configuration is enabled (set to 1), GGA fix quality
-# will be output as below:
-# PPP fix w/o sensor: 59, w/ sensor: 69
-# DGNSS/SBAS correction fix w/o sensor: 2, w/ sensor: 62
-# RTK fixed fix w/o sensor: 4, w/ sensor: 64
-# RTK float fix w/o sensor: 5, w/ sensor: 65,
-# SPE fix w/o sensor: 1, and w/ sensor: 61
-# Sensor dead reckoning fix: 6
-#
-# any value that is not 1 - disabled
-# 1 - enabled
-CUSTOM_NMEA_GGA_FIX_QUALITY_ENABLED = 0
-
-################################
-# NMEA Reporting Rate Config, valid only when NMEA_PROVIDER is set to "0"
-################################
-# NMEA Reporting Rate
-# Set it to "1HZ" for 1Hz NMEA Reporting
-# Set it to "NHZ" for NHz NMEA Reporting
-#Default : NHZ (overridden by position update rate if set to lower rates)
-NMEA_REPORT_RATE=NHZ
-
+#NMEA_PROVIDER=0
# Mark if it is a SGLTE target (1=SGLTE, 0=nonSGLTE)
-SGLTE_TARGET=0
+#SGLTE_TARGET=0
##################################################
# Select Positioning Protocol on A-GLONASS system
@@ -147,8 +130,8 @@ SGLTE_TARGET=0
# 0x1: RRC CPlane
# 0x2: RRLP UPlane
# 0x4: LLP Uplane
-A_GLONASS_POS_PROTOCOL_SELECT = 0xf
-
+#A_GLONASS_POS_PROTOCOL_SELECT = 0
+#
##################################################
# Select technology for LPPe Control Plane
##################################################
@@ -182,7 +165,7 @@ A_GLONASS_POS_PROTOCOL_SELECT = 0xf
# A_GLONASS_POS_PROTOCOL_SELECT
# 0: disable
# 1: enable
-AGPS_CONFIG_INJECT = 1
+#AGPS_CONFIG_INJECT = 1
##################################################
# GNSS settings for automotive use cases
@@ -196,7 +179,17 @@ AGPS_CONFIG_INJECT = 1
# default : 10
# AP time stamp uncertainty, until GNSS receiver
# is able to acquire better timing information
-AP_TIMESTAMP_UNCERTAINTY = 10
+#AP_TIMESTAMP_UNCERTAINTY = 10
+
+##################################################
+# QDR engine availability status
+##################################################
+# 0 : NO QDR (default)
+# 1 : QDR enabled
+# This settings enables QDR Configuration for
+# automotive use case, if enabled then
+# DR_AP_Service needs to be enabled in izat.conf
+#EXTERNAL_DR_ENABLED = 0
#####################################
# DR_SYNC Pulse Availability
@@ -206,22 +199,22 @@ AP_TIMESTAMP_UNCERTAINTY = 10
# This configuration enables the driver to make use
# of PPS events generated by DR_SYNC pulse
# Standard Linux PPS driver needs to be enabled
-DR_SYNC_ENABLED = 0
+#DR_SYNC_ENABLED = 0
#####################################
# PPS Device name
#####################################
-PPS_DEVICENAME = /dev/pps0
+#PPS_DEVICENAME = /dev/pps0
#####################################
# Ignore PPS at Startup and after long outage
#####################################
-IGNORE_PPS_PULSE_COUNT = 1
+#IGNORE_PPS_PULSE_COUNT = 1
#####################################
# Long GNSS RF outage in seconds
#####################################
-GNSS_OUTAGE_DURATION = 10
+#GNSS_OUTAGE_DURATION = 10
#####################################
# AP Clock Accuracy
@@ -229,20 +222,20 @@ GNSS_OUTAGE_DURATION = 10
# Quality of APPS processor clock (in PPM).
# Value specified is used for calculation of
# APPS time stamp uncertainty
-AP_CLOCK_PPM = 100
+#AP_CLOCK_PPM = 100
#####################################
# MAX ms difference to detect missing pulse
#####################################
# Specifies time threshold in ms to validate any missing PPS pulses
-MISSING_PULSE_TIME_DELTA = 900
+#MISSING_PULSE_TIME_DELTA = 900
#####################################
# Propagation time uncertainty
#####################################
# This settings enables time uncertainty propagation
# logic incase of missing PPS pulse
-PROPAGATION_TIME_UNCERTAINTY = 1
+#PROPAGATION_TIME_UNCERTAINTY = 1
#######################################
# APN / IP Type Configuration
@@ -300,100 +293,22 @@ MODEM_TYPE = 1
# 1 : enabled
# This setting enables GPS engine to estimate clock
# bias and drift when the signal from at least 1
-# SV is available and the UE’s position is known by
+# SV is available and the UE’s position is known by
# other position engines.
#POSITION_ASSISTED_CLOCK_ESTIMATOR_ENABLED = 0
-#####################################
-# proxyAppPackageName
-#####################################
-# This is a string that is sent to the framework
-# in nfwNotifyCb callback
-PROXY_APP_PACKAGE_NAME = com.google.android.carrierlocation
-
#####################################
# CP_MTLR_ES
#####################################
# CP MTLR ES, 1=enable, 0=disable
-CP_MTLR_ES=0
+#CP_MTLR_ES=0
##################################################
# GNSS_DEPLOYMENT
##################################################
# 0 : Enable QTI GNSS (default)
# 1 : Enable QCSR SS5
-# 2 : Enable PDS API
-# This setting use to select between QTI GNSS,
-# QCSR SS5 hardware receiver, and PDS API.
+# This setting use to select between QTI GNSS
+# and QCSR SS5 hardware receiver.
# By default QTI GNSS receiver is enabled.
# GNSS_DEPLOYMENT = 0
-
-##################################################
-## LOG BUFFER CONFIGURATION
-##################################################
-#LOG_BUFFER_ENABLED, 1=enable, 0=disable
-#*_LEVEL_TIME_DEPTH, maximum time depth of level *
-#in log buffer, unit is second
-#*_LEVEL_MAX_CAPACITY, maximum numbers of level *
-#log print sentences in log buffer
-LOG_BUFFER_ENABLED = 0
-E_LEVEL_TIME_DEPTH = 600
-E_LEVEL_MAX_CAPACITY = 50
-W_LEVEL_TIME_DEPTH = 500
-W_LEVEL_MAX_CAPACITY = 100
-I_LEVEL_TIME_DEPTH = 400
-I_LEVEL_MAX_CAPACITY = 200
-D_LEVEL_TIME_DEPTH = 30
-D_LEVEL_MAX_CAPACITY = 300
-V_LEVEL_TIME_DEPTH = 200
-V_LEVEL_MAX_CAPACITY = 400
-
-# Xiaomi add for breaking xtra download limitation
-XTRA_TEST_ENABLED = 1
-XTRA_THROTTLE_ENABLED = 0
-XTRA_SYSTEM_TIME_INJECT = 1
-# Mechanism to handle the gnss assistance data download
-# in very bad network situations
-XTRA_SOCK_KEEPALIVE=1
-##################################################
-# Allow buffer diag log packets when diag memory allocation
-# fails during boot up time.
-##################################################
-BUFFER_DIAG_LOGGING = 1
-
-#######################################
-# NTRIP CLIENT LIBRARY NAME
-#######################################
-# NTRIP_CLIENT_LIB_NAME =
-
-##################################################
-# Correction Data Framework settings
-# Default values:
-# CDFW_SOURCE_PRIORITY_1 = INTERNAL_1 RTCM
-# CDFW_INJECT_DATA_INTERVAL = 600000 //10 mins
-# CDFW_RTCM_MESSAGE_INTERVAL = 1000 //1 second
-#
-# If multiple sources coexist on a PL,
-# the prorioty sequence can be set by the integer number.
-# PRIORITY_1 is higher than PRIORITY_2, for example,
-# CDFW_SOURCE_PRIORITY_1 = INTERNAL_1 RTCM
-# CDFW_SOURCE_PRIORITY_2 = CV2X RTCM
-##################################################
-
-##################################################
-# RF LOSS
-# The loss in 0.1 dbHz from the C/N0 at the antenna port
-# These values must be configured by OEM if not
-# supported in QMI LOC message
-# There is one entry for each signal type
-##################################################
-RF_LOSS_GPS = 0
-RF_LOSS_GPS_L5 = 0
-RF_LOSS_GLO_LEFT = 0
-RF_LOSS_GLO_CENTER = 0
-RF_LOSS_GLO_RIGHT = 0
-RF_LOSS_BDS = 0
-RF_LOSS_BDS_B2A = 0
-RF_LOSS_GAL = 0
-RF_LOSS_GAL_E5 = 0
-RF_LOSS_NAVIC = 0
diff --git a/configs/gps/izat.conf b/configs/gps/izat.conf
index 932afba..9943c92 100644
--- a/configs/gps/izat.conf
+++ b/configs/gps/izat.conf
@@ -2,7 +2,7 @@
# Log verbosity control for izat modules
#########################################
# OFF = 0, ERROR = 1, WARNING = 2, INFO = 3, DEBUG = 4, VERBOSE = 5
-IZAT_DEBUG_LEVEL = 2
+IZAT_DEBUG_LEVEL = 5
##################################################
# Select WIFI Wait Timeout value in seconds for SUPL
@@ -16,6 +16,13 @@ WIFI_WAIT_TIMEOUT_SELECT = 0
##################################################
LPPE_SRN_DATA_SCAN_INJECT_TIME=2
+##################################################
+# Identify this target as OTA updated or new
+# 0 - New target
+# 1 - OTA updated
+##################################################
+OTA_UPDATED_TARGET=0
+
################################
# NLP Settings
################################
@@ -93,7 +100,6 @@ GTP_PRIVACY_RETRY_INTERVAL = 86400
# DISABLED
# LEGACY_WWAN
# SDK (WWAN not available for Modems before LocTech 10.0)
-# SDK_WIFI (WWAN provided by legacy Modem)
GTP_MODE=DISABLED
#GTP_WAA valid modes:
@@ -105,9 +111,8 @@ GTP_WAA=DISABLED
# DISABLED
# BASIC
# PREMIUM
-# PREMIUM_ENV_AIDING
# MODEM_DEFAULT
-SAP=PREMIUM
+SAP=MODEM_DEFAULT
#FREE_WIFI_SCAN_INJECT valid modes:
#DISABLED
@@ -181,7 +186,7 @@ IZAT_FEATURE_MASK=0xf303
PLATFORMS=all
SOC_IDS=all
BASEBAND=all
-LOW_RAM_TARGETS=ENABLED
+LOW_RAM_TARGETS=DISABLED
HARDWARE_TYPE=all
VENDOR_ENHANCED_PROCESS=0
@@ -192,9 +197,9 @@ PROCESS_GROUPS=inet gps
PREMIUM_FEATURE=1
IZAT_FEATURE_MASK=0xc03
PLATFORMS=all
-SOC_IDS=all
+SOC_IDS=all exclude 386 436
BASEBAND=all
-LOW_RAM_TARGETS=ENABLED
+LOW_RAM_TARGETS=DISABLED
HARDWARE_TYPE=all
VENDOR_ENHANCED_PROCESS=1
@@ -205,9 +210,9 @@ PROCESS_GROUPS=wifi inet gps system oem_2904
PREMIUM_FEATURE=1
IZAT_FEATURE_MASK=0xd03
PLATFORMS=all
-SOC_IDS=all
+SOC_IDS=all exclude 386 436
BASEBAND=all
-LOW_RAM_TARGETS=ENABLED
+LOW_RAM_TARGETS=DISABLED
HARDWARE_TYPE=all
VENDOR_ENHANCED_PROCESS=1
@@ -266,7 +271,7 @@ VENDOR_ENHANCED_PROCESS=1
PROCESS_NAME=engine-service
PROCESS_ARGUMENT=PPE libepsimulator.so
PROCESS_STATE=DISABLED
-PROCESS_GROUPS=gps diag inet qwes oem_2901 system
+PROCESS_GROUPS=gps diag inet oem_2901
PREMIUM_FEATURE=0
IZAT_FEATURE_MASK=0
PLATFORMS=all
diff --git a/configs/gps/sap.conf b/configs/gps/sap.conf
index e8d27b7..a077b3c 100644
--- a/configs/gps/sap.conf
+++ b/configs/gps/sap.conf
@@ -13,10 +13,6 @@
#RATE_RANDOM_WALK_SPECTRAL_DENSITY=
#VELOCITY_RANDOM_WALK_SPECTRAL_DENSITY=
-# DEBUG LEVELS: 0 - none, 1 - Error, 2 - Warning, 3 - Info
-# 4 - Debug, 5 - Verbose
-# If DEBUG_LEVEL is commented, Android's logging levels will be used
-DEBUG_LEVEL = 0
# Sensor Sampling Rate Parameters for Low-Data Rate Filter (should be greater than 0)
# used in loc_eng_reinit
SENSOR_ACCEL_BATCHES_PER_SEC=2
@@ -37,7 +33,7 @@ SENSOR_CONTROL_MODE=2
# Setting each bit has the following definition:
# 0x1 - DISABLE_INS_POSITIONING_FILTER
# 0x0 - ENABLE_INS_POSITIONING_FILTER
-SENSOR_ALGORITHM_CONFIG_MASK=0x0
+SENSOR_ALGORITHM_CONFIG_MASK=0x1
#Vehicle Network Provider configuration
@@ -50,9 +46,7 @@ SENSOR_ALGORITHM_CONFIG_MASK=0x0
################################################
# QDR3 configurations #
################################################
-#VN_SPEED_CFG=1:131,5,8,1,2,3,1,1,9,2,14,2
-#VN_GEAR_CFG=1:422,20,4,0,4,1,9,0,1,2,3,4,5,6,7,8
-VN_SPEED_CFG=1:777,0,0,1,3,1,0.002778,0,40,8,32,8
+VN_SPEED_CFG=1:131,5,8,1,2,3,1,1,9,2,14,2
VN_GEAR_CFG=1:422,20,4,0,4,1,9,0,1,2,3,4,5,6,7,8
################################################
@@ -83,22 +77,22 @@ VN_GEAR_CFG=1:422,20,4,0,4,1,9,0,1,2,3,4,5,6,7,8
# Batching type
# 1 - Time based (default)
# 2 - Count based
-VN_CFG_BATCH_TYPE=1
+#VN_CFG_BATCH_TYPE=1
#Vehicle Accel batching value, it can either accept time in milli seconds or sample count
#VN_ACCEL_CFG_BATCH_VALUE=100
#Vehicle Gyro batching value, it can either accept time in milli seconds or sample count
-VN_GYRO_CFG_BATCH_VALUE=50
+#VN_GYRO_CFG_BATCH_VALUE=100
#Vehicle Odo batching value, it can either accept time in milli seconds or sample count
#VN_ODOMETRY_CFG_BATCH_VALUE=100
#Vehicle Speed batching value, it can either accept time in milli seconds or sample count
-VN_SPEED_CFG_BATCH_VALUE=50
+#VN_SPEED_CFG_BATCH_VALUE=100
#Vehicle Gear batching value, it can either accept time in milli seconds or sample count
-VN_GEAR_CFG_BATCH_VALUE=50
+#VN_GEAR_CFG_BATCH_VALUE=100
#Vehicle DWS batching value, it can either accept time in milli seconds or sample count
#VN_DWS_CFG_BATCH_VALUE=100
@@ -131,34 +125,22 @@ NDK_PROVIDER_TIME_SOURCE=1
COUNT_BASED_BATCHING=1
SYNC_ONCE=0
-# Vehicle Network Data optimization
-# Default value: 0
-# Value 0x40000 - Speed(bit 18 eSLIM_SERVICE_VEHICLE_SPEED)
-# Value 0x80000 - Speed(bit 19 eSLIM_SERVICE_VEHICLE_DWS)
-# Value 0x100000 - Speed(bit 20 eSLIM_SERVICE_VEHICLE_GEAR)
-VN_ENABLE_DATA_OPTIMIZATION=0x100000
-
-# Vehicle Network Data Routing time interval
-# This is applicable only if VN_ENABLE_DATA_OPTIMIZATION value is set
-# Default value: 5000 msec
-VN_DATA_ROUTING_TIME_INTERVAL_MSEC=3000
-
#Sensor HAL Provider Configuration HAL Library name including path
################################################
# #
# Configuration for BMI 160 Sensor #
# #
################################################
-#SENSOR_TYPE=2
-#SENSOR_HAL_LIB_PATH=/usr/lib/libbmi160sensors.so.1
+SENSOR_TYPE=2
+SENSOR_HAL_LIB_PATH=/usr/lib/libbmi160sensors.so.1
################################################
# #
# Configuration for ASM330 Sensor #
# #
################################################
-SENSOR_TYPE=1
-SENSOR_HAL_LIB_PATH=/usr/lib/libasm330sensors.so.1
+#SENSOR_TYPE=1
+#SENSOR_HAL_LIB_PATH=/usr/lib/libasm330sensors.so.1
################################################
diff --git a/configs/keylayout/gpio-keys.kl b/configs/keylayout/gpio-keys.kl
deleted file mode 100644
index 7d5afc3..0000000
--- a/configs/keylayout/gpio-keys.kl
+++ /dev/null
@@ -1,32 +0,0 @@
-# Copyright (c) 2013, The Linux Foundation. All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are
-# met:
-# * Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# * Redistributions in binary form must reproduce the above
-# copyright notice, this list of conditions and the following
-# disclaimer in the documentation and/or other materials provided
-# with the distribution.
-# * Neither the name of The Linux Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
-# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
-# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-key 115 VOLUME_UP
-key 114 VOLUME_DOWN
-key 102 HOME
-key 528 FOCUS
-key 766 CAMERA
diff --git a/configs/keylayout/sm6150-idp-snd-card_Button_Jack.kl b/configs/keylayout/sm6150-idp-snd-card_Button_Jack.kl
deleted file mode 100644
index 07cb901..0000000
--- a/configs/keylayout/sm6150-idp-snd-card_Button_Jack.kl
+++ /dev/null
@@ -1,30 +0,0 @@
-# Copyright (c) 2014, The Linux Foundation. All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions are
-# met:
-# * Redistributions of source code must retain the above copyright
-# notice, this list of conditions and the following disclaimer.
-# * Redistributions in binary form must reproduce the above
-# copyright notice, this list of conditions and the following
-# disclaimer in the documentation and/or other materials provided
-# with the distribution.
-# * Neither the name of The Linux Foundation nor the names of its
-# contributors may be used to endorse or promote products derived
-# from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
-# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
-# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
-# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
-# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
-# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
-# BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
-# OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
-# IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-key 226 HEADSETHOOK
-key 257 VOLUME_UP
-key 258 VOLUME_DOWN
diff --git a/configs/media/media_codecs.xml b/configs/media/media_codecs.xml
index 2025f97..9681121 100644
--- a/configs/media/media_codecs.xml
+++ b/configs/media/media_codecs.xml
@@ -118,299 +118,5 @@ Only the three quirks included above are recognized at this point:
-->
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
diff --git a/configs/media/media_codecs_c2.xml b/configs/media/media_codecs_c2.xml
deleted file mode 100644
index 1153cb0..0000000
--- a/configs/media/media_codecs_c2.xml
+++ /dev/null
@@ -1,220 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/configs/media/media_codecs_performance.xml b/configs/media/media_codecs_performance.xml
index 31881e0..b8e484b 100644
--- a/configs/media/media_codecs_performance.xml
+++ b/configs/media/media_codecs_performance.xml
@@ -23,14 +23,14 @@ limitations under the License.
-
-
+
+
-
-
+
+
@@ -42,7 +42,7 @@ limitations under the License.
-
+
diff --git a/configs/media/media_codecs_performance_v2.xml b/configs/media/media_codecs_performance_v2.xml
index a3220fd..69b2c76 100644
--- a/configs/media/media_codecs_performance_v2.xml
+++ b/configs/media/media_codecs_performance_v2.xml
@@ -175,14 +175,14 @@ limitations under the License.
-
+
-
+
@@ -193,6 +193,8 @@ limitations under the License.
+
+
@@ -204,7 +206,7 @@ limitations under the License.
-
+
diff --git a/configs/media/media_codecs_system_default.xml b/configs/media/media_codecs_system_default.xml
index 2d2b112..b91747e 100644
--- a/configs/media/media_codecs_system_default.xml
+++ b/configs/media/media_codecs_system_default.xml
@@ -87,11 +87,14 @@ Only the three quirks included above are recognized at this point:
_________________________________________________________
| Codec | W H fps Mbps MB/s |
|_____________|_________________________________________|
- | h264 | 3840 2160 30 100 972000 |
- | hevc | 3840 2160 30 100 972000 |
+ | h264 | 4096 2160 60 120 2073600 |
+ | | (4096) (2304) (30) (120) |
+ | hevc | 4096 2160 60 120 2073600 |
+ | | (4096) (2304) (30) (120) |
| mpeg4-sw | 1920 1088 30 40 244800 |
| vp8 | 1920 1088 60 100 489600 |
- | vp9 | 3840 2160 30 100 972000 |
+ | vp9 | 4096 2160 60 120 2073600 |
+ | | (4096) (2304) (30) (120) |
| vc1 | 1920 1088 30 20 244800 |
| div4/5/6-sw | 1920 1088 30 10 244800 |
| h263-sw | 864 480 30 16 48600 |
@@ -112,8 +115,10 @@ Only the three quirks included above are recognized at this point:
______________________________________________________
| Codec | W H fps Mbps MB/s |
|__________|_________________________________________|
- | h264 | 3840 2160 30 100 972000 |
- | hevc | 3840 2160 30 100 972000 |
+ | h264 | 4096 2160 60 120 2073600 |
+ | | (4096) (2304) (30) (120) |
+ | hevc | 4096 2160 60 120 2073600 |
+ | | (4096) (2304) (30) (120) |
| mpeg4-sw | 1280 720 30 4 108000 |
| vp8 | 1920 1088 60 40 489600 |
| h263-sw | 864 480 30 2 48600 |
@@ -133,7 +138,7 @@ Only the three quirks included above are recognized at this point:
-
+
@@ -144,6 +149,7 @@ Only the three quirks included above are recognized at this point:
+
@@ -158,12 +164,13 @@ Only the three quirks included above are recognized at this point:
+
-
+
@@ -176,6 +183,7 @@ Only the three quirks included above are recognized at this point:
+
@@ -188,6 +196,7 @@ Only the three quirks included above are recognized at this point:
+
@@ -204,6 +213,7 @@ Only the three quirks included above are recognized at this point:
+
@@ -218,6 +228,7 @@ Only the three quirks included above are recognized at this point:
+
@@ -232,43 +243,81 @@ Only the three quirks included above are recognized at this point:
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
@@ -280,6 +329,7 @@ Only the three quirks included above are recognized at this point:
+
@@ -294,6 +344,7 @@ Only the three quirks included above are recognized at this point:
+
@@ -308,6 +359,7 @@ Only the three quirks included above are recognized at this point:
+
@@ -324,6 +376,7 @@ Only the three quirks included above are recognized at this point:
+
@@ -340,38 +393,75 @@ Only the three quirks included above are recognized at this point:
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -386,6 +476,7 @@ Only the three quirks included above are recognized at this point:
+
@@ -399,6 +490,7 @@ Only the three quirks included above are recognized at this point:
+
@@ -409,6 +501,7 @@ Only the three quirks included above are recognized at this point:
+
@@ -422,6 +515,7 @@ Only the three quirks included above are recognized at this point:
+
@@ -434,6 +528,7 @@ Only the three quirks included above are recognized at this point:
+
@@ -447,6 +542,7 @@ Only the three quirks included above are recognized at this point:
+
diff --git a/configs/media/media_profiles_vendor.xml b/configs/media/media_profiles_vendor.xml
index 9617592..4bc082d 100644
--- a/configs/media/media_profiles_vendor.xml
+++ b/configs/media/media_profiles_vendor.xml
@@ -116,7 +116,7 @@
frameRate="30" />
@@ -129,7 +129,7 @@
frameRate="30" />
@@ -155,7 +155,7 @@
frameRate="30" />
@@ -168,7 +168,7 @@
frameRate="30" />
@@ -181,7 +181,7 @@
frameRate="30" />
@@ -194,7 +194,7 @@
frameRate="24" />
@@ -207,7 +207,7 @@
frameRate="30" />
@@ -233,7 +233,7 @@
frameRate="30" />
@@ -261,7 +261,7 @@
@@ -332,7 +332,7 @@
@@ -346,7 +346,7 @@
@@ -360,7 +360,7 @@
@@ -374,7 +374,7 @@
@@ -388,7 +388,7 @@
@@ -401,7 +401,7 @@
frameRate="30" />
@@ -414,7 +414,7 @@
frameRate="30" />
@@ -449,7 +449,7 @@
frameRate="30" />
@@ -462,7 +462,7 @@
frameRate="30" />
@@ -488,7 +488,7 @@
frameRate="30" />
@@ -501,7 +501,7 @@
frameRate="30" />
@@ -514,7 +514,7 @@
frameRate="30" />
@@ -540,7 +540,7 @@
frameRate="30" />
@@ -569,7 +569,7 @@
@@ -597,7 +597,7 @@
@@ -639,7 +639,7 @@
@@ -653,7 +653,7 @@
@@ -667,7 +667,7 @@
@@ -703,7 +703,7 @@
frameRate="30" />
@@ -716,7 +716,7 @@
frameRate="30" />
@@ -742,7 +742,7 @@
frameRate="30" />
@@ -755,7 +755,7 @@
frameRate="30" />
@@ -768,7 +768,7 @@
frameRate="30" />
@@ -781,7 +781,7 @@
frameRate="30" />
@@ -794,7 +794,7 @@
frameRate="30" />
@@ -807,7 +807,7 @@
frameRate="24" />
@@ -820,7 +820,7 @@
frameRate="30" />
@@ -846,7 +846,7 @@
frameRate="30" />
@@ -874,7 +874,7 @@
@@ -945,7 +945,7 @@
@@ -959,7 +959,7 @@
@@ -973,7 +973,7 @@
@@ -987,7 +987,7 @@
@@ -1001,7 +1001,7 @@
@@ -1014,7 +1014,7 @@
frameRate="30" />
@@ -1027,7 +1027,7 @@
frameRate="30" />
@@ -1062,7 +1062,7 @@
frameRate="30" />
@@ -1075,7 +1075,7 @@
frameRate="30" />
@@ -1101,7 +1101,7 @@
frameRate="30" />
@@ -1114,7 +1114,7 @@
frameRate="30" />
@@ -1127,7 +1127,7 @@
frameRate="30" />
@@ -1139,7 +1139,7 @@
height="1440"
frameRate="30" />
@@ -1150,7 +1150,7 @@
height="1080"
frameRate="30" />
@@ -1161,7 +1161,7 @@
height="2160"
frameRate="24" />
@@ -1172,7 +1172,7 @@
height="2160"
frameRate="30" />
@@ -1197,7 +1197,7 @@
frameRate="30" />
@@ -1226,7 +1226,7 @@
@@ -1254,7 +1254,7 @@
@@ -1296,7 +1296,7 @@
@@ -1310,7 +1310,7 @@
@@ -1324,7 +1324,7 @@
@@ -1335,7 +1335,7 @@
height="1440"
frameRate="30" />
@@ -1346,7 +1346,7 @@
height="1080"
frameRate="30" />
@@ -1357,7 +1357,7 @@
height="2160"
frameRate="30" />
@@ -1368,7 +1368,7 @@
height="2160"
frameRate="30" />
@@ -1403,7 +1403,7 @@
frameRate="30" />
@@ -1416,7 +1416,7 @@
frameRate="30" />
@@ -1442,7 +1442,7 @@
frameRate="30" />
@@ -1455,7 +1455,7 @@
frameRate="30" />
@@ -1468,7 +1468,7 @@
frameRate="30" />
@@ -1481,7 +1481,7 @@
frameRate="30" />
@@ -1494,7 +1494,7 @@
frameRate="30" />
@@ -1507,7 +1507,7 @@
frameRate="24" />
@@ -1520,7 +1520,7 @@
frameRate="30" />
@@ -1546,7 +1546,7 @@
frameRate="30" />
@@ -1574,7 +1574,7 @@
@@ -1645,7 +1645,7 @@
@@ -1659,7 +1659,7 @@
@@ -1673,7 +1673,7 @@
@@ -1687,7 +1687,7 @@
@@ -1701,7 +1701,7 @@
@@ -1714,7 +1714,7 @@
frameRate="30" />
@@ -1727,7 +1727,7 @@
frameRate="30" />
@@ -1762,7 +1762,7 @@
frameRate="30" />
@@ -1775,7 +1775,7 @@
frameRate="30" />
@@ -1801,7 +1801,7 @@
frameRate="30" />
@@ -1814,7 +1814,7 @@
frameRate="30" />
@@ -1827,7 +1827,7 @@
frameRate="30" />
@@ -1839,7 +1839,7 @@
height="1440"
frameRate="30" />
@@ -1850,7 +1850,7 @@
height="1080"
frameRate="30" />
@@ -1861,7 +1861,7 @@
height="2160"
frameRate="24" />
@@ -1872,7 +1872,7 @@
height="2160"
frameRate="30" />
@@ -1897,7 +1897,7 @@
frameRate="30" />
@@ -1926,7 +1926,7 @@
@@ -1954,7 +1954,7 @@
@@ -1996,7 +1996,7 @@
@@ -2010,7 +2010,7 @@
@@ -2024,7 +2024,7 @@
@@ -2035,7 +2035,7 @@
height="1440"
frameRate="30" />
@@ -2046,7 +2046,7 @@
height="1080"
frameRate="30" />
@@ -2057,7 +2057,7 @@
height="2160"
frameRate="30" />
@@ -2068,7 +2068,7 @@
height="2160"
frameRate="30" />
@@ -2121,7 +2121,7 @@
maxHFRMode="0" />
diff --git a/configs/msm_irqbalance.conf b/configs/msm_irqbalance.conf
index df8d5cd..d426ee1 100644
--- a/configs/msm_irqbalance.conf
+++ b/configs/msm_irqbalance.conf
@@ -28,5 +28,5 @@
#
PRIO=1,1,1,1,0,0,0,0
-#arch_timer, arm-pmu, arch_mem_timer
-IGNORED_IRQ=19,21,38
+#arch_timer, arm-pmu, arch_mem_timer, msm_drm, kgsl-3d0
+IGNORED_IRQ=19,21,38,115,332
diff --git a/configs/nfc/libnfc-nci.conf b/configs/nfc/libnfc-nci.conf
index 9765d79..1104414 100644
--- a/configs/nfc/libnfc-nci.conf
+++ b/configs/nfc/libnfc-nci.conf
@@ -71,7 +71,7 @@ SCREEN_OFF_POWER_STATE=1
# NFA_TECHNOLOGY_MASK_KOVIO 0x20 /* Proprietary Technology */
# NFA_TECHNOLOGY_MASK_A_ACTIVE 0x40 /* NFC Technology A active mode */
# NFA_TECHNOLOGY_MASK_F_ACTIVE 0x80 /* NFC Technology F active mode */
-POLLING_TECH_MASK=0xEF
+POLLING_TECH_MASK=0xCF
###############################################################################
# Force P2P to only listen for the following technology(s).
diff --git a/configs/nfc/libnfc-nxp.conf b/configs/nfc/libnfc-nxp.conf
index bbf57cd..9811d6d 100644
--- a/configs/nfc/libnfc-nxp.conf
+++ b/configs/nfc/libnfc-nxp.conf
@@ -1,568 +1,681 @@
-#============================================================================
-# File Name: libnfc-nxp.conf
-#
-# Description:
-# NFC configuration management file
-#
-# Modification History:
-# Revision 1.0 2017/01/04 20:50:20 xiaohua.wang@xiaomi.com
-# Initial draft version for Xiaomi C1 P2 board
-#
-# Revision 1.1 2017/03/01 16:32:09 xiaohua.wang@xiaomi.com
-# Upgrade NFCC firmware version to 11.1.E
-#
-# Revision 1.2 2017/06/30 23:45:41 xiaohua.wang@xiaomi.com
-# Improved notification management of received NCI Mode Set
-#
-# Revision 1.3 firmware version to 11.1.13/14
-# Kevin.hu@nxp.com 2017/09/05 16:06:41
-#=============================================================================
-
-# FW_VERSION=ALMSL 11.1.13/14
-# DEVICE_MANUFACTURER=Xiaomi
-# DEVICE_MODEL=E1
-
-# This file is used by NFC NXP NCI HAL(external/libnfc-nci/halimpl/pn5x)
-# and NFC Service Java Native Interface Extensions (packages/apps/Nfc/nci/jni/extns/pn5x)
-
-###############################################################################
-# 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"
-
-###############################################################################
-# Extension for Mifare reader enable
-MIFARE_READER_ENABLE=0x01
-
-###############################################################################
-# Vzw Feature enable
-VZW_FEATURE_ENABLE=0x01
-
-###############################################################################
-# File name for Firmware
-NXP_FW_NAME="libpn553_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_32MHZ 5
-#define CLK_FREQ_38_4MHZ 6
-#define CLK_FREQ_52MHZ 7
-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
-
-###############################################################################
-# NXP proprietary settings
-NXP_ACT_PROP_EXTN={2F, 02, 00}
-
-###############################################################################
-
-###############################################################################
-# Standby enable settings
-NXP_CORE_STANDBY={2F, 00, 01, 01}
-
-###############################################################################
-# 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=0x01
-
-###############################################################################
-#config1:SLALM, 3.6V for both RM and CM
-NXP_EXT_TVDD_CFG_1={20, 02, 0F, 01, A0, 0E, 0B, 11, 01, 01, 31, 00, 00, 00, 10, 00, 10, 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, BA, 1E, 15, 00, D0, 0C}
-
-#config3: use DCDC in CE, use Tx_Pwr_Req, SLALM, monitoring 5V from DCDC,
-# DCDCWaitTime=4.2ms
-NXP_EXT_TVDD_CFG_3={20, 02, 0B, 02, A0, 66, 01, 01, A0, 0E, 03, 52, 40, 0A}
-
-NXP_RF_CONF_BLK_1={
- 20, 02, E7, 1B,
- A0, 0D, 06, 06, 37, 08, 76, 00, 00,
- A0, 0D, 03, 24, 03, 7E,
- A0, 0D, 06, 02, 35, 00, 3E, 00, 00,
- A0, 0D, 06, 04, 35, 2D, 02, 70, 02,
- A0, 0D, 06, C2, 35, 00, 3E, 00, 03,
- A0, 0D, 06, 04, 42, F8, 40, FF, FF,
- A0, 0D, 04, 32, 42, F8, 40,
- A0, 0D, 04, 46, 42, 68, 40,
- A0, 0D, 04, 56, 42, 78, 40,
- A0, 0D, 04, 5C, 42, 80, 40,
- A0, 0D, 04, CA, 42, 68, 40,
- A0, 0D, 06, 06, 42, 00, 02, F8, F8,
- A0, 0D, 06, 32, 4A, 53, 07, 00, 1B,
- A0, 0D, 06, 46, 4A, 33, 07, 00, 07,
- A0, 0D, 06, 56, 4A, 43, 07, 00, 07,
- A0, 0D, 06, 5C, 4A, 11, 07, 01, 07,
- A0, 0D, 06, 34, 44, 66, 0A, 00, 00,
- A0, 0D, 06, 48, 44, 65, 0A, 00, 00,
- A0, 0D, 06, 58, 44, 55, 08, 00, 00,
- A0, 0D, 06, 5E, 44, 55, 08, 00, 00,
- A0, 0D, 06, CA, 44, 65, 0A, 00, 00,
- A0, 0D, 06, 06, 44, 04, 04, C4, 00,
- A0, 0D, 06, 34, 2D, DC, 20, 04, 00,
- A0, 0D, 06, 48, 2D, 15, 34, 1F, 01,
- A0, 0D, 06, 58, 2D, 0D, 48, 0C, 01,
- A0, 0D, 06, 5E, 2D, 0D, 5A, 0C, 01,
- A0, 0D, 06, CA, 2D, 15, 34, 1F, 01
-}
-
-# Enable DLMA
-NXP_RF_CONF_BLK_2={
- 20, 02, D6, 01, A0, 34, D2, 23, 04, 18, 47, 40, 00, 00, 40, 00, 49, 00, 40, 00, 6F, 00, 40, 00, B3, 00, 40, 00, 13, 01, 40, 00, A5, 01, 40, 00, 5E, 02, 48, 00, 00, 00, 08, 02, 00, 00, 08, 02, 00, 00, 08, 02, 00, 00, 08, 02, 00, 00, 08, 02, 00, 00, 08, 02, 00, 00, 48, 01, 00, 00, 08, 03, 00, 00, 08, 01, 00, 00, C8, 02, 00, 00, C8, 00, 00, 00, 88, 02, 00, 00, 48, 02, 00, 00, B8, 00, 00, 00, 68, 00, 00, 00, 18, 00, 00, 00, 08, 02, 00, 00, 00, 00, 00, 00, 00, 00, 47, 00, 00, 40, 00, 49, 00, 40, 00, 6F, 00, 40, 00, B3, 00, 40, 00, 13, 01, 40, 00, A5, 01, 40, 00, 5E, 02, 48, 00, 00, 00, 08, 02, 00, 00, 08, 02, 00, 00, 08, 02, 00, 00, 08, 02, 00, 00, 08, 02, 00, 00, 08, 02, 00, 00, 48, 01, 00, 00, 08, 03, 00, 00, 08, 01, 00, 00, C8, 02, 00, 00, C8, 00, 00, 00, 88, 02, 00, 00, 48, 02, 00, 00, B8, 00, 00, 00, 68, 00, 00, 00, 18, 00, 00, 00, 08, 02, 00, 00, 00, 00
-}
-
-# Disable DPC
-NXP_RF_CONF_BLK_3={
- 20, 02, 5B, 01, A0, 0B, 57, 11, 11, 90, 78, 0F, 4E, 00, 3D, 95, 00, 00, 3D, 9F, 00, 00, 50, 9F, 00, 00, 59, 9F, 00, 00, 5A, 9F, 00, 00, 64, 9F, 00, 00, 65, 9F, 00, 00, 6E, 9F, 00, 00, 72, 9F, 00, 00, 79, 9F, 00, 00, 7B, 9F, 00, 00, 84, 9F, 00, 00, 86, 9F, 00, 00, 8F, 9F, 00, 00, 91, 9F, 00, 00, 9A, 9F, 00, 00, A1, 9F, 00, 00, A7, 9F, 00, 00, B0, 1F, 00, 00, B9, 1F, 00, 00
-}
-
-# CE detector/phase
-NXP_RF_CONF_BLK_4={
- 20, 02, 21, 04,
- A0, 38, 04, 14, 0B, 0B, 00,
- A0, 3A, 08, 1E, 00, 1E, 00, 1E, 00, 1E, 00,
- A0, 0D, 06, 06, 16, 0E, 00, 1F, 00,
- A0, B1, 02, BB, 08
-}
-###############################################################################
-# Set configuration optimization decision setting
-# Enable = 0x01
-# Disable = 0x00
-NXP_SET_CONFIG_ALWAYS=0x01
-
-###############################################################################
-# Set configuration optimization decision setting
-# Enable = 0x01
-# Disable = 0x00
-NXP_RF_UPDATE_REQ=0x01
-
-###############################################################################
-# Core configuration extensions
-# A009 - Time-out before standby
-# A0EC - Disable/Enable SWP1 interface
-# A0ED - Disable/Enable SWP2 interface
-# A05E - Send RID automatically in Jewel Reader mode
-# A012 - NFCEE interface 2 configuration
-# A040 - Low Power Card Detector Enable
-# A041 - Low Power Card Detector Threshold
-# A042 - Low Power Card Detector Sampling
-# A043 - Low Power Card Detector Hybrid
-# A0D5 - SWP/DWP desired baudrate
-# A0D8 - Configure the number of Sliding Windows used on DWP
-# A0DD - Retry on SWP2 interface
-# A0F2 - SVDD_PWR_REQ enable
-# A09F - Add ON/OFF guard time for SVDD power management(Step value ~1mSec)
-# A096 - Notify all AIDs
-# A037 - SE DWP system configuration
-NXP_CORE_CONF_EXTN={20, 02, 6B, 14,
- A0, 09, 02, 90, 01,
- A0, EC, 01, 01,
- A0, ED, 01, 03,
- A0, 5E, 01, 01,
- A0, 12, 01, 02,
- A0, 40, 01, 01,
- A0, 41, 01, 05,
- A0, 43, 01, 04,
- A0, 46, 02, BA, 27,
- A0, 47, 02, BA, 27,
- A0, 81, 01, 01,
- A0, D5, 01, 0A,
- A0, D8, 01, 02,
- A0, DD, 01, 2D,
- A0, F2, 01, 01,
- A0, 9F, 02, 08, 08,
- A0, 96, 01, 01,
- A0, 37, 01, 35,
- A0, 3F, 01, 01,
- A0, 29, 17, 19, 07, 40, 1C, 00, 02, 40, 1C, 00, 02, 00, 41, F4, F6, 00, 41, F4, F6, 38, 70, 00, 00, 00
- }
-
-###############################################################################
-# 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, 01}
-# NXP_CORE_RF_FIELD={ 2F, 32, 01, 01}
-###############################################################################
-# To enable i2c fragmentation set i2c fragmentation enable 0x01 to disable set
-# to 0x00
-NXP_I2C_FRAGMENTATION_ENABLED=0x00
-
-###############################################################################
-# Core configuration settings
-NXP_CORE_CONF={ 20, 02, 2E, 0E,
- 28, 01, 00,
- 21, 01, 00,
- 30, 01, 08,
- 31, 01, 03,
- 32, 01, 60,
- 38, 01, 01,
- 33, 04, 01, 02, 03, 04,
- 54, 01, 06,
- 50, 01, 02,
- 5B, 01, 00,
- 80, 01, 01,
- 81, 01, 01,
- 82, 01, 0E,
- 18, 01, 01
- }
-
-###############################################################################
-# Mifare Classic Key settings
-# NXP_CORE_MFCKEY_SETTING={20, 02, 25,04, A0, 51, 06, A0, A1, A2, A3, A4, A5,
-# A0, 52, 06, D3, F7, D3, F7, D3, F7,
-# A0, 53, 06, FF, FF, FF, FF, FF, FF,
-# A0, 54, 06, 00, 00, 00, 00, 00, 00}
-
-###############################################################################
-#Enable SWP full power mode when phone is power off
-NXP_SWP_FULL_PWR_ON=0x00
-
-###############################################################################
-#### Select the CHIP ####
-#PN547C2 0x01
-#PN65T 0x02
-#PN548AD 0x03
-#PN66T 0x04
-#PN551 0x05
-#PN67T 0x06
-#PN553 0x07
-#PN80T 0x08
-NXP_NFC_CHIP=0x07
-
-###############################################################################
-# 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 to get NFCEE Discover notification
-NXP_DEFAULT_NFCEE_DISC_TIMEOUT=20
-
-###############################################################################
-NXP_DEFAULT_NFCEE_TIMEOUT=0x06
-
-###############################################################################
-# Timeout in secs
-NXP_SWP_RD_START_TIMEOUT=0x0A
-
-###############################################################################
-# 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 0x04
-DEFAULT_AID_ROUTE=0x02
-
-###############################################################################
-# Set the Mifare Desfire route Location :
-# Configure the default NfcA/IsoDep techology and protocol route. Can be
-# either a secure element (e.g. 0xF4) or the host (0x00)
-# host 0x00
-# eSE 0x01
-# UICC 0x02
-# UICC2 0x04
-DEFAULT_ISODEP_ROUTE=0x02
-
-###############################################################################
-# Configure the single default SE to use. The default is to use the first
-# SE that is detected by the stack. This value might be used when the phone
-# supports multiple SE (e.g. 0xC0 and 0x80) but you want to force it to use
-# one of them (e.g. 0xC0).
-# host 0x00
-# eSE 0x01
-# UICC 0x02
-DEFAULT_OFFHOST_ROUTE=0x02
-
-###############################################################################
-# Configure the single default SE to use. The default is to use the first
-# SE that is detected by the stack. This value might be used when the phone
-# supports multiple SE (e.g. 0xF3 and 0xF4) but you want to force it to use
-# one of them (e.g. 0xF4).
-# host 0x00
-# eSE 0x01
-# UICC 0x02
-# UICC2 0x04
-DEFAULT_TECH_ABF_ROUTE=0x02
-
-###############################################################################
-#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
-DEFAULT_SYS_CODE_ROUTE=0x02
-
-###############################################################################
-#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
-# bit pos 4 = Screen Lock
-DEFAULT_AID_PWR_STATE=0x1B
-
-###############################################################################
-#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
-# bit pos 4 = Screen Lock
-DEFAULT_ISODEP_PWR_STATE=0x1B
-
-###############################################################################
-#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
-# bit pos 4 = Screen Lock
-DEFAULT_OFFHOST_PWR_STATE=0x1B
-
-###############################################################################
-#Set Tech A,B,F 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
-# bit pos 4 = Screen Lock
-DEFAULT_TECH_ABF_PWR_STATE=0x1B
-
-###############################################################################
-#Set the SYS_CODE 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
-# bit pos 4 = Screen Lock
-DEFAULT_SYS_CODE_PWR_STATE=0x00
-
-###############################################################################
-# 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 UICC (where F3="UICC0" and F4="UICC1")
-OFF_HOST_ESE_PIPE_ID=0x19
-OFF_HOST_SIM_PIPE_ID=0x0A
-
-###############################################################################
-# Bail out mode
-# If set to 1, NFCC is using bail out mode for either Type A or Type B poll.
-NFA_POLL_BAIL_OUT_MODE=0x00
-
-###############################################################################
-# AID Matching platform options
-# AID_MATCHING_L 0x01
-# AID_MATCHING_K 0x02
-AID_MATCHING_PLATFORM=0x01
-
-###############################################################################
-#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
-
-###############################################################################
-# Loader service version
-# NFC service checks for LS version 2.0 or 2.1
-# LS2.0 0x20
-# LS2.1 0x21
-# LS2.2 0x22
-# AT NFC service intialization
-NXP_LOADER_SERVICE_VERSION=0x22
-
-###############################################################################
-#Timeout value in milliseconds for NFCC standby mode.The range is between 5000
-#msec to 20000 msec and zero is to disable.
-NXP_NFCC_STANDBY_TIMEOUT=20000
-
-###############################################################################
-#Dynamic RSSI feature enable
-# Disable 0x00
-# Enable 0x01
-NXP_AGC_DEBUG_ENABLE=0x00
-
-###############################################################################
-#Virtual Mode ESE and Wired Mode ongoing delay Wired Mode
-# For Technology routing to ESE Technology Mask = 4
-# For ISO-DEP Protocol routing to ESE Mask = 2
-# It can also take TECH|PROTO = 6
-# To ignore the delay set mask to = 0
-NXP_ESE_WIRED_PRT_MASK=0x00
-
-###############################################################################
-#Virtual Mode UICC and Wired Mode ongoing delay Wired Mode
-#For Technology routing to UICC Technology Mask = 4
-#For ISO-DEP Protocol routing to UICC set Mask = 2
-#For Select AID Routing to UICC set Mask = 1
-#It can also take values TECH|PROTO|SELECT_AID = 7 , 6 , 5 ,3 .To ignore delay
-#set mask = 0
-NXP_UICC_WIRED_PRT_MASK=0x00
-
-###############################################################################
-#RF field true delay Wired Mode
-# delay wired mode = 1
-# allow wired mode = 0
-NXP_WIRED_MODE_RF_FIELD_ENABLE=0x00
-
-###############################################################################
-# UICC mode supported
-# Disable 0x00
-# Enable 0x01
-NXP_DUAL_UICC_ENABLE=0x00
-###############################################################################
-#Config to allow adding aids
-#NFC on/off is required after this config
-#1 = enabling adding aid to NFCC routing table.
-#0 = disabling adding aid to NFCC routing table.
-NXP_ENABLE_ADD_AID=0x01
-
-###############################################################################
-# JCOP-3.3 continuous process timeout in msec and value should be in Hexadecimal
-# JCOP CP TIMEOUT
-NXP_CP_TIMEOUT={00, 77}
-
-###############################################################################
-# Enable/Disable checking default proto SE Id
-# Disable 0x00
-# Enable 0x01
-NXP_CHECK_DEFAULT_PROTO_SE_ID=0x01
-
-###############################################################################
-#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
-
-###############################################################################
-#Enable NXP NCI runtime parser library
-#Enable 0x01
-#Disable 0x00
-NXP_NCI_PARSER_LIBRARY=0x00
-
-###############################################################################
-#This config will enable different level of Rf transaction debugs based on the
-#following values provided. Decoded information will be printed in adb logcat
-#Debug Mode Levels
-#Disable Debug 0x00
-#L1 Debug 0x01
-#L2 Debug 0x02
-#L1 & L2 Debug 0x03
-#L1 & L2 & RSSI 0x04
-#L1 & L2 & Felica 0x05
-#NXP_CORE_PROP_SYSTEM_DEBUG=0x00
-
-###############################################################################
-# Enable/Disable Block Route feature.
-# Block Route will restrict routing to first matched rule
-# Block Route enable 0x01
-# Block Route disable 0x00
-AID_BLOCK_ROUTE=0x01
-
-###############################################################################
-# Enable or Disable RF_STATUS_UPDATE to EseHal module
-# Disable 0x00
-# Enable 0x01
-RF_STATUS_UPDATE_ENABLE=0x00
-
-###############################################################################
-# Timeout value in milliseconds to send response for Felica command received
-NXP_HCEF_CMD_RSP_TIMEOUT_VALUE=5000
-###############################################################################
-# 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}
-
-###############################################################################
-#White list of Hosts
-#This values will be the Hosts(NFCEEs) in the HCI Network.
-DEVICE_HOST_WHITE_LIST={02}
-
-###############################################################################
-#OffHost UICC route location for MultiSE
-#UICC1 = 02
-#UICC2 = 03
-OFFHOST_ROUTE_UICC={02}
-
-###############################################################################
-# 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
-PRESENCE_CHECK_ALGORITHM=2
-
-###############################################################################
-# Extended APDU length for ISO_DEP
-ISO_DEP_MAX_TRANSCEIVE=0xFEFF
-
-###############################################################################
-# Enable/Disable mifare desfire CE prio feature
-# Disable 0x00
-# Enable 0x01
-NXP_MIFARE_DESFIRE_DISABLE=0x00
-
+#============================================================================
+# File Name: libnfc-nxp.conf
+#
+# Description:
+# NFC configuration management file
+#
+# Modification History:
+# Revision 1.0 2017/01/04 20:50:20 xiaohua.wang@xiaomi.com
+# Initial draft version for Xiaomi C1 P2 board
+#
+# Revision 1.1 2017/03/01 16:32:09 xiaohua.wang@xiaomi.com
+# Upgrade NFCC firmware version to 11.1.E
+#
+# Revision 1.2 2017/06/30 23:45:41 xiaohua.wang@xiaomi.com
+# Improved notification management of received NCI Mode Set
+#
+# Revision 1.3 firmware version to 11.1.13/14
+# Kevin.hu@nxp.com 2017/09/05 16:06:41
+#=============================================================================
+
+# FW_VERSION=ALMSL 11.1.13/14
+# DEVICE_MANUFACTURER=Xiaomi
+# DEVICE_MODEL=E1
+
+# This file is used by NFC NXP NCI HAL(external/libnfc-nci/halimpl/pn5x)
+# and NFC Service Java Native Interface Extensions (packages/apps/Nfc/nci/jni/extns/pn5x)
+
+###############################################################################
+# 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"
+
+###############################################################################
+# Extension for Mifare reader enable
+MIFARE_READER_ENABLE=0x01
+
+###############################################################################
+# Vzw Feature enable
+VZW_FEATURE_ENABLE=0x01
+
+###############################################################################
+# File name for Firmware
+NXP_FW_NAME="libpn557_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_32MHZ 5
+#define CLK_FREQ_38_4MHZ 6
+#define CLK_FREQ_52MHZ 7
+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
+
+###############################################################################
+# NXP proprietary settings
+NXP_ACT_PROP_EXTN={2F, 02, 00}
+
+###############################################################################
+
+###############################################################################
+# Standby enable settings
+NXP_CORE_STANDBY={2F, 00, 01, 01}
+
+###############################################################################
+# 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=0x01
+
+###############################################################################
+#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, 21, 00, 10, 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, BA, 1E, 15, 00, D0, 0C}
+
+#config3: use DCDC in CE, use Tx_Pwr_Req, SLALM, monitoring 5V from DCDC,
+# DCDCWaitTime=4.2ms
+NXP_EXT_TVDD_CFG_3={20, 02, 0B, 02, A0, 66, 01, 01, A0, 0E, 03, 52, 40, 0A}
+
+###############################################################################
+# Set configuration optimization decision setting
+# Enable = 0x01
+# Disable = 0x00
+NXP_SET_CONFIG_ALWAYS=0x01
+
+###############################################################################
+# Set configuration optimization decision setting
+# Enable = 0x01
+# Disable = 0x00
+NXP_RF_UPDATE_REQ=0x01
+
+###############################################################################
+
+
+###############################################################################
+# 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, 01}
+# NXP_CORE_RF_FIELD={ 2F, 32, 01, 01}
+###############################################################################
+# To enable i2c fragmentation set i2c fragmentation enable 0x01 to disable set
+# to 0x00
+NXP_I2C_FRAGMENTATION_ENABLED=0x00
+
+###############################################################################
+# Core configuration settings
+
+###############################################################################
+# Mifare Classic Key settings
+# NXP_CORE_MFCKEY_SETTING={20, 02, 25,04, A0, 51, 06, A0, A1, A2, A3, A4, A5,
+# A0, 52, 06, D3, F7, D3, F7, D3, F7,
+# A0, 53, 06, FF, FF, FF, FF, FF, FF,
+# A0, 54, 06, 00, 00, 00, 00, 00, 00}
+
+###############################################################################
+#Enable SWP full power mode when phone is power off
+NXP_SWP_FULL_PWR_ON=0x00
+
+###############################################################################
+#### Select the CHIP ####
+#PN547C2 0x01
+#PN65T 0x02
+#PN548AD 0x03
+#PN66T 0x04
+#PN551 0x05
+#PN67T 0x06
+#PN553 0x07
+#PN80T 0x08
+#PN557 0x09
+#PN81T 0x0A
+NXP_NFC_CHIP=0x09
+
+###############################################################################
+# 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 to get NFCEE Discover notification
+NXP_DEFAULT_NFCEE_DISC_TIMEOUT=20
+
+###############################################################################
+NXP_DEFAULT_NFCEE_TIMEOUT=0x06
+
+###############################################################################
+# Timeout in secs
+NXP_SWP_RD_START_TIMEOUT=0x0A
+
+###############################################################################
+# 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 0x04
+DEFAULT_AID_ROUTE=0x02
+
+###############################################################################
+# Set the Mifare Desfire route Location :
+# Configure the default NfcA/IsoDep techology and protocol route. Can be
+# either a secure element (e.g. 0xF4) or the host (0x00)
+# host 0x00
+# eSE 0x01
+# UICC 0x02
+# UICC2 0x04
+DEFAULT_ISODEP_ROUTE=0x00
+
+###############################################################################
+# Configure the single default SE to use. The default is to use the first
+# SE that is detected by the stack. This value might be used when the phone
+# supports multiple SE (e.g. 0xC0 and 0x80) but you want to force it to use
+# one of them (e.g. 0xC0).
+# host 0x00
+# eSE 0x01
+# UICC 0x02
+DEFAULT_OFFHOST_ROUTE=0x02
+
+###############################################################################
+# Configure the single default SE to use. The default is to use the first
+# SE that is detected by the stack. This value might be used when the phone
+# supports multiple SE (e.g. 0xF3 and 0xF4) but you want to force it to use
+# one of them (e.g. 0xF4).
+# host 0x00
+# eSE 0x01
+# UICC 0x02
+# UICC2 0x04
+DEFAULT_TECH_ABF_ROUTE=0x02
+
+###############################################################################
+#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
+DEFAULT_SYS_CODE_ROUTE=0x02
+
+###############################################################################
+#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
+# bit pos 4 = Screen 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
+# bit pos 4 = Screen Lock
+DEFAULT_ISODEP_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
+# bit pos 4 = Screen Lock
+DEFAULT_OFFHOST_PWR_STATE=0x3B
+
+###############################################################################
+#Set Tech A,B,F 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
+# bit pos 4 = Screen Lock
+DEFAULT_TECH_ABF_PWR_STATE=0x3B
+
+###############################################################################
+#Set the SYS_CODE 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
+# bit pos 4 = Screen Lock
+DEFAULT_SYS_CODE_PWR_STATE=0x00
+
+###############################################################################
+# 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 UICC (where F3="UICC0" and F4="UICC1")
+OFF_HOST_ESE_PIPE_ID=0x19
+OFF_HOST_SIM_PIPE_ID=0x0A
+
+###############################################################################
+# Bail out mode
+# If set to 1, NFCC is using bail out mode for either Type A or Type B poll.
+NFA_POLL_BAIL_OUT_MODE=0x00
+
+###############################################################################
+# AID Matching platform options
+# AID_MATCHING_L 0x01
+# AID_MATCHING_K 0x02
+AID_MATCHING_PLATFORM=0x01
+
+###############################################################################
+#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
+
+###############################################################################
+# Loader service version
+# NFC service checks for LS version 2.0 or 2.1
+# LS2.0 0x20
+# LS2.1 0x21
+# LS2.2 0x22
+# AT NFC service intialization
+NXP_LOADER_SERVICE_VERSION=0x22
+
+###############################################################################
+#Timeout value in milliseconds for NFCC standby mode.The range is between 5000
+#msec to 20000 msec and zero is to disable.
+NXP_NFCC_STANDBY_TIMEOUT=20000
+
+###############################################################################
+#Dynamic RSSI feature enable
+# Disable 0x00
+# Enable 0x01
+NXP_AGC_DEBUG_ENABLE=0x00
+
+###############################################################################
+#Config to allow adding aids
+#NFC on/off is required after this config
+#1 = enabling adding aid to NFCC routing table.
+#0 = disabling adding aid to NFCC routing table.
+NXP_ENABLE_ADD_AID=0x01
+
+###############################################################################
+# JCOP-3.3 continuous process timeout in msec and value should be in Hexadecimal
+# JCOP CP TIMEOUT
+NXP_CP_TIMEOUT={00, 77}
+
+###############################################################################
+# Enable/Disable checking default proto SE Id
+# Disable 0x00
+# Enable 0x01
+NXP_CHECK_DEFAULT_PROTO_SE_ID=0x01
+
+###############################################################################
+#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
+
+###############################################################################
+#Enable NXP NCI runtime parser library
+#Enable 0x01
+#Disable 0x00
+NXP_NCI_PARSER_LIBRARY=0x00
+
+###############################################################################
+#This config will enable different level of Rf transaction debugs based on the
+#following values provided. Decoded information will be printed in adb logcat
+#Debug Mode Levels
+#Disable Debug 0x00
+#L1 Debug 0x01
+#L2 Debug 0x02
+#L1 & L2 Debug 0x03
+#L1 & L2 & RSSI 0x04
+#L1 & L2 & Felica 0x05
+#NXP_CORE_PROP_SYSTEM_DEBUG=0x00
+
+###############################################################################
+# Enable/Disable Block Route feature.
+# Block Route will restrict routing to first matched rule
+# Block Route enable 0x01
+# Block Route disable 0x00
+AID_BLOCK_ROUTE=0x01
+
+###############################################################################
+# Enable or Disable RF_STATUS_UPDATE to EseHal module
+# Disable 0x00
+# Enable 0x01
+RF_STATUS_UPDATE_ENABLE=0x00
+
+###############################################################################
+# Timeout value in milliseconds to send response for Felica command received
+NXP_HCEF_CMD_RSP_TIMEOUT_VALUE=5000
+###############################################################################
+# 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}
+
+###############################################################################
+#White list of Hosts
+#This values will be the Hosts(NFCEEs) in the HCI Network.
+DEVICE_HOST_WHITE_LIST={02}
+
+###############################################################################
+#OffHost UICC route location for MultiSE
+#UICC1 = 02
+#UICC2 = 03
+OFFHOST_ROUTE_UICC={02}
+
+###############################################################################
+# 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
+PRESENCE_CHECK_ALGORITHM=2
+
+###############################################################################
+# Extended APDU length for ISO_DEP
+ISO_DEP_MAX_TRANSCEIVE=0xFEFF
+
+###############################################################################
+# Enable/Disable mifare desfire CE prio feature
+# Disable 0x00
+# Enable 0x01
+NXP_MIFARE_DESFIRE_DISABLE=0x00
+
+###############################################################################
+NXP_RF_CONF_BLK_1={
+ 20, 02, FA, 1F,
+ A0, 35, 01, 00,
+ A0, 0D, 03, 00, 43, A0,
+ A0, 0D, 04, 00, 42, FF, FF,
+ A0, 0D, 06, 04, 44, 00, 08, F6, 00,
+ A0, 0D, 06, 04, 45, 80, 40, 00, 00,
+ A0, 0D, 06, 04, 4A, 00, 00, 00, 00,
+ A0, 0D, 03, 04, 47, 00,
+ A0, 0D, 06, 04, 35, 00, 3E, 00, 00,
+ A0, 0D, 06, 04, 33, 0F, 40, 04, 00,
+ A0, 0D, 03, 04, 40, 00,
+ A0, 0D, 06, 06, 35, F4, 05, 70, 02,
+ A0, 0D, 06, 06, 42, F8, 40, FF, FF,
+ A0, 0D, 06, C2, 35, 00, 3E, 00, 03,
+ A0, 0D, 06, C2, 34, F7, 7F, 10, 08,
+ A0, 0D, 06, C2, 33, 03, 40, 04, 80,
+ A0, 0D, 06, 08, 2D, 0D, 25, 2C, 01,
+ A0, 0D, 06, 08, 44, 04, 04, C4, 00,
+ A0, 0D, 06, 08, 30, 70, 00, 18, 00,
+ A0, 0D, 06, 08, 45, 83, 60, 40, 05,
+ A0, 0D, 06, 08, 42, 00, 02, FA, FA,
+ A0, 0D, 06, 08, 16, AE, 00, 1F, 00,
+ A0, 0D, 03, 08, 15, 00,
+ A0, 0D, 06, 08, 37, 08, 76, 00, 00,
+ A0, 0D, 06, 09, 30, 00, 00, 00, 00,
+ A0, 0D, 06, 09, 37, 00, 00, 00, 00,
+ A0, 0D, 06, 09, 42, 01, 10, FF, FF,
+ A0, 0D, 03, 72, 03, 3D,
+ A0, 0D, 04, 72, 42, F8, 40,
+ A0, 0D, 03, 72, 16, 01,
+ A0, 0D, 03, 72, 15, 01,
+ A0, 0D, 06, 72, 4A, 53, 07, 00, 1B
+}
+
+NXP_RF_CONF_BLK_2={
+ 20, 02, FB, 22,
+ A0, 0D, 03, 72, 0D, 24,
+ A0, 0D, 03, 72, 14, 24,
+ A0, 0D, 06, 3C, 2D, DC, 40, 04, 00,
+ A0, 0D, 06, 3C, 44, 66, 0A, 00, 00,
+ A0, 0D, 06, 74, 4A, 56, 07, 01, 1B,
+ A0, 0D, 04, 74, 42, 68, 40,
+ A0, 0D, 03, 74, 16, 00,
+ A0, 0D, 03, 74, 15, 00,
+ A0, 0D, 03, 74, 0D, 11,
+ A0, 0D, 03, 74, 14, 11,
+ A0, 0D, 06, 3E, 2D, 05, 35, 1E, 01,
+ A0, 0D, 06, 3E, 44, 65, 09, 00, 00,
+ A0, 0D, 06, 76, 4A, 56, 07, 01, 1B,
+ A0, 0D, 04, 76, 42, 68, 40,
+ A0, 0D, 03, 76, 16, 00,
+ A0, 0D, 03, 76, 15, 00,
+ A0, 0D, 03, 76, 0D, 08,
+ A0, 0D, 03, 76, 14, 08,
+ A0, 0D, 06, 40, 2D, 05, 45, 1E, 01,
+ A0, 0D, 06, 40, 44, 65, 09, 00, 00,
+ A0, 0D, 04, 78, 42, F0, 40,
+ A0, 0D, 06, 78, 4A, 11, 07, 01, 1B,
+ A0, 0D, 03, 78, 16, 00,
+ A0, 0D, 03, 78, 15, 00,
+ A0, 0D, 03, 78, 0D, 04,
+ A0, 0D, 03, 78, 14, 04,
+ A0, 0D, 06, 4C, 44, 65, 0A, 00, 00,
+ A0, 0D, 06, 4C, 2D, 15, 34, 1F, 01,
+ A0, 0D, 06, 82, 4A, 33, 07, 00, 07,
+ A0, 0D, 04, 82, 42, 68, 40,
+ A0, 0D, 06, 82, 0F, 6C, 01, 04, 00,
+ A0, 0D, 03, 82, 16, 00,
+ A0, 0D, 03, 82, 15, 00,
+ A0, 0D, 06, 4E, 44, 65, 09, 00, 00
+}
+
+NXP_RF_CONF_BLK_3={
+ 20, 02, FB, 21,
+ A0, 0D, 06, 4E, 2D, 05, 35, 1E, 01,
+ A0, 0D, 06, 84, 4A, 13, 07, 01, 07,
+ A0, 0D, 04, 84, 42, 68, 40,
+ A0, 0D, 03, 84, 16, 00,
+ A0, 0D, 03, 84, 15, 00,
+ A0, 0D, 06, 50, 44, 65, 09, 00, 00,
+ A0, 0D, 06, 50, 2D, 05, 35, 1E, 01,
+ A0, 0D, 06, 86, 4A, 12, 07, 01, 07,
+ A0, 0D, 04, 86, 42, 68, 40,
+ A0, 0D, 03, 86, 16, 00,
+ A0, 0D, 03, 86, 15, 00,
+ A0, 0D, 06, 5E, 2D, 0D, 48, 0C, 01,
+ A0, 0D, 06, 5E, 44, 55, 08, 00, 00,
+ A0, 0D, 06, 60, 2D, 0D, 5A, 0C, 01,
+ A0, 0D, 06, 60, 44, 55, 08, 00, 00,
+ A0, 0D, 04, 94, 42, 78, 40,
+ A0, 0D, 06, 94, 4A, 43, 07, 00, 07,
+ A0, 0D, 03, 94, 16, 00,
+ A0, 0D, 03, 94, 15, 00,
+ A0, 0D, 04, 96, 42, 80, 40,
+ A0, 0D, 06, 96, 4A, 11, 07, 01, 07,
+ A0, 0D, 03, 96, 16, 00,
+ A0, 0D, 03, 96, 15, 00,
+ A0, 0D, 06, 1C, 44, 05, 04, C4, 00,
+ A0, 0D, 03, 24, 03, 7D,
+ A0, 0D, 06, 70, 16, 8E, 00, 1F, 00,
+ A0, 0D, 03, 28, 16, 00,
+ A0, 0D, 03, 2C, 16, 00,
+ A0, 0D, 06, 34, 44, 04, 04, C4, 00,
+ A0, 0D, 06, 36, 30, E0, 00, 30, 00,
+ A0, 0D, 03, 36, 45, 70,
+ A0, 0D, 03, 37, 45, 60,
+ A0, 0D, 06, 38, 30, 40, 00, 20, 00
+}
+
+NXP_RF_CONF_BLK_4={
+ 20, 02, FA, 1E,
+ A0, 0D, 06, 38, 44, 02, 04, C4, 00,
+ A0, 0D, 06, 3A, 30, 26, 00, 08, 00,
+ A0, 0D, 06, 3A, 44, 11, 00, C4, 00,
+ A0, 0D, 06, 44, 30, 70, 00, 18, 00,
+ A0, 0D, 06, 44, 44, 04, 04, C4, 00,
+ A0, 0D, 06, 46, 30, B0, 00, 45, 00,
+ A0, 0D, 06, 48, 30, B0, 00, 45, 00,
+ A0, 0D, 06, 4A, 30, 70, 00, 18, 00,
+ A0, 0D, 03, 56, 30, 00,
+ A0, 0D, 06, 0C, 45, C3, 82, 71, 05,
+ A0, 0D, 03, 10, 44, 60,
+ A0, 0D, 06, 10, 30, 70, 00, 18, 00,
+ A0, 0D, 03, 10, 48, 10,
+ A0, 0D, 06, 10, 45, 80, 40, 00, 00,
+ A0, 0D, 06, 10, 2D, 0D, 25, 2C, 01,
+ A0, 0D, 03, 10, 35, 0C,
+ A0, 0D, 06, 11, 30, 00, 00, 00, 00,
+ A0, 0D, 03, 11, 48, 00,
+ A0, 0D, 06, 11, 85, 00, 00, 00, 00,
+ A0, 0D, 06, 22, 44, 05, 04, C4, 00,
+ A0, 0D, 06, 62, 44, 04, 04, C4, 00,
+ A0, 0D, 03, 12, 16, 00,
+ A0, 0D, 06, 12, 37, 00, 00, 00, 00,
+ A0, 0D, 03, 12, 35, 0C,
+ A0, 0D, 06, CC, 42, F8, 40, FF, FF,
+ A0, 0D, 06, CC, 4A, 53, 07, 00, 1B,
+ A0, 0D, 06, CE, 42, 78, 40, FF, FF,
+ A0, 0D, 06, CE, 4A, 43, 07, 00, 07,
+ A0, 0D, 06, D0, 42, 80, 40, FF, FF,
+ A0, 0D, 06, D0, 4A, 11, 07, 01, 07
+}
+
+NXP_RF_CONF_BLK_5={
+ 20, 02, EB, 0C,
+ A0, 0D, 03, 98, 16, 01,
+ A0, 0D, 03, 98, 15, 01,
+ A0, 0D, 03, 9A, 16, 00,
+ A0, 0D, 03, 9A, 15, 00,
+ A0, 0D, 03, 9C, 16, 00,
+ A0, 0D, 03, 9C, 15, 00,
+ A0, 0D, 04, CA, 42, 68, 40,
+ A0, 0D, 06, CA, 44, 65, 0A, 00, 00,
+ A0, 0D, 06, CA, 2D, 15, 34, 1F, 01,
+ A0, AF, 0C, 83, E8, 80, A0, 00, 83, C0, 80, A0, 00, 77, 08,
+ A0, AA, 04, 03, 04, E8, 03,
+ A0, 34, 94, 23, 04, 18, 35, 00, 00, 4B, 00, 00, 71, 00, 00, 71, 00, 00, 96, 00, 00, BC, 00, 00, BC, 00, 00, E1, 00, 00, 07, 01, 00, 07, 01, 00, 2C, 01, 00, 2C, 01, 00, 52, 01, 00, 52, 01, 00, 77, 01, 00, 77, 01, 00, C2, 01, 00, C2, 01, 00, 0D, 02, 00, 0D, 02, 00, 58, 02, 00, 58, 02, 00, EE, 02, 00, EE, 02, 00, 18, BC, 00, 00, BC, 00, 00, BC, 00, 00, BC, 00, 00, E1, 00, 00, E1, 00, 00, 2C, 01, 00, 2C, 01, 00, 2C, 01, 00, 2C, 01, 00, 2C, 01, 00, DC, 05, 00, DC, 05, 00, DC, 05, 00, DC, 05, 00, DC, 05, 00, DC, 05, 00, DC, 05, 00, DC, 05, 00, DC, 05, 00, DC, 05, 00, DC, 05, 00, DC, 05, 00, DC, 05, 00
+}
+
+# DPC OFF
+NXP_RF_CONF_BLK_6={
+ 20, 02, FE, 02,
+ A0, 0B, 57, 11, 11, 90, 5A, 0F, 4E, 00, 47, 15, B7, AA, 47, 9F, A7, 99, 5C, 9F, 97, 99, 67, 9F, 97, 99, 69, 9F, 97, 00, 73, 9F, 07, 00, 75, 9F, 07, 00, 80, 9F, 07, 00, 84, 9F, 07, 00, 8D, 9F, 07, 00, 8F, 9F, 07, 00, 99, 9F, 04, 00, 9B, 9F, 04, 00, A6, 9F, 04, 00, A8, 9F, 04, 00, B2, 9F, 02, 00, BB, 9F, 00, 00, C1, 9F, 00, 00, CC, 1F, 00, 00, D6, 1F, 00, 00,
+ A0, A9, A0, 00, C1, 00, 0A, 01, 80, 41, 0A, 02, 81, 83, 0A, 03, C0, 42, 06, 04, 80, 46, 06, 05, C3, 01, 03, 06, C2, 05, 03, 07, C2, 4A, 03, 07, 81, 01, 01, 08, C3, 8B, 03, 08, C3, 05, 01, 09, C3, 92, 03, 09, C6, 84, 01, 0A, C4, CC, 03, 0A, C6, 89, 01, 0B, C5, D4, 03, 0B, C7, 92, 01, 0C, 44, 00, 03, 0C, C7, C6, 01, 0D, 42, 04, 03, 0D, C9, CE, 01, 0E, 42, 48, 03, 0E, 03, 00, 01, 0F, 43, 50, 03, 0F, 43, 04, 01, 10, 43, 91, 03, 10, 45, 0A, 01, 11, 44, 95, 03, 11, 46, 11, 01, 12, 46, 8E, 01, 13, 47, C5, 01, 14, 48, CC, 01, 15, 4B, D4, 01, 16, 4E, D7, 01, 17, 45, A2, 01, 18, 46, A6, 01, 19, 46, AE, 01, 1A, 47, B4, 01, 1B, 48, EA, 01, 1C, 49, F0, 01
+}
+
+
+###############################################################################
+# Core configuration extensions
+# It includes
+# Wired mode settings A0ED, A0EE
+# Tag Detector A040, A041, A043
+# Low Power mode A007
+# Clock settings A002, A003
+# PbF settings A008
+# Clock timeout settings A004
+# UICC SWP_INT1_EN_CFG - A0, EC
+# UICC2 SWP_INT2_EN_CFG - A0, ED,
+# eSE (SVDD) PWR REQ settings A0F2
+# How eSE connected to PN553 A012
+# UICC2 bit rate A0D1
+# SWP1A interface A0D4
+# DWP intf behavior config, SVDD Load activated by default if set to 0x31 - A037
+# For Symmetric baud rate UICC's set A086 to 77
+NXP_CORE_CONF_EXTN={20, 02, 6B, 12,
+ A0, EC, 01, 01,
+ A0, ED, 01, 00,
+ A0, 5E, 01, 01,
+ A0, 12, 01, 02,
+ A0, 40, 01, 01,
+ A0, 41, 01, 04,
+ A0, 46, 02, BA, 27,
+ A0, 47, 02, BA, 27,
+ A0, 42, 01, 0F,
+ A0, 43, 01, 03,
+ A0, DD, 01, 2D,
+ A0, D1, 01, 06,
+ A0, D4, 01, 01,
+ A0, 37, 01, 35,
+ A0, 38, 04, 04, 04, 04, 00,
+ A0, 86, 01, 77,
+ A0, 3A, 08, FA, 00, FA, 00, FA, 00, FA, 00,
+ A0, 29, 17, 1C, 07, 00, 1D, 00, 02, 00, 1D, 00, 02, 00, 40, F3, F3, 00, 40, F3, F3, 38, 70, 00, 00, 02
+ }
+
+###############################################################################
+# Core configuration settings
+# It includes
+# 18 - Poll Mode NFC-F: PF_BIT_RATE
+# 21 - Poll Mode ISO-DEP: PI_BIT_RATE
+# 28 - Poll Mode NFC-DEP: PN_NFC_DEP_SPEED
+# 30 - Lis. Mode NFC-A: LA_BIT_FRAME_SDD
+# 31 - Lis. Mode NFC-A: LA_PLATFORM_CONFIG
+# 33 - Lis. Mode NFC-A: LA_NFCID1
+# 50 - Lis. Mode NFC-F: LF_PROTOCOL_TYPE
+# 54 - Lis. Mode NFC-F: LF_CON_BITR_F
+# 5B - Lis. Mode ISO-DEP: LI_BIT_RATE
+# 60 - Lis. Mode NFC-DEP: LN_WT
+# 80 - Other Param.: RF_FIELD_INFO
+# 81 - Other Param.: RF_NFCEE_ACTION
+# 82 - Other Param.: NFCDEP_OP
+NXP_CORE_CONF={ 20, 02, 30, 10,
+ 28, 01, 00,
+ 21, 01, 00,
+ 30, 01, 08,
+ 31, 01, 03,
+ 32, 01, 20,
+ 38, 01, 01,
+ 33, 00,
+ 54, 01, 06,
+ 50, 01, 02,
+ 5B, 01, 00,
+ 80, 01, 01,
+ 81, 01, 01,
+ 82, 01, 0E,
+ 18, 01, 01,
+ 68, 01, 01,
+ 85, 01, 01
+ }
+###############################################################################
diff --git a/device.mk b/device.mk
index 52ec6d4..892f421 100644
--- a/device.mk
+++ b/device.mk
@@ -11,6 +11,16 @@ PRODUCT_SOONG_NAMESPACES += \
# Product launched with 11.0
PRODUCT_SHIPPING_API_LEVEL := 30
+# Enable updating of APEXes
+$(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk)
+
+# Enable project quotas and casefolding for emulated storage without sdcardfs
+$(call inherit-product, $(SRC_TARGET_DIR)/product/emulated_storage.mk)
+
+# AAPT
+PRODUCT_AAPT_CONFIG := normal
+PRODUCT_AAPT_PREF_CONFIG := xxhdpi
+
# AID/fs configs
PRODUCT_PACKAGES += \
fs_config_dirs \
@@ -51,9 +61,6 @@ PRODUCT_PACKAGES += \
vendor.qti.hardware.btconfigstore@1.0.vendor \
vendor.qti.hardware.btconfigstore@2.0.vendor
-PRODUCT_COPY_FILES += \
- $(LOCAL_PATH)/configs/component-overrides.xml:$(TARGET_COPY_OUT_VENDOR)/etc/sysconfig/component-overrides.xml
-
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
@@ -122,6 +129,9 @@ PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.software.vulkan.deqp.level-2020-03-01.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.vulkan.deqp.level.xml \
frameworks/native/data/etc/android.software.opengles.deqp.level-2020-03-01.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.software.opengles.deqp.level.xml
+PRODUCT_PACKAGES += \
+ libsdmcore-shim
+
# Device-specific settings
PRODUCT_PACKAGES += \
XiaomiParts
@@ -184,10 +194,6 @@ PRODUCT_COPY_FILES += \
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/sec_config:$(TARGET_COPY_OUT_VENDOR)/etc/sec_config
-# Keylayout
-PRODUCT_COPY_FILES += \
- $(call find-copy-subdir-files,*,$(LOCAL_PATH)/configs/keylayout/,$(TARGET_COPY_OUT_VENDOR)/usr/keylayout)
-
# Libgui
PRODUCT_PACKAGES += \
libgui_vendor
@@ -196,6 +202,10 @@ PRODUCT_PACKAGES += \
PRODUCT_PACKAGES += \
android.hardware.lights-service.sweet
+# Lineage Health
+PRODUCT_PACKAGES += \
+ vendor.lineage.health-service.default
+
# LiveDisplay
PRODUCT_PACKAGES += \
vendor.lineage.livedisplay@2.0-service-sdm
@@ -279,6 +289,9 @@ PRODUCT_PACKAGES += \
TelephonyResSweet \
WifiResSweet
+PRODUCT_PACKAGES += \
+ NotchBarKiller
+
# Perf
PRODUCT_PACKAGES += \
libqti-perfd-client
@@ -295,6 +308,11 @@ PRODUCT_SOONG_NAMESPACES += \
# Properties
include $(LOCAL_PATH)/properties.mk
+# Protobuf
+PRODUCT_PACKAGES += \
+ libprotobuf-cpp-full-3.9.1-vendorcompat \
+ libprotobuf-cpp-lite-3.9.1-vendorcompat
+
# qdcm
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/qdcm_calib_data_xiaomi_k6_38_0c_0a_fhd_dsc_video_dsi_panel.xml:$(TARGET_COPY_OUT_VENDOR)/etc/qdcm_calib_data_xiaomi_k6_38_0c_0a_fhd_dsc_video_dsi_panel.xml
@@ -309,6 +327,7 @@ PRODUCT_PACKAGES += \
init.qti.dcvs.sh \
init.qcom.rc \
init.qcom.usb.rc \
+ init.recovery.qcom.rc \
init.sweet.rc \
init.target.rc \
ueventd.sweet.rc
@@ -331,6 +350,9 @@ PRODUCT_PACKAGES += \
android.hardware.sensors@1.0-impl \
android.hardware.sensors@1.0-service
+PRODUCT_PACKAGES += \
+ android.frameworks.sensorservice@1.0.vendor
+
PRODUCT_COPY_FILES += \
frameworks/native/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.accelerometer.xml \
frameworks/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/android.hardware.sensor.compass.xml \
@@ -389,7 +411,7 @@ PRODUCT_PACKAGES += \
# WiFi
PRODUCT_PACKAGES += \
- android.hardware.wifi@1.0-service \
+ android.hardware.wifi-service \
hostapd \
libwifi-hal-qcom \
libwpa_client \
@@ -420,4 +442,7 @@ PRODUCT_BUILD_SUPER_PARTITION := false
PRODUCT_USE_DYNAMIC_PARTITIONS := true
# Inherit vendor
-$(call inherit-product, vendor/xiaomi/sweet/sweet-vendor.mk)
+$(call inherit-product, vendor/xiaomi/sweet_k6a/sweet_k6a-vendor.mk)
+
+# Inherit MIUI Camera
+$(call inherit-product-if-exists, vendor/xiaomi/sweet_k6a-miuicamera/products/miuicamera.mk)
diff --git a/display/Android.bp b/display/Android.bp
new file mode 100644
index 0000000..d753d13
--- /dev/null
+++ b/display/Android.bp
@@ -0,0 +1,20 @@
+cc_library_shared {
+ name: "libsdmcore-shim",
+ srcs: [
+ "display.cpp"
+ ],
+ include_dirs: [
+ "hardware/qcom-caf/sm8150/display/include",
+ "hardware/qcom-caf/sm8150/display/sdm/include",
+ "hardware/qcom-caf/sm8150/display/sdm/libs/core",
+ "hardware/qcom-caf/sm8150/display/sdm/libs/core/drm",
+ "hardware/qcom-caf/sm8150/display/libdebug",
+ "hardware/qcom-caf/sm8150/display/libdrmutils",
+ "vendor/qcom/opensource/commonsys-intf/display/include",
+ ],
+ shared_libs: [
+ "liblog",
+ ],
+ header_libs: ["generated_kernel_headers", "libdrm_headers"],
+ vendor: true,
+}
diff --git a/display/display.cpp b/display/display.cpp
new file mode 100644
index 0000000..7d3aba1
--- /dev/null
+++ b/display/display.cpp
@@ -0,0 +1,50 @@
+#define LOG_TAG "libsdmcore-shim"
+
+#define __CLASS__ "HWDeviceDRM"
+
+#define LIBSDMCORE "/vendor/lib64/libsdmcore.so"
+#define POPULATE_ATTRS_SYMBOL "_ZN3sdm11HWDeviceDRM25PopulateDisplayAttributesEj"
+
+#include "hw_device_drm.h"
+
+#include
+
+#include
+
+namespace sdm {
+ DisplayError HWDeviceDRM::PopulateDisplayAttributes(uint32_t index) {
+ ALOGI("Running custom PopulateDisplayAttributes");
+
+ // Open libsdmcore
+ void *handle = dlopen(LIBSDMCORE, RTLD_LOCAL | RTLD_LAZY);
+
+ if (!handle) {
+ ALOGE("Failed to open the library %s", LIBSDMCORE);
+ return kErrorNotSupported;
+ }
+
+ // Load the default PopulateDisplayAttributes function
+ typedef void (*populateAttrsOrig_t)(HWDeviceDRM*, uint32_t index);
+ populateAttrsOrig_t populateAttrsOrig = (populateAttrsOrig_t) dlsym(handle, POPULATE_ATTRS_SYMBOL);
+
+ if (dlerror()) {
+ ALOGE("Failed to load the symbol %s", POPULATE_ATTRS_SYMBOL);
+ return kErrorNotSupported;
+ }
+
+ // Call the original PopulateDisplayAttributes function
+ populateAttrsOrig(this, index);
+
+ // Set the correct x/y dpi
+ display_attributes_[index].x_dpi /= 10;
+ display_attributes_[index].y_dpi /= 10;
+
+ ALOGI("Successfully set the panel DPI");
+
+ // Close libsdmcore
+ dlclose(handle);
+
+ return kErrorNone;
+ }
+}
+
diff --git a/extract-files.sh b/extract-files.sh
index 783208e..f3a5446 100755
--- a/extract-files.sh
+++ b/extract-files.sh
@@ -8,7 +8,7 @@
set -e
-export DEVICE=sweet
+export DEVICE=sweet_k6a
export VENDOR=xiaomi
# Load extract utilities and do some sanity checks.
@@ -56,28 +56,17 @@ fi
function blob_fixup() {
case "${1}" in
vendor/bin/mi_thermald)
- sed -i "s|ug_cpu|ug_uwu|g" "${2}"
+ sed -i 's/%d\/on/%d\/../g' "${2}"
;;
vendor/lib64/vendor.xiaomi.hardware.citsensorservice@1.0.so | vendor/lib64/vendor.xiaomi.hardware.citsensorservice@1.0_vendor.so)
"${PATCHELF}" --remove-needed "android.hidl.base@1.0.so" "${2}"
;;
- vendor/lib64/libsdmcore.so)
- MODIFIED_LIBSDMCORE_SHASUM="f81a23cac3cc90fc3c89d3e993b9e0b15e1346f8"
- echo "Patching libsdmcore"
- xxd -p "${2}" > /tmp/libsdmcore.hex
-
- sed -i s:2b18621e:1f2003d5:g /tmp/libsdmcore.hex
- sed -i s:00540a18621e4:00541f2003d54:g /tmp/libsdmcore.hex
-
- xxd -r -p /tmp/libsdmcore.hex "${2}"
- rm /tmp/libsdmcore.hex
-
- echo "Done, checking the sha1sum"
- echo "${MODIFIED_LIBSDMCORE_SHASUM} ${2}" | sha1sum -c
- ;;
vendor/lib64/camera/components/com.qti.node.watermark.so)
"${PATCHELF}" --add-needed "libpiex_shim.so" "${2}"
;;
+ vendor/lib64/hw/hwcomposer.sm6150.so)
+ "${PATCHELF}" --add-needed "libsdmcore-shim.so" "${2}"
+ ;;
esac
}
diff --git a/interfaces/Android.bp b/interfaces/Android.bp
index a92a915..e07d11d 100644
--- a/interfaces/Android.bp
+++ b/interfaces/Android.bp
@@ -1,4 +1,4 @@
hidl_package_root {
name: "vendor.xiaomi",
- path: "device/xiaomi/sweet/interfaces",
+ path: "device/xiaomi/sweet_k6a/interfaces",
}
diff --git a/interfaces/hardware/displayfeature/1.0/Android.bp b/interfaces/hardware/displayfeature/1.0/Android.bp
index efe5500..4ccd712 100644
--- a/interfaces/hardware/displayfeature/1.0/Android.bp
+++ b/interfaces/hardware/displayfeature/1.0/Android.bp
@@ -3,12 +3,14 @@
hidl_interface {
name: "vendor.xiaomi.hardware.displayfeature@1.0",
root: "vendor.xiaomi",
+ system_ext_specific: true,
srcs: [
+ "types.hal",
"IDisplayFeature.hal",
+ "IDisplayFeatureCallback.hal",
],
interfaces: [
"android.hidl.base@1.0",
],
gen_java: true,
}
-
diff --git a/interfaces/hardware/displayfeature/1.0/IDisplayFeature.hal b/interfaces/hardware/displayfeature/1.0/IDisplayFeature.hal
index 70ec837..dbf77d9 100644
--- a/interfaces/hardware/displayfeature/1.0/IDisplayFeature.hal
+++ b/interfaces/hardware/displayfeature/1.0/IDisplayFeature.hal
@@ -1,6 +1,30 @@
+/*
+ * Copyright (C) 2019-2022 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.
+ */
+
package vendor.xiaomi.hardware.displayfeature@1.0;
+import @1.0::IDisplayFeatureCallback;
+
interface IDisplayFeature {
- setFeature(uint32_t displayId, uint32_t mode, uint32_t value, uint32_t cookie);
+ notifyBrightness(uint32_t brightness);
+ registerCallback(uint32_t displayId, IDisplayFeatureCallback callback) generates (Status status);
+ sendMessage(uint32_t index, uint32_t value, string cmd);
+ sendPanelCommand(string cmd) generates (Status status);
+ sendPostProcCommand(uint32_t cmd, uint32_t value) generates (Status status);
+ sendRefreshCommand() generates (Status status);
+ setFeature(uint32_t displayId, uint32_t caseId, uint32_t modeId, uint32_t cookie) generates (Status status);
+ setFunction(uint32_t displayId, uint32_t caseId, uint32_t modeId, uint32_t cookie) generates (Status status);
};
-
diff --git a/bluetooth/include/bdroid_buildcfg.h b/interfaces/hardware/displayfeature/1.0/IDisplayFeatureCallback.hal
similarity index 52%
rename from bluetooth/include/bdroid_buildcfg.h
rename to interfaces/hardware/displayfeature/1.0/IDisplayFeatureCallback.hal
index fb2ac69..516117b 100644
--- a/bluetooth/include/bdroid_buildcfg.h
+++ b/interfaces/hardware/displayfeature/1.0/IDisplayFeatureCallback.hal
@@ -1,8 +1,5 @@
/*
- * Copyright (c) 2013, The Linux Foundation. All rights reserved.
- * Not a Contribution.
- *
- * Copyright (C) 2012 The Android Open Source Project
+ * Copyright (C) 2022 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.
@@ -17,16 +14,8 @@
* limitations under the License.
*/
-#ifndef _BDROID_BUILDCFG_H
-#define _BDROID_BUILDCFG_H
-//#define BTM_DEF_LOCAL_NAME "QCOM-BTD"
-// Disables read remote device feature
-#define MAX_ACL_CONNECTIONS 16
-#define MAX_L2CAP_CHANNELS 32
-#define BLE_VND_INCLUDED TRUE
-#define GATT_MAX_PHY_CHANNEL 10
-// skips conn update at conn completion
-#define BT_CLEAN_TURN_ON_DISABLED 1
+package vendor.xiaomi.hardware.displayfeature@1.0;
-#define AVDT_NUM_SEPS 35
-#endif
+interface IDisplayFeatureCallback {
+ oneway displayfeatureInfoChanged(uint32_t caseId, uint32_t value, float red, float green, float blue);
+};
diff --git a/interfaces/hardware/displayfeature/1.0/types.hal b/interfaces/hardware/displayfeature/1.0/types.hal
new file mode 100644
index 0000000..db42ff5
--- /dev/null
+++ b/interfaces/hardware/displayfeature/1.0/types.hal
@@ -0,0 +1,21 @@
+/*
+ * Copyright (C) 2022 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.
+ */
+
+package vendor.xiaomi.hardware.displayfeature@1.0;
+
+// Based on observations using Ghidra, all methods that return Status
+// only set the result of __android_log_print and cast it to Status.
+enum Status : int32_t {};
diff --git a/interfaces/hardware/touchfeature/1.0/Android.bp b/interfaces/hardware/touchfeature/1.0/Android.bp
index f9cbee4..f0db33e 100644
--- a/interfaces/hardware/touchfeature/1.0/Android.bp
+++ b/interfaces/hardware/touchfeature/1.0/Android.bp
@@ -3,6 +3,7 @@
hidl_interface {
name: "vendor.xiaomi.hardware.touchfeature@1.0",
root: "vendor.xiaomi",
+ system_ext_specific: true,
srcs: [
"ITouchFeature.hal",
],
@@ -11,4 +12,3 @@ hidl_interface {
],
gen_java: true,
}
-
diff --git a/interfaces/hardware/touchfeature/1.0/ITouchFeature.hal b/interfaces/hardware/touchfeature/1.0/ITouchFeature.hal
index b7afc9f..99facd4 100644
--- a/interfaces/hardware/touchfeature/1.0/ITouchFeature.hal
+++ b/interfaces/hardware/touchfeature/1.0/ITouchFeature.hal
@@ -1,12 +1,18 @@
+/*
+ * Copyright (C) 2022 The LineageOS Project
+ *
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
package vendor.xiaomi.hardware.touchfeature@1.0;
interface ITouchFeature {
- setTouchMode(int32_t mode, int32_t value) generates (bool result);
- getTouchModeCurValue(int32_t mode) generates (int32_t result);
- getTouchModeMaxValue(int32_t mode) generates (int32_t result);
- getTouchModeMinValue(int32_t mode) generates (int32_t result);
- getTouchModeDefValue(int32_t mode) generates (int32_t result);
- resetTouchMode(int32_t mode) generates (bool result);
- getModeValues(int32_t mode) generates (vec result);
- setEdgeMode(int32_t mode, vec value, int32_t length) generates (bool result);
+ setModeValue(int32_t touchId, int32_t ControlMode, int32_t ModeValue) generates (int32_t result);
+ getModeCurValue(int32_t touchId, int32_t ControlMode) generates (int32_t result);
+ getModeMaxValue(int32_t touchId, int32_t ControlMode) generates (int32_t result);
+ getModeMinValue(int32_t touchId, int32_t ControlMode) generates (int32_t result);
+ getModeDefaultValue(int32_t touchId, int32_t ControlMode) generates (int32_t result);
+ modeReset(int32_t touchId, int32_t ControlMode) generates (int32_t result);
+ getModeValue(int32_t touchId, int32_t mode) generates (vec result);
+ setModeLongValue(int32_t touchId, int32_t ControlMode, uint32_t ValueLen, vec ValueBuf) generates (int32_t result);
};
diff --git a/interfaces/update-makefiles.sh b/interfaces/updates-makefiles.sh
similarity index 66%
rename from interfaces/update-makefiles.sh
rename to interfaces/updates-makefiles.sh
index 997d09a..94277a1 100755
--- a/interfaces/update-makefiles.sh
+++ b/interfaces/updates-makefiles.sh
@@ -3,4 +3,4 @@
source $ANDROID_BUILD_TOP/system/tools/hidl/update-makefiles-helper.sh
do_makefiles_update \
- "vendor.xiaomi:device/xiaomi/sweet/interfaces"
+ "vendor.xiaomi:device/xiaomi/sweet_k6a/interfaces"
diff --git a/libinit/include/libinit_variant.h b/libinit/include/libinit_variant.h
index 537dd52..5731fc5 100644
--- a/libinit/include/libinit_variant.h
+++ b/libinit/include/libinit_variant.h
@@ -20,6 +20,7 @@ typedef struct variant_info {
std::string model;
std::string build_fingerprint;
std::string build_description;
+ std::string mod_device;
bool nfc;
} variant_info_t;
diff --git a/libinit/libinit_sweet.cpp b/libinit/libinit_sweet.cpp
index 3b76a9c..41a58dc 100644
--- a/libinit/libinit_sweet.cpp
+++ b/libinit/libinit_sweet.cpp
@@ -17,8 +17,9 @@ static const variant_info_t sweetin_info = {
.device = "sweetin",
.marketname = "Redmi Note 10 Pro",
.model = "M2101K6P",
- .build_fingerprint = "Redmi/sweetin/sweetin:12/RKQ1.210614.002/V13.0.5.0.SKFINXM:user/release-keys",
- .build_description = "sweetin-user 12 SKQ1.210908.001 V13.0.5.0.SKFINXM release-keys",
+ .build_fingerprint = "Redmi/sweetin/sweetin:13/RKQ1.210614.002/V14.0.1.0.TKFINXM:user/release-keys",
+ .build_description = "sweetin-user 13 TKQ1.221013.002 V14.0.1.0.TKFINXM release-keys",
+ .mod_device = "sweetin_in_global",
.nfc = false,
};
@@ -31,8 +32,9 @@ static const variant_info_t sweetinpro_info = {
.device = "sweetin",
.marketname = "Redmi Note 10 Pro Max",
.model = "M2101K6I",
- .build_fingerprint = "Redmi/sweetinpro/sweetin:12/RKQ1.210614.002/V13.0.5.0.SKFINXM:user/release-keys",
- .build_description = "sweetinpro-user 12 SKQ1.210908.001 V13.0.5.0.SKFINXM release-keys",
+ .build_fingerprint = "Redmi/sweetinpro/sweetin:13/RKQ1.210614.002/V14.0.1.0.TKFINXM:user/release-keys",
+ .build_description = "sweetinpro-user 13 TKQ1.221013.002 V14.0.1.0.TKFINXM release-keys",
+ .mod_device = "sweetin_in_global",
.nfc = false,
};
@@ -43,10 +45,11 @@ static const variant_info_t sweet_global_info = {
.brand = "Redmi",
.device = "sweet",
- .marketname = "Redmi Note 10 Pro",
- .model = "M2101K6G",
- .build_fingerprint = "Redmi/sweet_global/sweet:12/RKQ1.210614.002/V13.0.8.0.SKFMIXM:user/release-keys",
- .build_description = "sweet_global-user 12 SKQ1.210908.001 V13.0.8.0.SKFMIXM release-keys",
+ .marketname = "Redmi Note 12 Pro",
+ .model = "2209116AG",
+ .build_fingerprint = "Redmi/sweet_global2/sweet:11/RKQ1.210614.002/V14.0.5.0.THGMIXM:user/release-keys",
+ .build_description = "sweet_global2-user 13 TKQ1.221114.001 V14.0.5.0.THGMIXM release-keys",
+ .mod_device = "sweet_k6a_global",
.nfc = true,
};
diff --git a/libinit/libinit_variant.cpp b/libinit/libinit_variant.cpp
index 36abc08..e990d5b 100644
--- a/libinit/libinit_variant.cpp
+++ b/libinit/libinit_variant.cpp
@@ -38,6 +38,7 @@ void set_variant_props(const variant_info_t variant) {
property_override("ro.build.description", variant.build_description);
property_override("vendor.usb.product_string", variant.marketname);
+ property_override("ro.product.mod_device", variant.mod_device);
if (variant.nfc)
property_override(SKU_PROP, "nfc");
diff --git a/lineage_sweet.mk b/lineage_sweet_k6a.mk
similarity index 77%
rename from lineage_sweet.mk
rename to lineage_sweet_k6a.mk
index 048cb5c..746f079 100644
--- a/lineage_sweet.mk
+++ b/lineage_sweet_k6a.mk
@@ -8,14 +8,14 @@
$(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/full_base_telephony.mk)
-# Inherit from sweet device
-$(call inherit-product, device/xiaomi/sweet/device.mk)
+# Inherit from sweet_k6a device
+$(call inherit-product, device/xiaomi/sweet_k6a/device.mk)
# Inherit some common LineageOS stuff
$(call inherit-product, vendor/lineage/config/common_full_phone.mk)
-PRODUCT_NAME := lineage_sweet
-PRODUCT_DEVICE := sweet
+PRODUCT_NAME := lineage_sweet_k6a
+PRODUCT_DEVICE := sweet_k6a
PRODUCT_BRAND := Redmi
PRODUCT_MODEL := Redmi Note 10 Pro
PRODUCT_MANUFACTURER := Xiaomi
diff --git a/manifests/lineage_device_framework_matrix.xml b/manifests/lineage_device_framework_matrix.xml
index df6d755..c6d573b 100644
--- a/manifests/lineage_device_framework_matrix.xml
+++ b/manifests/lineage_device_framework_matrix.xml
@@ -1,4 +1,11 @@
+
+ vendor.lineage.health
+
+ IChargingControl
+ default
+
+
vendor.lineage.livedisplay
2.0
diff --git a/manifests/manifest.xml b/manifests/manifest.xml
index 5f4cb84..de5bf9f 100644
--- a/manifests/manifest.xml
+++ b/manifests/manifest.xml
@@ -172,21 +172,6 @@
@1.0::IAnt/default
-
- com.fingerprints.extension
- hwbinder
- 3.0
-
- IFingerprintNavigation
- default
-
-
- IFingerprintSensorTest
- default
-
- @3.0::IFingerprintNavigation/default
- @3.0::IFingerprintSensorTest/default
-
com.qualcomm.qti.dpm.api
hwbinder
diff --git a/overlay/CarrierConfig/res/xml/vendor.xml b/overlay/CarrierConfig/res/xml/vendor.xml
index a87898b..9d07aa0 100644
--- a/overlay/CarrierConfig/res/xml/vendor.xml
+++ b/overlay/CarrierConfig/res/xml/vendor.xml
@@ -41,6 +41,8 @@
com.example.android.locationattribution
+
+
@@ -128,14 +130,25 @@
+
+
+
+
+
+
+
+
+
+
+
@@ -155,6 +168,7 @@
+
@@ -215,6 +229,12 @@
+
+
+
+
+
+
@@ -455,10 +475,12 @@
+
+
@@ -484,6 +506,11 @@
+
+
+
+
+
@@ -1177,14 +1204,24 @@
+
+
+
+
+
+
+
+
+
+
@@ -1192,6 +1229,7 @@
+
@@ -1199,6 +1237,7 @@
+
@@ -1206,12 +1245,14 @@
+
+
@@ -1254,6 +1295,7 @@
+
@@ -1274,6 +1316,7 @@
+
@@ -1340,6 +1383,9 @@
+
+
+
@@ -1376,6 +1422,8 @@
+
+
@@ -1442,6 +1490,9 @@
+
+
+
@@ -1485,6 +1536,9 @@
+
+
+
@@ -1518,6 +1572,7 @@
+
@@ -1547,6 +1602,8 @@
+
+
@@ -1612,6 +1669,9 @@
+
+
+
@@ -1676,6 +1736,9 @@
+
+
+
@@ -1707,6 +1770,8 @@
+
+
@@ -1758,6 +1823,9 @@
+
+
+
@@ -1789,12 +1857,112 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ China Broadcasting
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ China Unicom
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -1809,6 +1977,7 @@
+
@@ -1822,6 +1991,7 @@
+
@@ -1986,6 +2156,11 @@
+
+
+
+
+
@@ -1997,6 +2172,7 @@
+
@@ -2021,6 +2197,7 @@
+
@@ -2067,6 +2244,7 @@
+
@@ -2133,6 +2311,7 @@
+
@@ -2164,6 +2343,16 @@
+
+
+
+
+
+
+
+
+
+
@@ -2278,6 +2467,12 @@
+
+
+
+
+
+
@@ -2311,14 +2506,19 @@
+
+
+
+
+
@@ -2348,4 +2548,7 @@
+
+
+
\ No newline at end of file
diff --git a/overlay/CarrierConfig/res/xml/vendor_device.xml b/overlay/CarrierConfig/res/xml/vendor_device.xml
index 00b6000..2467606 100644
--- a/overlay/CarrierConfig/res/xml/vendor_device.xml
+++ b/overlay/CarrierConfig/res/xml/vendor_device.xml
@@ -1,48 +1,371 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
-
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
-
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
-
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/overlay/CarrierConfig/res/xml/vendor_miui.xml b/overlay/CarrierConfig/res/xml/vendor_miui.xml
index 82c97bf..a9f3bfa 100644
--- a/overlay/CarrierConfig/res/xml/vendor_miui.xml
+++ b/overlay/CarrierConfig/res/xml/vendor_miui.xml
@@ -15,6 +15,7 @@
+