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
This commit is contained in:
Bruno Martins 2023-11-13 13:48:00 +00:00 committed by basamaryan
parent 83a0bcef55
commit 53d51eceb1
No known key found for this signature in database
GPG Key ID: 0A28C6D8648B81DD
5 changed files with 3 additions and 14 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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 += \

View File

@ -1,9 +1,6 @@
# Bluetooth
vendor.bluetooth.soc=cherokee
# Charger
ro.charger.enable_suspend=true
# CNE
persist.vendor.cne.feature=1