The Android team has a new app that can disable suspend on a device:
http://lists.linaro.org/pipermail/linaro-android/2012-April/000723.html
It can be enabled with commands like:
am start -W -a android.intent.action.MAIN -n \ com.android.disablesuspend/.DisableSuspendActivity input keyevent 61 #key code for <TAB> input keyevent 66 #key code for <Enter>
Looking at the changes we made to support this[1], I wonder if this new method is safer. On the one hand this requires a change, and the change requires us to start an application. This seems slower. On the other hand, we are currently making sqlite3 calls and such that seem a bit dangerous.
Thoughts?
1: http://bazaar.launchpad.net/~linaro-validation/lava-dispatcher/trunk/revisio...