SOLVED: Power on when plugged in (boot when docked)?
Hey guys, I know that no one else may ever have any use for this, or even care, but I wanted to post an update. I was finally able to get this figured out through some guess work, trial and error, and looking at the work someone else did on a fairly similar project.
I owe plenty of credit to the fine work done by Chainfire on his project described
in this link. His work, while not the same project, demonstrated that something similar to what I wanted to do WAS possible.
Anyway, to make the tablet boot up when first plugged in- The battery charging indicator that runs when you first plug in the Galaxy Tab is run from the file
/system/bin/playlpm. To make it boot automatically, delete the old
playlpm (or better yet, rename it to playlpm.bak, just in case) and replace it with the following script.
/system/bin/playlpm
Code:
#!/system/bin/sh
/system/bin/reboot
Be sure to set the ownership and permissions the same as the old playlpm. It didn't work for me at first because I had forgotten to give execute permission.
Thats all that it takes. Most of the time, the Tab should have enough power to go straight to booting. If the battery is really dead, it may flash the charging battery icon a few times, failing to boot until it gets enough charge. It will eventually come on.
I don't know of any additional side-effects for doing it this way, but there may be some, I don't know what else the stock playlpm is supposed to manage. This worked for my purposes though. Hope it could help someone else.