Stf: XiaoMi5 fails on minitouch

Created on 22 Nov 2016  Â·  22Comments  Â·  Source: openstf/stf

INF/device:plugins:touch 4553 [7d068e69] Launching screen service
INF/device:plugins:touch 4553 [7d068e69] Connecting to minitouch service
INF/device:plugins:touch 4553 [7d068e69] minitouch says: "open: Permission denied"
INF/device:plugins:touch 4553 [7d068e69] minitouch says: "Unable to open device /dev/input/event8 for inspectionopen: Permission denied"
INF/device:plugins:touch 4553 [7d068e69] minitouch says: "Unable to open device /dev/input/event7 for inspectionopen: Permission denied"
INF/device:plugins:touch 4553 [7d068e69] minitouch says: "Unable to open device /dev/input/event6 for inspectionopen: Permission denied"
INF/device:plugins:touch 4553 [7d068e69] minitouch says: "Unable to open device /dev/input/mouse2 for inspectionopen: Permission denied"
INF/device:plugins:touch 4553 [7d068e69] minitouch says: "Unable to open device /dev/input/event3 for inspectionopen: Permission denied"
INF/device:plugins:touch 4553 [7d068e69] minitouch says: "Unable to open device /dev/input/mouse0 for inspectionopen: Permission denied"
INF/device:plugins:touch 4553 [7d068e69] minitouch says: "Unable to open device /dev/input/event1 for inspectionopen: Permission denied"
INF/device:plugins:touch 4553 [7d068e69] minitouch says: "Unable to open device /dev/input/event0 for inspectionopen: Permission denied"
INF/device:plugins:touch 4553 [7d068e69] minitouch says: "Unable to open device /dev/input/mice for inspectionopen: Permission denied"
INF/device:plugins:touch 4553 [7d068e69] minitouch says: "Unable to open device /dev/input/event5 for inspectionopen: Permission denied"
INF/device:plugins:touch 4553 [7d068e69] minitouch says: "Unable to open device /dev/input/event4 for inspectionopen: Permission denied"
INF/device:plugins:touch 4553 [7d068e69] minitouch says: "Unable to open device /dev/input/mouse1 for inspectionopen: Permission denied"
INF/device:plugins:touch 4553 [7d068e69] minitouch says: "Unable to open device /dev/input/event2 for inspectionUnable to find a suitable touch device"
WRN/device:plugins:touch 4553 [7d068e69] Shell keeping minitouch running ended unexpectedly

device specific

Most helpful comment

Looks like in MIUI 8.1 there's a new setting in Developer options called "USB debugging (Security settings)" that is disabled by default. To enable the setting you have to add your Mi account, but I believe it should work after that.

mi5_enable_simulated_touch

Let me know how it goes.

All 22 comments

I have one and it works fine. Run adb shell getevent -ilp and post the
output. Also, run adb devices -l and post the line for your device.

On Tue, Nov 22, 2016 at 12:02 PM, scottchejin [email protected]
wrote:

INF/device:plugins:touch 4553 [7d068e69] Launching screen service
INF/device:plugins:touch 4553 [7d068e69] Connecting to minitouch service
INF/device:plugins:touch 4553 [7d068e69] minitouch says: "open: Permission
denied"
INF/device:plugins:touch 4553 [7d068e69] minitouch says: "Unable to open
device /dev/input/event8 for inspectionopen: Permission denied"
INF/device:plugins:touch 4553 [7d068e69] minitouch says: "Unable to open
device /dev/input/event7 for inspectionopen: Permission denied"
INF/device:plugins:touch 4553 [7d068e69] minitouch says: "Unable to open
device /dev/input/event6 for inspectionopen: Permission denied"
INF/device:plugins:touch 4553 [7d068e69] minitouch says: "Unable to open
device /dev/input/mouse2 for inspectionopen: Permission denied"
INF/device:plugins:touch 4553 [7d068e69] minitouch says: "Unable to open
device /dev/input/event3 for inspectionopen: Permission denied"
INF/device:plugins:touch 4553 [7d068e69] minitouch says: "Unable to open
device /dev/input/mouse0 for inspectionopen: Permission denied"
INF/device:plugins:touch 4553 [7d068e69] minitouch says: "Unable to open
device /dev/input/event1 for inspectionopen: Permission denied"
INF/device:plugins:touch 4553 [7d068e69] minitouch says: "Unable to open
device /dev/input/event0 for inspectionopen: Permission denied"
INF/device:plugins:touch 4553 [7d068e69] minitouch says: "Unable to open
device /dev/input/mice for inspectionopen: Permission denied"
INF/device:plugins:touch 4553 [7d068e69] minitouch says: "Unable to open
device /dev/input/event5 for inspectionopen: Permission denied"
INF/device:plugins:touch 4553 [7d068e69] minitouch says: "Unable to open
device /dev/input/event4 for inspectionopen: Permission denied"
INF/device:plugins:touch 4553 [7d068e69] minitouch says: "Unable to open
device /dev/input/mouse1 for inspectionopen: Permission denied"
INF/device:plugins:touch 4553 [7d068e69] minitouch says: "Unable to open
device /dev/input/event2 for inspectionUnable to find a suitable touch
device"
WRN/device:plugins:touch 4553 [7d068e69] Shell keeping minitouch running
ended unexpectedly

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/openstf/stf/issues/477, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAB-_ScNjvEGKWydqKHtY0QyrlTipgZbks5rAls-gaJpZM4K49Kt
.

adb shell getevent -ilp:
could not open /dev/input/event8, Permission denied
could not open /dev/input/event7, Permission denied
could not open /dev/input/event6, Permission denied
could not open /dev/input/mouse2, Permission denied
could not open /dev/input/event3, Permission denied
could not open /dev/input/mouse0, Permission denied
could not open /dev/input/event1, Permission denied
could not open /dev/input/event0, Permission denied
could not open /dev/input/mice, Permission denied
could not open /dev/input/event5, Permission denied
could not open /dev/input/event4, Permission denied
could not open /dev/input/mouse1, Permission denied

could not open /dev/input/event2, Permission denied

adb devices -l:
List of devices attached
7d068e69 device usb:1-1 product:gemini model:MI_5 device:gemini

Yeah well that's broken, then. Are you running an official ROM?

On Tue, 22 Nov 2016 at 14:04 scottchejin [email protected] wrote:

adb shell getevent -ilp:
could not open /dev/input/event8, Permission denied
could not open /dev/input/event7, Permission denied
could not open /dev/input/event6, Permission denied
could not open /dev/input/mouse2, Permission denied
could not open /dev/input/event3, Permission denied
could not open /dev/input/mouse0, Permission denied
could not open /dev/input/event1, Permission denied
could not open /dev/input/event0, Permission denied
could not open /dev/input/mice, Permission denied
could not open /dev/input/event5, Permission denied
could not open /dev/input/event4, Permission denied
could not open /dev/input/mouse1, Permission denied
could not open /dev/input/event2, Permission denied

adb devices -l:
List of devices attached
7d068e69 device usb:1-1 product:gemini model:MI_5 device:gemini

—
You are receiving this because you commented.

Reply to this email directly, view it on GitHub
https://github.com/openstf/stf/issues/477#issuecomment-262148596, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAB-_W8ZZDkInydjiqtTbI228aDuxN0vks5rAnfagaJpZM4K49Kt
.

Yes. the MIUI version is :MIUI 8.1 | Stable 8.1.3.0(MAACNDI)
I have another XIAOMI 5, version is: MIUI 7.3, it works well.

8.0 works fine. Not sure about 8.1, would be unfortunate if they've locked it down.

Thank you for your help. I will flush 8.0 then try again. Maybe they've locked it if 8.0 can run well on the same device, and I will post the result later.

Looks like in MIUI 8.1 there's a new setting in Developer options called "USB debugging (Security settings)" that is disabled by default. To enable the setting you have to add your Mi account, but I believe it should work after that.

mi5_enable_simulated_touch

Let me know how it goes.

Yes. I used my MI account then enabled the setting "USB debugging (Security settings)", The device works well. Thanks for your help.

image

ha, MI is awesome

Hey there ,
I have the same issues , my MI 5s does't have the setting "USB debugging (Security settings)",MIUI Version : 8.0.18

  adb devices -l : 
       129d5a98               device usb:336592896X product:capricorn model:MI_5s device:capricorn

You probably have to update your phone, then.
On Mon, Feb 27, 2017 at 11:47 lql0ve notifications@github.com wrote:

Hey there ,
I have the same issues , my MI 5s does't have the setting "USB debugging
(Security settings)",MIUI Version : 8.0.18

adb devices -l :
129d5a98 device usb:336592896X product:capricorn model:MI_5s device:capricorn

—
You are receiving this because you commented.

Reply to this email directly, view it on GitHub
https://github.com/openstf/stf/issues/477#issuecomment-282615107, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAB-_YSv78Tcd0qpnrwgddFVXO64uav7ks5rgjk4gaJpZM4K49Kt
.

Updating MIUI V8.2.2.0.MAGCNDL , not sure it's have the setting...touch you later

updated to MIUI V8.2.2.0.MAGCNDL and work fine ,thx~

Btw did you happen to have a MI account on that device when you checked? In later versions the option is there and says you have to add a MI account first. I'm thinking that perhaps in the initial versions where they did that, they didn't even show the option unless you had an account. It's possible that if you add an account, the option would magically just appear. I have no device to test the theory with, though.

In the initial versions V8.0 i added a MI accouunt, but it didn't show the option, the I update the MIUI Version to V8.2, it appears.

