Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Auto Power on Android when the charger is Connected

Tags:

android

I'm Developing an Android Application where it's constantly required to keep the App up an running at all time. with the phone connected to a power outlet at all time, Is it possible that if the phone's battery died to Auto-start up the app with no user intervention . *i.e to power up the phone automatically without hitting any power button and start up android since charger is connected. * then start up my app with android.intent.action.BOOT_COMPLETED and RECEIVE_BOOT_COMPLETED permission

PS: I have tried android.intent.action.ACTION_POWER_CONNECTED but it only works if the phone is already powered up.

like image 772
Muhammad Ghandour Avatar asked Jan 09 '12 11:01

Muhammad Ghandour


People also ask

Why does my phone automatically turn on when charging?

To prevent any important phone calls or SMS messages from being missed, the phone automatically powers on when being charged. When the phone is powered off and connected to a charger for charging: If the battery level is higher than 2%, the phone automatically powers on.


1 Answers

I have exactly same requirement as yours.

Can we plan a solution like this:

The Android device is always connected to charger's output. Charger's power supply is connected to a custom made hardware device which controls power supply to charger. This hardware device puts charger off until battery is getting low. i.e. 20% remaining. Once battery is less than 20%, that device automatically switch on the charger. The "custom made hardware" gets it input from android device itself via USB/WiFi/Bluetooth.

Just a thought. May not be practically possible.

like image 105
Paras Mehta Avatar answered Nov 08 '22 03:11

Paras Mehta