Add functions to press home, back and menu keys.

Change-Id: I54a28eb75463d5b5f8c9e2f216983aac67be0fa7
This commit is contained in:
Romain Guy 2010-10-04 16:56:11 -07:00
parent 25a04dadf6
commit b84049abc7
1 changed files with 15 additions and 0 deletions

View File

@ -1002,6 +1002,21 @@ function isviewserverstarted()
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