
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.
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)
You have to root your device.
Then use the command "adb shell su setenforce 0" to authorize connection to drivers.
You have to root your device.
Then use the command "adb shell su setenforce 0" to authorize connection to drivers.
@jmauffret
What would be the negative impacts on my Pixel Device If I would follow your suggestion.
If I rooted my device Can I bring back my device to It's Normal Stage.
Please suggest
You have to root your device.
Then use the command "adb shell su setenforce 0" to authorize connection to drivers.
@jmauffret
What would be the negative impacts on my Pixel Device If I would follow your suggestion.If I rooted my device Can I bring back my device to It's Normal Stage.
Please suggest
Normally you can't
You have to root your device.
Then use the command "adb shell su setenforce 0" to authorize connection to drivers.
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:
https://github.com/openstf/minitouch/pull/50
https://github.com/openstf/STFService.apk/pull/38
https://github.com/openstf/minicap/pull/190
Hope this helps.
Yet another PR to make stf interacts gracefully with the STFService
https://github.com/openstf/stf/pull/1127
Now I guess all of that should do the job
Here are 3 suggested PR to add android 10 support:
openstf/minitouch#50
openstf/STFService.apk#38
openstf/minicap#190Hope this helps.
hello,I deploy the openstf with docker in ubuntu。
follow your project
1、Compile the new stfservice.apk(2.4.1),and Install to my android 10 phone(xiaomi 8).
2、compile the minitoch from https://github.com/Orange-OpenSource/minitouch.git ,then copy the result file to docker container
3、comlile the minicap from https://github.com/Orange-OpenSource/minicap.git ,then copy the result file to docker cntainer
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 ,
The first part of the logs looks OK. As /dev/input/eventX are not accessible, minitouch connects to the service embedded in the apk to inject touch events.
The issue apparently comes from minicap : "Vector<> have different types". I have no clue as to why right now...
Here are 3 suggested PR to add android 10 support:
openstf/minitouch#50
openstf/STFService.apk#38
openstf/minicap#190Hope this helps.
can not support x86 ?
@thinkcy
The npm package here now includes the x86 binaries if you want to give it a try.
@thinkcy
The npm package here now includes the x86 binaries if you want to give it a try.
Here are 3 suggested PR to add android 10 support:
openstf/minitouch#50
openstf/STFService.apk#38
openstf/minicap#190Hope this helps.
I use it on Redmi K30 (android 10) It can not work normal ,This is log :
Hi all,
I'm terribly confused on what to do to get Android 10 to work, I've replaced the minicap binaries with the prebuild one, minicap-prebuilt-2.3.1.tgz, see below
[root@168 arm64-v8a]# pwd
/usr/lib/node_modules/stf/node_modules/minicap-prebuilt/prebuilt/arm64-v8a
[root@digitatanetworks168 arm64-v8a]# ls -tr
old_lib old_bin bin lib
[root@168 arm64-v8a]# cd ..
[root@168 prebuilt]# ls -ltr
total 0
drwxr-xr-x. 6 root root 58 Jan 15 07:29 arm64-v8a
drwxr-xr-x. 4 root root 28 Jan 15 07:29 armeabi-v7a
drwxr-xr-x. 4 root root 28 Jan 15 07:29 x86
drwxr-xr-x. 6 root root 58 Jan 15 07:29 x86_64
[root@168 prebuilt]# pwd
/usr/lib/node_modules/stf/node_modules/minicap-prebuilt/prebuilt
[root@168 prebuilt]# ls -ltr arm64-v8a/lib
total 0
drwxr-xr-x 2 root root 24 Jan 15 07:29 android-21
drwxr-xr-x 2 root root 24 Jan 15 07:29 android-23
drwxr-xr-x 2 root root 24 Jan 15 07:29 android-22
drwxr-xr-x 2 root root 24 Jan 15 07:29 android-26
drwxr-xr-x 2 root root 24 Jan 15 07:29 android-25
drwxr-xr-x 2 root root 24 Jan 15 07:29 android-24
drwxr-xr-x 2 root root 24 Jan 15 07:29 android-28
drwxr-xr-x 2 root root 24 Jan 15 07:29 android-27
drwxr-xr-x 2 root root 24 Jan 15 07:29 android-29
[root@168 prebuilt]#
I still get this in the logs though
2020-01-15T06:53:12.861Z INF/device:resources:minicap 10097 [RF8M30L4WJV] Installing "/usr/lib/node_modules/stf/node_modules/minicap-prebuilt/prebuilt/arm64-v8a/bin/minicap" as "/data/local/tmp/minicap"
2020-01-15T06:53:12.861Z INF/device:resources:minicap 10097 [RF8M30L4WJV] Installing "/usr/lib/node_modules/stf/node_modules/minicap-prebuilt/prebuilt/arm64-v8a/lib/android-29/minicap.so" as "/data/local/tmp/minicap.so"
2020-01-15T06:53:13.013Z INF/device:resources:service 10097 [RF8M30L4WJV] Checking whether we need to install STFService
2020-01-15T06:53:13.063Z INF/device:resources:service 10097 [RF8M30L4WJV] Running version check
2020-01-15T06:53:13.361Z INF/device:resources:service 10097 [RF8M30L4WJV] STFService up to date
2020-01-15T06:53:13.365Z INF/device:plugins:service 10097 [RF8M30L4WJV] Launching agent
2020-01-15T06:53:13.824Z INF/device:plugins:service 10097 [RF8M30L4WJV] Agent says: "Listening on @stfagent"
2020-01-15T06:53:13.845Z INF/device:plugins:service 10097 [RF8M30L4WJV] Launching service
2020-01-15T06:53:13.847Z INF/device:plugins:service 10097 [RF8M30L4WJV] Agent says: "InputClient started"
2020-01-15T06:53:13.953Z INF/device:plugins:display 10097 [RF8M30L4WJV] Reading display info
2020-01-15T06:53:14.009Z INF/device:plugins:phone 10097 [RF8M30L4WJV] Fetching phone info
2020-01-15T06:53:14.054Z INF/device:plugins:identity 10097 [RF8M30L4WJV] Solving identity
2020-01-15T06:53:14.056Z INF/device:plugins:solo 10097 [RF8M30L4WJV] Subscribing to permanent channel "UwxFpLUNAEOPDYr1nJ/Qh6Ojsng="
2020-01-15T06:53:14.060Z INF/device:plugins:screen:stream 10097 [RF8M30L4WJV] Starting WebSocket server on port 7584
2020-01-15T06:53:14.246Z INF/device:resources:minitouch 10097 [RF8M30L4WJV] Installing "/usr/lib/node_modules/stf/node_modules/minitouch-prebuilt/prebuilt/arm64-v8a/bin/minitouch" as "/data/local/tmp/minitouch"
2020-01-15T06:53:14.321Z WRN/device:plugins:data 10097 [RF8M30L4WJV] Unable to find device data { serial: 'RF8M30L4WJV',
platform: 'Android',
manufacturer: 'SAMSUNG',
operator: 'Voda',
model: 'SM-G970F',
version: '10',
abi: 'arm64-v8a',
sdk: '29',
product: 'beyond0ltexx',
cpuPlatform: 'universal9820',
openGLESVersion: '3.2',
display:
{ id: 0,
width: 1080,
height: 2280,
xdpi: 442.45098876953125,
ydpi: 438.72698974609375,
fps: 60.000003814697266,
density: 2.625,
rotation: 0,
secure: true,
size: 5.741560552692248,
url: 'ws://172.28.200.168:7584' },
phone: { network: 'LTE' } }
2020-01-15T06:53:14.332Z INF/device:plugins:touch 10097 [RF8M30L4WJV] Touch origin is top left
2020-01-15T06:53:14.333Z INF/device:plugins:touch 10097 [RF8M30L4WJV] Requesting touch consumer to start
2020-01-15T06:53:14.335Z INF/device:plugins:touch 10097 [RF8M30L4WJV] Launching touch service
2020-01-15T06:53:14.348Z INF/device:plugins:touch 10097 [RF8M30L4WJV] Connecting to minitouch service
2020-01-15T06:53:14.394Z INF/device:plugins:touch 10097 [RF8M30L4WJV] minitouch says: "open: Permission denied"
2020-01-15T06:53:14.395Z INF/device:plugins:touch 10097 [RF8M30L4WJV] minitouch says: "Unable to open device /dev/input/event6 for inspectionopen: Permission denied"
2020-01-15T06:53:14.396Z INF/device:plugins:touch 10097 [RF8M30L4WJV] minitouch says: "Unable to open device /dev/input/event4 for inspectionopen: Permission denied"
2020-01-15T06:53:14.397Z INF/device:plugins:touch 10097 [RF8M30L4WJV] minitouch says: "Unable to open device /dev/input/event9 for inspectionopen: Permission denied"
2020-01-15T06:53:14.398Z INF/device:plugins:touch 10097 [RF8M30L4WJV] minitouch says: "Unable to open device /dev/input/event2 for inspectionopen: Permission denied"
2020-01-15T06:53:14.399Z INF/device:plugins:touch 10097 [RF8M30L4WJV] minitouch says: "Unable to open device /dev/input/event5 for inspectionopen: Permission denied"
2020-01-15T06:53:14.400Z INF/device:plugins:touch 10097 [RF8M30L4WJV] minitouch says: "Unable to open device /dev/input/event7 for inspectionopen: Permission denied"
2020-01-15T06:53:14.402Z INF/device:plugins:touch 10097 [RF8M30L4WJV] minitouch says: "Unable to open device /dev/input/event0 for inspectionopen: Permission denied"
2020-01-15T06:53:14.403Z INF/device:plugins:touch 10097 [RF8M30L4WJV] minitouch says: "Unable to open device /dev/input/event3 for inspectionopen: Permission denied"
2020-01-15T06:53:14.404Z INF/device:plugins:touch 10097 [RF8M30L4WJV] minitouch says: "Unable to open device /dev/input/event8 for inspectionopen: Permission denied"
2020-01-15T06:53:14.405Z INF/device:plugins:touch 10097 [RF8M30L4WJV] minitouch says: "Unable to open device /dev/input/event1 for inspectionUnable to find a suitable touch device"
2020-01-15T06:53:14.410Z WRN/device:plugins:touch 10097 [RF8M30L4WJV] Shell keeping minitouch running ended unexpectedly
2020-01-15T06:53:14.416Z INF/device:plugins:touch 10097 [RF8M30L4WJV] Disconnecting from minitouch service
2020-01-15T06:53:14.419Z INF/device:plugins:touch 10097 [RF8M30L4WJV] Stopping minitouch service
2020-01-15T06:53:14.421Z INF/device:plugins:touch 10097 [RF8M30L4WJV] Launching touch service
2020-01-15T06:53:14.472Z INF/device:plugins:touch 10097 [RF8M30L4WJV] Connecting to minitouch service
2020-01-15T06:53:14.510Z INF/device:plugins:touch 10097 [RF8M30L4WJV] minitouch says: "open: Permission denied"
2020-01-15T06:53:14.511Z INF/device:plugins:touch 10097 [RF8M30L4WJV] minitouch says: "Unable to open device /dev/input/event6 for inspectionopen: Permission denied"
There are so many posts leading from this one (very confusing), is there something else I need for Android 10 support please?
Running stf 3.4.1 on Centos 7
@man4567890
I agree it can a bit confusing as it required 4 PRs in 4 different repos (as mentioned above here and here). Looks like most of them are "approved" so, hopefully they'll get merged at some point. Meanwhile, if it can help you, you'll find it integrated in our fork (and the related ones) from where those PRs are originating.
@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
ReqlDriverCompileError: Cannot wrap undefined with r.expr().
at ReqlDriverCompileError.ReqlError [as constructor] (/usr/lib/node_modules/stf/node_modules/rethinkdb/errors.js:23:13)
at ReqlDriverCompileError.ReqlCompileError [as constructor] (/usr/lib/node_modules/stf/node_modules/rethinkdb/errors.js:35:51)
at new ReqlDriverCompileError (/usr/lib/node_modules/stf/node_modules/rethinkdb/errors.js:46:57)
at Function.
at Function.expr (/usr/lib/node_modules/stf/node_modules/rethinkdb/util.js:43:16)
at /usr/lib/node_modules/stf/lib/db/api.js:1218:14
at new Func (/usr/lib/node_modules/stf/node_modules/rethinkdb/ast.js:3644:17)
at Function.
at Function.expr (/usr/lib/node_modules/stf/node_modules/rethinkdb/util.js:43:16)
at funcWrap (/usr/lib/node_modules/stf/node_modules/rethinkdb/ast.js:34:19)
at Function.
at Function.filter (/usr/lib/node_modules/stf/node_modules/rethinkdb/util.js:64:16)
at dbapi.loadDevices (/usr/lib/node_modules/stf/lib/db/api.js:1217:36)
at getGenericDevices (/usr/lib/node_modules/stf/lib/units/api/controllers/devices.js:31:3)
at getDevices (/usr/lib/node_modules/stf/lib/units/api/controllers/devices.js:213:7)
at swagger_router (/usr/lib/node_modules/stf/node_modules/swagger-node-runner/fittings/swagger_router.js:104:13)
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.
@pcrepieux , thanks so much, any way that I disable it please?
Hi @man4567890 ,
No way to disable it on master branch, this new feature called "Group feature" required to rebuild the rethink database, so if you have an existing one, you have to erase it first, you can find documentation about the new feature at this link https://github.com/Orange-OpenSource/stf/blob/master/doc/GroupFeature-1.0-STF-OrangeSA.pdf, the recommended version of rethinkdb is 2.3.6+.
Hi @denis99999 , thanks so much, I'll be trying it out today
@denis99999 @pcrepieux
I tried the build, these were my steps
git clone https://github.com/Orange-OpenSource/stf.git, then cd into the stf directory and npm install, deleted the rethinkdb and restarted, but now when I start stf, I get the following
` [184] ./~/lodash/lodash.js 541 kB {1} {3} {5} [built]
[185] (webpack)/buildin/module.js 251 bytes {1} {3} {5} [built]
[271] ./res/app/components/stf/util/common/index.js 276 bytes {1} {3} {5} [built]
[272] ./res/app/components/stf/util/common/common-service.js 6.21 kB {1} {3} {5} [built]
[556] ./res/auth/mock/scripts/signin/index.js 476 bytes {5} [built]
[557] ./res/auth/mock/scripts/signin/signin.css 950 bytes {5} [built]
[558] ./~/css-loader!./res/auth/mock/scripts/signin/signin.css 1.71 kB {5} [built]
[559] ./res/auth/mock/scripts/signin/signin.pug 2.39 kB {5} [built]
[560] ./res/auth/mock/scripts/signin/signin-controller.js 1.23 kB {5} [built]
chunk {6} entry/commons.entry.js (entry/commons.entry.js) 0 bytes [rendered]
ERROR in ./res/app/app.js
Module not found: Error: Cannot resolve module 'angular' in /usr/lib/node_modules/stf/res/app
@ ./res/app/app.js 6:2-20
ERROR in ./res/auth/ldap/scripts/entry.js
Module not found: Error: Cannot resolve module 'angular' in /usr/lib/node_modules/stf/res/auth/ldap/scripts
@ ./res/auth/ldap/scripts/entry.js 4:2-20
ERROR in ./res/auth/mock/scripts/entry.js
Module not found: Error: Cannot resolve module 'angular' in /usr/lib/node_modules/stf/res/auth/mock/scripts
@ ./res/auth/mock/scripts/entry.js 4:2-20
ERROR in ./res/app/app.js
Module not found: Error: Cannot resolve module 'angular-route' in /usr/lib/node_modules/stf/res/app
@ ./res/app/app.js 7:2-26
ERROR in ./res/auth/ldap/scripts/entry.js
Module not found: Error: Cannot resolve module 'angular-route' in /usr/lib/node_modules/stf/res/auth/ldap/scripts
@ ./res/auth/ldap/scripts/entry.js 5:2-26
ERROR in ./res/auth/mock/scripts/entry.js
Module not found: Error: Cannot resolve module 'angular-route' in /usr/lib/node_modules/stf/res/auth/mock/scripts
@ ./res/auth/mock/scripts/entry.js 5:2-26
ERROR in ./res/app/app.js
Module not found: Error: Cannot resolve module 'angular-touch' in /usr/lib/node_modules/stf/res/app
@ ./res/app/app.js 8:2-26
ERROR in ./res/auth/ldap/scripts/entry.js
Module not found: Error: Cannot resolve module 'angular-touch' in /usr/lib/node_modules/stf/res/auth/ldap/scripts
@ ./res/auth/ldap/scripts/entry.js 6:2-26
ERROR in ./res/auth/mock/scripts/entry.js
Module not found: Error: Cannot resolve module 'angular-touch' in /usr/lib/node_modules/stf/res/auth/mock/scripts
@ ./res/auth/mock/scripts/entry.js 6:2-26
ERROR in ./res/app/menu/index.js
Module not found: Error: Cannot resolve module 'angular-cookies' in /usr/lib/node_modules/stf/res/app/menu
@ ./res/app/menu/index.js 6:0-26
ERROR in ./res/web_modules/gettext/index.js
Module not found: Error: Cannot resolve module 'angular-gettext' in /usr/lib/node_modules/stf/res/web_modules/gettext
@ ./res/web_modules/gettext/index.js 1:0-26
ERROR in ./res/web_modules/angular-hotkeys/index.js
Module not found: Error: Cannot resolve module 'angular-hotkeys/build/hotkeys.css' in /usr/lib/node_modules/stf/res/web_modules/angular-hotkeys
@ ./res/web_modules/angular-hotkeys/index.js 1:0-44
ERROR in ./res/web_modules/angular-hotkeys/index.js
Module not found: Error: Cannot resolve module 'angular-hotkeys/build/hotkeys.js' in /usr/lib/node_modules/stf/res/web_modules/angular-hotkeys
@ ./res/web_modules/angular-hotkeys/index.js 3:0-43
ERROR in ./res/web_modules/nine-bootstrap/index.js
Module not found: Error: Cannot resolve module 'bootstrap/dist/css/bootstrap.css' in /usr/lib/node_modules/stf/res/web_modules/nine-bootstrap
@ ./res/web_modules/nine-bootstrap/index.js 1:0-43
ERROR in ./res/web_modules/nine-bootstrap/index.js
Module not found: Error: Cannot resolve module 'components-font-awesome/css/font-awesome.css' in /usr/lib/node_modules/stf/res/web_modules/nine-bootstrap
@ ./res/web_modules/nine-bootstrap/index.js 5:0-55
ERROR in ./res/web_modules/nine-bootstrap/index.js
Module not found: Error: Cannot resolve module 'font-lato-2-subset' in /usr/lib/node_modules/stf/res/web_modules/nine-bootstrap
@ ./res/web_modules/nine-bootstrap/index.js 7:0-29
ERROR in ./res/web_modules/ui-bootstrap/index.js
Module not found: Error: Cannot resolve module 'angular-bootstrap/ui-bootstrap-tpls' in /usr/lib/node_modules/stf/res/web_modules/ui-bootstrap
@ ./res/web_modules/ui-bootstrap/index.js 1:0-53
ERROR in ./res/web_modules/angular-borderlayout/index.js
Module not found: Error: Cannot resolve module 'angular-borderlayout/src/borderLayout.js' in /usr/lib/node_modules/stf/res/web_modules/angular-borderlayout
@ ./res/web_modules/angular-borderlayout/index.js 1:0-51
ERROR in ./res/web_modules/angular-borderlayout/index.js
Module not found: Error: Cannot resolve module 'angular-borderlayout/src/borderLayout.css' in /usr/lib/node_modules/stf/res/web_modules/angular-borderlayout
@ ./res/web_modules/angular-borderlayout/index.js 2:0-52
ERROR in ./res/web_modules/angular-xeditable/index.js
Module not found: Error: Cannot resolve module 'angular-xeditable/dist/js/xeditable.js' in /usr/lib/node_modules/stf/res/web_modules/angular-xeditable
@ ./res/web_modules/angular-xeditable/index.js 1:0-49
ERROR in ./res/web_modules/angular-xeditable/index.js
Module not found: Error: Cannot resolve module 'angular-xeditable/dist/css/xeditable.css' in /usr/lib/node_modules/stf/res/web_modules/angular-xeditable
@ ./res/web_modules/angular-xeditable/index.js 2:0-51
ERROR in ./res/app/components/stf/device/device-service.js
Module not found: Error: Cannot resolve module 'oboe' in /usr/lib/node_modules/stf/res/app/components/stf/device
@ ./res/app/components/stf/device/device-service.js 5:11-26
ERROR in ./res/app/components/stf/groups/groups-service.js
Module not found: Error: Cannot resolve module 'oboe' in /usr/lib/node_modules/stf/res/app/components/stf/groups
@ ./res/app/components/stf/groups/groups-service.js 5:13-28
ERROR in ./res/app/components/stf/users/users-service.js
Module not found: Error: Cannot resolve module 'oboe' in /usr/lib/node_modules/stf/res/app/components/stf/users
@ ./res/app/components/stf/users/users-service.js 5:13-28
ERROR in ./res/app/components/stf/devices/devices-service.js
Module not found: Error: Cannot resolve module 'oboe' in /usr/lib/node_modules/stf/res/app/components/stf/devices
@ ./res/app/components/stf/devices/devices-service.js 5:13-28
ERROR in ./res/app/control-panes/dashboard/clipboard/index.js
Module not found: Error: Cannot resolve module 'angular-elastic' in /usr/lib/node_modules/stf/res/app/control-panes/dashboard/clipboard
@ ./res/app/control-panes/dashboard/clipboard/index.js 3:0-26
ERROR in ./res/app/components/stf/common-ui/table/index.js
Module not found: Error: Cannot resolve module 'ng-table/dist/ng-table' in /usr/lib/node_modules/stf/res/app/components/stf/common-ui/table
@ ./res/app/components/stf/common-ui/table/index.js 2:0-40
ERROR in ./res/app/components/stf/common-ui/notifications/index.js
Module not found: Error: Cannot resolve module 'angular-animate' in /usr/lib/node_modules/stf/res/app/components/stf/common-ui/notifications
@ ./res/app/components/stf/common-ui/notifications/index.js 1:0-26
ERROR in ./res/app/components/stf/common-ui/enable-autofill/index.js
Module not found: Error: Cannot resolve module 'angular-cookies' in /usr/lib/node_modules/stf/res/app/components/stf/common-ui/enable-autofill
@ ./res/app/components/stf/common-ui/enable-autofill/index.js 1:0-26
ERROR in ./res/web_modules/ng-context-menu/index.js
Module not found: Error: Cannot resolve module 'ng-context-menu/dist/ng-context-menu' in /usr/lib/node_modules/stf/res/web_modules/ng-context-menu
@ ./res/web_modules/ng-context-menu/index.js 1:0-47
ERROR in ./res/app/components/stf/angular-packery/index.js
Module not found: Error: Cannot resolve module 'packery/js/rect.js' in /usr/lib/node_modules/stf/res/app/components/stf/angular-packery
@ ./res/app/components/stf/angular-packery/index.js 3:0-29
ERROR in ./res/app/components/stf/angular-packery/index.js
Module not found: Error: Cannot resolve module 'packery/js/packer.js' in /usr/lib/node_modules/stf/res/app/components/stf/angular-packery
@ ./res/app/components/stf/angular-packery/index.js 4:0-31
ERROR in ./res/app/components/stf/angular-packery/index.js
Module not found: Error: Cannot resolve module 'packery/js/item.js' in /usr/lib/node_modules/stf/res/app/components/stf/angular-packery
@ ./res/app/components/stf/angular-packery/index.js 5:0-29
ERROR in ./res/app/components/stf/angular-packery/index.js
Module not found: Error: Cannot resolve module 'packery/js/packery.js' in /usr/lib/node_modules/stf/res/app/components/stf/angular-packery
@ ./res/app/components/stf/angular-packery/index.js 6:14-46
ERROR in ./res/app/settings/general/local/index.js
Module not found: Error: Cannot resolve module 'angular-bootstrap/ui-bootstrap-tpls' in /usr/lib/node_modules/stf/res/app/settings/general/local
@ ./res/app/settings/general/local/index.js 1:0-28
ERROR in ./res/web_modules/ng-file-upload/index.js
Module not found: Error: Cannot resolve module 'ng-file-upload/angular-file-upload-shim' in /usr/lib/node_modules/stf/res/web_modules/ng-file-upload
@ ./res/web_modules/ng-file-upload/index.js 1:0-50
ERROR in ./res/web_modules/ng-file-upload/index.js
Module not found: Error: Cannot resolve module 'ng-file-upload/angular-file-upload' in /usr/lib/node_modules/stf/res/web_modules/ng-file-upload
@ ./res/web_modules/ng-file-upload/index.js 2:0-45
ERROR in ./res/app/components/stf/logcat/logcat-service.js
Module not found: Error: Cannot resolve module 'underscore.string/index' in /usr/lib/node_modules/stf/res/app/components/stf/logcat
@ ./res/app/components/stf/logcat/logcat-service.js 2:9-37
ERROR in ./res/web_modules/angular-growl/index.js
Module not found: Error: Cannot resolve module 'angular-growl-v2/build/angular-growl.js' in /usr/lib/node_modules/stf/res/web_modules/angular-growl
@ ./res/web_modules/angular-growl/index.js 1:0-50
ERROR in ./res/app/components/stf/common-ui/modals/fatal-message/index.js
Module not found: Error: Cannot resolve module 'angular-route' in /usr/lib/node_modules/stf/res/app/components/stf/common-ui/modals/fatal-message
@ ./res/app/components/stf/common-ui/modals/fatal-message/index.js 1:0-24
ERROR in ./res/web_modules/angular-ladda/index.js
Module not found: Error: Cannot resolve module 'angular-ladda/src/angular-ladda' in /usr/lib/node_modules/stf/res/web_modules/angular-ladda
@ ./res/web_modules/angular-ladda/index.js 3:0-42
ERROR in ./res/web_modules/epoch/index.js
Module not found: Error: Cannot resolve module 'jquery' in /usr/lib/node_modules/stf/res/web_modules/epoch
@ ./res/web_modules/epoch/index.js 1:0-17
ERROR in ./res/web_modules/epoch/index.js
Module not found: Error: Cannot resolve module 'd3' in /usr/lib/node_modules/stf/res/web_modules/epoch
@ ./res/web_modules/epoch/index.js 3:0-13
ERROR in ./res/web_modules/epoch/index.js
Module not found: Error: Cannot resolve module 'epoch/dist/css/epoch.min.css' in /usr/lib/node_modules/stf/res/web_modules/epoch
@ ./res/web_modules/epoch/index.js 4:0-39
ERROR in ./res/web_modules/epoch/index.js
Module not found: Error: Cannot resolve module 'epoch/dist/js/epoch.min.js' in /usr/lib/node_modules/stf/res/web_modules/epoch
@ ./res/web_modules/epoch/index.js 5:0-37
ERROR in ./res/web_modules/epoch/index.js
Module not found: Error: Cannot resolve module 'ng-epoch' in /usr/lib/node_modules/stf/res/web_modules/epoch
@ ./res/web_modules/epoch/index.js 6:0-19
ERROR in ./res/app/components/stf/angular-draggabilly/index.js
Module not found: Error: Cannot resolve module 'draggabilly' in /usr/lib/node_modules/stf/res/app/components/stf/angular-draggabilly
@ ./res/app/components/stf/angular-draggabilly/index.js 1:18-40
2020-01-16T05:19:14.411Z ERR/middleware:webpack 26103 [] Bundle has errors
2020-01-16T05:19:15.037Z INF/webpack:config 26103 [] Build progress 100% (complete)
^C2020-01-16T05:20:49.158Z INF/util:lifecycle 26079 [proc002] Winding down for graceful exit
2020-01-16T05:20:49.158Z INF/util:lifecycle 26124 [] Winding down for graceful exit
2020-01-16T05:20:49.158Z INF/util:lifecycle 26103 [] Winding down for graceful exit
2020-01-16T05:20:49.159Z INF/cli:local 25919 [] Received SIGINT, waiting for processes to terminate
2020-01-16T05:20:49.160Z INF/util:lifecycle 26068 [app001] Winding down for graceful exit
2020-01-16T05:20:49.160Z INF/util:lifecycle 26110 [] Winding down for graceful exit
2020-01-16T05:20:49.161Z INF/util:lifecycle 26069 [dev001] Winding down for graceful exit
2020-01-16T05:20:49.161Z INF/util:lifecycle 26098 [*] Winding down for graceful exit
`
When trying to open the stf gui, I get this errror
Error: Cannot find module "bootstrap/dist/css/bootstrap.css" 5.10f4f85739e8763f408b.chunk.js line 13 > eval:1:65
webpackMissingModule webpack:///./res/web_modules/nine-bootstrap/index.js?:1
<anonymous> webpack:///./res/web_modules/nine-bootstrap/index.js?:1
4 http://172.28.200.168:7100/static/app/build/5.10f4f85739e8763f408b.chunk.js:13
__webpack_require__ http://172.28.200.168:7100/static/app/build/entry/commons.entry.js:53
<anonymous> webpack:///./res/auth/mock/scripts/entry.js?:2
webpackJsonpCallback http://172.28.200.168:7100/static/app/build/entry/commons.entry.js:21
<anonymous> http://172.28.200.168:7100/static/app/build/5.10f4f85739e8763f408b.chunk.js:1
Any chance that you know what the problem is please?
Your issue is not related to our added features, it seems you are facing to a building configuration issue, are you sure your "npm install" step has been performed correctly ?
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?
2020-01-17T05:11:11.193Z INF/device:plugins:screen:stream 20696 [24b7cf04] minicap says: "INFO: (jni/minicap/JpgEncoder.cpp:64) Allocating 1154052 bytes for JPG encoder"
2020-01-17T05:11:11.301Z INF/device:plugins:screen:stream 20696 [24b7cf04] Reading minicap banner
2020-01-17T05:11:11.340Z INF/device:plugins:screen:stream 20696 [24b7cf04] minicap says: "INFO: (/home/pierre/minicap-q-preview-4/minicap/jni/minicap/minicap.cpp:464) New client connection"
2020-01-17T05:11:49.900Z INF/device:plugins:screen:stream 20696 [24b7cf04] Requesting frame producer to stop
2020-01-17T05:11:49.901Z INF/device:plugins:screen:stream 20696 [24b7cf04] Disconnecting from minicap service
2020-01-17T05:11:49.910Z INF/device:plugins:screen:stream 20696 [24b7cf04] Stopping minicap service
2020-01-17T05:11:49.911Z INF/device:plugins:screen:stream 20696 [24b7cf04] Sending SIGTERM to minicap
2020-01-17T05:11:49.968Z INF/device:plugins:screen:stream 20696 [24b7cf04] minicap says: "INFO: (/home/pierre/minicap-q-preview-4/minicap/jni/minicap/minicap.cpp:200) Received SIGTERM, stopping"
2020-01-17T05:11:49.969Z INF/device:plugins:screen:stream 20696 [24b7cf04] minicap says: "INFO: (/home/pierre/minicap-q-preview-4/minicap/jni/minicap/minicap.cpp:536) Closing client connection"
2020-01-17T05:11:49.969Z INF/device:plugins:screen:stream 20696 [24b7cf04] minicap says: "INFO: (external/MY_minicap/src/minicap_21.cpp:284) Destroying virtual display"
Will be testing on Android 10 today and will let you know the results, thanks again for the excellent build
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 latest tag on Docker hub registry.
Android 10 support is available on the current HEAD of master and
latesttag on Docker hub registry.
stf-local_1 | Each option can be be overwritten with an environment variable by converting the
stf-local_1 | option to uppercase, replacing dashes with underscores and prefixing it with
stf-local_1 | STF_WEBSOCKET_ (e.g. STF_WEBSOCKET_STORAGE_URL).
stf-local_1 |
stf-local_1 | Unexpected token ...
stf-local_1 | 2020-02-06T15:43:22.641Z FTL/cli:local 1 [] Child process had an error ExitError: Exit code "1"
stf-local_1 | at ChildProcess.
stf-local_1 | at emitTwo (events.js:106:13)
stf-local_1 | at ChildProcess.emit (events.js:191:7)
stf-local_1 | at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
stf-local_1 | 2020-02-06T15:43:22.641Z INF/cli:local 1 [
stf-local_1 | 2020-02-06T15:43:22.652Z INF/util:lifecycle 17 [app001] Winding down for graceful exit
stf-local_1 | 2020-02-06T15:43:22.659Z INF/util:lifecycle 23 [dev001] Winding down for graceful exit
stf-local_1 | 2020-02-06T15:43:22.666Z INF/util:lifecycle 24 [proc001] Winding down for graceful exit
stf-local_1 | 2020-02-06T15:43:22.670Z WRN/db 24 [proc001] Connection closed
stf-local_1 | 2020-02-06T15:43:22.673Z INF/util:lifecycle 30 [proc002] Winding down for graceful exit
stf-local_1 | 2020-02-06T15:43:22.677Z WRN/db 30 [proc002] Connection closed
stf-local_1 | 2020-02-06T15:43:22.680Z INF/util:lifecycle 36 [reaper001] Winding down for graceful exit
stf-local_1 | 2020-02-06T15:43:22.683Z WRN/db 36 [reaper001] Connection closed
stf-local_1 | 2020-02-06T15:43:22.685Z INF/util:lifecycle 42 [] Winding down for graceful exit
stf-local_1 | 2020-02-06T15:43:22.690Z INF/util:lifecycle 48 [] Winding down for graceful exit
stf-local_1 | 2020-02-06T15:43:22.690Z INF/auth-ldap 48 [] Waiting for client connections to end
stf-local_1 | 2020-02-06T15:43:22.692Z INF/util:lifecycle 54 [] Winding down for graceful exit
stf-local_1 | 2020-02-06T15:43:22.701Z WRN/db 54 [*] Connection closed
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.
Do you have any particular idea regarding 1st bullet?
In case of autobuilds on docker hub, I suppose there is no problem regarding the first bullet (i.e. building environment).
Android 10 support is available on the current HEAD of master and
latesttag on Docker hub registry.stf-local_1 | Each option can be be overwritten with an environment variable by converting the
stf-local_1 | option to uppercase, replacing dashes with underscores and prefixing it with
stf-local_1 |STF_WEBSOCKET_(e.g.STF_WEBSOCKET_STORAGE_URL).
stf-local_1 |
stf-local_1 | Unexpected token ...
stf-local_1 | 2020-02-06T15:43:22.641Z FTL/cli:local 1 [_] Child process had an error ExitError: Exit code "1" stf-local_1 | at ChildProcess. (/app/lib/util/procutil.js:49:23) stf-local_1 | at emitTwo (events.js:106:13) stf-local_1 | at ChildProcess.emit (events.js:191:7) stf-local_1 | at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12) stf-local_1 | 2020-02-06T15:43:22.641Z INF/cli:local 1 [_] Shutting down all child processes
stf-local_1 | 2020-02-06T15:43:22.652Z INF/util:lifecycle 17 [app001] Winding down for graceful exit
stf-local_1 | 2020-02-06T15:43:22.659Z INF/util:lifecycle 23 [dev001] Winding down for graceful exit
stf-local_1 | 2020-02-06T15:43:22.666Z INF/util:lifecycle 24 [proc001] Winding down for graceful exit
stf-local_1 | 2020-02-06T15:43:22.670Z WRN/db 24 [proc001] Connection closed
stf-local_1 | 2020-02-06T15:43:22.673Z INF/util:lifecycle 30 [proc002] Winding down for graceful exit
stf-local_1 | 2020-02-06T15:43:22.677Z WRN/db 30 [proc002] Connection closed
stf-local_1 | 2020-02-06T15:43:22.680Z INF/util:lifecycle 36 [reaper001] Winding down for graceful exit
stf-local_1 | 2020-02-06T15:43:22.683Z WRN/db 36 [reaper001] Connection closed
stf-local_1 | 2020-02-06T15:43:22.685Z INF/util:lifecycle 42 [_] Winding down for graceful exit stf-local_1 | 2020-02-06T15:43:22.690Z INF/util:lifecycle 48 [_] Winding down for graceful exit
stf-local_1 | 2020-02-06T15:43:22.690Z INF/auth-ldap 48 [_] Waiting for client connections to end stf-local_1 | 2020-02-06T15:43:22.692Z INF/util:lifecycle 54 [_] Winding down for graceful exit
stf-local_1 | 2020-02-06T15:43:22.701Z WRN/db 54 [*] Connection closedWhat could be the problem?
I rebuilld image on local computer and get this error again
@forum77alive thanks for the report I'll investigate that.
Unexpected token ... error in websocket unit should be fixed in the latest autobuild.
Unexpected token ...error in websocket unit should be fixed in the latest autobuild.
Thank you! It's realy running. But I see some issues:
undefined.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: https://github.com/openstf/stf/issues/603
@forum77alive
You second issue make me think of https://github.com/openstf/minicap/issues/169
This is likely due to manufacturers using a code slightly different compared to AOSP.
I managed to overcome this problem on a G6 running Android 9 (https://github.com/openstf/minicap/issues/169#issuecomment-582621556). Haven't try on Android 10 yet...
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 ?
@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
I will try to test on other Android 10 and report on the result.
@varundtsfi I'll try to investigate a bit further on Android 10. What kind of build issues did you get ?
Hi @pcrepieux and @forum77alive
Build issue resolved that was my mistake. Your instructions was correct
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.
Suppose we have Xiaomi device in Android 9 or 10 version but MIUI version is 10 then devices working fine with minicap but if you update their MIUI version then vector mismatch problem will occur.*
I have tested on Xiaomi Note 7 pro MIUI 11 now vector mismatch issue is not occurred but screen is black.

Regarding 1st issue. @denis99999 do you have any idea how to solve it more gracefully than introducing breaking change in release notes?
@koral-- ,
I didn't make some effort on that because the issue just concerns the lost of user informations (i.e. tokens, ADB keys, last used device, ...) and device informations (i.e. notes, ...), which can be easily recreate by the end user.
I think it should be possible to add a "one shot" extra code to adapt the database model changing (i.e. adding dependencies between users, devices and groups objects), but is it really worth it ? If you feel that yes, so I can investigate on a softer migration solution.
Hello Team! I checked on samsung s10e (Android 10) - its working!
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.
@varundtsfi I'll try to investigate a bit further on Android 10. What kind of build issues did you get ?
Hi @pcrepieux Have you find something regarding Xiaomi Android 9(MIUI 11) issue?
I am not getting Vector<> have different types issue. As per your solution which is working for LG is working for Xiaomi Device also But Its Giving black screen while connecting device.
I have tried few things for overcome form the black screen issue but not succeed.
@Olivia26-2020
Same here :-/
I don't think I'll have more time to spend on this in the coming days. Will keep you posted if I get something interesting.
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"
stf-local_1 | 2020-03-04T14:47:19.590Z INF/device:plugins:forward 313 [4d9c3254] Launching reverse port forwarding service
stf-local_1 | 2020-03-04T14:47:19.600Z INF/device:plugins:forward 313 [4d9c3254] Connecting to reverse port forwarding service
stf-local_1 | 2020-03-04T14:47:19.758Z INF/device 313 [4d9c3254] Fully operational
stf-local_1 | 2020-03-04T14:47:37.984Z IMP/device:plugins:group 313 [4d9c3254] Now owned by "my@email"
stf-local_1 | 2020-03-04T14:47:37.984Z INF/device:plugins:group 313 [4d9c3254] Subscribing to group channel "zy2EVof5TxmiQzznBqT1/g=="
stf-local_1 | 2020-03-04T14:47:38.069Z INF/device:plugins:screen:stream 313 [4d9c3254] Setting frame producer projection to 574x848
stf-local_1 | 2020-03-04T14:47:38.069Z INF/device:plugins:screen:stream 313 [4d9c3254] Requesting frame producer to start
stf-local_1 | 2020-03-04T14:47:38.070Z INF/device:plugins:screen:stream 313 [4d9c3254] Launching screen service
stf-local_1 | 2020-03-04T14:47:38.123Z INF/device:plugins:screen:stream 313 [4d9c3254] minicap says: "PID: 8006"
stf-local_1 | 2020-03-04T14:47:38.123Z INF/device:plugins:screen:stream 313 [4d9c3254] minicap says: "INFO: Using projection 1080x2340@391x848/0"
stf-local_1 | 2020-03-04T14:47:38.123Z INF/device:plugins:screen:stream 313 [4d9c3254] minicap says: "INFO: (external/MY_minicap/src/minicap_29.cpp:241) Creating SurfaceComposerClient"
stf-local_1 | 2020-03-04T14:47:38.124Z INF/device:plugins:screen:stream 313 [4d9c3254] minicap says: "INFO: (external/MY_minicap/src/minicap_29.cpp:244) Performing SurfaceComposerClient init check"
stf-local_1 | 2020-03-04T14:47:38.124Z INF/device:plugins:screen:stream 313 [4d9c3254] minicap says: "INFO: (external/MY_minicap/src/minicap_29.cpp:255) Creating virtual display"
stf-local_1 | 2020-03-04T14:47:38.124Z INF/device:plugins:screen:stream 313 [4d9c3254] minicap says: "INFO: (external/MY_minicap/src/minicap_29.cpp:261) Creating buffer queue"
stf-local_1 | 2020-03-04T14:47:38.124Z INF/device:plugins:screen:stream 313 [4d9c3254] minicap says: "INFO: (external/MY_minicap/src/minicap_29.cpp:264) Setting buffer options"
stf-local_1 | 2020-03-04T14:47:38.125Z INF/device:plugins:screen:stream 313 [4d9c3254] minicap says: "INFO: (external/MY_minicap/src/minicap_29.cpp:268) Creating CPU consumer"
stf-local_1 | 2020-03-04T14:47:38.125Z INF/device:plugins:screen:stream 313 [4d9c3254] minicap says: "INFO: (external/MY_minicap/src/minicap_29.cpp:272) Creating frame waiter"
stf-local_1 | 2020-03-04T14:47:38.125Z INF/device:plugins:screen:stream 313 [4d9c3254] minicap says: "INFO: (external/MY_minicap/src/minicap_29.cpp:276) Publishing virtual display"
stf-local_1 | 2020-03-04T14:47:38.126Z INF/device:plugins:screen:stream 313 [4d9c3254] minicap says: "Vector<> have different types (this=0x7ff8124fc0, rhs=0x7ff8125110)"
stf-local_1 | 2020-03-04T14:47:38.127Z INF/device:plugins:screen:stream 313 [4d9c3254] Connecting to minicap service
stf-local_1 | 2020-03-04T14:47:38.135Z INF/device:plugins:connect 313 [4d9c3254] Listening on port 7457
stf-local_1 | 2020-03-04T14:47:38.137Z IMP/device:plugins:connect 313 [4d9c3254] Remote Connect Started for device "4d9c3254" at "IP_stf_server:7457"
stf-local_1 | 2020-03-04T14:47:38.166Z WRN/device:plugins:screen:stream 313 [4d9c3254] Shell keeping minicap running ended unexpectedly
stf-local_1 | 2020-03-04T14:47:39.652Z INF/device:plugins:screen:stream 313 [4d9c3254] Disconnecting from minicap service
stf-local_1 | 2020-03-04T14:47:39.653Z INF/device:plugins:screen:stream 313 [4d9c3254] Stopping minicap service
stf-local_1 | 2020-03-04T14:47:39.655Z FTL/device:plugins:screen:stream 313 [4d9c3254] Frame producer had an error FailError: Failure: 'closed'
stf-local_1 | at /app/node_modules/adbkit/lib/adb/parser.js:183:29
stf-local_1 | at runCallback (timers.js:789:20)
stf-local_1 | at tryOnImmediate (timers.js:751:5)
stf-local_1 | at processImmediate [as _immediateCallback] (timers.js:722:5)
stf-local_1 | 2020-03-04T14:47:39.655Z FTL/util:lifecycle 313 [4d9c3254] Shutting down due to fatal error
stf-local_1 | 2020-03-04T14:47:39.659Z INF/provider 37 [] Cleaning up device worker "4d9c3254"
stf-local_1 | 2020-03-04T14:47:39.660Z ERR/provider 37 [] Device worker "4d9c3254" died with code 1
stf-local_1 | 2020-03-04T14:47:39.660Z INF/provider 37 [] Restarting device worker "4d9c3254"
stf-local_1 | 2020-03-04T14:47:40.520Z INF/device:support:push 325 [4d9c3254] Sending output to "tcp://127.0.0.1:7116"
stf-local_1 | 2020-03-04T14:47:40.524Z INF/device 325 [4d9c3254] Preparing device
stf-local_1 | 2020-03-04T14:47:40.975Z INF/device:support:sub 325 [4d9c3254] Receiving input from "tcp://127.0.0.1:7114"
stf-local_1 | 2020-03-04T14:47:40.976Z INF/device:support:sub 325 [4d9c3254] Subscribing to permanent channel "ALL"
stf-local_1 | 2020-03-04T14:47:41.038Z INF/device:support:properties 325 [4d9c3254] Loading properties
stf-local_1 | 2020-03-04T14:47:41.062Z INF/device:support:sdk 325 [4d9c3254] Supports SDK 29
stf-local_1 | 2020-03-04T14:47:41.063Z INF/device:support:abi 325 [4d9c3254] Supports ABIs arm64-v8a, armeabi-v7a, armeabi
stf-local_1 | 2020-03-04T14:47:41.168Z INF/device:resources:minicap 325 [4d9c3254] Installing "/app/node_modules/minicap-prebuilt-beta/prebuilt/arm64-v8a/bin/minicap" as "/data/local/tmp/minicap"
stf-local_1 | 2020-03-04T14:47:41.168Z INF/device:resources:minicap 325 [4d9c3254] Installing "/app/node_modules/minicap-prebuilt-beta/prebuilt/arm64-v8a/lib/android-29/minicap.so" as "/data/local/tmp/minicap.so"
stf-local_1 | 2020-03-04T14:47:41.225Z INF/device:resources:service 325 [4d9c3254] Checking whether we need to install STFService
stf-local_1 | 2020-03-04T14:47:41.257Z INF/device:resources:service 325 [4d9c3254] Running version check
stf-local_1 | 2020-03-04T14:47:41.464Z INF/device:resources:service 325 [4d9c3254] Installing STFService
It goes on forever.
Xiaomi mi9 (Android 10)
Here are 3 suggested PR to add android 10 support:
openstf/minitouch#50
openstf/STFService.apk#38
openstf/minicap#190
Hope this helps.
can not support x86 ?
你解决了吗?大兄弟?我现在一样的问题,minicap.so都更新了
Most helpful comment
Here are 3 suggested PR to add android 10 support:
https://github.com/openstf/minitouch/pull/50
https://github.com/openstf/STFService.apk/pull/38
https://github.com/openstf/minicap/pull/190
Hope this helps.