Take the 2-minute tour ×
Android Enthusiasts Stack Exchange is a question and answer site for enthusiasts and power users of the Android operating system. It's 100% free, no registration required.

Is it possible to automatically power on the device once the charger is connected given that the device is initially turned off?

share|improve this question
add comment

6 Answers

For some Samsung devices, this can be accomplished through NoMoarPowah!:

NoMoarPowah! can automatically reboot into Android when charging is done. Either when fully charged, or when the battery level reaches 15% and Android has enough juice to run.

You need root and you probably don't want to do it unless you really know what you're doing, since I would expect this to modify important system files.

share|improve this answer
    
any idea how's this app works ?!. it's model specific i have the code but i can't seem to understand it well, any direction to understand this code so i could get it work on my phone ?! –  Muhammad Ghandour Mar 7 '12 at 18:55
    
@MuhammadGhandour I haven't looked at it myself, but I would assume adapting it would be quite a challenge if you're not already familiar with this sort of thing. One option is to ask Chainfire to support your device, he may be able to add it if you provide him with the info he needs. (As an aside, dev questions are off-topic here.) –  Matthew Read Mar 7 '12 at 18:59
    
i have already requested that at chainfire's channel, rather than xda-developer, Is there any other good place for Android dev questions ?!.. –  Muhammad Ghandour Mar 11 '12 at 10:08
    
@MuhammadGhandour Stack Overflow does development questions, you'll need to ask something specific though rather than "Can you help me understand this?" –  Matthew Read Mar 11 '12 at 22:54
    
actually i was redirected from StackOverflow to here for Android specific question. anyways thanks for your help –  Muhammad Ghandour Mar 13 '12 at 8:34
show 1 more comment

Kernel is loaded at a later stage in the boot-up process, so any modifications to it would not have any effect for when the device is powered off.

This functionality really depends on each device's hardware, most likely in the bootloader (more knowledgeable editors feel free to correct me.) For example, my Motorola Atrix 4G phone begins booting up when I connect a charger, while my Samsung Galaxy Tab does not - it displays the "Battery Charging" graphic and requires being powered on manually.

share|improve this answer
1  
so what brings up the Battery charging graphic on the screen ?!...now the bootloader is called when you hit on the power button manually, but what piece of code displays the battery charging graph on the screen ?! –  Muhammad Ghandour Mar 4 '12 at 9:19
add comment

If you want to do the opposite, shutdown when charge, use this: "Auto ShutDown when no charge" https://play.google.com/store/apps/details?id=com.zeroFactorial.probattle good for my car's device and also had button broken

share|improve this answer
add comment

This app solves your problem: https://play.google.com/store/apps/details?id=auto.boot&hl=en it is called Auto Boot - Boot On Charge

This video explains its usage: http://www.youtube.com/watch?v=QYDk_qPpTVo

enjoy!

share|improve this answer
    
What is your affiliation with this app? –  Al E. Nov 18 '13 at 19:25
add comment

The battery charging graphic is displayed by /system/bin/playlpm file on Samsung devices.

If you are root, you can edit this file to

#!/system/bin/sh
/system/bin/reboot

Be sure to add those permissions to the file

chmod 0755/system/bin/playlpm
chown root.shell /system/bin/playlpm

Your device will now boot when plugged

share|improve this answer
add comment

Check out this video. Here you will find a feature that starts the OS at a pre-defined time. We can replace that command with start-on-charger-connect.

https://www.olimex.com/forum/index.php?topic=1091.0

Check this link. It says you will have to edit the fex file. Replace power_start = 1 and then build the new image. Your device will start automatically.

share|improve this answer
    
Please don't post link-only answers. If the link goes dead, nobody has any idea what the video contained. Also, in this case, the solution you propose works only for certain phones made by Spice - the feature you mention isn't a standard part of Android - and only wakes up the phone from a timer, not when the charger is plugged in. –  Dan Hulme Aug 18 '13 at 9:27
    
It is common with MTK based devices. I own a few of them - all from different manufacturers. They all have this feature. –  AJParag Aug 24 '13 at 3:35
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.