Skip to content
This repository has been archived by the owner on Jan 16, 2018. It is now read-only.

华为手机运行之后不跳跃,adb shell swipe x1 y1 x2 y2手机有反应 #66

Open
panjunle opened this issue Jan 2, 2018 · 5 comments

Comments

@panjunle
Copy link

panjunle commented Jan 2, 2018

华为手机运行1.14版本之后,小人一直不跳跃。
运行adb shell swipe 320 410 320 410,小人可以跳跃一下。
运行环境ubuntu 16.04
Android Debug Bridge version 1.0.32
Revision debian

debug 日志如下:
2018/01/02 06:45:09 now jump ratio is 2.040000
2018/01/02 06:45:12 from:[245 725] to:[526 566] distance:322.87 ratio:2.04 press:658.65ms
2018/01/02 06:45:18 from:[245 725] to:[526 566] distance:322.87 ratio:2.04 press:658.65ms
2018/01/02 06:45:23 from:[245 725] to:[526 566] distance:322.87 ratio:2.04 press:658.65ms
2018/01/02 06:45:29 from:[245 725] to:[526 566] distance:322.87 ratio:2.04 press:658.65ms
2018/01/02 06:45:35 from:[245 725] to:[526 566] distance:322.87 ratio:2.04 press:658.65ms
2018/01/02 06:45:40 from:[245 725] to:[526 566] distance:322.87 ratio:2.04 press:658.65ms
2018/01/02 06:45:46 from:[245 725] to:[526 566] distance:322.87 ratio:2.04 press:658.65ms
2018/01/02 06:45:51 from:[245 725] to:[526 566] distance:322.87 ratio:2.04 press:658.65ms
2018/01/02 06:45:57 from:[245 725] to:[526 566] distance:322.87 ratio:2.04 press:658.65ms
2018/01/02 06:46:03 from:[245 725] to:[526 566] distance:322.87 ratio:2.04 press:658.65ms
2018/01/02 06:46:08 from:[245 725] to:[526 566] distance:322.87 ratio:2.04 press:658.65ms
2018/01/02 06:46:14 from:[245 725] to:[526 566] distance:322.87 ratio:2.04 press:658.65ms
2018/01/02 06:46:20 from:[245 725] to:[526 566] distance:322.87 ratio:2.04 press:658.65ms
2018/01/02 06:46:25 can't find the starting point,please export the debugger directory

@faceair
Copy link
Owner

faceair commented Jan 2, 2018

开发者选项中模拟触摸打开了吗?

@panjunle
Copy link
Author

panjunle commented Jan 2, 2018

android 4.3 系统
开发者选项中没有找到模拟触摸的选项
请问是否有别的命名或者在某个选项的二级菜单中吗?

@faceair
Copy link
Owner

faceair commented Jan 2, 2018

比较奇怪 你使用命令 adb shell input swipe 320 410 320 410 300 能跳么?

@panjunle
Copy link
Author

panjunle commented Jan 2, 2018

adb shell input swipe 320 410 320 410 300不能跳
adb shell input swipe 320 410 320 410 可以跳一下
执行记录如下,请看看能不能看出问题?是不是权限什么问题

$ adb shell input swipe 320 410 320 410 300
BT INFO: 2.2
open: Permission denied
Error: Invalid arguments for command: swipe
usage: input ...
input text
input keyevent
input [touchscreen|touchpad|touchnavigation] tap
input [touchscreen|touchpad|touchnavigation] swipe [duration(ms)]
input trackball press
input trackball roll

panjl @ panjl-ubuntu in ~/Desktop/temp/apk [15:14:43]

$ adb shell input swipe 320 410 320 410
BT INFO: 2.2
open: Permission denied

@faceair
Copy link
Owner

faceair commented Jan 5, 2018

可能是低版本的 Android 不支持这个命令或者低版本要求 root 权限?最后一个参数是按压时间,如果不能按住的话可能没啥好办法..

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants