commit | b84049abc77322eac6326d7d55ee53d18e061c71 | [log] [tgz] |
---|---|---|
author | Romain Guy <romainguy@google.com> | Mon Oct 04 16:56:11 2010 -0700 |
committer | Romain Guy <romainguy@google.com> | Tue Oct 05 10:29:35 2010 -0700 |
tree | 83fc6890e17db8d247c5d74052890988f1e18383 | |
parent | 25a04dadf62311b7a267f6f77bfe20690801d73d [diff] [blame] |
Add functions to press home, back and menu keys. Change-Id: I54a28eb75463d5b5f8c9e2f216983aac67be0fa7
diff --git a/envsetup.sh b/envsetup.sh index 1f35061..bfafbb7 100644 --- a/envsetup.sh +++ b/envsetup.sh
@@ -1002,6 +1002,21 @@ adb shell service call window 3 } +function key_home() +{ + adb shell input keyevent 3 +} + +function key_back() +{ + adb shell input keyevent 4 +} + +function key_menu() +{ + adb shell input keyevent 82 +} + function smoketest() { if [ ! "$ANDROID_PRODUCT_OUT" ]; then