Paste text on Android using ADB?

前端 未结 2 1508
醉酒成梦
醉酒成梦 2021-01-11 14:22

This might seem like a duplicate question, but hear me out.

I basically need to press \"CTRL+V\" inside of Android. I need to paste the current Android clipboard int

2条回答
  •  忘掉有多难
    2021-01-11 14:49

    Since API 24, KEYCODE_PASTE is available from the KeyEvent class, its constant is 279.

    The adb command would be as follows:

    adb shell input keyevent 279
    

提交回复
热议问题