openstf / minitouch

Minimal multitouch event producer for Android.
Other
633 stars 233 forks source link

minitouch no longer works on MIUI after a system update #10

Closed dkw72n closed 6 years ago

dkw72n commented 7 years ago

minitouch used to run on all our Xiaomi devices. recently we upgraded some of our devices(via official push), and minitouch no longer works on them.

here is the os information and the error log of minitouch:

shell@natrium:/data/local/tmp $ getprop | grep build
[ro.bootimage.build.date]: [Thu Nov 10 22:33:40 CST 2016]
[ro.bootimage.build.date.utc]: [1478788420]
[ro.bootimage.build.fingerprint]: [Xiaomi/natrium/natrium:6.0.1/MXB48T/V8.0.12.0.MBGCNDI:user/test-keys]
[ro.build.characteristics]: [nosdcard]
[ro.build.date]: [Thu Nov 10 22:29:35 CST 2016]
[ro.build.date.utc]: [1478788175]
[ro.build.description]: [natrium-user 6.0.1 MXB48T V8.0.12.0.MBGCNDI release-keys]
[ro.build.display.id]: [MXB48T]
[ro.build.fingerprint]: [Xiaomi/natrium/natrium:6.0.1/MXB48T/V8.0.12.0.MBGCNDI:user/release-keys]
[ro.build.flavor]: [natrium-user]
[ro.build.host]: [c3-miui-ota-bd13]
[ro.build.id]: [MXB48T]
[ro.build.product]: [natrium]
[ro.build.tags]: [release-keys]
[ro.build.type]: [user]
[ro.build.user]: [builder]
[ro.build.version.all_codenames]: [REL]
[ro.build.version.base_os]: []
[ro.build.version.codename]: [REL]
[ro.build.version.incremental]: [V8.0.12.0.MBGCNDI]
[ro.build.version.preview_sdk]: [0]
[ro.build.version.release]: [6.0.1]
[ro.build.version.sdk]: [23]
[ro.build.version.security_patch]: [2016-11-01]
shell@natrium:/data/local/tmp $ ./minitouch
open: Permission denied
Unable to open device /dev/input/event7 for inspectionopen: Permission denied
Unable to open device /dev/input/event6 for inspectionopen: Permission denied
Unable to open device /dev/input/mouse2 for inspectionopen: Permission denied
Unable to open device /dev/input/event3 for inspectionopen: Permission denied
Unable to open device /dev/input/mouse0 for inspectionopen: Permission denied
Unable to open device /dev/input/event1 for inspectionopen: Permission denied
Unable to open device /dev/input/event0 for inspectionopen: Permission denied
Unable to open device /dev/input/mice for inspectionopen: Permission denied
Unable to open device /dev/input/event5 for inspectionopen: Permission denied
Unable to open device /dev/input/event4 for inspectionopen: Permission denied
Unable to open device /dev/input/mouse1 for inspectionopen: Permission denied
Unable to open device /dev/input/event2 for inspectionUnable to find a suitable touch device
sorccu commented 7 years ago

It works fine, but you have to go through extra steps when you set up the device. See openstf/stf#477.

sorccu commented 7 years ago

Please report back once you've tested it and close the ticket.

dkw72n commented 7 years ago

unfortunately, no security settings found in my developer options, anything i missed? no_sec_set_in_dev_opt

sorccu commented 7 years ago

Maybe it's somewhere else, please go through all settings (incl. non-developer settings).

On Fri, 2 Dec 2016 at 16:40 dkw72n notifications@github.com wrote:

unfortunately, no security settings found in my developer options, anything i missed? [image: no_sec_set_in_dev_opt] https://cloud.githubusercontent.com/assets/4378007/20826402/842f5fa6-b8a5-11e6-886d-9ac5aef11181.png

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/openstf/minitouch/issues/10#issuecomment-264392890, or mute the thread https://github.com/notifications/unsubscribe-auth/AAB-_XFSr5ThiRMEGrpSG8KJWVQi6CICks5rD8tQgaJpZM4LCPOc .

sorccu commented 7 years ago

