Auto boot when wall charger is plugged
I'm Developing an Android Application where it requireds 3 things:- To keep the App up an running for specific time and then phone will be off (Working Fine) When phone get charging from outlet, I want phone to power up automatically without hitting any power button. (Not Working with wall Socket, but working when connected to USB cable via Laptop). After boot my app should start working Automatically (Working Fine) You Must know :- My phone is Moto E (rooted) and want 2nd step to be done. Tried some codes but that does not work on moto E. When Connected with USB it gives 2 as response and