SHARE
TWEET

Untitled

a guest Apr 21st, 2019 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. By adb shell input keyevent, either an event_code or a string will be sent to the device.
  2.  
  3. usage: input [text|keyevent]
  4.   input text <string>
  5.   input keyevent <event_code>
  6.  
  7. Some possible values for event_code are:
  8.  
  9. 0 -->  "KEYCODE_UNKNOWN"
  10. 1 -->  "KEYCODE_MENU"
  11. 2 -->  "KEYCODE_SOFT_RIGHT"
  12. 3 -->  "KEYCODE_HOME"
  13. 4 -->  "KEYCODE_BACK"
  14. 5 -->  "KEYCODE_CALL"
  15. 6 -->  "KEYCODE_ENDCALL"
  16. 7 -->  "KEYCODE_0"
  17. 8 -->  "KEYCODE_1"
  18. 9 -->  "KEYCODE_2"
  19. 10 -->  "KEYCODE_3"
  20. 11 -->  "KEYCODE_4"
  21. 12 -->  "KEYCODE_5"
  22. 13 -->  "KEYCODE_6"
  23. 14 -->  "KEYCODE_7"
  24. 15 -->  "KEYCODE_8"
  25. 16 -->  "KEYCODE_9"
  26. 17 -->  "KEYCODE_STAR"
  27. 18 -->  "KEYCODE_POUND"
  28. 19 -->  "KEYCODE_DPAD_UP"
  29. 20 -->  "KEYCODE_DPAD_DOWN"
  30. 21 -->  "KEYCODE_DPAD_LEFT"
  31. 22 -->  "KEYCODE_DPAD_RIGHT"
  32. 23 -->  "KEYCODE_DPAD_CENTER"
  33. 24 -->  "KEYCODE_VOLUME_UP"
  34. 25 -->  "KEYCODE_VOLUME_DOWN"
  35. 26 -->  "KEYCODE_POWER"
  36. 27 -->  "KEYCODE_CAMERA"
  37. 28 -->  "KEYCODE_CLEAR"
  38. 29 -->  "KEYCODE_A"
  39. 30 -->  "KEYCODE_B"
  40. 31 -->  "KEYCODE_C"
  41. 32 -->  "KEYCODE_D"
  42. 33 -->  "KEYCODE_E"
  43. 34 -->  "KEYCODE_F"
  44. 35 -->  "KEYCODE_G"
  45. 36 -->  "KEYCODE_H"
  46. 37 -->  "KEYCODE_I"
  47. 38 -->  "KEYCODE_J"
  48. 39 -->  "KEYCODE_K"
  49. 40 -->  "KEYCODE_L"
  50. 41 -->  "KEYCODE_M"
  51. 42 -->  "KEYCODE_N"
  52. 43 -->  "KEYCODE_O"
  53. 44 -->  "KEYCODE_P"
  54. 45 -->  "KEYCODE_Q"
  55. 46 -->  "KEYCODE_R"
  56. 47 -->  "KEYCODE_S"
  57. 48 -->  "KEYCODE_T"
  58. 49 -->  "KEYCODE_U"
  59. 50 -->  "KEYCODE_V"
  60. 51 -->  "KEYCODE_W"
  61. 52 -->  "KEYCODE_X"
  62. 53 -->  "KEYCODE_Y"
  63. 54 -->  "KEYCODE_Z"
  64. 55 -->  "KEYCODE_COMMA"
  65. 56 -->  "KEYCODE_PERIOD"
  66. 57 -->  "KEYCODE_ALT_LEFT"
  67. 58 -->  "KEYCODE_ALT_RIGHT"
  68. 59 -->  "KEYCODE_SHIFT_LEFT"
  69. 60 -->  "KEYCODE_SHIFT_RIGHT"
  70. 61 -->  "KEYCODE_TAB"
  71. 62 -->  "KEYCODE_SPACE"
  72. 63 -->  "KEYCODE_SYM"
  73. 64 -->  "KEYCODE_EXPLORER"
  74. 65 -->  "KEYCODE_ENVELOPE"
  75. 66 -->  "KEYCODE_ENTER"
  76. 67 -->  "KEYCODE_DEL"
  77. 68 -->  "KEYCODE_GRAVE"
  78. 69 -->  "KEYCODE_MINUS"
  79. 70 -->  "KEYCODE_EQUALS"
  80. 71 -->  "KEYCODE_LEFT_BRACKET"
  81. 72 -->  "KEYCODE_RIGHT_BRACKET"
  82. 73 -->  "KEYCODE_BACKSLASH"
  83. 74 -->  "KEYCODE_SEMICOLON"
  84. 75 -->  "KEYCODE_APOSTROPHE"
  85. 76 -->  "KEYCODE_SLASH"
  86. 77 -->  "KEYCODE_AT"
  87. 78 -->  "KEYCODE_NUM"
  88. 79 -->  "KEYCODE_HEADSETHOOK"
  89. 80 -->  "KEYCODE_FOCUS"
  90. 81 -->  "KEYCODE_PLUS"
  91. 82 -->  "KEYCODE_MENU"
  92. 83 -->  "KEYCODE_NOTIFICATION"
  93. 84 -->  "KEYCODE_SEARCH"
  94. 85 -->  "TAG_LAST_KEYCODE"
  95.  
  96. The sendevent utility sends touch or keyboard events, as well as other events for simulating the hardware events.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top