sm8150-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
Signed-off-by: BladeRunner-A2C <john.smith@unused.email>
Signed-off-by: Cyber Knight <cyberknight755@gmail.com>
This commit is contained in:
Bruno Martins 2023-11-13 13:48:00 +00:00 committed by fazilsheik96
parent de4cf068bd
commit 203d0d9db6
4 changed files with 4 additions and 12 deletions

View File

@ -188,8 +188,7 @@ PRODUCT_COPY_FILES += \
# Health # Health
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \
android.hardware.health@2.1-impl-qti:64 \ android.hardware.health-service.qti
android.hardware.health@2.1-service
# Init # Init
PRODUCT_PACKAGES += \ PRODUCT_PACKAGES += \

View File

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
on charger on property:init.svc.vendor.charger=running
mkdir /dev/usb-ffs 0770 shell shell mkdir /dev/usb-ffs 0770 shell shell
mkdir /dev/usb-ffs/adb 0770 shell shell mkdir /dev/usb-ffs/adb 0770 shell shell
mkdir /config/usb_gadget/g1 0770 shell shell mkdir /config/usb_gadget/g1 0770 shell shell

View File

@ -818,13 +818,6 @@ service profiler_daemon /system/bin/profiler_daemon
group root group root
disabled 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 service vendor.ssr_diag /system/vendor/bin/ssr_diag
class late_start class late_start
user system user system
@ -903,7 +896,7 @@ service esepmdaemon /system/vendor/bin/esepmdaemon
user system user system
group nfc group nfc
on charger on property:init.svc.vendor.charger=running
setprop persist.sys.usb.config mass_storage setprop persist.sys.usb.config mass_storage
start qcom-post-boot start qcom-post-boot

View File

@ -210,7 +210,7 @@ on property:init.svc.vendor.per_mgr=running
on property:sys.shutdown.requested=* on property:sys.shutdown.requested=*
stop vendor.per_proxy stop vendor.per_proxy
on charger on property:init.svc.vendor.charger=running
start vendor.power_off_alarm start vendor.power_off_alarm
setprop sys.usb.controller a600000.dwc3 setprop sys.usb.controller a600000.dwc3
setprop sys.usb.configfs 1 setprop sys.usb.configfs 1