title: Android : Turn on a device programmatically
body: <p>I have a smartphone connected to a solar charger.
  By day, it is powered correctly. But during the night, sometimes it turns itself off due to the lack of energy.</p>
  
  <p>My question is : It is possible to turn it back on (programmatically), when the battery charge exceeds a certain percentage? 
  I'm looking for a clean and legal way. I'm not interested in flaws or exploits.
  I found nothing in the official documentation. Thank you.</p>