RM6785: rootdir: Move VOOC firmware updation back to init
This allows same write to happen in both Android and offline
charging mode, thus enabling VOOC during offline charging.
Change-Id: Iacf85966b5fa37eedb42887d666369fb63e13c33
diff --git a/rootdir/etc/init.target.rc b/rootdir/etc/init.target.rc
index 223e02c..9d83e16 100644
--- a/rootdir/etc/init.target.rc
+++ b/rootdir/etc/init.target.rc
@@ -1,3 +1,7 @@
+on init
+ # Update fastcharge firmware
+ write /proc/fastchg_fw_update 1
+
on fs
mount_all /vendor/etc/fstab.mt6785 --early
mount_all /vendor/etc/fstab.mt6785 --late
@@ -34,9 +38,6 @@
# Enable oppo touchpanel direction
write /proc/touchpanel/oplus_tp_direction 1
- # Update fastcharge firmware
- write /proc/fastchg_fw_update 1
-
# OTG
write /sys/class/power_supply/usb/otg_switch 1