From dd7d14380c7ebc3eb58049eb519579a7fdce9735 Mon Sep 17 00:00:00 2001 From: Yueyao Zhu Date: Tue, 25 Jul 2017 14:57:25 -0700 Subject: [PATCH] Set port type to sink in charger mode Bug: 62212404 Change-Id: Ib45f4877b6a06cb7a549cc45fec6b815dbd28950 Signed-off-by: Yueyao Zhu --- init.hardware.rc | 1 + 1 file changed, 1 insertion(+) diff --git a/init.hardware.rc b/init.hardware.rc index 7a88e2b8..18f61704 100644 --- a/init.hardware.rc +++ b/init.hardware.rc @@ -28,6 +28,7 @@ on charger write /sys/devices/soc/${ro.boot.bootdevice}/clkscale_enable 1 write /sys/devices/soc/${ro.boot.bootdevice}/clkgate_enable 1 write /sys/devices/soc/${ro.boot.bootdevice}/hibern8_on_idle_enable 1 + write /sys/class/typec/port0/port_type sink write /sys/module/lpm_levels/parameters/sleep_disabled N service charger /charger