TLDR
Enter a command. For example: getprop, cmd, bugreport, wm, pm, bugreportz.

input

 
Send event codes or touchscreen gestures to an Android device. This command can only be used through adb shell. More information: https://developer.android.com/reference/android/view/KeyEvent.html#constants_1.
 
  • Send an event code for a single character to an Android device:
     
    input keyevent {{event_code}}
     
  • Send a text to an Android device (%s represents spaces):
     
    input text "{{text}}"
     
  • Send a single tap to an Android device:
     
    input tap {{x_pos}} {{y_pos}}
     
  • Send a swipe gesture to an Android device:
     
    input swipe {{x_start}} {{y_start}} {{x_end}} {{y_end}} {{duration_in_ms}}
     
  • Send a long press to an Android device using a swipe gesture:
     
    input swipe {{x_pos}} {{y_pos}} {{x_pos}} {{y_pos}} {{duration_in_ms}}

This is a tldr pages (source, CC BY 4.0) web wrapper for cheat-sheets.org. All commands, popular commands, most used linux commands. Referrals. Progressive Web Application (PWA) version to install on your device.