ADB Shell Input Events

前端 未结 8 1336
伪装坚强ぢ
伪装坚强ぢ 2020-11-22 11:50

What is the basic difference between adb shell input keyevent and adb shell sendevent? Which one should I use for inputting a character? Are the ke

8条回答
  •  太阳男子
    2020-11-22 12:27

    By the way, if you are trying to find a way to send double quotes to the device, try the following:

    adb shell input text '\"'

    I'm not sure why there's no event code for quotes, but this workaround does the job. Also, if you're using MonkeyDevice (or ChimpChat) you should test each caracter before invoking monkeyDevice.type, otherwise you get nothing when you try to send "

提交回复
热议问题