STF 连接小米手机问题

富富 · 2018年04月16日 · 最后由 富富 回复于 2018年04月16日 · 3073 次阅读

在各种精华帖子基础上,顺利搭好了 stf,也跑起来了,就遇到一台手机连接有问题,论坛也搜不到相关资料,请教下大家。各种授权,usb 调试都打开了,手机是小米 mix2。是什么权限问题?刷个开发版开启 root 有用吗?

2018-04-13T12:48:49.064Z INF/device:plugins:touch 11008 [4b51ad27] minitouch says: "Unable to open device /dev/input/mouse0 for inspectionopen: Permission denied"
2018-04-13T12:48:49.065Z INF/device:plugins:touch 11008 [4b51ad27] minitouch says: "Unable to open device /dev/input/event1 for inspectionUnable to find a suitable touch device"
2018-04-13T12:48:49.065Z WRN/device:plugins:touch 11008 [4b51ad27] Shell keeping minitouch running ended unexpectedly
2018-04-13T12:48:49.065Z INF/device:plugins:touch 11008 [4b51ad27] Disconnecting from minitouch service
2018-04-13T12:48:49.067Z WRN/device:plugins:touch 11008 [4b51ad27] Will not apply desired state due to too many failures
2018-04-13T12:48:49.067Z INF/device:plugins:touch 11008 [4b51ad27] Stopping minitouch service
2018-04-13T12:48:49.068Z FTL/device 11008 [4b51ad27] Setup had an error Error: Failed more than 3 times in 10000ms
    at TouchConsumer._failLimitExceeded (/usr/local/lib/node_modules/stf/lib/units/device/plugins/touch/index.js:230:26)
    at FailCounter.emit (/usr/local/lib/node_modules/stf/node_modules/eventemitter3/index.js:117:35)
    at FailCounter.inc (/usr/local/lib/node_modules/stf/lib/util/failcounter.js:29:10)
    at TouchConsumer._outputEnded (/usr/local/lib/node_modules/stf/lib/units/device/plugins/touch/index.js:223:24)
    at RiskyStream.emit (/usr/local/lib/node_modules/stf/node_modules/eventemitter3/index.js:115:35)
    at RiskyStream.<anonymous> (/usr/local/lib/node_modules/stf/lib/util/riskystream.js:14:12)
    at emitNone (events.js:111:20)
    at Socket.emit (events.js:208:7)
    at endReadableNT (_stream_readable.js:1064:12)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
From previous event:
    at startConsumer (/usr/local/lib/node_modules/stf/lib/units/device/plugins/touch/index.js:511:14)
    at /usr/local/lib/node_modules/stf/lib/units/device/plugins/touch/index.js:526:12
    at SerialSyrup.ParallelSyrup.invoke (/usr/local/lib/node_modules/stf/node_modules/stf-syrup/lib/parallel.js:54:24)
    at /usr/local/lib/node_modules/stf/node_modules/stf-syrup/lib/serial.js:43:33
    at _combinedTickCallback (internal/process/next_tick.js:131:7)
    at process._tickCallback (internal/process/next_tick.js:180:9)
2018-04-13T12:48:49.068Z FTL/util:lifecycle 11008 [4b51ad27] Shutting down due to fatal error
2018-04-13T12:48:49.074Z INF/provider 10552 [*] Cleaning up device worker "4b51ad27"
2018-04-13T12:48:49.075Z ERR/provider 10552 [*] Device worker "4b51ad27" died with code 1
2018-04-13T12:48:49.075Z INF/provider 10552 [*] Restarting device worker "4b51ad27"

共收到 3 条回复 时间 点赞

开发者选项里面,打开允许 USB 模拟点击的开关试试呢

hljycrgl 回复

好像有点用,错误不一样了。但是还是没解决连接这台设备

2018-04-16T02:41:00.753Z FTL/device 35280 [4b51ad27] Setup had an error Error: Service had an error: "Error: Not found; no service started."
    at /usr/local/lib/node_modules/stf/lib/units/device/plugins/service.js:101:23
From previous event:
    at /usr/local/lib/node_modules/stf/lib/units/device/plugins/service.js:76:14
    at runCallback (timers.js:794:20)
    at tryOnImmediate (timers.js:752:5)
    at processImmediate [as _immediateCallback] (timers.js:729:5)
2018-04-16T02:41:00.753Z FTL/util:lifecycle 35280 [4b51ad27] Shutting down due to fatal error
2018-04-16T02:41:00.761Z INF/provider 35147 [*] Cleaning up device worker "4b51ad27"
2018-04-16T02:41:00.761Z ERR/provider 35147 [*] Device worker "4b51ad27" died with code 1
hljycrgl 回复

重装 stfserver apk 就 ok 了,感谢

富富 关闭了讨论 04月16日 10:53
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册