-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Just now,I update to android Q on Google pixel,It can't work normally。this is log on stf ../ #1028
Comments
You have to root your device. |
If I rooted my device Can I bring back my device to It's Normal Stage. Please suggest |
Normally you can't |
Despite root the device, any other solutions? Thank you! @jmauffret |
It looks possible to use another approach than the current one. My understanding is that Android Q SElinux policy now prevents the use of /dev/input/eventX files. So the libevdev based minitouch get stuck (unless you have root privileges to change SELinux mode as suggested above). Fortunately, there is another entry point to manage "inputs" at a higher level: the Android InputManager (this is what scrcpy does). I gave this approach a try, and believe this would be the way to go (I am still thinking how to integrate it smoothly). Recording done on a Google factory image without root privileges or anything special. |
Cool!It looks like the same with current one. Thank you and I'll look into this too. BTW, looking forward to your work also~ |
Here are 3 suggested PR to add android 10 support: Hope this helps. |
Yet another PR to make stf interacts gracefully with the STFService Now I guess all of that should do the job |
hello,I deploy the openstf with docker in ubuntu。 then the android 10 phone is showed in the list on the STF,but I can't control the phone.the error logs show like this: |
Hi @sawchen , |
|
|
Hi all,
I still get this in the logs though |
@man4567890 |
@pcrepieux , excellent, so just a git clone from your fork? |
Yes, it provides the updated apk, and points to prebuilt minitouch, minicap node modules. |
Thanks, could you tell me your rethinkdb version, I get this with your fork |
This is likely due to the fact this version enables a new feature that lets you book devices (sorry I forgot to mention). Maybe @denis99999 will be able to provide guidance. |
Yes it does looks that way, if I git clone the standard STF and run npm install on that, I get the same error, so in other words as soon as I upgrade to 3.4.1. oooh man to find these things.... Thanks for all the help so far |
If you don't want to develop on STF but only use it and you are familiar with docker technology, I recommend you to use STF embedded in a docker container, so for that you have just to use our Dockerfiles we provide for x86_64/armhf located at the git repository root I added yesterday ! |
thanks @denis99999 , if I don't succeed today, that will be my next option |
Hi @pcrepieux , @denis99999 , thanks for the help, I got it to work, seems that you cannot run npm install as root, bower does not like that and does not install the needed packages, so if this might help someone, do not use root as the user for stf. One thing though, the logs seems to reference /home/pierre, is that fixable? |
Hi @pcrepieux , @denis99999 , the build is good, been testing for Android 10 on Samsung devices, all good, thanks for the excellent build, just the logs as I mentioned above, One thing though, the logs seems to reference /home/pierre, is that fixable? |
Android 10 support is available on the current HEAD of master and |
stf-local_1 | Each option can be be overwritten with an environment variable by converting the What could be the problem? |
Hi @forum77alive , @koral-- , I recommend you to follow these actions before to generate the container:
@koral, your container is huge (~800M), I think it is possible to optimize its size. To get inspired, you can find here a Dockerfile working fine ! |
Docker images are generated by autobuilds on docker hub. |
In case of autobuilds on docker hub, I suppose there is no problem regarding the first bullet (i.e. building environment). |
I rebuilld image on local computer and get this error again |
@forum77alive thanks for the report I'll investigate that. |
|
Thank you! It's realy running. But I see some issues:
How to fix problem №2 ? |
Regarding 1st issue. @denis99999 do you have any idea how to solve it more gracefully than introducing breaking change in release notes? Regarding 2nd one: I'll try to get some recent Xiaomi and investigate that. For now, without device in hands I guess that adjusting some option(s) in developer/security settings may help, similarly to: #603 |
@forum77alive |
Hi @pcrepiux It's there in Android 10 also with MIUI 11 xiaomi Devices. I have tried your suggestions which you have given to Ethin in minicap#169 but unable to build it properly. Any other suggestion so that I can try for xiaomi devices which will resolve the issue quicker |
@varundtsfi I'll try to investigate a bit further on Android 10. What kind of build issues did you get ? |
I testing on mi 8 Lite(Android 9) - the solution (openstf/minicap#169) did not help |
Hi @pcrepieux and @forum77alive Now I have tried on Xiaomi Note 7 pro Android version 9 and MIUI version 11. Actually the problem is not with Android version it's with MIUI version. I have tested on Xiaomi Note 7 pro MIUI 11 now vector mismatch issue is not occurred but screen is black. |
@koral-- , |
Hello Team! I checked on samsung s10e (Android 10) - its working! |
Hi @forum77alive Is it related with Vector<> have different types issue if yes then vector issue is coming in Xiaomi and LG Device only. Its not coming in another Manufacturer. |
Hi @pcrepieux Have you find something regarding Xiaomi Android 9(MIUI 11) issue? I have tried few things for overcome form the black screen issue but not succeed. |
@Olivia26-2020 |
Just wondering if there has been any progress in getting a Docker repo available which has all the fixes applied to get it working with android 10? |
There is nothing more apart from posts in this topic. |
when i use device and open virtual display - i get this logs: stf-local_1 | 2020-03-04T14:47:19.564Z INF/device:resources:minirev 313 [4d9c3254] Installing "/app/vendor/minirev/arm64-v8a/minirev" as "/data/local/tmp/minirev" It goes on forever. |
|
2019-03-14T05:56:16.139Z FTL/util:lifecycle 10594 [FA6A10319123] Shutting down due to fatal error
2019-03-14T05:56:16.151Z INF/provider 9344 [] Cleaning up device worker "FA6A10319123"
2019-03-14T05:56:16.153Z ERR/provider 9344 [] Device worker "FA6A10319123" died with code 1
2019-03-14T05:56:16.153Z INF/provider 9344 [*] Restarting device worker "FA6A10319123"
2019-03-14T05:56:16.933Z INF/device:support:push 10648 [FA6A10319123] Sending output to "tcp://127.0.0.1:7116"
2019-03-14T05:56:16.935Z INF/device 10648 [FA6A10319123] Preparing device
2019-03-14T05:56:17.171Z INF/device:support:sub 10648 [FA6A10319123] Receiving input from "tcp://127.0.0.1:7114"
2019-03-14T05:56:17.172Z INF/device:support:sub 10648 [FA6A10319123] Subscribing to permanent channel "*ALL"
2019-03-14T05:56:17.253Z INF/device:support:properties 10648 [FA6A10319123] Loading properties
2019-03-14T05:56:17.303Z INF/device:support:sdk 10648 [FA6A10319123] Supports SDK 29 (base 28, preview delta +1)
2019-03-14T05:56:17.304Z INF/device:support:abi 10648 [FA6A10319123] Supports ABIs arm64-v8a, armeabi-v7a, armeabi
2019-03-14T05:56:17.635Z INF/device:resources:minicap 10648 [FA6A10319123] Installing "/home/qihoo/work/stfSource/stf/node_modules/minicap-prebuilt/prebuilt/arm64-v8a/bin/minicap" as "/data/local/tmp/minicap"
2019-03-14T05:56:17.637Z INF/device:resources:minicap 10648 [FA6A10319123] Installing "/home/qihoo/work/stfSource/stf/node_modules/minicap-prebuilt/prebuilt/arm64-v8a/lib/android-28/minicap.so" as "/data/local/tmp/minicap.so"
2019-03-14T05:56:17.985Z INF/device:resources:service 10648 [FA6A10319123] Checking whether we need to install STFService
2019-03-14T05:56:18.143Z INF/device:resources:service 10648 [FA6A10319123] Running version check
2019-03-14T05:56:18.697Z INF/device:resources:service 10648 [FA6A10319123] STFService up to date
2019-03-14T05:56:18.699Z INF/device:plugins:service 10648 [FA6A10319123] Launching agent
2019-03-14T05:56:19.468Z INF/device:plugins:service 10648 [FA6A10319123] Launching service
2019-03-14T05:56:19.495Z INF/device:plugins:service 10648 [FA6A10319123] Agent says: "Listening on @stfagent"
2019-03-14T05:56:19.496Z INF/device:plugins:service 10648 [FA6A10319123] Agent says: "InputClient started"
2019-03-14T05:56:19.556Z INF/device:plugins:display 10648 [FA6A10319123] Reading display info
2019-03-14T05:56:19.607Z INF/device:plugins:phone 10648 [FA6A10319123] Fetching phone info
2019-03-14T05:56:19.642Z INF/device:plugins:identity 10648 [FA6A10319123] Solving identity
2019-03-14T05:56:19.645Z INF/device:plugins:solo 10648 [FA6A10319123] Subscribing to permanent channel "8X3e4tdnGCMGb5IYfNLA5cJajig="
2019-03-14T05:56:19.649Z INF/device:plugins:screen:stream 10648 [FA6A10319123] Starting WebSocket server on port 7464
2019-03-14T05:56:19.995Z INF/device:resources:minitouch 10648 [FA6A10319123] Installing "/home/qihoo/work/stfSource/stf/node_modules/minitouch-prebuilt/prebuilt/arm64-v8a/bin/minitouch" as "/data/local/tmp/minitouch"
2019-03-14T05:56:20.063Z WRN/device:plugins:data 10648 [FA6A10319123] Unable to find device data { serial: 'FA6A10319123',
platform: 'Android',
manufacturer: 'GOOGLE',
operator: null,
model: 'Pixel',
version: 'Q',
abi: 'arm64-v8a',
sdk: '28',
product: 'sailfish',
cpuPlatform: 'msm8996',
openGLESVersion: '3.2',
display:
{ id: 0,
width: 1080,
height: 1920,
xdpi: 442.45098876953125,
ydpi: 443.3450012207031,
fps: 60.000003814697266,
density: 2.625,
rotation: 0,
secure: true,
size: 4.971247790102727,
url: 'ws://10.16.42.17:7464' },
phone: { network: 'UNKNOWN' } }
2019-03-14T05:56:20.075Z INF/device:plugins:touch 10648 [FA6A10319123] Touch origin is top left
2019-03-14T05:56:20.077Z INF/device:plugins:touch 10648 [FA6A10319123] Requesting touch consumer to start
2019-03-14T05:56:20.078Z INF/device:plugins:touch 10648 [FA6A10319123] Launching touch service
2019-03-14T05:56:20.087Z INF/device:plugins:touch 10648 [FA6A10319123] Connecting to minitouch service
2019-03-14T05:56:20.109Z INF/device:plugins:touch 10648 [FA6A10319123] minitouch says: "open: Permission denied"
2019-03-14T05:56:20.110Z INF/device:plugins:touch 10648 [FA6A10319123] minitouch says: "Unable to open device /dev/input/event7 for inspectionopen: Permission denied"
2019-03-14T05:56:20.111Z INF/device:plugins:touch 10648 [FA6A10319123] minitouch says: "Unable to open device /dev/input/event6 for inspectionopen: Permission denied"
2019-03-14T05:56:20.112Z INF/device:plugins:touch 10648 [FA6A10319123] minitouch says: "Unable to open device /dev/input/event5 for inspectionopen: Permission denied"
2019-03-14T05:56:20.113Z INF/device:plugins:touch 10648 [FA6A10319123] minitouch says: "Unable to open device /dev/input/event4 for inspectionopen: Permission denied"
2019-03-14T05:56:20.113Z INF/device:plugins:touch 10648 [FA6A10319123] minitouch says: "Unable to open device /dev/input/event1 for inspectionopen: Permission denied"
2019-03-14T05:56:20.114Z INF/device:plugins:touch 10648 [FA6A10319123] minitouch says: "Unable to open device /dev/input/mice for inspectionopen: Permission denied"
2019-03-14T05:56:20.114Z INF/device:plugins:touch 10648 [FA6A10319123] minitouch says: "Unable to open device /dev/input/event3 for inspectionopen: Permission denied"
2019-03-14T05:56:20.115Z INF/device:plugins:touch 10648 [FA6A10319123] minitouch says: "Unable to open device /dev/input/event0 for inspectionopen: Permission denied"
2019-03-14T05:56:20.118Z INF/device:plugins:touch 10648 [FA6A10319123] minitouch says: "Unable to open device /dev/input/event2 for inspectionUnable to find a suitable touch device"
2019-03-14T05:56:20.120Z WRN/device:plugins:touch 10648 [FA6A10319123] Shell keeping minitouch running ended unexpectedly
2019-03-14T05:56:20.121Z INF/device:plugins:touch 10648 [FA6A10319123] Disconnecting from minitouch service
2019-03-14T05:56:20.123Z INF/device:plugins:touch 10648 [FA6A10319123] Stopping minitouch service
2019-03-14T05:56:20.125Z INF/device:plugins:touch 10648 [FA6A10319123] Launching touch service
2019-03-14T05:56:20.133Z INF/device:plugins:touch 10648 [FA6A10319123] Connecting to minitouch service
2019-03-14T05:56:20.146Z INF/device:plugins:touch 10648 [FA6A10319123] minitouch says: "open: Permission denied"
2019-03-14T05:56:20.147Z INF/device:plugins:touch 10648 [FA6A10319123] minitouch says: "Unable to open device /dev/input/event7 for inspectionopen: Permission denied"
2019-03-14T05:56:20.148Z INF/device:plugins:touch 10648 [FA6A10319123] minitouch says: "Unable to open device /dev/input/event6 for inspectionopen: Permission denied"
2019-03-14T05:56:20.149Z INF/device:plugins:touch 10648 [FA6A10319123] minitouch says: "Unable to open device /dev/input/event5 for inspectionopen: Permission denied"
2019-03-14T05:56:20.149Z INF/device:plugins:touch 10648 [FA6A10319123] minitouch says: "Unable to open device /dev/input/event4 for inspectionopen: Permission denied"
2019-03-14T05:56:20.150Z INF/device:plugins:touch 10648 [FA6A10319123] minitouch says: "Unable to open device /dev/input/event1 for inspectionopen: Permission denied"
2019-03-14T05:56:20.151Z INF/device:plugins:touch 10648 [FA6A10319123] minitouch says: "Unable to open device /dev/input/mice for inspectionopen: Permission denied"
2019-03-14T05:56:20.151Z INF/device:plugins:touch 10648 [FA6A10319123] minitouch says: "Unable to open device /dev/input/event3 for inspectionopen: Permission denied"
2019-03-14T05:56:20.152Z INF/device:plugins:touch 10648 [FA6A10319123] minitouch says: "Unable to open device /dev/input/event0 for inspectionopen: Permission denied"
2019-03-14T05:56:20.152Z INF/device:plugins:touch 10648 [FA6A10319123] minitouch says: "Unable to open device /dev/input/event2 for inspectionUnable to find a suitable touch device"
2019-03-14T05:56:20.153Z WRN/device:plugins:touch 10648 [FA6A10319123] Shell keeping minitouch running ended unexpectedly
2019-03-14T05:56:20.155Z INF/device:plugins:touch 10648 [FA6A10319123] Disconnecting from minitouch service
2019-03-14T05:56:20.156Z INF/device:plugins:touch 10648 [FA6A10319123] Stopping minitouch service
2019-03-14T05:56:20.157Z INF/device:plugins:touch 10648 [FA6A10319123] Launching touch service
2019-03-14T05:56:20.167Z INF/device:plugins:touch 10648 [FA6A10319123] Connecting to minitouch service
2019-03-14T05:56:20.185Z INF/device:plugins:touch 10648 [FA6A10319123] minitouch says: "open: Permission denied"
2019-03-14T05:56:20.186Z INF/device:plugins:touch 10648 [FA6A10319123] minitouch says: "Unable to open device /dev/input/event7 for inspectionopen: Permission denied"
2019-03-14T05:56:20.188Z INF/device:plugins:touch 10648 [FA6A10319123] minitouch says: "Unable to open device /dev/input/event6 for inspectionopen: Permission denied"
2019-03-14T05:56:20.189Z INF/device:plugins:touch 10648 [FA6A10319123] minitouch says: "Unable to open device /dev/input/event5 for inspectionopen: Permission denied"
2019-03-14T05:56:20.190Z INF/device:plugins:touch 10648 [FA6A10319123] minitouch says: "Unable to open device /dev/input/event4 for inspectionopen: Permission denied"
2019-03-14T05:56:20.190Z INF/device:plugins:touch 10648 [FA6A10319123] minitouch says: "Unable to open device /dev/input/event1 for inspectionopen: Permission denied"
2019-03-14T05:56:20.201Z INF/device:plugins:touch 10648 [FA6A10319123] minitouch says: "Unable to open device /dev/input/mice for inspectionopen: Permission denied"
2019-03-14T05:56:20.201Z INF/device:plugins:touch 10648 [FA6A10319123] minitouch says: "Unable to open device /dev/input/event3 for inspectionopen: Permission denied"
2019-03-14T05:56:20.202Z INF/device:plugins:touch 10648 [FA6A10319123] minitouch says: "Unable to open device /dev/input/event0 for inspectionopen: Permission denied"
2019-03-14T05:56:20.202Z INF/device:plugins:touch 10648 [FA6A10319123] minitouch says: "Unable to open device /dev/input/event2 for inspectionUnable to find a suitable touch device"
2019-03-14T05:56:20.203Z WRN/device:plugins:touch 10648 [FA6A10319123] Shell keeping minitouch running ended unexpectedly
2019-03-14T05:56:20.207Z INF/device:plugins:touch 10648 [FA6A10319123] Disconnecting from minitouch service
2019-03-14T05:56:20.209Z INF/device:plugins:touch 10648 [FA6A10319123] Stopping minitouch service
2019-03-14T05:56:20.210Z INF/device:plugins:touch 10648 [FA6A10319123] Launching touch service
2019-03-14T05:56:20.215Z INF/device:plugins:touch 10648 [FA6A10319123] Connecting to minitouch service
2019-03-14T05:56:20.236Z INF/device:plugins:touch 10648 [FA6A10319123] minitouch says: "open: Permission denied"
2019-03-14T05:56:20.237Z INF/device:plugins:touch 10648 [FA6A10319123] minitouch says: "Unable to open device /dev/input/event7 for inspectionopen: Permission denied"
2019-03-14T05:56:20.237Z INF/device:plugins:touch 10648 [FA6A10319123] minitouch says: "Unable to open device /dev/input/event6 for inspectionopen: Permission denied"
2019-03-14T05:56:20.237Z INF/device:plugins:touch 10648 [FA6A10319123] minitouch says: "Unable to open device /dev/input/event5 for inspectionopen: Permission denied"
2019-03-14T05:56:20.237Z INF/device:plugins:touch 10648 [FA6A10319123] minitouch says: "Unable to open device /dev/input/event4 for inspectionopen: Permission denied"
2019-03-14T05:56:20.237Z INF/device:plugins:touch 10648 [FA6A10319123] minitouch says: "Unable to open device /dev/input/event1 for inspectionopen: Permission denied"
2019-03-14T05:56:20.237Z INF/device:plugins:touch 10648 [FA6A10319123] minitouch says: "Unable to open device /dev/input/mice for inspectionopen: Permission denied"
2019-03-14T05:56:20.238Z INF/device:plugins:touch 10648 [FA6A10319123] minitouch says: "Unable to open device /dev/input/event3 for inspectionopen: Permission denied"
2019-03-14T05:56:20.238Z INF/device:plugins:touch 10648 [FA6A10319123] minitouch says: "Unable to open device /dev/input/event0 for inspectionopen: Permission denied"
2019-03-14T05:56:20.238Z INF/device:plugins:touch 10648 [FA6A10319123] minitouch says: "Unable to open device /dev/input/event2 for inspectionUnable to find a suitable touch device"
2019-03-14T05:56:20.238Z WRN/device:plugins:touch 10648 [FA6A10319123] Shell keeping minitouch running ended unexpectedly
2019-03-14T05:56:20.239Z INF/device:plugins:touch 10648 [FA6A10319123] Disconnecting from minitouch service
2019-03-14T05:56:20.240Z WRN/device:plugins:touch 10648 [FA6A10319123] Will not apply desired state due to too many failures
2019-03-14T05:56:20.241Z INF/device:plugins:touch 10648 [FA6A10319123] Stopping minitouch service
2019-03-14T05:56:20.242Z FTL/device 10648 [FA6A10319123] Setup had an error Error: Failed more than 3 times in 10000ms
at TouchConsumer._failLimitExceeded (/home/qihoo/work/stfSource/stf/lib/units/device/plugins/touch/index.js:230:26)
at FailCounter.emit (/home/qihoo/work/stfSource/stf/node_modules/eventemitter3/index.js:117:35)
at FailCounter.inc (/home/qihoo/work/stfSource/stf/lib/util/failcounter.js:29:10)
at TouchConsumer._outputEnded (/home/qihoo/work/stfSource/stf/lib/units/device/plugins/touch/index.js:223:24)
at RiskyStream.emit (/home/qihoo/work/stfSource/stf/node_modules/eventemitter3/index.js:115:35)
at RiskyStream. (/home/qihoo/work/stfSource/stf/lib/util/riskystream.js:14:12)
at emitNone (events.js:91:20)
at Socket.emit (events.js:185:7)
at endReadableNT (_stream_readable.js:974:12)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
From previous event:
at startConsumer (/home/qihoo/work/stfSource/stf/lib/units/device/plugins/touch/index.js:511:14)
at /home/qihoo/work/stfSource/stf/lib/units/device/plugins/touch/index.js:526:12
at SerialSyrup.ParallelSyrup.invoke (/home/qihoo/work/stfSource/stf/node_modules/stf-syrup/lib/parallel.js:54:24)
at /home/qihoo/work/stfSource/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)
The text was updated successfully, but these errors were encountered: