title: Auto boot when wall charger is plugged
body: <p>I'm Developing an Android Application where it requireds 3 things:- </p>
  
  <ol>
  <li>To keep the App up an running for specific time and then phone will be off (Working Fine) </li>
  <li><strong>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).</strong></li>
  <li>After boot my app should start working Automatically (Working Fine)</li>
  </ol>
  
  <p>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 when connected with Wall socket charger it says 1</p>
  
  <p>Any help will be Appreciated </p>
  
  <p>P.S :- Auto Boot working with USB cable connected with Laptop but not with Socket Charger </p>
  
  <p><strong>Update-1</strong>: 1- Found <code>fastboot oem off-mode-charge 0</code> working with Nexus 7 but not on Moto e. </p>
  
  <p>2- Moto e boots when connected to Router (USB Dongle Port)</p>