mirror of
https://github.com/Evolution-X-Devices/device_xiaomi_stone
synced 2026-01-27 11:33:32 +00:00
stone: 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.
This commit is contained in:
committed by
kamikaonashi
parent
7109ac5201
commit
f18c331af6
@@ -228,9 +228,9 @@ PRODUCT_PACKAGES += \
|
||||
|
||||
# Health
|
||||
PRODUCT_PACKAGES += \
|
||||
android.hardware.health@2.1-impl \
|
||||
android.hardware.health@2.1-impl.recovery \
|
||||
android.hardware.health@2.1-service
|
||||
android.hardware.health@2.1.vendor \
|
||||
android.hardware.health-service.qti \
|
||||
android.hardware.health-service.qti_recovery
|
||||
|
||||
# HIDL
|
||||
PRODUCT_PACKAGES += \
|
||||
|
||||
@@ -6,9 +6,6 @@ persist.audio.fluence.voicerec=true
|
||||
persist.audio.fluence.speaker=true
|
||||
persist.audio.fluence.voicecomm=true
|
||||
|
||||
# Charger
|
||||
ro.charger.enable_suspend=true
|
||||
|
||||
# CNE
|
||||
persist.vendor.cne.feature=1
|
||||
|
||||
|
||||
@@ -1348,13 +1348,6 @@ service profiler_daemon /system/bin/profiler_daemon
|
||||
group root
|
||||
disabled
|
||||
|
||||
service charger /system/bin/charger
|
||||
class charger
|
||||
user system
|
||||
group system graphics input
|
||||
capabilities SYS_BOOT
|
||||
seclabel u:r:charger:s0
|
||||
|
||||
service vendor.ssr_diag /system/vendor/bin/ssr_diag
|
||||
class late_start
|
||||
user system
|
||||
@@ -1424,7 +1417,7 @@ service vendor.LKCore-rel /vendor/bin/LKCore
|
||||
user system
|
||||
group system log diag
|
||||
|
||||
on charger
|
||||
on property:init.svc.vendor.charger=running
|
||||
setprop persist.sys.usb.config mass_storage
|
||||
start qcom-post-boot
|
||||
|
||||
|
||||
@@ -172,7 +172,7 @@ on property:vendor.display.lcd_density=640
|
||||
on boot && property:persist.vendor.usb.controller.default=*
|
||||
setprop vendor.usb.controller ${persist.vendor.usb.controller.default}
|
||||
|
||||
on charger
|
||||
on property:init.svc.vendor.charger=running
|
||||
mount_all /vendor/etc/charger_fstab.qti --early
|
||||
write /sys/kernel/boot_adsp/boot 1
|
||||
#restart charger after ADSP is out of reset
|
||||
|
||||
Reference in New Issue
Block a user