View Single Post
Posts: 194 | Thanked: 1,019 times | Joined on May 2010 @ Moscow, Russia
#156
Originally Posted by retsaw View Post
I see. But from the project goals it is planned to be a full replacement for bme (unless they have abandoned that plan for the less ambitious just allow charging in hostmode), so even if it is just a shell script, couldn't there be a simple helper program which is called by the shell script to handle the wakelock?
I'm afraid wakelock released automatically after process EOL (crash or exit), so only solution would be rewrite it in C/C++.

Btw, I don't see Gingerbread going to sleep while charging (after patching framework for UMS support).
__________________
*((int*)1) = 0;

Last edited by e-yes; 2011-01-08 at 18:44.
 

The Following User Says Thank You to e-yes For This Useful Post: