diff --git a/proprietary-files.txt b/proprietary-files.txt index 215f8e5..01830ce 100644 --- a/proprietary-files.txt +++ b/proprietary-files.txt @@ -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 diff --git a/rootdir/etc/init.recovery.qcom.rc b/rootdir/etc/init.recovery.qcom.rc index 6ab9b32..8c0eb2c 100644 --- a/rootdir/etc/init.recovery.qcom.rc +++ b/rootdir/etc/init.recovery.qcom.rc @@ -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 diff --git a/sepolicy/vendor/vendor_hvdcp.te b/sepolicy/vendor/vendor_hvdcp.te new file mode 100644 index 0000000..f54b331 --- /dev/null +++ b/sepolicy/vendor/vendor_hvdcp.te @@ -0,0 +1,3 @@ +recovery_only(` + domain_trans(init, rootfs, vendor_hvdcp) +')