For Lenovo A2010 phone,following worked:
- Use file manager phone app from playstore like Total commander(on rooted phone) to goto folder /system/bin/
- Copy file kpoc_charger and paste it there as kpoc_charger.bak
Now edit the original file kpoc_charger using total-commander, replace all lines with following code:
#!/system/bin/sh
/system/bin/reboot
- Save it, goto properties and change UID:0 root, GID:2000 shell and permission as 755 (same as properties of other files in /system/bin folder).
- Now shutdown phone and plug to charger.
- Bazinga!!!! battery icon shows for a sec but phone sucessfully boots into os.