isUserAMonkey()
developer.android.com
developer.android.com
Sensor manager also includes a constant for the gravity of the first death star
http://developer.android.com/reference/android/hardware/Sens...
Not very well documented, but it is apparently a way to check if the current user is a automated tester.