Shaking the phone to turn on the flashlight works fine.
But I also have a problem:
I have activated the brightness sensor via mce-tools, so that the clock is displayed when I take my phone out of my pocket (like the Nokia n900). Now the problem is that this activates the whole screen and not only the clock is displayed.
In this case, it is possible that the flashlight will turn on if I move the phone too fast while doing this.
I have two ideas to solve this problem:
- Add a delay of a few seconds until the flashlight is turned on by shaking it.
- Can you tell if the screen turns on after you press the power button or the brightness sensor? If it does, simply disable the sensor.