From afa2607ddd23ded5e6a3a7bbe9975b0f7a21f398 Mon Sep 17 00:00:00 2001 From: FlowerSea0208 Date: Mon, 12 Jun 2023 17:49:38 +0800 Subject: [PATCH] sm8350-common: Configure common Powershare HIDL Change-Id: I1287d066eca7d1a274b491f80166ed68c5b11459 --- BoardConfigCommon.mk | 5 +++++ rootdir/etc/ueventd.rc | 3 +++ 2 files changed, 8 insertions(+) diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index 41a2df8..e92ab4d 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -100,6 +100,11 @@ BOARD_KERNEL_CMDLINE += pcie_ports=compat BOARD_KERNEL_CMDLINE += iptable_raw.raw_before_defrag=1 BOARD_KERNEL_CMDLINE += ip6table_raw.raw_before_defrag=1 +# PowerShare +SOONG_CONFIG_NAMESPACES += XIAOMI_POWERSHARE +SOONG_CONFIG_XIAOMI_POWERSHARE := WIRELESS_TX_ENABLE_PATH +SOONG_CONFIG_XIAOMI_POWERSHARE_WIRELESS_TX_ENABLE_PATH := /sys/class/qcom-battery/reverse_chg_mode + # Partitions BOARD_FLASH_BLOCK_SIZE := 131072 BOARD_BOOTIMAGE_PARTITION_SIZE := 201326592 diff --git a/rootdir/etc/ueventd.rc b/rootdir/etc/ueventd.rc index f8a42e9..9d5fced 100644 --- a/rootdir/etc/ueventd.rc +++ b/rootdir/etc/ueventd.rc @@ -137,3 +137,6 @@ firmware_directories /vendor/firmware_mnt/image/ # Fingerprint /dev/goodix_fp 0660 system system + +# Battery +/sys/class/qcom-battery reverse_chg_mode 0644 system system