Which device is that by the way? Please run adb devices -l and post the product, model and name.

dkw72n commented 7 years ago

>adb devices -l
List of devices attached
4a6a47c6               device product:natrium model:MI_5s_Plus device:natrium

>adb shell getprop ro.build.fingerprint
Xiaomi/natrium/natrium:6.0.1/MXB48T/V8.0.13.0.MBGCNDI:user/release-keys

have been walked through the settings, couldn't find anything similar anywhere. i saw that option on another Xiaomi device(different model), looks like i have to wait for another update.

sorccu commented 7 years ago

Unfortunately that device is too expensive for me to buy, so I can't try it out. However on a Mi 5 (not 5s plus) MIUI worked without changing anything, and MIUI 5 had that setting.

On Sat, 3 Dec 2016 at 16:10 dkw72n notifications@github.com wrote:

adb devices -l List of devices attached 4a6a47c6 device product:natrium model:MI_5s_Plus device:natrium

adb shell getprop ro.build.fingerprint Xiaomi/natrium/natrium:6.0.1/MXB48T/V8.0.13.0.MBGCNDI:user/release-keys

have been walked through the settings, couldn't find anything similar anywhere. i saw that option on another Xiaomi device(different model), looks like i have to wait for another update.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/openstf/minitouch/issues/10#issuecomment-264622618, or mute the thread https://github.com/notifications/unsubscribe-auth/AAB-_deFm8HpYfiKygx6TFVu3eAElt1vks5rERXagaJpZM4LCPOc .

sorccu commented 7 years ago

Oops, I meant MIUI 8.1 had that setting. And MIUI 8.0 worked without the setting.

On Sat, 3 Dec 2016 at 16:13 Simo Kinnunen simo@shoqolate.com wrote:

Unfortunately that device is too expensive for me to buy, so I can't try it out. However on a Mi 5 (not 5s plus) MIUI worked without changing anything, and MIUI 5 had that setting.

On Sat, 3 Dec 2016 at 16:10 dkw72n notifications@github.com wrote:

adb devices -l List of devices attached 4a6a47c6 device product:natrium model:MI_5s_Plus device:natrium

adb shell getprop ro.build.fingerprint Xiaomi/natrium/natrium:6.0.1/MXB48T/V8.0.13.0.MBGCNDI:user/release-keys

have been walked through the settings, couldn't find anything similar anywhere. i saw that option on another Xiaomi device(different model), looks like i have to wait for another update.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/openstf/minitouch/issues/10#issuecomment-264622618, or mute the thread https://github.com/notifications/unsubscribe-auth/AAB-_deFm8HpYfiKygx6TFVu3eAElt1vks5rERXagaJpZM4LCPOc .

dkw72n commented 7 years ago

i guess my current version is kind of a transient one. maybe this issue should be closed, it's not a minitouch issue anyway.

dkw72n commented 7 years ago

a recently system update brings the security settings

[ro.bootimage.build.date]: [Fri Feb 10 18:47:43 CST 2017]
[ro.bootimage.build.date.utc]: [1486723663]
[ro.bootimage.build.fingerprint]: [Xiaomi/natrium/natrium:6.0.1/MXB48T/V8.2.2.0.MBGCNDL:user/test-keys]
[ro.build.characteristics]: [nosdcard]
[ro.build.date]: [Fri Feb 10 18:43:49 CST 2017]
[ro.build.date.utc]: [1486723429]
[ro.build.description]: [natrium-user 6.0.1 MXB48T V8.2.2.0.MBGCNDL release-keys]
[ro.build.display.id]: [MXB48T]
[ro.build.fingerprint]: [Xiaomi/natrium/natrium:6.0.1/MXB48T/V8.2.2.0.MBGCNDL:user/release-keys]
[ro.build.flavor]: [natrium-user]
[ro.build.hardware.version]: [V1]
[ro.build.host]: [c3-miui-ota-bd13.bj]

minitouch works now.

sorccu commented 6 years ago

This may help people who may find this issue on Google: https://github.com/openstf/stf/issues/603