sm6150-common: Run hvdcp_opti in recovery mode

* Enables charging in recovery mode
  (will be useful when the main OS is not downstream Android...)

Change-Id: Ife2b7b82439ccedf2456080d8106966cdad7669f
Signed-off-by: therealmharc <therealmharc@gmail.com>
This commit is contained in:
Yumi Yukimura
2025-04-09 23:19:33 +08:00
committed by therealmharc
parent bbd0dfb1d0
commit e671eb6c69
3 changed files with 10 additions and 1 deletions

View File

@@ -52,7 +52,7 @@ vendor/lib64/vendor.qti.hardware.bluetooth_sar@1.0.so
vendor/lib64/vendor.qti.hardware.bluetooth_sar@1.1.so
# Charger
vendor/bin/hvdcp_opti
vendor/bin/hvdcp_opti;RECOVERY_AVAILABLE
# Certificate Authority
vendor/app/CACertService/CACertService.apk

View File

@@ -1,3 +1,9 @@
service hvdcp_opti /system/bin/hvdcp_opti
user root
group system wakelock
task_profiles ServiceCapacityLow
seclabel u:r:vendor_hvdcp:s0
on fs
wait /dev/block/platform/soc/${ro.boot.bootdevice}
symlink /dev/block/platform/soc/${ro.boot.bootdevice} /dev/block/bootdevice

3
sepolicy/vendor/vendor_hvdcp.te vendored Normal file
View File

@@ -0,0 +1,3 @@
recovery_only(`
domain_trans(init, rootfs, vendor_hvdcp)
')