From 1e365419ae718a88b2772fcd759ec7ae637848be Mon Sep 17 00:00:00 2001 From: Ali Hasan Date: Thu, 20 Oct 2022 09:29:14 +0500 Subject: [PATCH 001/110] sweet: overlay: frameworks: cancel FP operation if not idle Signed-off-by: Ali Hasan --- overlay/Frameworks/res/values/custom_config.xml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/overlay/Frameworks/res/values/custom_config.xml b/overlay/Frameworks/res/values/custom_config.xml index 2b8df37..f97bcc0 100644 --- a/overlay/Frameworks/res/values/custom_config.xml +++ b/overlay/Frameworks/res/values/custom_config.xml @@ -2,4 +2,7 @@ com.google.android.tts + + + true From 184dae90e5c0bbd83d14004651629184757deb87 Mon Sep 17 00:00:00 2001 From: Pranav Vashi Date: Sat, 9 Apr 2022 23:15:28 +0530 Subject: [PATCH 002/110] sweet: configs: audio: Fix mic volume Change-Id: Ia338525149dfeabb8beb884b985842203a0d83e6 Signed-off-by: Pranav Vashi --- configs/audio/mixer_paths_idp.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/audio/mixer_paths_idp.xml b/configs/audio/mixer_paths_idp.xml index 881fd80..e0fc5c6 100644 --- a/configs/audio/mixer_paths_idp.xml +++ b/configs/audio/mixer_paths_idp.xml @@ -3464,7 +3464,7 @@ - + From 0f50b31c95fc8fd61e9a314a536f30aa58cc6bf7 Mon Sep 17 00:00:00 2001 From: Pulkit077 Date: Fri, 16 Dec 2022 12:57:55 +0100 Subject: [PATCH 003/110] sweet: parts: change package name to settingslib.widget from settingslib.collapsingtoolbar Signed-off-by: Pulkit077 --- parts/src/org/lineageos/settings/dirac/DiracActivity.java | 2 +- .../lineageos/settings/display/DcDimmingSettingsActivity.java | 2 +- parts/src/org/lineageos/settings/doze/DozeSettingsActivity.java | 2 +- .../src/org/lineageos/settings/haptic/HapticLevelActivity.java | 2 +- .../org/lineageos/settings/thermal/ThermalSettingsActivity.java | 2 +- .../org/lineageos/settings/thermal/TouchSettingsActivity.java | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/parts/src/org/lineageos/settings/dirac/DiracActivity.java b/parts/src/org/lineageos/settings/dirac/DiracActivity.java index d833bf0..5fa1525 100644 --- a/parts/src/org/lineageos/settings/dirac/DiracActivity.java +++ b/parts/src/org/lineageos/settings/dirac/DiracActivity.java @@ -19,7 +19,7 @@ import android.os.Bundle; import com.android.settingslib.collapsingtoolbar.CollapsingToolbarBaseActivity; -import com.android.settingslib.collapsingtoolbar.R; +import com.android.settingslib.widget.R; public class DiracActivity extends CollapsingToolbarBaseActivity { diff --git a/parts/src/org/lineageos/settings/display/DcDimmingSettingsActivity.java b/parts/src/org/lineageos/settings/display/DcDimmingSettingsActivity.java index 58ad790..4f47ee9 100644 --- a/parts/src/org/lineageos/settings/display/DcDimmingSettingsActivity.java +++ b/parts/src/org/lineageos/settings/display/DcDimmingSettingsActivity.java @@ -20,7 +20,7 @@ import android.os.Bundle; import com.android.settingslib.collapsingtoolbar.CollapsingToolbarBaseActivity; -import com.android.settingslib.collapsingtoolbar.R; +import com.android.settingslib.widget.R; import org.lineageos.settings.utils.FileUtils; diff --git a/parts/src/org/lineageos/settings/doze/DozeSettingsActivity.java b/parts/src/org/lineageos/settings/doze/DozeSettingsActivity.java index 019005f..b72952a 100644 --- a/parts/src/org/lineageos/settings/doze/DozeSettingsActivity.java +++ b/parts/src/org/lineageos/settings/doze/DozeSettingsActivity.java @@ -20,7 +20,7 @@ import android.os.Bundle; import com.android.settingslib.collapsingtoolbar.CollapsingToolbarBaseActivity; -import com.android.settingslib.collapsingtoolbar.R; +import com.android.settingslib.widget.R; public class DozeSettingsActivity extends CollapsingToolbarBaseActivity { diff --git a/parts/src/org/lineageos/settings/haptic/HapticLevelActivity.java b/parts/src/org/lineageos/settings/haptic/HapticLevelActivity.java index c73a037..b9a5caa 100644 --- a/parts/src/org/lineageos/settings/haptic/HapticLevelActivity.java +++ b/parts/src/org/lineageos/settings/haptic/HapticLevelActivity.java @@ -19,7 +19,7 @@ import android.os.Bundle; import com.android.settingslib.collapsingtoolbar.CollapsingToolbarBaseActivity; -import com.android.settingslib.collapsingtoolbar.R; +import com.android.settingslib.widget.R; public class HapticLevelActivity extends CollapsingToolbarBaseActivity { diff --git a/parts/src/org/lineageos/settings/thermal/ThermalSettingsActivity.java b/parts/src/org/lineageos/settings/thermal/ThermalSettingsActivity.java index e0d6d3d..ab07b85 100644 --- a/parts/src/org/lineageos/settings/thermal/ThermalSettingsActivity.java +++ b/parts/src/org/lineageos/settings/thermal/ThermalSettingsActivity.java @@ -20,7 +20,7 @@ import android.view.MenuItem; import com.android.settingslib.collapsingtoolbar.CollapsingToolbarBaseActivity; -import com.android.settingslib.collapsingtoolbar.R; +import com.android.settingslib.widget.R; import org.lineageos.settings.utils.FileUtils; diff --git a/parts/src/org/lineageos/settings/thermal/TouchSettingsActivity.java b/parts/src/org/lineageos/settings/thermal/TouchSettingsActivity.java index 9080ede..e51fb1f 100644 --- a/parts/src/org/lineageos/settings/thermal/TouchSettingsActivity.java +++ b/parts/src/org/lineageos/settings/thermal/TouchSettingsActivity.java @@ -20,7 +20,7 @@ import android.view.MenuItem; import com.android.settingslib.collapsingtoolbar.CollapsingToolbarBaseActivity; -import com.android.settingslib.collapsingtoolbar.R; +import com.android.settingslib.widget.R; public class TouchSettingsActivity extends CollapsingToolbarBaseActivity { From d21203a365097b08d264fd874b89196a6ed7147b Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Thu, 22 Sep 2022 00:40:01 +0100 Subject: [PATCH 004/110] sweet: Drop component overrides This is no longer needed as of Android 13. Change-Id: I38435c47c8781678f82014decbbae40dcab0a07b --- configs/component-overrides.xml | 19 ------------------- device.mk | 3 --- 2 files changed, 22 deletions(-) delete mode 100644 configs/component-overrides.xml 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/device.mk b/device.mk index 52ec6d4..f4fbcf5 100644 --- a/device.mk +++ b/device.mk @@ -51,9 +51,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 From cf89bdb719a4c2cc478d21b04a02d59ad14868d3 Mon Sep 17 00:00:00 2001 From: Michael Bestas Date: Thu, 29 Sep 2022 12:35:43 +0300 Subject: [PATCH 005/110] sweet: Remove bdroid_buildcfg.h As of I3c7aed1bdb45db728d319f7d757400e44d232283 the Bluetooth stack defaults to reasonable defaults that should work for all devices. Change-Id: I056d63c4c8a2727e384172e964dc0000b6773504 --- BoardConfig.mk | 3 --- bluetooth/include/bdroid_buildcfg.h | 32 ----------------------------- 2 files changed, 35 deletions(-) delete mode 100644 bluetooth/include/bdroid_buildcfg.h diff --git a/BoardConfig.mk b/BoardConfig.mk index dd6becc..e656686 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -32,9 +32,6 @@ TARGET_OTA_ASSERT_DEVICE := sweet,sweetin # Audio AUDIO_FEATURE_ENABLED_EXTENDED_COMPRESS_FORMAT := true -# Bluetooth -BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(DEVICE_PATH)/bluetooth/include - # Bootloader TARGET_NO_BOOTLOADER := true diff --git a/bluetooth/include/bdroid_buildcfg.h b/bluetooth/include/bdroid_buildcfg.h deleted file mode 100644 index fb2ac69..0000000 --- a/bluetooth/include/bdroid_buildcfg.h +++ /dev/null @@ -1,32 +0,0 @@ -/* - * Copyright (c) 2013, The Linux Foundation. All rights reserved. - * Not a Contribution. - * - * Copyright (C) 2012 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#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 - -#define AVDT_NUM_SEPS 35 -#endif From 26b2ba742f5e6879aa56b16b35b5a7f84cf965f4 Mon Sep 17 00:00:00 2001 From: Jaegeuk Kim Date: Wed, 16 Mar 2022 16:11:10 -0700 Subject: [PATCH 006/110] sweet: init.qcom.rc: Remove discard command tuning Signed-off-by: Jaegeuk Kim Change-Id: I56a35351a27bfff4ad8177061a86885907c0303b --- rootdir/etc/init.qcom.rc | 3 --- 1 file changed, 3 deletions(-) diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 3c79eba..fd5f1a3 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -123,9 +123,6 @@ on boot # Create hvdcp_opti directory mkdir /mnt/vendor/persist/hvdcp_opti 0770 root system - # Limit discard size to 128MB in order to avoid long IO latency - write /sys/block/sda/queue/discard_max_bytes 134217728 - # Enable qcrild and data services on boot so process starts in main enable vendor.qcrild enable vendor.qcrild2 From a9c958a63f9fab8a38a08f20ac3ac01fc428aa97 Mon Sep 17 00:00:00 2001 From: UtsavBalar1231 Date: Sun, 21 Aug 2022 08:34:51 +0000 Subject: [PATCH 007/110] sweet: Define AAPT configuration Change-Id: Ic12fc243a6b86a0972ef5dc0bb26148be540be57 Signed-off-by: UtsavBalar1231 --- device.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/device.mk b/device.mk index f4fbcf5..e1d42d6 100644 --- a/device.mk +++ b/device.mk @@ -11,6 +11,10 @@ PRODUCT_SOONG_NAMESPACES += \ # Product launched with 11.0 PRODUCT_SHIPPING_API_LEVEL := 30 +# AAPT +PRODUCT_AAPT_CONFIG := normal +PRODUCT_AAPT_PREF_CONFIG := xxhdpi + # AID/fs configs PRODUCT_PACKAGES += \ fs_config_dirs \ From b186fa99ec3b307d349c5ae0c14560add2c47006 Mon Sep 17 00:00:00 2001 From: Pulkit077 Date: Tue, 20 Dec 2022 11:30:03 +0000 Subject: [PATCH 008/110] Revert "sweet: dynamically patch libsdmcore.so" This reverts commit 4785f485eb16626902138b58467f166ad5815a3a. Signed-off-by: Pulkit077 --- extract-files.sh | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/extract-files.sh b/extract-files.sh index 783208e..229ca17 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -61,20 +61,6 @@ function blob_fixup() { 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}" ;; From 16ad340b3e637e9e184435461f283bea25536201 Mon Sep 17 00:00:00 2001 From: daniml3 Date: Wed, 20 Jul 2022 20:59:23 +0200 Subject: [PATCH 009/110] sweet: shim stock libsdmcore.so * This shim overrides the MIUI's panel dimensions (which are divided by 10) so that our libsdmcore behaves in the same way as Qualcomm's one Signed-off-by: daniml3 Change-Id: I19f6358fca8f3a624353ffe624438cf501db4d5a --- device.mk | 3 +++ display/Android.bp | 20 ++++++++++++++++++ display/display.cpp | 48 +++++++++++++++++++++++++++++++++++++++++++ extract-files.sh | 3 +++ proprietary-files.txt | 1 - 5 files changed, 74 insertions(+), 1 deletion(-) create mode 100644 display/Android.bp create mode 100644 display/display.cpp diff --git a/device.mk b/device.mk index e1d42d6..7e2bd41 100644 --- a/device.mk +++ b/device.mk @@ -123,6 +123,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 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..7928b8f --- /dev/null +++ b/display/display.cpp @@ -0,0 +1,48 @@ +#define LOG_TAG "libsdmcore-shim" + +#define __CLASS__ "HWDeviceDRM" + +#define LIBSDMCORE "/vendor/lib64/libsdmcore.so" +#define INIT_CONFIGS_SYMBOL "_ZN3sdm11HWDeviceDRM17InitializeConfigsEv" + +#include "hw_device_drm.h" + +#include + +#include + +namespace sdm { + void HWDeviceDRM::InitializeConfigs() { + ALOGI("Running custom InitializeConfigs"); + + // Open libsdmcore + void *handle = dlopen(LIBSDMCORE, RTLD_LOCAL | RTLD_LAZY); + + if (!handle) { + ALOGE("Failed to open the library %s", LIBSDMCORE); + return; + } + + // Load the default InitializeConfigs function + typedef void (*initConfigsOrig_t)(HWDeviceDRM*); + initConfigsOrig_t initConfigsOrig = (initConfigsOrig_t) dlsym(handle, INIT_CONFIGS_SYMBOL); + + if (dlerror()) { + ALOGE("Failed to load the symbol %s", INIT_CONFIGS_SYMBOL); + return; + } + + // Call the original InitializeConfigs function + initConfigsOrig(this); + + // Set the correct x/y dpi + display_attributes_[current_mode_index_].x_dpi /= 10; + display_attributes_[current_mode_index_].y_dpi /= 10; + + ALOGI("Successfully set the panel DPI"); + + // Close libsdmcore + dlclose(handle); + } +} + diff --git a/extract-files.sh b/extract-files.sh index 229ca17..1e2a70b 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -64,6 +64,9 @@ function blob_fixup() { 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/proprietary-files.txt b/proprietary-files.txt index 72852aa..5c02b79 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -536,7 +536,6 @@ vendor/etc/seccomp_policy/vendor.qti.hardware.dsp.policy vendor/lib64/vendor.qti.hardware.dsp@1.0.so # Display (HWC) -vendor/lib/hw/hwcomposer.sm6150.so vendor/lib64/hw/hwcomposer.sm6150.so # Display Feature From df5d8000a45a2680c01da3208fec76b363e196dd Mon Sep 17 00:00:00 2001 From: daniml3 Date: Mon, 8 Aug 2022 22:34:55 +0000 Subject: [PATCH 010/110] sweet: libsdmcore-shim: override the PopulateDisplayAttributes function * The previous method only corrected the DPI of one of all the display modes (the active one), as the correction was executed after it populated all the modes' attributes * Overriding this function ensures that all the modes will have the correct DPI Signed-off-by: daniml3 Change-Id: I2111370d364608cae9e78ea57447b52de0fa02f9 --- display/display.cpp | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/display/display.cpp b/display/display.cpp index 7928b8f..7d3aba1 100644 --- a/display/display.cpp +++ b/display/display.cpp @@ -3,7 +3,7 @@ #define __CLASS__ "HWDeviceDRM" #define LIBSDMCORE "/vendor/lib64/libsdmcore.so" -#define INIT_CONFIGS_SYMBOL "_ZN3sdm11HWDeviceDRM17InitializeConfigsEv" +#define POPULATE_ATTRS_SYMBOL "_ZN3sdm11HWDeviceDRM25PopulateDisplayAttributesEj" #include "hw_device_drm.h" @@ -12,37 +12,39 @@ #include namespace sdm { - void HWDeviceDRM::InitializeConfigs() { - ALOGI("Running custom InitializeConfigs"); + 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; + return kErrorNotSupported; } - // Load the default InitializeConfigs function - typedef void (*initConfigsOrig_t)(HWDeviceDRM*); - initConfigsOrig_t initConfigsOrig = (initConfigsOrig_t) dlsym(handle, INIT_CONFIGS_SYMBOL); + // 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", INIT_CONFIGS_SYMBOL); - return; + ALOGE("Failed to load the symbol %s", POPULATE_ATTRS_SYMBOL); + return kErrorNotSupported; } - // Call the original InitializeConfigs function - initConfigsOrig(this); + // Call the original PopulateDisplayAttributes function + populateAttrsOrig(this, index); // Set the correct x/y dpi - display_attributes_[current_mode_index_].x_dpi /= 10; - display_attributes_[current_mode_index_].y_dpi /= 10; + display_attributes_[index].x_dpi /= 10; + display_attributes_[index].y_dpi /= 10; ALOGI("Successfully set the panel DPI"); // Close libsdmcore dlclose(handle); + + return kErrorNone; } } From 5ce7f19e876b185dd39d1dca1f3b61f7f1a6ca17 Mon Sep 17 00:00:00 2001 From: althafvly Date: Tue, 16 Nov 2021 12:08:22 +0530 Subject: [PATCH 011/110] sweet: overlay: frameworks: Configure RefreshRate brightness thresholds The display uses different gamma curves for different refresh rates. It's hard for panel vendor to tune the curves to have exact same brightness for different refresh rate (lazy). To avoid flicker at darker environment, set threshold for 120Hz, so 120Hz will be default in such conditions. - values kanged from redfin, it works for our panel fine Change-Id: Ie2042aa5d7b114c006841e1cd86c3257653242be --- overlay/Frameworks/res/values/config.xml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/overlay/Frameworks/res/values/config.xml b/overlay/Frameworks/res/values/config.xml index d47c577..73a2f88 100644 --- a/overlay/Frameworks/res/values/config.xml +++ b/overlay/Frameworks/res/values/config.xml @@ -478,6 +478,28 @@ for higher refresh rates to be automatically used out of the box --> 120 + + + 10 + 14 + + + -1 + 20 + + + + 120 + true From 65d6f19812240995a77f1b178820a378018aa23a Mon Sep 17 00:00:00 2001 From: Pulkit077 Date: Sun, 12 Dec 2021 09:12:18 +0530 Subject: [PATCH 012/110] [CAF] sweet: properties: disable backpressure Signed-off-by: Pulkit077 --- properties.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/properties.mk b/properties.mk index 890933a..88a9834 100644 --- a/properties.mk +++ b/properties.mk @@ -211,6 +211,7 @@ ro.vendor.qti.va_aosp.support=1 # Graphics PRODUCT_PROPERTY_OVERRIDES += \ +debug.sf.disable_backpressure=1 \ debug.sf.enable_hwc_vds=1 \ debug.sf.latch_unsignaled=1 \ persist.sys.sf.color_saturation=1.0 \ From 5e1ea4db3cc41b813cbc4b0b2adfbd30982b68b8 Mon Sep 17 00:00:00 2001 From: Pulkit077 Date: Tue, 17 Jan 2023 22:25:10 +0530 Subject: [PATCH 013/110] sweet: update blobs & fingerprint from sweetin V13.0.9.0.SKFINXM - from sweetin-user 12 SKQ1.210908.001 V13.0.9.0.SKFINXM release-keys Signed-off-by: Pulkit077 --- BoardConfig.mk | 2 +- libinit/libinit_sweet.cpp | 8 ++++---- proprietary-files.txt | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/BoardConfig.mk b/BoardConfig.mk index e656686..a508a1d 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -150,7 +150,7 @@ TARGET_SEPOLICY_DIR := msmsteppe -include device/qcom/sepolicy_vndr-legacy-um/SEPolicy.mk # Vendor security patch level -VENDOR_SECURITY_PATCH := 2022-07-01 +VENDOR_SECURITY_PATCH := 2022-12-01 # Verified Boot BOARD_AVB_ENABLE := true diff --git a/libinit/libinit_sweet.cpp b/libinit/libinit_sweet.cpp index 3b76a9c..084883c 100644 --- a/libinit/libinit_sweet.cpp +++ b/libinit/libinit_sweet.cpp @@ -17,8 +17,8 @@ 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:12/RKQ1.210614.002/V13.0.9.0.SKFINXM:user/release-keys", + .build_description = "sweetin-user 12 SKQ1.210908.001 V13.0.9.0.SKFINXM release-keys", .nfc = false, }; @@ -31,8 +31,8 @@ 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:12/RKQ1.210614.002/V13.0.9.0.SKFINXM:user/release-keys", + .build_description = "sweetinpro-user 12 SKQ1.210908.001 V13.0.9.0.SKFINXM release-keys", .nfc = false, }; diff --git a/proprietary-files.txt b/proprietary-files.txt index 5c02b79..05c64a3 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -1,4 +1,4 @@ -# All unpinned blobs below are extracted from miui_SWEETININGlobal_V13.0.5.0.SKFINXM_59d7d3e509_12.0 +# All unpinned blobs below are extracted from miui_SWEETININGlobal_V13.0.9.0.SKFINXM_58704b4d17_12.0 # ADSP vendor/bin/adsprpcd From 810f7ca44ad634c5509e1d8a924a58b230b2ccce Mon Sep 17 00:00:00 2001 From: Pulkit077 Date: Tue, 17 Jan 2023 22:34:11 +0530 Subject: [PATCH 014/110] sweet: update blobs & fingerprint from sweet V13.0.15.0.SKFMIXM - from sweet-user 12 SKQ1.210908.001 V13.0.15.0.SKFMIXM release-keys Signed-off-by: Pulkit077 --- libinit/libinit_sweet.cpp | 4 ++-- proprietary-files.txt | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libinit/libinit_sweet.cpp b/libinit/libinit_sweet.cpp index 084883c..a768ef6 100644 --- a/libinit/libinit_sweet.cpp +++ b/libinit/libinit_sweet.cpp @@ -45,8 +45,8 @@ static const variant_info_t sweet_global_info = { .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", + .build_fingerprint = "Redmi/sweet_global/sweet:12/RKQ1.210614.002/V13.0.15.0.SKFMIXM:user/release-keys", + .build_description = "sweet_global-user 12 SKQ1.210908.001 V13.0.15.0.SKFMIXM release-keys", .nfc = true, }; diff --git a/proprietary-files.txt b/proprietary-files.txt index 05c64a3..c9dc9d8 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -385,8 +385,8 @@ vendor/lib64/camera/components/com.xiaomi.node.misegment.so vendor/lib64/camera/components/libdepthmapwrapper.so vendor/lib64/camera/components/libmmcamera_cac3.so -# Camera Components - from sweet-user 12 SKQ1.210908.001 V13.0.8.0.SKFMIXM release-keys -vendor/lib64/camera/com.qti.tuned.sweet_ofilm_s5khm2_wide.bin|85c87788c70367aef48cef96d7817479a26b1a0d +# Camera Components - from sweet-user 12 SKQ1.210908.001 V13.0.15.0.SKFMIXM release-keys +vendor/lib64/camera/com.qti.tuned.sweet_ofilm_s5khm2_wide.bin|ab8ef3bfcfe0383d82510512f9615dd6d24710f1 # Camera Configs vendor/etc/camera/102_SummerDay.png @@ -948,7 +948,7 @@ vendor/lib64/vendor.qti.hardware.vpp@1.3.so vendor/lib/libmmosal.so vendor/lib64/libmmosal.so -# NFC - from sweet-user 12 SKQ1.210908.001 V13.0.8.0.SKFMIXM release-keys +# NFC - from sweet-user 12 SKQ1.210908.001 V13.0.15.0.SKFMIXM release-keys vendor/lib/libpn553_fw.so|ec325ad8028c573638a6f6902c4aec73c4ec00fa # Neural networks From 9fe54626e7579bd5590138ae459c49a87a6c8faa Mon Sep 17 00:00:00 2001 From: AdarshGrewal Date: Sun, 3 Apr 2022 19:18:28 +0530 Subject: [PATCH 015/110] sweet: include MIUICamera if exists Signed-off-by: Pulkit077 --- BoardConfig.mk | 3 +++ device.mk | 3 +++ 2 files changed, 6 insertions(+) diff --git a/BoardConfig.mk b/BoardConfig.mk index a508a1d..c926507 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -184,3 +184,6 @@ WPA_SUPPLICANT_VERSION := VER_0_8_X # inherit from the proprietary version -include vendor/xiaomi/sweet/BoardConfigVendor.mk + +# Inherit from proprietary files for miuicamera +-include vendor/xiaomi/sweet-miuicamera/products/board.mk diff --git a/device.mk b/device.mk index 7e2bd41..eb22e13 100644 --- a/device.mk +++ b/device.mk @@ -425,3 +425,6 @@ PRODUCT_USE_DYNAMIC_PARTITIONS := true # Inherit vendor $(call inherit-product, vendor/xiaomi/sweet/sweet-vendor.mk) + +# Inherit MIUI Camera +$(call inherit-product-if-exists, vendor/xiaomi/sweet-miuicamera/products/miuicamera.mk) From 0c427bb6dd3c8b7196f7c7038bfef48f3ea7775b Mon Sep 17 00:00:00 2001 From: Zinadin Zidan Date: Fri, 24 Sep 2021 22:26:32 +0600 Subject: [PATCH 016/110] sweet: parts: Remove proximity sensor gestures * sweet don't support it. (doze_proximity_check_before_pulse is set to false in tree) Signed-off-by: Zinadin Zidan Change-Id: I4e7fbfbca34039ba54885908d6fe7b9a16b7ea8fk --- parts/res/xml/doze_settings.xml | 19 --- .../lineageos/settings/doze/DozeService.java | 12 -- .../settings/doze/DozeSettingsFragment.java | 21 ---- .../lineageos/settings/doze/DozeUtils.java | 25 +--- .../settings/sensors/ProximitySensor.java | 109 ------------------ 5 files changed, 1 insertion(+), 185 deletions(-) delete mode 100644 parts/src/org/lineageos/settings/sensors/ProximitySensor.java diff --git a/parts/res/xml/doze_settings.xml b/parts/res/xml/doze_settings.xml index 60980d9..5952530 100644 --- a/parts/res/xml/doze_settings.xml +++ b/parts/res/xml/doze_settings.xml @@ -49,23 +49,4 @@ android:title="@string/raise_to_wake_gesture_title" /> - - - - - - - - - diff --git a/parts/src/org/lineageos/settings/doze/DozeService.java b/parts/src/org/lineageos/settings/doze/DozeService.java index 300b9ea..69b3eb1 100644 --- a/parts/src/org/lineageos/settings/doze/DozeService.java +++ b/parts/src/org/lineageos/settings/doze/DozeService.java @@ -26,13 +26,11 @@ import android.util.Log; import org.lineageos.settings.sensors.PickupSensor; -import org.lineageos.settings.sensors.ProximitySensor; public class DozeService extends Service { private static final String TAG = "DozeService"; private static final boolean DEBUG = false; - private ProximitySensor mProximitySensor; private PickupSensor mPickupSensor; private BroadcastReceiver mScreenStateReceiver = new BroadcastReceiver() { @Override @@ -48,7 +46,6 @@ public void onReceive(Context context, Intent intent) { @Override public void onCreate() { if (DEBUG) Log.d(TAG, "Creating service"); - mProximitySensor = new ProximitySensor(this); mPickupSensor = new PickupSensor(this); IntentFilter screenStateFilter = new IntentFilter(); @@ -68,7 +65,6 @@ public void onDestroy() { if (DEBUG) Log.d(TAG, "Destroying service"); super.onDestroy(); this.unregisterReceiver(mScreenStateReceiver); - mProximitySensor.disable(); mPickupSensor.disable(); } @@ -83,10 +79,6 @@ private void onDisplayOn() { DozeUtils.isRaiseToWakeEnabled(this)) { mPickupSensor.disable(); } - if (DozeUtils.isHandwaveGestureEnabled(this) || - DozeUtils.isPocketGestureEnabled(this)) { - mProximitySensor.disable(); - } } private void onDisplayOff() { @@ -95,9 +87,5 @@ private void onDisplayOff() { DozeUtils.isRaiseToWakeEnabled(this)) { mPickupSensor.enable(); } - if (DozeUtils.isHandwaveGestureEnabled(this) || - DozeUtils.isPocketGestureEnabled(this)) { - mProximitySensor.enable(); - } } } diff --git a/parts/src/org/lineageos/settings/doze/DozeSettingsFragment.java b/parts/src/org/lineageos/settings/doze/DozeSettingsFragment.java index 46ff8c5..a945687 100644 --- a/parts/src/org/lineageos/settings/doze/DozeSettingsFragment.java +++ b/parts/src/org/lineageos/settings/doze/DozeSettingsFragment.java @@ -47,8 +47,6 @@ public class DozeSettingsFragment extends PreferenceFragment implements OnPrefer private SwitchPreference mPickUpPreference; private SwitchPreference mRaiseToWakePreference; - private SwitchPreference mHandwavePreference; - private SwitchPreference mPocketPreference; private Handler mHandler = new Handler(); @@ -75,8 +73,6 @@ public void onCreatePreferences(Bundle savedInstanceState, String rootKey) { PreferenceCategory pickupSensorCategory = (PreferenceCategory) getPreferenceScreen(). findPreference(DozeUtils.CATEG_PICKUP_SENSOR); - PreferenceCategory proximitySensorCategory = (PreferenceCategory) getPreferenceScreen(). - findPreference(DozeUtils.CATEG_PROX_SENSOR); mPickUpPreference = (SwitchPreference) findPreference(DozeUtils.GESTURE_PICK_UP_KEY); mPickUpPreference.setEnabled(dozeEnabled); @@ -86,27 +82,12 @@ public void onCreatePreferences(Bundle savedInstanceState, String rootKey) { mRaiseToWakePreference.setEnabled(dozeEnabled); mRaiseToWakePreference.setOnPreferenceChangeListener(this); - mHandwavePreference = (SwitchPreference) findPreference(DozeUtils.GESTURE_HAND_WAVE_KEY); - mHandwavePreference.setEnabled(dozeEnabled); - mHandwavePreference.setOnPreferenceChangeListener(this); - - mPocketPreference = (SwitchPreference) findPreference(DozeUtils.GESTURE_POCKET_KEY); - mPocketPreference.setEnabled(dozeEnabled); - mPocketPreference.setOnPreferenceChangeListener(this); - - // Hide proximity sensor related features if the device doesn't support them - if (!DozeUtils.getProxCheckBeforePulse(getActivity())) { - getPreferenceScreen().removePreference(proximitySensorCategory); - } - // Hide AOD if not supported and set all its dependents otherwise if (!DozeUtils.alwaysOnDisplayAvailable(getActivity())) { getPreferenceScreen().removePreference(mAlwaysOnDisplayPreference); } else { pickupSensorCategory.setDependency(DozeUtils.ALWAYS_ON_DISPLAY); - proximitySensorCategory.setDependency(DozeUtils.ALWAYS_ON_DISPLAY); mPickUpPreference.setDependency(DozeUtils.GESTURE_RAISE_TO_WAKE_KEY); - mPocketPreference.setDependency(DozeUtils.GESTURE_RAISE_TO_WAKE_KEY); } } @@ -136,8 +117,6 @@ public void onSwitchChanged(Switch switchView, boolean isChecked) { mPickUpPreference.setEnabled(isChecked); mRaiseToWakePreference.setEnabled(isChecked); - mHandwavePreference.setEnabled(isChecked); - mPocketPreference.setEnabled(isChecked); } private void showHelp() { diff --git a/parts/src/org/lineageos/settings/doze/DozeUtils.java b/parts/src/org/lineageos/settings/doze/DozeUtils.java index 2cfd9af..078b426 100644 --- a/parts/src/org/lineageos/settings/doze/DozeUtils.java +++ b/parts/src/org/lineageos/settings/doze/DozeUtils.java @@ -34,12 +34,9 @@ public final class DozeUtils { protected static final String ALWAYS_ON_DISPLAY = "always_on_display"; protected static final String CATEG_PICKUP_SENSOR = "pickup_sensor"; - protected static final String CATEG_PROX_SENSOR = "proximity_sensor"; protected static final String DOZE_ENABLE = "doze_enable"; protected static final String GESTURE_PICK_UP_KEY = "gesture_pick_up"; protected static final String GESTURE_RAISE_TO_WAKE_KEY = "gesture_raise_to_wake"; - protected static final String GESTURE_HAND_WAVE_KEY = "gesture_hand_wave"; - protected static final String GESTURE_POCKET_KEY = "gesture_pocket"; private static final String TAG = "DozeUtils"; private static final boolean DEBUG = false; private static final String DOZE_INTENT = "com.android.systemui.doze.pulse"; @@ -64,17 +61,6 @@ public static void checkDozeService(Context context) { } } - protected static boolean getProxCheckBeforePulse(Context context) { - try { - Context con = context.createPackageContext("com.android.systemui", 0); - int id = con.getResources().getIdentifier("doze_proximity_check_before_pulse", - "bool", "com.android.systemui"); - return con.getResources().getBoolean(id); - } catch (PackageManager.NameNotFoundException e) { - return false; - } - } - protected static boolean enableDoze(Context context, boolean enable) { return Settings.Secure.putInt(context.getContentResolver(), DOZE_ENABLED, enable ? 1 : 0); @@ -122,16 +108,7 @@ public static boolean isRaiseToWakeEnabled(Context context) { return isGestureEnabled(context, GESTURE_RAISE_TO_WAKE_KEY); } - public static boolean isHandwaveGestureEnabled(Context context) { - return isGestureEnabled(context, GESTURE_HAND_WAVE_KEY); - } - - public static boolean isPocketGestureEnabled(Context context) { - return isGestureEnabled(context, GESTURE_POCKET_KEY); - } - public static boolean sensorsEnabled(Context context) { - return isPickUpEnabled(context) || isRaiseToWakeEnabled(context) || - isHandwaveGestureEnabled(context) || isPocketGestureEnabled(context); + return isPickUpEnabled(context) || isRaiseToWakeEnabled(context); } } diff --git a/parts/src/org/lineageos/settings/sensors/ProximitySensor.java b/parts/src/org/lineageos/settings/sensors/ProximitySensor.java deleted file mode 100644 index 56544b5..0000000 --- a/parts/src/org/lineageos/settings/sensors/ProximitySensor.java +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright (C) 2015 The CyanogenMod Project - * 2017-2018 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 org.lineageos.settings.sensors; - -import android.content.Context; -import android.hardware.Sensor; -import android.hardware.SensorEvent; -import android.hardware.SensorEventListener; -import android.hardware.SensorManager; -import android.util.Log; - -import org.lineageos.settings.doze.DozeUtils; - -import java.util.concurrent.ExecutorService; -import java.util.concurrent.Executors; -import java.util.concurrent.Future; - -public class ProximitySensor implements SensorEventListener { - - private static final boolean DEBUG = false; - private static final String TAG = "ProximitySensor"; - - // Maximum time for the hand to cover the sensor: 1s - private static final int HANDWAVE_MAX_DELTA_NS = 1000 * 1000 * 1000; - - // Minimum time until the device is considered to have been in the pocket: 2s - private static final int POCKET_MIN_DELTA_NS = 2000 * 1000 * 1000; - - private SensorManager mSensorManager; - private Sensor mSensor; - private Context mContext; - private ExecutorService mExecutorService; - - private boolean mSawNear = false; - private long mInPocketTime = 0; - - public ProximitySensor(Context context) { - mContext = context; - mSensorManager = mContext.getSystemService(SensorManager.class); - mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_PROXIMITY, false); - mExecutorService = Executors.newSingleThreadExecutor(); - } - - private Future submit(Runnable runnable) { - return mExecutorService.submit(runnable); - } - - @Override - public void onSensorChanged(SensorEvent event) { - boolean isNear = event.values[0] < mSensor.getMaximumRange(); - if (mSawNear && !isNear) { - if (shouldPulse(event.timestamp)) { - DozeUtils.launchDozePulse(mContext); - } - } else { - mInPocketTime = event.timestamp; - } - mSawNear = isNear; - } - - private boolean shouldPulse(long timestamp) { - long delta = timestamp - mInPocketTime; - - if (DozeUtils.isHandwaveGestureEnabled(mContext) && - DozeUtils.isPocketGestureEnabled(mContext)) { - return true; - } else if (DozeUtils.isHandwaveGestureEnabled(mContext)) { - return delta < HANDWAVE_MAX_DELTA_NS; - } else if (DozeUtils.isPocketGestureEnabled(mContext)) { - return delta >= POCKET_MIN_DELTA_NS; - } - return false; - } - - @Override - public void onAccuracyChanged(Sensor sensor, int accuracy) { - /* Empty */ - } - - public void enable() { - if (DEBUG) Log.d(TAG, "Enabling"); - submit(() -> { - mSensorManager.registerListener(this, mSensor, - SensorManager.SENSOR_DELAY_NORMAL); - }); - } - - public void disable() { - if (DEBUG) Log.d(TAG, "Disabling"); - submit(() -> { - mSensorManager.unregisterListener(this, mSensor); - }); - } -} From 82e2d47d75a3a5ccfedcea2393a659210d8ba676 Mon Sep 17 00:00:00 2001 From: IMMANUEL44 Date: Thu, 12 Aug 2021 12:48:47 +0530 Subject: [PATCH 017/110] sweet: properties: Fix camera interface on ViLTE calls We are use Camera2API but this props was making the IMS based stuff to use Camera1API which caused dead camera (black camera - receiver not able to see dialer) This fixes it and now ViLTE calls work fully Thanks to srindak unkil for halping me see this derp Signed-off-by: Joey Huab Change-Id: I571e543bb8ba8b3fb3f29e11c8f0c7cc912e246d --- properties.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/properties.mk b/properties.mk index 88a9834..bb77a6e 100644 --- a/properties.mk +++ b/properties.mk @@ -358,6 +358,9 @@ persist.dbg.volte_avail_ovr=1 \ persist.dbg.vt_avail_ovr=1 \ persist.dbg.wfc_avail_ovr=1 +PRODUCT_PROPERTY_OVERRIDES += \ +persist.vendor.qti.telephony.vt_cam_interface=2 + # WiFi PRODUCT_PROPERTY_OVERRIDES += \ wifi.aware.interface=wifi-aware0 From b43ef9cf0f385cd8572bb558a535a5d39bb233e1 Mon Sep 17 00:00:00 2001 From: Adithya R Date: Fri, 12 Aug 2022 23:42:45 +0530 Subject: [PATCH 018/110] sweet: properties: Force usage of HWC for setting brightness Stock HWC doesn't return brightness capability as its been modified by xiaomi in order to use MIUI's custom brightness implementation. But since all the brightness functions are intact, force surfaceflinger to enable hwc brightness. It offers smoother brightness control than lights HAL. Requires https://github.com/pa-gr/android_frameworks_native/commit/61060adb011809e0395d70d967bb56b68e14914c Signed-off-by: Adithya R --- properties.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/properties.mk b/properties.mk index bb77a6e..a095ca1 100644 --- a/properties.mk +++ b/properties.mk @@ -235,6 +235,9 @@ vendor.display.enable_optimize_refresh=1 \ vendor.display.qdcm.mode_combine=1 \ vendor.gralloc.disable_ubwc=0 +PRODUCT_PRODUCT_PROPERTIES += \ +ro.sf.force_hwc_brightness=1 + # Incremental FS PRODUCT_PROPERTY_OVERRIDES += \ ro.incremental.enable=1 From c79d179e9fec12cca5ec452fba885709a732889a Mon Sep 17 00:00:00 2001 From: Pranav Vashi Date: Fri, 15 Oct 2021 03:27:40 +0530 Subject: [PATCH 019/110] sweet: Update libarcsoft_super_night_raw compatible with camera package Signed-off-by: Pranav Vashi --- proprietary-files.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proprietary-files.txt b/proprietary-files.txt index c9dc9d8..7a67459 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -320,7 +320,7 @@ vendor/lib64/libarcsoft_hta.so vendor/lib64/libarcsoft_portrait_lighting.so vendor/lib64/libarcsoft_portrait_lighting_c.so vendor/lib64/libarcsoft_preview_deflicker.so -vendor/lib64/libarcsoft_super_night_raw.so +vendor/lib64/libarcsoft_super_night_raw.so|a725136e8fe0c9ffd6b5ed527fd480478c9fd57d # Camera Components vendor/lib64/camera/components/etc/morpho_lowlight4.0.xml From 45471069ad165c7be76cff42c69a9d8f82d7db6c Mon Sep 17 00:00:00 2001 From: Pullakavi Srinivas Date: Thu, 21 Jul 2022 22:45:30 +0530 Subject: [PATCH 020/110] sweet: properties: Disable SF composition prediction model on 5.4 and lower CRs-Fixed: 3243885 Change-Id: I64f82a25768b561bb343fdb7686b7d6c020d024a --- properties.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/properties.mk b/properties.mk index a095ca1..452b04e 100644 --- a/properties.mk +++ b/properties.mk @@ -214,6 +214,7 @@ PRODUCT_PROPERTY_OVERRIDES += \ debug.sf.disable_backpressure=1 \ debug.sf.enable_hwc_vds=1 \ debug.sf.latch_unsignaled=1 \ +debug.sf.predict_hwc_composition_strategy=0 \ persist.sys.sf.color_saturation=1.0 \ ro.hardware.egl=adreno \ ro.hardware.vulkan=adreno \ From 6c19b8ee2771ac1b2dd94856ee6a143b4abf7cb4 Mon Sep 17 00:00:00 2001 From: Edwin Moquete Date: Sat, 7 Jan 2023 09:28:14 +0000 Subject: [PATCH 021/110] sweet: properties: Remove unused persist.bluetooth.a2dp_offload.cap property This prop has no effect as of T QPR1. See: https://github.com/LineageOS/android_packages_modules_Bluetooth/commit/cf25e331479a850ad888f077b1d6bac7419213e4 Change-Id: Ic762812dd59429d344ccc55c01bf96b0ffd6dbab --- properties.mk | 1 - 1 file changed, 1 deletion(-) diff --git a/properties.mk b/properties.mk index 452b04e..9d11e0a 100644 --- a/properties.mk +++ b/properties.mk @@ -50,7 +50,6 @@ vendor.audio.mic.status=off # Audio (Bluetooth) PRODUCT_PROPERTY_OVERRIDES += \ -persist.bluetooth.a2dp_offload.cap=sbc-aac-aptx-aptxhd-ldac \ persist.bluetooth.a2dp_offload.disabled=false \ ro.bluetooth.a2dp_offload.supported=true From a036d78267bd3d9fd3c2b8a1eab4040f9caaa9a7 Mon Sep 17 00:00:00 2001 From: Pulkit077 Date: Sat, 18 Feb 2023 17:35:55 +0530 Subject: [PATCH 022/110] sweet: overlay: SystemUI: update status bar paddding Signed-off-by: Pulkit077 --- overlay/SystemUI/res/values/dimens.xml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 overlay/SystemUI/res/values/dimens.xml diff --git a/overlay/SystemUI/res/values/dimens.xml b/overlay/SystemUI/res/values/dimens.xml new file mode 100644 index 0000000..6a767f2 --- /dev/null +++ b/overlay/SystemUI/res/values/dimens.xml @@ -0,0 +1,24 @@ + + + + + 16dp + + + 5dp + From 1d319bc1693ada9bbc6c768b4bc56b2554bb7094 Mon Sep 17 00:00:00 2001 From: Pulkit077 Date: Sat, 25 Feb 2023 18:30:19 +0530 Subject: [PATCH 023/110] sweet: disable BT Audio A2DP - Disabling A2DP fixes an issue with BT audio whereby if you are streaming audio via TWS and attend any VoIP/VoLTE, upon disconnection, the audio stream plays from both the phone speaker and TWS simultaneously. Co-Authored-by: Chenyang Zhong Signed-off-by: Pulkit077 --- .../audio/a2dp_audio_policy_configuration.xml | 44 ------------------ configs/audio/audio_configs.xml | 2 +- configs/audio/audio_configs_stock.xml | 2 +- configs/audio/audio_policy_configuration.xml | 46 ++----------------- ...uetooth_qti_audio_policy_configuration.xml | 44 ------------------ device.mk | 1 + properties.mk | 9 ++-- 7 files changed, 10 insertions(+), 138 deletions(-) delete mode 100644 configs/audio/a2dp_audio_policy_configuration.xml delete mode 100644 configs/audio/bluetooth_qti_audio_policy_configuration.xml 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_configs.xml b/configs/audio/audio_configs.xml index 8940b16..787549b 100644 --- a/configs/audio/audio_configs.xml +++ b/configs/audio/audio_configs.xml @@ -67,7 +67,7 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - + diff --git a/configs/audio/audio_configs_stock.xml b/configs/audio/audio_configs_stock.xml index bbc44c3..140d4d0 100644 --- a/configs/audio/audio_configs_stock.xml +++ b/configs/audio/audio_configs_stock.xml @@ -29,7 +29,7 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --> - + diff --git a/configs/audio/audio_policy_configuration.xml b/configs/audio/audio_policy_configuration.xml index 755a1b6..de8e42a 100644 --- a/configs/audio/audio_policy_configuration.xml +++ b/configs/audio/audio_policy_configuration.xml @@ -162,21 +162,6 @@ - - - - - - - - - @@ -230,34 +215,6 @@ sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic,USB Device In,USB Headset In"/> - - - - - - - - - - - - - - - - - - - - @@ -284,6 +241,9 @@ + + + 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/device.mk b/device.mk index eb22e13..c7ac3c7 100644 --- a/device.mk +++ b/device.mk @@ -43,6 +43,7 @@ PRODUCT_COPY_FILES += \ $(call find-copy-subdir-files,*,$(LOCAL_PATH)/configs/audio/,$(TARGET_COPY_OUT_VENDOR)/etc) PRODUCT_COPY_FILES += \ + frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration.xml:/$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration.xml \ frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \ frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml diff --git a/properties.mk b/properties.mk index 9d11e0a..0e8fee2 100644 --- a/properties.mk +++ b/properties.mk @@ -50,13 +50,13 @@ vendor.audio.mic.status=off # Audio (Bluetooth) PRODUCT_PROPERTY_OVERRIDES += \ -persist.bluetooth.a2dp_offload.disabled=false \ -ro.bluetooth.a2dp_offload.supported=true +persist.bluetooth.a2dp_offload.disabled=true \ +ro.bluetooth.a2dp_offload.supported=false # Audio (Features) PRODUCT_PROPERTY_OVERRIDES += \ vendor.audio.adm.buffering.ms=6 \ -vendor.audio.feature.a2dp_offload.enable=true \ +vendor.audio.feature.a2dp_offload.enable=false \ vendor.audio.feature.afe_proxy.enable=true \ vendor.audio.feature.anc_headset.enable=true \ vendor.audio.feature.audiozoom.enable=false \ @@ -125,9 +125,8 @@ bluetooth.profile.sap.server.enabled=false PRODUCT_PROPERTY_OVERRIDES += \ persist.vendor.bluetooth.ble_drop_power=true \ -persist.vendor.qcom.bluetooth.a2dp_offload_cap=sbc-aptx-aptxtws-aptxhd-aac-ldac-aptxadaptive \ persist.vendor.qcom.bluetooth.aac_frm_ctl.enabled=true \ -persist.vendor.qcom.bluetooth.enable.splita2dp=true \ +persist.vendor.qcom.bluetooth.enable.splita2dp=false \ persist.vendor.qcom.bluetooth.enable.swb=false \ persist.vendor.qcom.bluetooth.enable.swbpm=false \ persist.vendor.qcom.bluetooth.scram.enabled=true \ From 81191fe62a55798e081892d5ae07a2a9347306a4 Mon Sep 17 00:00:00 2001 From: SamarV-121 Date: Thu, 18 Aug 2022 19:56:40 +0530 Subject: [PATCH 024/110] sweet: properties: Disable continuous transaction tracing on all build types Change-Id: I5b2d3ba03208925f40fd65d6615d027f6c7b3320 --- properties.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/properties.mk b/properties.mk index 0e8fee2..71f2712 100644 --- a/properties.mk +++ b/properties.mk @@ -211,6 +211,7 @@ ro.vendor.qti.va_aosp.support=1 PRODUCT_PROPERTY_OVERRIDES += \ debug.sf.disable_backpressure=1 \ debug.sf.enable_hwc_vds=1 \ +debug.sf.enable_transaction_tracing=false \ debug.sf.latch_unsignaled=1 \ debug.sf.predict_hwc_composition_strategy=0 \ persist.sys.sf.color_saturation=1.0 \ From d220fc43970005c585ba99ecd70dc3529887bd9f Mon Sep 17 00:00:00 2001 From: Pulkit077 Date: Fri, 3 Mar 2023 08:42:42 +0530 Subject: [PATCH 025/110] sweet: update blobs & fingerprint from sweetin V13.0.10.0.SKFINXM - from sweetin-user 12 SKQ1.210908.001 V13.0.10.0.SKFINXM release-keys Signed-off-by: Pulkit077 --- BoardConfig.mk | 2 +- libinit/libinit_sweet.cpp | 8 ++++---- proprietary-files.txt | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/BoardConfig.mk b/BoardConfig.mk index c926507..e181143 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -150,7 +150,7 @@ TARGET_SEPOLICY_DIR := msmsteppe -include device/qcom/sepolicy_vndr-legacy-um/SEPolicy.mk # Vendor security patch level -VENDOR_SECURITY_PATCH := 2022-12-01 +VENDOR_SECURITY_PATCH := 2023-02-01 # Verified Boot BOARD_AVB_ENABLE := true diff --git a/libinit/libinit_sweet.cpp b/libinit/libinit_sweet.cpp index a768ef6..f6dad84 100644 --- a/libinit/libinit_sweet.cpp +++ b/libinit/libinit_sweet.cpp @@ -17,8 +17,8 @@ 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.9.0.SKFINXM:user/release-keys", - .build_description = "sweetin-user 12 SKQ1.210908.001 V13.0.9.0.SKFINXM release-keys", + .build_fingerprint = "Redmi/sweetin/sweetin:12/RKQ1.210614.002/V13.0.10.0.SKFINXM:user/release-keys", + .build_description = "sweetin-user 12 SKQ1.210908.001 V13.0.10.0.SKFINXM release-keys", .nfc = false, }; @@ -31,8 +31,8 @@ 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.9.0.SKFINXM:user/release-keys", - .build_description = "sweetinpro-user 12 SKQ1.210908.001 V13.0.9.0.SKFINXM release-keys", + .build_fingerprint = "Redmi/sweetinpro/sweetin:12/RKQ1.210614.002/V13.0.10.0.SKFINXM:user/release-keys", + .build_description = "sweetinpro-user 12 SKQ1.210908.001 V13.0.10.0.SKFINXM release-keys", .nfc = false, }; diff --git a/proprietary-files.txt b/proprietary-files.txt index 7a67459..1e071b3 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -1,4 +1,4 @@ -# All unpinned blobs below are extracted from miui_SWEETININGlobal_V13.0.9.0.SKFINXM_58704b4d17_12.0 +# All unpinned blobs below are extracted from miui_SWEETININGlobal_V13.0.10.0.SKFINXM_8af57eaace_12.0 # ADSP vendor/bin/adsprpcd From 819c5e3c3cfd1075acab3ad5fe56db49a3c60c34 Mon Sep 17 00:00:00 2001 From: Pulkit077 Date: Fri, 3 Mar 2023 14:11:41 +0530 Subject: [PATCH 026/110] sweet: revert audio blobs to sweetin V13.0.5.0.SKFINXM - from sweetin-user 12 SKQ1.210908.001 V13.0.5.0.SKFINXM release-keys Signed-off-by: Pulkit077 --- proprietary-files.txt | 58 +++++++++++++++++++++---------------------- 1 file changed, 29 insertions(+), 29 deletions(-) diff --git a/proprietary-files.txt b/proprietary-files.txt index 1e071b3..1524597 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -50,30 +50,30 @@ vendor/lib/rfsa/adsp/libdirac-capiv2.so # ANT+ vendor/lib64/hw/com.dsi.ant@1.0-impl.so -# Audio -vendor/lib/liba2dpoffload.so -vendor/lib/libacdb-fts.so -vendor/lib/libacdbloader.so -vendor/lib/libacdbrtac.so -vendor/lib/libadiertac.so -vendor/lib/libadm.so -vendor/lib/libaudcal.so -vendor/lib/libaudioalsa.so -vendor/lib/libaudioconfigstore.so -vendor/lib/libaudioparsers.so -vendor/lib/libbatterylistener.so -vendor/lib/libcirrusspkrprot.so -vendor/lib/libcomprcapture.so -vendor/lib/libdrc.so -vendor/lib/libexthwplugin.so -vendor/lib/libhdmiedid.so -vendor/lib/libhdmipassthru.so -vendor/lib/libhfp.so -vendor/lib/libqtigef.so -vendor/lib/libsndmonitor.so -vendor/lib/libspkrprot.so -vendor/lib/libssrec.so -vendor/lib/libsurround_3mic_proc.so +# Audio - from sweetin-user 12 SKQ1.210908.001 V13.0.9.0.SKFINXM release-keys +vendor/lib/liba2dpoffload.so|4480175ddca974bc17378095bef8135e2976cc3f +vendor/lib/libacdb-fts.so|080910f9b2907d41ef20d1b1a8422c2efd0dba41 +vendor/lib/libacdbloader.so|9896a3371080253058cf537e796663f9a439d1ca +vendor/lib/libacdbrtac.so|094f5769d7b85117ee7bff08c1cda5b01d8d30fb +vendor/lib/libadiertac.so|772e74b86729e9c5d8667c8cc9fa5e8883c007f0 +vendor/lib/libadm.so|7a1cfba258a1ca590011c2529f620b2db822acc7 +vendor/lib/libaudcal.so|198a2b38f1b1e2e848305efc705b17e77b94c89c +vendor/lib/libaudioalsa.so|b1521744832c14b67095209955e5d8a440c491a7 +vendor/lib/libaudioconfigstore.so|c41f6f6aeb488155f7018f44e452b76fc014b72d +vendor/lib/libaudioparsers.so|68826db8a2cdff81d835ec68573e6df75a7b3304 +vendor/lib/libbatterylistener.so|3e0724379eeef8215027ce32dfd94bdf67cf3745 +vendor/lib/libcirrusspkrprot.so|789015401b024c583ba64cd0dc2f8341e0348721 +vendor/lib/libcomprcapture.so|1d80d60388b465bcd0979fbad007de56db0a3128 +vendor/lib/libdrc.so|b066f176f119847059c5aa148f73e1b042fbeab3 +vendor/lib/libexthwplugin.so|843257b616b1b6d491c82fd17cffb9985e7ea42d +vendor/lib/libhdmiedid.so|c58f84959b45020993551bc31e74e85abf1ff620 +vendor/lib/libhdmipassthru.so|766bca6d2dead0f3288e08c3ef8a46e2d10a1441 +vendor/lib/libhfp.so|371d50d4645ac48529ae75cea399bef05bfa9985 +vendor/lib/libqtigef.so|ef2f0eefe3b8b5e4d4bc559656de8c58cc461c01 +vendor/lib/libsndmonitor.so|a2dab1ced2c2b0e625c8173cca6aee6660ed2a55 +vendor/lib/libspkrprot.so|79642bc38087c32ec9a3d5cd43b81c3df62013df +vendor/lib/libssrec.so|1ab926e961f9b046309715f4dcdbb1a1657406f0 +vendor/lib/libsurround_3mic_proc.so|e8e086123e0c1dc17f008f97edb3611cd4c702e1 # Audio (FX modules) system_ext/etc/permissions/audiosphere.xml @@ -87,11 +87,11 @@ vendor/lib/soundfx/libswgamedap.so vendor/lib/soundfx/libswvqe.so vendor/lib/libdapparamstorage.so -# Audio (Hardware) -vendor/lib/hw/audio.primary.sm6150.so -vendor/lib/vndk/libxlog.so -vendor/lib/libaudio_log_utils.so -vendor/lib/libaudioroute_ext.so +# Audio (Hardware) - from sweetin-user 12 SKQ1.210908.001 V13.0.9.0.SKFINXM release-keys +vendor/lib/hw/audio.primary.sm6150.so|04ee69afccbc9e445fbed47f4e21e5a7969b0cb1 +vendor/lib/vndk/libxlog.so|bdb3d8d8b37bd4e1e84f59d912457690e7388f2e +vendor/lib/libaudio_log_utils.so|007f0e1136d3ca422c9b6c59f7fbcc4588394d87 +vendor/lib/libaudioroute_ext.so|e4083b361cd3047544f412ae972242d8c6f04597 # Audio (ACDB) vendor/etc/acdbdata/Forte/Forte_Bluetooth_cal.acdb From 0bd0b3f2bfc9a8ff0f588e594b1e1e1672f2db9c Mon Sep 17 00:00:00 2001 From: Jake Weinstein Date: Mon, 6 Jul 2020 18:01:59 +0530 Subject: [PATCH 027/110] sweet: configs: msm_irqbalance: Do not balance msm_drm and kgsl-3d0 IRQs These are critical for display performance and should not be balanced in order to improve latency and responsiveness. Change-Id: I0248e26a7154c689c0d3f11dabe14a1b149353f9 --- configs/msm_irqbalance.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 From 93fcd4677e783b1302beaf5f9b1b2cd1f0caedce Mon Sep 17 00:00:00 2001 From: Pulkit077 Date: Mon, 20 Mar 2023 19:40:47 +0530 Subject: [PATCH 028/110] Revert "sweet: configs: audio: Add hotword input for hotword mic concurrency" This reverts commit a4e29c6b054f01cc4165ad5da18e5dc5d34b7a7f. Signed-off-by: Pulkit077 --- configs/audio/audio_policy_configuration.xml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/configs/audio/audio_policy_configuration.xml b/configs/audio/audio_policy_configuration.xml index de8e42a..56639f6 100644 --- a/configs/audio/audio_policy_configuration.xml +++ b/configs/audio/audio_policy_configuration.xml @@ -117,11 +117,6 @@ channelMasks="AUDIO_CHANNEL_IN_MONO,AUDIO_CHANNEL_IN_STEREO,AUDIO_CHANNEL_IN_FRONT_BACK,AUDIO_CHANNEL_INDEX_MASK_3"/> - - - @@ -206,8 +201,6 @@ sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic,BT SCO Headset Mic,USB Device In,USB Headset In"/> - From efb307b019171076057436222fb056e0d7a8ae9a Mon Sep 17 00:00:00 2001 From: Pulkit077 Date: Tue, 21 Mar 2023 16:21:03 +0530 Subject: [PATCH 029/110] sweet: configs: audio: update audio policy from sweetin V13.0.10.0.SKFINXM /vendor/etc/audio/audio_policy_configuration.xml - retained : sweet: disable BT Audio A2DP (d3d750c) sweet: configs: audio: Disable audio ULL mode (a3544a6) Signed-off-by: Pulkit077 --- .../audio/audio_policy_configuration.xml | 399 ++++++++++++++++++ configs/audio/audio_policy_configuration.xml | 250 ----------- 2 files changed, 399 insertions(+), 250 deletions(-) create mode 100644 configs/audio/audio/audio_policy_configuration.xml delete mode 100644 configs/audio/audio_policy_configuration.xml diff --git a/configs/audio/audio/audio_policy_configuration.xml b/configs/audio/audio/audio_policy_configuration.xml new file mode 100644 index 0000000..1d0189d --- /dev/null +++ b/configs/audio/audio/audio_policy_configuration.xml @@ -0,0 +1,399 @@ + + + + + + + + + + + + + + + + + Earpiece + Speaker + Telephony Tx + Built-In Mic + Built-In Back Mic + FM Tuner + Telephony Rx + + Speaker + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/configs/audio/audio_policy_configuration.xml b/configs/audio/audio_policy_configuration.xml deleted file mode 100644 index 56639f6..0000000 --- a/configs/audio/audio_policy_configuration.xml +++ /dev/null @@ -1,250 +0,0 @@ - - - - - - - - - - - - - - - - Speaker - Earpiece - Telephony Tx - Built-In Mic - Built-In Back Mic - Telephony Rx - - Speaker - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - From c8de62162730c3bde598919752d621c80027f05f Mon Sep 17 00:00:00 2001 From: iovxw Date: Thu, 3 Mar 2022 00:01:25 +0100 Subject: [PATCH 030/110] sweet: configs: audio: Remove FM Tuner from input devices * This fixes google voice recorder. Signed-off-by: Andrzej Perczak --- configs/audio/audio/audio_policy_configuration.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/audio/audio/audio_policy_configuration.xml b/configs/audio/audio/audio_policy_configuration.xml index 1d0189d..cc1823c 100644 --- a/configs/audio/audio/audio_policy_configuration.xml +++ b/configs/audio/audio/audio_policy_configuration.xml @@ -344,7 +344,7 @@ + sources="Wired Headset Mic,BT SCO Headset Mic,USB Device In,USB Headset In,Telephony Rx"/> Date: Mon, 6 Dec 2021 23:40:21 +0300 Subject: [PATCH 031/110] sweet: configs: audio: Fix mic issues in apps like WhatsApp --- configs/audio/audio/audio_policy_configuration.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/audio/audio/audio_policy_configuration.xml b/configs/audio/audio/audio_policy_configuration.xml index cc1823c..e7c2973 100644 --- a/configs/audio/audio/audio_policy_configuration.xml +++ b/configs/audio/audio/audio_policy_configuration.xml @@ -346,7 +346,7 @@ + sources="Built-In Mic,Built-In Back Mic,Wired Headset Mic,BT SCO Headset Mic,USB Device In,USB Headset In,Telephony Rx"/> Date: Sat, 4 Jun 2022 23:50:21 +0700 Subject: [PATCH 032/110] sweet: sepolicy: Dont audit vendor_diag_device denials * Spams on user builds. Change-Id: I77cae8024ed9b2c167814c1ffa2e052630df2272 Signed-off-by: Pranav Vashi --- sepolicy/vendor/dontaudit.te | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/sepolicy/vendor/dontaudit.te b/sepolicy/vendor/dontaudit.te index 08dac0c..609438b 100644 --- a/sepolicy/vendor/dontaudit.te +++ b/sepolicy/vendor/dontaudit.te @@ -1,2 +1,18 @@ dontaudit hal_wifi_default self:capability sys_module; dontaudit vendor_thermal-engine self:capability dac_override; + +dontaudit { + hal_audio_default + hal_graphics_composer_default + hal_sensors_default + rild + vendor_adpl + vendor_cnd + vendor_dpmd + vendor_hal_imsrtp + vendor_hal_rcsservice + vendor_ims + vendor_netmgrd + vendor_qti + vendor_sensors_qti +} vendor_diag_device:chr_file rw_file_perms; From 852083ce5db0ad6016349ca8b4b72adb75615f01 Mon Sep 17 00:00:00 2001 From: Pranav Vashi Date: Sun, 24 Jul 2022 00:49:02 +0530 Subject: [PATCH 033/110] sweet: sepolicy: Ignore more harmless denials Change-Id: I219e208aab9e4caff9a2de5afd4747abc27b308a Signed-off-by: Pranav Vashi --- sepolicy/vendor/dontaudit.te | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/sepolicy/vendor/dontaudit.te b/sepolicy/vendor/dontaudit.te index 609438b..f6a3d70 100644 --- a/sepolicy/vendor/dontaudit.te +++ b/sepolicy/vendor/dontaudit.te @@ -1,6 +1,14 @@ +dontaudit hal_wifi_default persist_vendor_debug_wifi_prop:file rw_file_perms; dontaudit hal_wifi_default self:capability sys_module; + +dontaudit kernel self:qipcrtr_socket create; + +dontaudit vendor_hvdcp kmsg_device:chr_file rw_file_perms; + dontaudit vendor_thermal-engine self:capability dac_override; +dontaudit vendor_hal_capabilityconfigstore_qti_default vendor_cap_configstore_dbg_prop:file rw_file_perms; + dontaudit { hal_audio_default hal_graphics_composer_default @@ -16,3 +24,8 @@ dontaudit { vendor_qti vendor_sensors_qti } vendor_diag_device:chr_file rw_file_perms; + +dontaudit { + rild + vendor_hal_gnss_qti +} vendor_pd_locater_dbg_prop:file rw_file_perms; From 288aab9e23edf988f6c9ae18fa495fab89ad24af Mon Sep 17 00:00:00 2001 From: Pulkit077 Date: Tue, 21 Mar 2023 21:55:06 +0530 Subject: [PATCH 034/110] sweet: sepolicy: Ignore few more diag denials Signed-off-by: Pulkit077 --- sepolicy/vendor/dontaudit.te | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sepolicy/vendor/dontaudit.te b/sepolicy/vendor/dontaudit.te index f6a3d70..0ac8ea1 100644 --- a/sepolicy/vendor/dontaudit.te +++ b/sepolicy/vendor/dontaudit.te @@ -11,12 +11,14 @@ dontaudit vendor_hal_capabilityconfigstore_qti_default vendor_cap_configstore_db dontaudit { hal_audio_default + hal_bluetooth_default hal_graphics_composer_default hal_sensors_default rild vendor_adpl vendor_cnd vendor_dpmd + vendor_hal_citsensorservice_xiaomi_default vendor_hal_imsrtp vendor_hal_rcsservice vendor_ims From b03b5f0be29959365b7f2fb2999cc773523f1ac8 Mon Sep 17 00:00:00 2001 From: Michael Bestas Date: Tue, 14 Mar 2023 02:06:52 +0200 Subject: [PATCH 035/110] sweet: Remove no longer needed aptX blobs As of Android 13 QPR2, AOSP Bluetooth APEX supports aptX/aptX HD Change-Id: I03c210dd5a777f71becb691955c01f9caf0bd207 --- proprietary-files.txt | 4 ---- 1 file changed, 4 deletions(-) diff --git a/proprietary-files.txt b/proprietary-files.txt index 1524597..4140980 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -120,10 +120,6 @@ vendor/lib/btaudio_offload_if.so vendor/lib/libbluetooth_audio_session_qti_2_1.so vendor/lib/libbluetooth_audio_session_qti.so -# Bluetooth (aptX) - from Pixel 4A RQ3A.210905.001 -system_ext/lib64/libaptXHD_encoder.so|e13fa70c97caaa24d061678bdee608eb8850a69e -system_ext/lib64/libaptX_encoder.so|df1c89d7af1bb35808d5fe3496b04ba066c10cbc - # Bluetooth (Configstore) vendor/lib64/hw/vendor.qti.hardware.btconfigstore@2.0-impl.so From 2aba6c0f1c5f2832b746d376701cfd4cc604b8a9 Mon Sep 17 00:00:00 2001 From: Pulkit077 Date: Fri, 24 Mar 2023 21:46:44 +0530 Subject: [PATCH 036/110] sweet: parts: drop DC Dimming Signed-off-by: Pulkit077 --- parts/AndroidManifest.xml | 28 ----- parts/proguard.flags | 4 - parts/res/drawable/ic_dimming_off.xml | 18 --- parts/res/drawable/ic_dimming_on.xml | 14 --- parts/res/values-ro/strings.xml | 7 -- parts/res/values/strings.xml | 7 -- parts/res/xml/dcdimming_settings.xml | 31 ----- .../display/DcDimmingSettingsActivity.java | 40 ------- .../display/DcDimmingSettingsFragment.java | 109 ------------------ .../settings/display/tile/DcDimmingTile.java | 79 ------------- rootdir/etc/init.target.rc | 3 - sepolicy/vendor/genfs_contexts | 1 - sepolicy/vendor/xiaomiparts_app.te | 4 - 13 files changed, 345 deletions(-) delete mode 100644 parts/res/drawable/ic_dimming_off.xml delete mode 100644 parts/res/drawable/ic_dimming_on.xml delete mode 100644 parts/res/xml/dcdimming_settings.xml delete mode 100644 parts/src/org/lineageos/settings/display/DcDimmingSettingsActivity.java delete mode 100644 parts/src/org/lineageos/settings/display/DcDimmingSettingsFragment.java delete mode 100644 parts/src/org/lineageos/settings/display/tile/DcDimmingTile.java diff --git a/parts/AndroidManifest.xml b/parts/AndroidManifest.xml index fee39f8..e44b1ce 100644 --- a/parts/AndroidManifest.xml +++ b/parts/AndroidManifest.xml @@ -74,23 +74,6 @@ - - - - - - - - - - - - - - - - - - - diff --git a/parts/res/drawable/ic_dimming_on.xml b/parts/res/drawable/ic_dimming_on.xml deleted file mode 100644 index 299b578..0000000 --- a/parts/res/drawable/ic_dimming_on.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - diff --git a/parts/res/values-ro/strings.xml b/parts/res/values-ro/strings.xml index c59cca1..b4b7be4 100644 --- a/parts/res/values-ro/strings.xml +++ b/parts/res/values-ro/strings.xml @@ -18,13 +18,6 @@ Folosește afișaj ambiental - - Mod Anti-pâlpâire - DC Dimming reduce oboseala ochilor în condiții de lumină scăzută, dar poate duce la o calitate redusă a imaginii și o producție slabă a culorilor. - - - DC Dimming - Profiluri termice Ajustați profilurile termice și ale ecranului tactil pentru fiecare aplicație diff --git a/parts/res/values/strings.xml b/parts/res/values/strings.xml index 6f4cd6f..bfdcd8c 100644 --- a/parts/res/values/strings.xml +++ b/parts/res/values/strings.xml @@ -18,13 +18,6 @@ Use ambient display - - Anti-Flicker Mode - DC Dimming reduces eye strain in low light conditions but may result in reduced image quality and poor color production. - - - DC Dimming - Thermal Profiles Adjust per-app thermal and touchscreen profiles diff --git a/parts/res/xml/dcdimming_settings.xml b/parts/res/xml/dcdimming_settings.xml deleted file mode 100644 index 35f5f5e..0000000 --- a/parts/res/xml/dcdimming_settings.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - diff --git a/parts/src/org/lineageos/settings/display/DcDimmingSettingsActivity.java b/parts/src/org/lineageos/settings/display/DcDimmingSettingsActivity.java deleted file mode 100644 index 4f47ee9..0000000 --- a/parts/src/org/lineageos/settings/display/DcDimmingSettingsActivity.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2015-2016 The CyanogenMod Project - * 2017 The LineageOS Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.lineageos.settings.display; - -import android.os.Bundle; - -import com.android.settingslib.collapsingtoolbar.CollapsingToolbarBaseActivity; -import com.android.settingslib.widget.R; - -import org.lineageos.settings.utils.FileUtils; - -public class DcDimmingSettingsActivity extends CollapsingToolbarBaseActivity { - - private static final String TAG_DCDIMMING = "dcdimming"; - private static final String DISPPARAM_NODE = "/sys/devices/platform/soc/ae00000.qcom,mdss_mdp/drm/card0/card0-DSI-1/disp_param"; - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - if (FileUtils.fileExists(DISPPARAM_NODE)) { - getFragmentManager().beginTransaction().replace(R.id.content_frame, - new DcDimmingSettingsFragment(), TAG_DCDIMMING).commit(); - } - } -} diff --git a/parts/src/org/lineageos/settings/display/DcDimmingSettingsFragment.java b/parts/src/org/lineageos/settings/display/DcDimmingSettingsFragment.java deleted file mode 100644 index a5a1d22..0000000 --- a/parts/src/org/lineageos/settings/display/DcDimmingSettingsFragment.java +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright (C) 2018 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 org.lineageos.settings.display; - -import android.content.SharedPreferences; -import android.os.Bundle; -import android.os.RemoteException; - -import androidx.preference.Preference; -import androidx.preference.Preference.OnPreferenceChangeListener; -import androidx.preference.PreferenceManager; -import androidx.preference.PreferenceFragment; -import androidx.preference.SwitchPreference; - -import org.lineageos.settings.R; -import org.lineageos.settings.utils.FileUtils; - -import vendor.xiaomi.hardware.displayfeature.V1_0.IDisplayFeature; - -public class DcDimmingSettingsFragment extends PreferenceFragment implements - OnPreferenceChangeListener, SharedPreferences.OnSharedPreferenceChangeListener { - - private static final String DC_DIMMING_ENABLE_KEY = "dc_dimming_enable"; - - private SwitchPreference mDcDimmingPreference; - private IDisplayFeature mDisplayFeature; - private SharedPreferences mSharedPrefs; - - public static final String DC_DIMMING_KEY = "dc_dimming_enable"; - - public static final String DISPPARAM_NODE = "/sys/devices/platform/soc/ae00000.qcom,mdss_mdp/drm/card0/card0-DSI-1/disp_param"; - public static final String BRIGHTNESS_NODE = "/sys/devices/platform/soc/ae00000.qcom,mdss_mdp/backlight/panel0-backlight/brightness"; - - public static final String DISPPARAM_DC_ON = "0x40000"; - public static final String DISPPARAM_DC_OFF = "0x50000"; - - public static final boolean DC_DIMMING_DEFAULT_VALUE = false; - - @Override - public void onCreatePreferences(Bundle savedInstanceState, String rootKey) { - addPreferencesFromResource(R.xml.dcdimming_settings); - try { - mDisplayFeature = IDisplayFeature.getService(); - } catch (RemoteException e) { - // Do nothing - } - mDcDimmingPreference = (SwitchPreference) findPreference(DC_DIMMING_ENABLE_KEY); - mDcDimmingPreference.setEnabled(true); - mDcDimmingPreference.setOnPreferenceChangeListener(this); - mSharedPrefs = PreferenceManager.getDefaultSharedPreferences(getActivity()); - } - - @Override - public void onResume() { - super.onResume(); - mSharedPrefs.registerOnSharedPreferenceChangeListener(this); - } - - @Override - public void onPause() { - super.onPause(); - mSharedPrefs.unregisterOnSharedPreferenceChangeListener(this); - } - - @Override - public void onSharedPreferenceChanged(SharedPreferences sharedPreferences, String s) { - boolean value = mSharedPrefs.getBoolean(DC_DIMMING_KEY, DC_DIMMING_DEFAULT_VALUE); - if (value != mDcDimmingPreference.isChecked()){ - mDcDimmingPreference.setChecked(value); - } - } - - @Override - public boolean onPreferenceChange(Preference preference, Object newValue) { - if (DC_DIMMING_ENABLE_KEY.equals(preference.getKey())) { - enableDcDimming((Boolean) newValue); - } - return true; - } - - private void enableDcDimming(boolean enable) { - if (mDisplayFeature == null) return; - - try { - mDisplayFeature.setFeature(0, 20, enable ? 1 : 0, 255); - - FileUtils.writeLine(DISPPARAM_NODE, enable ? DISPPARAM_DC_ON : DISPPARAM_DC_OFF); - - // Update the brightness node so dc dimming updates its state - FileUtils.writeLine(BRIGHTNESS_NODE, FileUtils.readOneLine(BRIGHTNESS_NODE)); - } catch (RemoteException e) { - // Do nothing - } - } -} diff --git a/parts/src/org/lineageos/settings/display/tile/DcDimmingTile.java b/parts/src/org/lineageos/settings/display/tile/DcDimmingTile.java deleted file mode 100644 index 1aab304..0000000 --- a/parts/src/org/lineageos/settings/display/tile/DcDimmingTile.java +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Copyright (C) 2020 The LineageOS Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.lineageos.settings.display.tile; - -import android.content.SharedPreferences; -import android.graphics.drawable.Icon; -import android.os.RemoteException; -import android.service.quicksettings.Tile; -import android.service.quicksettings.TileService; - -import androidx.preference.PreferenceManager; - -import static org.lineageos.settings.display.DcDimmingSettingsFragment.*; - -import org.lineageos.settings.R; -import org.lineageos.settings.utils.FileUtils; - -import vendor.xiaomi.hardware.displayfeature.V1_0.IDisplayFeature; - -public class DcDimmingTile extends TileService { - @Override - public void onStartListening() { - super.onStartListening(); - SharedPreferences mSharedPrefs = PreferenceManager.getDefaultSharedPreferences(this); - if (mSharedPrefs.getBoolean(DC_DIMMING_KEY, DC_DIMMING_DEFAULT_VALUE)) { - getQsTile().setIcon(Icon.createWithResource(this, R.drawable.ic_dimming_on)); - getQsTile().setState(Tile.STATE_ACTIVE); - } else { - getQsTile().setIcon(Icon.createWithResource(this, R.drawable.ic_dimming_off)); - getQsTile().setState(Tile.STATE_INACTIVE); - } - getQsTile().updateTile(); - } - - @Override - public void onClick() { - super.onClick(); - switchDcDimming(!(getQsTile().getState() == Tile.STATE_ACTIVE)); - } - - private void switchDcDimming(boolean enable) { - try { - IDisplayFeature mDisplayFeature = IDisplayFeature.getService(); - mDisplayFeature.setFeature(0, 20, enable ? 1 : 0, 255); - - FileUtils.writeLine(DISPPARAM_NODE, enable ? DISPPARAM_DC_ON : DISPPARAM_DC_OFF); - - // Update the brightness node so dc dimming updates its state - FileUtils.writeLine(BRIGHTNESS_NODE, FileUtils.readOneLine(BRIGHTNESS_NODE)); - } catch (RemoteException e) { - // Do nothing - } - - if (enable) { - getQsTile().setIcon(Icon.createWithResource(this, R.drawable.ic_dimming_on)); - getQsTile().setState(Tile.STATE_ACTIVE); - } else { - getQsTile().setIcon(Icon.createWithResource(this, R.drawable.ic_dimming_off)); - getQsTile().setState(Tile.STATE_INACTIVE); - } - getQsTile().updateTile(); - SharedPreferences mSharedPrefs = PreferenceManager.getDefaultSharedPreferences(this); - mSharedPrefs.edit().putBoolean(DC_DIMMING_KEY, enable).apply(); - } -} diff --git a/rootdir/etc/init.target.rc b/rootdir/etc/init.target.rc index 0b8f6de..ff5aad5 100644 --- a/rootdir/etc/init.target.rc +++ b/rootdir/etc/init.target.rc @@ -124,9 +124,6 @@ on boot chown system system /sys/class/drm/card0-DSI-1/doze_backlight chmod 0660 /sys/class/drm/card0-DSI-1/doze_backlight - chown system system /sys/devices/platform/soc/ae00000.qcom,mdss_mdp/drm/card0/card0-DSI-1/disp_param - chmod 0660 /sys/devices/platform/soc/ae00000.qcom,mdss_mdp/drm/card0/card0-DSI-1/disp_param - # Set xiaomi touch permissions chown system system /dev/xiaomi-touch chmod 0660 /dev/xiaomi-touch diff --git a/sepolicy/vendor/genfs_contexts b/sepolicy/vendor/genfs_contexts index 607ebbd..9f0c6c7 100644 --- a/sepolicy/vendor/genfs_contexts +++ b/sepolicy/vendor/genfs_contexts @@ -14,7 +14,6 @@ genfscon sysfs /devices/platform/soc/ae00000.qcom,mdss_mdp/idle_state genfscon sysfs /devices/platform/soc/ae00000.qcom,mdss_mdp/idle_timeout_ms u:object_r:vendor_sysfs_graphics:s0 # DisplayFeatureHal -genfscon sysfs /devices/platform/soc/ae00000.qcom,mdss_mdp/drm/card0/card0-DSI-1/disp_param u:object_r:vendor_sysfs_graphics:s0 genfscon sysfs /devices/platform/soc/ae00000.qcom,mdss_mdp/drm/card0/card0-DSI-1/dynamic_fps u:object_r:vendor_sysfs_graphics:s0 genfscon sysfs /devices/platform/soc/ae00000.qcom,mdss_mdp/drm/card0/card0-DSI-1/panel_info u:object_r:vendor_sysfs_graphics:s0 diff --git a/sepolicy/vendor/xiaomiparts_app.te b/sepolicy/vendor/xiaomiparts_app.te index c6b45d3..e8dc00a 100644 --- a/sepolicy/vendor/xiaomiparts_app.te +++ b/sepolicy/vendor/xiaomiparts_app.te @@ -9,7 +9,3 @@ binder_call(xiaomiparts_app, hal_displayfeature_xiaomi_default) # Allow binder communication with hal_touchfeature_xiaomi_default binder_call(xiaomiparts_app, hal_touchfeature_xiaomi_default) - -# Allow xiaomiparts_app to r/w disp_param -allow xiaomiparts_app vendor_sysfs_graphics:dir r_dir_perms; -allow xiaomiparts_app vendor_sysfs_graphics:file rw_file_perms; From fd7a104bc7c2d8645e79b15013cb5db43665c577 Mon Sep 17 00:00:00 2001 From: Pulkit077 Date: Sat, 15 Apr 2023 09:54:51 +0530 Subject: [PATCH 037/110] Revert "sweet: sepolicy: label extcon files" This reverts commit 72f901d6dfe507c7dad090277b2fe1afd8f42178. Signed-off-by: Pulkit077 --- sepolicy/vendor/genfs_contexts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/sepolicy/vendor/genfs_contexts b/sepolicy/vendor/genfs_contexts index 9f0c6c7..07f19bc 100644 --- a/sepolicy/vendor/genfs_contexts +++ b/sepolicy/vendor/genfs_contexts @@ -17,12 +17,6 @@ genfscon sysfs /devices/platform/soc/ae00000.qcom,mdss_mdp/idle_timeout_ms genfscon sysfs /devices/platform/soc/ae00000.qcom,mdss_mdp/drm/card0/card0-DSI-1/dynamic_fps u:object_r:vendor_sysfs_graphics:s0 genfscon sysfs /devices/platform/soc/ae00000.qcom,mdss_mdp/drm/card0/card0-DSI-1/panel_info u:object_r:vendor_sysfs_graphics:s0 -# Extcon -genfscon sysfs /devices/platform/soc/soc:qcom,msm-ext-disp/extcon u:object_r:sysfs_extcon:s0 -genfscon sysfs /devices/platform/soc/88e0000.qcom,msm-eud/extcon u:object_r:sysfs_extcon:s0 -genfscon sysfs /devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-00/c440000.qcom,spmi:qcom,pm6150@0:qcom,qpnp-smb5/extcon u:object_r:sysfs_extcon:s0 -genfscon sysfs /devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-00/c440000.qcom,spmi:qcom,pm6150@0:qcom,usb-pdphy@1700/extcon u:object_r:sysfs_extcon:s0 - # Fingerprint genfscon sysfs /devices/platform/soc/soc:fingerprint_fpc/device_prepare u:object_r:vendor_sysfs_fingerprint:s0 genfscon sysfs /devices/platform/soc/soc:fingerprint_fpc/fingerdown_wait u:object_r:vendor_sysfs_fingerprint:s0 From fca2aca9f860e5c0a67e7773c21ae5af59dc8128 Mon Sep 17 00:00:00 2001 From: Jun Wang Date: Thu, 12 May 2022 22:02:43 +0800 Subject: [PATCH 038/110] sweet: properties: Disable Skia tracing by default If the prop "debug.hwui.skia_atrace_enabled" is enabled, too many skia tracing calls will be printed in every frame. This has obvious overhead on performance/power, and can cause many janks. So disable it by default, and user can set it manually if necessary. Change-Id: I5d470b22a643634bdd7db9f307c29deae6ff176f --- properties.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/properties.mk b/properties.mk index 71f2712..2d0fb41 100644 --- a/properties.mk +++ b/properties.mk @@ -235,6 +235,9 @@ vendor.display.enable_optimize_refresh=1 \ vendor.display.qdcm.mode_combine=1 \ vendor.gralloc.disable_ubwc=0 +PRODUCT_SYSTEM_PROPERTIES += \ +debug.hwui.skia_atrace_enabled=false + PRODUCT_PRODUCT_PROPERTIES += \ ro.sf.force_hwc_brightness=1 From 3a93e7e8d618b54452d7cea98229bbe90fc781ae Mon Sep 17 00:00:00 2001 From: Jake Weinstein Date: Mon, 28 Nov 2022 14:53:58 +0900 Subject: [PATCH 039/110] sweet: properties: Force pre-5.10 devices to treat 170M as sRGB in SF Bug: 229442032 Test: builds, boots Change-Id: If144724a342be4a74f823aa25ff8a74fe3d2843a --- properties.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/properties.mk b/properties.mk index 2d0fb41..e8628ec 100644 --- a/properties.mk +++ b/properties.mk @@ -214,6 +214,7 @@ debug.sf.enable_hwc_vds=1 \ debug.sf.enable_transaction_tracing=false \ debug.sf.latch_unsignaled=1 \ debug.sf.predict_hwc_composition_strategy=0 \ +debug.sf.treat_170m_as_sRGB=1 \ persist.sys.sf.color_saturation=1.0 \ ro.hardware.egl=adreno \ ro.hardware.vulkan=adreno \ From 9980ab80c16b61b2a245080cf14f13176045d328 Mon Sep 17 00:00:00 2001 From: Pulkit077 Date: Thu, 20 Apr 2023 15:21:53 +0530 Subject: [PATCH 040/110] sweet: update blobs from LA.QSSI.13.0.r1-09700-qssi.0 & LA.UM.9.1.r1-12900-SMxxx0.0 - CNE - CACert - DPM - Graphics (Adreno, Vulkan and Postprocessing) - QMI - Radio - TEEC Signed-off-by: Pulkit077 --- proprietary-files.txt | 757 ++++++++++++++++++++++-------------------- 1 file changed, 388 insertions(+), 369 deletions(-) diff --git a/proprietary-files.txt b/proprietary-files.txt index 4140980..97d95b1 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -138,67 +138,67 @@ vendor/lib64/libcdsprpc_system.so vendor/lib64/libmdsprpc.so vendor/lib64/libsdsprpc.so -# CNE -vendor/app/CneApp/CneApp.apk -vendor/app/IWlanService/IWlanService.apk -vendor/bin/cnd -vendor/etc/cne/wqeclient/ATT/ATT_profile1.xml -vendor/etc/cne/wqeclient/ATT/ATT_profile2.xml -vendor/etc/cne/wqeclient/ATT/ATT_profile3.xml -vendor/etc/cne/wqeclient/ATT/ATT_profile4.xml -vendor/etc/cne/wqeclient/ATT/ATT_profile5.xml -vendor/etc/cne/wqeclient/ATT/ATT_profile6.xml -vendor/etc/cne/wqeclient/ROW/ROW_profile1.xml -vendor/etc/cne/wqeclient/ROW/ROW_profile15.xml -vendor/etc/cne/wqeclient/ROW/ROW_profile16.xml -vendor/etc/cne/wqeclient/ROW/ROW_profile17.xml -vendor/etc/cne/wqeclient/ROW/ROW_profile18.xml -vendor/etc/cne/wqeclient/ROW/ROW_profile19.xml -vendor/etc/cne/wqeclient/ROW/ROW_profile2.xml -vendor/etc/cne/wqeclient/ROW/ROW_profile20.xml -vendor/etc/cne/wqeclient/ROW/ROW_profile21.xml -vendor/etc/cne/wqeclient/ROW/ROW_profile3.xml -vendor/etc/cne/wqeclient/ROW/ROW_profile32.xml -vendor/etc/cne/wqeclient/ROW/ROW_profile4.xml -vendor/etc/cne/wqeclient/ROW/ROW_profile5.xml -vendor/etc/cne/wqeclient/ROW/ROW_profile6.xml -vendor/etc/cne/wqeclient/ROW/ROW_profile7.xml -vendor/etc/cne/wqeclient/VZW/VZW_profile1.xml -vendor/etc/cne/wqeclient/VZW/VZW_profile2.xml -vendor/etc/cne/wqeclient/VZW/VZW_profile3.xml -vendor/etc/cne/wqeclient/VZW/VZW_profile4.xml -vendor/etc/cne/wqeclient/VZW/VZW_profile5.xml -vendor/etc/cne/wqeclient/VZW/VZW_profile6.xml -vendor/etc/cne/mwqem.conf -vendor/etc/cne/profileMwqem.xml -vendor/etc/default-permissions/com.qualcomm.qti.cne.xml -vendor/etc/init/cnd.rc -vendor/lib64/libcne.so -vendor/lib64/libcneapiclient.so -vendor/lib64/libcneoplookup.so -vendor/lib64/libcneqmiutils.so -vendor/lib64/libwms.so -vendor/lib64/libwqe.so -vendor/lib64/libxml.so -vendor/lib64/vendor.qti.data.factory@2.0.so -vendor/lib64/vendor.qti.data.factory@2.1.so -vendor/lib64/vendor.qti.data.factory@2.2.so -vendor/lib64/vendor.qti.data.factory@2.3.so -vendor/lib64/vendor.qti.data.mwqem@1.0.so -vendor/lib64/vendor.qti.data.slm@1.0.so -vendor/lib64/vendor.qti.hardware.data.cne.internal.api@1.0.so -vendor/lib64/vendor.qti.hardware.data.cne.internal.constants@1.0.so -vendor/lib64/vendor.qti.hardware.data.cne.internal.server@1.0.so -vendor/lib64/vendor.qti.hardware.data.connection@1.0.so -vendor/lib64/vendor.qti.hardware.data.connection@1.1.so -vendor/lib64/vendor.qti.hardware.data.dynamicdds@1.0.so -vendor/lib64/vendor.qti.hardware.data.iwlan@1.0.so -vendor/lib64/vendor.qti.hardware.data.latency@1.0.so -vendor/lib64/vendor.qti.hardware.data.lce@1.0.so -vendor/lib64/vendor.qti.hardware.data.qmi@1.0.so -vendor/lib64/vendor.qti.hardware.mwqemadapter@1.0.so -vendor/lib64/vendor.qti.latency@2.0.so -vendor/lib64/vendor.qti.latency@2.1.so +# CNE - from LA.UM.9.1.r1-12900-SMxxx0.0 +vendor/app/CneApp/CneApp.apk|345dc6c677e9bd7a7d36033b8955e90d2a1594d5 +vendor/app/IWlanService/IWlanService.apk|9ea57bfbf58799a564fcf498de9f5fe3506f7342 +vendor/bin/cnd|d33924372818ad112e5ddeec719aadbf33fd4ef2 +vendor/etc/cne/wqeclient/ATT/ATT_profile1.xml|578f3f8f56059bfdbef926bcc68d01c15e06951f +vendor/etc/cne/wqeclient/ATT/ATT_profile2.xml|1fb42c672a12b6660bdce3ea94e0c43719dd9de8 +vendor/etc/cne/wqeclient/ATT/ATT_profile3.xml|f88e13f1dd7b82388c90358f71813026370c9ed8 +vendor/etc/cne/wqeclient/ATT/ATT_profile4.xml|fb08e04f57797c5684bf734f7ce4bb4968859b18 +vendor/etc/cne/wqeclient/ATT/ATT_profile5.xml|eb726ad1a42b9b78b9ee3b821fc108611bc9eeac +vendor/etc/cne/wqeclient/ATT/ATT_profile6.xml|be97b46b0d07ee2f6ebcc677d8099ed2140d5d85 +vendor/etc/cne/wqeclient/ROW/ROW_profile1.xml|e7ca213d0998cb3a6a603ad3eca7bda69830ff55 +vendor/etc/cne/wqeclient/ROW/ROW_profile15.xml|0130dfd8326ee710bf4e15718ede87c49a85b763 +vendor/etc/cne/wqeclient/ROW/ROW_profile16.xml|e05b935d7ccf48d306b71c719b2e4df83187d9c0 +vendor/etc/cne/wqeclient/ROW/ROW_profile17.xml|f1b33204799268eda78dd8314f26abf2e37431e2 +vendor/etc/cne/wqeclient/ROW/ROW_profile18.xml|19db16f62dabb806a62f192858a9d52b5bc2a064 +vendor/etc/cne/wqeclient/ROW/ROW_profile19.xml|1fcc57b1fa4dbbc7d250e8dd92acf1527d447eb3 +vendor/etc/cne/wqeclient/ROW/ROW_profile2.xml|169a5209000e357a1a3183e8e5bfdf6fd07c2787 +vendor/etc/cne/wqeclient/ROW/ROW_profile20.xml|7be0614cf0116c39b736c58fe5eca36838aeb3db +vendor/etc/cne/wqeclient/ROW/ROW_profile21.xml|cc62517e6c37e12ee1ebebbb27f9c22878749be3 +vendor/etc/cne/wqeclient/ROW/ROW_profile3.xml|4be4060e8ac2d9fcea490feec7938cadcff46e1f +vendor/etc/cne/wqeclient/ROW/ROW_profile32.xml|b87542b9284efe4c2bd0ae868bb9a765c2c3dbc5 +vendor/etc/cne/wqeclient/ROW/ROW_profile4.xml|f88e13f1dd7b82388c90358f71813026370c9ed8 +vendor/etc/cne/wqeclient/ROW/ROW_profile5.xml|96101f6b01436a02572c67a469ff67ccfb738874 +vendor/etc/cne/wqeclient/ROW/ROW_profile6.xml|cef14ff8a160c7ad719b85d024a4b3301c3638d0 +vendor/etc/cne/wqeclient/ROW/ROW_profile7.xml|8d6773a4c418d0dcc4dc9096017d2681c7a1defe +vendor/etc/cne/wqeclient/VZW/VZW_profile1.xml|c89d3c062790b442cbe941cafc641a4e322f2d59 +vendor/etc/cne/wqeclient/VZW/VZW_profile2.xml|ba14a9df975cf872ed0cbe28bee8fac63cd848d4 +vendor/etc/cne/wqeclient/VZW/VZW_profile3.xml|9b123d81c9b8991499cda33b0706810e0c8fb974 +vendor/etc/cne/wqeclient/VZW/VZW_profile4.xml|ff91feb5060a6df07e3e4d9bc99ae58bccad7649 +vendor/etc/cne/wqeclient/VZW/VZW_profile5.xml|f76c894f3c6d5b6ed35113a088dc3174c900501b +vendor/etc/cne/wqeclient/VZW/VZW_profile6.xml|14d136e7fcc682311757d3edc0b9d3eaeba11815 +vendor/etc/cne/mwqem.conf|c42ad47b34b511075e5dfb9047d32f881fe0c159 +vendor/etc/cne/profileMwqem.xml|947917691684584b7e2ddf3588cd6f8e99f3804f +vendor/etc/default-permissions/com.qualcomm.qti.cne.xml|c63c37d067e3009735fbc54d4603d43d7d6623e1 +vendor/etc/init/cnd.rc|3a5183df3479500fb729493bc56c71166fc10bce +vendor/lib64/libcne.so|29b01f953c70ab3caa70056abdfc6732b6e1e01a +vendor/lib64/libcneapiclient.so|0973dc05f6d6d9c469fc804693af79e6f3a5056a +vendor/lib64/libcneoplookup.so|60d6abe85061de4fa75e5e4f69d477f37f1f8f64 +vendor/lib64/libcneqmiutils.so|c2e2658698eb8b312ca6b28c1a1088a331bb28b9 +vendor/lib64/libwms.so|1c06f999f2aec3bd58237d4892fee0cec40469fd +vendor/lib64/libwqe.so|79e58584614ca98773122e9dfa976caf366d2cc5 +vendor/lib64/libxml.so|ba84f9d5cfa40a1a2c2cf67221f6547eedca1bbe +vendor/lib64/vendor.qti.data.factory@2.0.so|748bfbaa57a409b8962e2b1725e1415e423a7315 +vendor/lib64/vendor.qti.data.factory@2.1.so|bb1f3fa22563282ee24bf03ca681fdc45551feef +vendor/lib64/vendor.qti.data.factory@2.2.so|6951ff98d20902678e8af584c7b4cf89e360f31b +vendor/lib64/vendor.qti.data.factory@2.3.so|e9992039c400ef5fb57db62e108873a219348b4c +vendor/lib64/vendor.qti.data.mwqem@1.0.so|cde93c45f93a82091513d31535f188569dda89fe +vendor/lib64/vendor.qti.data.slm@1.0.so|0b5e88dfdb4fd0fb3c890f0aa3405ef268814da9 +vendor/lib64/vendor.qti.hardware.data.cne.internal.api@1.0.so|e4d002e61b2d6a4d3826e0563ee16cac74696833 +vendor/lib64/vendor.qti.hardware.data.cne.internal.constants@1.0.so|f87a303f7a092c4d18b7db91d5162a777c920817 +vendor/lib64/vendor.qti.hardware.data.cne.internal.server@1.0.so|7d80cd3bda9fd34dd1629116124579e5a4a787f5 +vendor/lib64/vendor.qti.hardware.data.connection@1.0.so|39bf1d748c3bb90d38be5d031dcd0024b1f2bb2f +vendor/lib64/vendor.qti.hardware.data.connection@1.1.so|702dd62c50c91446de473f32e31da3a85ba0aea9 +vendor/lib64/vendor.qti.hardware.data.dynamicdds@1.0.so|4494ebdbbcfa79a0ed5ac3445cf0e2e417742bc1 +vendor/lib64/vendor.qti.hardware.data.iwlan@1.0.so|e67ecee0938f81d3241a5acf140d7fc7d24db469 +vendor/lib64/vendor.qti.hardware.data.latency@1.0.so|c433c73b5469b787cb7fb70b05b83190b319edd6 +vendor/lib64/vendor.qti.hardware.data.lce@1.0.so|80d8502e6458ecf0883a029c2777c24574d29485 +vendor/lib64/vendor.qti.hardware.data.qmi@1.0.so|851db5940d5e9e4330e16221be114aef14f52325 +vendor/lib64/vendor.qti.hardware.mwqemadapter@1.0.so|c041dbfc99643e791e52c4e7f3a87050a8cd6c93 +vendor/lib64/vendor.qti.latency@2.0.so|60ab3143325e855f8c72e3f603c28efe2e7227b9 +vendor/lib64/vendor.qti.latency@2.1.so|47f0d25338274af94764be9d39eabef8cf5ca790 # Camera vendor/lib64/camera/com.qti.sensor.sweet_gc02m1.so @@ -450,11 +450,11 @@ vendor/etc/camera/watermark_font_2300_3199.dat # Camera Firmware vendor/firmware/CAMERA_ICP.elf -# Certificate Authority -vendor/app/CACertService/CACertService.apk -vendor/lib64/libcacertclient.so -vendor/lib64/libjnihelper.so -vendor/lib64/vendor.qti.hardware.cacert@1.0.so +# Certificate Authority - from LA.UM.9.1.r1-12900-SMxxx0.0 +vendor/app/CACertService/CACertService.apk|b1072f129d588b5c5aefa8824b6d531586a26755 +vendor/lib64/libcacertclient.so|69ae73b9be13507ff39398ac5813ad709b8b7c32 +vendor/lib64/libjnihelper.so|ae2919dbdbfa489ebeb584674663e908c4cfb9a5 +vendor/lib64/vendor.qti.hardware.cacert@1.0.so|1633c31212d1ea9338b79ebfc2476f83424f36ee # Charger vendor/bin/hvdcp_opti @@ -471,25 +471,27 @@ vendor/lib64/hw/vendor.qti.hardware.capabilityconfigstore@1.0-impl.so vendor/lib/hw/consumerir.default.so vendor/lib64/hw/consumerir.default.so -# DPM -framework/tcmclient.jar -system_ext/bin/dpmd -system_ext/etc/dpm/dpm.conf -system_ext/etc/init/dpmd.rc -system_ext/etc/permissions/com.qti.dpmframework.xml -system_ext/etc/permissions/dpmapi.xml -system_ext/framework/com.qti.dpmframework.jar -system_ext/framework/dpmapi.jar -system_ext/lib64/com.qualcomm.qti.dpm.api@1.0.so -system_ext/lib64/libdpmctmgr.so -system_ext/lib64/libdpmfdmgr.so -system_ext/lib64/libdpmframework.so -system_ext/lib64/libdpmtcm.so -system_ext/priv-app/dpmserviceapp/dpmserviceapp.apk -vendor/bin/dpmQmiMgr -vendor/etc/init/dpmQmiMgr.rc -vendor/lib64/com.qualcomm.qti.dpm.api@1.0.so -vendor/lib64/libdpmqmihal.so +# DPM - from LA.QSSI.13.0.r1-09700-qssi.0 +system/framework/tcmclient.jar|0402c82a800b58a2e93fd7cb8e81a24e674ebc35 +system_ext/bin/dpmd|d098df72c60697de359a80d6377689d98fb11221 +system_ext/etc/dpm/dpm.conf|95e27da8c989e96c6faea6f0697bce11955b62a5 +system_ext/etc/init/dpmd.rc|738b638ff04cda368e22c03e16baf90ba157a6fc +system_ext/etc/permissions/com.qti.dpmframework.xml|c4b7ad0879d00c1eba4f3fe3a88ddb8aa153629a +system_ext/etc/permissions/dpmapi.xml|255903759a60a31c0876ec004e74554c753270fe +system_ext/framework/com.qti.dpmframework.jar|06871af3c26d8357a250276948112d8eae105e01 +system_ext/framework/dpmapi.jar|556f859768e370414eb91b0e5aaab619d655e2d8 +system_ext/lib64/com.qualcomm.qti.dpm.api@1.0.so|62e5bfe5c7525844a828e89360fde9694a7cdf96 +system_ext/lib64/libdpmctmgr.so|9d13e5ae9882f5b7e6ac31a9d073a66a27d1c465 +system_ext/lib64/libdpmfdmgr.so|b705b098462e1198fc24175732d687142cc26562 +system_ext/lib64/libdpmframework.so|c3d8d6f1745c19d29466e9de823ff56f9f8f6993 +system_ext/lib64/libdpmtcm.so|57b6c42d581305d8ef16aa127cd4cd1672d2e7f1 +system_ext/priv-app/dpmserviceapp/dpmserviceapp.apk|326a31fc02361fc81a3542959a83d61a5b79abed + +# DPM - from LA.UM.9.1.r1-12900-SMxxx0.0 +vendor/bin/dpmQmiMgr|61a421804559b0e461439c19088acc01b871982a +vendor/etc/init/dpmQmiMgr.rc|1538743661a5c48c15cd105beaad20f72953885a +vendor/lib64/com.qualcomm.qti.dpm.api@1.0.so|d9f1aa7f93b928f42499d613d20ccbc60f279097 +vendor/lib64/libdpmqmihal.so|41eb89e66ba065c43a5eb79cd3c72cef0ee167aa # DRM vendor/bin/qseecomd @@ -785,65 +787,65 @@ vendor/bin/hw/android.hardware.gatekeeper@1.0-service-qti vendor/etc/init/android.hardware.gatekeeper@1.0-service-qti.rc vendor/lib64/hw/android.hardware.gatekeeper@1.0-impl-qti.so -# Graphics - from hanoip S2RI32.32-20-7 -vendor/lib/egl/eglSubDriverAndroid.so|07f8ae50ed02fa107219bf49f02c93a8720366bf -vendor/lib/egl/libEGL_adreno.so|e6382c9115d5d471c32c010fc50dcbbf6a523d1f +# Graphics - from LA.UM.9.1.r1-12900-SMxxx0.0 +vendor/lib/egl/eglSubDriverAndroid.so|dd4d0a030c41dd2d02e20060272db86a54b7a6a0 +vendor/lib/egl/libEGL_adreno.so|1d06e312354df4013d940774453105085b60ca8c vendor/lib/egl/libGLESv1_CM_adreno.so|715f3463528f1e74ffa02627ee5916a09e0748f5 -vendor/lib/egl/libGLESv2_adreno.so|0bde422aac3719a52dafef39ffda1406db2b959c +vendor/lib/egl/libGLESv2_adreno.so|d48b62fe6cb01aa4e90c38627382a6d7a4f2e071 vendor/lib/egl/libq3dtools_adreno.so|9ec9c053592e58be935e8ae5e0a9d362c101773a -vendor/lib/egl/libq3dtools_esx.so|8804515311b8c3b07ef3f8e72995b8c7297f1c46 +vendor/lib/egl/libq3dtools_esx.so|0377e50034bf934d1d087e8a5d1df2f9d406a302 vendor/lib/libC2D2.so|91f015cad79024fdbb6a5603cce48693e58a4510 -vendor/lib/libCB.so|8159b5e2b3510db92ba3f0b2fc8445b4dee34fa2 -vendor/lib/libOpenCL.so|087fe776117a61287e2301061feeeb060ebb60a9 -vendor/lib/libVkLayer_q3dtools.so|bb83d028ff697f3697a9295825b7387779db674b -vendor/lib/libadreno_app_profiles.so|63349072a208b3833887d28962d620547061bc87 -vendor/lib/libadreno_utils.so|1ab5eba1b8df146055ab896e08f53da1fbf91828 -vendor/lib/libc2d30_bltlib.so|9977576a557bef02de296e742a4eeecc711fad9c -vendor/lib/libgpudataproducer.so|7c12a4f31253d2099778cd574561b090c9240a4b -vendor/lib/libgsl.so|91806d6e7973fc8c443b5067b3a0f7a709f2d13b -vendor/lib/libllvm-glnext.so|a7f9195adca1e472af8fc896f8af91687a4c80dd -vendor/lib/libllvm-qcom.so|2f896317139accdb781c3a1a208525f062862983 -vendor/lib64/egl/eglSubDriverAndroid.so|9dac5b2c3d9ad28daf85137faa020546ce9f2905 -vendor/lib64/egl/libEGL_adreno.so|e7a43ed0337890618bb6881460c51def05a1500f +vendor/lib/libCB.so|d92d057f27db12a90dd7886eccf3a5e8bf693c97 +vendor/lib/libOpenCL.so|7e06bf784e1c4e1b89dbe811b038efcc7c1221a0 +vendor/lib/libVkLayer_q3dtools.so|d4c0fc987b6fce4392d5a1e786fee70affc36a01 +vendor/lib/libadreno_app_profiles.so|ee15487a5f917173b2e2fc933c251a17b79dd0c1 +vendor/lib/libadreno_utils.so|b31a86288dccf104f439e358c2f5502c69f11ae6 +vendor/lib/libc2d30_bltlib.so|cd66b979896c3bfb978ce8a48b9fb7b5c4052962 +vendor/lib/libgpudataproducer.so|a5529f26954dcd875c2b68298a5d2a882bcb503f +vendor/lib/libgsl.so|a135ca0824736cbda99510af79064c1be5064c03 +vendor/lib/libllvm-glnext.so|8ebbc260656596c5ba8e2f57aa12c45f4ee8c9c1 +vendor/lib/libllvm-qcom.so|2b06486f87dc21f834297837e85dd8fe49d5348e +vendor/lib64/egl/eglSubDriverAndroid.so|4dc13b1af636689ff825ca98f077d4ada60ed0dd +vendor/lib64/egl/libEGL_adreno.so|bc3f435342068f4164a9c54dfb5ac8644f488268 vendor/lib64/egl/libGLESv1_CM_adreno.so|0a2a648ca2dcd887ea62860bbfa2ef397f01d42d -vendor/lib64/egl/libGLESv2_adreno.so|bc50c5ed04d366c7eed145d51f1dd22a40960d30 +vendor/lib64/egl/libGLESv2_adreno.so|d47cb289042ea0f11063bbb2b02c534f7006516c vendor/lib64/egl/libq3dtools_adreno.so|189b9c3d400c6a98c87582b8df0910530cba6d44 -vendor/lib64/egl/libq3dtools_esx.so|0f88c7955ad0a5c716da239c1a5dbd56605ae486 +vendor/lib64/egl/libq3dtools_esx.so|ada4ae2588622b8f57610c19ccd602f489068f80 vendor/lib64/libC2D2.so|175115cc36fd471f9eb83af76be21b5f602b9460 -vendor/lib64/libCB.so|4d8c46e56fa8c426050ccc1aeee4ae7e22852d6b -vendor/lib64/libOpenCL.so|0c5d889028ecb59ed9bb0c7522094dbebc468954 -vendor/lib64/libVkLayer_q3dtools.so|f72e09d4915e27c5b9a36c48ba482baca7438000 -vendor/lib64/libadreno_app_profiles.so|1dfc3e93520c771417dcb4210e886fc395169a53 -vendor/lib64/libadreno_utils.so|56b1d1b127eb571a584caf2ba12d5d069e9aed71 -vendor/lib64/libgpudataproducer.so|8d1b97e65e63bb8a0c37af54f38053028d9fcab9 -vendor/lib64/libgsl.so|906445697a01e905f6b94136b1993694396e76db -vendor/lib64/libllvm-glnext.so|eaf5143a2aad128e86094cd3b65717efb7381a78 -vendor/lib64/libllvm-qcom.so|512c0db7ea845f992f382e53da4ca4c988dc5837 - -# Graphics (Postprocessing) -vendor/bin/hw/vendor.display.color@1.0-service -vendor/bin/ppd -vendor/etc/init/vendor.display.color@1.0-service.rc -vendor/lib/libdisp-aba.so -vendor/lib/libdisplayqos.so -vendor/lib/libdpps.so -vendor/lib/vendor.display.color@1.0.so -vendor/lib/vendor.display.color@1.1.so -vendor/lib/vendor.display.color@1.2.so -vendor/lib/vendor.display.color@1.3.so -vendor/lib/vendor.display.color@1.4.so -vendor/lib/vendor.display.color@1.5.so -vendor/lib/vendor.display.postproc@1.0.so -vendor/lib64/libdisp-aba.so -vendor/lib64/libdisplayqos.so -vendor/lib64/libdpps.so -vendor/lib64/vendor.display.color@1.0.so -vendor/lib64/vendor.display.color@1.1.so -vendor/lib64/vendor.display.color@1.2.so -vendor/lib64/vendor.display.color@1.3.so -vendor/lib64/vendor.display.color@1.4.so -vendor/lib64/vendor.display.color@1.5.so -vendor/lib64/vendor.display.postproc@1.0.so +vendor/lib64/libCB.so|701dd9fe6954a061ce4ff0e5416e6afd100dede8 +vendor/lib64/libOpenCL.so|5aecd08fbf5470c2ff467f2e54fb513c592d6272 +vendor/lib64/libVkLayer_q3dtools.so|795d6328e506a8bc42ac7038e1686ab06663704c +vendor/lib64/libadreno_app_profiles.so|2a8e7ee309252e60228f05aa9362fc2e42463336 +vendor/lib64/libadreno_utils.so|3963aef4cd45e887917e2a976ba316e39d7effac +vendor/lib64/libgpudataproducer.so|16b80b1740d85781f46f3ab3967dab919cc142a3 +vendor/lib64/libgsl.so|bcf7ae11a0eaff37b87fae743336ada147f6f9af +vendor/lib64/libllvm-glnext.so|8b56a8e6068618db2642f0742b92d0b21bd9ef8d +vendor/lib64/libllvm-qcom.so|ab38c1cf4fd025c19aadee386e170d407f454f56 + +# Graphics (Postprocessing) - from LA.UM.9.1.r1-12900-SMxxx0.0 +vendor/bin/hw/vendor.display.color@1.0-service|91e9e25ec4d64c4a7d5261899ca2cdb9cf29b695 +vendor/bin/ppd|8bb89d7a1c3fc8fd93796f70842d3c94d6393f86 +vendor/etc/init/vendor.display.color@1.0-service.rc|5ad673f879b3685a0e79b5633437e5499cb94f48 +vendor/lib/libdisp-aba.so|539ac8ff89fd51fa0ce8a11d9c476843291392bc +vendor/lib/libdisplayqos.so|1c01c72ca8e3ce28d3b0fb716e4d7ed21af44875 +vendor/lib/libdpps.so|1bb5671731090c152320f5aa5811e6fb5f380618 +vendor/lib/vendor.display.color@1.0.so|1d72874b7202e73c82f8c2289630dd2d1da9f179 +vendor/lib/vendor.display.color@1.1.so|92790fb471d20ed760ebd8b09686ca98c0d4ba1f +vendor/lib/vendor.display.color@1.2.so|9a5d6d171edd03b0c58ea29696aa2a92c9a0c23d +vendor/lib/vendor.display.color@1.3.so|cf8d57bb11d74c67a943ed4c159bd4e46ee33836 +vendor/lib/vendor.display.color@1.4.so|937d140c33b71a4719fd511383b7221df35754a2 +vendor/lib/vendor.display.color@1.5.so|29aa6d4393b45d43787467a29327019ff2e08104 +vendor/lib/vendor.display.postproc@1.0.so|30413585059bf990c40b659c38dbfd102acb8605 +vendor/lib64/libdisp-aba.so|44993853ff9d4340e856e6f53d802f10372442d3 +vendor/lib64/libdisplayqos.so|5548732c916e629f18f45ce257ce843b679a136a +vendor/lib64/libdpps.so|a9d4e3806a433b9dfc7cb49556efa9fc65389e75 +vendor/lib64/vendor.display.color@1.0.so|09cb45881528c6d4675754c88c108f30dd1da12a +vendor/lib64/vendor.display.color@1.1.so|3cf0d256372bd418462326e6067b4e1213226194 +vendor/lib64/vendor.display.color@1.2.so|8184e5d3e404864b1a1518b4d4e2012a5839660b +vendor/lib64/vendor.display.color@1.3.so|bf47fb1402d767d466b8c979bc977041e6b68753 +vendor/lib64/vendor.display.color@1.4.so|45ecd22ef8753543a92a853aaddc9bd43fa95c1f +vendor/lib64/vendor.display.color@1.5.so|4e6d3f0f86b991a19824228fe18c956b45392142 +vendor/lib64/vendor.display.postproc@1.0.so|86ef4e868f7abb95d555a4d086a8c4193920803f # Graphics (SDM) vendor/lib/libhdr_tm.so @@ -860,9 +862,9 @@ vendor/lib64/libsdmcore.so vendor/lib64/libsdmextension.so vendor/lib64/libtinyxml2_1.so -# Graphics (vulkan) - from hanoip S2RI32.32-20-7 -vendor/lib/hw/vulkan.adreno.so|3111afef634cdabcd20f2db66a9f5d7c7ae439ee -vendor/lib64/hw/vulkan.adreno.so|b65f4b27bd946fc5950b7b6b039205ac877e5bfd +# Graphics (vulkan) - from LA.UM.9.1.r1-12900-SMxxx0.0 +vendor/lib/hw/vulkan.adreno.so|eb44067de1b12fb5ecd4f99eb810e7a3395979f0 +vendor/lib64/hw/vulkan.adreno.so|645840e711a880303bdea638ad664b349022cd2a # IRQ balance vendor/bin/msm_irqbalance @@ -974,220 +976,236 @@ vendor/lib64/vendor.qti.hardware.alarm@1.0.so # QCV-Utils vendor/lib64/libsoc_helper.so -# QMI -system_ext/etc/permissions/qti_libpermissions.xml -system_ext/etc/permissions/qti_permissions.xml -system_ext/lib/libqmi_cci_system.so -system_ext/lib/libqmi_encdec_system.so -system_ext/lib64/libqmi_cci_system.so -system_ext/lib64/libqmi_encdec_system.so -vendor/bin/irsc_util -vendor/bin/pd-mapper -vendor/bin/qrtr-ns -vendor/lib/libdsutils.so -vendor/lib/libidl.so -vendor/lib/libmdmdetect.so -vendor/lib/libpdmapper.so -vendor/lib/libqmi.so -vendor/lib/libqmi_cci.so -vendor/lib/libqmi_client_helper.so -vendor/lib/libqmi_client_qmux.so -vendor/lib/libqmi_common_so.so -vendor/lib/libqmi_csi.so -vendor/lib/libqmi_encdec.so -vendor/lib/libqmiservices.so -vendor/lib/libqrtr.so -vendor/lib/libqsocket.so -vendor/lib64/libdsutils.so -vendor/lib64/libidl.so -vendor/lib64/libmdmdetect.so -vendor/lib64/libpdmapper.so -vendor/lib64/libqmi.so -vendor/lib64/libqmi_cci.so -vendor/lib64/libqmi_client_helper.so -vendor/lib64/libqmi_client_qmux.so -vendor/lib64/libqmi_common_so.so -vendor/lib64/libqmi_csi.so -vendor/lib64/libqmi_encdec.so -vendor/lib64/libqmiservices.so -vendor/lib64/libqrtr.so -vendor/lib64/libqsocket.so - -# Radio -system_ext/app/QtiTelephonyService/QtiTelephonyService.apk -#system_ext/app/datastatusnotification/datastatusnotification.apk -system_ext/app/embms/embms.apk -system_ext/etc/permissions/embms.xml -system_ext/etc/permissions/qcrilhook.xml -system_ext/etc/permissions/telephony_system-ext_privapp-permissions-qti.xml -system_ext/framework/embmslibrary.jar -system_ext/framework/qcrilhook.jar -system_ext/priv-app/qcrilmsgtunnel/qcrilmsgtunnel.apk -vendor/bin/hw/qcrild -vendor/bin/adpl -vendor/bin/netmgrd -vendor/bin/port-bridge -vendor/bin/qti -vendor/bin/rmt_storage -vendor/bin/tftp_server -vendor/etc/data/dsi_config.xml -vendor/etc/data/netmgr_config.xml -vendor/etc/init/dataadpl.rc -vendor/etc/init/dataqti.rc -vendor/etc/init/ipa_fws.rc -vendor/etc/init/netmgrd.rc -vendor/etc/init/port-bridge.rc -vendor/etc/init/qcrild.rc -vendor/etc/init/vendor.qti.rmt_storage.rc -vendor/etc/init/vendor.qti.tftp.rc -vendor/lib/libconfigdb.so -vendor/lib/libdsi_netctrl.so -vendor/lib/liblqe.so -vendor/lib/libnetmgr.so -vendor/lib/libnetmgr_common.so -vendor/lib/libnetmgr_nr_fusion.so -vendor/lib/libnetmgr_rmnet_ext.so -vendor/lib/libpdnotifier.so -vendor/lib/libqmi_legacy.so -vendor/lib/libqcci_legacy.so -vendor/lib/libqcmaputils.so -vendor/lib/libqcrilFramework.so -vendor/lib/libqdi.so -vendor/lib/libqdp.so -vendor/lib/libril-qc-logger.so -vendor/lib/libril-qc-ltedirectdisc.so -vendor/lib/libril-qc-radioconfig.so -vendor/lib/libril-qcril-hook-oem.so -vendor/lib/librilqmiservices.so -vendor/lib/libsettings.so -vendor/lib/libsystem_health_mon.so -vendor/lib/qcrild_librilutils.so -vendor/lib/qtimutex.so -vendor/lib64/libconfigdb.so -vendor/lib64/libdsi_netctrl.so -vendor/lib64/liblqe.so -vendor/lib64/libnetmgr.so -vendor/lib64/libnetmgr_common.so -vendor/lib64/libnetmgr_nr_fusion.so -vendor/lib64/libnetmgr_rmnet_ext.so -vendor/lib64/libnlnetmgr.so -vendor/lib64/libpdnotifier.so -vendor/lib64/libqcci_legacy.so -vendor/lib64/libqmi_legacy.so -vendor/lib64/libqcmaputils.so -vendor/lib64/libqcrilFramework.so -vendor/lib64/libqcrildatactl.so -vendor/lib64/libqdi.so -vendor/lib64/libqdp.so -vendor/lib64/libril-qc-hal-qmi.so -vendor/lib64/libril-qc-logger.so -vendor/lib64/libril-qc-ltedirectdisc.so -vendor/lib64/libril-qc-radioconfig.so -vendor/lib64/libril-qcril-hook-oem.so -vendor/lib64/librilqmiservices.so -vendor/lib64/libsettings.so -vendor/lib64/libsystem_health_mon.so -vendor/lib64/qcrild_librilutils.so -vendor/lib64/qtibus.so -vendor/lib64/qtimutex.so -vendor/lib64/vendor.qti.hardware.radio.am@1.0.so -vendor/lib64/vendor.qti.hardware.radio.atcmdfwd@1.0.so -vendor/lib64/vendor.qti.hardware.radio.internal.deviceinfo@1.0.so -vendor/lib64/vendor.qti.hardware.radio.lpa@1.0.so -vendor/lib64/vendor.qti.hardware.radio.lpa@1.1.so -vendor/lib64/vendor.qti.hardware.radio.qcrilhook@1.0.so -vendor/lib64/vendor.qti.hardware.radio.qtiradio@1.0.so -vendor/lib64/vendor.qti.hardware.radio.qtiradio@2.0.so -vendor/lib64/vendor.qti.hardware.radio.qtiradio@2.1.so -vendor/lib64/vendor.qti.hardware.radio.qtiradio@2.2.so -vendor/lib64/vendor.qti.hardware.radio.qtiradio@2.3.so -vendor/lib64/vendor.qti.hardware.radio.qtiradio@2.4.so -vendor/lib64/vendor.qti.hardware.radio.qtiradio@2.5.so -vendor/lib64/vendor.qti.hardware.radio.qtiradio@2.6.so -vendor/lib64/vendor.qti.hardware.radio.uim@1.0.so -vendor/lib64/vendor.qti.hardware.radio.uim@1.1.so -vendor/lib64/vendor.qti.hardware.radio.uim@1.2.so -vendor/lib64/vendor.qti.hardware.radio.uim_remote_client@1.0.so -vendor/lib64/vendor.qti.hardware.radio.uim_remote_client@1.1.so -vendor/lib64/vendor.qti.hardware.radio.uim_remote_client@1.2.so -vendor/lib64/vendor.qti.hardware.radio.uim_remote_server@1.0.so -vendor/radio/qcril_database/upgrade/0_initial.sql -vendor/radio/qcril_database/upgrade/1_version_intro.sql -vendor/radio/qcril_database/upgrade/2_version_add_wps_config.sql -vendor/radio/qcril_database/upgrade/3_version_update_wps_config.sql -vendor/radio/qcril_database/upgrade/4_version_update_ecc_table.sql -vendor/radio/qcril_database/upgrade/5_version_update_ecc_table.sql -vendor/radio/qcril_database/upgrade/6_version_update_ecc_table.sql -vendor/radio/qcril_database/upgrade/7_version_update_ecc_table.sql -vendor/radio/qcril_database/upgrade/8_version_update_ecc_table.sql -vendor/radio/qcril_database/upgrade/9_version_update_ecc_table.sql -vendor/radio/qcril_database/upgrade/10_version_update_ecc_table.sql -vendor/radio/qcril_database/qcril.db - -# Radio (diag) -system_ext/lib64/libdiag_system.so -system_ext/lib64/vendor.qti.diaghal@1.0.so -vendor/lib/libdiag.so -vendor/lib64/libdiag.so - -# Radio (IMS) -system_ext/lib64/lib-imsvideocodec.so -system_ext/lib64/lib-imsvt.so -system_ext/lib64/lib-imsvtextutils.so -system_ext/lib64/lib-imsvtutils.so -system_ext/lib64/libimscamera_jni.so -system_ext/lib64/libimsmedia_jni.so -system_ext/lib64/vendor.qti.imsrtpservice@3.0.so -system_ext/priv-app/ims/ims.apk -vendor/bin/ims_rtp_daemon -vendor/bin/imsdatadaemon -vendor/bin/imsqmidaemon -vendor/bin/imsrcsd -vendor/etc/init/ims_rtp_daemon.rc -vendor/etc/init/imsdatadaemon.rc -vendor/etc/init/imsqmidaemon.rc -vendor/etc/init/imsrcsd.rc -vendor/etc/seccomp_policy/imsrtp.policy -vendor/lib64/com.qualcomm.qti.imscmservice@1.0.so -vendor/lib64/com.qualcomm.qti.imscmservice@2.0.so -vendor/lib64/com.qualcomm.qti.imscmservice@2.1.so -vendor/lib64/com.qualcomm.qti.imscmservice@2.2.so -vendor/lib64/com.qualcomm.qti.uceservice@2.0.so -vendor/lib64/com.qualcomm.qti.uceservice@2.1.so -vendor/lib64/com.qualcomm.qti.uceservice@2.2.so -vendor/lib64/com.qualcomm.qti.uceservice@2.3.so -vendor/lib64/lib-imscmservice.so -vendor/lib64/lib-imsdpl.so -vendor/lib64/lib-imsqimf.so -vendor/lib64/lib-imsrcs-v2.so -vendor/lib64/lib-imsrcsbaseimpl.so -vendor/lib64/lib-imsvtcore.so -vendor/lib64/lib-imsxml.so -vendor/lib64/lib-rcsconfig.so -vendor/lib64/lib-rtpcommon.so -vendor/lib64/lib-rtpcore.so -vendor/lib64/lib-rtpsl.so -vendor/lib64/lib-siputility.so -vendor/lib64/lib-uceservice.so -vendor/lib64/librcc.so -vendor/lib64/vendor.qti.hardware.radio.ims@1.0.so -vendor/lib64/vendor.qti.hardware.radio.ims@1.1.so -vendor/lib64/vendor.qti.hardware.radio.ims@1.2.so -vendor/lib64/vendor.qti.hardware.radio.ims@1.3.so -vendor/lib64/vendor.qti.hardware.radio.ims@1.4.so -vendor/lib64/vendor.qti.hardware.radio.ims@1.5.so -vendor/lib64/vendor.qti.hardware.radio.ims@1.6.so -vendor/lib64/vendor.qti.hardware.radio.ims@1.7.so -vendor/lib64/vendor.qti.ims.callcapability@1.0.so -vendor/lib64/vendor.qti.ims.callinfo@1.0.so -vendor/lib64/vendor.qti.ims.factory@1.0.so -vendor/lib64/vendor.qti.ims.factory@1.1.so -vendor/lib64/vendor.qti.ims.rcsconfig@1.0.so -vendor/lib64/vendor.qti.ims.rcsconfig@1.1.so -vendor/lib64/vendor.qti.ims.rcsconfig@2.0.so -vendor/lib64/vendor.qti.ims.rcsconfig@2.1.so -vendor/lib64/vendor.qti.imsrtpservice@3.0-service-Impl.so -vendor/lib64/vendor.qti.imsrtpservice@3.0.so +# QMI - from LA.QSSI.13.0.r1-09700-qssi.0 +system_ext/etc/permissions/qti_libpermissions.xml|593bcb72cce68ceb0a70f50bcae7d460114e7c62 +system_ext/etc/permissions/qti_permissions.xml|e6ff4572352b1a4f91b6b9d7cbb1cad9924410a0 +system_ext/lib64/libqmi_cci_system.so|8d744be12b2cf4f78a53eb4fbbd33960c67946a0 +system_ext/lib64/libqmi_encdec_system.so|9dd6142a4c230383f59075b304f88dc11396e492 + +# QMI - from LA.UM.9.1.r1-12900-SMxxx0.0 +vendor/bin/irsc_util|121deb2d6fd21b122c6a8ca8b30ef167f6b90f61 +vendor/bin/pd-mapper|089a733aa7e5afc81c50deb77dea100cfd2ef6c1 +vendor/bin/qrtr-ns|2b84b77bcd50e8c65c2151457f885eb434af4585 +vendor/lib/libdsutils.so|471aa6d37cff3609cf29bf748496e60018ef96e4 +vendor/lib/libidl.so|f91eebf917150514da6c111de6c66805bed3f6c8 +vendor/lib/libmdmdetect.so|0105abde3eead7e5292d1c0823327f0969751e88 +vendor/lib/libpdmapper.so|cd2ed6f056d24fc596f3a7c015db2ed95049bfcb +vendor/lib/libqmi.so|437c5b030705fa1c57afd99ed547a83ffe1a4852 +vendor/lib/libqmi_cci.so|562adb68874a9089532264f18e1c56b6f489f6ff +vendor/lib/libqmi_client_helper.so|7577d836dcbc518a2918cc96db9f86ed0756167f +vendor/lib/libqmi_client_qmux.so|08efbaeb9119d305aacbdfc697d07c192de03abd +vendor/lib/libqmi_common_so.so|ff25aa6185ebf0700fd5c7d913f383bcd09ea866 +vendor/lib/libqmi_csi.so|73749863f412035d1822f58f177ea27b0810387d +vendor/lib/libqmi_encdec.so|d8642bf7e8193db310dafad8116222f3b3d9013a +vendor/lib/libqmiservices.so|a60531847ff655ae54c9e8397d8c5386f00fbca3 +vendor/lib/libqrtr.so|89e9808e264dc47648c18549a4eedc2169b9c6ef +vendor/lib/libqsocket.so|bc42794c439b8a767e87b60071e3827a793218aa +vendor/lib64/libdsutils.so|9a9260a111c41c1d7107eb6fb48c2402257d473f +vendor/lib64/libidl.so|857f7a75a51ade7d3621f7fa6da0e9461244ca01 +vendor/lib64/libmdmdetect.so|4dee2a700aad658f3f30a6da069c867307ed371c +vendor/lib64/libpdmapper.so|67ccdbc6de7c34354745fe5d3e66bb2dee76cc8d +vendor/lib64/libqmi.so|985f400b778c83ab53272144836019a42fb88224 +vendor/lib64/libqmi_cci.so|4d48845f07742c7084920bf8c5a2cfcf7364daec +vendor/lib64/libqmi_client_helper.so|b49679c48c9573f0121637c4f1e1e026c2392b8f +vendor/lib64/libqmi_client_qmux.so|4d74a8417f25617f061160163dca32730608e042 +vendor/lib64/libqmi_common_so.so|d817b576a054dd91e8e4346d73e6d635d221bfde +vendor/lib64/libqmi_csi.so|7e19c2266b7f63f3f9e69c039b1446acd460231b +vendor/lib64/libqmi_encdec.so|a18bb21e5b9b53e3dc8dc45f6e7e65e32a467607 +vendor/lib64/libqmiservices.so|d3f7a54cc94a60286dec89caa2dd843da79b51c4 +vendor/lib64/libqrtr.so|3ea4f27b261a1a5ddeee02e9561dc040ddb26514 +vendor/lib64/libqsocket.so|3fa01c9aff6ed96a5ea9886c7696a046c929e339 + +# Radio - from LA.QSSI.13.0.r1-09700-qssi.0 +system_ext/app/QtiTelephonyService/QtiTelephonyService.apk|38701f94dca753199cbff47b338a71851a3280bf +system_ext/app/embms/embms.apk|8c55c180078e4b54abc922cc6762299d6cb6a918 +system_ext/etc/permissions/embms.xml|22e7474091f9f71f02dd0cfc76cfa8848a46f079 +system_ext/etc/permissions/qcrilhook.xml|30397e293b2c40e6b7a1d11c2a615cdd05de625a +system_ext/etc/permissions/telephony_system-ext_privapp-permissions-qti.xml|a7e114ea1e6909685ce49717a2b5b66d8275d419 +system_ext/framework/embmslibrary.jar|6fd7f060af0bb76dba317b58cef9b51e0a37a6cc +system_ext/framework/qcrilhook.jar|8d44048c04f4d38a6bf6a279e3bceface10c0dde +system_ext/priv-app/qcrilmsgtunnel/qcrilmsgtunnel.apk|e3cf3ab60bf632270eccc4e99ead89254d3d84ab + +# Radio - from LA.UM.9.1.r1-12900-SMxxx0.0 +vendor/bin/hw/qcrild|77d0168fbad7db01eec8abd9df25f19c05411eb4 +vendor/bin/adpl|7a0f18e1762bb972e87c4a21a787f56f15ebeb1b +vendor/bin/netmgrd|9827c715565263148c71fd8f15d153d834de6337 +vendor/bin/port-bridge|157facd409756b20bd9eb850c30b8d009efc71f4 +vendor/bin/qti|415d66b2cf1a7bf8fd3a5b471a6f52b02643f0bb +vendor/bin/rmt_storage|0e1489af178344c9a42338e7cb52f2cdd7ace573 +vendor/bin/tftp_server|e923ea529ac0000e4c5b5de1d887d39f26876004 +vendor/etc/data/dsi_config.xml|85f76668d6b6f87402c534f284c286676edefa93 +vendor/etc/data/netmgr_config.xml|f5d263abc394c1a770d7464b86c5b0c590523c9b +vendor/etc/init/dataadpl.rc|cd4907d9bfd438fe5f5c86f5d6cec590ac0bac2a +vendor/etc/init/dataqti.rc|6abfd1a850d782adbbb6f42c9d8ca870036b2ad1 +vendor/etc/init/ipa_fws.rc|f1826b81077f51470c97781823f109f12361ac8b +vendor/etc/init/netmgrd.rc|5c592bd2cf775462e147d3def97e99abbac4631e +vendor/etc/init/port-bridge.rc|e52d61a0de5e8a3b21bfbfca929e862422645377 +vendor/etc/init/qcrild.rc|17cf4934bf443cf6469d8b3ff622eeb0e4a0aac6 +vendor/etc/init/vendor.qti.rmt_storage.rc|bc212c6353c2ded44ae4d759605fbbe55aa4fa3f +vendor/etc/init/vendor.qti.tftp.rc|b27f188cbffba470a4510d50e46ff7c8446c22cb +vendor/lib/libconfigdb.so|1e665e3d4c55ba091f6603222f698405acdd08e4 +vendor/lib/libdsi_netctrl.so|dd53f399dfeaa28dced32e2e22d6c580610b9310 +vendor/lib/liblqe.so|93d0bb357d8a46c9024af442e5885a01b6506ecc +vendor/lib/libnetmgr.so|3d3a7f8aeccb2a6bca0612be72b2ae54dc6e48be +vendor/lib/libnetmgr_common.so|fcedcfd9b890fd03f45b32b8b1f46d80e43bf05f +vendor/lib/libnetmgr_nr_fusion.so|4d5e49c053409d2432c35dac11ff05ec77fdda79 +vendor/lib/libnetmgr_rmnet_ext.so|6d8417f9bc775e56f776f790347443b4387704de +vendor/lib/libpdnotifier.so|6d6b4584006634ed15efef09c95b3ae3eb05cbfb +vendor/lib/libqmi_legacy.so|7805ed3a940405d88d4b7dd29516c68ee19c5b08 +vendor/lib/libqcci_legacy.so|be14a3ba29cf4dc9fce1f7a51fb02cb775b16f1c +vendor/lib/libqcmaputils.so|3e7eed66d16443749fd8eb15b6dbb194e7000805 +vendor/lib/libqcrilFramework.so|0c15e9e2175b04ce1371420a0b29552109008979 +vendor/lib/libqdi.so|3b3532c94f3447457467523d1147ddc6973b1bae +vendor/lib/libqdp.so|c3d8caefdb7f78fee95b571a827f14613de59155 +vendor/lib/libril-qc-logger.so|2a7e271c7e71143dabf5125ca8f866189eed05e9 +vendor/lib/libril-qc-ltedirectdisc.so|8d9c234066dadaca5e3e8a6125bca0b4f86de534 +vendor/lib/libril-qc-radioconfig.so|8281b0fbc75eb0803c1f3d24d9b8e3ceceb1c1e7 +vendor/lib/libril-qcril-hook-oem.so|adf7cd9f2b8ef22273abed67710263777e0be18f +vendor/lib/librilqmiservices.so|01ece1b7185760d5cc07b20a784b25e0ccfa8078 +vendor/lib/libsettings.so|400e16d43dca1be2dd889f8fc5cfbe3b423ed67e +vendor/lib/libsystem_health_mon.so|773607a534b86db7d01c6a5e05e29498a6d7992f +vendor/lib/qcrild_librilutils.so|63c94ee5d4378fcf036d60543500529fc6382f11 +vendor/lib/qtimutex.so|f2571a01a3bd9dbee8a45a815f09f8aefa5d9bc6 +vendor/lib64/libconfigdb.so|8d825670cba528efe3c9e65216825c49aaee38bb +vendor/lib64/libdsi_netctrl.so|cbcb7e1d782f4719b3fe1f8212447df87672d045 +vendor/lib64/liblqe.so|e8ab8469737a88c0334acfc099a234cd43ea447d +vendor/lib64/libnetmgr.so|7be84d104ca9916202fd7f05704653a09386f2f3 +vendor/lib64/libnetmgr_common.so|d9cb685a481ab5d5c4fdb105b203848d1db0fd8f +vendor/lib64/libnetmgr_nr_fusion.so|20190a7d4b72256f3d9040fab81d3e2212656c4d +vendor/lib64/libnetmgr_rmnet_ext.so|1000e8b6d18fcce18f8f13b39e3a9207a93a991f +vendor/lib64/libnlnetmgr.so|230fdf3b3246fec6e9a31c44bbf39ef267603cdd +vendor/lib64/libpdnotifier.so|f7921455da0719e073a7bcc5ce851ff9e43e79d4 +vendor/lib64/libqcci_legacy.so|0e78c75ce59453a09cc1d6bcba0507cab9ae663a +vendor/lib64/libqmi_legacy.so|f324c6701ecf78ff50975c0bc7f99aea09cb3539 +vendor/lib64/libqcmaputils.so|4271e28543306040ec22fa9e2f42f09a513457a4 +vendor/lib64/libqcrilFramework.so|7d3a2dc8b2f010bfa887deb79f4a05f4473a6951 +vendor/lib64/libqcrildatactl.so|6f7c9bce8fc62fd00c9bf527895089332500fd92 +vendor/lib64/libqdi.so|08eaf3c7640ff06f06827f4e89a110f71f126eae +vendor/lib64/libqdp.so|55cabaf9021a8f8f22b76ba7f8dca7299c0b21ab +vendor/lib64/libril-qc-hal-qmi.so|f6b18fbbc2cc16834b34aa7a18f4ff0b21826bdf +vendor/lib64/libril-qc-logger.so|c3a3d02b10de4da0358ae497d3dbd2ce9c7e2a8e +vendor/lib64/libril-qc-ltedirectdisc.so|6deb30e7d00bdde840dad2df382d4c7489567c79 +vendor/lib64/libril-qc-radioconfig.so|0baf2a37113680030ce3158c725e4eb1c31283ce +vendor/lib64/libril-qcril-hook-oem.so|63a96306fddd3e16129a0ce26be8e82137960279 +vendor/lib64/librilqmiservices.so|ad3512fa14ca5231fed6926d48b94633cebb8adf +vendor/lib64/libsettings.so|4e66d88cd28fab413b2830192bed7e5782eb1e02 +vendor/lib64/libsystem_health_mon.so|2cc55d78ea00b9fe8af9cd88fd8ef8c31ee5f494 +vendor/lib64/qcrild_librilutils.so|f12ebc05420621d930ffe7f4b4859117e3c9fc35 +vendor/lib64/qtibus.so|cef56e2d40f69b6b6c60b93edb612744395f7359 +vendor/lib64/qtimutex.so|026d9acf29b23ab0419abfe3066bd4c9f13bf7ae +vendor/lib64/vendor.qti.hardware.radio.am@1.0.so|3d84dfd841e6bc918b8e92f3e8f4e45d2051708b +vendor/lib64/vendor.qti.hardware.radio.atcmdfwd@1.0.so|ed5b893fc89f0f754bc0377ee8c02bd0b88157d7 +vendor/lib64/vendor.qti.hardware.radio.internal.deviceinfo@1.0.so|fc4ababd2cc8ff9f1f253194a5998a0596cf83aa +vendor/lib64/vendor.qti.hardware.radio.lpa@1.0.so|cff3174157c2a536e1d4b69b2cd43e4c2c873f5d +vendor/lib64/vendor.qti.hardware.radio.lpa@1.1.so|9164fa7d396bb8acb6abd5c703e4a840149b3812 +vendor/lib64/vendor.qti.hardware.radio.lpa@1.2.so|ff82aa5e007728edfe1e24e73b1ea0c50d805f2c +vendor/lib64/vendor.qti.hardware.radio.qcrilhook@1.0.so|f293c5742455dd7873138472f0ab3c0ba2affd8b +vendor/lib64/vendor.qti.hardware.radio.qtiradio@1.0.so|5112fa42a11ee4ab128f8c78e8c807712c9866a1 +vendor/lib64/vendor.qti.hardware.radio.qtiradio@2.0.so|36bfbb8f0d97269ee53f554ad9287f648879545a +vendor/lib64/vendor.qti.hardware.radio.qtiradio@2.1.so|e2bd17fefec0df2e55c188c6842268eda8a2edae +vendor/lib64/vendor.qti.hardware.radio.qtiradio@2.2.so|c9f2b8047fae40f4d72f11160c6ac0963ce58630 +vendor/lib64/vendor.qti.hardware.radio.qtiradio@2.3.so|8d8ca1344b1116273e40d98c251cad36e95ca7a5 +vendor/lib64/vendor.qti.hardware.radio.qtiradio@2.4.so|afc8812c3eee1fce085bf224a22166654b75c1be +vendor/lib64/vendor.qti.hardware.radio.qtiradio@2.5.so|37645f528cd92a2ea487a6ba925b667c4c29eb0a +vendor/lib64/vendor.qti.hardware.radio.qtiradio@2.6.so|e8115942c8e041f2f594018d8a2a018103a5fcb5 +vendor/lib64/vendor.qti.hardware.radio.qtiradio@2.7.so|6f642585f2708cd47257d48f4d56dcd7cea6a8e2 +vendor/lib64/vendor.qti.hardware.radio.uim@1.0.so|5bfd666e62aed31a272ea2f7cd6e699778aeec92 +vendor/lib64/vendor.qti.hardware.radio.uim@1.1.so|74cd56e716d8401e87a9f0914f4840539bdc30d4 +vendor/lib64/vendor.qti.hardware.radio.uim@1.2.so|cfdfdd616ff0704809f2ec37b1c9e94b8ffb77a1 +vendor/lib64/vendor.qti.hardware.radio.uim_remote_client@1.0.so|5ec80005a20a2ef66bae99801f2ba060c7e204bb +vendor/lib64/vendor.qti.hardware.radio.uim_remote_client@1.1.so|663b65448ec8f5972337e1bbdc08ef5d4b08e8fa +vendor/lib64/vendor.qti.hardware.radio.uim_remote_client@1.2.so|3ffb7301b6c185b114157c5423de604e5ba93ade +vendor/lib64/vendor.qti.hardware.radio.uim_remote_server@1.0.so|75a58827c0b4e06e2ca8163b6a904dab2af3be6a +vendor/radio/qcril_database/upgrade/0_initial.sql|e00b243261d8941802bdea9d4e659dc5e927c216 +vendor/radio/qcril_database/upgrade/1_version_intro.sql|67b96cb3e94737bfe271b2519b9eb5fae17373a2 +vendor/radio/qcril_database/upgrade/2_version_add_wps_config.sql|b4a825ba20fea3e2f20c7f02c8bd64596c24a75e +vendor/radio/qcril_database/upgrade/3_version_update_wps_config.sql|0571aacaf9fc0868c48bba2f7542f5b4e68c9022 +vendor/radio/qcril_database/upgrade/4_version_update_ecc_table.sql|0734c6a2863edadc7a8422b8310d267c594d11a0 +vendor/radio/qcril_database/upgrade/5_version_update_ecc_table.sql|fcb2cba3bfd718ecdc8d3cfac3a0b2b2c7e8c506 +vendor/radio/qcril_database/upgrade/6_version_update_ecc_table.sql|0fdf4b6ccb48906b37885e060429f79c9fd6bdbf +vendor/radio/qcril_database/upgrade/7_version_update_ecc_table.sql|9a76d5747da2876b87b214579c9d74ae92d218d7 +vendor/radio/qcril_database/upgrade/8_version_update_ecc_table.sql|a0603a5c46e8e67f78bdb42f2b246ecc6a37cecd +vendor/radio/qcril_database/upgrade/9_version_update_ecc_table.sql|4701219a79190995eda651e5c45e11c9b111a478 +vendor/radio/qcril_database/upgrade/10_version_update_ecc_table.sql|1ca05b047116cbc776f71d3bdba4952b18b04229 +vendor/radio/qcril_database/upgrade/11_version_update_ecc_table.sql|ab2580e3e25fb02936eb760cba85f3b6139b8d34 +vendor/radio/qcril_database/qcril.db|5256b3d5cce46578507abc978c4be1febcf513b9 + +# Radio (diag) - from LA.QSSI.13.0.r1-09700-qssi.0 +system_ext/lib64/libdiag_system.so|d7894c7954c21cbef216a977c91e5e71f86387aa +system_ext/lib64/vendor.qti.diaghal@1.0.so|92555fd8ae83569d61a26ea3ab33e3f2d89a5729 + +# Radio (diag) - from LA.UM.9.1.r1-12900-SMxxx0.0 +vendor/lib/libdiag.so|94d20d63203eb134bcc4deb484b71dae174414e2 +vendor/lib64/libdiag.so|3007e1709a4713b0ab6abd76b10c3a822c436c61 + +# Radio (IMS) - from LA.QSSI.13.0.r1-09700-qssi.0 +system_ext/app/ImsRcsService/ImsRcsService.apk|1808781bcabdec3db97fd19cfe0365a1040178c1 +system_ext/priv-app/ims/ims.apk|5690534155879d101cbe323456b01f29cb97b8b4 +system_ext/etc/permissions/vendor.qti.ims.rcsservice.xml|7ce9e6ccb5026b0aa87b0eb94a20448e2d4c481c +system_ext/framework/vendor.qti.ims.factory-V1.0-java.jar|ec58d15adf1930c4dcfb59e209a4bcf8d230a756 +system_ext/framework/vendor.qti.ims.factory-V1.1-java.jar|3218cd7bba1dd0e0a140d93d252b96b8e2c81ae5 +system_ext/framework/vendor.qti.ims.factory-V2.0-java.jar|ae7015efe55d17b1caf0da0c2247dac6cfaaa272 +system_ext/framework/vendor.qti.ims.factory-V2.1-java.jar|137f296405fd5f8c036c511f1d186e7178c5d57f +system_ext/framework/vendor.qti.ims.factory-V2.2-java.jar|70dbc40c581103970402959342ea250b6a1fb84b +system_ext/lib64/lib-imsvideocodec.so|b66ccec78025517c86ad9fb3cf03d083e62fe6f9 +system_ext/lib64/lib-imsvt.so|72996b22f4cff56d676b258be8fff8ad93ecdf22 +system_ext/lib64/lib-imsvtextutils.so|1dfb5640cd23a92e7ca55a84118b2966653aebc7 +system_ext/lib64/lib-imsvtutils.so|67ce2fc38fbf819e397b19e1ff46c70183e890d2 +system_ext/lib64/libimscamera_jni.so|a21333fa8f338acaa4996f74a0e29145f77d5299 +system_ext/lib64/libimsmedia_jni.so|d1b4c03352a9b34f4d26a4fe3a8595f295c7cef8 +system_ext/lib64/vendor.qti.imsrtpservice@3.0.so|ace5e02b6cd79b43a07d84e2d18d6818821a3c48 +system_ext/lib64/vendor.qti.imsrtpservice@3.1.so|e64aa8a21a8db69d2e2ea14929bb20ced99c119d + +# Radio (IMS) - from LA.UM.9.1.r1-12900-SMxxx0.0 +vendor/bin/ims_rtp_daemon|7cd0297294c08becd429698defc6c4a603a3e0e3 +vendor/bin/imsdatadaemon|a181601efe9e8b95fabd79e46fba30beaf98e4a4 +vendor/bin/imsqmidaemon|7a1cd7e31cc835709ff7d7282e6f1e6f5baa689d +vendor/bin/imsrcsd|bf29aac14856f29268c01599e5f6c7c6ae520685 +vendor/etc/init/ims_rtp_daemon.rc|06510e936890f51aeb76f2cf3ed5dbe45e67ac20 +vendor/etc/init/imsdatadaemon.rc|29face37c174aebcd1358f7d7ad0bd4baf83063b +vendor/etc/init/imsqmidaemon.rc|dda16d842b7c65296e97bc9921b723a43b152ba3 +vendor/etc/init/imsrcsd.rc|2dc42ff6e4b6dd389bd3bc9a7af30dec2f1a45df +vendor/etc/seccomp_policy/imsrtp.policy|fb5f1f63dbc3a002ac0f203cce3b8d3434752fa2 +vendor/lib64/com.qualcomm.qti.imscmservice@1.0.so|a761618b9364baa8f502acebb704829134e41afe +vendor/lib64/com.qualcomm.qti.imscmservice@2.0.so|4762336f206fd903503c8d6efd3ee7140286dfca +vendor/lib64/com.qualcomm.qti.imscmservice@2.1.so|e96b00cf21b879b8944a3425c0689d88103046dc +vendor/lib64/com.qualcomm.qti.imscmservice@2.2.so|eda70b402593516893a31490a22a9a985cf6241c +vendor/lib64/com.qualcomm.qti.uceservice@2.0.so|45c69806bb6041451a50b38d63231a7fa5c98780 +vendor/lib64/com.qualcomm.qti.uceservice@2.1.so|271bc984ab857afafaa00cfb37530d51fef51df0 +vendor/lib64/com.qualcomm.qti.uceservice@2.2.so|a550be95337ed6e56f6ed7374f9f97b1ae5f4085 +vendor/lib64/com.qualcomm.qti.uceservice@2.3.so|e3fd16a1a26a94a25a4ecf604557c7626a3d02f3 +vendor/lib64/lib-imscmservice.so|e3559e804359dd90cda664e2fc415a1d2f42d29b +vendor/lib64/lib-imsdpl.so|714eed21c9bfb43b1e833f9535a4f13f76bc5227 +vendor/lib64/lib-imsqimf.so|10ffc4446e54d107352930a9f8eb61c529a99f3d +vendor/lib64/lib-imsrcs-v2.so|2540323ae0e0b464a5bd0919bc661ab0ecd39e11 +vendor/lib64/lib-imsrcsbaseimpl.so|1ea676f264f9c0c53aefb1f3cd3e94cc6c56a55a +vendor/lib64/lib-imsvtcore.so|dfcab407085c841b08d26586a3588aa97760b625 +vendor/lib64/lib-imsxml.so|b6c0d3e2613448e651f55438a461091da0934ec8 +vendor/lib64/lib-rcsconfig.so|1f5835503371c6a7ae86e920b2aa50c7e3bd77ac +vendor/lib64/lib-rtpcommon.so|7f93e15152c17e875db49a46926a3f3dd4b63cbf +vendor/lib64/lib-rtpcore.so|83c81e5863b1e3aaa218cb157eb3342bf9888dc2 +vendor/lib64/lib-rtpsl.so|5b666bdb137ffb51fc39151858259879b59cccfc +vendor/lib64/lib-siputility.so|7f16208e32d761ca09f4afffa63311d7d96275cb +vendor/lib64/lib-uceservice.so|f19e6a0f2a788acc5b887fdfcf4652a5742911ca +vendor/lib64/librcc.so|acf6cf877771e4e6ac8ec32031d7b2586d7bf082 +vendor/lib64/vendor.qti.hardware.radio.ims@1.0.so|c8fb9453407ca3086b079c7d6c505fa1f3cd24f6 +vendor/lib64/vendor.qti.hardware.radio.ims@1.1.so|a524969ab3a03182b4199fcd315971a2b80b6eb4 +vendor/lib64/vendor.qti.hardware.radio.ims@1.2.so|e9efd54965aed691fcfc2946a0d314f3a02e76e1 +vendor/lib64/vendor.qti.hardware.radio.ims@1.3.so|4366a244c9d96ffcab5efc37b4f964538f469ee5 +vendor/lib64/vendor.qti.hardware.radio.ims@1.4.so|efebb8dfcf630b81282bd705e3a38c2c883de58c +vendor/lib64/vendor.qti.hardware.radio.ims@1.5.so|e933c35ab5e109c2647d38fbf9ea7f562d063fe8 +vendor/lib64/vendor.qti.hardware.radio.ims@1.6.so|ffe8a8d579da1bc14465cd2f425ad3d0e4406b27 +vendor/lib64/vendor.qti.hardware.radio.ims@1.7.so|4e473ba6aff58d1dbc8f65232b8a4017101aca06 +vendor/lib64/vendor.qti.ims.callcapability@1.0.so|40bea84fa6fcc19591f7fe115962cdf7301e4970 +vendor/lib64/vendor.qti.ims.callinfo@1.0.so|d65de10f8e1ceddd1e6c9c3f2bd210ccb2f04750 +vendor/lib64/vendor.qti.ims.factory@1.0.so|21c91c2aea181c6bb0f66790fd82944dcf117a6d +vendor/lib64/vendor.qti.ims.factory@1.1.so|b4c803a2d5f3bc7a1de93957d163405168308db4 +vendor/lib64/vendor.qti.ims.rcsconfig@1.0.so|94c1552fd129d24f454843d5174fcbd4524b5992 +vendor/lib64/vendor.qti.ims.rcsconfig@1.1.so|91521d031060612dbf53d4a6437eba56780c768a +vendor/lib64/vendor.qti.ims.rcsconfig@2.0.so|bd0db76d555c51971dcfcce62d981f987af32811 +vendor/lib64/vendor.qti.ims.rcsconfig@2.1.so|f52f0cd5e19455eba97dea61542217d4aa5c1841 +vendor/lib64/vendor.qti.imsrtpservice@3.0-service-Impl.so|4fc84ea2ec56396fa1d6daa9c8f06b227be403a4 +vendor/lib64/vendor.qti.imsrtpservice@3.0.so|460e589128fce0b0e83bb3c75aa32f7e1a9494fd # Sensors vendor/bin/sensors.qti @@ -1325,20 +1343,21 @@ vendor/lib/vendor.xiaomi.hardware.touchfeature@1.0.so vendor/lib64/hw/vendor.xiaomi.hardware.touchfeature@1.0-impl.so vendor/lib64/vendor.xiaomi.hardware.touchfeature@1.0.so -# Trusted Execution Environment connector -vendor/bin/hw/vendor.qti.hardware.qteeconnector@1.0-service -vendor/etc/init/vendor.qti.hardware.qteeconnector@1.0-service.rc -vendor/lib/hw/vendor.qti.hardware.qteeconnector@1.0-impl.so -vendor/lib/libGPQTEEC_vendor.so -vendor/lib/libGPTEE_vendor.so -vendor/lib/libQTEEConnector_listener.so -vendor/lib/libQTEEConnector_vendor.so -vendor/lib/vendor.qti.hardware.qteeconnector@1.0.so -vendor/lib64/hw/vendor.qti.hardware.qteeconnector@1.0-impl.so -vendor/lib64/libGPQTEEC_vendor.so -vendor/lib64/libGPTEE_vendor.so -vendor/lib64/libQTEEConnector_vendor.so -vendor/lib64/vendor.qti.hardware.qteeconnector@1.0.so +# Trusted Execution Environment connector - from LA.UM.9.1.r1-12900-SMxxx0.0 +vendor/bin/hw/vendor.qti.hardware.qteeconnector@1.0-service|4167b12a9f09c52a4dc1555f243dec17051b8a23 +vendor/etc/init/vendor.qti.hardware.qteeconnector@1.0-service.rc|c966350ee67d3a7c73ca7184e3725264025d16f5 +vendor/lib/hw/vendor.qti.hardware.qteeconnector@1.0-impl.so|d8a8e56d560ee933ff6d71a64aea10fbaacf09e6 +vendor/lib/libGPQTEEC_vendor.so|5b561c1e3eec00bc7687c374b5f83857aab8bdbc +vendor/lib/libGPTEE_vendor.so|2100cb45e7621c8e1737afc1b88bcb1b0b4a1784 +vendor/lib/libQTEEConnector_listener.so|8bc4cf04da673484c149781e9573d21dadccc900 +vendor/lib/libQTEEConnector_vendor.so|cb3f54e37d1f065d40e6fdeb251781e320d48dfd +vendor/lib/vendor.qti.hardware.qteeconnector@1.0.so|4921d65bc8530777b5590c4d16ec953abbb04dd8 +vendor/lib64/hw/vendor.qti.hardware.qteeconnector@1.0-impl.so|8447345452fb3cdc687e7ec67612d9626983b033 +vendor/lib64/libGPQTEEC_vendor.so|d70f659c06a38dbae028f41ca6e0dece0ef1d5cd +vendor/lib64/libGPTEE_vendor.so|92c0215dbd3271e597d536c259df44aac716a402 +vendor/lib64/libQTEEConnector_listener.so|e0518df708415861bf8fa88cda401a38ddf22bac +vendor/lib64/libQTEEConnector_vendor.so|30e5fd8d4fff50083f44f6d0bd09f4bd287a8366 +vendor/lib64/vendor.qti.hardware.qteeconnector@1.0.so|4e08dcd830d319c1a56d108c037b1f76eb5060d4 # Trusted User Interface vendor/bin/hw/vendor.qti.hardware.tui_comm@1.0-service-qti From d092209f54b901d1c0ab88f0359dd359cd3a5bfc Mon Sep 17 00:00:00 2001 From: Pulkit077 Date: Fri, 21 Apr 2023 15:40:12 +0530 Subject: [PATCH 041/110] Revert "sweet: properties: Fix camera interface on ViLTE calls" - Fixed now This reverts commit 82e2d47d75a3a5ccfedcea2393a659210d8ba676. Signed-off-by: Pulkit077 --- properties.mk | 3 --- 1 file changed, 3 deletions(-) diff --git a/properties.mk b/properties.mk index e8628ec..267d0b1 100644 --- a/properties.mk +++ b/properties.mk @@ -365,9 +365,6 @@ persist.dbg.volte_avail_ovr=1 \ persist.dbg.vt_avail_ovr=1 \ persist.dbg.wfc_avail_ovr=1 -PRODUCT_PROPERTY_OVERRIDES += \ -persist.vendor.qti.telephony.vt_cam_interface=2 - # WiFi PRODUCT_PROPERTY_OVERRIDES += \ wifi.aware.interface=wifi-aware0 From 4c9dc28354a17baf241e8706255b90ed43fa5f3d Mon Sep 17 00:00:00 2001 From: Pulkit077 Date: Mon, 20 Mar 2023 19:28:42 +0530 Subject: [PATCH 042/110] sweet: update GPS blobs from hanoip S2RIS32.32-20-7-7 Signed-off-by: Pulkit077 --- proprietary-files.txt | 89 +++++++++++++++++++++---------------------- 1 file changed, 44 insertions(+), 45 deletions(-) diff --git a/proprietary-files.txt b/proprietary-files.txt index 97d95b1..273e01e 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -736,51 +736,50 @@ vendor/firmware/ipa_fws.b04 vendor/firmware/ipa_fws.elf vendor/firmware/ipa_fws.mdt -# GPS -vendor/bin/hw/android.hardware.gnss@2.1-service-qti -vendor/bin/loc_launcher -vendor/bin/lowi-server -vendor/bin/slim_daemon -vendor/bin/xtra-daemon -vendor/etc/init/android.hardware.gnss@2.1-service-qti.rc -vendor/etc/vintf/manifest/android.hardware.gnss@2.1-service-qti.xml -vendor/etc/vintf/manifest/vendor.qti.gnss@4.0-service.xml -vendor/etc/seccomp_policy/gnss@2.0-base.policy -vendor/etc/seccomp_policy/gnss@2.0-xtra-daemon.policy -vendor/etc/seccomp_policy/gnss@2.0-xtwifi-client.policy -vendor/etc/seccomp_policy/gnss@2.0-xtwifi-inet-agent.policy -vendor/lib64/hw/android.hardware.gnss@2.1-impl-qti.so -vendor/lib64/hw/vendor.qti.gnss@4.0-impl.so -vendor/lib64/libbatching.so -vendor/lib64/libcdfw.so -vendor/lib64/libcdfw_remote_api.so -vendor/lib64/libdataitems.so -vendor/lib64/libgdtap.so -vendor/lib64/libgeofencing.so -vendor/lib64/libgnss.so -vendor/lib64/libgps.utils.so -vendor/lib64/libizat_client_api.so -vendor/lib64/libizat_core.so -vendor/lib64/liblbs_core.so -vendor/lib64/libloc_api_v02.so -vendor/lib64/libloc_core.so -vendor/lib64/libloc_socket.so -vendor/lib64/liblocation_api.so -vendor/lib64/liblocationservice.so -vendor/lib64/liblocationservice_glue.so -vendor/lib64/liblowi_client.so -vendor/lib64/liblowi_wifihal.so -vendor/lib64/libqcc_file_agent.so -vendor/lib64/libxtadapter.so -vendor/lib64/vendor.qti.gnss@1.0.so -vendor/lib64/vendor.qti.gnss@1.1.so -vendor/lib64/vendor.qti.gnss@1.2.so -vendor/lib64/vendor.qti.gnss@2.0.so -vendor/lib64/vendor.qti.gnss@2.1.so -vendor/lib64/vendor.qti.gnss@3.0.so -vendor/lib64/vendor.qti.gnss@4.0-service.so -vendor/lib64/vendor.qti.gnss@4.0.so -vendor/lib64/vendor.qti.hardware.qccsyshal@1.0.so +# GPS - from hanoip S2RIS32.32-20-7-7 +vendor/bin/hw/android.hardware.gnss@2.1-service-qti|e9dc424a2d5c28f7f725444f013605e488b7f73b +vendor/bin/loc_launcher|85abf50f8cd227017ea084a9a2175c9f0fb39413 +vendor/bin/lowi-server|6a78b8e8ff3267277a49f78a7ba11498229ed2fb +vendor/bin/xtra-daemon|a832090f030ac09937d0e47dc55758b4710f6c6e +vendor/etc/init/android.hardware.gnss@2.1-service-qti.rc|d3844699c845ce5de4c8b50548a2095f92dd0235 +vendor/etc/vintf/manifest/android.hardware.gnss@2.1-service-qti.xml|1c344aacaa6d17a1585ba58b2e6d438dcfe31fad +vendor/etc/vintf/manifest/vendor.qti.gnss@4.0-service.xml|6514b13f55abc0acc28e004c35ff93fb972d61a9 +vendor/etc/seccomp_policy/gnss@2.0-base.policy|abafcf09068ec6fa62f8fc11ce6a7f51fe4cfb81 +vendor/etc/seccomp_policy/gnss@2.0-xtra-daemon.policy|3f8e3466eaeb966e57c5b79b688a618295eb4b17 +vendor/etc/seccomp_policy/gnss@2.0-xtwifi-client.policy|45b44cf547358961841aeba728851e32dc0a5230 +vendor/etc/seccomp_policy/gnss@2.0-xtwifi-inet-agent.policy|9c0419bf0a0b4ef129527a9d4c024a624ff34d6e +vendor/lib64/hw/android.hardware.gnss@2.1-impl-qti.so|81eed711640c1e68b6e95032fc98c7a41c727388 +vendor/lib64/hw/vendor.qti.gnss@4.0-impl.so|5bd76bdb98c6ee96c498967f808dd0c79b5f76cd +vendor/lib64/libbatching.so|da85149f1a0c672a14d6cae4ade1b25ca210104a +vendor/lib64/libcdfw.so|70ef0247c71d590b503471a03d4aaa76d99441e9 +vendor/lib64/libcdfw_remote_api.so|faaf6c57e4c1c40d5e604d6932704bf63d883e96 +vendor/lib64/libdataitems.so|17d9b3f9dda9de8d72f9e47e67eaa26a36e850cf +vendor/lib64/libgdtap.so|ad5583ba837678f78c84a7ff64a4fae5a3b1097d +vendor/lib64/libgeofencing.so|59b7b5b0b51533e54aabd4426238dda0a635e741 +vendor/lib64/libgnss.so|cfbb4769a0f3189325a86a083c6436e6fba8d591 +vendor/lib64/libgps.utils.so|f2e251768bb07d2994652ba3cc16dc206415dbf2 +vendor/lib64/libizat_client_api.so|f32ad4073e46dcebeb512caabfcfb1c982463416 +vendor/lib64/libizat_core.so|3b197e431d6b311ec949ba8d2b565aaf45253d26 +vendor/lib64/liblbs_core.so|4d5a91e8dff684189dacc3d9a4f3b41103a53844 +vendor/lib64/libloc_api_v02.so|44e8c5c17f21632954de40ef470f312a0e828dc5 +vendor/lib64/libloc_core.so|5acbfc5c20dfa7e7d15d853fe1d62982886ec271 +vendor/lib64/libloc_socket.so|01322395d5477b9733e71a1408a5cb38fa66e9a7 +vendor/lib64/liblocation_api.so|b0cb30c072fdb7b598d7e498bda69bf771e37574 +vendor/lib64/liblocationservice.so|7bce37feb3d8c5787e51071fbe5ee45e1d273a27 +vendor/lib64/liblocationservice_glue.so|bb5164b333266ced6bcbbbc631e8f1fa8d7c502d +vendor/lib64/liblowi_client.so|59d98f1cfdec67eb0f7115066aeab43e4304c95c +vendor/lib64/liblowi_wifihal.so|db59c80dc7f36b4b6498bea7acea2f9be5234f7c +vendor/lib64/libqcc_file_agent.so|cd70ce305d5036a027060aa989b0dcbcfab8edb6 +vendor/lib64/libxtadapter.so|caf0ca0a97e43a20fcd584e12c280a1654fc6b00 +vendor/lib64/vendor.qti.gnss@1.0.so|7b9184263c7494c91f5811f7de91eef365034cf6 +vendor/lib64/vendor.qti.gnss@1.1.so|4aff58f45ccd00aacce8480d8892a5941bf04a0f +vendor/lib64/vendor.qti.gnss@1.2.so|7561202e43cddc8419465e6d33a4756111e6ce5c +vendor/lib64/vendor.qti.gnss@2.0.so|2e425157e11738a9ae0c951f7e17f689f6afaa55 +vendor/lib64/vendor.qti.gnss@2.1.so|148c38d7bb7f604637ff38d25aed75f412ebea3e +vendor/lib64/vendor.qti.gnss@3.0.so|511a8354bb199b1b4d0d264762bdc078fd9f3e6b +vendor/lib64/vendor.qti.gnss@4.0-service.so|0b3eb02363eed4ef0ad27f51b7a3889ccd032366 +vendor/lib64/vendor.qti.gnss@4.0.so|7ba7853e772806f98fe60243542498a146dfe248 +vendor/lib64/vendor.qti.hardware.qccsyshal@1.0.so|3ff445db2dd2db1a1068fe70a54a6c04fbdd3123 # Gatekeeper vendor/bin/hw/android.hardware.gatekeeper@1.0-service-qti From 8512b6a9fa2a5f45538a06e9f981d8a39be6911b Mon Sep 17 00:00:00 2001 From: Pulkit077 Date: Mon, 20 Mar 2023 19:31:29 +0530 Subject: [PATCH 043/110] sweet: configs: update GPS configs from hanoip S2RIS32.32-20-7-7 Signed-off-by: Pulkit077 --- configs/gps/apdr.conf | 130 +++++++++------- configs/gps/gnss_antenna_info.conf | 135 +++++++++++++++++ configs/gps/gps.conf | 229 +++++++++-------------------- configs/gps/izat.conf | 25 ++-- configs/gps/sap.conf | 38 ++--- 5 files changed, 308 insertions(+), 249 deletions(-) create mode 100644 configs/gps/gnss_antenna_info.conf 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..9a8a5a6 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 = 2 # 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 UEs 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 ################################################ From 61efa7e942be0fc6cf7faa192ca1eb7f95caefd2 Mon Sep 17 00:00:00 2001 From: orges Date: Sun, 24 Jan 2021 16:57:05 +0000 Subject: [PATCH 044/110] sweet: configs: gps: tune down debug log to error only * W LocSvc_ApiV02: reportSv:3396] At least one RF_LOSS is 0 in gps.conf, please configure it. gets spammed very frequently due to non-configured RF LOSS. removing those entries from gps.conf doesn't resolve anything Signed-off-by: orges --- configs/gps/gps.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/gps/gps.conf b/configs/gps/gps.conf index 9a8a5a6..deea1c5 100644 --- a/configs/gps/gps.conf +++ b/configs/gps/gps.conf @@ -31,7 +31,7 @@ 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 = 2 +DEBUG_LEVEL = 1 # Intermediate position report, 1=enable, 0=disable #INTERMEDIATE_POS=0 From e0e920d087a4da2dcbf97020cdc2657649b7653c Mon Sep 17 00:00:00 2001 From: Pulkit077 Date: Sat, 25 Mar 2023 23:13:24 +0530 Subject: [PATCH 045/110] sweet: sepolicy: allow GNSS service to find sensorservice HAL Signed-off-by: Pulkit077 --- sepolicy/vendor/vendor_hal_gnss_qti.te | 1 + 1 file changed, 1 insertion(+) create mode 100644 sepolicy/vendor/vendor_hal_gnss_qti.te diff --git a/sepolicy/vendor/vendor_hal_gnss_qti.te b/sepolicy/vendor/vendor_hal_gnss_qti.te new file mode 100644 index 0000000..7adc4b1 --- /dev/null +++ b/sepolicy/vendor/vendor_hal_gnss_qti.te @@ -0,0 +1 @@ +allow vendor_hal_gnss_qti fwk_sensor_hwservice:hwservice_manager find; From 61f94dcffbbcadd85d90d9752c60a27cebd36c33 Mon Sep 17 00:00:00 2001 From: Pulkit077 Date: Sun, 16 Apr 2023 11:59:18 +0530 Subject: [PATCH 046/110] sweet: update blobs & fingerprint from sweetin V14.0.1.0.TKFINXM - from sweetin-user 13 TKQ1.221013.002 V14.0.1.0.TKFINXM release-keys Signed-off-by: Pulkit077 --- BoardConfig.mk | 2 +- libinit/libinit_sweet.cpp | 8 ++--- proprietary-files.txt | 66 ++++++++++++++++++++------------------- 3 files changed, 39 insertions(+), 37 deletions(-) diff --git a/BoardConfig.mk b/BoardConfig.mk index e181143..d46360e 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -150,7 +150,7 @@ TARGET_SEPOLICY_DIR := msmsteppe -include device/qcom/sepolicy_vndr-legacy-um/SEPolicy.mk # Vendor security patch level -VENDOR_SECURITY_PATCH := 2023-02-01 +VENDOR_SECURITY_PATCH := 2023-03-01 # Verified Boot BOARD_AVB_ENABLE := true diff --git a/libinit/libinit_sweet.cpp b/libinit/libinit_sweet.cpp index f6dad84..0a84632 100644 --- a/libinit/libinit_sweet.cpp +++ b/libinit/libinit_sweet.cpp @@ -17,8 +17,8 @@ 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.10.0.SKFINXM:user/release-keys", - .build_description = "sweetin-user 12 SKQ1.210908.001 V13.0.10.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", .nfc = false, }; @@ -31,8 +31,8 @@ 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.10.0.SKFINXM:user/release-keys", - .build_description = "sweetinpro-user 12 SKQ1.210908.001 V13.0.10.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", .nfc = false, }; diff --git a/proprietary-files.txt b/proprietary-files.txt index 273e01e..b906ff3 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -1,4 +1,4 @@ -# All unpinned blobs below are extracted from miui_SWEETININGlobal_V13.0.10.0.SKFINXM_8af57eaace_12.0 +# All unpinned blobs below are extracted from miui_SWEETININGlobal_V14.0.1.0.TKFINXM_022ce09a45_13.0 # ADSP vendor/bin/adsprpcd @@ -50,48 +50,50 @@ vendor/lib/rfsa/adsp/libdirac-capiv2.so # ANT+ vendor/lib64/hw/com.dsi.ant@1.0-impl.so -# Audio - from sweetin-user 12 SKQ1.210908.001 V13.0.9.0.SKFINXM release-keys -vendor/lib/liba2dpoffload.so|4480175ddca974bc17378095bef8135e2976cc3f -vendor/lib/libacdb-fts.so|080910f9b2907d41ef20d1b1a8422c2efd0dba41 -vendor/lib/libacdbloader.so|9896a3371080253058cf537e796663f9a439d1ca -vendor/lib/libacdbrtac.so|094f5769d7b85117ee7bff08c1cda5b01d8d30fb -vendor/lib/libadiertac.so|772e74b86729e9c5d8667c8cc9fa5e8883c007f0 -vendor/lib/libadm.so|7a1cfba258a1ca590011c2529f620b2db822acc7 -vendor/lib/libaudcal.so|198a2b38f1b1e2e848305efc705b17e77b94c89c -vendor/lib/libaudioalsa.so|b1521744832c14b67095209955e5d8a440c491a7 -vendor/lib/libaudioconfigstore.so|c41f6f6aeb488155f7018f44e452b76fc014b72d -vendor/lib/libaudioparsers.so|68826db8a2cdff81d835ec68573e6df75a7b3304 -vendor/lib/libbatterylistener.so|3e0724379eeef8215027ce32dfd94bdf67cf3745 -vendor/lib/libcirrusspkrprot.so|789015401b024c583ba64cd0dc2f8341e0348721 -vendor/lib/libcomprcapture.so|1d80d60388b465bcd0979fbad007de56db0a3128 -vendor/lib/libdrc.so|b066f176f119847059c5aa148f73e1b042fbeab3 -vendor/lib/libexthwplugin.so|843257b616b1b6d491c82fd17cffb9985e7ea42d -vendor/lib/libhdmiedid.so|c58f84959b45020993551bc31e74e85abf1ff620 -vendor/lib/libhdmipassthru.so|766bca6d2dead0f3288e08c3ef8a46e2d10a1441 -vendor/lib/libhfp.so|371d50d4645ac48529ae75cea399bef05bfa9985 -vendor/lib/libqtigef.so|ef2f0eefe3b8b5e4d4bc559656de8c58cc461c01 -vendor/lib/libsndmonitor.so|a2dab1ced2c2b0e625c8173cca6aee6660ed2a55 -vendor/lib/libspkrprot.so|79642bc38087c32ec9a3d5cd43b81c3df62013df -vendor/lib/libssrec.so|1ab926e961f9b046309715f4dcdbb1a1657406f0 -vendor/lib/libsurround_3mic_proc.so|e8e086123e0c1dc17f008f97edb3611cd4c702e1 +# Audio +vendor/lib/liba2dpoffload.so +vendor/lib/libacdb-fts.so +vendor/lib/libacdbloader.so +vendor/lib/libacdbrtac.so +vendor/lib/libadiertac.so +vendor/lib/libadm.so +vendor/lib/libaudcal.so +vendor/lib/libaudioalsa.so +vendor/lib/libaudioconfigstore.so +vendor/lib/libaudioparsers.so +vendor/lib/libbatterylistener.so +vendor/lib/libcirrusspkrprot.so +vendor/lib/libcomprcapture.so +vendor/lib/libdrc.so +vendor/lib/libexthwplugin.so +vendor/lib/libhdmiedid.so +vendor/lib/libhdmipassthru.so +vendor/lib/libhfp.so +vendor/lib/libqtigef.so +vendor/lib/libsndmonitor.so +vendor/lib/libspkrprot.so +vendor/lib/libssrec.so +vendor/lib/libsurround_3mic_proc.so # Audio (FX modules) system_ext/etc/permissions/audiosphere.xml system_ext/framework/audiosphere.jar vendor/lib/soundfx/libasphere.so -vendor/lib/soundfx/libdirac.so vendor/lib/soundfx/libhwdap.so -vendor/lib/soundfx/libmisoundfx.so vendor/lib/soundfx/libshoebox.so vendor/lib/soundfx/libswgamedap.so vendor/lib/soundfx/libswvqe.so vendor/lib/libdapparamstorage.so -# Audio (Hardware) - from sweetin-user 12 SKQ1.210908.001 V13.0.9.0.SKFINXM release-keys -vendor/lib/hw/audio.primary.sm6150.so|04ee69afccbc9e445fbed47f4e21e5a7969b0cb1 -vendor/lib/vndk/libxlog.so|bdb3d8d8b37bd4e1e84f59d912457690e7388f2e -vendor/lib/libaudio_log_utils.so|007f0e1136d3ca422c9b6c59f7fbcc4588394d87 -vendor/lib/libaudioroute_ext.so|e4083b361cd3047544f412ae972242d8c6f04597 +# Audio (FX modules) - from sweetin-user 12 SKQ1.210908.001 V13.0.10.0.SKFINXM release-keys +vendor/lib/soundfx/libdirac.so|da2c2c47da3e729dc94038cd2953e620499b1fad +vendor/lib/soundfx/libmisoundfx.so|fde0519727e01c38296e4b938714f8501afc629b + +# Audio (Hardware) +vendor/lib/hw/audio.primary.sm6150.so +vendor/lib/vndk/libxlog.so +vendor/lib/libaudio_log_utils.so +vendor/lib/libaudioroute_ext.so # Audio (ACDB) vendor/etc/acdbdata/Forte/Forte_Bluetooth_cal.acdb From 1f1762ecb0a5f1028705bdda6cbca93d2379d023 Mon Sep 17 00:00:00 2001 From: Pulkit077 Date: Sun, 16 Apr 2023 12:20:31 +0530 Subject: [PATCH 047/110] sweet: update blobs & fingerprint from sweet V14.0.1.0.TKFMIXM - from sweet-user 13 TKQ1.221013.002 V14.0.1.0.TKFMIXM release-keys Signed-off-by: Pulkit077 --- libinit/libinit_sweet.cpp | 4 ++-- proprietary-files.txt | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libinit/libinit_sweet.cpp b/libinit/libinit_sweet.cpp index 0a84632..695ae1b 100644 --- a/libinit/libinit_sweet.cpp +++ b/libinit/libinit_sweet.cpp @@ -45,8 +45,8 @@ static const variant_info_t sweet_global_info = { .device = "sweet", .marketname = "Redmi Note 10 Pro", .model = "M2101K6G", - .build_fingerprint = "Redmi/sweet_global/sweet:12/RKQ1.210614.002/V13.0.15.0.SKFMIXM:user/release-keys", - .build_description = "sweet_global-user 12 SKQ1.210908.001 V13.0.15.0.SKFMIXM release-keys", + .build_fingerprint = "Redmi/sweet_global/sweet:13/RKQ1.210614.002/V14.0.1.0.TKFMIXM:user/release-keys", + .build_description = "sweet-user 13 TKQ1.221013.002 V14.0.1.0.TKFMIXM release-keys", .nfc = true, }; diff --git a/proprietary-files.txt b/proprietary-files.txt index b906ff3..7080086 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -383,8 +383,8 @@ vendor/lib64/camera/components/com.xiaomi.node.misegment.so vendor/lib64/camera/components/libdepthmapwrapper.so vendor/lib64/camera/components/libmmcamera_cac3.so -# Camera Components - from sweet-user 12 SKQ1.210908.001 V13.0.15.0.SKFMIXM release-keys -vendor/lib64/camera/com.qti.tuned.sweet_ofilm_s5khm2_wide.bin|ab8ef3bfcfe0383d82510512f9615dd6d24710f1 +# Camera Components - from sweet-user 13 TKQ1.221013.002 V14.0.1.0.TKFMIXM release-keys +vendor/lib64/camera/com.qti.tuned.sweet_ofilm_s5khm2_wide.bin|f6161bd76b75ff3ed2f050edf870a6fc9a18ca91 # Camera Configs vendor/etc/camera/102_SummerDay.png @@ -947,7 +947,7 @@ vendor/lib64/vendor.qti.hardware.vpp@1.3.so vendor/lib/libmmosal.so vendor/lib64/libmmosal.so -# NFC - from sweet-user 12 SKQ1.210908.001 V13.0.15.0.SKFMIXM release-keys +# NFC - from sweet-user 13 TKQ1.221013.002 V14.0.1.0.TKFMIXM release-keys vendor/lib/libpn553_fw.so|ec325ad8028c573638a6f6902c4aec73c4ec00fa # Neural networks From b31f38cebaf1b1f6dde78d0bece641054f1903d6 Mon Sep 17 00:00:00 2001 From: Pulkit077 Date: Sun, 16 Apr 2023 12:31:18 +0530 Subject: [PATCH 048/110] sweet: configs: update from sweetin V14.0.1.0.TKFINXM Signed-off-by: Pulkit077 --- configs/audio/audio/audio_policy_configuration.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configs/audio/audio/audio_policy_configuration.xml b/configs/audio/audio/audio_policy_configuration.xml index e7c2973..b135c31 100644 --- a/configs/audio/audio/audio_policy_configuration.xml +++ b/configs/audio/audio/audio_policy_configuration.xml @@ -159,7 +159,7 @@ + samplingRates="8000,16000,32000,48000" channelMasks="AUDIO_CHANNEL_OUT_MONO"/> @@ -180,7 +180,7 @@ @@ -194,7 +194,7 @@ samplingRates="8000,11025,12000,16000,22050,24000,32000,44100,48000,88200,96000,176400,192000" channelMasks="AUDIO_CHANNEL_IN_5POINT1,AUDIO_CHANNEL_INDEX_MASK_6,AUDIO_CHANNEL_IN_7POINT1,AUDIO_CHANNEL_INDEX_MASK_8"/> - + From 650998f3900da2d7a2283f988b699d5a5cfddc9d Mon Sep 17 00:00:00 2001 From: Pulkit077 Date: Sun, 16 Apr 2023 16:21:29 +0530 Subject: [PATCH 049/110] sweet: properties: update from sweetin V14.0.1.0.TKFINXM Signed-off-by: Pulkit077 --- properties.mk | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/properties.mk b/properties.mk index 267d0b1..344f84e 100644 --- a/properties.mk +++ b/properties.mk @@ -1,8 +1,7 @@ # Audio PRODUCT_PROPERTY_OVERRIDES += \ aaudio.hw_burst_min_usec=2000 \ -aaudio.mmap_exclusive_policy=1 \ -aaudio.mmap_policy=1 \ +aaudio.mmap_exclusive_policy=2 \ af.fast_track_multiplier=1 \ audio.deep_buffer.media=true \ audio.offload.min.duration.secs=30 \ @@ -345,16 +344,6 @@ ro.surface_flinger.max_virtual_display_dimension=4096 \ ro.surface_flinger.protected_contents=true \ ro.surface_flinger.wcg_composition_dataspace=143261696 -# Surfaceflinger -PRODUCT_DEFAULT_PROPERTY_OVERRIDES += \ -debug.sf.use_phase_offsets_as_durations=1 \ -debug.sf.late.sf.duration=15666666 \ -debug.sf.late.app.duration=16666666 \ -debug.sf.early.sf.duration=15666666 \ -debug.sf.early.app.duration=16666666 \ -debug.sf.earlyGl.sf.duration=15666666 \ -debug.sf.earlyGl.app.duration=16666666 - # System PRODUCT_PROPERTY_OVERRIDES += \ persist.sys.binary_xml=false From 6407fed408d2751c64d69172c8d9fc4b603e9c4b Mon Sep 17 00:00:00 2001 From: Pulkit077 Date: Fri, 21 Apr 2023 12:10:12 +0530 Subject: [PATCH 050/110] sweet: overlay: CarrierConfig: update from sweetin V14.0.1.0.TKFINXM - from sweetin-user 13 TKQ1.221013.002 V14.0.1.0.TKFINXM release-keys commits retained: sweet: overlay: CarrierConfig: disable HD Logo Signed-off-by: Pulkit077 --- overlay/CarrierConfig/res/xml/vendor.xml | 203 +++++++ .../CarrierConfig/res/xml/vendor_device.xml | 353 +++++++++++- overlay/CarrierConfig/res/xml/vendor_miui.xml | 504 ++++++++++++++++-- 3 files changed, 994 insertions(+), 66 deletions(-) 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 @@ + + + + + + + + + + + + + + + + + + IPV4V6 + IPV4V6 + + + + + + + + + + + + + + + + + + + + + + + China Broadcasting + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + IPV4V6 + IPV4V6 + + + + + + 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 @@ + IPV4V6 @@ -56,6 +57,10 @@ + + + + @@ -71,18 +76,30 @@ + + + + + + + + + 42020 + + + + + + + - 888 - - - @@ -101,14 +118,17 @@ + + + @@ -118,21 +138,29 @@ + + + + + + + + @@ -146,9 +174,14 @@ + + + + + @@ -163,6 +196,11 @@ + + + + + +351962000000 false @@ -171,7 +209,7 @@ - + *86 @@ -185,6 +223,10 @@ + + + + @@ -231,7 +273,10 @@ - + + + + @@ -291,6 +336,9 @@ + + + @@ -302,6 +350,11 @@ + + + + + @@ -324,6 +377,9 @@ + + + @@ -339,6 +395,7 @@ + @@ -346,6 +403,7 @@ + @@ -353,6 +411,7 @@ + @@ -360,6 +419,7 @@ + @@ -371,6 +431,9 @@ + + + @@ -382,22 +445,30 @@ - + - + + + + + + + + + @@ -417,15 +488,18 @@ + + - + + +64222022002 @@ -433,15 +507,24 @@ - + - + + + + + + + + + + @@ -460,13 +543,20 @@ + + + + + + - + + @@ -474,11 +564,14 @@ - + + + + @@ -491,8 +584,8 @@ - + @@ -514,15 +607,17 @@ - + *99 + + @@ -553,6 +648,7 @@ + @@ -561,6 +657,7 @@ + 22177 @@ -584,6 +681,11 @@ + + + + + 121 @@ -625,17 +727,29 @@ + - + +491793000333 + volte + + + + + + + + + + @@ -668,8 +782,13 @@ + + + + + @@ -678,6 +797,9 @@ 41919 + + + @@ -701,12 +823,22 @@ + + + + + + + + + + @@ -725,6 +857,7 @@ + @@ -769,14 +902,15 @@ + + + - - 171 @@ -786,15 +920,15 @@ - + + + - - 121 @@ -807,6 +941,7 @@ + @@ -820,7 +955,6 @@ - @@ -830,6 +964,8 @@ + + @@ -847,6 +983,11 @@ + + + + + 123 @@ -876,6 +1017,8 @@ + + @@ -888,6 +1031,7 @@ + @@ -901,10 +1045,13 @@ - + + + + @@ -942,6 +1089,11 @@ + + + + + @@ -953,23 +1105,24 @@ - + - + - + + + - 242 @@ -993,6 +1146,10 @@ + + + + @@ -1010,6 +1167,9 @@ + + + @@ -1050,6 +1210,9 @@ + + + @@ -1059,6 +1222,7 @@ voz4g vozwifi + @@ -1106,6 +1270,8 @@ vozwifi + + @@ -1113,6 +1279,8 @@ voz4g vozwifi + + @@ -1128,6 +1296,10 @@ + + + + @@ -1135,6 +1307,7 @@ + @@ -1156,11 +1329,18 @@ voz4g vozwifi + + + + + + + @@ -1172,12 +1352,19 @@ + 171 + + + + + + 171 @@ -1195,6 +1382,7 @@ + @@ -1211,6 +1399,7 @@ + @@ -1235,17 +1424,32 @@ + + + + + + + + + + + + + + + @@ -1253,6 +1457,7 @@ + @@ -1279,21 +1484,32 @@ + volte - + + + + + - + + + + + + + @@ -1314,10 +1530,12 @@ + voz4g vozwifi + @@ -1337,6 +1555,8 @@ + + @@ -1344,19 +1564,27 @@ - + + + + + + + + + @@ -1371,10 +1599,18 @@ + + + + + + + + + - *2747 @@ -1385,6 +1621,7 @@ + *86 @@ -1396,6 +1633,7 @@ + @@ -1410,8 +1648,11 @@ + + + *99 @@ -1424,9 +1665,12 @@ + + *777 + @@ -1444,6 +1688,7 @@ + *555 @@ -1455,9 +1700,17 @@ + - + + + + + + *100 + + *100 @@ -1468,17 +1721,21 @@ + + *555 + + @@ -1502,10 +1759,13 @@ + - - + + + + *77 @@ -1513,6 +1773,10 @@ voz4g vozwifi + + + + @@ -1525,6 +1789,8 @@ + + @@ -1539,6 +1805,8 @@ + + @@ -1553,6 +1821,11 @@ + + + + + *86 @@ -1574,6 +1847,8 @@ + + @@ -1583,6 +1858,10 @@ + + + + @@ -1590,6 +1869,7 @@ + @@ -1642,6 +1922,7 @@ + @@ -1671,6 +1952,21 @@ + + + + + + +436776000 + + + +436776000 + + + +436776000 + + + +436776000 @@ -1702,12 +1998,16 @@ + + + - + + @@ -1748,9 +2048,16 @@ + + + + + + + @@ -1782,9 +2089,14 @@ + + + + + @@ -1825,6 +2137,9 @@ + + + @@ -1842,12 +2157,15 @@ + +48601222222 + + *501 @@ -1865,8 +2183,10 @@ + + @@ -1888,10 +2208,15 @@ + + + + + + - @@ -1899,16 +2224,15 @@ - - - + + +421903333999 @@ -1934,6 +2258,9 @@ + + + @@ -1962,6 +2289,7 @@ + @@ -1991,6 +2319,9 @@ + + + @@ -2014,6 +2345,9 @@ + + + @@ -2042,10 +2376,17 @@ + + + + + + + @@ -2069,11 +2410,16 @@ + + + + + +31624001233 @@ -2088,6 +2434,9 @@ + + + @@ -2120,6 +2469,19 @@ + + + + + + + + + + + + + @@ -2130,16 +2492,19 @@ + + + - - - + + + @@ -2150,6 +2515,7 @@ + @@ -2193,6 +2559,7 @@ + @@ -2214,8 +2581,9 @@ - - + + + @@ -2237,6 +2605,9 @@ + + + @@ -2246,6 +2617,7 @@ + @@ -2255,11 +2627,17 @@ + + + + + + @@ -2272,6 +2650,7 @@ + @@ -2295,14 +2674,10 @@ - - - + - - @@ -2332,6 +2707,7 @@ + @@ -2349,7 +2725,10 @@ - + + + + @@ -2389,23 +2768,34 @@ + + + + + + + 132 + + + + @@ -2422,6 +2812,7 @@ + 1416 +819066514170 @@ -2435,7 +2826,6 @@ - @@ -2446,13 +2836,22 @@ + + + + + + + + + @@ -2485,4 +2884,7 @@ + + + \ No newline at end of file From 8e5bfc72428495c518e500d48a2c3ffd707fb7d0 Mon Sep 17 00:00:00 2001 From: Pulkit077 Date: Sun, 16 Apr 2023 21:12:21 +0530 Subject: [PATCH 051/110] sweet: sepolicy: label back disp_param Signed-off-by: Pulkit077 --- sepolicy/vendor/genfs_contexts | 1 + 1 file changed, 1 insertion(+) diff --git a/sepolicy/vendor/genfs_contexts b/sepolicy/vendor/genfs_contexts index 07f19bc..a2ada52 100644 --- a/sepolicy/vendor/genfs_contexts +++ b/sepolicy/vendor/genfs_contexts @@ -14,6 +14,7 @@ genfscon sysfs /devices/platform/soc/ae00000.qcom,mdss_mdp/idle_state genfscon sysfs /devices/platform/soc/ae00000.qcom,mdss_mdp/idle_timeout_ms u:object_r:vendor_sysfs_graphics:s0 # DisplayFeatureHal +genfscon sysfs /devices/platform/soc/ae00000.qcom,mdss_mdp/drm/card0/card0-DSI-1/disp_param u:object_r:vendor_sysfs_graphics:s0 genfscon sysfs /devices/platform/soc/ae00000.qcom,mdss_mdp/drm/card0/card0-DSI-1/dynamic_fps u:object_r:vendor_sysfs_graphics:s0 genfscon sysfs /devices/platform/soc/ae00000.qcom,mdss_mdp/drm/card0/card0-DSI-1/panel_info u:object_r:vendor_sysfs_graphics:s0 From 7f7efb5979354752962da66f839dc9121eb8460c Mon Sep 17 00:00:00 2001 From: Nauval Rizky Date: Tue, 31 Mar 2020 15:47:13 +0900 Subject: [PATCH 052/110] sweet: parts: Implement dc dimming Squash of the following commits: - parts: Move dc dimming to Settings > Display - parts: Implement dc dimming preference - parts: Disable dc dimming if it's not supported - parts: Add DC-Dimming QS tile - sepolicy: Address DC Dimming denial Co-authored-by: Arian Co-authored-by: Elluzion Change-Id: I048371e23c68eae199b429169866af864cc03daf Signed-off-by: DarkDampSquib Signed-off-by: Pulkit077 --- parts/AndroidManifest.xml | 27 ++++++++ parts/proguard.flags | 4 ++ parts/res/drawable/ic_dc_tile.xml | 8 +++ parts/res/drawable/ic_dcdimming.xml | 9 +++ parts/res/values/strings.xml | 5 ++ parts/res/xml/dcdimming_settings.xml | 32 ++++++++++ .../settings/BootCompletedReceiver.java | 11 ++++ .../display/DcDimmingSettingsActivity.java | 35 +++++++++++ .../display/DcDimmingSettingsFragment.java | 57 +++++++++++++++++ .../display/DcDimmingTileService.java | 61 +++++++++++++++++++ rootdir/etc/init.target.rc | 4 ++ sepolicy/vendor/file_contexts | 1 + sepolicy/vendor/xiaomiparts_app.te | 4 ++ 13 files changed, 258 insertions(+) create mode 100644 parts/res/drawable/ic_dc_tile.xml create mode 100644 parts/res/drawable/ic_dcdimming.xml create mode 100644 parts/res/xml/dcdimming_settings.xml create mode 100644 parts/src/org/lineageos/settings/display/DcDimmingSettingsActivity.java create mode 100644 parts/src/org/lineageos/settings/display/DcDimmingSettingsFragment.java create mode 100644 parts/src/org/lineageos/settings/display/DcDimmingTileService.java diff --git a/parts/AndroidManifest.xml b/parts/AndroidManifest.xml index e44b1ce..a149484 100644 --- a/parts/AndroidManifest.xml +++ b/parts/AndroidManifest.xml @@ -127,5 +127,32 @@ + + + + + + + + + + + + + + + diff --git a/parts/proguard.flags b/parts/proguard.flags index 0f170f5..c735a70 100644 --- a/parts/proguard.flags +++ b/parts/proguard.flags @@ -2,6 +2,10 @@ *; } +-keep class org.lineageos.settings.display.* { + *; +} + -keep class org.lineageos.settings.doze.* { *; } diff --git a/parts/res/drawable/ic_dc_tile.xml b/parts/res/drawable/ic_dc_tile.xml new file mode 100644 index 0000000..be6f6d3 --- /dev/null +++ b/parts/res/drawable/ic_dc_tile.xml @@ -0,0 +1,8 @@ + + + + diff --git a/parts/res/drawable/ic_dcdimming.xml b/parts/res/drawable/ic_dcdimming.xml new file mode 100644 index 0000000..d772b86 --- /dev/null +++ b/parts/res/drawable/ic_dcdimming.xml @@ -0,0 +1,9 @@ + + + + diff --git a/parts/res/values/strings.xml b/parts/res/values/strings.xml index bfdcd8c..45b6358 100644 --- a/parts/res/values/strings.xml +++ b/parts/res/values/strings.xml @@ -18,6 +18,11 @@ Use ambient display + + DC Dimming + Reduces eye strain in low light conditions + DC Dimming is currently not supported by the kernel + Thermal Profiles Adjust per-app thermal and touchscreen profiles diff --git a/parts/res/xml/dcdimming_settings.xml b/parts/res/xml/dcdimming_settings.xml new file mode 100644 index 0000000..a551df2 --- /dev/null +++ b/parts/res/xml/dcdimming_settings.xml @@ -0,0 +1,32 @@ + + + + + + + + diff --git a/parts/src/org/lineageos/settings/BootCompletedReceiver.java b/parts/src/org/lineageos/settings/BootCompletedReceiver.java index b60d184..01ad596 100644 --- a/parts/src/org/lineageos/settings/BootCompletedReceiver.java +++ b/parts/src/org/lineageos/settings/BootCompletedReceiver.java @@ -20,20 +20,28 @@ import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; +import android.content.SharedPreferences; +import android.os.SystemProperties; import android.util.Log; +import androidx.preference.PreferenceManager; import org.lineageos.settings.dirac.DiracUtils; import org.lineageos.settings.doze.DozeUtils; import org.lineageos.settings.haptic.HapticUtils; import org.lineageos.settings.thermal.ThermalUtils; +import org.lineageos.settings.utils.FileUtils; public class BootCompletedReceiver extends BroadcastReceiver { private static final boolean DEBUG = false; private static final String TAG = "XiaomiParts"; + private static final String DC_DIMMING_ENABLE_KEY = "dc_dimming_enable"; + private static final String DC_DIMMING_NODE = "/sys/devices/platform/soc/soc:qcom,dsi-display/msm_fb_ea_enable"; @Override public void onReceive(final Context context, Intent intent) { + SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(context); + if (!intent.getAction().equals(Intent.ACTION_BOOT_COMPLETED)) { return; } @@ -46,5 +54,8 @@ public void onReceive(final Context context, Intent intent) { DozeUtils.checkDozeService(context); HapticUtils.restoreLevel(context); ThermalUtils.startService(context); + + boolean dcDimmingEnabled = sharedPrefs.getBoolean(DC_DIMMING_ENABLE_KEY, false); + FileUtils.writeLine(DC_DIMMING_NODE, dcDimmingEnabled ? "1" : "0"); } } diff --git a/parts/src/org/lineageos/settings/display/DcDimmingSettingsActivity.java b/parts/src/org/lineageos/settings/display/DcDimmingSettingsActivity.java new file mode 100644 index 0000000..cd85675 --- /dev/null +++ b/parts/src/org/lineageos/settings/display/DcDimmingSettingsActivity.java @@ -0,0 +1,35 @@ +/* + * Copyright (C) 2015-2016 The CyanogenMod Project + * 2017 The LineageOS Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.lineageos.settings.display; + +import android.os.Bundle; + +import com.android.settingslib.collapsingtoolbar.CollapsingToolbarBaseActivity; +import com.android.settingslib.widget.R; + +public class DcDimmingSettingsActivity extends CollapsingToolbarBaseActivity { + + private static final String TAG_DCDIMMING = "dcdimming"; + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + getFragmentManager().beginTransaction().replace(R.id.content_frame, + new DcDimmingSettingsFragment(), TAG_DCDIMMING).commit(); + } +} diff --git a/parts/src/org/lineageos/settings/display/DcDimmingSettingsFragment.java b/parts/src/org/lineageos/settings/display/DcDimmingSettingsFragment.java new file mode 100644 index 0000000..8958922 --- /dev/null +++ b/parts/src/org/lineageos/settings/display/DcDimmingSettingsFragment.java @@ -0,0 +1,57 @@ +/* + * Copyright (C) 2018 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 org.lineageos.settings.display; + +import android.content.Context; +import android.os.Bundle; +import androidx.preference.Preference; +import androidx.preference.Preference.OnPreferenceChangeListener; +import androidx.preference.PreferenceFragment; +import androidx.preference.SwitchPreference; + +import org.lineageos.settings.R; +import org.lineageos.settings.utils.FileUtils; + +public class DcDimmingSettingsFragment extends PreferenceFragment implements + OnPreferenceChangeListener { + + private SwitchPreference mDcDimmingPreference; + private static final String DC_DIMMING_ENABLE_KEY = "dc_dimming_enable"; + private static final String DC_DIMMING_NODE = "/sys/devices/platform/soc/soc:qcom,dsi-display/msm_fb_ea_enable"; + + @Override + public void onCreatePreferences(Bundle savedInstanceState, String rootKey) { + addPreferencesFromResource(R.xml.dcdimming_settings); + mDcDimmingPreference = (SwitchPreference) findPreference(DC_DIMMING_ENABLE_KEY); + if (FileUtils.fileExists(DC_DIMMING_NODE)) { + mDcDimmingPreference.setEnabled(true); + mDcDimmingPreference.setOnPreferenceChangeListener(this); + } else { + mDcDimmingPreference.setSummary(R.string.dc_dimming_enable_summary_not_supported); + mDcDimmingPreference.setEnabled(false); + } + } + + @Override + public boolean onPreferenceChange(Preference preference, Object newValue) { + if (DC_DIMMING_ENABLE_KEY.equals(preference.getKey())) { + FileUtils.writeLine(DC_DIMMING_NODE, (Boolean) newValue ? "1":"0"); + } + return true; + } + +} diff --git a/parts/src/org/lineageos/settings/display/DcDimmingTileService.java b/parts/src/org/lineageos/settings/display/DcDimmingTileService.java new file mode 100644 index 0000000..7b71003 --- /dev/null +++ b/parts/src/org/lineageos/settings/display/DcDimmingTileService.java @@ -0,0 +1,61 @@ +/* +* Copyright (C) 2018 The OmniROM Project +* +* This program is free software: you can redistribute it and/or modify +* it under the terms of the GNU General Public License as published by +* the Free Software Foundation, either version 2 of the License, or +* (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see . +* +*/ +package org.lineageos.settings.display; + +import android.annotation.TargetApi; +import android.content.Intent; +import android.content.SharedPreferences; +import android.service.quicksettings.Tile; +import android.service.quicksettings.TileService; +import androidx.preference.PreferenceManager; + +import org.lineageos.settings.utils.FileUtils; + +public class DcDimmingTileService extends TileService { + + private static final String DC_DIMMING_ENABLE_KEY = "dc_dimming_enable"; + private static final String DC_DIMMING_NODE = "/sys/devices/platform/soc/soc:qcom,dsi-display/msm_fb_ea_enable"; + + private void updateUI(boolean enabled) { + final Tile tile = getQsTile(); + tile.setState(enabled ? Tile.STATE_ACTIVE : Tile.STATE_INACTIVE); + tile.updateTile(); + } + + @Override + public void onStartListening() { + super.onStartListening(); + SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(this); + updateUI(sharedPrefs.getBoolean(DC_DIMMING_ENABLE_KEY, false)); + } + + @Override + public void onStopListening() { + super.onStopListening(); + } + + @Override + public void onClick() { + super.onClick(); + SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(this); + final boolean enabled = !(sharedPrefs.getBoolean(DC_DIMMING_ENABLE_KEY, false)); + FileUtils.writeLine(DC_DIMMING_NODE, enabled ? "1" : "0"); + sharedPrefs.edit().putBoolean(DC_DIMMING_ENABLE_KEY, enabled).commit(); + updateUI(enabled); + } +} diff --git a/rootdir/etc/init.target.rc b/rootdir/etc/init.target.rc index ff5aad5..ddf1d2c 100644 --- a/rootdir/etc/init.target.rc +++ b/rootdir/etc/init.target.rc @@ -124,6 +124,10 @@ on boot chown system system /sys/class/drm/card0-DSI-1/doze_backlight chmod 0660 /sys/class/drm/card0-DSI-1/doze_backlight + # Allow system to modify exposure adjustment state + chown system system /sys/devices/platform/soc/soc:qcom,dsi-display/msm_fb_ea_enable + chmod 0660 /sys/devices/platform/soc/soc:qcom,dsi-display/msm_fb_ea_enable + # Set xiaomi touch permissions chown system system /dev/xiaomi-touch chmod 0660 /dev/xiaomi-touch diff --git a/sepolicy/vendor/file_contexts b/sepolicy/vendor/file_contexts index fa68888..576f820 100644 --- a/sepolicy/vendor/file_contexts +++ b/sepolicy/vendor/file_contexts @@ -6,6 +6,7 @@ # Display /dev/xiaomi-touch u:object_r:touchfeature_device:s0 +/sys/devices/platform/soc/soc:qcom,dsi-display/msm_fb_ea_enable u:object_r:vendor_sysfs_graphics:s0 # Display Feature /vendor/bin/hw/vendor\.xiaomi\.hardware\.displayfeature@1\.0-service u:object_r:hal_displayfeature_xiaomi_default_exec:s0 diff --git a/sepolicy/vendor/xiaomiparts_app.te b/sepolicy/vendor/xiaomiparts_app.te index e8dc00a..8f0e93d 100644 --- a/sepolicy/vendor/xiaomiparts_app.te +++ b/sepolicy/vendor/xiaomiparts_app.te @@ -9,3 +9,7 @@ binder_call(xiaomiparts_app, hal_displayfeature_xiaomi_default) # Allow binder communication with hal_touchfeature_xiaomi_default binder_call(xiaomiparts_app, hal_touchfeature_xiaomi_default) + +# Allow xiaomiparts_app to r/w to modify exposure adjustment +allow xiaomiparts_app vendor_sysfs_graphics:dir r_dir_perms; +allow xiaomiparts_app vendor_sysfs_graphics:file rw_file_perms; From 45c1b2892068fe2cd9d9c7c020937fa4762dc25e Mon Sep 17 00:00:00 2001 From: Pulkit077 Date: Fri, 21 Apr 2023 16:48:40 +0530 Subject: [PATCH 053/110] sweet: sepolicy: ignore IMS diag denial Signed-off-by: Pulkit077 --- sepolicy/vendor/dontaudit.te | 1 + 1 file changed, 1 insertion(+) diff --git a/sepolicy/vendor/dontaudit.te b/sepolicy/vendor/dontaudit.te index 0ac8ea1..20432ed 100644 --- a/sepolicy/vendor/dontaudit.te +++ b/sepolicy/vendor/dontaudit.te @@ -23,6 +23,7 @@ dontaudit { vendor_hal_rcsservice vendor_ims vendor_netmgrd + vendor_qtelephony vendor_qti vendor_sensors_qti } vendor_diag_device:chr_file rw_file_perms; From 689f322ff0530ad35c477136a98b0225d644716a Mon Sep 17 00:00:00 2001 From: Pulkit077 Date: Mon, 1 May 2023 23:52:19 +0530 Subject: [PATCH 054/110] sweet: sepolicy: allow FP to use vendor binder IPC Signed-off-by: Pulkit077 --- sepolicy/vendor/hal_fingerprint_default.te | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sepolicy/vendor/hal_fingerprint_default.te b/sepolicy/vendor/hal_fingerprint_default.te index 0dae863..e0810f8 100644 --- a/sepolicy/vendor/hal_fingerprint_default.te +++ b/sepolicy/vendor/hal_fingerprint_default.te @@ -19,5 +19,5 @@ set_prop(hal_fingerprint_default, vendor_fp_prop) allow hal_fingerprint_default property_socket:sock_file write; -# Allow FP to r&w to /dev/vndbinder -allow hal_fingerprint_default vndbinder_device:chr_file rw_file_perms; +# Allow FP to use vendor binder IPC +vndbinder_use(hal_fingerprint_default) From 30b1ea634d7192d854d3e65f81f30dfedc63a46c Mon Sep 17 00:00:00 2001 From: Nauval Rizky Date: Tue, 15 Feb 2022 20:19:32 +0700 Subject: [PATCH 055/110] sweet: parts: Add activity for handling QS tile long click action Signed-off-by: Pranav Vashi --- parts/AndroidManifest.xml | 9 ++++ .../lineageos/settings/TileEntryActivity.java | 52 +++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 parts/src/org/lineageos/settings/TileEntryActivity.java diff --git a/parts/AndroidManifest.xml b/parts/AndroidManifest.xml index a149484..7d97729 100644 --- a/parts/AndroidManifest.xml +++ b/parts/AndroidManifest.xml @@ -58,6 +58,15 @@ android:resource="@string/dirac_summary" /> + + + + + + diff --git a/parts/src/org/lineageos/settings/TileEntryActivity.java b/parts/src/org/lineageos/settings/TileEntryActivity.java new file mode 100644 index 0000000..717dc3c --- /dev/null +++ b/parts/src/org/lineageos/settings/TileEntryActivity.java @@ -0,0 +1,52 @@ +/* + * Copyright (C) 2021 Chaldeaprjkt + * + * 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 org.lineageos.settings; + +import android.app.Activity; +import android.content.ActivityNotFoundException; +import android.content.ComponentName; +import android.content.Intent; +import android.os.Bundle; +import android.util.Log; + +import androidx.annotation.Nullable; + +public class TileEntryActivity extends Activity { + private static final String TAG = "TileEntryActivity"; + + @Override + protected void onCreate(@Nullable Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + ComponentName sourceClass = getIntent().getParcelableExtra(Intent.EXTRA_COMPONENT_NAME); + switch (sourceClass.getClassName()) { + default: + finish(); + break; + } + } + + private void openActivitySafely(Intent dest) { + try { + dest.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_TASK_ON_HOME); + finish(); + startActivity(dest); + } catch (ActivityNotFoundException e) { + Log.e(TAG, "No activity found for " + dest); + finish(); + } + } +} From a23aa9819010938a3dc331fa51ef4390673929b4 Mon Sep 17 00:00:00 2001 From: Nauval Rizky Date: Tue, 15 Feb 2022 21:32:31 +0700 Subject: [PATCH 056/110] sweet: parts: Redirect DiracTileService long-click to DiracActivity Signed-off-by: Pranav Vashi --- parts/src/org/lineageos/settings/TileEntryActivity.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/parts/src/org/lineageos/settings/TileEntryActivity.java b/parts/src/org/lineageos/settings/TileEntryActivity.java index 717dc3c..4fdcfb2 100644 --- a/parts/src/org/lineageos/settings/TileEntryActivity.java +++ b/parts/src/org/lineageos/settings/TileEntryActivity.java @@ -25,14 +25,20 @@ import androidx.annotation.Nullable; +import org.lineageos.settings.dirac.DiracActivity; + public class TileEntryActivity extends Activity { private static final String TAG = "TileEntryActivity"; + private static final String DIRAC_TILE = "org.lineageos.settings.dirac.DiracTileService"; @Override protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); ComponentName sourceClass = getIntent().getParcelableExtra(Intent.EXTRA_COMPONENT_NAME); switch (sourceClass.getClassName()) { + case DIRAC_TILE: + openActivitySafely(new Intent(this, DiracActivity.class)); + break; default: finish(); break; From 7246cb57945abfa87c19403d4eeb1236ab2ee007 Mon Sep 17 00:00:00 2001 From: Pulkit077 Date: Sat, 17 Jun 2023 13:09:54 +0530 Subject: [PATCH 057/110] sweet: parts: Redirect DCDimming Tile long click to DCDimming activity Signed-off-by: Pulkit077 --- parts/src/org/lineageos/settings/TileEntryActivity.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/parts/src/org/lineageos/settings/TileEntryActivity.java b/parts/src/org/lineageos/settings/TileEntryActivity.java index 4fdcfb2..78691b7 100644 --- a/parts/src/org/lineageos/settings/TileEntryActivity.java +++ b/parts/src/org/lineageos/settings/TileEntryActivity.java @@ -26,9 +26,11 @@ import androidx.annotation.Nullable; import org.lineageos.settings.dirac.DiracActivity; +import org.lineageos.settings.display.DcDimmingSettingsActivity; public class TileEntryActivity extends Activity { private static final String TAG = "TileEntryActivity"; + private static final String DC_DIMMING_TILE = "org.lineageos.settings.display.DcDimmingTileService"; private static final String DIRAC_TILE = "org.lineageos.settings.dirac.DiracTileService"; @Override @@ -36,6 +38,9 @@ protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); ComponentName sourceClass = getIntent().getParcelableExtra(Intent.EXTRA_COMPONENT_NAME); switch (sourceClass.getClassName()) { + case DC_DIMMING_TILE: + openActivitySafely(new Intent(this, DcDimmingSettingsActivity.class)); + break; case DIRAC_TILE: openActivitySafely(new Intent(this, DiracActivity.class)); break; From c2ef04e848189dffb5ec8bc55dbe4f70e2d9e784 Mon Sep 17 00:00:00 2001 From: Pulkit077 Date: Sat, 17 Jun 2023 13:20:46 +0530 Subject: [PATCH 058/110] sweet: parts: display: check for node before updating DCDimming Tile Signed-off-by: Pulkit077 --- .../lineageos/settings/display/DcDimmingTileService.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/parts/src/org/lineageos/settings/display/DcDimmingTileService.java b/parts/src/org/lineageos/settings/display/DcDimmingTileService.java index 7b71003..b73bd4f 100644 --- a/parts/src/org/lineageos/settings/display/DcDimmingTileService.java +++ b/parts/src/org/lineageos/settings/display/DcDimmingTileService.java @@ -41,7 +41,11 @@ private void updateUI(boolean enabled) { public void onStartListening() { super.onStartListening(); SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(this); - updateUI(sharedPrefs.getBoolean(DC_DIMMING_ENABLE_KEY, false)); + if (!FileUtils.fileExists(DC_DIMMING_NODE)) { + getQsTile().setState(Tile.STATE_UNAVAILABLE); + } else { + updateUI(sharedPrefs.getBoolean(DC_DIMMING_ENABLE_KEY, false)); + } } @Override From 60d9121d099c466ee4beb5dcbcdc4012a5eb389a Mon Sep 17 00:00:00 2001 From: Michael Bestas Date: Fri, 3 Mar 2023 23:43:42 +0200 Subject: [PATCH 059/110] sweet: Build Lineage Health HAL Change-Id: I70cc903a03ac9fa3303bb8fa039c9de4806449bf --- BoardConfig.mk | 3 +++ device.mk | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/BoardConfig.mk b/BoardConfig.mk index d46360e..121510a 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -74,6 +74,9 @@ TARGET_KERNEL_CONFIG := vendor/sweet_user_defconfig TARGET_KERNEL_SOURCE := kernel/xiaomi/sweet 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 \ diff --git a/device.mk b/device.mk index c7ac3c7..c6e212f 100644 --- a/device.mk +++ b/device.mk @@ -201,6 +201,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 From d9dddbfa97e353cd1bf6471e3e9a1616b1e99d6b Mon Sep 17 00:00:00 2001 From: Michael Bestas Date: Fri, 3 Mar 2023 21:52:37 +0200 Subject: [PATCH 060/110] sweet: manifest: lineage_device_framework_matrix: Add vendor.lineage.health Change-Id: I91ee2a15ee2f68947f220ab6e885b9049936acb2 --- manifests/lineage_device_framework_matrix.xml | 7 +++++++ 1 file changed, 7 insertions(+) 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 From 46b1625fdaeba3743105ee8755b08905852a2f4b Mon Sep 17 00:00:00 2001 From: Pulkit077 Date: Sun, 18 Jun 2023 07:57:18 +0530 Subject: [PATCH 061/110] sweet: properties: set `saturated` as default color mode Signed-off-by: Pulkit077 --- properties.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/properties.mk b/properties.mk index 344f84e..6348e67 100644 --- a/properties.mk +++ b/properties.mk @@ -192,7 +192,7 @@ ro.vendor.display.sensortype=2 # Display (color mode) PRODUCT_PROPERTY_OVERRIDES += \ persist.sys.sf.color_saturation=1.0 \ -persist.sys.sf.native_mode=0 \ +persist.sys.sf.native_mode=1 \ persist.sys.sf.color_mode=9 # Factory Reset Protection @@ -228,7 +228,7 @@ vendor.display.disable_inline_rotator=1 \ vendor.display.disable_metadata_dynamic_fps=1 \ vendor.display.disable_scaler=0 \ vendor.display.disable_ui_3d_tonemap=1 \ -vendor.display.enable_default_color_mode=0 \ +vendor.display.enable_default_color_mode=1 \ vendor.display.enable_force_split=1 \ vendor.display.enable_null_display=0 \ vendor.display.enable_optimize_refresh=1 \ From c0ff00b004942ff7fd03b89e5f7e674db6b86a2d Mon Sep 17 00:00:00 2001 From: basamaryan Date: Tue, 12 Jul 2022 11:19:30 +0530 Subject: [PATCH 062/110] sweet: sepolicy: Allow hal_graphics_composer_default to read bootanim_system_prop * avc: denied { read } for name="u:object_r:bootanim_system_prop:s0" dev="tmpfs" ino=12855 scontext=u:r:hal_graphics_composer_default:s0 tcontext=u:object_r:bootanim_system_prop:s0 tclass=file permissive=0 Change-Id: Iffbd1636c41ee2c372788f9836e5ec6bb06e3978 --- sepolicy/vendor/hal_graphics_composer_default.te | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sepolicy/vendor/hal_graphics_composer_default.te b/sepolicy/vendor/hal_graphics_composer_default.te index 5e46659..7317e85 100644 --- a/sepolicy/vendor/hal_graphics_composer_default.te +++ b/sepolicy/vendor/hal_graphics_composer_default.te @@ -1,3 +1,6 @@ binder_call(hal_graphics_composer_default, hal_displayfeature_xiaomi_default) allow hal_graphics_composer_default hal_displayfeature_xiaomi_hwservice:hwservice_manager find; + +# Alow to read service.bootanim.exit prop +get_prop(hal_graphics_composer_default, bootanim_system_prop) From d5395eaa9fd4bf05ac3be84e55e64baf1e3d9d08 Mon Sep 17 00:00:00 2001 From: Michael Bestas Date: Thu, 11 May 2023 19:31:06 +0300 Subject: [PATCH 063/110] sweet: ueventd: Remove all permissions from /sys/devices/soc0/serial_number Change-Id: I688347cfe59f56e4de2e4bf3c3324ca465f7a897 --- rootdir/etc/ueventd.qcom.rc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rootdir/etc/ueventd.qcom.rc b/rootdir/etc/ueventd.qcom.rc index f692fa5..a8b27e6 100644 --- a/rootdir/etc/ueventd.qcom.rc +++ b/rootdir/etc/ueventd.qcom.rc @@ -512,3 +512,6 @@ firmware_directories /vendor/firmware_mnt/image/ /sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* in_temp_raw 0664 system system /sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* in_temp_scale 0664 system system /sys/devices/platform/soc/*.i2c/i2c-*/*-*/iio:device* in_temp_scale_available 0664 system system + +# socinfo +/sys/devices/soc0 serial_number 0000 root root From 443951641e7522d17048eeb985b873805e76b1df Mon Sep 17 00:00:00 2001 From: mikairyuu Date: Fri, 19 Aug 2022 20:52:03 +0300 Subject: [PATCH 064/110] sweet: overlay: frameworks: Remove obsolete overlays Remove: config_bluetooth_le_peripheral_mode_supported config_bluetooth_hfp_inband_ringing_support Android T added support for BT LE on their stack, making this overlay useless --- overlay/Frameworks/res/values/config.xml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/overlay/Frameworks/res/values/config.xml b/overlay/Frameworks/res/values/config.xml index 73a2f88..b6fe513 100644 --- a/overlay/Frameworks/res/values/config.xml +++ b/overlay/Frameworks/res/values/config.xml @@ -339,12 +339,6 @@ true - - true - - - true - From 3f0c97379c19d49675cc507ec7962b6bee33c4d6 Mon Sep 17 00:00:00 2001 From: Nauval Rizky Date: Fri, 24 Dec 2021 20:19:07 +0700 Subject: [PATCH 065/110] sweet: Update mi thermald patching method * hotplug data will be parsed but not applied to the node. Change-Id: I7f4d71e446c7230364b920d0d0af766e4329af8c --- extract-files.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extract-files.sh b/extract-files.sh index 1e2a70b..cbcd957 100755 --- a/extract-files.sh +++ b/extract-files.sh @@ -56,7 +56,7 @@ 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}" From d8d25393248d0454909b583ae3d3765a8cb36d3d Mon Sep 17 00:00:00 2001 From: Pulkit077 Date: Wed, 21 Jun 2023 08:56:41 +0530 Subject: [PATCH 066/110] sweet: switch to sweetin V12.5.10.0.RKFINXM thermal blobs - from sweetin-user 11 RKQ1.200826.002 V12.5.10.0.RKFINXM release-keys Signed-off-by: Pulkit077 --- proprietary-files.txt | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/proprietary-files.txt b/proprietary-files.txt index 7080086..1ceb964 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -1309,26 +1309,26 @@ vendor/etc/init/vendor.qti.hardware.soter@1.0-service.rc vendor/lib64/hw/vendor.qti.hardware.soter@1.0-impl.so vendor/lib64/vendor.qti.hardware.soter@1.0.so -# Thermal -vendor/bin/mi_thermald -vendor/bin/thermal-engine -vendor/etc/init/init.mi_thermald.rc -vendor/etc/init/init_thermal-engine.rc -vendor/etc/thermal-camera.conf -vendor/etc/thermal-chg-only.conf -vendor/etc/thermal-class0.conf -vendor/etc/thermal-engine.conf -vendor/etc/thermal-map.conf -vendor/etc/thermal-mgame.conf -vendor/etc/thermal-navigation.conf -vendor/etc/thermal-nolimits.conf -vendor/etc/thermal-normal.conf -vendor/etc/thermal-phone.conf -vendor/etc/thermal-tgame.conf -vendor/etc/thermal-video.conf -vendor/etc/thermal-youtube.conf -vendor/etc/thermald-devices.conf -vendor/lib64/libthermalclient.so +# Thermal - from sweetin-user 11 RKQ1.200826.002 V12.5.10.0.RKFINXM release-keys +vendor/bin/mi_thermald|41be8f8f215f793f331e75d3fb5ae344d88a15c6 +vendor/bin/thermal-engine|e74184e124c41e51535fad6a6ad9cc089695211b +vendor/etc/init/init.mi_thermald.rc|93377ddf881f27dabb2918adbe7215934eb8531f +vendor/etc/init/init_thermal-engine.rc|f0d14aa4734b2e8afd61a4eed73238187b268f48 +vendor/etc/thermal-camera.conf|5a7b9cdd1eb5545c86153e5007aee4d3644ce19a +vendor/etc/thermal-chg-only.conf|7ce2272cfe16c045409d356fc5c5e460fa8d9a4f +vendor/etc/thermal-class0.conf|e8d6a593e8a267792aa07a193d4966b3aa33ce42 +vendor/etc/thermal-engine.conf|c6c9312b7c7b52926cf7d0fc9bff933d90967100 +vendor/etc/thermal-map.conf|7172da0eab91527a1eae0c449ed3a4461cb7047f +vendor/etc/thermal-mgame.conf|c2f4b729c48668f7ace63c2dd7284d88a2153243 +vendor/etc/thermal-navigation.conf|f12fa3a206491a15c65e48d22ebe03deb713e78e +vendor/etc/thermal-nolimits.conf|4d86837c2a6a18d0673831e2a083a9df31f716c8 +vendor/etc/thermal-normal.conf|f089d2811f0ea6f61dbe0f171317736c73f12b53 +vendor/etc/thermal-phone.conf|cd1e4328a3e86c7a583e517d94765d1d00e21954 +vendor/etc/thermal-tgame.conf|ad4e48a9201abda68f79cf1ac69fdff935ad2d31 +vendor/etc/thermal-video.conf|d30fe747baae88e598041b08cd178b730ed634f4 +vendor/etc/thermal-youtube.conf|655bdba808074a4f14700c53899ecd9668976046 +vendor/etc/thermald-devices.conf|62d475be3ee174f332eb7497cb37c73df2ed8d8a +vendor/lib64/libthermalclient.so|41274c82e1a472d12b2ebcb4156f7f77b109efa8 # Time vendor/app/TimeService/TimeService.apk From f394871acb8cfc97b56bf4f6f836aa1a4a4a9f9f Mon Sep 17 00:00:00 2001 From: basamaryan Date: Sun, 4 Jun 2023 03:19:12 +0530 Subject: [PATCH 067/110] Revert "sweet: Add headphone button jack keylayout" This reverts commit 1bcba5ba175f3ea6e8f92a643e396c381d41e7c8. Reason for revert: Fixed in I8ecc1609d929ac5a8d4d73711b15b4a741d910a3 --- configs/keylayout/gpio-keys.kl | 32 ------------------- .../sm6150-idp-snd-card_Button_Jack.kl | 30 ----------------- device.mk | 4 --- 3 files changed, 66 deletions(-) delete mode 100644 configs/keylayout/gpio-keys.kl delete mode 100644 configs/keylayout/sm6150-idp-snd-card_Button_Jack.kl 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/device.mk b/device.mk index c6e212f..9b9e3d0 100644 --- a/device.mk +++ b/device.mk @@ -189,10 +189,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 From 5de2365abb55b355add5864a69122d3738bbfe04 Mon Sep 17 00:00:00 2001 From: Andrew Thomas <44932193+itz63c@users.noreply.github.com> Date: Tue, 26 Mar 2019 21:44:19 -0400 Subject: [PATCH 068/110] sweet: overlay: Add Notch Bar Killer overlay * This overlay gets rid of the black bar in most apps/games and lets the screen fill past the notch. Change-Id: Ic008ce5d569127d230dc44451929477e063c4471 Signed-off-by: Josh Fox (XlxFoXxlX) Signed-off-by: Anirudh Gupta Signed-off-by: Adithya R --- device.mk | 3 ++ overlay/NotchBarKiller/Android.bp | 19 +++++++++++ overlay/NotchBarKiller/AndroidManifest.xml | 26 +++++++++++++++ overlay/NotchBarKiller/res/values/config.xml | 32 +++++++++++++++++++ overlay/NotchBarKiller/res/values/strings.xml | 4 +++ 5 files changed, 84 insertions(+) create mode 100644 overlay/NotchBarKiller/Android.bp create mode 100644 overlay/NotchBarKiller/AndroidManifest.xml create mode 100644 overlay/NotchBarKiller/res/values/config.xml create mode 100644 overlay/NotchBarKiller/res/values/strings.xml diff --git a/device.mk b/device.mk index 9b9e3d0..c89dece 100644 --- a/device.mk +++ b/device.mk @@ -284,6 +284,9 @@ PRODUCT_PACKAGES += \ TelephonyResSweet \ WifiResSweet +PRODUCT_PACKAGES += \ + NotchBarKiller + # Perf PRODUCT_PACKAGES += \ libqti-perfd-client diff --git a/overlay/NotchBarKiller/Android.bp b/overlay/NotchBarKiller/Android.bp new file mode 100644 index 0000000..3b13c6d --- /dev/null +++ b/overlay/NotchBarKiller/Android.bp @@ -0,0 +1,19 @@ +// Copyright (C) 2020 Paranoid Android +// +// 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. + +runtime_resource_overlay { + name: "NotchBarKiller", + sdk_version: "current", + product_specific: true, +} diff --git a/overlay/NotchBarKiller/AndroidManifest.xml b/overlay/NotchBarKiller/AndroidManifest.xml new file mode 100644 index 0000000..65b287c --- /dev/null +++ b/overlay/NotchBarKiller/AndroidManifest.xml @@ -0,0 +1,26 @@ + + + + + + + diff --git a/overlay/NotchBarKiller/res/values/config.xml b/overlay/NotchBarKiller/res/values/config.xml new file mode 100644 index 0000000..a5df16a --- /dev/null +++ b/overlay/NotchBarKiller/res/values/config.xml @@ -0,0 +1,32 @@ + + + + + + + true + + M 0,0 L 0, 0 C 0,0 0,0 0,0 + @*android:string/config_mainBuiltInDisplayCutout + + + 4 + 5 + + diff --git a/overlay/NotchBarKiller/res/values/strings.xml b/overlay/NotchBarKiller/res/values/strings.xml new file mode 100644 index 0000000..90b84a8 --- /dev/null +++ b/overlay/NotchBarKiller/res/values/strings.xml @@ -0,0 +1,4 @@ + + + Notch Bar Killer + From 20f62c718ae7451a6e7f83162c917fb2c7418a5f Mon Sep 17 00:00:00 2001 From: Georg Veichtlbauer Date: Mon, 17 Apr 2023 19:29:26 +0200 Subject: [PATCH 069/110] sweet: properties: Drop SF latch_unsignaled property latch_unsignaled defaults to auto single layer in Android 13. Change-Id: I8d38f3257b5f6b56c0f6b79cf4fb406a47d64af8 --- properties.mk | 1 - 1 file changed, 1 deletion(-) diff --git a/properties.mk b/properties.mk index 6348e67..9eedf80 100644 --- a/properties.mk +++ b/properties.mk @@ -211,7 +211,6 @@ PRODUCT_PROPERTY_OVERRIDES += \ debug.sf.disable_backpressure=1 \ debug.sf.enable_hwc_vds=1 \ debug.sf.enable_transaction_tracing=false \ -debug.sf.latch_unsignaled=1 \ debug.sf.predict_hwc_composition_strategy=0 \ debug.sf.treat_170m_as_sRGB=1 \ persist.sys.sf.color_saturation=1.0 \ From fcdc59756dbc209ba19c4abea9d010ee2ec7ed2a Mon Sep 17 00:00:00 2001 From: Pulkit077 Date: Fri, 23 Jun 2023 17:52:02 +0530 Subject: [PATCH 070/110] sweet: overlay: frameworks: leave displayId blank in sfps properties - sweet has more than 1 displayId and its not required anyways for sfps to work anyways Signed-off-by: Pulkit077 --- overlay/Frameworks/res/values/config.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/overlay/Frameworks/res/values/config.xml b/overlay/Frameworks/res/values/config.xml index b6fe513..a204a26 100644 --- a/overlay/Frameworks/res/values/config.xml +++ b/overlay/Frameworks/res/values/config.xml @@ -609,7 +609,7 @@ - "local:4630946711218184577" + 1080 980 112 From 93a46a9c26f1d84bb212b9fc3515c8d8f17e4efd Mon Sep 17 00:00:00 2001 From: Pulkit077 Date: Wed, 12 Jul 2023 16:39:20 +0530 Subject: [PATCH 071/110] sweet: properties: remove `persist.vendor.audio.misound.disable` Signed-off-by: Pulkit077 --- properties.mk | 1 - 1 file changed, 1 deletion(-) diff --git a/properties.mk b/properties.mk index 9eedf80..4b34ad9 100644 --- a/properties.mk +++ b/properties.mk @@ -38,7 +38,6 @@ vendor.audio_hal.period_size=192 # Audio (ximi) PRODUCT_PROPERTY_OVERRIDES += \ persist.vendor.audio.delta.refresh=false \ -persist.vendor.audio.misound.disable=true \ persist.vendor.audio.ring.filter.mask=0 \ ro.vendor.audio.camera.loopback.support=true \ ro.vendor.audio.scenario.support=true \ From 822151698496e1ccc46933fd4ba9eb7351c9d651 Mon Sep 17 00:00:00 2001 From: Pulkit077 Date: Sun, 9 Jul 2023 10:59:06 +0530 Subject: [PATCH 072/110] sweet: parts: drop dirac Signed-off-by: Pulkit077 --- parts/AndroidManifest.xml | 24 --- parts/proguard.flags | 4 - parts/res/values-ro/strings.xml | 57 -------- parts/res/values/arrays.xml | 129 ----------------- parts/res/values/strings.xml | 57 -------- parts/res/xml/dirac_settings.xml | 53 ------- .../settings/BootCompletedReceiver.java | 6 - .../lineageos/settings/TileEntryActivity.java | 5 - .../settings/dirac/DiracActivity.java | 35 ----- .../settings/dirac/DiracSettingsFragment.java | 107 -------------- .../lineageos/settings/dirac/DiracSound.java | 70 --------- .../settings/dirac/DiracTileService.java | 38 ----- .../lineageos/settings/dirac/DiracUtils.java | 137 ------------------ 13 files changed, 722 deletions(-) delete mode 100644 parts/res/values/arrays.xml delete mode 100644 parts/res/xml/dirac_settings.xml delete mode 100644 parts/src/org/lineageos/settings/dirac/DiracActivity.java delete mode 100644 parts/src/org/lineageos/settings/dirac/DiracSettingsFragment.java delete mode 100644 parts/src/org/lineageos/settings/dirac/DiracSound.java delete mode 100644 parts/src/org/lineageos/settings/dirac/DiracTileService.java delete mode 100644 parts/src/org/lineageos/settings/dirac/DiracUtils.java diff --git a/parts/AndroidManifest.xml b/parts/AndroidManifest.xml index 7d97729..682004d 100644 --- a/parts/AndroidManifest.xml +++ b/parts/AndroidManifest.xml @@ -44,20 +44,6 @@ - - - - - - - - - - - - - - Nivel Intensitatea vibrațiilor Funcția nu este acceptată - - - Utilizați amplificatorul Mi Sound - Amplificatorul Mi Sound - Optimizează calitatea sunetului cu Dirac, Hi-Fi - Tip căști - Presetare sunet - - Căști în ureche Mi - Mi In-Ear (2013) - Mi Piston-1 - General In-Ear - Ediție de bază - Mi Piston-2 - Ediție Standard - Ediție Youth - Ediție Color - Mi In-Ear - Mi Capsule - Mi In-Ear Pro - Mi Comfort - Anulare zgomot Mi Tip C - Anulare zgomot Mi 3.5mm - Mi Half In-Ear - Mi In-Ear 2 - Căști Mi Basic - Căști Mi - Căști Mi Quadruple Driver - Căști Mi In-Ear (Type-C) - Mi Bluetooth Neckband - Căști Bluetooth Mi - Căști Redmi - - Implicit - Rock - Jazz - Pop - Clasic - Hiphop - Blues - Electronic - Country - Dans - Metal - Amplificare Bas - În direct - Echilibrat - Reducere Bas - Reducere Frecvențe Înalte - Bass ușor - Frecvențe Înalte ușoare - - Inteligent - Muzică - Selectare scenă - Video - Voce diff --git a/parts/res/values/arrays.xml b/parts/res/values/arrays.xml deleted file mode 100644 index 2d94e92..0000000 --- a/parts/res/values/arrays.xml +++ /dev/null @@ -1,129 +0,0 @@ - - - - - - @string/dirac_headset_earbuds - @string/dirac_headset_in_ear_2013 - @string/dirac_headset_piston_1 - @string/dirac_headset_piston_basic - @string/dirac_headset_piston_2 - @string/dirac_headset_piston_standard - @string/dirac_headset_general_inear - @string/dirac_headset_piston_youth - @string/dirac_headset_piston_color - @string/dirac_headset_in_ear - @string/dirac_headset_capsule - @string/dirac_headset_in_ear_pro - @string/dirac_headset_comfort - @string/dirac_headset_reduction_noise - @string/dirac_headset_cancelling - @string/dirac_headset_half_in_ear - @string/dirac_headset_in_ear2 - @string/dirac_headset_earphone_basic - @string/dirac_headset_earphone - @string/dirac_headset_ear_four - @string/dirac_headset_piston_typec - @string/dirac_headset_bluetooth_collar - @string/dirac_headset_bluetooth_linefree - @string/dirac_headset_redmi_earphones - - - - 0 - 1 - 2 - 4 - 5 - 8 - 9 - 10 - 11 - 12 - 13 - 14 - 15 - 16 - 17 - 18 - 19 - 20 - 21 - 24 - 25 - 26 - 27 - 28 - - - - - @string/dirac_preset_default - @string/dirac_preset_rock - @string/dirac_preset_jazz - @string/dirac_preset_pop - @string/dirac_preset_classical - @string/dirac_preset_hiphop - @string/dirac_preset_blues - @string/dirac_preset_electronic - @string/dirac_preset_country - @string/dirac_preset_dance - @string/dirac_preset_metal - @string/dirac_preset_bass_booster - @string/dirac_preset_balanced - @string/dirac_preset_live - @string/dirac_preset_bass_reduction - @string/dirac_preset_treble_reduction - @string/dirac_preset_soft_bass - @string/dirac_preset_soft_treble - - - - "0,0,0,0,0,0,0" - "4,2,-2,0,-2,-2,4" - "0,0,0,-2,-3,0,0" - "0,-3,-5,0,0,-3,0" - "0,0,0,0,3,6,6" - "3,3,-3,0,-3,0,2" - "2,4,-6,4,0,1,2" - "3,3,-1,0,-3,0,0" - "0,0,-2,-2,2,2,0" - "0,4,2,0,-2,-2,4" - "2,0,0,-2,-4,0,0" - "10,8,-3,0,-3,5,5" - "3,1,0,0,0,1,3" - "-4,-2,2,2,2,1,1" - "-5,-3,0,0,0,0,0" - "0,0,0,0,0,-5,-3" - "3,3,1,-3,-3,0,0" - "0,0,-1,-4,-4,5,4" - - - - @string/music_headset_scenario_intelligent - @string/music_headset_scenario_music - @string/music_headset_scenario_video - @string/music_headset_scenario_vocal - - - - 4 - 1 - 2 - 3 - - diff --git a/parts/res/values/strings.xml b/parts/res/values/strings.xml index 45b6358..152648a 100644 --- a/parts/res/values/strings.xml +++ b/parts/res/values/strings.xml @@ -56,61 +56,4 @@ Level Amount of vibration intensity Feature not supported - - - Use Mi Sound Enhancer - Mi Sound Enhancer - Optimize sound quality with Dirac, Hi-Fi - Headset type - Sound preset - - Mi Earbuds - Mi In-Ear (2013) - Mi Piston-1 - General In-Ear - Basic Edition - Mi Piston-2 - Standard Edition - Youth Edition - Color Edition - Mi In-Ear - Mi Capsule - Mi In-Ear Pro - Mi Comfort - Mi Noise Cancelling Type-C - Mi Noise Cancelling 3.5mm - Mi Half In-Ear - Mi In-Ear 2 - Mi Earphones Basic - Mi Earphones - Mi Quadruple Driver Earphones - Mi In-Ear Headphones (Type-C) - Mi Bluetooth Neckband - Mi Bluetooth Earphones - Redmi Earphones - - Default - Rock - Jazz - Pop - Classical - Hiphop - Blues - Electronic - Country - Dance - Metal - Bass Booster - Live - Balanced - Bass Reduction - Treble Reduction - Soft Bass - Soft Treble - - Smart - Music - Select Scene - Video - Voice diff --git a/parts/res/xml/dirac_settings.xml b/parts/res/xml/dirac_settings.xml deleted file mode 100644 index 7b17b6c..0000000 --- a/parts/res/xml/dirac_settings.xml +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - - - - - - diff --git a/parts/src/org/lineageos/settings/BootCompletedReceiver.java b/parts/src/org/lineageos/settings/BootCompletedReceiver.java index 01ad596..7f5afa4 100644 --- a/parts/src/org/lineageos/settings/BootCompletedReceiver.java +++ b/parts/src/org/lineageos/settings/BootCompletedReceiver.java @@ -25,7 +25,6 @@ import android.util.Log; import androidx.preference.PreferenceManager; -import org.lineageos.settings.dirac.DiracUtils; import org.lineageos.settings.doze.DozeUtils; import org.lineageos.settings.haptic.HapticUtils; import org.lineageos.settings.thermal.ThermalUtils; @@ -46,11 +45,6 @@ public void onReceive(final Context context, Intent intent) { return; } if (DEBUG) Log.d(TAG, "Received boot completed intent"); - try { - DiracUtils.getInstance(context); - } catch (Exception e) { - Log.d(TAG, "Dirac is not present in system"); - } DozeUtils.checkDozeService(context); HapticUtils.restoreLevel(context); ThermalUtils.startService(context); diff --git a/parts/src/org/lineageos/settings/TileEntryActivity.java b/parts/src/org/lineageos/settings/TileEntryActivity.java index 78691b7..06e0926 100644 --- a/parts/src/org/lineageos/settings/TileEntryActivity.java +++ b/parts/src/org/lineageos/settings/TileEntryActivity.java @@ -25,13 +25,11 @@ import androidx.annotation.Nullable; -import org.lineageos.settings.dirac.DiracActivity; import org.lineageos.settings.display.DcDimmingSettingsActivity; public class TileEntryActivity extends Activity { private static final String TAG = "TileEntryActivity"; private static final String DC_DIMMING_TILE = "org.lineageos.settings.display.DcDimmingTileService"; - private static final String DIRAC_TILE = "org.lineageos.settings.dirac.DiracTileService"; @Override protected void onCreate(@Nullable Bundle savedInstanceState) { @@ -41,9 +39,6 @@ protected void onCreate(@Nullable Bundle savedInstanceState) { case DC_DIMMING_TILE: openActivitySafely(new Intent(this, DcDimmingSettingsActivity.class)); break; - case DIRAC_TILE: - openActivitySafely(new Intent(this, DiracActivity.class)); - break; default: finish(); break; diff --git a/parts/src/org/lineageos/settings/dirac/DiracActivity.java b/parts/src/org/lineageos/settings/dirac/DiracActivity.java deleted file mode 100644 index 5fa1525..0000000 --- a/parts/src/org/lineageos/settings/dirac/DiracActivity.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright (C) 2018 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 org.lineageos.settings.dirac; - -import android.os.Bundle; - -import com.android.settingslib.collapsingtoolbar.CollapsingToolbarBaseActivity; -import com.android.settingslib.widget.R; - -public class DiracActivity extends CollapsingToolbarBaseActivity { - - private static final String TAG_DIRAC = "dirac"; - - @Override - protected void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - - getFragmentManager().beginTransaction().replace(R.id.content_frame, - new DiracSettingsFragment(), TAG_DIRAC).commit(); - } -} diff --git a/parts/src/org/lineageos/settings/dirac/DiracSettingsFragment.java b/parts/src/org/lineageos/settings/dirac/DiracSettingsFragment.java deleted file mode 100644 index df43233..0000000 --- a/parts/src/org/lineageos/settings/dirac/DiracSettingsFragment.java +++ /dev/null @@ -1,107 +0,0 @@ -/* - * Copyright (C) 2018,2020 The LineageOS Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.lineageos.settings.dirac; - -import android.os.Bundle; -import android.widget.Switch; -import android.util.Log; - -import androidx.preference.ListPreference; -import androidx.preference.Preference; -import androidx.preference.Preference.OnPreferenceChangeListener; -import androidx.preference.PreferenceFragment; -import androidx.preference.SwitchPreference; - -import com.android.settingslib.widget.MainSwitchPreference; -import com.android.settingslib.widget.OnMainSwitchChangeListener; - -import org.lineageos.settings.R; - -public class DiracSettingsFragment extends PreferenceFragment implements - OnPreferenceChangeListener, OnMainSwitchChangeListener { - - private static final String TAG = "DiracSettingsFragment"; - private static final String PREF_ENABLE = "dirac_enable"; - private static final String PREF_HEADSET = "dirac_headset_pref"; - private static final String PREF_PRESET = "dirac_preset_pref"; - private static final String PREF_SCENE = "scenario_selection"; - - private MainSwitchPreference mSwitchBar; - - private ListPreference mHeadsetType; - private ListPreference mPreset; - private ListPreference mScenes; - private DiracUtils mDiracUtils; - - @Override - public void onCreatePreferences(Bundle savedInstanceState, String rootKey) { - addPreferencesFromResource(R.xml.dirac_settings); - - try { - mDiracUtils = DiracUtils.getInstance(getActivity()); - } catch (Exception e) { - Log.d(TAG, "Dirac is not present in system"); - } - - boolean enhancerEnabled = mDiracUtils != null ? mDiracUtils.isDiracEnabled() : false; - mSwitchBar = (MainSwitchPreference) findPreference(PREF_ENABLE); - mSwitchBar.addOnSwitchChangeListener(this); - mSwitchBar.setChecked(enhancerEnabled); - - mHeadsetType = (ListPreference) findPreference(PREF_HEADSET); - mHeadsetType.setOnPreferenceChangeListener(this); - mHeadsetType.setEnabled(enhancerEnabled); - - mPreset = (ListPreference) findPreference(PREF_PRESET); - mPreset.setOnPreferenceChangeListener(this); - mPreset.setEnabled(enhancerEnabled); - - mScenes = (ListPreference) findPreference(PREF_SCENE); - mScenes.setOnPreferenceChangeListener(this); - mScenes.setEnabled(enhancerEnabled); - } - - @Override - public boolean onPreferenceChange(Preference preference, Object newValue) { - if (mDiracUtils == null) return false; - switch (preference.getKey()) { - case PREF_HEADSET: - mDiracUtils.setHeadsetType(Integer.parseInt(newValue.toString())); - return true; - case PREF_PRESET: - mDiracUtils.setLevel((String) newValue); - return true; - case PREF_SCENE: - mDiracUtils.setScenario(Integer.parseInt(newValue.toString())); - return true; - default: - return false; - } - } - - @Override - public void onSwitchChanged(Switch switchView, boolean isChecked) { - mSwitchBar.setChecked(isChecked); - - if (mDiracUtils == null) return; - mDiracUtils.setEnabled(isChecked); - mHeadsetType.setEnabled(isChecked); - mPreset.setEnabled(isChecked); - mScenes.setEnabled(isChecked); - - } -} diff --git a/parts/src/org/lineageos/settings/dirac/DiracSound.java b/parts/src/org/lineageos/settings/dirac/DiracSound.java deleted file mode 100644 index 86ac05a..0000000 --- a/parts/src/org/lineageos/settings/dirac/DiracSound.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright (C) 2018 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 org.lineageos.settings.dirac; - -import android.media.audiofx.AudioEffect; - -import java.util.UUID; - -public class DiracSound extends AudioEffect { - - private static final int DIRACSOUND_PARAM_HEADSET_TYPE = 1; - private static final int DIRACSOUND_PARAM_EQ_LEVEL = 2; - private static final int DIRACSOUND_PARAM_MUSIC = 4; - private static final int DIRACSOUND_PARAM_SCENE = 15; - - private static final UUID EFFECT_TYPE_DIRACSOUND = - UUID.fromString("5b8e36a5-144a-4c38-b1d7-0002a5d5c51b"); - private static final String TAG = "DiracSound"; - - public DiracSound(int priority, int audioSession) { - super(EFFECT_TYPE_NULL, EFFECT_TYPE_DIRACSOUND, priority, audioSession); - } - - public int getMusic() throws IllegalStateException, - IllegalArgumentException, UnsupportedOperationException, - RuntimeException { - int[] value = new int[1]; - checkStatus(getParameter(DIRACSOUND_PARAM_MUSIC, value)); - return value[0]; - } - - public void setMusic(int enable) throws IllegalStateException, - IllegalArgumentException, UnsupportedOperationException, - RuntimeException { - checkStatus(setParameter(DIRACSOUND_PARAM_MUSIC, enable)); - } - - public void setHeadsetType(int type) throws IllegalStateException, - IllegalArgumentException, UnsupportedOperationException, - RuntimeException { - checkStatus(setParameter(DIRACSOUND_PARAM_HEADSET_TYPE, type)); - } - - public void setLevel(int band, float level) throws IllegalStateException, - IllegalArgumentException, UnsupportedOperationException, - RuntimeException { - checkStatus(setParameter(new int[]{DIRACSOUND_PARAM_EQ_LEVEL, band}, - String.valueOf(level).getBytes())); - } - - public void setScenario(int scene) throws IllegalStateException, - IllegalArgumentException, UnsupportedOperationException, - RuntimeException { - checkStatus(setParameter(DIRACSOUND_PARAM_SCENE, scene)); - } -} diff --git a/parts/src/org/lineageos/settings/dirac/DiracTileService.java b/parts/src/org/lineageos/settings/dirac/DiracTileService.java deleted file mode 100644 index bfaebb4..0000000 --- a/parts/src/org/lineageos/settings/dirac/DiracTileService.java +++ /dev/null @@ -1,38 +0,0 @@ -package org.lineageos.settings.dirac; - -import android.service.quicksettings.Tile; -import android.service.quicksettings.TileService; - -public class DiracTileService extends TileService { - - private DiracUtils mDiracUtils; - - @Override - public void onStartListening() { - mDiracUtils = DiracUtils.getInstance(getApplicationContext()); - - Tile tile = getQsTile(); - if (mDiracUtils.isDiracEnabled()) { - tile.setState(Tile.STATE_ACTIVE); - } else { - tile.setState(Tile.STATE_INACTIVE); - } - - tile.updateTile(); - super.onStartListening(); - } - - @Override - public void onClick() { - Tile tile = getQsTile(); - if (mDiracUtils.isDiracEnabled()) { - mDiracUtils.setEnabled(false); - tile.setState(Tile.STATE_INACTIVE); - } else { - mDiracUtils.setEnabled(true); - tile.setState(Tile.STATE_ACTIVE); - } - tile.updateTile(); - super.onClick(); - } -} diff --git a/parts/src/org/lineageos/settings/dirac/DiracUtils.java b/parts/src/org/lineageos/settings/dirac/DiracUtils.java deleted file mode 100644 index 6182b0d..0000000 --- a/parts/src/org/lineageos/settings/dirac/DiracUtils.java +++ /dev/null @@ -1,137 +0,0 @@ -/* - * Copyright (C) 2018,2020 The LineageOS Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.lineageos.settings.dirac; - -import android.content.Context; -import android.content.Intent; -import android.os.Handler; -import android.os.UserHandle; -import android.os.SystemClock; -import android.view.KeyEvent; -import android.media.AudioManager; -import android.media.session.MediaController; -import android.media.session.MediaSessionManager; -import android.media.session.PlaybackState; -import java.util.List; - -public class DiracUtils { - - private static DiracUtils mInstance; - private DiracSound mDiracSound; - private MediaSessionManager mMediaSessionManager; - private Handler mHandler = new Handler(); - private Context mContext; - - public DiracUtils(Context context) { - mContext = context; - mMediaSessionManager = (MediaSessionManager) context.getSystemService(Context.MEDIA_SESSION_SERVICE); - mDiracSound = new DiracSound(0, 0); - } - - public static synchronized DiracUtils getInstance(Context context) { - if (mInstance == null) { - mInstance = new DiracUtils(context); - } - - return mInstance; - } - - private void triggerPlayPause(MediaController controller) { - long when = SystemClock.uptimeMillis(); - final KeyEvent evDownPause = new KeyEvent(when, when, KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_MEDIA_PAUSE, 0); - final KeyEvent evUpPause = KeyEvent.changeAction(evDownPause, KeyEvent.ACTION_UP); - final KeyEvent evDownPlay = new KeyEvent(when, when, KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_MEDIA_PLAY, 0); - final KeyEvent evUpPlay = KeyEvent.changeAction(evDownPlay, KeyEvent.ACTION_UP); - mHandler.post(new Runnable() { - @Override - public void run() { - controller.dispatchMediaButtonEvent(evDownPause); - } - }); - mHandler.postDelayed(new Runnable() { - @Override - public void run() { - controller.dispatchMediaButtonEvent(evUpPause); - } - }, 20); - mHandler.postDelayed(new Runnable() { - @Override - public void run() { - controller.dispatchMediaButtonEvent(evDownPlay); - } - }, 1000); - mHandler.postDelayed(new Runnable() { - @Override - public void run() { - controller.dispatchMediaButtonEvent(evUpPlay); - } - }, 1020); - } - - private int getMediaControllerPlaybackState(MediaController controller) { - if (controller != null) { - final PlaybackState playbackState = controller.getPlaybackState(); - if (playbackState != null) { - return playbackState.getState(); - } - } - return PlaybackState.STATE_NONE; - } - - private void refreshPlaybackIfNecessary() { - if (mMediaSessionManager == null) return; - - final List sessions - = mMediaSessionManager.getActiveSessionsForUser( - null, UserHandle.ALL); - for (MediaController aController : sessions) { - if (PlaybackState.STATE_PLAYING == - getMediaControllerPlaybackState(aController)) { - triggerPlayPause(aController); - break; - } - } - } - - public void setEnabled(boolean enable) { - mDiracSound.setEnabled(enable); - mDiracSound.setMusic(enable ? 1 : 0); - if (enable) { - refreshPlaybackIfNecessary(); - } - } - - public boolean isDiracEnabled() { - return mDiracSound != null && mDiracSound.getMusic() == 1; - } - - public void setLevel(String preset) { - String[] level = preset.split("\\s*,\\s*"); - - for (int band = 0; band <= level.length - 1; band++) { - mDiracSound.setLevel(band, Float.valueOf(level[band])); - } - } - - public void setHeadsetType(int paramInt) { - mDiracSound.setHeadsetType(paramInt); - } - - public void setScenario(int sceneInt) { - mDiracSound.setScenario(sceneInt); - } -} From d365ff1e9ed3829617fb6fcafb8ffb729a2ddc45 Mon Sep 17 00:00:00 2001 From: Demon000 Date: Fri, 17 Jul 2020 03:42:59 +0300 Subject: [PATCH 073/110] sweet: audio: Remove raw flag for audio pop Change-Id: I0be1cc8d9b000674ee15ea393af18f865e296b74 --- .../audio/audio_policy_configuration.xml | 29 ++++++++----------- configs/audio/audio_io_policy.conf | 2 +- 2 files changed, 13 insertions(+), 18 deletions(-) diff --git a/configs/audio/audio/audio_policy_configuration.xml b/configs/audio/audio/audio_policy_configuration.xml index b135c31..029b8af 100644 --- a/configs/audio/audio/audio_policy_configuration.xml +++ b/configs/audio/audio/audio_policy_configuration.xml @@ -63,11 +63,6 @@ - - - + sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out"/> + sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out"/> + sources="primary output,deep_buffer,direct_pcm,compressed_offload,dsd_compress_passthrough,voip_rx,mmap_no_irq_out"/> + sources="primary output,deep_buffer,direct_pcm,compressed_offload,dsd_compress_passthrough,voip_rx,mmap_no_irq_out"/> + sources="primary output,deep_buffer,direct_pcm,compressed_offload,dsd_compress_passthrough,voip_rx,mmap_no_irq_out"/> + sources="primary output,deep_buffer,direct_pcm,compressed_offload,compress_passthrough,voip_rx"/> + sources="primary output,deep_buffer,direct_pcm,compressed_offload"/> + sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx"/> + sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx"/> + sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx"/> + sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out,hifi_playback"/> + sources="primary output,deep_buffer,direct_pcm,compressed_offload,voip_rx,mmap_no_irq_out,hifi_playback"/> Date: Fri, 7 Jul 2023 23:41:23 +0530 Subject: [PATCH 074/110] sweet: add support for Mi Dolby Signed-off-by: Pulkit077 --- BoardConfig.mk | 3 ++ configs/audio/audio_effects.conf | 45 +++++++++++++---- configs/audio/audio_effects.xml | 42 ++++++---------- configs/media/media_codecs.xml | 1 + configs/media/media_codecs_dolby_audio.xml | 57 ++++++++++++++++++++++ device.mk | 3 ++ 6 files changed, 115 insertions(+), 36 deletions(-) create mode 100644 configs/media/media_codecs_dolby_audio.xml diff --git a/BoardConfig.mk b/BoardConfig.mk index 121510a..50c7e6a 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -190,3 +190,6 @@ WPA_SUPPLICANT_VERSION := VER_0_8_X # Inherit from proprietary files for miuicamera -include vendor/xiaomi/sweet-miuicamera/products/board.mk + +# Inherit from proprietary files for MiSound +-include vendor/xiaomi/sweet-misound/BoardConfigMiSound.mk diff --git a/configs/audio/audio_effects.conf b/configs/audio/audio_effects.conf index ddf578f..6a499ed 100644 --- a/configs/audio/audio_effects.conf +++ b/configs/audio/audio_effects.conf @@ -6,6 +6,18 @@ # } # } libraries { + gamedap { + path /vendor/lib/soundfx/libswgamedap.so + } + vqe { + path /vendor/lib/soundfx/libswvqe.so + } + dap { + path /vendor/lib/soundfx/libswdap.so + } + misoundfx { + path /vendor/lib/soundfx/libmisoundfx.so + } bundle { path /vendor/lib/soundfx/libbundlewrapper.so } @@ -76,6 +88,22 @@ libraries { # } effects { + gamedap { + library gamedap + uuid 3783c334-d3a0-4d13-874f-0032e5fb80e2 + } + vqe { + library vqe + uuid 64a0f614-7fa4-48b8-b081-d59dc954616f + } + dap { + library dap + uuid 9d4921da-8225-4f29-aefa-39537a04bcaa + } + misoundfx { + library misoundfx + uuid 5b8e36a5-144a-4c38-b1d7-0002a5d5c51b + } # additions for the proxy implementation # Proxy implementation @@ -269,26 +297,23 @@ effects { # UUID generated using version 1 output_session_processing { + system { + } music { - music_helper { - } + } ring { - ring_helper { - } + } alarm { - alarm_helper { - } + } # stream type voice_call is used for VoIP call voice_call { - voice_helper { - } + } notification { - notification_helper { - } + } } diff --git a/configs/audio/audio_effects.xml b/configs/audio/audio_effects.xml index 7ee4903..66f44ef 100644 --- a/configs/audio/audio_effects.xml +++ b/configs/audio/audio_effects.xml @@ -28,6 +28,10 @@ + + + + @@ -42,18 +46,12 @@ - - - - - - - - - - + + + + @@ -100,33 +98,25 @@ - - - - - - - - - - - + + + - + - + - + - + - + diff --git a/configs/media/media_codecs.xml b/configs/media/media_codecs.xml index 2025f97..1e0bf2f 100644 --- a/configs/media/media_codecs.xml +++ b/configs/media/media_codecs.xml @@ -118,6 +118,7 @@ Only the three quirks included above are recognized at this point: --> + diff --git a/configs/media/media_codecs_dolby_audio.xml b/configs/media/media_codecs_dolby_audio.xml new file mode 100644 index 0000000..1c98a62 --- /dev/null +++ b/configs/media/media_codecs_dolby_audio.xml @@ -0,0 +1,57 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/device.mk b/device.mk index c89dece..39c584b 100644 --- a/device.mk +++ b/device.mk @@ -432,3 +432,6 @@ $(call inherit-product, vendor/xiaomi/sweet/sweet-vendor.mk) # Inherit MIUI Camera $(call inherit-product-if-exists, vendor/xiaomi/sweet-miuicamera/products/miuicamera.mk) + +# Inherit MiSound +$(call inherit-product-if-exists, vendor/xiaomi/sweet-misound/MiSound.mk) From ada4a4d1cf4be76b3e3a8aea6343a03ffba6685b Mon Sep 17 00:00:00 2001 From: Pulkit077 Date: Wed, 12 Jul 2023 16:40:23 +0530 Subject: [PATCH 075/110] Revert "sweet: properties: Enable compress voip audio feature" This reverts commit 88379e8f50d3520e8e77b1aa318e9e03cb8ecda3. Signed-off-by: Pulkit077 --- properties.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/properties.mk b/properties.mk index 4b34ad9..3c1c7bf 100644 --- a/properties.mk +++ b/properties.mk @@ -60,7 +60,7 @@ vendor.audio.feature.anc_headset.enable=true \ vendor.audio.feature.audiozoom.enable=false \ vendor.audio.feature.battery_listener.enable=false \ vendor.audio.feature.compr_cap.enable=false \ -vendor.audio.feature.compr_voip.enable=true \ +vendor.audio.feature.compr_voip.enable=false \ vendor.audio.feature.compress_in.enable=false \ vendor.audio.feature.compress_meta_data.enable=true \ vendor.audio.feature.concurrent_capture.enable=false \ From d47465da4e0cb2a22e418a57be468fd87c0ab5dc Mon Sep 17 00:00:00 2001 From: Pierre-Hugues Husson Date: Tue, 24 Apr 2018 00:14:28 +0200 Subject: [PATCH 076/110] sweet: configs: audio: Fix "Earpiece" audio output Earpiece devicePorts profile mentions it is AUDIO_CHANNEL_IN_MONO, instead of AUDIO_CHANNEL_OUT_MONO. Change-Id: I4a88ba6d34d0fcd346eeea2ca903772f0271040a --- configs/audio/audio/audio_policy_configuration.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/audio/audio/audio_policy_configuration.xml b/configs/audio/audio/audio_policy_configuration.xml index 029b8af..84e4524 100644 --- a/configs/audio/audio/audio_policy_configuration.xml +++ b/configs/audio/audio/audio_policy_configuration.xml @@ -216,7 +216,7 @@ + samplingRates="48000" channelMasks="AUDIO_CHANNEL_OUT_MONO"/> Date: Thu, 10 Nov 2022 06:15:35 +0530 Subject: [PATCH 077/110] sweet: overlay: SystemUI: add overlays for ripple with face unlock - exclude faceunlock from camera gaze protection & add face auth props Signed-off-by: Pulkit077 --- overlay/SystemUI/res/values/config.xml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/overlay/SystemUI/res/values/config.xml b/overlay/SystemUI/res/values/config.xml index d89f1fd..7f2b89f 100644 --- a/overlay/SystemUI/res/values/config.xml +++ b/overlay/SystemUI/res/values/config.xml @@ -75,4 +75,14 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. true + + + co.aospa.sense + + + + 540 + 20 + 50 + From f23cd84a567363ac18dfa519e830cbb22848640f Mon Sep 17 00:00:00 2001 From: Zinadin Zidan Date: Sat, 17 Jun 2023 09:37:11 +0530 Subject: [PATCH 078/110] sweet: add AOSP recovery support Signed-off-by: Pulkit077 --- BoardConfig.mk | 2 ++ device.mk | 1 + rootdir/Android.bp | 7 +++++++ rootdir/etc/init.recovery.qcom.rc | 7 +++++++ 4 files changed, 17 insertions(+) create mode 100644 rootdir/etc/init.recovery.qcom.rc diff --git a/BoardConfig.mk b/BoardConfig.mk index 50c7e6a..70292ef 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -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) diff --git a/device.mk b/device.mk index 39c584b..c1008de 100644 --- a/device.mk +++ b/device.mk @@ -317,6 +317,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 diff --git a/rootdir/Android.bp b/rootdir/Android.bp index d57b3ce..f2f1150 100644 --- a/rootdir/Android.bp +++ b/rootdir/Android.bp @@ -48,6 +48,13 @@ prebuilt_etc { vendor: true, } +prebuilt_etc { + name: "init.recovery.qcom.rc", + src: "etc/init.recovery.qcom.rc", + sub_dir: "init", + recovery: true, +} + prebuilt_etc { name: "init.sweet.rc", src: "etc/init.sweet.rc", diff --git a/rootdir/etc/init.recovery.qcom.rc b/rootdir/etc/init.recovery.qcom.rc new file mode 100644 index 0000000..e278317 --- /dev/null +++ b/rootdir/etc/init.recovery.qcom.rc @@ -0,0 +1,7 @@ +on fs + wait /dev/block/platform/soc/${ro.boot.bootdevice} + symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice + +on init + setprop sys.usb.configfs 1 + setprop sys.usb.controller ${ro.boot.usbcontroller} From e9f11b54cc0654e76450fa82cbeec2d908422e44 Mon Sep 17 00:00:00 2001 From: Pulkit077 Date: Sun, 18 Dec 2022 09:50:34 +0530 Subject: [PATCH 079/110] sweet: libinit: set `ro.product.mod_device` property Signed-off-by: Pulkit077 --- libinit/include/libinit_variant.h | 1 + libinit/libinit_sweet.cpp | 3 +++ libinit/libinit_variant.cpp | 1 + 3 files changed, 5 insertions(+) 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 695ae1b..0a08993 100644 --- a/libinit/libinit_sweet.cpp +++ b/libinit/libinit_sweet.cpp @@ -19,6 +19,7 @@ static const variant_info_t sweetin_info = { .model = "M2101K6P", .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, }; @@ -33,6 +34,7 @@ static const variant_info_t sweetinpro_info = { .model = "M2101K6I", .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, }; @@ -47,6 +49,7 @@ static const variant_info_t sweet_global_info = { .model = "M2101K6G", .build_fingerprint = "Redmi/sweet_global/sweet:13/RKQ1.210614.002/V14.0.1.0.TKFMIXM:user/release-keys", .build_description = "sweet-user 13 TKQ1.221013.002 V14.0.1.0.TKFMIXM release-keys", + .mod_device = "sweet_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"); From eed5667f7db5e4dc4f31fa48173614df8ecb2eb9 Mon Sep 17 00:00:00 2001 From: Pulkit077 Date: Fri, 14 Jul 2023 15:20:25 +0530 Subject: [PATCH 080/110] Revert "sweet: add support for Mi Dolby" This reverts commit c2a53099d1f5a21cf0c058d5d09cd30a252f7f0b. Signed-off-by: Pulkit077 --- BoardConfig.mk | 3 -- configs/audio/audio_effects.conf | 45 ++++------------- configs/audio/audio_effects.xml | 42 ++++++++++------ configs/media/media_codecs.xml | 1 - configs/media/media_codecs_dolby_audio.xml | 57 ---------------------- device.mk | 3 -- 6 files changed, 36 insertions(+), 115 deletions(-) delete mode 100644 configs/media/media_codecs_dolby_audio.xml diff --git a/BoardConfig.mk b/BoardConfig.mk index 70292ef..1ef58ce 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -192,6 +192,3 @@ WPA_SUPPLICANT_VERSION := VER_0_8_X # Inherit from proprietary files for miuicamera -include vendor/xiaomi/sweet-miuicamera/products/board.mk - -# Inherit from proprietary files for MiSound --include vendor/xiaomi/sweet-misound/BoardConfigMiSound.mk diff --git a/configs/audio/audio_effects.conf b/configs/audio/audio_effects.conf index 6a499ed..ddf578f 100644 --- a/configs/audio/audio_effects.conf +++ b/configs/audio/audio_effects.conf @@ -6,18 +6,6 @@ # } # } libraries { - gamedap { - path /vendor/lib/soundfx/libswgamedap.so - } - vqe { - path /vendor/lib/soundfx/libswvqe.so - } - dap { - path /vendor/lib/soundfx/libswdap.so - } - misoundfx { - path /vendor/lib/soundfx/libmisoundfx.so - } bundle { path /vendor/lib/soundfx/libbundlewrapper.so } @@ -88,22 +76,6 @@ libraries { # } effects { - gamedap { - library gamedap - uuid 3783c334-d3a0-4d13-874f-0032e5fb80e2 - } - vqe { - library vqe - uuid 64a0f614-7fa4-48b8-b081-d59dc954616f - } - dap { - library dap - uuid 9d4921da-8225-4f29-aefa-39537a04bcaa - } - misoundfx { - library misoundfx - uuid 5b8e36a5-144a-4c38-b1d7-0002a5d5c51b - } # additions for the proxy implementation # Proxy implementation @@ -297,23 +269,26 @@ effects { # UUID generated using version 1 output_session_processing { - system { - } music { - + music_helper { + } } ring { - + ring_helper { + } } alarm { - + alarm_helper { + } } # stream type voice_call is used for VoIP call voice_call { - + voice_helper { + } } notification { - + notification_helper { + } } } diff --git a/configs/audio/audio_effects.xml b/configs/audio/audio_effects.xml index 66f44ef..7ee4903 100644 --- a/configs/audio/audio_effects.xml +++ b/configs/audio/audio_effects.xml @@ -28,10 +28,6 @@ - - - - @@ -46,12 +42,18 @@ + + + + + + + + + + - - - - @@ -98,25 +100,33 @@ - + + + + + + + + + + + - - - + - + - + - + - + diff --git a/configs/media/media_codecs.xml b/configs/media/media_codecs.xml index 1e0bf2f..2025f97 100644 --- a/configs/media/media_codecs.xml +++ b/configs/media/media_codecs.xml @@ -118,7 +118,6 @@ Only the three quirks included above are recognized at this point: --> - diff --git a/configs/media/media_codecs_dolby_audio.xml b/configs/media/media_codecs_dolby_audio.xml deleted file mode 100644 index 1c98a62..0000000 --- a/configs/media/media_codecs_dolby_audio.xml +++ /dev/null @@ -1,57 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/device.mk b/device.mk index c1008de..b75b648 100644 --- a/device.mk +++ b/device.mk @@ -433,6 +433,3 @@ $(call inherit-product, vendor/xiaomi/sweet/sweet-vendor.mk) # Inherit MIUI Camera $(call inherit-product-if-exists, vendor/xiaomi/sweet-miuicamera/products/miuicamera.mk) - -# Inherit MiSound -$(call inherit-product-if-exists, vendor/xiaomi/sweet-misound/MiSound.mk) From b4b35980cee51aa73625b0820f8260a80e69bec8 Mon Sep 17 00:00:00 2001 From: Jiyong Park Date: Sat, 18 May 2019 21:37:03 +0900 Subject: [PATCH 081/110] sweet: support updatable APEX Before, updatable_apex.mk was inherited indirectly from mainline_system.mk. Since mainline_system.mk no longer inherits updatable_apex.mk, updatable_apex.mk is inherited directly from device-specific mk file. Bug: 132664085 Test: choosecombo to sweet; get_build_var TARGET_FLATTEN_APEX shows false Change-Id: I7162567b732f284f618a77cf09f5b40aadd913d5 --- device.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/device.mk b/device.mk index b75b648..d5f4fab 100644 --- a/device.mk +++ b/device.mk @@ -11,6 +11,9 @@ 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) + # AAPT PRODUCT_AAPT_CONFIG := normal PRODUCT_AAPT_PREF_CONFIG := xxhdpi From 6630c7811a0679960d3dccc92744ca073fc57258 Mon Sep 17 00:00:00 2001 From: Pulkit077 Date: Thu, 5 Oct 2023 10:14:47 +0530 Subject: [PATCH 082/110] sweet: vibrator: fix misleading indentation error Signed-off-by: Pulkit077 --- vibrator/Vibrator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vibrator/Vibrator.cpp b/vibrator/Vibrator.cpp index 66b3756..9a75ac1 100644 --- a/vibrator/Vibrator.cpp +++ b/vibrator/Vibrator.cpp @@ -176,9 +176,10 @@ int InputFFDevice::play(int effectId, uint32_t timeoutMs, long *playLengthMs) { /* For QMAA compliance, return OK even if vibrator device doesn't exist */ if (mVibraFd == INVALID_VALUE) { - if (playLengthMs != NULL) + if (playLengthMs != NULL) { *playLengthMs = 0; return 0; + } } if (timeoutMs != 0) { From da0c64878a24d0cad2c21e04ca1687fd8cdbd2db Mon Sep 17 00:00:00 2001 From: Pulkit077 Date: Sun, 8 Oct 2023 06:05:02 +0530 Subject: [PATCH 083/110] sweet: build vendor variant of `android.frameworks.sensorservice` Signed-off-by: Pulkit077 --- device.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/device.mk b/device.mk index d5f4fab..5e807bc 100644 --- a/device.mk +++ b/device.mk @@ -343,6 +343,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 \ From c184964130b1439c78b606f109b1b120a5b9422a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Kosi=C5=84ski?= Date: Fri, 11 Nov 2022 05:41:10 +0000 Subject: [PATCH 084/110] sweet: Add prebuilt protobuf 3.9.1 to vendor partition. Needed to work around a Qualcomm HAL prebuilt. Bug: 203713560 Bug: 258322017 Bug: 254854421 Test: Forrest Change-Id: I4eebc60f10fbea6a66127ed3e08441db32536f78 --- device.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/device.mk b/device.mk index 5e807bc..f07103e 100644 --- a/device.mk +++ b/device.mk @@ -306,6 +306,10 @@ PRODUCT_SOONG_NAMESPACES += \ # Properties include $(LOCAL_PATH)/properties.mk +# Protobuf +PRODUCT_PACKAGES += \ + libprotobuf-cpp-full-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 From fd27b9eb595156e0a7705c4f0251ad8602ce88c3 Mon Sep 17 00:00:00 2001 From: LuK1337 Date: Fri, 20 Oct 2023 00:53:15 +0200 Subject: [PATCH 085/110] sweet: Build libprotobuf-cpp-lite-3.9.1-vendorcompat Change-Id: I0aac742db9c2b4b3e48ee20158f19405863893c2 --- device.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/device.mk b/device.mk index f07103e..22427a1 100644 --- a/device.mk +++ b/device.mk @@ -308,7 +308,8 @@ include $(LOCAL_PATH)/properties.mk # Protobuf PRODUCT_PACKAGES += \ - libprotobuf-cpp-full-3.9.1-vendorcompat + libprotobuf-cpp-full-3.9.1-vendorcompat \ + libprotobuf-cpp-lite-3.9.1-vendorcompat # qdcm PRODUCT_COPY_FILES += \ From 9995f8499dce620ff3a1d765c1f1ddf9dd1892a9 Mon Sep 17 00:00:00 2001 From: Gabriel Biren Date: Fri, 28 Oct 2022 18:47:03 +0000 Subject: [PATCH 086/110] sweet: update makefile to use the AIDL wifi service Bug: 205044134 Test: Presubmit tests Change-Id: I4ee61c25dc66e7deee8573e960736d32951b73d2 --- device.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/device.mk b/device.mk index 22427a1..96b8447 100644 --- a/device.mk +++ b/device.mk @@ -409,7 +409,7 @@ PRODUCT_PACKAGES += \ # WiFi PRODUCT_PACKAGES += \ - android.hardware.wifi@1.0-service \ + android.hardware.wifi-service \ hostapd \ libwifi-hal-qcom \ libwpa_client \ From f5f61ff5c00f1724a9d783afe2ec03e096be172f Mon Sep 17 00:00:00 2001 From: Michael Bestas Date: Wed, 22 Nov 2023 20:06:42 +0200 Subject: [PATCH 087/110] sweet: properties: Drop deprecated IWLAN property This is no longer read as of https://github.com/LineageOS/android_frameworks_opt_telephony/commit/d8d3ed41243ba1fc4b5a5a2a6e30be3f6a404a9d Change-Id: I1e56b56251d9e2d3cfbddd5ba575129885f9942a --- properties.mk | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/properties.mk b/properties.mk index 3c1c7bf..ecfbd42 100644 --- a/properties.mk +++ b/properties.mk @@ -303,8 +303,7 @@ persist.vendor.radio.manual_nw_rej_ct=1 \ persist.vendor.radio.procedure_bytes=SKIP \ persist.vendor.radio.rat_on=combine \ persist.vendor.radio.sib16_support=1 \ -ro.telephony.default_cdma_sub=0 \ -ro.telephony.iwlan_operation_mode=legacy +ro.telephony.default_cdma_sub=0 PRODUCT_SYSTEM_EXT_PROPERTIES += \ ro.telephony.sim_slots.count=2 \ From d0a00a1e2b5de4fe8c7030e0130792b42471908f Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Tue, 24 Oct 2023 18:12:15 +0100 Subject: [PATCH 088/110] sweet: BoardConfig: Migrate to restructured sepolicy_vndr MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The new folder structure now looks like this: device/qcom/sepolicy_vndr ├─ legacy-um (meant for sdm845 until sm8350) ├─ sm8450 └─ sm8550 SEPolicy.mk placed in the root automatically redirects devices to the proper subfolder. Change-Id: I4ed1a06af779909d64172da294c4a99a3ae9ba0d --- BoardConfig.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BoardConfig.mk b/BoardConfig.mk index 1ef58ce..963b9c8 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -152,7 +152,7 @@ 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 := 2023-03-01 From b9774434ae223b3c9aa17e666ef34db918afa3e8 Mon Sep 17 00:00:00 2001 From: Daniel Rosenberg Date: Fri, 16 Jul 2021 12:52:43 +0200 Subject: [PATCH 089/110] sweet: Enable casefolding support on userdata This enables casefolding, which is required for removal of sdcardfs. Test: Wipe data and boot. lsattr /data/media, check for +F Bug: 138322712 Change-Id: I020aa6bb9c121e7bda83c07bc9fb37dcfa26702c --- device.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/device.mk b/device.mk index 96b8447..a1f9b38 100644 --- a/device.mk +++ b/device.mk @@ -14,6 +14,9 @@ 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 From f461e87a723bae62b6088b5c080ad3bf105747c2 Mon Sep 17 00:00:00 2001 From: Alessio Balsini Date: Mon, 8 Mar 2021 11:18:16 +0000 Subject: [PATCH 090/110] sweet: properties: Use FUSE passthrough by default Enable the persist.sys.fuse.passthrough.enable flag for the P21 device configuration to enable the FUSE passthrough feature. This feature has been enabled on Cuttlefish, Wembley and Redbull devices for months and no issues have been detected yet. Bug: 168023149 Test: 'adb shell getprop | grep persist.sys.fuse.passthrough.enable', ScopedStorageTest Signed-off-by: Alessio Balsini Change-Id: I3f39b02af436f7e508bb70efc702565a667a051c --- properties.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/properties.mk b/properties.mk index ecfbd42..8974259 100644 --- a/properties.mk +++ b/properties.mk @@ -198,6 +198,10 @@ persist.sys.sf.color_mode=9 PRODUCT_PROPERTY_OVERRIDES += \ ro.frp.pst=/dev/block/bootdevice/by-name/frp +# Fuse +PRODUCT_PRODUCT_PROPERTIES += \ +persist.sys.fuse.passthrough.enable=true + # Fwk detect PRODUCT_ODM_PROPERTIES += \ ro.vendor.qti.va_odm.support=1 From f80681eb286360ab3ffafe76c4601df2ad3103ea Mon Sep 17 00:00:00 2001 From: Arian Date: Thu, 4 Nov 2021 17:54:06 +0100 Subject: [PATCH 091/110] sweet: parts: Target current sdk Change-Id: Ia623282960775569325714ab3bff5ad027776352 --- parts/AndroidManifest.xml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/parts/AndroidManifest.xml b/parts/AndroidManifest.xml index 682004d..d250e0d 100644 --- a/parts/AndroidManifest.xml +++ b/parts/AndroidManifest.xml @@ -28,10 +28,6 @@ - - From 3b3522edacae84d86cd0f73665f704d0d3877caf Mon Sep 17 00:00:00 2001 From: Arian Date: Thu, 4 Nov 2021 17:50:34 +0100 Subject: [PATCH 092/110] sweet: parts: Declare exported flags in manifest Apps targeting Android 12 and higher are required to specify an explicit value for android:exported when the corresponding component has an intent filter defined. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details. Change-Id: Iae52e076a78fd1def53988bc0cd19ef599cd96be --- parts/AndroidManifest.xml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/parts/AndroidManifest.xml b/parts/AndroidManifest.xml index d250e0d..61038b2 100644 --- a/parts/AndroidManifest.xml +++ b/parts/AndroidManifest.xml @@ -43,7 +43,8 @@ + android:theme="@style/Theme.SubSettingsBase" + android:exported="true"> @@ -111,7 +112,8 @@ + android:theme="@style/Theme.SubSettingsBase" + android:exported="true"> @@ -128,7 +130,8 @@ android:name=".display.DcDimmingTileService" android:icon="@drawable/ic_dc_tile" android:label="@string/dc_dimming_enable_title" - android:permission="android.permission.BIND_QUICK_SETTINGS_TILE"> + android:permission="android.permission.BIND_QUICK_SETTINGS_TILE" + android:exported="true"> From db47f59ddc83ff15c3e6a82ca38b1ed2e178d840 Mon Sep 17 00:00:00 2001 From: Pulkit077 Date: Wed, 1 Nov 2023 12:40:51 +0530 Subject: [PATCH 093/110] Revert "sweet: properties: Drop SF latch_unsignaled property" This reverts commit 20f62c718ae7451a6e7f83162c917fb2c7418a5f. Signed-off-by: Pulkit077 --- properties.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/properties.mk b/properties.mk index 8974259..a766820 100644 --- a/properties.mk +++ b/properties.mk @@ -214,6 +214,7 @@ PRODUCT_PROPERTY_OVERRIDES += \ debug.sf.disable_backpressure=1 \ debug.sf.enable_hwc_vds=1 \ debug.sf.enable_transaction_tracing=false \ +debug.sf.latch_unsignaled=1 \ debug.sf.predict_hwc_composition_strategy=0 \ debug.sf.treat_170m_as_sRGB=1 \ persist.sys.sf.color_saturation=1.0 \ From 4759de41c01c9d115ff42f50fc94d565adf03d50 Mon Sep 17 00:00:00 2001 From: Pulkit077 Date: Sat, 21 Oct 2023 13:59:40 +0530 Subject: [PATCH 094/110] sweet: audio: re-enable A2DP Signed-off-by: Pulkit077 --- .../audio/audio_policy_configuration.xml | 394 ------------------ configs/audio/audio_configs.xml | 2 +- configs/audio/audio_configs_stock.xml | 2 +- configs/audio/audio_io_policy.conf | 2 +- configs/audio/audio_policy_configuration.xml | 297 +++++++++++++ device.mk | 1 - properties.mk | 9 +- 7 files changed, 305 insertions(+), 402 deletions(-) delete mode 100644 configs/audio/audio/audio_policy_configuration.xml create mode 100644 configs/audio/audio_policy_configuration.xml diff --git a/configs/audio/audio/audio_policy_configuration.xml b/configs/audio/audio/audio_policy_configuration.xml deleted file mode 100644 index 84e4524..0000000 --- a/configs/audio/audio/audio_policy_configuration.xml +++ /dev/null @@ -1,394 +0,0 @@ - - - - - - - - - - - - - - - - - Earpiece - Speaker - Telephony Tx - Built-In Mic - Built-In Back Mic - FM Tuner - Telephony Rx - - Speaker - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/configs/audio/audio_configs.xml b/configs/audio/audio_configs.xml index 787549b..8940b16 100644 --- a/configs/audio/audio_configs.xml +++ b/configs/audio/audio_configs.xml @@ -67,7 +67,7 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - + diff --git a/configs/audio/audio_configs_stock.xml b/configs/audio/audio_configs_stock.xml index 140d4d0..bbc44c3 100644 --- a/configs/audio/audio_configs_stock.xml +++ b/configs/audio/audio_configs_stock.xml @@ -29,7 +29,7 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --> - + diff --git a/configs/audio/audio_io_policy.conf b/configs/audio/audio_io_policy.conf index a07ff21..7e94df7 100644 --- a/configs/audio/audio_io_policy.conf +++ b/configs/audio/audio_io_policy.conf @@ -26,7 +26,7 @@ outputs { app_type 69937 } proaudio { - flags AUDIO_OUTPUT_FLAG_FAST + flags AUDIO_OUTPUT_FLAG_FAST|AUDIO_OUTPUT_FLAG_RAW formats AUDIO_FORMAT_PCM_16_BIT sampling_rates 48000 bit_width 16 diff --git a/configs/audio/audio_policy_configuration.xml b/configs/audio/audio_policy_configuration.xml new file mode 100644 index 0000000..755a1b6 --- /dev/null +++ b/configs/audio/audio_policy_configuration.xml @@ -0,0 +1,297 @@ + + + + + + + + + + + + + + + + Speaker + Earpiece + Telephony Tx + Built-In Mic + Built-In Back Mic + Telephony Rx + + Speaker + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/device.mk b/device.mk index a1f9b38..a0447b5 100644 --- a/device.mk +++ b/device.mk @@ -49,7 +49,6 @@ PRODUCT_COPY_FILES += \ $(call find-copy-subdir-files,*,$(LOCAL_PATH)/configs/audio/,$(TARGET_COPY_OUT_VENDOR)/etc) PRODUCT_COPY_FILES += \ - frameworks/av/services/audiopolicy/config/bluetooth_audio_policy_configuration.xml:/$(TARGET_COPY_OUT_VENDOR)/etc/bluetooth_audio_policy_configuration.xml \ frameworks/av/services/audiopolicy/config/default_volume_tables.xml:$(TARGET_COPY_OUT_VENDOR)/etc/default_volume_tables.xml \ frameworks/av/services/audiopolicy/config/r_submix_audio_policy_configuration.xml:$(TARGET_COPY_OUT_VENDOR)/etc/r_submix_audio_policy_configuration.xml diff --git a/properties.mk b/properties.mk index a766820..8ecd51f 100644 --- a/properties.mk +++ b/properties.mk @@ -48,13 +48,13 @@ vendor.audio.mic.status=off # Audio (Bluetooth) PRODUCT_PROPERTY_OVERRIDES += \ -persist.bluetooth.a2dp_offload.disabled=true \ -ro.bluetooth.a2dp_offload.supported=false +persist.bluetooth.a2dp_offload.disabled=false \ +ro.bluetooth.a2dp_offload.supported=true # Audio (Features) PRODUCT_PROPERTY_OVERRIDES += \ vendor.audio.adm.buffering.ms=6 \ -vendor.audio.feature.a2dp_offload.enable=false \ +vendor.audio.feature.a2dp_offload.enable=true \ vendor.audio.feature.afe_proxy.enable=true \ vendor.audio.feature.anc_headset.enable=true \ vendor.audio.feature.audiozoom.enable=false \ @@ -123,8 +123,9 @@ bluetooth.profile.sap.server.enabled=false PRODUCT_PROPERTY_OVERRIDES += \ persist.vendor.bluetooth.ble_drop_power=true \ +persist.vendor.qcom.bluetooth.a2dp_offload_cap=sbc-aptx-aptxtws-aptxhd-aac-ldac-aptxadaptive \ persist.vendor.qcom.bluetooth.aac_frm_ctl.enabled=true \ -persist.vendor.qcom.bluetooth.enable.splita2dp=false \ +persist.vendor.qcom.bluetooth.enable.splita2dp=true \ persist.vendor.qcom.bluetooth.enable.swb=false \ persist.vendor.qcom.bluetooth.enable.swbpm=false \ persist.vendor.qcom.bluetooth.scram.enabled=true \ From ae8e09d76cb0eea2fca8fb772e1b5eaef43e1155 Mon Sep 17 00:00:00 2001 From: Pulkit077 Date: Wed, 20 Dec 2023 16:07:14 +0530 Subject: [PATCH 095/110] sweet: configs: audio: add a2dp output Signed-off-by: Pulkit077 --- configs/audio/audio_policy_configuration.xml | 24 +++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) 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 @@ - + + + + + + + + + + + + + + From 19106b05afac58d0a5206af944a4a2719ab75cea Mon Sep 17 00:00:00 2001 From: Sebastiano Barezzi Date: Fri, 22 Dec 2023 19:51:23 +0530 Subject: [PATCH 096/110] sweet: interfaces: update displayfeature & touchfeature Signed-off-by: Pulkit077 --- .../hardware/displayfeature/1.0/Android.bp | 4 ++- .../displayfeature/1.0/IDisplayFeature.hal | 28 +++++++++++++++++-- .../1.0/IDisplayFeatureCallback.hal | 21 ++++++++++++++ .../hardware/displayfeature/1.0/types.hal | 21 ++++++++++++++ .../hardware/touchfeature/1.0/Android.bp | 2 +- .../touchfeature/1.0/ITouchFeature.hal | 22 +++++++++------ ...date-makefiles.sh => updates-makefiles.sh} | 0 7 files changed, 86 insertions(+), 12 deletions(-) create mode 100644 interfaces/hardware/displayfeature/1.0/IDisplayFeatureCallback.hal create mode 100644 interfaces/hardware/displayfeature/1.0/types.hal rename interfaces/{update-makefiles.sh => updates-makefiles.sh} (100%) 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/interfaces/hardware/displayfeature/1.0/IDisplayFeatureCallback.hal b/interfaces/hardware/displayfeature/1.0/IDisplayFeatureCallback.hal new file mode 100644 index 0000000..516117b --- /dev/null +++ b/interfaces/hardware/displayfeature/1.0/IDisplayFeatureCallback.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; + +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..3e6049b 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); + getModeCurValue(int32_t touchId, int32_t ControlMode) generates (int32_t result); + getModeDefaultValue(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); + getModeValue(int32_t touchId, int32_t mode) generates (vec result); + modeReset(int32_t touchId, int32_t ControlMode) generates (int32_t result); + setModeLongValue(int32_t touchId, int32_t ControlMode, uint32_t ValueLen, vec ValueBuf) generates (int32_t result); + setModeValue(int32_t touchId, int32_t ControlMode, int32_t ModeValue) generates (int32_t result); }; diff --git a/interfaces/update-makefiles.sh b/interfaces/updates-makefiles.sh similarity index 100% rename from interfaces/update-makefiles.sh rename to interfaces/updates-makefiles.sh From 40c11e23e0d756598e60029ce655fcb925663499 Mon Sep 17 00:00:00 2001 From: Adithya R Date: Wed, 6 Dec 2023 21:27:00 +0530 Subject: [PATCH 097/110] sweet: interfaces: touchfeature: Fix method ordering Required to generate correct binder transaction code. Change-Id: Idf55f82c689a2e23dbeb998d4513463b46b8ed30 --- interfaces/hardware/touchfeature/1.0/ITouchFeature.hal | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/interfaces/hardware/touchfeature/1.0/ITouchFeature.hal b/interfaces/hardware/touchfeature/1.0/ITouchFeature.hal index 3e6049b..99facd4 100644 --- a/interfaces/hardware/touchfeature/1.0/ITouchFeature.hal +++ b/interfaces/hardware/touchfeature/1.0/ITouchFeature.hal @@ -7,12 +7,12 @@ package vendor.xiaomi.hardware.touchfeature@1.0; interface ITouchFeature { + 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); - getModeDefaultValue(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); - getModeValue(int32_t touchId, int32_t mode) generates (vec 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); - setModeValue(int32_t touchId, int32_t ControlMode, int32_t ModeValue) generates (int32_t result); }; From 4336e3456fb72b8c955c9f1983cbfb090ae868cc Mon Sep 17 00:00:00 2001 From: Pulkit077 Date: Fri, 22 Dec 2023 22:21:35 +0530 Subject: [PATCH 098/110] sweet: parts: thermal: adapt to updated touchfeature interface Signed-off-by: Pulkit077 --- .../lineageos/settings/thermal/ThermalUtils.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/parts/src/org/lineageos/settings/thermal/ThermalUtils.java b/parts/src/org/lineageos/settings/thermal/ThermalUtils.java index 28a3ef9..3cb8beb 100644 --- a/parts/src/org/lineageos/settings/thermal/ThermalUtils.java +++ b/parts/src/org/lineageos/settings/thermal/ThermalUtils.java @@ -207,10 +207,10 @@ private void updateTouchModes(String packageName) { int touchActiveMode = (touchResponse != 0 && touchSensitivity != 0 && touchResistant != 0) ? 1 : 0; try { - mTouchFeature.setTouchMode(Constants.MODE_TOUCH_TOLERANCE, touchSensitivity); - mTouchFeature.setTouchMode(Constants.MODE_TOUCH_UP_THRESHOLD, touchResponse); - mTouchFeature.setTouchMode(Constants.MODE_TOUCH_EDGE_FILTER, touchResistant); - mTouchFeature.setTouchMode(Constants.MODE_TOUCH_GAME_MODE, gameMode); + mTouchFeature.setModeValue(0, Constants.MODE_TOUCH_TOLERANCE, touchSensitivity); + mTouchFeature.setModeValue(0, Constants.MODE_TOUCH_UP_THRESHOLD, touchResponse); + mTouchFeature.setModeValue(0, Constants.MODE_TOUCH_EDGE_FILTER, touchResistant); + mTouchFeature.setModeValue(0, Constants.MODE_TOUCH_GAME_MODE, gameMode); } catch (RemoteException e) { // Do nothing } @@ -224,10 +224,10 @@ protected void resetTouchModes() { } try { - mTouchFeature.resetTouchMode(Constants.MODE_TOUCH_GAME_MODE); - mTouchFeature.resetTouchMode(Constants.MODE_TOUCH_UP_THRESHOLD); - mTouchFeature.resetTouchMode(Constants.MODE_TOUCH_TOLERANCE); - mTouchFeature.resetTouchMode(Constants.MODE_TOUCH_EDGE_FILTER); + mTouchFeature.modeReset(0, Constants.MODE_TOUCH_GAME_MODE); + mTouchFeature.modeReset(0, Constants.MODE_TOUCH_UP_THRESHOLD); + mTouchFeature.modeReset(0, Constants.MODE_TOUCH_TOLERANCE); + mTouchFeature.modeReset(0, Constants.MODE_TOUCH_EDGE_FILTER); } catch (RemoteException e) { // Do nothing } From 1b9e6f1d7f73546abb7778ee2eea18f712d47bb7 Mon Sep 17 00:00:00 2001 From: Alex Sarraf Date: Thu, 11 Jun 2020 17:46:11 -0700 Subject: [PATCH 099/110] sweet: properties: Disable SF client composition cache for <5.4 targets Disable SF client composition cache. Helps with framework client target fence management. Change-Id: I73e03e76f51d00fafad38479be00f4005be50665 Signed-off-by: chrisl7 --- properties.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/properties.mk b/properties.mk index 8ecd51f..70eb71c 100644 --- a/properties.mk +++ b/properties.mk @@ -213,6 +213,7 @@ ro.vendor.qti.va_aosp.support=1 # Graphics PRODUCT_PROPERTY_OVERRIDES += \ debug.sf.disable_backpressure=1 \ +debug.sf.disable_client_composition_cache=1 \ debug.sf.enable_hwc_vds=1 \ debug.sf.enable_transaction_tracing=false \ debug.sf.latch_unsignaled=1 \ From 18a2e1654d7bd5a57f66a41327b982034db70f67 Mon Sep 17 00:00:00 2001 From: Alex Sarraf Date: Fri, 27 Jan 2023 08:35:12 -0800 Subject: [PATCH 100/110] sweet: properties: Set debug.sf.auto_latch_unsignaled to 0 for 5.10 and lower Need to explicitly set auto_latch_unsignaled property to disabled state to keep latch-unsignaled as the default behavior. Change-Id: I3856caaf0a68e7e720819f25338d1eb9196f56b0 --- properties.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/properties.mk b/properties.mk index 70eb71c..4fd2313 100644 --- a/properties.mk +++ b/properties.mk @@ -212,6 +212,7 @@ ro.vendor.qti.va_aosp.support=1 # Graphics PRODUCT_PROPERTY_OVERRIDES += \ +debug.sf.auto_latch_unsignaled=0 \ debug.sf.disable_backpressure=1 \ debug.sf.disable_client_composition_cache=1 \ debug.sf.enable_hwc_vds=1 \ From f5d4bce7990718f54079dafffc419f38c4801952 Mon Sep 17 00:00:00 2001 From: Pulkit077 Date: Thu, 7 Dec 2023 21:54:45 +0530 Subject: [PATCH 101/110] add support for sweet_k6a Signed-off-by: Pulkit077 --- Android.mk | 2 +- AndroidProducts.mk | 2 +- BoardConfig.mk | 10 +++++----- README.md | 8 ++++---- device.mk | 4 ++-- extract-files.sh | 2 +- interfaces/Android.bp | 2 +- interfaces/updates-makefiles.sh | 2 +- lineage_sweet.mk => lineage_sweet_k6a.mk | 8 ++++---- setup-makefiles.sh | 2 +- update-sha1sums.py | 2 +- 11 files changed, 22 insertions(+), 22 deletions(-) rename lineage_sweet.mk => lineage_sweet_k6a.mk (77%) 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 963b9c8..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,7 +27,7 @@ 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 @@ -71,7 +71,7 @@ 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 @@ -188,7 +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-miuicamera/products/board.mk +-include vendor/xiaomi/sweet_k6a-miuicamera/products/board.mk diff --git a/README.md b/README.md index 5c7fe9a..d19fc8a 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 @@ -22,8 +22,8 @@ Basic | Spec Sheet | 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 | +| Sensors | Fingerprint (side-mounted), accelerometer, gyro, ultrasound proximity, compass | | Release Date | March 2021 | ## 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/device.mk b/device.mk index a0447b5..892f421 100644 --- a/device.mk +++ b/device.mk @@ -442,7 +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-miuicamera/products/miuicamera.mk) +$(call inherit-product-if-exists, vendor/xiaomi/sweet_k6a-miuicamera/products/miuicamera.mk) diff --git a/extract-files.sh b/extract-files.sh index cbcd957..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. 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/updates-makefiles.sh b/interfaces/updates-makefiles.sh index 997d09a..94277a1 100755 --- a/interfaces/updates-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/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/setup-makefiles.sh b/setup-makefiles.sh index b65c397..b539fcd 100755 --- a/setup-makefiles.sh +++ b/setup-makefiles.sh @@ -8,7 +8,7 @@ set -e -export DEVICE=sweet +export DEVICE=sweet_k6a export VENDOR=xiaomi # Load extract_utils and do some sanity checks diff --git a/update-sha1sums.py b/update-sha1sums.py index 19dba0e..e032e76 100755 --- a/update-sha1sums.py +++ b/update-sha1sums.py @@ -20,7 +20,7 @@ import sys from hashlib import sha1 -device='sweet' +device='sweet_k6a' vendor='xiaomi' with open('proprietary-files.txt', 'r') as f: From 181ae49a62a08f8e59afccc5c5626ad68373be15 Mon Sep 17 00:00:00 2001 From: Pulkit077 Date: Fri, 8 Dec 2023 10:20:30 +0530 Subject: [PATCH 102/110] sweet_k6a: update blobs from sweet_k6a V14.0.5.0.THGMIXM - from sweet_global2-user 13 TKQ1.221114.001 V14.0.5.0.THGMIXM release-keys - also reorder list Signed-off-by: Pulkit077 --- configs/nfc/libnfc-nci.conf | 2 +- configs/nfc/libnfc-nxp.conf | 1249 +++++++++++++++++++---------------- libinit/libinit_sweet.cpp | 10 +- manifests/manifest.xml | 15 - proprietary-files.txt | 262 ++++---- 5 files changed, 822 insertions(+), 716 deletions(-) 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/libinit/libinit_sweet.cpp b/libinit/libinit_sweet.cpp index 0a08993..41a58dc 100644 --- a/libinit/libinit_sweet.cpp +++ b/libinit/libinit_sweet.cpp @@ -45,11 +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:13/RKQ1.210614.002/V14.0.1.0.TKFMIXM:user/release-keys", - .build_description = "sweet-user 13 TKQ1.221013.002 V14.0.1.0.TKFMIXM release-keys", - .mod_device = "sweet_global", + .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/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/proprietary-files.txt b/proprietary-files.txt index 1ceb964..8736086 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -1,4 +1,4 @@ -# All unpinned blobs below are extracted from miui_SWEETININGlobal_V14.0.1.0.TKFINXM_022ce09a45_13.0 +# All unpinned blobs below are extracted from miui_SWEETK6AGlobal_V14.0.5.0.THGMIXM_0ee8974df3_13 # ADSP vendor/bin/adsprpcd @@ -10,16 +10,18 @@ vendor/lib64/libadsprpc.so vendor/lib64/libssc_default_listener.so # ADSP-Modules -vendor/lib/rfsa/adsp/capi_v2_aptX_Classic.so vendor/lib/rfsa/adsp/capi_v2_aptX_CLHDAD_Encoder.so +vendor/lib/rfsa/adsp/capi_v2_aptX_Classic.so vendor/lib/rfsa/adsp/capi_v2_aptX_HD.so vendor/lib/rfsa/adsp/capi_v2_dap_cpdp.so +vendor/lib/rfsa/adsp/libSnpeHtpV68Skel.so +vendor/lib/rfsa/adsp/libSnpeHtpV69Skel.so vendor/lib/rfsa/adsp/libVC1Dec.so vendor/lib/rfsa/adsp/libVC1DecDsp_skel.so vendor/lib/rfsa/adsp/libapps_mem_heap.so vendor/lib/rfsa/adsp/libarc_hta_driver_skel.so -vendor/lib/rfsa/adsp/libarcsoft_dualcam_refocus_skel.so vendor/lib/rfsa/adsp/libarcsoft_hdrplus_hvx_skel.so +vendor/lib/rfsa/adsp/libcalculator_skel.so vendor/lib/rfsa/adsp/libcamera_nn_skel.so vendor/lib/rfsa/adsp/libdspCV_skel.so vendor/lib/rfsa/adsp/libdsp_streamer_add_constant.so @@ -30,16 +32,17 @@ vendor/lib/rfsa/adsp/libfastcvdsp_skel.so vendor/lib/rfsa/adsp/libhexagon_nn_skel.so vendor/lib/rfsa/adsp/libhexagon_nn_skel_secondary.so vendor/lib/rfsa/adsp/libhta_dsp_skel.so -vendor/lib/rfsa/adsp/libmialgo_rfs_cdsp_skel.so +vendor/lib/rfsa/adsp/libmialgo_basic_cdsp_skel.so +vendor/lib/rfsa/adsp/libmialgo_mc_bokeh_cdsp_skel.so vendor/lib/rfsa/adsp/libscveObjectSegmentation_skel.so vendor/lib/rfsa/adsp/libscveT2T_skel.so vendor/lib/rfsa/adsp/libsnpe_dsp_v65_domains_v2_skel.so vendor/lib/rfsa/adsp/libsnpe_dsp_v66_domains_v2_skel.so +vendor/lib/rfsa/adsp/libsnpe_dsp_v68_domains_v3_skel.so vendor/lib/rfsa/adsp/libsns_device_mode_skel.so vendor/lib/rfsa/adsp/libsns_low_lat_stream_skel.so vendor/lib/rfsa/adsp/misound_karaoke_res.bin vendor/lib/rfsa/adsp/misound_karaokemix_res.bin -vendor/lib/rfsa/adsp/misound_res.bin vendor/lib/rfsa/adsp/misound_res_headphone.bin vendor/lib/rfsa/adsp/misound_res_spk.bin @@ -78,22 +81,20 @@ vendor/lib/libsurround_3mic_proc.so # Audio (FX modules) system_ext/etc/permissions/audiosphere.xml system_ext/framework/audiosphere.jar +vendor/lib/libdapparamstorage.so vendor/lib/soundfx/libasphere.so +vendor/lib/soundfx/libdirac.so vendor/lib/soundfx/libhwdap.so +vendor/lib/soundfx/libmisoundfx.so vendor/lib/soundfx/libshoebox.so vendor/lib/soundfx/libswgamedap.so vendor/lib/soundfx/libswvqe.so -vendor/lib/libdapparamstorage.so - -# Audio (FX modules) - from sweetin-user 12 SKQ1.210908.001 V13.0.10.0.SKFINXM release-keys -vendor/lib/soundfx/libdirac.so|da2c2c47da3e729dc94038cd2953e620499b1fad -vendor/lib/soundfx/libmisoundfx.so|fde0519727e01c38296e4b938714f8501afc629b # Audio (Hardware) vendor/lib/hw/audio.primary.sm6150.so -vendor/lib/vndk/libxlog.so vendor/lib/libaudio_log_utils.so vendor/lib/libaudioroute_ext.so +vendor/lib/vndk/libxlog.so # Audio (ACDB) vendor/etc/acdbdata/Forte/Forte_Bluetooth_cal.acdb @@ -119,8 +120,8 @@ vendor/lib64/libbtnv.so # Bluetooth (audio) vendor/lib/btaudio_offload_if.so -vendor/lib/libbluetooth_audio_session_qti_2_1.so vendor/lib/libbluetooth_audio_session_qti.so +vendor/lib/libbluetooth_audio_session_qti_2_1.so # Bluetooth (Configstore) vendor/lib64/hw/vendor.qti.hardware.btconfigstore@2.0-impl.so @@ -144,6 +145,8 @@ vendor/lib64/libsdsprpc.so vendor/app/CneApp/CneApp.apk|345dc6c677e9bd7a7d36033b8955e90d2a1594d5 vendor/app/IWlanService/IWlanService.apk|9ea57bfbf58799a564fcf498de9f5fe3506f7342 vendor/bin/cnd|d33924372818ad112e5ddeec719aadbf33fd4ef2 +vendor/etc/cne/mwqem.conf|c42ad47b34b511075e5dfb9047d32f881fe0c159 +vendor/etc/cne/profileMwqem.xml|947917691684584b7e2ddf3588cd6f8e99f3804f vendor/etc/cne/wqeclient/ATT/ATT_profile1.xml|578f3f8f56059bfdbef926bcc68d01c15e06951f vendor/etc/cne/wqeclient/ATT/ATT_profile2.xml|1fb42c672a12b6660bdce3ea94e0c43719dd9de8 vendor/etc/cne/wqeclient/ATT/ATT_profile3.xml|f88e13f1dd7b82388c90358f71813026370c9ed8 @@ -171,8 +174,6 @@ vendor/etc/cne/wqeclient/VZW/VZW_profile3.xml|9b123d81c9b8991499cda33b0706810e0c vendor/etc/cne/wqeclient/VZW/VZW_profile4.xml|ff91feb5060a6df07e3e4d9bc99ae58bccad7649 vendor/etc/cne/wqeclient/VZW/VZW_profile5.xml|f76c894f3c6d5b6ed35113a088dc3174c900501b vendor/etc/cne/wqeclient/VZW/VZW_profile6.xml|14d136e7fcc682311757d3edc0b9d3eaeba11815 -vendor/etc/cne/mwqem.conf|c42ad47b34b511075e5dfb9047d32f881fe0c159 -vendor/etc/cne/profileMwqem.xml|947917691684584b7e2ddf3588cd6f8e99f3804f vendor/etc/default-permissions/com.qualcomm.qti.cne.xml|c63c37d067e3009735fbc54d4603d43d7d6623e1 vendor/etc/init/cnd.rc|3a5183df3479500fb729493bc56c71166fc10bce vendor/lib64/libcne.so|29b01f953c70ab3caa70056abdfc6732b6e1e01a @@ -203,37 +204,22 @@ vendor/lib64/vendor.qti.latency@2.0.so|60ab3143325e855f8c72e3f603c28efe2e7227b9 vendor/lib64/vendor.qti.latency@2.1.so|47f0d25338274af94764be9d39eabef8cf5ca790 # Camera -vendor/lib64/camera/com.qti.sensor.sweet_gc02m1.so -vendor/lib64/camera/com.qti.sensor.sweet_imx355.so -vendor/lib64/camera/com.qti.sensor.sweet_imx471_front.so -vendor/lib64/camera/com.qti.sensor.sweet_ov02b1b.so -vendor/lib64/camera/com.qti.sensor.sweet_ov5675_macro.so -vendor/lib64/camera/com.qti.sensor.sweet_s5kgw3.so -vendor/lib64/camera/com.qti.sensor.sweet_s5khm2.so -vendor/lib64/camera/com.qti.sensormodule.sweet_ofilm_imx355_ultra.bin -vendor/lib64/camera/com.qti.sensormodule.sweet_ofilm_imx471_front.bin -vendor/lib64/camera/com.qti.sensormodule.sweet_ofilm_ov02b1b.bin -vendor/lib64/camera/com.qti.sensormodule.sweet_ofilm_ov5675_macro.bin -vendor/lib64/camera/com.qti.sensormodule.sweet_ofilm_s5kgw3.bin -vendor/lib64/camera/com.qti.sensormodule.sweet_ofilm_s5khm2.bin -vendor/lib64/camera/com.qti.sensormodule.sweet_sunny_gc02m1.bin -vendor/lib64/camera/com.qti.sensormodule.sweet_sunny_imx355_ultra.bin -vendor/lib64/camera/com.qti.sensormodule.sweet_sunny_imx471_front.bin -vendor/lib64/camera/com.qti.sensormodule.sweet_sunny_ov5675_macro.bin -vendor/lib64/camera/com.qti.sensormodule.sweet_sunny_s5kgw3.bin -vendor/lib64/camera/com.qti.sensormodule.sweet_sunny_s5khm2.bin +vendor/lib64/camera/com.qti.sensor.sweet_gc02m1_macro.so +vendor/lib64/camera/com.qti.sensor.sweet_ov02b1b_depth.so +vendor/lib64/camera/com.qti.sensor.sweet_ov16a1q_front.so +vendor/lib64/camera/com.qti.sensor.sweet_s5k4h7_ultra.so +vendor/lib64/camera/com.qti.sensor.sweet_s5khm2_wide.so +vendor/lib64/camera/com.qti.sensormodule.sweet_aac_s5khm2_wide.bin +vendor/lib64/camera/com.qti.sensormodule.sweet_ofilm_gc02m1_macro.bin +vendor/lib64/camera/com.qti.sensormodule.sweet_sunny_ov02b1b.bin +vendor/lib64/camera/com.qti.sensormodule.sweet_sunny_ov16a1q_front.bin +vendor/lib64/camera/com.qti.sensormodule.sweet_sunny_s5k4h7_ultra.bin vendor/lib64/camera/com.qti.tuned.default.bin -vendor/lib64/camera/com.qti.tuned.sweet_ofilm_imx355_ultra.bin -vendor/lib64/camera/com.qti.tuned.sweet_ofilm_imx471_front.bin -vendor/lib64/camera/com.qti.tuned.sweet_ofilm_ov02b1b_depth.bin -vendor/lib64/camera/com.qti.tuned.sweet_ofilm_ov5675_macro.bin -vendor/lib64/camera/com.qti.tuned.sweet_ofilm_s5kgw3_wide.bin -vendor/lib64/camera/com.qti.tuned.sweet_sunny_gc02m1_depth.bin -vendor/lib64/camera/com.qti.tuned.sweet_sunny_imx355_ultra.bin -vendor/lib64/camera/com.qti.tuned.sweet_sunny_imx471_front.bin -vendor/lib64/camera/com.qti.tuned.sweet_sunny_ov5675_macro.bin -vendor/lib64/camera/com.qti.tuned.sweet_sunny_s5kgw3_wide.bin -vendor/lib64/camera/com.qti.tuned.sweet_sunny_s5khm2_wide.bin +vendor/lib64/camera/com.qti.tuned.sweet_aac_s5khm2_wide.bin +vendor/lib64/camera/com.qti.tuned.sweet_ofilm_gc02m1_macro.bin +vendor/lib64/camera/com.qti.tuned.sweet_sunny_ov02b1b_depth.bin +vendor/lib64/camera/com.qti.tuned.sweet_sunny_ov16a1q_front.bin +vendor/lib64/camera/com.qti.tuned.sweet_sunny_s5k4h7_ultra.bin vendor/lib64/camera/fdconfigpreview.bin vendor/lib64/camera/fdconfigpreviewlite.bin vendor/lib64/camera/fdconfigvideo.bin @@ -244,9 +230,11 @@ vendor/lib64/libFaceGrade.so vendor/lib64/libMegviiFacepp-0.5.2.so vendor/lib64/libPSNPE.so vendor/lib64/libSNPE.so +vendor/lib64/libSnpeHtpPrepare.so +vendor/lib64/libSnpeHtpV68Stub.so +vendor/lib64/libSnpeHtpV69Stub.so vendor/lib64/libVDClearShot.so vendor/lib64/libXMFD_AgeGender.so -vendor/lib64/lib_sr_models.so vendor/lib64/libalCFR.so vendor/lib64/libalLDC.so vendor/lib64/libalhLDC.so @@ -269,9 +257,10 @@ vendor/lib64/libdualcam_video_optical_zoom.so vendor/lib64/libft2vendor.so vendor/lib64/libhta.so vendor/lib64/libhta_hexagon_runtime.so -vendor/lib64/libhvx_interface.so vendor/lib64/libmegface.so vendor/lib64/libmiai_portraitsupernight.so +vendor/lib64/libmialgo_ai_vision.so +vendor/lib64/libmialgo_aio_seg.so vendor/lib64/libmialgo_fs.so vendor/lib64/libmialgo_ie_capture.so vendor/lib64/libmialgo_rfs.so @@ -279,18 +268,19 @@ vendor/lib64/libmialgo_sd.so vendor/lib64/libmialgo_utils.so vendor/lib64/libmialgoengine.so vendor/lib64/libmibokeh_712.so +vendor/lib64/libmifpext.so vendor/lib64/libmpbase.so vendor/lib64/libmulticam_image_optical_zoom.so vendor/lib64/libmulticam_video_optical_zoom.so vendor/lib64/librelight_only.so vendor/lib64/libremosaic_wrapper.so vendor/lib64/libremosaiclib.so -vendor/lib64/libsdk_sr.so vendor/lib64/libsnpe_adsp.so vendor/lib64/libsnpe_dsp_domains.so vendor/lib64/libsnpe_dsp_domains_system.so vendor/lib64/libsnpe_dsp_domains_v2.so vendor/lib64/libsnpe_dsp_domains_v2_system.so +vendor/lib64/libsnpe_dsp_domains_v3.so vendor/lib64/libsns_device_mode_stub.so vendor/lib64/libsns_fastRPC_util.so vendor/lib64/libsns_low_lat_stream_stub.so @@ -302,37 +292,36 @@ vendor/lib64/libsymphony-cpu.so vendor/lib64/libtriplecam_video_optical_zoom.so vendor/lib64/libvideofilter_only.so vendor/lib64/libvidhance.so -vendor/lib64/libxmi_hdr_checker.so -vendor/lib64/libxmi_high_dynamic_range.so +vendor/lib64/libvidhance_active_ois.so +vendor/lib64/libvidhance_face_stabilizer.so +vendor/lib64/libvidhance_horizon_correction.so +vendor/lib64/libvidhance_ldc.so +vendor/lib64/libvidhance_stabilizer.so +vendor/lib64/libvidhance_super_stabilization.so vendor/lib64/libxml2_vendor.so vendor/lib64/mibokeh_712_opencl.bin # Camera Arcsoft vendor/lib64/libarcsoft_beautyshot.so vendor/lib64/libarcsoft_distortion_correction.so -vendor/lib64/libarcsoft_dualcam_refocus.so -vendor/lib64/libarcsoft_dualcam_refocus_front.so -vendor/lib64/libarcsoft_dualcam_refocus_rear_t.so -vendor/lib64/libarcsoft_dualcam_refocus_rear_w.so +vendor/lib64/libarcsoft_dualcam_refocus_image.so +vendor/lib64/libarcsoft_dualcam_refocus_video.so +vendor/lib64/libarcsoft_hdr_detection.so +vendor/lib64/libarcsoft_high_dynamic_range.so vendor/lib64/libarcsoft_hta.so +vendor/lib64/libarcsoft_low_light_hdr.so +vendor/lib64/libarcsoft_mf_superresolution.so vendor/lib64/libarcsoft_portrait_lighting.so vendor/lib64/libarcsoft_portrait_lighting_c.so vendor/lib64/libarcsoft_preview_deflicker.so vendor/lib64/libarcsoft_super_night_raw.so|a725136e8fe0c9ffd6b5ed527fd480478c9fd57d # Camera Components -vendor/lib64/camera/components/etc/morpho_lowlight4.0.xml -vendor/lib64/camera/components/etc/morpho_lowlight4.0_3hdr.xml -vendor/lib64/camera/components/etc/morpho_lowlight4.0_adrc_high.xml -vendor/lib64/camera/components/etc/morpho_lowlight4.0_adrc_high_1.xml -vendor/lib64/camera/components/etc/visidon_clearshot_params.xml vendor/lib64/camera/components/com.altek.node.depurple.so vendor/lib64/camera/components/com.altek.node.distortioncorrection.so -vendor/lib64/camera/components/com.arcsoft.node.capturebokeh.so vendor/lib64/camera/components/com.arcsoft.node.deflicker.so vendor/lib64/camera/components/com.arcsoft.node.distortioncorrection.so vendor/lib64/camera/components/com.arcsoft.node.hdr.so -vendor/lib64/camera/components/com.arcsoft.node.hdrchecker.so vendor/lib64/camera/components/com.arcsoft.node.realtimebokeh.so vendor/lib64/camera/components/com.arcsoft.node.skinbeautifier.so vendor/lib64/camera/components/com.arcsoft.node.smoothtransition.so @@ -373,19 +362,20 @@ vendor/lib64/camera/components/com.qtistatic.stats.af.so vendor/lib64/camera/components/com.qtistatic.stats.awb.so vendor/lib64/camera/components/com.qtistatic.stats.pdlib.so vendor/lib64/camera/components/com.vidhance.node.eis.so -vendor/lib64/camera/components/com.vidhance.stats.aec_dmbr.so vendor/lib64/camera/components/com.visidon.node.clearshot.so vendor/lib64/camera/components/com.xiaomi.node.mibokeh.so vendor/lib64/camera/components/com.xiaomi.node.mifilter.so vendor/lib64/camera/components/com.xiaomi.node.mifragment.so vendor/lib64/camera/components/com.xiaomi.node.mimovie.so vendor/lib64/camera/components/com.xiaomi.node.misegment.so +vendor/lib64/camera/components/etc/morpho_lowlight4.0.xml +vendor/lib64/camera/components/etc/morpho_lowlight4.0_3hdr.xml +vendor/lib64/camera/components/etc/morpho_lowlight4.0_adrc_high.xml +vendor/lib64/camera/components/etc/morpho_lowlight4.0_adrc_high_1.xml +vendor/lib64/camera/components/etc/visidon_clearshot_params.xml vendor/lib64/camera/components/libdepthmapwrapper.so vendor/lib64/camera/components/libmmcamera_cac3.so -# Camera Components - from sweet-user 13 TKQ1.221013.002 V14.0.1.0.TKFMIXM release-keys -vendor/lib64/camera/com.qti.tuned.sweet_ofilm_s5khm2_wide.bin|f6161bd76b75ff3ed2f050edf870a6fc9a18ca91 - # Camera Configs vendor/etc/camera/102_SummerDay.png vendor/etc/camera/103_Fantasy.png @@ -415,20 +405,21 @@ vendor/etc/camera/GpuKernelRepo.pb vendor/etc/camera/LDC_FPC_TUNING_DATA.bin vendor/etc/camera/LDC_PACKDATA_VENDORID_0x01.bin vendor/etc/camera/LDC_PACKDATA_VENDORID_0x07.bin +vendor/etc/camera/LDC_packdata_xiaomi_v1.dat +vendor/etc/camera/MiSeg_Preview_Common_RGB_snpe_sm8450_20220704_int8_3.1.000_quant.dlc vendor/etc/camera/almalence_sr_params_tele.config vendor/etc/camera/almalence_sr_params_wide.config vendor/etc/camera/back_dual_camera_caldata_wt.bin vendor/etc/camera/beauty_ui9_intelligent_params.config vendor/etc/camera/camxoverridesettings.txt vendor/etc/camera/com.xiaomi.dcal.wd.golden.108m -vendor/etc/camera/com.xiaomi.dcal.wd.golden.64m vendor/etc/camera/com.xiaomi.dcal.wu.fake -vendor/etc/camera/com.xiaomi.dcal.wu.golden.108m -vendor/etc/camera/com.xiaomi.dcal.wu.golden.64m +vendor/etc/camera/dualcam_bokeh_params.json vendor/etc/camera/eisoverridesettings.txt vendor/etc/camera/eyelineblush.cng vendor/etc/camera/female_bg.png vendor/etc/camera/female_icon.png +vendor/etc/camera/front_seg_parameters.json vendor/etc/camera/golden_rear_dc_cal_wu.bin vendor/etc/camera/hdr_ui9_params.config vendor/etc/camera/lf_facerank_model.bin @@ -437,16 +428,16 @@ vendor/etc/camera/male_icon.png vendor/etc/camera/megviifacepp_0_5_2_model vendor/etc/camera/mibokeh_712_opencl.bin vendor/etc/camera/mibokeh_712_parameter.bin +vendor/etc/camera/model_ai_dxo.dlc vendor/etc/camera/model_back.dlc vendor/etc/camera/model_front.dlc +vendor/etc/camera/model_glass.dlc +vendor/etc/camera/preview_bokeh_params.json vendor/etc/camera/sceneDetection.xml vendor/etc/camera/score_bg.png vendor/etc/camera/score_icon.png vendor/etc/camera/sdm_ys_32p_120_21_5_perturb50.bin -vendor/etc/camera/sr_params.xml vendor/etc/camera/vidhance_calibration -vendor/etc/camera/vidhance_calibration_108m -vendor/etc/camera/vidhance_calibration_64m vendor/etc/camera/watermark_font_2300_3199.dat # Camera Firmware @@ -461,8 +452,8 @@ vendor/lib64/vendor.qti.hardware.cacert@1.0.so|1633c31212d1ea9338b79ebfc2476f834 # Charger vendor/bin/hvdcp_opti vendor/bin/init.qti.chg_policy.sh -vendor/etc/init/vendor.qti.hardware.charger_monitor@1.0-service.rc vendor/etc/charger_fstab.qti +vendor/etc/init/vendor.qti.hardware.charger_monitor@1.0-service.rc # Configstore vendor/bin/hw/vendor.qti.hardware.capabilityconfigstore@1.0-service @@ -497,8 +488,8 @@ vendor/lib64/libdpmqmihal.so|41eb89e66ba065c43a5eb79cd3c72cef0ee167aa # DRM vendor/bin/qseecomd -vendor/etc/init/qseecomd.rc vendor/etc/gpfspath_oem_config.xml +vendor/etc/init/qseecomd.rc vendor/lib64/libGPreqcancel.so vendor/lib64/libGPreqcancel_svc.so vendor/lib64/libQSEEComAPI.so @@ -507,6 +498,8 @@ vendor/lib64/libcpion.so vendor/lib64/libdrmfs.so vendor/lib64/libdrmtime.so vendor/lib64/libminkdescriptor.so +vendor/lib64/libmiphone_capture_bokeh.so +vendor/lib64/libmiphone_preview_bokeh.so vendor/lib64/libops.so vendor/lib64/libqisl.so vendor/lib64/librpmb.so @@ -526,8 +519,8 @@ vendor/lib64/libtrustedapploader.so vendor/bin/hw/android.hardware.drm@1.3-service.widevine vendor/etc/init/android.hardware.drm@1.3-service.widevine.rc vendor/etc/vintf/manifest/manifest_android.hardware.drm@1.3-service.widevine.xml -vendor/lib64/mediadrm/libwvdrmengine.so vendor/lib64/libwvhidl.so +vendor/lib64/mediadrm/libwvdrmengine.so # DSP vendor/bin/dspservice @@ -548,6 +541,7 @@ vendor/lib64/vendor.xiaomi.hardware.displayfeature@1.0.so # Display-calibration vendor/etc/dsi_k6_38_0c_0a_fhd_dsc_video_display_mi.xml +vendor/etc/dsi_k6_38_0e_0b_fhd_dsc_video_display_mi.xml vendor/etc/hdr_config.cfg vendor/etc/sdr_config.cfg @@ -570,32 +564,19 @@ vendor/lib64/vendor.qti.hardware.fm@1.0.so # Fingerprint vendor/bin/hw/android.hardware.biometrics.fingerprint@2.1-service -vendor/bin/hw/vendor.fortsense.hardware.fingerprintext@1.0-service vendor/etc/init/android.hardware.biometrics.fingerprint@2.1-service.rc -vendor/etc/init/vendor.fortsense.hardware.fingerprintext@1.0-service.rc vendor/etc/permissions/com.fingerprints.extension.xml vendor/etc/vintf/manifest/android.hardware.biometrics.fingerprint@2.1-service.xml vendor/framework/com.fingerprints.extension.jar -vendor/lib/hw/fingerprint.fortsense.so -vendor/lib/hw/fingerprint.fpc.so +vendor/framework/com.fingerprints.fpmmi.jar vendor/lib/vendor.qti.hardware.fingerprint@1.0.so -vendor/lib/vendor.sw.swfingerprint@2.0.so -vendor/lib64/hw/fingerprint.fortsense.so +vendor/lib/vendor.xiaomi.hardware.fingerprintextension@1.0.so +vendor/lib64/com.fingerprints.extension@1.0.so vendor/lib64/hw/fingerprint.fpc.so vendor/lib64/vendor.qti.hardware.fingerprint@1.0.so -vendor/lib64/vendor.sw.swfingerprint@2.0.so vendor/lib64/vendor.xiaomi.hardware.fingerprintextension@1.0.so # Firmware -vendor/firmware/awinic/aw882xx_pid_1852_acf.bin -vendor/firmware/awinic/aw882xx_pid_1852_monitor.bin -vendor/firmware/awinic/aw882xx_pid_2032_acf.bin -vendor/firmware/awinic/aw882xx_pid_2032_monitor.bin -vendor/firmware/awinic/aw882xx_rcv_reg_l.bin -vendor/firmware/awinic/aw882xx_rcv_reg_r.bin -vendor/firmware/awinic/aw882xx_spk_reg_l.bin -vendor/firmware/awinic/aw882xx_spk_reg_r.bin -vendor/firmware/wigig/wigig.ini vendor/firmware/AcousticGuitar_RTP.bin vendor/firmware/Atlantis_RTP.bin vendor/firmware/Bottle_RTP.bin @@ -610,6 +591,7 @@ vendor/firmware/Charge_Wireless_RTP.bin vendor/firmware/Childhood_RTP.bin vendor/firmware/Chirp_RTP.bin vendor/firmware/Clank_RTP.bin +vendor/firmware/Conf_MultipleTest.ini vendor/firmware/Country_RTP.bin vendor/firmware/Cowboy_RTP.bin vendor/firmware/Crystal_RTP.bin @@ -630,6 +612,8 @@ vendor/firmware/Field_Trip_RTP.bin vendor/firmware/Flute_RTP.bin vendor/firmware/Fresh_RTP.bin vendor/firmware/Frog_RTP.bin +vendor/firmware/Gesture_Back_Pull_RTP.bin +vendor/firmware/Gesture_Back_Release_RTP.bin vendor/firmware/Gesture_UpHold_RTP.bin vendor/firmware/Gesture_UpSlide_RTP.bin vendor/firmware/Glee_RTP.bin @@ -663,11 +647,28 @@ vendor/firmware/ToyRobot_RTP.bin vendor/firmware/Unlock_Failed_RTP.bin vendor/firmware/Vigor_RTP.bin vendor/firmware/WindChime_RTP.bin +vendor/firmware/alert_rtp.bin +vendor/firmware/aw8622x_haptic.bin +vendor/firmware/aw8622x_osc_rtp_24K_5s.bin +vendor/firmware/aw8622x_rtp.bin vendor/firmware/aw8624_haptic.bin vendor/firmware/aw8624_rtp.bin +vendor/firmware/awinic/aw882xx_pid_1852_acf.bin +vendor/firmware/awinic/aw882xx_pid_1852_monitor.bin +vendor/firmware/awinic/aw882xx_pid_2032_acf.bin +vendor/firmware/awinic/aw882xx_pid_2032_monitor.bin +vendor/firmware/awinic/aw882xx_rcv_reg_l.bin +vendor/firmware/awinic/aw882xx_rcv_reg_r.bin +vendor/firmware/awinic/aw882xx_spk_reg_l.bin +vendor/firmware/awinic/aw882xx_spk_reg_r.bin +vendor/firmware/awinic/fs1815.fsm vendor/firmware/bandage_RTP.bin vendor/firmware/crawl_RTP.bin vendor/firmware/door_open_RTP.bin +vendor/firmware/feedback_negative_light_rtp.bin +vendor/firmware/feedback_neutral_rtp.bin +vendor/firmware/feedback_positive_rtp.bin +vendor/firmware/fingerprint_record_rtp.bin vendor/firmware/firearms_akm_RTP.bin vendor/firmware/firearms_awm_RTP.bin vendor/firmware/firearms_dp28_RTP.bin @@ -678,11 +679,13 @@ vendor/firmware/firearms_qbz_RTP.bin vendor/firmware/firearms_s1897_RTP.bin vendor/firmware/firearms_ump9_RTP.bin vendor/firmware/firearms_vss_RTP.bin +vendor/firmware/gamebox_launch_rtp.bin vendor/firmware/grenade_RTP.bin vendor/firmware/grenade_explosion_RTP.bin -vendor/firmware/k6_test_limits_test_sensor_1.csv +vendor/firmware/k6a_test_limits_test_sensor_1.csv vendor/firmware/launcher_edit_rtp.bin vendor/firmware/launcher_icon_selection_rtp.bin +vendor/firmware/lockdown_rtp.bin vendor/firmware/lockscreen_camera_entry_rtp.bin vendor/firmware/magazine_quick_RTP.bin vendor/firmware/new_iconfolder_rtp.bin @@ -703,7 +706,10 @@ vendor/firmware/scene_step_RTP.bin vendor/firmware/scope_off_RTP.bin vendor/firmware/scope_on_RTP.bin vendor/firmware/screenshot_rtp.bin +vendor/firmware/sliding_damping_rtp.bin vendor/firmware/task_cleanall_rtp.bin +vendor/firmware/todo_alldone_rtp.bin +vendor/firmware/uninstall_animation_icon_rtp.bin vendor/firmware/uninstall_animation_rtp.bin vendor/firmware/uninstall_dialog_rtp.bin vendor/firmware/vehicle_buggy_RTP.bin @@ -711,6 +717,7 @@ vendor/firmware/vehicle_collision_RTP.bin vendor/firmware/vehicle_dacia_RTP.bin vendor/firmware/vehicle_moto_RTP.bin vendor/firmware/vehicle_plane_RTP.bin +vendor/firmware/wigig/wigig.ini # Firmware (Graphic) vendor/firmware/a612_rgmu.bin @@ -744,12 +751,12 @@ vendor/bin/loc_launcher|85abf50f8cd227017ea084a9a2175c9f0fb39413 vendor/bin/lowi-server|6a78b8e8ff3267277a49f78a7ba11498229ed2fb vendor/bin/xtra-daemon|a832090f030ac09937d0e47dc55758b4710f6c6e vendor/etc/init/android.hardware.gnss@2.1-service-qti.rc|d3844699c845ce5de4c8b50548a2095f92dd0235 -vendor/etc/vintf/manifest/android.hardware.gnss@2.1-service-qti.xml|1c344aacaa6d17a1585ba58b2e6d438dcfe31fad -vendor/etc/vintf/manifest/vendor.qti.gnss@4.0-service.xml|6514b13f55abc0acc28e004c35ff93fb972d61a9 vendor/etc/seccomp_policy/gnss@2.0-base.policy|abafcf09068ec6fa62f8fc11ce6a7f51fe4cfb81 vendor/etc/seccomp_policy/gnss@2.0-xtra-daemon.policy|3f8e3466eaeb966e57c5b79b688a618295eb4b17 vendor/etc/seccomp_policy/gnss@2.0-xtwifi-client.policy|45b44cf547358961841aeba728851e32dc0a5230 vendor/etc/seccomp_policy/gnss@2.0-xtwifi-inet-agent.policy|9c0419bf0a0b4ef129527a9d4c024a624ff34d6e +vendor/etc/vintf/manifest/android.hardware.gnss@2.1-service-qti.xml|1c344aacaa6d17a1585ba58b2e6d438dcfe31fad +vendor/etc/vintf/manifest/vendor.qti.gnss@4.0-service.xml|6514b13f55abc0acc28e004c35ff93fb972d61a9 vendor/lib64/hw/android.hardware.gnss@2.1-impl-qti.so|81eed711640c1e68b6e95032fc98c7a41c727388 vendor/lib64/hw/vendor.qti.gnss@4.0-impl.so|5bd76bdb98c6ee96c498967f808dd0c79b5f76cd vendor/lib64/libbatching.so|da85149f1a0c672a14d6cae4ade1b25ca210104a @@ -947,8 +954,8 @@ vendor/lib64/vendor.qti.hardware.vpp@1.3.so vendor/lib/libmmosal.so vendor/lib64/libmmosal.so -# NFC - from sweet-user 13 TKQ1.221013.002 V14.0.1.0.TKFMIXM release-keys -vendor/lib/libpn553_fw.so|ec325ad8028c573638a6f6902c4aec73c4ec00fa +# NFC +vendor/lib/libpn557_fw.so # Neural networks vendor/bin/hw/android.hardware.neuralnetworks@1.3-service-qti @@ -1027,8 +1034,8 @@ system_ext/framework/qcrilhook.jar|8d44048c04f4d38a6bf6a279e3bceface10c0dde system_ext/priv-app/qcrilmsgtunnel/qcrilmsgtunnel.apk|e3cf3ab60bf632270eccc4e99ead89254d3d84ab # Radio - from LA.UM.9.1.r1-12900-SMxxx0.0 -vendor/bin/hw/qcrild|77d0168fbad7db01eec8abd9df25f19c05411eb4 vendor/bin/adpl|7a0f18e1762bb972e87c4a21a787f56f15ebeb1b +vendor/bin/hw/qcrild|77d0168fbad7db01eec8abd9df25f19c05411eb4 vendor/bin/netmgrd|9827c715565263148c71fd8f15d153d834de6337 vendor/bin/port-bridge|157facd409756b20bd9eb850c30b8d009efc71f4 vendor/bin/qti|415d66b2cf1a7bf8fd3a5b471a6f52b02643f0bb @@ -1052,12 +1059,12 @@ vendor/lib/libnetmgr_common.so|fcedcfd9b890fd03f45b32b8b1f46d80e43bf05f vendor/lib/libnetmgr_nr_fusion.so|4d5e49c053409d2432c35dac11ff05ec77fdda79 vendor/lib/libnetmgr_rmnet_ext.so|6d8417f9bc775e56f776f790347443b4387704de vendor/lib/libpdnotifier.so|6d6b4584006634ed15efef09c95b3ae3eb05cbfb -vendor/lib/libqmi_legacy.so|7805ed3a940405d88d4b7dd29516c68ee19c5b08 vendor/lib/libqcci_legacy.so|be14a3ba29cf4dc9fce1f7a51fb02cb775b16f1c vendor/lib/libqcmaputils.so|3e7eed66d16443749fd8eb15b6dbb194e7000805 vendor/lib/libqcrilFramework.so|0c15e9e2175b04ce1371420a0b29552109008979 vendor/lib/libqdi.so|3b3532c94f3447457467523d1147ddc6973b1bae vendor/lib/libqdp.so|c3d8caefdb7f78fee95b571a827f14613de59155 +vendor/lib/libqmi_legacy.so|7805ed3a940405d88d4b7dd29516c68ee19c5b08 vendor/lib/libril-qc-logger.so|2a7e271c7e71143dabf5125ca8f866189eed05e9 vendor/lib/libril-qc-ltedirectdisc.so|8d9c234066dadaca5e3e8a6125bca0b4f86de534 vendor/lib/libril-qc-radioconfig.so|8281b0fbc75eb0803c1f3d24d9b8e3ceceb1c1e7 @@ -1077,12 +1084,12 @@ vendor/lib64/libnetmgr_rmnet_ext.so|1000e8b6d18fcce18f8f13b39e3a9207a93a991f vendor/lib64/libnlnetmgr.so|230fdf3b3246fec6e9a31c44bbf39ef267603cdd vendor/lib64/libpdnotifier.so|f7921455da0719e073a7bcc5ce851ff9e43e79d4 vendor/lib64/libqcci_legacy.so|0e78c75ce59453a09cc1d6bcba0507cab9ae663a -vendor/lib64/libqmi_legacy.so|f324c6701ecf78ff50975c0bc7f99aea09cb3539 vendor/lib64/libqcmaputils.so|4271e28543306040ec22fa9e2f42f09a513457a4 vendor/lib64/libqcrilFramework.so|7d3a2dc8b2f010bfa887deb79f4a05f4473a6951 vendor/lib64/libqcrildatactl.so|6f7c9bce8fc62fd00c9bf527895089332500fd92 vendor/lib64/libqdi.so|08eaf3c7640ff06f06827f4e89a110f71f126eae vendor/lib64/libqdp.so|55cabaf9021a8f8f22b76ba7f8dca7299c0b21ab +vendor/lib64/libqmi_legacy.so|f324c6701ecf78ff50975c0bc7f99aea09cb3539 vendor/lib64/libril-qc-hal-qmi.so|f6b18fbbc2cc16834b34aa7a18f4ff0b21826bdf vendor/lib64/libril-qc-logger.so|c3a3d02b10de4da0358ae497d3dbd2ce9c7e2a8e vendor/lib64/libril-qc-ltedirectdisc.so|6deb30e7d00bdde840dad2df382d4c7489567c79 @@ -1117,7 +1124,10 @@ vendor/lib64/vendor.qti.hardware.radio.uim_remote_client@1.0.so|5ec80005a20a2ef6 vendor/lib64/vendor.qti.hardware.radio.uim_remote_client@1.1.so|663b65448ec8f5972337e1bbdc08ef5d4b08e8fa vendor/lib64/vendor.qti.hardware.radio.uim_remote_client@1.2.so|3ffb7301b6c185b114157c5423de604e5ba93ade vendor/lib64/vendor.qti.hardware.radio.uim_remote_server@1.0.so|75a58827c0b4e06e2ca8163b6a904dab2af3be6a +vendor/radio/qcril_database/qcril.db|5256b3d5cce46578507abc978c4be1febcf513b9 vendor/radio/qcril_database/upgrade/0_initial.sql|e00b243261d8941802bdea9d4e659dc5e927c216 +vendor/radio/qcril_database/upgrade/10_version_update_ecc_table.sql|1ca05b047116cbc776f71d3bdba4952b18b04229 +vendor/radio/qcril_database/upgrade/11_version_update_ecc_table.sql|ab2580e3e25fb02936eb760cba85f3b6139b8d34 vendor/radio/qcril_database/upgrade/1_version_intro.sql|67b96cb3e94737bfe271b2519b9eb5fae17373a2 vendor/radio/qcril_database/upgrade/2_version_add_wps_config.sql|b4a825ba20fea3e2f20c7f02c8bd64596c24a75e vendor/radio/qcril_database/upgrade/3_version_update_wps_config.sql|0571aacaf9fc0868c48bba2f7542f5b4e68c9022 @@ -1127,9 +1137,6 @@ vendor/radio/qcril_database/upgrade/6_version_update_ecc_table.sql|0fdf4b6ccb489 vendor/radio/qcril_database/upgrade/7_version_update_ecc_table.sql|9a76d5747da2876b87b214579c9d74ae92d218d7 vendor/radio/qcril_database/upgrade/8_version_update_ecc_table.sql|a0603a5c46e8e67f78bdb42f2b246ecc6a37cecd vendor/radio/qcril_database/upgrade/9_version_update_ecc_table.sql|4701219a79190995eda651e5c45e11c9b111a478 -vendor/radio/qcril_database/upgrade/10_version_update_ecc_table.sql|1ca05b047116cbc776f71d3bdba4952b18b04229 -vendor/radio/qcril_database/upgrade/11_version_update_ecc_table.sql|ab2580e3e25fb02936eb760cba85f3b6139b8d34 -vendor/radio/qcril_database/qcril.db|5256b3d5cce46578507abc978c4be1febcf513b9 # Radio (diag) - from LA.QSSI.13.0.r1-09700-qssi.0 system_ext/lib64/libdiag_system.so|d7894c7954c21cbef216a977c91e5e71f86387aa @@ -1141,7 +1148,6 @@ vendor/lib64/libdiag.so|3007e1709a4713b0ab6abd76b10c3a822c436c61 # Radio (IMS) - from LA.QSSI.13.0.r1-09700-qssi.0 system_ext/app/ImsRcsService/ImsRcsService.apk|1808781bcabdec3db97fd19cfe0365a1040178c1 -system_ext/priv-app/ims/ims.apk|5690534155879d101cbe323456b01f29cb97b8b4 system_ext/etc/permissions/vendor.qti.ims.rcsservice.xml|7ce9e6ccb5026b0aa87b0eb94a20448e2d4c481c system_ext/framework/vendor.qti.ims.factory-V1.0-java.jar|ec58d15adf1930c4dcfb59e209a4bcf8d230a756 system_ext/framework/vendor.qti.ims.factory-V1.1-java.jar|3218cd7bba1dd0e0a140d93d252b96b8e2c81ae5 @@ -1156,6 +1162,7 @@ system_ext/lib64/libimscamera_jni.so|a21333fa8f338acaa4996f74a0e29145f77d5299 system_ext/lib64/libimsmedia_jni.so|d1b4c03352a9b34f4d26a4fe3a8595f295c7cef8 system_ext/lib64/vendor.qti.imsrtpservice@3.0.so|ace5e02b6cd79b43a07d84e2d18d6818821a3c48 system_ext/lib64/vendor.qti.imsrtpservice@3.1.so|e64aa8a21a8db69d2e2ea14929bb20ced99c119d +system_ext/priv-app/ims/ims.apk|5690534155879d101cbe323456b01f29cb97b8b4 # Radio (IMS) - from LA.UM.9.1.r1-12900-SMxxx0.0 vendor/bin/ims_rtp_daemon|7cd0297294c08becd429698defc6c4a603a3e0e3 @@ -1225,16 +1232,13 @@ vendor/lib64/hw/vendor.qti.hardware.sensorscalibrate@1.0-impl.so vendor/lib64/vendor.qti.hardware.sensorscalibrate@1.0.so # Sensors Config -vendor/etc/sensors/config/ak991x_dri_0.json vendor/etc/sensors/config/bu27030_0.json vendor/etc/sensors/config/icm4x6xx_0.json -vendor/etc/sensors/config/lsm6dso_0.json -vendor/etc/sensors/config/sm7150_ak991x_0.json vendor/etc/sensors/config/sm7150_bu27030_0.json vendor/etc/sensors/config/sm7150_icm4x6xx_0.json -vendor/etc/sensors/config/sm7150_lsm6dso_0.json vendor/etc/sensors/config/sm7150_power_0.json -vendor/etc/sensors/config/sm7150_tsl2540.json +vendor/etc/sensors/config/sm7150_qmc6308_0.json +vendor/etc/sensors/config/sm7150_sx932x_0.json vendor/etc/sensors/config/sns_amd.json vendor/etc/sensors/config/sns_amd_sw_disabled.json vendor/etc/sensors/config/sns_aod.json @@ -1257,11 +1261,13 @@ vendor/etc/sensors/config/sns_nonui.json vendor/etc/sensors/config/sns_pedometer.json vendor/etc/sensors/config/sns_rmd.json vendor/etc/sensors/config/sns_rotv.json +vendor/etc/sensors/config/sns_sar_algo_0.json +vendor/etc/sensors/config/sns_sar_algo_1.json vendor/etc/sensors/config/sns_smd.json vendor/etc/sensors/config/sns_tilt.json vendor/etc/sensors/config/sns_tilt_sw_enabled.json vendor/etc/sensors/config/sns_tilt_to_wake.json -vendor/etc/sensors/config/tsl2540.json +vendor/etc/sensors/config/sx932x_0.json vendor/etc/sensors/hals.conf vendor/etc/sensors/judge_calibrated.json vendor/etc/sensors/sns_reg_config @@ -1309,26 +1315,28 @@ vendor/etc/init/vendor.qti.hardware.soter@1.0-service.rc vendor/lib64/hw/vendor.qti.hardware.soter@1.0-impl.so vendor/lib64/vendor.qti.hardware.soter@1.0.so -# Thermal - from sweetin-user 11 RKQ1.200826.002 V12.5.10.0.RKFINXM release-keys -vendor/bin/mi_thermald|41be8f8f215f793f331e75d3fb5ae344d88a15c6 -vendor/bin/thermal-engine|e74184e124c41e51535fad6a6ad9cc089695211b -vendor/etc/init/init.mi_thermald.rc|93377ddf881f27dabb2918adbe7215934eb8531f -vendor/etc/init/init_thermal-engine.rc|f0d14aa4734b2e8afd61a4eed73238187b268f48 -vendor/etc/thermal-camera.conf|5a7b9cdd1eb5545c86153e5007aee4d3644ce19a -vendor/etc/thermal-chg-only.conf|7ce2272cfe16c045409d356fc5c5e460fa8d9a4f -vendor/etc/thermal-class0.conf|e8d6a593e8a267792aa07a193d4966b3aa33ce42 -vendor/etc/thermal-engine.conf|c6c9312b7c7b52926cf7d0fc9bff933d90967100 -vendor/etc/thermal-map.conf|7172da0eab91527a1eae0c449ed3a4461cb7047f -vendor/etc/thermal-mgame.conf|c2f4b729c48668f7ace63c2dd7284d88a2153243 -vendor/etc/thermal-navigation.conf|f12fa3a206491a15c65e48d22ebe03deb713e78e -vendor/etc/thermal-nolimits.conf|4d86837c2a6a18d0673831e2a083a9df31f716c8 -vendor/etc/thermal-normal.conf|f089d2811f0ea6f61dbe0f171317736c73f12b53 -vendor/etc/thermal-phone.conf|cd1e4328a3e86c7a583e517d94765d1d00e21954 -vendor/etc/thermal-tgame.conf|ad4e48a9201abda68f79cf1ac69fdff935ad2d31 -vendor/etc/thermal-video.conf|d30fe747baae88e598041b08cd178b730ed634f4 -vendor/etc/thermal-youtube.conf|655bdba808074a4f14700c53899ecd9668976046 -vendor/etc/thermald-devices.conf|62d475be3ee174f332eb7497cb37c73df2ed8d8a -vendor/lib64/libthermalclient.so|41274c82e1a472d12b2ebcb4156f7f77b109efa8 +# Thermal +vendor/bin/mi_thermald +vendor/bin/thermal-engine +vendor/etc/init/init.mi_thermald.rc +vendor/etc/init/init_thermal-engine.rc +vendor/etc/thermal-4k.conf +vendor/etc/thermal-camera.conf +vendor/etc/thermal-chg-only.conf +vendor/etc/thermal-class0.conf +vendor/etc/thermal-engine.conf +vendor/etc/thermal-map.conf +vendor/etc/thermal-mgame.conf +vendor/etc/thermal-navigation.conf +vendor/etc/thermal-nolimits.conf +vendor/etc/thermal-normal.conf +vendor/etc/thermal-phone.conf +vendor/etc/thermal-tgame.conf +vendor/etc/thermal-video.conf +vendor/etc/thermal-videochat.conf +vendor/etc/thermal-youtube.conf +vendor/etc/thermald-devices.conf +vendor/lib64/libthermalclient.so # Time vendor/app/TimeService/TimeService.apk From ed12f62860eef5422fef27b6c4613e0948c705d0 Mon Sep 17 00:00:00 2001 From: Pulkit077 Date: Fri, 8 Dec 2023 21:22:35 +0530 Subject: [PATCH 103/110] sweet_k6a: vibrator: add `awinic_haptic` support for sweet_k6a Signed-off-by: Pulkit077 --- vibrator/Vibrator.cpp | 2 +- vibrator/excluded-input-devices-sweet.xml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/vibrator/Vibrator.cpp b/vibrator/Vibrator.cpp index 9a75ac1..06226a8 100644 --- a/vibrator/Vibrator.cpp +++ b/vibrator/Vibrator.cpp @@ -107,7 +107,7 @@ InputFFDevice::InputFFDevice() } if (strcmp(name, "qcom-hv-haptics") && strcmp(name, "qti-haptics") && - strcmp(name, "aw8624_haptic")) { + strcmp(name, "aw8624_haptic") && strcmp(name, "awinic_haptic")) { ALOGD("not a qcom/qti haptics device\n"); close(fd); continue; diff --git a/vibrator/excluded-input-devices-sweet.xml b/vibrator/excluded-input-devices-sweet.xml index 8fd2213..344bca7 100755 --- a/vibrator/excluded-input-devices-sweet.xml +++ b/vibrator/excluded-input-devices-sweet.xml @@ -31,4 +31,5 @@ + From b231b3b9138837f5ea0f6b980560247bc0651121 Mon Sep 17 00:00:00 2001 From: Pulkit077 Date: Fri, 8 Dec 2023 21:42:17 +0530 Subject: [PATCH 104/110] sweet_k6a: configs: import sweet_k6a audio changes - from sweet_global2-user 13 TKQ1.221114.001 V14.0.5.0.THGMIXM release-keys Signed-off-by: Pulkit077 --- configs/audio/audio_io_policy.conf | 16 +- .../audio/audio_platform_info_intcodec.xml | 104 +++-- configs/audio/mixer_paths_idp.xml | 354 +++++++++++----- configs/audio/mixer_paths_overlay_static.xml | 397 +++++++++++++----- 4 files changed, 637 insertions(+), 234 deletions(-) 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/mixer_paths_idp.xml b/configs/audio/mixer_paths_idp.xml index e0fc5c6..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 @@ + + + + @@ -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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From c04537c51b92d976f00f85b3b30717334027d137 Mon Sep 17 00:00:00 2001 From: Pulkit077 Date: Sat, 16 Dec 2023 17:24:12 +0530 Subject: [PATCH 105/110] sweet_k6a: configs: import sweet_k6a media changes - from sweet_global2-user 13 TKQ1.221114.001 V14.0.5.0.THGMIXM release-keys Signed-off-by: Pulkit077 --- configs/media/media_codecs.xml | 296 +----------------- configs/media/media_codecs_c2.xml | 220 ------------- configs/media/media_codecs_performance.xml | 10 +- configs/media/media_codecs_performance_v2.xml | 8 +- configs/media/media_codecs_system_default.xml | 216 +++++++++---- configs/media/media_profiles_vendor.xml | 204 ++++++------ 6 files changed, 269 insertions(+), 685 deletions(-) delete mode 100644 configs/media/media_codecs_c2.xml 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" />