Android ADB: Simulate Recent App key press
The solution is to use the KEYCODE_APP_SWITCH
KeyEvent:
adb shell input keyevent KEYCODE_APP_SWITCH
See @SimonMarquis answer below
adb shell input keyevent KEYCODE_APP_SWITCH
(OBSOLETE)
I don't think there is a keycode for it.
However, I am able to open the recent apps menu with adb shell input tap
(testing on a Nexus 5 with Lollipop). For example:
adb shell input tap 800 1890