From e0467b52a432115ac34d75522a4d231540340d50 Mon Sep 17 00:00:00 2001 From: Yumi Yukimura Date: Wed, 23 Oct 2024 18:04:25 +0800 Subject: [PATCH] cmi: Switch to lineage common powershare HAL Change-Id: Ifcbcf780307ea1df4492831ec3981a71966e22cb --- BoardConfig.mk | 4 +--- device.mk | 2 +- sepolicy/vendor/file_contexts | 2 -- 3 files changed, 2 insertions(+), 6 deletions(-) delete mode 100644 sepolicy/vendor/file_contexts diff --git a/BoardConfig.mk b/BoardConfig.mk index c48bcb2..e98c445 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -23,9 +23,7 @@ TARGET_KERNEL_CONFIG += vendor/xiaomi/cmi.config TARGET_OTA_ASSERT_DEVICE := cmi # PowerShare -SOONG_CONFIG_NAMESPACES += XIAOMI_POWERSHARE -SOONG_CONFIG_XIAOMI_POWERSHARE := WIRELESS_TX_ENABLE_PATH -SOONG_CONFIG_XIAOMI_POWERSHARE_WIRELESS_TX_ENABLE_PATH := /sys/devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-02/c440000.qcom,spmi:qcom,pm8150b@2:qcom,qpnp-smb5/power_supply/wireless/reverse_chg_mode +TARGET_POWERSHARE_PATH := /sys/devices/platform/soc/c440000.qcom,spmi/spmi-0/spmi0-02/c440000.qcom,spmi:qcom,pm8150b@2:qcom,qpnp-smb5/power_supply/wireless/reverse_chg_mode # Properties TARGET_VENDOR_PROP += $(DEVICE_PATH)/vendor.prop diff --git a/device.mk b/device.mk index 4c8e5a3..6043ee6 100644 --- a/device.mk +++ b/device.mk @@ -51,7 +51,7 @@ PRODUCT_SHIPPING_API_LEVEL := 29 # PowerShare PRODUCT_PACKAGES += \ - vendor.lineage.powershare@1.0-service.xiaomi + vendor.lineage.powershare@1.0-service.default # Rootdir PRODUCT_PACKAGES += \ diff --git a/sepolicy/vendor/file_contexts b/sepolicy/vendor/file_contexts deleted file mode 100644 index fa0ed8d..0000000 --- a/sepolicy/vendor/file_contexts +++ /dev/null @@ -1,2 +0,0 @@ -# PowerShare -/(vendor|system/vendor)/bin/hw/vendor\.lineage\.powershare@1\.0-service\.xiaomi u:object_r:hal_lineage_powershare_default_exec:s0