From 9f0cff2de4e17c54036b75f4d59458b172c581ec Mon Sep 17 00:00:00 2001 From: Andrew Dodd Date: Mon, 23 Mar 2015 08:06:31 -0400 Subject: shinano: Add HVDCP service for QC2.0 This is used to enabled HVDCP (Quick Charge 2.0) negotiation Without this service, HVDCP chargers will treat the device as a non-HVDCP-capable one. Signed-off-by: Humberto Borba Change-Id: Ic6921af66e86eed3e41c523a5543530c409fda18 (cherry picked from commit 1996c89092a98db01981378a18906f59e6d6f32c) --- rootdir/init.qcom.rc | 9 +++++++++ sepolicy/file_contexts | 3 +++ 2 files changed, 12 insertions(+) diff --git a/rootdir/init.qcom.rc b/rootdir/init.qcom.rc index 3aae358..9a06301 100644 --- a/rootdir/init.qcom.rc +++ b/rootdir/init.qcom.rc @@ -91,6 +91,9 @@ on fs symlink /sdcard /storage/sdcard0 + # Start hvdcp to enable quck charge 2.0 in power off charge + start hvdcp + on early-boot # set RLIMIT_MEMLOCK to 64MB setrlimit 8 67108864 67108864 @@ -556,3 +559,9 @@ service timekeep /system/vendor/bin/timekeep restore user root group root oneshot + +# Quick Charge +service hvdcp /system/vendor/bin/hvdcp + class core + user root + disabled diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts index b5308c0..f1342ad 100644 --- a/sepolicy/file_contexts +++ b/sepolicy/file_contexts @@ -20,3 +20,6 @@ # WIFI /sys/module/bcmdhd/parameters/firmware_path u:object_r:sysfs_wlan_fwpath:s0 + +# Quick Charge +/system/vendor/bin/hvdcp u:object_r:hvdcp_exec:s0 -- cgit v1.2.3