mirror of
https://github.com/Evolution-X-Devices/device_xiaomi_sm6150-common
synced 2026-01-27 16:26:02 +00:00
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:
committed by
therealmharc
parent
bbd0dfb1d0
commit
e671eb6c69
@@ -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
|
||||
|
||||
@@ -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
3
sepolicy/vendor/vendor_hvdcp.te
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
recovery_only(`
|
||||
domain_trans(init, rootfs, vendor_hvdcp)
|
||||
')
|
||||
Reference in New Issue
Block a user