diff options
author | Andrew Dodd <atd7@cornell.edu> | 2015-03-23 08:06:31 -0400 |
---|---|---|
committer | Arian <arian.kulmer@web.de> | 2019-10-25 22:16:12 +0200 |
commit | 9f0cff2de4e17c54036b75f4d59458b172c581ec (patch) | |
tree | 23eb98622daa54b39da49e053f4799e6329ff4cc | |
parent | d8be450fdccd094a815ca0c87bc844e51954792f (diff) |
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 <humberos@gmail.com>
Change-Id: Ic6921af66e86eed3e41c523a5543530c409fda18
(cherry picked from commit 1996c89092a98db01981378a18906f59e6d6f32c)
-rw-r--r-- | rootdir/init.qcom.rc | 9 | ||||
-rw-r--r-- | sepolicy/file_contexts | 3 |
2 files changed, 12 insertions, 0 deletions
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 |