p1_lte_sendEvent触屏事件记录
附件为p1_lte_sendEvent触屏事件记录
adb shell sendevent /dev/input/event9 3 53 291
adb shell sendevent /dev/input/event9 3 54 891
adb shell sendevent /dev/input/event9 1 330 1
adb shell sendevent /dev/input/event9 0 2 0
adb shell sendevent /dev/input/event9 0 0 0
adb shell sendevent /dev/input/event9 0 2 0
adb shell sendevent /dev/input/event9 1 330 0
adb shell sendevent /dev/input/event9 0 0 0
adb shell sendevent /dev/input/event9 0 0 0
p1可用的event
menu:
adb shell sendevent /dev/input/event10 1 139 1
adb shell sendevent /dev/input/event10 1 139 0
adb shell sendevent /dev/input/event10 0 0 0
cancel:
adb shell sendevent /dev/input/event10 1 158 1
adb shell sendevent /dev/input/event10 1 158 0
adb shell sendevent /dev/input/event10 0 0 0
home:
adb shell sendevent /dev/input/event10 1 102 1
adb shell sendevent /dev/input/event10 1 102 0
adb shell sendevent /dev/input/event10 0 0 0
/////copyof
adb shell sendevent /dev/input/event9 3 0 40
adb shell sendevent /dev/input/event9 3 1 210
adb shell sendevent /dev/input/event9 1 330 1
adb shell sendevent /dev/input/event9 0 0 0
adb shell sendevent /dev/input/event9 1 330 0
adb shell sendevent /dev/input/event9 0 0 0
p1getevent:
/dev/input/event9: 0003 0030 00000000
/dev/input/event9: 0003 0032 00000000
/dev/input/event9: 0003 0035 00000177
/dev/input/event9: 0003 0036 000001e6
/dev/input/event9: 0001 014a 00000001
/dev/input/event9: 0000 0002 00000000
/dev/input/event9: 0000 0000 00000000
/dev/input/event9: 0003 0030 00000000
/dev/input/event9: 0003 0032 00000000
/dev/input/event9: 0003 0035 00000177
/dev/input/event9: 0003 0036 000001e6
/dev/input/event9: 0000 0002 00000000
/dev/input/event9: 0000 0000 00000000
/dev/input/event9: 0001 014a 00000000
/dev/input/event9: 0000 0002 00000000
/dev/input/event9: 0000 0000 00000000
/dev/input/event9: 0000 0002 00000000
/dev/input/event9: 0000 0000 00000000
getCurrentInputConnection().commitText("文本", "文本".length());
//以下两句为模拟回车
getCurrentInputConnection().sendKeyEvent(new KeyEvent(KeyEvent.ACTION_DOWN,66));
getCurrentInputConnection().sendKeyEvent(new KeyEvent(KeyEvent.ACTION_UP,66));
P1(U9201)按键:
BACK:
/dev/input/event9: 0001 009e 00000001
/dev/input/event9: 0000 0000 00000000
/dev/input/event9: 0001 009e 00000000
/dev/input/event9: 0000 0000 00000000
/dev/input/event5: 0003 0028 0000000b
/dev/input/event5: 0000 0000 00000000
HOME
/dev/input/event9: 0001 0066 00000001
/dev/input/event9: 0000 0000 00000000
/dev/input/event9: 0001 0066 00000000
/dev/input/event9: 0000 0000 00000000
MENU
/dev/input/event9: 0001 008b 00000001
/dev/input/event9: 0000 0000 00000000
/dev/input/event9: 0001 008b 00000000
/dev/input/event9: 0000 0000 00000000
VOLUME UP:
/dev/input/event0: 0004 0004 00000000
/dev/input/event0: 0001 0073 00000001
/dev/input/event0: 0000 0000 00000000
/dev/input/event0: 0004 0004 00000000
/dev/input/event0: 0001 0073 00000000
/dev/input/event0: 0000 0000 00000000
VOLUME DOWN:
/dev/input/event0: 0004 0004 00000001
/dev/input/event0: 0001 0072 00000001
/dev/input/event0: 0000 0000 00000000
/dev/input/event0: 0004 0004 00000001
/dev/input/event0: 0001 0072 00000000
/dev/input/event0: 0000 0000 00000000
POWER:
/dev/input/event1: 0001 0074 00000001
/dev/input/event1: 0000 0000 00000000
/dev/input/event1: 0001 0074 00000000
/dev/input/event1: 0000 0000 00000000
TOUCH:
/dev/input/event8: 0003 0030 00000000
/dev/input/event8: 0003 0032 00000000
/dev/input/event8: 0003 0035 00000120
/dev/input/event8: 0003 0036 000003a5
/dev/input/event8: 0001 014a 00000001
/dev/input/event8: 0000 0002 00000000
/dev/input/event8: 0000 0000 00000000
/dev/input/event8: 0003 0030 00000000
/dev/input/event8: 0003 0032 00000000
/dev/input/event8: 0003 0035 00000120
/dev/input/event8: 0003 0036 000003a5
/dev/input/event8: 0000 0002 00000000
/dev/input/event8: 0000 0000 00000000
/dev/input/event8: 0001 014a 00000000
/dev/input/event8: 0000 0002 00000000
/dev/input/event8: 0000 0000 00000000
/dev/input/event8: 0000 0002 00000000
/dev/input/event8: 0000 0000 00000000
/dev/input/event8: 0000 0002 00000000
/dev/input/event8: 0000 0000 00000000
/dev/input/event8: 0000 0002 00000000
/dev/input/event8: 0000 0000 00000000