Reputation: 7625
I am looking for a way to hook into the charge event, that is started if the device is turned off. You know that one, that starts an animation of a charging battery.
I am having a rooted phone and want to start the phone if the charger is connected.
Fist of all I need to know what part of the system this is? The bootloader?
Upvotes: 0
Views: 705
Reputation: 32273
As far I know the battery charging program is firmware, and I don't think that is connected to the bootloader (that's just a guess, I don't know).
But maybe you could use this program, or find out how it works:
https://play.google.com/store/apps/details?id=eu.chainfire.nomoarpowah
Although it says it works only for certain Samsung devices...
These threads could also help:
https://android.stackexchange.com/questions/20392/alarm-which-could-ring-even-when-device-is-off
https://android.stackexchange.com/questions/4206/does-the-alarm-work-when-my-phone-is-turned-off
Upvotes: 1
Reputation: 34592
That is definitely outside of the domain of Android, definitely not the bootloader, rather an internal of the SoC on the circuitary board, which gets triggered and displays an animating battery charging whilst switched off.
That is outside the scope of Android.
Upvotes: 2