在各种精华帖子基础上,顺利搭好了 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"


↙↙↙阅读原文可查看相关链接,并与作者交流