:(

I think this issue needs to be reopened. It doesn't work correctly even on my MI phone. I get the following error

[15:39:43] sudheeshsinganamalla:~ $ adb shell getevent -ilp
could not open /dev/input/event13, Permission denied
could not open /dev/input/event12, Permission denied
could not open /dev/input/event11, Permission denied
could not open /dev/input/event10, Permission denied
could not open /dev/input/event9, Permission denied
could not open /dev/input/event8, Permission denied
could not open /dev/input/event7, Permission denied
could not open /dev/input/event4, Permission denied
could not open /dev/input/mouse0, Permission denied
could not open /dev/input/event2, Permission denied
could not open /dev/input/event1, Permission denied
could not open /dev/input/mice, Permission denied
could not open /dev/input/event5, Permission denied
could not open /dev/input/event6, Permission denied
could not open /dev/input/event3, Permission denied
could not open /dev/input/event0, Permission denied

and on stf I receive the following information

FTL/device 45168 [5d89bf39] Setup had an error Error: Failed more than 3 times in 10000ms
    at TouchConsumer._failLimitExceeded (/Users/sudheeshsinganamalla/Documents/GameAutomators/stf/lib/units/device/plugins/touch/index.js:230:26)
    at FailCounter.emit (/Users/sudheeshsinganamalla/Documents/GameAutomators/stf/node_modules/eventemitter3/index.js:117:35)
    at FailCounter.inc (/Users/sudheeshsinganamalla/Documents/GameAutomators/stf/lib/util/failcounter.js:29:10)
    at TouchConsumer._outputEnded (/Users/sudheeshsinganamalla/Documents/GameAutomators/stf/lib/units/device/plugins/touch/index.js:223:24)
    at RiskyStream.emit (/Users/sudheeshsinganamalla/Documents/GameAutomators/stf/node_modules/eventemitter3/index.js:115:35)
    at RiskyStream.<anonymous> (/Users/sudheeshsinganamalla/Documents/GameAutomators/stf/lib/util/riskystream.js:14:12)
    at emitNone (events.js:91:20)
    at Socket.emit (events.js:188:7)
    at endReadableNT (_stream_readable.js:975:12)
    at _combinedTickCallback (internal/process/next_tick.js:80:11)
From previous event:
    at startConsumer (/Users/sudheeshsinganamalla/Documents/GameAutomators/stf/lib/units/device/plugins/touch/index.js:511:14)
    at /Users/sudheeshsinganamalla/Documents/GameAutomators/stf/lib/units/device/plugins/touch/index.js:526:12
    at SerialSyrup.ParallelSyrup.invoke (/Users/sudheeshsinganamalla/Documents/GameAutomators/stf/node_modules/stf-syrup/lib/parallel.js:54:24)
    at /Users/sudheeshsinganamalla/Documents/GameAutomators/stf/node_modules/stf-syrup/lib/serial.js:43:33
    at _combinedTickCallback (internal/process/next_tick.js:73:7)
    at process._tickCallback (internal/process/next_tick.js:104:9)

INF/device:plugins:touch 45174 [5d89bf39] minitouch says: "Unable to open device /dev/input/event10 for inspectionopen: Permission denied"
INF/device:plugins:touch 45174 [5d89bf39] minitouch says: "Unable to open device /dev/input/event9 for inspectionopen: Permission denied"
INF/device:plugins:touch 45174 [5d89bf39] minitouch says: "Unable to open device /dev/input/event8 for inspectionopen: Permission denied"
INF/device:plugins:touch 45174 [5d89bf39] minitouch says: "Unable to open device /dev/input/event7 for inspectionopen: Permission denied"
INF/device:plugins:touch 45174 [5d89bf39] minitouch says: "Unable to open device /dev/input/event4 for inspectionopen: Permission denied"
INF/device:plugins:touch 45174 [5d89bf39] minitouch says: "Unable to open device /dev/input/mouse0 for inspectionopen: Permission denied"

Did you read everything in this issue? Did you change the setting that you must change?

@sorccu Yes, i've an MI account already registered on the phone and adb devices shows up the device name. It works perfectly fine with a Moto G phone.

screen shot 2017-03-31 at 3 53 10 pm

screen shot 2017-03-31 at 3 53 03 pm

But did you change the setting shown in https://github.com/openstf/stf/issues/477#issuecomment-262163984?

@sorccu Yes I received 3 warning screens holding up each screen for 5 seconds before the Next button is activated and it didn't show up. I just disconnected the cable and reconnected it and it seems to be working totally fine. 😄 Thank you !

Also is there an API for just using the <device-screen> on a seperate webpage ? I am also trying to get this working on Windows to contribute to openstf and facing a few issues with libjpeg-turbo

Ok good. node-jpeg-turbo is actually already compatible with Windows thanks to a contributor, but that version has not been released yet.

603 now has a better guide for adding Xiaomi devices to STF.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

PariKdm picture PariKdm  Â·  4Comments

jagsme picture jagsme  Â·  5Comments

ThinkerT picture ThinkerT  Â·  4Comments

lgleasain picture lgleasain  Â·  7Comments

0x88l picture 0x88l  Â·  4Comments