New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attempt to forward events to STF agent when libevdev is unable to manage the input device. #50
Conversation
manage the input device. With Android 10, libevdev cannot access /dev/input devices. As a workaround, minitouch can connect to a server process embedded in STFService.apk that will use the Android InputManager to inject events.
See also related PR for STFService.apk: openstf/STFService.apk#38 |
@pcrepieux Could you explain what steps are needed to make this work? I assume I would have to install and run STFService.apk before connecting to the device right? I am running minitouch without openstf... |
@stoefln |
thanks @pcrepieux . Shouldn't then STFService.apk be part of this PR? I mean up to this point, minitouch "just worked", but now it seems there are dependencies introduced. At least I think I would maybe copy over some of the documentation you referenced above... |
Can someone walk me through on how to add this to add support for Android 10? |
@1tiktak I tried already and it works. I followed exactly the steps outlined here: BTW. I am not even sure if you need the service or just the agent... |
@1tiktak as it's now merged into master, you can just pull the repo and run stf and Android 10 support should work oob |
Hi @pcrepieux , would this fix my problem on LG devices? I have the latest build of your repo, it seems to work for 64 bit devices but not 32 bit |
@man4567890 |
Hi @pcrepieux , do you mean I should git clone the https://github.com/Orange-OpenSource/stf.git repo again and build? Are the minitouch changes in the repo (https://github.com/Orange-OpenSource/stf.git)? |
Hi @pcrepieux , I did the git clone from https://github.com/Orange-OpenSource/stf.git and npm install, but still getting this errror... `2020-03-25T09:01:36.028Z INF/device:plugins:identity 30751 [LMXXX] Solving identity 2020-03-25T09:01:36.031Z INF/device:plugins:solo 30751 [LMXXX] Subscribing to permanent channel "LbG8mL2R19k0nvP/7sYg/tX3OnE=" 2020-03-25T09:01:36.032Z INF/device:plugins:screen:stream 30751 [LMXXX] Starting WebSocket server on port 7476 2020-03-25T09:01:36.476Z INF/device:resources:minitouch 30751 [LMXXX] Installing "/usr/lib/node_modules/stf/node_modules/minitouch-prebuilt-beta/prebuilt/armeabi-v7a/bin/minitouch" as "/data/local/tmp/minitouch" 2020-03-25T09:01:36.667Z WRN/device:plugins:data 30751 [LMXXX] Unable to find device data { serial: 'LMXXX', Any other suggestions please? |
@man4567890 |
With Android 10, libevdev cannot access /dev/input devices.
As a workaround, minitouch can connect to a server process
embedded in STFService.apk that will use the Android
InputManager to inject events.