From 53d51eceb168da68e191b4ffb7a88043bcb3544f Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Mon, 13 Nov 2023 13:48:00 +0000 Subject: [PATCH] sm6150-common: Move to QTI health AIDL service The health AIDL HAL service provides functionalities of charger, therefore system charger at /system/bin/charger is deprecated. On top of that, QTI health AIDL HAL service enables suspend by default, the equivalent of setting ro.charger.enable_suspend for legacy charger. Change-Id: I59c23e7974cea1174b0161f31a535fa3afa1e5c9 --- rootdir/etc/init.qcom.rc | 7 ------- rootdir/etc/init.qcom.usb.rc | 2 +- rootdir/etc/init.target.rc | 2 +- sm6150.mk | 3 +-- system.prop | 3 --- 5 files changed, 3 insertions(+), 14 deletions(-) diff --git a/rootdir/etc/init.qcom.rc b/rootdir/etc/init.qcom.rc index 60ffcd9..7aebb72 100644 --- a/rootdir/etc/init.qcom.rc +++ b/rootdir/etc/init.qcom.rc @@ -281,13 +281,6 @@ service vendor.qcom-post-boot /vendor/bin/init.qcom.post_boot.sh on property:ro.vendor.ril.mbn_copy_completed=1 write /data/vendor/radio/copy_complete 1 -service charger /system/bin/charger - class charger - user system - group system graphics input - capabilities SYS_BOOT - seclabel u:r:charger:s0 - service vendor.msm_irqbalance /vendor/bin/msm_irqbalance -f /vendor/etc/msm_irqbalance.conf class core user root diff --git a/rootdir/etc/init.qcom.usb.rc b/rootdir/etc/init.qcom.usb.rc index 27a3eb3..b7a257d 100644 --- a/rootdir/etc/init.qcom.usb.rc +++ b/rootdir/etc/init.qcom.usb.rc @@ -26,7 +26,7 @@ # IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -on charger +on property:init.svc.vendor.charger=running mkdir /config/usb_gadget/g1 0770 mkdir /config/usb_gadget/g1/strings/0x409 0770 diff --git a/rootdir/etc/init.target.rc b/rootdir/etc/init.target.rc index 01571cf..47407f1 100644 --- a/rootdir/etc/init.target.rc +++ b/rootdir/etc/init.target.rc @@ -169,7 +169,7 @@ on property:init.svc.vendor.per_mgr=running on property:sys.shutdown.requested=* stop vendor.per_proxy -on charger +on property:init.svc.vendor.charger=running wait /dev/block/platform/soc/1da4000.ufshc/by-name/system mount ext4 /dev/block/platform/soc/1da4000.ufshc/by-name/system / ro barrier=1 diff --git a/sm6150.mk b/sm6150.mk index 8e4d675..8dc853d 100644 --- a/sm6150.mk +++ b/sm6150.mk @@ -206,8 +206,7 @@ PRODUCT_COPY_FILES += \ # Health PRODUCT_PACKAGES += \ - android.hardware.health@2.1-impl \ - android.hardware.health@2.1-service + android.hardware.health-service.qti # HIDL PRODUCT_PACKAGES += \ diff --git a/system.prop b/system.prop index 6d2a3b7..5b317a9 100644 --- a/system.prop +++ b/system.prop @@ -1,9 +1,6 @@ # Bluetooth vendor.bluetooth.soc=cherokee -# Charger -ro.charger.enable_suspend=true - # CNE persist.vendor.cne.feature=1