Skip to content
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

Google devices - Missing resources/unknown minicap grabber: minicap-bin #785

Closed
KingRat0011 opened this issue May 30, 2024 · 13 comments
Closed

Comments

@KingRat0011
Copy link

I'm running the latest release with node v17.9.0
$ node -v
v17.9.0
$ which node
~/.nvm/versions/node/v17.9.0/bin/node
$ stf --version
3.6.8
$ stf doctor
2024-05-30T08:15:54.034Z INF/cli:doctor 27704 [] OS Arch: x64
2024-05-30T08:15:54.036Z INF/cli:doctor 27704 [
] OS Platform: linux
2024-05-30T08:15:54.036Z INF/cli:doctor 27704 [] OS Platform: 3.10.0-1160.118.1.el7.x86_64
2024-05-30T08:15:54.036Z INF/cli:doctor 27704 [
] Using Node 17.9.0
2024-05-30T08:15:54.047Z INF/cli:doctor 27704 [] Using ZeroMQ 4.2.2
2024-05-30T08:15:54.058Z INF/cli:doctor 27704 [
] Using ADB 1.0.31
2024-05-30T08:15:54.059Z INF/cli:doctor 27704 [] Using ProtoBuf 3.14.0
2024-05-30T08:15:54.060Z INF/cli:doctor 27704 [
] Using GraphicsMagick 1.3.38
2024-05-30T08:15:54.060Z INF/cli:doctor 27704 [*] Using RethinkDB 2.4.4
$

But on the google devices with Android 14, I get Missing resources/unknown minicap grabber: minicap-bin when opening the UI

Below is for a Google Pixel 8a - Android 14

`2024-05-30T07:54:55.272Z INF/device 14774 [3B061JEKB06183] Preparing device
2024-05-30T07:54:56.039Z INF/device:support:sub 14774 [3B061JEKB06183] Receiving input from "tcp://127.0.0.1:7114"
2024-05-30T07:54:56.041Z INF/device:support:sub 14774 [3B061JEKB06183] Subscribing to permanent channel "*ALL"
2024-05-30T07:54:56.177Z INF/device:support:properties 14774 [3B061JEKB06183] Loading properties
2024-05-30T07:54:56.287Z INF/device:support:sdk 14774 [3B061JEKB06183] Supports SDK 34
2024-05-30T07:54:56.289Z INF/device:support:abi 14774 [3B061JEKB06183] Supports ABIs arm64-v8a
2024-05-30T07:54:56.570Z INF/device:resources:minicap 14774 [3B061JEKB06183] Installing "/usr/lib/node_modules/stf/node_modules/@devicefarmer/minicap-prebuilt/prebuilt/noarch/minicap.apk" as "/data/local/tmp/minicap.apk"
2024-05-30T07:54:57.050Z INF/device:resources:service 14774 [3B061JEKB06183] Checking whether we need to install STFService
2024-05-30T07:54:57.166Z INF/device:resources:service 14774 [3B061JEKB06183] Running version check
2024-05-30T07:54:58.173Z INF/provider 14285 [*] Providing 0 of 1 device(s); waiting for "3B061JEKB06183"
2024-05-30T07:54:58.379Z DBG/device:resources:service 14774 [3B061JEKB06183] output of granting permissions to STFService: 
2024-05-30T07:54:58.380Z INF/device:resources:service 14774 [3B061JEKB06183] STFService up to date
2024-05-30T07:54:58.381Z INF/device:plugins:service 14774 [3B061JEKB06183] Launching agent
2024-05-30T07:54:59.001Z INF/device:plugins:service 14774 [3B061JEKB06183] Agent says: "Starting minitouch agent"
2024-05-30T07:54:59.002Z INF/device:plugins:service 14774 [3B061JEKB06183] Agent says: "Listening on @stfagent"
2024-05-30T07:54:59.081Z INF/device:plugins:service 14774 [3B061JEKB06183] Launching service
2024-05-30T07:54:59.081Z INF/device:plugins:service 14774 [3B061JEKB06183] using 'start-foreground-service' command for API 34
2024-05-30T07:54:59.095Z INF/device:plugins:service 14774 [3B061JEKB06183] Agent says: "InputClient started"
2024-05-30T07:54:59.258Z INF/device:plugins:display 14774 [3B061JEKB06183] Reading display info
2024-05-30T07:54:59.311Z INF/device:plugins:phone 14774 [3B061JEKB06183] Fetching phone info
2024-05-30T07:54:59.335Z INF/device:plugins:identity 14774 [3B061JEKB06183] Solving identity
2024-05-30T07:54:59.338Z INF/device:plugins:solo 14774 [3B061JEKB06183] Subscribing to permanent channel "d4xQDWjvGPqIOI7UXAvB1YhoPVY="
2024-05-30T07:54:59.339Z INF/device:plugins:screen:stream 14774 [3B061JEKB06183] ScreenGrabber option set to minicap-bin
2024-05-30T07:54:59.339Z INF/device:plugins:screen:stream 14774 [3B061JEKB06183] ScreenFrameRate option set to -1
2024-05-30T07:54:59.340Z INF/device:plugins:screen:stream 14774 [3B061JEKB06183] Starting WebSocket server on port 7404
2024-05-30T07:54:59.341Z INF/device:plugins:screen:stream 14774 [3B061JEKB06183] creating FrameProducer: minicap-bin
2024-05-30T07:54:59.618Z INF/device:resources:minitouch 14774 [3B061JEKB06183] Installing "/usr/lib/node_modules/stf/node_modules/@devicefarmer/minitouch-prebuilt/prebuilt/arm64-v8a/bin/minitouch" as "/data/local/tmp/minitouch"
2024-05-30T07:54:59.797Z WRN/device:plugins:data 14774 [3B061JEKB06183] Unable to find device data {
  serial: '3B061JEKB06183',
  platform: 'Android',
  manufacturer: 'GOOGLE',
  operator: 'xxxxxxxx',
  model: 'Pixel 8a',
  version: '14',
  abi: 'arm64-v8a',
  sdk: '34',
  product: 'akita',
  cpuPlatform: 'zuma',
  openGLESVersion: '3.2',
  marketName: 'akita',
  display: {
    id: 0,
    width: 1080,
    height: 2400,
    xdpi: 391.885009765625,
    ydpi: 409.12701416015625,
    fps: 60,
    density: 2.625,
    rotation: 0,
    secure: true,
    size: 6.481261132826809,
    url: 'ws://10.119.102.86:7404'
  },
  phone: [Object: null prototype] {}
}
2024-05-30T07:54:59.799Z INF/device:plugins:touch 14774 [3B061JEKB06183] Touch origin is top left
2024-05-30T07:54:59.799Z INF/device:plugins:touch 14774 [3B061JEKB06183] Requesting touch consumer to start
2024-05-30T07:54:59.800Z INF/device:plugins:touch 14774 [3B061JEKB06183] Launching touch service
2024-05-30T07:54:59.835Z INF/device:plugins:touch 14774 [3B061JEKB06183] Connecting to minitouch service
2024-05-30T07:54:59.852Z INF/device:plugins:touch 14774 [3B061JEKB06183] minitouch says: "open: Permission denied"
2024-05-30T07:54:59.853Z INF/device:plugins:touch 14774 [3B061JEKB06183] minitouch says: "Unable to open device /dev/input/event3 for inspectionopen: Permission denied"
2024-05-30T07:54:59.853Z INF/device:plugins:touch 14774 [3B061JEKB06183] minitouch says: "Unable to open device /dev/input/event2 for inspectionopen: Permission denied"
2024-05-30T07:54:59.853Z INF/device:plugins:touch 14774 [3B061JEKB06183] minitouch says: "Unable to open device /dev/input/event1 for inspectionopen: Permission denied"
2024-05-30T07:54:59.854Z INF/device:plugins:touch 14774 [3B061JEKB06183] minitouch says: "Unable to open device /dev/input/event0 for inspectionUnable to find a suitable touch device"
2024-05-30T07:54:59.854Z INF/device:plugins:touch 14774 [3B061JEKB06183] minitouch says: "using Android InputManager"
2024-05-30T07:54:59.895Z INF/device:plugins:touch 14774 [3B061JEKB06183] minitouch says: "Connection established"
2024-05-30T07:54:59.896Z INF/device:plugins:touch 14774 [3B061JEKB06183] Reading minitouch banner
2024-05-30T07:54:59.898Z INF/device:plugins:vnc 14774 [3B061JEKB06183] Starting VNC server on port 7406
2024-05-30T07:54:59.899Z INF/device:plugins:browser 14774 [3B061JEKB06183] Loading browser list
2024-05-30T07:54:59.946Z INF/device:plugins:browser 14774 [3B061JEKB06183] Updating browser list
2024-05-30T07:54:59.947Z INF/device:plugins:mute 14774 [3B061JEKB06183] Will not mute master volume
2024-05-30T07:55:00.205Z INF/device:resources:minirev 14774 [3B061JEKB06183] Installing "/usr/lib/node_modules/stf/vendor/minirev/arm64-v8a/minirev" as "/data/local/tmp/minirev"
2024-05-30T07:55:00.395Z INF/device:plugins:forward 14774 [3B061JEKB06183] Launching reverse port forwarding service
2024-05-30T07:55:00.483Z INF/device:plugins:forward 14774 [3B061JEKB06183] Connecting to reverse port forwarding service
2024-05-30T07:55:00.526Z INF/device 14774 [3B061JEKB06183] Fully operational
2024-05-30T07:55:08.188Z INF/provider 14285 [*] Providing all 1 device(s)
2024-05-30T08:12:23.061Z IMP/device:plugins:group 14774 [3B061JEKB06183] Now owned by "[email protected]"
2024-05-30T08:12:23.063Z INF/device:plugins:group 14774 [3B061JEKB06183] Subscribing to group channel "27wYow6vQ7KHx53MvmzFQw=="
2024-05-30T08:12:24.451Z INF/device:plugins:screen:stream 14774 [3B061JEKB06183] Setting frame producer projection to 865x865
2024-05-30T08:12:24.454Z INF/device:plugins:screen:stream 14774 [3B061JEKB06183] Requesting frame producer to start
2024-05-30T08:12:24.456Z INF/device:plugins:screen:stream 14774 [3B061JEKB06183] Launching screen service minicap-bin
2024-05-30T08:12:24.457Z ERR/device:resources:minicap 14774 [3B061JEKB06183] Missing resources/unknown minicap grabber: minicap-bin
2024-05-30T08:12:24.458Z INF/device:resources:minicap 14774 [3B061JEKB06183] undefined
2024-05-30T08:12:24.542Z INF/device:plugins:screen:stream 14774 [3B061JEKB06183] minicap says: "/system/bin/sh: undefined: inaccessible or not found"
2024-05-30T08:12:24.544Z WRN/device:plugins:screen:stream 14774 [3B061JEKB06183] Shell keeping minicap running ended unexpectedly
2024-05-30T08:12:29.506Z INF/device:plugins:screen:stream 14774 [3B061JEKB06183] Disconnecting from minicap service
2024-05-30T08:12:29.509Z INF/device:plugins:screen:stream 14774 [3B061JEKB06183] Stopping minicap service
2024-05-30T08:12:29.511Z INF/device:plugins:screen:stream 14774 [3B061JEKB06183] Launching screen service minicap-apk
2024-05-30T08:12:29.512Z INF/device:resources:minicap 14774 [3B061JEKB06183] CLASSPATH=/data/local/tmp/minicap.apk app_process /system/bin io.devicefarmer.minicap.Main -S -Q 80 -P 1080x2400@865x865/0
2024-05-30T08:12:29.828Z INF/device:plugins:screen:stream 14774 [3B061JEKB06183] minicap says: "03:12:31.091 [main] INFO  BaseProvider - framePeriodMs: 0"
2024-05-30T08:12:29.830Z INF/device:plugins:screen:stream 14774 [3B061JEKB06183] minicap says: "PID: 5849"
2024-05-30T08:12:29.831Z INF/device:plugins:screen:stream 14774 [3B061JEKB06183] minicap says: "INFO: 1080x2400@389x865/0"
2024-05-30T08:12:29.833Z INF/device:plugins:screen:stream 14774 [3B061JEKB06183] minicap says: "03:12:31.098 [main] INFO  Main - Listening on socket : minicap"
2024-05-30T08:12:29.835Z INF/device:plugins:screen:stream 14774 [3B061JEKB06183] Connecting to minicap service
2024-05-30T08:12:29.856Z INF/device:plugins:screen:stream 14774 [3B061JEKB06183] Reading minicap banner
2024-05-30T08:12:29.901Z FTL/device:plugins:screen:stream 14774 [3B061JEKB06183] minicap error: "03:12:31.139 [main] ERROR SurfaceControl - SurfaceControl error"
2024-05-30T08:12:29.902Z FTL/util:lifecycle 14774 [3B061JEKB06183] Shutting down due to fatal error
2024-05-30T08:12:29.920Z INF/provider 14285 [*] Cleaning up device worker "3B061JEKB06183"
2024-05-30T08:12:29.921Z ERR/provider 14285 [*] Device worker "3B061JEKB06183" died with code 1
2024-05-30T08:12:29.922Z INF/provider 14285 [*] Restarting device worker "3B061JEKB06183"
2024-05-30T08:12:30.947Z INF/device:support:push 19292 [3B061JEKB06183] Sending output to "tcp://127.0.0.1:7116"
2024-05-30T08:12:30.956Z INF/device 19292 [3B061JEKB06183] Preparing device
2024-05-30T08:12:31.800Z INF/device:support:sub 19292 [3B061JEKB06183] Receiving input from "tcp://127.0.0.1:7114"
2024-05-30T08:12:31.804Z INF/device:support:sub 19292 [3B061JEKB06183] Subscribing to permanent channel "*ALL"
2024-05-30T08:12:31.912Z INF/device:support:properties 19292 [3B061JEKB06183] Loading properties
2024-05-30T08:12:31.992Z INF/device:support:sdk 19292 [3B061JEKB06183] Supports SDK 34
2024-05-30T08:12:31.994Z INF/device:support:abi 19292 [3B061JEKB06183] Supports ABIs arm64-v8a
2024-05-30T08:12:32.256Z INF/device:resources:minicap 19292 [3B061JEKB06183] Installing "/usr/lib/node_modules/stf/node_modules/@devicefarmer/minicap-prebuilt/prebuilt/noarch/minicap.apk" as "/data/local/tmp/minicap.apk"
2024-05-30T08:12:32.758Z INF/device:resources:service 19292 [3B061JEKB06183] Checking whether we need to install STFService
2024-05-30T08:12:32.839Z INF/device:resources:service 19292 [3B061JEKB06183] Running version check
2024-05-30T08:12:34.014Z DBG/device:resources:service 19292 [3B061JEKB06183] output of granting permissions to STFService: 
2024-05-30T08:12:34.017Z INF/device:resources:service 19292 [3B061JEKB06183] STFService up to date
2024-05-30T08:12:34.020Z INF/device:plugins:service 19292 [3B061JEKB06183] Launching agent
2024-05-30T08:12:34.678Z INF/device:plugins:service 19292 [3B061JEKB06183] Agent says: "Starting minitouch agent"
2024-05-30T08:12:34.681Z INF/device:plugins:service 19292 [3B061JEKB06183] Agent says: "Listening on @stfagent"
2024-05-30T08:12:34.760Z INF/device:plugins:service 19292 [3B061JEKB06183] Launching service
2024-05-30T08:12:34.761Z INF/device:plugins:service 19292 [3B061JEKB06183] using 'start-foreground-service' command for API 34
2024-05-30T08:12:34.769Z INF/device:plugins:service 19292 [3B061JEKB06183] Agent says: "InputClient started"
2024-05-30T08:12:34.959Z INF/device:plugins:display 19292 [3B061JEKB06183] Reading display info
2024-05-30T08:12:35.022Z INF/device:plugins:phone 19292 [3B061JEKB06183] Fetching phone info
2024-05-30T08:12:35.050Z INF/device:plugins:identity 19292 [3B061JEKB06183] Solving identity
2024-05-30T08:12:35.059Z INF/device:plugins:solo 19292 [3B061JEKB06183] Subscribing to permanent channel "d4xQDWjvGPqIOI7UXAvB1YhoPVY="
2024-05-30T08:12:35.061Z INF/device:plugins:screen:stream 19292 [3B061JEKB06183] ScreenGrabber option set to minicap-bin
2024-05-30T08:12:35.062Z INF/device:plugins:screen:stream 19292 [3B061JEKB06183] ScreenFrameRate option set to -1
2024-05-30T08:12:35.062Z INF/device:plugins:screen:stream 19292 [3B061JEKB06183] Starting WebSocket server on port 7444
2024-05-30T08:13:18.949Z INF/device:plugins:screen:stream 19960 [3B061JEKB06183] creating FrameProducer: minicap-bin
2024-05-30T08:13:19.177Z INF/device:resources:minitouch 19960 [3B061JEKB06183] Installing "/usr/lib/node_modules/stf/node_modules/@devicefarmer/minitouch-prebuilt/prebuilt/arm64-v8a/bin/minitouch" as "/data/local/tmp/minitouch"
2024-05-30T08:13:19.410Z WRN/device:plugins:data 19960 [3B061JEKB06183] Unable to find device data {
  serial: '3B061JEKB06183',
  platform: 'Android',
  manufacturer: 'GOOGLE',
  operator: 'xxxxxxxxx',
  model: 'Pixel 8a',
  version: '14',
  abi: 'arm64-v8a',
  sdk: '34',
  product: 'akita',
  cpuPlatform: 'zuma',
  openGLESVersion: '3.2',
  marketName: 'akita',
  display: {
    id: 0,
    width: 1080,
    height: 2400,
    xdpi: 391.885009765625,
    ydpi: 409.12701416015625,
    fps: 60,
    density: 2.625,
    rotation: 0,
    secure: true,
    size: 6.481261132826809,
    url: 'ws://10.119.102.86:7444'
  },
  phone: [Object: null prototype] {}
}
2024-05-30T08:13:19.415Z INF/device:plugins:touch 19960 [3B061JEKB06183] Touch origin is top left
2024-05-30T08:13:19.416Z INF/device:plugins:touch 19960 [3B061JEKB06183] Requesting touch consumer to start
2024-05-30T08:13:19.417Z INF/device:plugins:touch 19960 [3B061JEKB06183] Launching touch service
2024-05-30T08:13:19.449Z INF/device:plugins:touch 19960 [3B061JEKB06183] Connecting to minitouch service
2024-05-30T08:13:19.467Z INF/device:plugins:touch 19960 [3B061JEKB06183] minitouch says: "open: Permission denied"
2024-05-30T08:13:19.468Z INF/device:plugins:touch 19960 [3B061JEKB06183] minitouch says: "Unable to open device /dev/input/event3 for inspectionopen: Permission denied"
2024-05-30T08:13:19.468Z INF/device:plugins:touch 19960 [3B061JEKB06183] minitouch says: "Unable to open device /dev/input/event2 for inspectionopen: Permission denied"
2024-05-30T08:13:19.469Z INF/device:plugins:touch 19960 [3B061JEKB06183] minitouch says: "Unable to open device /dev/input/event1 for inspectionopen: Permission denied"
2024-05-30T08:13:19.469Z INF/device:plugins:touch 19960 [3B061JEKB06183] minitouch says: "Unable to open device /dev/input/event0 for inspectionUnable to find a suitable touch device"
2024-05-30T08:13:19.470Z INF/device:plugins:touch 19960 [3B061JEKB06183] minitouch says: "using Android InputManager"
2024-05-30T08:13:19.511Z INF/device:plugins:touch 19960 [3B061JEKB06183] minitouch says: "Connection established"
2024-05-30T08:13:19.513Z INF/device:plugins:touch 19960 [3B061JEKB06183] Reading minitouch banner
2024-05-30T08:13:19.519Z INF/device:plugins:vnc 19960 [3B061JEKB06183] Starting VNC server on port 7446
2024-05-30T08:13:19.522Z INF/device:plugins:browser 19960 [3B061JEKB06183] Loading browser list
2024-05-30T08:13:19.565Z INF/device:plugins:browser 19960 [3B061JEKB06183] Updating browser list
2024-05-30T08:13:19.567Z INF/device:plugins:mute 19960 [3B061JEKB06183] Will not mute master volume
2024-05-30T08:13:19.806Z INF/device:resources:minirev 19960 [3B061JEKB06183] Installing "/usr/lib/node_modules/stf/vendor/minirev/arm64-v8a/minirev" as "/data/local/tmp/minirev"
2024-05-30T08:13:20.033Z INF/device:plugins:forward 19960 [3B061JEKB06183] Launching reverse port forwarding service
2024-05-30T08:13:20.074Z INF/device:plugins:forward 19960 [3B061JEKB06183] Connecting to reverse port forwarding service
2024-05-30T08:13:20.102Z INF/device 19960 [3B061JEKB06183] Fully operational

`

This just carries on and on when trying to open the UI, I dont think this is the problem, as I have a Samsung on Android 14, the logs for the Samsung gives the same error but the UI open

Below is for a Google Pixel 7a - Android 14

`2024-05-30T07:55:06.628Z INF/provider 14318 [*] Restarting device worker "2B211JEHN08476"
2024-05-30T07:55:07.531Z INF/device:support:push 16379 [2B211JEHN08476] Sending output to "tcp://127.0.0.1:7116"
2024-05-30T07:55:07.535Z INF/device 16379 [2B211JEHN08476] Preparing device
2024-05-30T07:55:08.208Z INF/device:support:sub 16379 [2B211JEHN08476] Receiving input from "tcp://127.0.0.1:7114"
2024-05-30T07:55:08.210Z INF/device:support:sub 16379 [2B211JEHN08476] Subscribing to permanent channel "*ALL"
2024-05-30T07:55:08.307Z INF/provider 14318 [*] Providing 0 of 1 device(s); waiting for "2B211JEHN08476"
2024-05-30T07:55:08.335Z INF/device:support:properties 16379 [2B211JEHN08476] Loading properties
2024-05-30T07:55:08.413Z INF/device:support:sdk 16379 [2B211JEHN08476] Supports SDK 34
2024-05-30T07:55:08.415Z INF/device:support:abi 16379 [2B211JEHN08476] Supports ABIs arm64-v8a
2024-05-30T07:55:08.775Z INF/device:resources:minicap 16379 [2B211JEHN08476] Installing "/usr/lib/node_modules/stf/node_modules/@devicefarmer/minicap-prebuilt/prebuilt/noarch/minicap.apk" as "/data/local/tmp/minicap.apk"
2024-05-30T07:55:09.243Z INF/device:resources:service 16379 [2B211JEHN08476] Checking whether we need to install STFService
2024-05-30T07:55:09.372Z INF/device:resources:service 16379 [2B211JEHN08476] Running version check
2024-05-30T07:55:10.661Z DBG/device:resources:service 16379 [2B211JEHN08476] output of granting permissions to STFService: 
2024-05-30T07:55:10.664Z INF/device:resources:service 16379 [2B211JEHN08476] STFService up to date
2024-05-30T07:55:10.667Z INF/device:plugins:service 16379 [2B211JEHN08476] Launching agent
2024-05-30T07:55:11.437Z INF/device:plugins:service 16379 [2B211JEHN08476] Agent says: "Starting minitouch agent"
2024-05-30T07:55:11.480Z INF/device:plugins:service 16379 [2B211JEHN08476] Agent says: "Listening on @stfagent"
2024-05-30T07:55:11.493Z INF/device:plugins:service 16379 [2B211JEHN08476] Launching service
2024-05-30T07:55:11.494Z INF/device:plugins:service 16379 [2B211JEHN08476] using 'start-foreground-service' command for API 34
2024-05-30T07:55:11.506Z INF/device:plugins:service 16379 [2B211JEHN08476] Agent says: "InputClient started"
2024-05-30T07:55:11.694Z INF/device:plugins:display 16379 [2B211JEHN08476] Reading display info
2024-05-30T07:55:11.752Z INF/device:plugins:phone 16379 [2B211JEHN08476] Fetching phone info
2024-05-30T07:55:11.776Z INF/device:plugins:identity 16379 [2B211JEHN08476] Solving identity
2024-05-30T07:55:11.785Z INF/device:plugins:solo 16379 [2B211JEHN08476] Subscribing to permanent channel "xXrV0soDWKRKxGmmpMm3i53KGtE="
2024-05-30T07:55:11.788Z INF/device:plugins:screen:stream 16379 [2B211JEHN08476] ScreenGrabber option set to minicap-bin
2024-05-30T07:55:11.789Z INF/device:plugins:screen:stream 16379 [2B211JEHN08476] ScreenFrameRate option set to -1
2024-05-30T07:55:11.790Z INF/device:plugins:screen:stream 16379 [2B211JEHN08476] Starting WebSocket server on port 7412
2024-05-30T07:55:11.796Z INF/device:plugins:screen:stream 16379 [2B211JEHN08476] creating FrameProducer: minicap-bin
2024-05-30T07:55:12.101Z INF/device:resources:minitouch 16379 [2B211JEHN08476] Installing "/usr/lib/node_modules/stf/node_modules/@devicefarmer/minitouch-prebuilt/prebuilt/arm64-v8a/bin/minitouch" as "/data/local/tmp/minitouch"
2024-05-30T07:55:12.255Z WRN/device:plugins:data 16379 [2B211JEHN08476] Unable to find device data {
  serial: '2B211JEHN08476',
  platform: 'Android',
  manufacturer: 'GOOGLE',
  operator: 'xxxxxxxxxxxxx,',
  model: 'Pixel 7a',
  version: '14',
  abi: 'arm64-v8a',
  sdk: '34',
  product: 'lynx',
  cpuPlatform: 'gs201',
  openGLESVersion: '3.2',
  marketName: 'lynx',
  display: {
    id: 0,
    width: 1080,
    height: 2400,
    xdpi: 391.885009765625,
    ydpi: 409.12701416015625,
    fps: 60,
    density: 2.625,
    rotation: 0,
    secure: true,
    size: 6.481261132826809,
    url: 'ws://10.119.102.86:7412'
  },
  phone: [Object: null prototype] {}
}
2024-05-30T07:55:12.261Z INF/device:plugins:touch 16379 [2B211JEHN08476] Touch origin is top left
2024-05-30T07:55:12.262Z INF/device:plugins:touch 16379 [2B211JEHN08476] Requesting touch consumer to start
2024-05-30T07:55:12.263Z INF/device:plugins:touch 16379 [2B211JEHN08476] Launching touch service
2024-05-30T07:55:12.302Z INF/device:plugins:touch 16379 [2B211JEHN08476] Connecting to minitouch service
2024-05-30T07:55:12.371Z INF/device:plugins:touch 16379 [2B211JEHN08476] minitouch says: "open: Permission denied"
2024-05-30T07:55:12.372Z INF/device:plugins:touch 16379 [2B211JEHN08476] minitouch says: "Unable to open device /dev/input/event4 for inspectionopen: Permission denied"
2024-05-30T07:55:12.373Z INF/device:plugins:touch 16379 [2B211JEHN08476] minitouch says: "Unable to open device /dev/input/event3 for inspectionopen: Permission denied"
2024-05-30T07:55:12.373Z INF/device:plugins:touch 16379 [2B211JEHN08476] minitouch says: "Unable to open device /dev/input/event2 for inspectionopen: Permission denied"
2024-05-30T07:55:12.374Z INF/device:plugins:touch 16379 [2B211JEHN08476] minitouch says: "Unable to open device /dev/input/event1 for inspectionopen: Permission denied"
2024-05-30T07:55:12.374Z INF/device:plugins:touch 16379 [2B211JEHN08476] minitouch says: "Unable to open device /dev/input/event0 for inspectionUnable to find a suitable touch device"
2024-05-30T07:55:12.375Z INF/device:plugins:touch 16379 [2B211JEHN08476] minitouch says: "using Android InputManager"
2024-05-30T07:55:12.517Z INF/device:plugins:touch 16379 [2B211JEHN08476] Reading minitouch banner
2024-05-30T07:55:12.542Z INF/device:plugins:touch 16379 [2B211JEHN08476] minitouch says: "Connection established"
2024-05-30T07:55:12.547Z INF/device:plugins:vnc 16379 [2B211JEHN08476] Starting VNC server on port 7414
2024-05-30T07:55:12.550Z INF/device:plugins:browser 16379 [2B211JEHN08476] Loading browser list
2024-05-30T07:55:12.624Z INF/device:plugins:browser 16379 [2B211JEHN08476] Updating browser list
2024-05-30T07:55:12.627Z INF/device:plugins:mute 16379 [2B211JEHN08476] Will not mute master volume
2024-05-30T07:55:13.001Z INF/device:resources:minirev 16379 [2B211JEHN08476] Installing "/usr/lib/node_modules/stf/vendor/minirev/arm64-v8a/minirev" as "/data/local/tmp/minirev"
2024-05-30T07:55:13.218Z INF/device:plugins:forward 16379 [2B211JEHN08476] Launching reverse port forwarding service
2024-05-30T07:55:13.266Z INF/device:plugins:forward 16379 [2B211JEHN08476] Connecting to reverse port forwarding service
2024-05-30T07:55:13.305Z INF/device 16379 [2B211JEHN08476] Fully operational
2024-05-30T07:55:18.312Z INF/provider 14318 [*] Providing all 1 device(s)
2024-05-30T08:25:14.213Z IMP/device:plugins:group 16379 [2B211JEHN08476] Now owned by "[email protected]"
2024-05-30T08:25:14.214Z INF/device:plugins:group 16379 [2B211JEHN08476] Subscribing to group channel "27wYow6vQ7KHx53MvmzFQw=="
2024-05-30T08:25:15.598Z INF/device:plugins:screen:stream 16379 [2B211JEHN08476] Setting frame producer projection to 865x865
2024-05-30T08:25:15.599Z INF/device:plugins:screen:stream 16379 [2B211JEHN08476] Requesting frame producer to start
2024-05-30T08:25:15.600Z INF/device:plugins:screen:stream 16379 [2B211JEHN08476] Launching screen service minicap-bin
2024-05-30T08:25:15.601Z ERR/device:resources:minicap 16379 [2B211JEHN08476] Missing resources/unknown minicap grabber: minicap-bin
2024-05-30T08:25:15.602Z INF/device:resources:minicap 16379 [2B211JEHN08476] undefined
2024-05-30T08:25:15.692Z INF/device:plugins:screen:stream 16379 [2B211JEHN08476] minicap says: "/system/bin/sh: undefined: inaccessible or not found"
2024-05-30T08:25:15.694Z WRN/device:plugins:screen:stream 16379 [2B211JEHN08476] Shell keeping minicap running ended unexpectedly
2024-05-30T08:25:20.652Z INF/device:plugins:screen:stream 16379 [2B211JEHN08476] Disconnecting from minicap service
2024-05-30T08:25:20.656Z INF/device:plugins:screen:stream 16379 [2B211JEHN08476] Stopping minicap service
2024-05-30T08:25:20.658Z INF/device:plugins:screen:stream 16379 [2B211JEHN08476] Launching screen service minicap-apk
2024-05-30T08:25:20.658Z INF/device:resources:minicap 16379 [2B211JEHN08476] CLASSPATH=/data/local/tmp/minicap.apk app_process /system/bin io.devicefarmer.minicap.Main -S -Q 80 -P 1080x2400@865x865/0
2024-05-30T08:25:21.078Z INF/device:plugins:screen:stream 16379 [2B211JEHN08476] minicap says: "03:25:22.323 [main] INFO  BaseProvider - framePeriodMs: 0"
2024-05-30T08:25:21.081Z INF/device:plugins:screen:stream 16379 [2B211JEHN08476] minicap says: "PID: 20496"
2024-05-30T08:25:21.082Z INF/device:plugins:screen:stream 16379 [2B211JEHN08476] minicap says: "INFO: 1080x2400@389x865/0"
2024-05-30T08:25:21.083Z INF/device:plugins:screen:stream 16379 [2B211JEHN08476] minicap says: "03:25:22.331 [main] INFO  Main - Listening on socket : minicap"
2024-05-30T08:25:21.086Z INF/device:plugins:screen:stream 16379 [2B211JEHN08476] Connecting to minicap service
2024-05-30T08:25:21.106Z INF/device:plugins:screen:stream 16379 [2B211JEHN08476] Reading minicap banner
2024-05-30T08:25:21.150Z FTL/device:plugins:screen:stream 16379 [2B211JEHN08476] minicap error: "03:25:22.366 [main] ERROR SurfaceControl - SurfaceControl error"
2024-05-30T08:25:21.152Z FTL/util:lifecycle 16379 [2B211JEHN08476] Shutting down due to fatal error
2024-05-30T08:25:21.172Z INF/provider 14318 [*] Cleaning up device worker "2B211JEHN08476"
2024-05-30T08:25:21.173Z ERR/provider 14318 [*] Device worker "2B211JEHN08476" died with code 1
2024-05-30T08:25:21.173Z INF/provider 14318 [*] Restarting device worker "2B211JEHN08476"
2024-05-30T08:25:22.262Z INF/device:support:push 13087 [2B211JEHN08476] Sending output to "tcp://127.0.0.1:7116"
2024-05-30T08:25:22.268Z INF/device 13087 [2B211JEHN08476] Preparing device
2024-05-30T08:25:23.000Z INF/device:support:sub 13087 [2B211JEHN08476] Receiving input from "tcp://127.0.0.1:7114"
2024-05-30T08:25:23.002Z INF/device:support:sub 13087 [2B211JEHN08476] Subscribing to permanent channel "*ALL"
2024-05-30T08:25:23.110Z INF/device:support:properties 13087 [2B211JEHN08476] Loading properties
2024-05-30T08:25:23.206Z INF/device:support:sdk 13087 [2B211JEHN08476] Supports SDK 34
2024-05-30T08:25:23.209Z INF/device:support:abi 13087 [2B211JEHN08476] Supports ABIs arm64-v8a
2024-05-30T08:25:23.574Z INF/device:resources:minicap 13087 [2B211JEHN08476] Installing "/usr/lib/node_modules/stf/node_modules/@devicefarmer/minicap-prebuilt/prebuilt/noarch/minicap.apk" as "/data/local/tmp/minicap.apk"
2024-05-30T08:25:24.039Z INF/device:resources:service 13087 [2B211JEHN08476] Checking whether we need to install STFService
2024-05-30T08:25:24.168Z INF/device:resources:service 13087 [2B211JEHN08476] Running version check
2024-05-30T08:25:25.459Z DBG/device:resources:service 13087 [2B211JEHN08476] output of granting permissions to STFService: 
2024-05-30T08:25:25.461Z INF/device:resources:service 13087 [2B211JEHN08476] STFService up to date
2024-05-30T08:25:25.463Z INF/device:plugins:service 13087 [2B211JEHN08476] Launching agent
2024-05-30T08:25:26.215Z INF/device:plugins:service 13087 [2B211JEHN08476] Agent says: "Starting minitouch agent"
2024-05-30T08:25:26.217Z INF/device:plugins:service 13087 [2B211JEHN08476] Agent says: "Listening on @stfagent"
2024-05-30T08:25:26.241Z INF/device:plugins:service 13087 [2B211JEHN08476] Launching service
2024-05-30T08:25:26.243Z INF/device:plugins:service 13087 [2B211JEHN08476] using 'start-foreground-service' command for API 34
2024-05-30T08:25:26.250Z INF/device:plugins:service 13087 [2B211JEHN08476] Agent says: "InputClient started"
2024-05-30T08:25:26.460Z INF/device:plugins:display 13087 [2B211JEHN08476] Reading display info
2024-05-30T08:25:26.515Z INF/device:plugins:phone 13087 [2B211JEHN08476] Fetching phone info
2024-05-30T08:25:26.534Z INF/device:plugins:identity 13087 [2B211JEHN08476] Solving identity
2024-05-30T08:25:26.542Z INF/device:plugins:solo 13087 [2B211JEHN08476] Subscribing to permanent channel "xXrV0soDWKRKxGmmpMm3i53KGtE="
2024-05-30T08:25:26.543Z INF/device:plugins:screen:stream 13087 [2B211JEHN08476] ScreenGrabber option set to minicap-bin
2024-05-30T08:25:26.544Z INF/device:plugins:screen:stream 13087 [2B211JEHN08476] ScreenFrameRate option set to -1
2024-05-30T08:25:26.545Z INF/device:plugins:screen:stream 13087 [2B211JEHN08476] Starting WebSocket server on port 7448
2024-05-30T08:26:09.870Z INF/device:plugins:screen:stream 15943 [2B211JEHN08476] creating FrameProducer: minicap-bin
2024-05-30T08:26:10.215Z INF/device:resources:minitouch 15943 [2B211JEHN08476] Installing "/usr/lib/node_modules/stf/node_modules/@devicefarmer/minitouch-prebuilt/prebuilt/arm64-v8a/bin/minitouch" as "/data/local/tmp/minitouch"
2024-05-30T08:26:10.450Z WRN/device:plugins:data 15943 [2B211JEHN08476] Unable to find device data {
  serial: '2B211JEHN08476',
  platform: 'Android',
  manufacturer: 'GOOGLE',
  operator: 'xxxxxxxxxxxxxx,',
  model: 'Pixel 7a',
  version: '14',
  abi: 'arm64-v8a',
  sdk: '34',
  product: 'lynx',
  cpuPlatform: 'gs201',
  openGLESVersion: '3.2',
  marketName: 'lynx',
  display: {
    id: 0,
    width: 1080,
    height: 2400,
    xdpi: 391.885009765625,
    ydpi: 409.12701416015625,
    fps: 60,
    density: 2.625,
    rotation: 0,
    secure: true,
    size: 6.481261132826809,
    url: 'ws://10.119.102.86:7448'
  },
  phone: [Object: null prototype] {}
}
2024-05-30T08:26:10.456Z INF/device:plugins:touch 15943 [2B211JEHN08476] Touch origin is top left
2024-05-30T08:26:10.457Z INF/device:plugins:touch 15943 [2B211JEHN08476] Requesting touch consumer to start
2024-05-30T08:26:10.458Z INF/device:plugins:touch 15943 [2B211JEHN08476] Launching touch service
2024-05-30T08:26:10.497Z INF/device:plugins:touch 15943 [2B211JEHN08476] Connecting to minitouch service
2024-05-30T08:26:10.561Z INF/device:plugins:touch 15943 [2B211JEHN08476] minitouch says: "open: Permission denied"
2024-05-30T08:26:10.562Z INF/device:plugins:touch 15943 [2B211JEHN08476] minitouch says: "Unable to open device /dev/input/event4 for inspectionopen: Permission denied"
2024-05-30T08:26:10.563Z INF/device:plugins:touch 15943 [2B211JEHN08476] minitouch says: "Unable to open device /dev/input/event3 for inspectionopen: Permission denied"
2024-05-30T08:26:10.564Z INF/device:plugins:touch 15943 [2B211JEHN08476] minitouch says: "Unable to open device /dev/input/event2 for inspectionopen: Permission denied"
2024-05-30T08:26:10.564Z INF/device:plugins:touch 15943 [2B211JEHN08476] minitouch says: "Unable to open device /dev/input/event1 for inspectionopen: Permission denied"
2024-05-30T08:26:10.565Z INF/device:plugins:touch 15943 [2B211JEHN08476] minitouch says: "Unable to open device /dev/input/event0 for inspectionUnable to find a suitable touch device"
2024-05-30T08:26:10.566Z INF/device:plugins:touch 15943 [2B211JEHN08476] minitouch says: "using Android InputManager"
2024-05-30T08:26:10.638Z INF/device:plugins:touch 15943 [2B211JEHN08476] Reading minitouch banner
2024-05-30T08:26:10.682Z INF/device:plugins:touch 15943 [2B211JEHN08476] minitouch says: "Connection established"
2024-05-30T08:26:10.688Z INF/device:plugins:vnc 15943 [2B211JEHN08476] Starting VNC server on port 7450
2024-05-30T08:26:10.690Z INF/device:plugins:browser 15943 [2B211JEHN08476] Loading browser list
2024-05-30T08:26:10.760Z INF/device:plugins:browser 15943 [2B211JEHN08476] Updating browser list
2024-05-30T08:26:10.763Z INF/device:plugins:mute 15943 [2B211JEHN08476] Will not mute master volume
2024-05-30T08:26:11.104Z INF/device:resources:minirev 15943 [2B211JEHN08476] Installing "/usr/lib/node_modules/stf/vendor/minirev/arm64-v8a/minirev" as "/data/local/tmp/minirev"
2024-05-30T08:26:11.332Z INF/device:plugins:forward 15943 [2B211JEHN08476] Launching reverse port forwarding service
2024-05-30T08:26:11.376Z INF/device:plugins:forward 15943 [2B211JEHN08476] Connecting to reverse port forwarding service
2024-05-30T08:26:11.572Z INF/device 15943 [2B211JEHN08476] Fully operational

`

Below is a Google Pixel Fold on Android 14

`2024-05-30T07:55:00.737Z INF/device 14982 [32031FDHS0000H] Preparing device
2024-05-30T07:55:01.030Z INF/device:support:sub 14982 [32031FDHS0000H] Receiving input from "tcp://127.0.0.1:7114"
2024-05-30T07:55:01.031Z INF/device:support:sub 14982 [32031FDHS0000H] Subscribing to permanent channel "*ALL"
2024-05-30T07:55:01.133Z INF/device:support:properties 14982 [32031FDHS0000H] Loading properties
2024-05-30T07:55:01.230Z INF/device:support:sdk 14982 [32031FDHS0000H] Supports SDK 34
2024-05-30T07:55:01.231Z INF/device:support:abi 14982 [32031FDHS0000H] Supports ABIs arm64-v8a
2024-05-30T07:55:01.542Z INF/device:resources:minicap 14982 [32031FDHS0000H] Installing "/usr/lib/node_modules/stf/node_modules/@devicefarmer/minicap-prebuilt/prebuilt/noarch/minicap.apk" as "/data/local/tmp/minicap.apk"
2024-05-30T07:55:01.983Z INF/device:resources:service 14982 [32031FDHS0000H] Checking whether we need to install STFService
2024-05-30T07:55:02.086Z INF/device:resources:service 14982 [32031FDHS0000H] Running version check
2024-05-30T07:55:03.286Z DBG/device:resources:service 14982 [32031FDHS0000H] output of granting permissions to STFService: 
2024-05-30T07:55:03.287Z INF/device:resources:service 14982 [32031FDHS0000H] STFService up to date
2024-05-30T07:55:03.289Z INF/device:plugins:service 14982 [32031FDHS0000H] Launching agent
2024-05-30T07:55:04.031Z INF/device:plugins:service 14982 [32031FDHS0000H] Agent says: "Starting minitouch agent"
2024-05-30T07:55:04.031Z INF/device:plugins:service 14982 [32031FDHS0000H] Agent says: "Listening on @stfagent"
2024-05-30T07:55:04.173Z INF/device:plugins:service 14982 [32031FDHS0000H] Launching service
2024-05-30T07:55:04.174Z INF/device:plugins:service 14982 [32031FDHS0000H] using 'start-foreground-service' command for API 34
2024-05-30T07:55:04.208Z INF/device:plugins:service 14982 [32031FDHS0000H] Agent says: "InputClient started"
2024-05-30T07:55:04.409Z INF/device:plugins:display 14982 [32031FDHS0000H] Reading display info
2024-05-30T07:55:04.489Z INF/device:plugins:phone 14982 [32031FDHS0000H] Fetching phone info
2024-05-30T07:55:04.512Z INF/device:plugins:identity 14982 [32031FDHS0000H] Solving identity
2024-05-30T07:55:04.520Z INF/device:plugins:solo 14982 [32031FDHS0000H] Subscribing to permanent channel "YFwoG8uFzHH77YCZeWDraYVvago="
2024-05-30T07:55:04.538Z INF/device:plugins:screen:stream 14982 [32031FDHS0000H] ScreenGrabber option set to minicap-bin
2024-05-30T07:55:04.539Z INF/device:plugins:screen:stream 14982 [32031FDHS0000H] ScreenFrameRate option set to -1
2024-05-30T07:55:04.540Z INF/device:plugins:screen:stream 14982 [32031FDHS0000H] Starting WebSocket server on port 7408
2024-05-30T07:55:04.544Z INF/device:plugins:screen:stream 14982 [32031FDHS0000H] creating FrameProducer: minicap-bin
2024-05-30T07:55:04.873Z INF/device:resources:minitouch 14982 [32031FDHS0000H] Installing "/usr/lib/node_modules/stf/node_modules/@devicefarmer/minitouch-prebuilt/prebuilt/arm64-v8a/bin/minitouch" as "/data/local/tmp/minitouch"
2024-05-30T07:55:05.311Z WRN/device:plugins:data 14982 [32031FDHS0000H] Unable to find device data {
  serial: '32031FDHS0000H',
  platform: 'Android',
  manufacturer: 'GOOGLE',
  operator: 'xxxxxx,',
  model: 'Pixel Fold',
  version: '14',
  abi: 'arm64-v8a',
  sdk: '34',
  product: 'felix',
  cpuPlatform: 'gs201',
  openGLESVersion: '3.2',
  marketName: 'felix',
  display: {
    id: 0,
    width: 1080,
    height: 2092,
    xdpi: 409.4320068359375,
    ydpi: 408.7439880371094,
    fps: 60,
    density: 2.625,
    rotation: 0,
    secure: true,
    size: 5.757875032616882,
    url: 'ws://10.119.102.86:7408'
  },
  phone: [Object: null prototype] {}
}
2024-05-30T07:55:05.316Z INF/device:plugins:touch 14982 [32031FDHS0000H] Touch origin is top left
2024-05-30T07:55:05.318Z INF/device:plugins:touch 14982 [32031FDHS0000H] Requesting touch consumer to start
2024-05-30T07:55:05.319Z INF/device:plugins:touch 14982 [32031FDHS0000H] Launching touch service
2024-05-30T07:55:05.399Z INF/device:plugins:touch 14982 [32031FDHS0000H] Connecting to minitouch service
2024-05-30T07:55:05.424Z INF/device:plugins:touch 14982 [32031FDHS0000H] minitouch says: "open: Permission denied"
2024-05-30T07:55:05.424Z INF/device:plugins:touch 14982 [32031FDHS0000H] minitouch says: "Unable to open device /dev/input/event7 for inspectionopen: Permission denied"
2024-05-30T07:55:05.472Z INF/device:plugins:touch 14982 [32031FDHS0000H] minitouch says: "Unable to open device /dev/input/event6 for inspectionopen: Permission denied"
2024-05-30T07:55:05.473Z INF/device:plugins:touch 14982 [32031FDHS0000H] minitouch says: "Unable to open device /dev/input/event5 for inspectionopen: Permission denied"
2024-05-30T07:55:05.473Z INF/device:plugins:touch 14982 [32031FDHS0000H] minitouch says: "Unable to open device /dev/input/event4 for inspectionopen: Permission denied"
2024-05-30T07:55:05.473Z INF/device:plugins:touch 14982 [32031FDHS0000H] minitouch says: "Unable to open device /dev/input/event3 for inspectionopen: Permission denied"
2024-05-30T07:55:05.474Z INF/device:plugins:touch 14982 [32031FDHS0000H] minitouch says: "Unable to open device /dev/input/event1 for inspectionopen: Permission denied"
2024-05-30T07:55:05.475Z INF/device:plugins:touch 14982 [32031FDHS0000H] minitouch says: "Unable to open device /dev/input/event0 for inspectionopen: Permission denied"
2024-05-30T07:55:05.475Z INF/device:plugins:touch 14982 [32031FDHS0000H] minitouch says: "Unable to open device /dev/input/event2 for inspectionUnable to find a suitable touch device"
2024-05-30T07:55:05.476Z INF/device:plugins:touch 14982 [32031FDHS0000H] minitouch says: "using Android InputManager"
2024-05-30T07:55:05.508Z INF/device:plugins:touch 14982 [32031FDHS0000H] Reading minitouch banner
2024-05-30T07:55:05.544Z INF/device:plugins:touch 14982 [32031FDHS0000H] minitouch says: "Connection established"
2024-05-30T07:55:05.550Z INF/device:plugins:vnc 14982 [32031FDHS0000H] Starting VNC server on port 7410
2024-05-30T07:55:05.553Z INF/device:plugins:browser 14982 [32031FDHS0000H] Loading browser list
2024-05-30T07:55:05.615Z INF/device:plugins:browser 14982 [32031FDHS0000H] Updating browser list
2024-05-30T07:55:05.617Z INF/device:plugins:mute 14982 [32031FDHS0000H] Will not mute master volume
2024-05-30T07:55:06.003Z INF/device:resources:minirev 14982 [32031FDHS0000H] Installing "/usr/lib/node_modules/stf/vendor/minirev/arm64-v8a/minirev" as "/data/local/tmp/minirev"
2024-05-30T07:55:06.247Z INF/device:plugins:forward 14982 [32031FDHS0000H] Launching reverse port forwarding service
2024-05-30T07:55:06.300Z INF/device:plugins:forward 14982 [32031FDHS0000H] Connecting to reverse port forwarding service
2024-05-30T07:55:06.339Z INF/device 14982 [32031FDHS0000H] Fully operational
2024-05-30T07:55:07.404Z INF/provider 14226 [*] Providing all 1 device(s)
2024-05-30T08:31:28.308Z IMP/device:plugins:group 14982 [32031FDHS0000H] Now owned by "[email protected]"
2024-05-30T08:31:28.309Z INF/device:plugins:group 14982 [32031FDHS0000H] Subscribing to group channel "27wYow6vQ7KHx53MvmzFQw=="
2024-05-30T08:31:29.689Z INF/device:plugins:screen:stream 14982 [32031FDHS0000H] Setting frame producer projection to 754x754
2024-05-30T08:31:29.692Z INF/device:plugins:screen:stream 14982 [32031FDHS0000H] Requesting frame producer to start
2024-05-30T08:31:29.693Z INF/device:plugins:screen:stream 14982 [32031FDHS0000H] Launching screen service minicap-bin
2024-05-30T08:31:29.694Z ERR/device:resources:minicap 14982 [32031FDHS0000H] Missing resources/unknown minicap grabber: minicap-bin
2024-05-30T08:31:29.694Z INF/device:resources:minicap 14982 [32031FDHS0000H] undefined
2024-05-30T08:31:29.776Z INF/device:plugins:screen:stream 14982 [32031FDHS0000H] minicap says: "/system/bin/sh: undefined: inaccessible or not found"
2024-05-30T08:31:29.778Z WRN/device:plugins:screen:stream 14982 [32031FDHS0000H] Shell keeping minicap running ended unexpectedly
2024-05-30T08:31:34.739Z INF/device:plugins:screen:stream 14982 [32031FDHS0000H] Disconnecting from minicap service
2024-05-30T08:31:34.740Z INF/device:plugins:screen:stream 14982 [32031FDHS0000H] Stopping minicap service
2024-05-30T08:31:34.741Z INF/device:plugins:screen:stream 14982 [32031FDHS0000H] Launching screen service minicap-apk
2024-05-30T08:31:34.742Z INF/device:resources:minicap 14982 [32031FDHS0000H] CLASSPATH=/data/local/tmp/minicap.apk app_process /system/bin io.devicefarmer.minicap.Main -S -Q 80 -P 1080x2092@754x754/0
2024-05-30T08:31:35.112Z INF/device:plugins:screen:stream 14982 [32031FDHS0000H] minicap says: "03:31:34.942 [main] INFO  BaseProvider - framePeriodMs: 0"
2024-05-30T08:31:35.114Z INF/device:plugins:screen:stream 14982 [32031FDHS0000H] minicap says: "PID: 26313"
2024-05-30T08:31:35.115Z INF/device:plugins:screen:stream 14982 [32031FDHS0000H] minicap says: "INFO: 1080x2092@389x754/0"
2024-05-30T08:31:35.116Z INF/device:plugins:screen:stream 14982 [32031FDHS0000H] minicap says: "03:31:34.950 [main] INFO  Main - Listening on socket : minicap"
2024-05-30T08:31:35.117Z INF/device:plugins:screen:stream 14982 [32031FDHS0000H] Connecting to minicap service
2024-05-30T08:31:35.136Z INF/device:plugins:screen:stream 14982 [32031FDHS0000H] Reading minicap banner
2024-05-30T08:31:35.179Z FTL/device:plugins:screen:stream 14982 [32031FDHS0000H] minicap error: "03:31:34.982 [main] ERROR SurfaceControl - SurfaceControl error"
2024-05-30T08:31:35.181Z FTL/util:lifecycle 14982 [32031FDHS0000H] Shutting down due to fatal error
2024-05-30T08:31:35.197Z INF/provider 14226 [*] Cleaning up device worker "32031FDHS0000H"
2024-05-30T08:31:35.198Z ERR/provider 14226 [*] Device worker "32031FDHS0000H" died with code 1
2024-05-30T08:31:35.198Z INF/provider 14226 [*] Restarting device worker "32031FDHS0000H"
2024-05-30T08:31:36.169Z INF/device:support:push 28393 [32031FDHS0000H] Sending output to "tcp://127.0.0.1:7116"
2024-05-30T08:31:36.174Z INF/device 28393 [32031FDHS0000H] Preparing device
2024-05-30T08:31:36.813Z INF/device:support:sub 28393 [32031FDHS0000H] Receiving input from "tcp://127.0.0.1:7114"
2024-05-30T08:31:36.817Z INF/device:support:sub 28393 [32031FDHS0000H] Subscribing to permanent channel "*ALL"
2024-05-30T08:31:36.923Z INF/device:support:properties 28393 [32031FDHS0000H] Loading properties
2024-05-30T08:31:37.023Z INF/device:support:sdk 28393 [32031FDHS0000H] Supports SDK 34
2024-05-30T08:31:37.025Z INF/device:support:abi 28393 [32031FDHS0000H] Supports ABIs arm64-v8a
2024-05-30T08:31:37.389Z INF/device:resources:minicap 28393 [32031FDHS0000H] Installing "/usr/lib/node_modules/stf/node_modules/@devicefarmer/minicap-prebuilt/prebuilt/noarch/minicap.apk" as "/data/local/tmp/minicap.apk"
2024-05-30T08:31:37.896Z INF/device:resources:service 28393 [32031FDHS0000H] Checking whether we need to install STFService
2024-05-30T08:31:37.999Z INF/device:resources:service 28393 [32031FDHS0000H] Running version check
2024-05-30T08:31:39.314Z DBG/device:resources:service 28393 [32031FDHS0000H] output of granting permissions to STFService: 
2024-05-30T08:31:39.316Z INF/device:resources:service 28393 [32031FDHS0000H] STFService up to date
2024-05-30T08:31:39.318Z INF/device:plugins:service 28393 [32031FDHS0000H] Launching agent
2024-05-30T08:31:40.087Z INF/device:plugins:service 28393 [32031FDHS0000H] Agent says: "Starting minitouch agent"
2024-05-30T08:31:40.089Z INF/device:plugins:service 28393 [32031FDHS0000H] Agent says: "Listening on @stfagent"
2024-05-30T08:31:40.215Z INF/device:plugins:service 28393 [32031FDHS0000H] Launching service
2024-05-30T08:31:40.217Z INF/device:plugins:service 28393 [32031FDHS0000H] using 'start-foreground-service' command for API 34
2024-05-30T08:31:40.223Z INF/device:plugins:service 28393 [32031FDHS0000H] Agent says: "InputClient started"
2024-05-30T08:31:40.447Z INF/device:plugins:display 28393 [32031FDHS0000H] Reading display info
2024-05-30T08:31:40.505Z INF/device:plugins:phone 28393 [32031FDHS0000H] Fetching phone info
2024-05-30T08:31:40.530Z INF/device:plugins:identity 28393 [32031FDHS0000H] Solving identity
2024-05-30T08:31:40.538Z INF/device:plugins:solo 28393 [32031FDHS0000H] Subscribing to permanent channel "YFwoG8uFzHH77YCZeWDraYVvago="
2024-05-30T08:31:40.539Z INF/device:plugins:screen:stream 28393 [32031FDHS0000H] ScreenGrabber option set to minicap-bin
2024-05-30T08:31:40.540Z INF/device:plugins:screen:stream 28393 [32031FDHS0000H] ScreenFrameRate option set to -1
2024-05-30T08:31:40.541Z INF/device:plugins:screen:stream 28393 [32031FDHS0000H] Starting WebSocket server on port 7412
2024-05-30T08:31:40.546Z INF/device:plugins:screen:stream 28393 [32031FDHS0000H] creating FrameProducer: minicap-bin
2024-05-30T08:31:40.871Z INF/device:resources:minitouch 28393 [32031FDHS0000H] Installing "/usr/lib/node_modules/stf/node_modules/@devicefarmer/minitouch-prebuilt/prebuilt/arm64-v8a/bin/minitouch" as "/data/local/tmp/minitouch"
2024-05-30T08:31:41.062Z WRN/device:plugins:data 28393 [32031FDHS0000H] Unable to find device data {
  serial: '32031FDHS0000H',
  platform: 'Android',
  manufacturer: 'GOOGLE',
  operator: 'xxxxxxxx,',
  model: 'Pixel Fold',
  version: '14',
  abi: 'arm64-v8a',
  sdk: '34',
  product: 'felix',
  cpuPlatform: 'gs201',
  openGLESVersion: '3.2',
  marketName: 'felix',
  display: {
    id: 0,
    width: 1080,
    height: 2092,
    xdpi: 409.4320068359375,
    ydpi: 408.7439880371094,
    fps: 60,
    density: 2.625,
    rotation: 0,
    secure: true,
    size: 5.757875032616882,
    url: 'ws://10.119.102.86:7412'
  },
  phone: [Object: null prototype] {}
}
2024-05-30T08:31:41.068Z INF/device:plugins:touch 28393 [32031FDHS0000H] Touch origin is top left
2024-05-30T08:31:41.068Z INF/device:plugins:touch 28393 [32031FDHS0000H] Requesting touch consumer to start
2024-05-30T08:31:41.069Z INF/device:plugins:touch 28393 [32031FDHS0000H] Launching touch service
2024-05-30T08:31:41.104Z INF/device:plugins:touch 28393 [32031FDHS0000H] Connecting to minitouch service
2024-05-30T08:31:41.171Z INF/device:plugins:touch 28393 [32031FDHS0000H] minitouch says: "open: Permission denied"
2024-05-30T08:31:41.172Z INF/device:plugins:touch 28393 [32031FDHS0000H] minitouch says: "Unable to open device /dev/input/event7 for inspectionopen: Permission denied"
2024-05-30T08:31:41.173Z INF/device:plugins:touch 28393 [32031FDHS0000H] minitouch says: "Unable to open device /dev/input/event6 for inspectionopen: Permission denied"
2024-05-30T08:31:41.174Z INF/device:plugins:touch 28393 [32031FDHS0000H] minitouch says: "Unable to open device /dev/input/event5 for inspectionopen: Permission denied"
2024-05-30T08:31:41.175Z INF/device:plugins:touch 28393 [32031FDHS0000H] minitouch says: "Unable to open device /dev/input/event4 for inspectionopen: Permission denied"
2024-05-30T08:31:41.175Z INF/device:plugins:touch 28393 [32031FDHS0000H] minitouch says: "Unable to open device /dev/input/event3 for inspectionopen: Permission denied"
2024-05-30T08:31:41.177Z INF/device:plugins:touch 28393 [32031FDHS0000H] minitouch says: "Unable to open device /dev/input/event1 for inspectionopen: Permission denied"
2024-05-30T08:31:41.177Z INF/device:plugins:touch 28393 [32031FDHS0000H] minitouch says: "Unable to open device /dev/input/event0 for inspectionopen: Permission denied"
2024-05-30T08:31:41.178Z INF/device:plugins:touch 28393 [32031FDHS0000H] minitouch says: "Unable to open device /dev/input/event2 for inspectionUnable to find a suitable touch device"
2024-05-30T08:31:41.179Z INF/device:plugins:touch 28393 [32031FDHS0000H] minitouch says: "using Android InputManager"
2024-05-30T08:31:41.304Z INF/device:plugins:touch 28393 [32031FDHS0000H] Reading minitouch banner
2024-05-30T08:31:41.347Z INF/device:plugins:touch 28393 [32031FDHS0000H] minitouch says: "Connection established"
2024-05-30T08:31:41.352Z INF/device:plugins:vnc 28393 [32031FDHS0000H] Starting VNC server on port 7414
2024-05-30T08:31:41.355Z INF/device:plugins:browser 28393 [32031FDHS0000H] Loading browser list
2024-05-30T08:31:41.409Z INF/device:plugins:browser 28393 [32031FDHS0000H] Updating browser list
2024-05-30T08:31:41.412Z INF/device:plugins:mute 28393 [32031FDHS0000H] Will not mute master volume
2024-05-30T08:31:41.732Z INF/device:resources:minirev 28393 [32031FDHS0000H] Installing "/usr/lib/node_modules/stf/vendor/minirev/arm64-v8a/minirev" as "/data/local/tmp/minirev"
2024-05-30T08:31:41.956Z INF/device:plugins:forward 28393 [32031FDHS0000H] Launching reverse port forwarding service
2024-05-30T08:31:41.990Z INF/device:plugins:forward 28393 [32031FDHS0000H] Connecting to reverse port forwarding service
2024-05-30T08:31:42.180Z INF/device 28393 [32031FDHS0000H] Fully operational

`

For comparison, below is a Samsung device - Android 14 on the the stf server

2024-05-30T09:20:48.968Z INF/provider 32178 [*] Subscribing to permanent channel "JilUJQ2wRCeecltjJRk4zA=="
2024-05-30T09:20:48.979Z INF/provider 32178 [*] Sending output to "tcp://127.0.0.1:7116"
2024-05-30T09:20:48.981Z INF/provider 32178 [*] Receiving input from "tcp://127.0.0.1:7114"
2024-05-30T09:20:48.992Z INF/provider 32178 [*] Tracking devices
2024-05-30T09:20:49.036Z INF/provider 32178 [*] Found device "R5CW123EVLT" (device)
2024-05-30T09:20:49.053Z INF/provider 32178 [*] Registered device "R5CW123EVLT"
2024-05-30T09:20:49.604Z INF/device:support:push 32383 [R5CW123EVLT] Sending output to "tcp://127.0.0.1:7116"
2024-05-30T09:20:49.610Z INF/device 32383 [R5CW123EVLT] Preparing device
2024-05-30T09:20:50.267Z INF/device:support:sub 32383 [R5CW123EVLT] Receiving input from "tcp://127.0.0.1:7114"
2024-05-30T09:20:50.270Z INF/device:support:sub 32383 [R5CW123EVLT] Subscribing to permanent channel "*ALL"
2024-05-30T09:20:50.367Z INF/device:support:properties 32383 [R5CW123EVLT] Loading properties
2024-05-30T09:20:50.453Z INF/device:support:sdk 32383 [R5CW123EVLT] Supports SDK 34
2024-05-30T09:20:50.455Z INF/device:support:abi 32383 [R5CW123EVLT] Supports ABIs arm64-v8a, armeabi-v7a, armeabi
2024-05-30T09:20:50.760Z INF/device:resources:minicap 32383 [R5CW123EVLT] Installing "/usr/lib/node_modules/stf/node_modules/@devicefarmer/minicap-prebuilt/prebuilt/noarch/minicap.apk" as "/data/local/tmp/minicap.apk"
2024-05-30T09:20:51.263Z INF/device:resources:service 32383 [R5CW123EVLT] Checking whether we need to install STFService
2024-05-30T09:20:51.382Z INF/device:resources:service 32383 [R5CW123EVLT] Running version check
2024-05-30T09:20:52.626Z DBG/device:resources:service 32383 [R5CW123EVLT] output of granting permissions to STFService: 
2024-05-30T09:20:52.627Z INF/device:resources:service 32383 [R5CW123EVLT] STFService up to date
2024-05-30T09:20:52.629Z INF/device:plugins:service 32383 [R5CW123EVLT] Launching agent
2024-05-30T09:20:53.364Z INF/device:plugins:service 32383 [R5CW123EVLT] Agent says: "Starting minitouch agent"
2024-05-30T09:20:53.408Z INF/device:plugins:service 32383 [R5CW123EVLT] Agent says: "Listening on @stfagent"
2024-05-30T09:20:53.531Z INF/device:plugins:service 32383 [R5CW123EVLT] Launching service
2024-05-30T09:20:53.533Z INF/device:plugins:service 32383 [R5CW123EVLT] using 'start-foreground-service' command for API 34
2024-05-30T09:20:53.538Z INF/device:plugins:service 32383 [R5CW123EVLT] Agent says: "InputClient started"
2024-05-30T09:20:53.746Z INF/device:plugins:display 32383 [R5CW123EVLT] Reading display info
2024-05-30T09:20:53.801Z INF/device:plugins:phone 32383 [R5CW123EVLT] Fetching phone info
2024-05-30T09:20:53.821Z INF/device:plugins:identity 32383 [R5CW123EVLT] Solving identity
2024-05-30T09:20:53.829Z INF/device:plugins:solo 32383 [R5CW123EVLT] Subscribing to permanent channel "CfCAa6iizy1rO2MNCxTE4F23BRI="
2024-05-30T09:20:53.831Z INF/device:plugins:screen:stream 32383 [R5CW123EVLT] ScreenGrabber option set to minicap-bin
2024-05-30T09:20:53.831Z INF/device:plugins:screen:stream 32383 [R5CW123EVLT] ScreenFrameRate option set to -1
2024-05-30T09:20:53.832Z INF/device:plugins:screen:stream 32383 [R5CW123EVLT] Starting WebSocket server on port 7400
2024-05-30T09:20:53.836Z INF/device:plugins:screen:stream 32383 [R5CW123EVLT] creating FrameProducer: minicap-bin
2024-05-30T09:20:54.132Z INF/device:resources:minitouch 32383 [R5CW123EVLT] Installing "/usr/lib/node_modules/stf/node_modules/@devicefarmer/minitouch-prebuilt/prebuilt/arm64-v8a/bin/minitouch" as "/data/local/tmp/minitouch"
2024-05-30T09:20:54.359Z WRN/device:plugins:data 32383 [R5CW123EVLT] Unable to find device data {
  serial: 'R5CW123EVLT',
  platform: 'Android',
  manufacturer: 'SAMSUNG',
  operator: 'xxxxxxxxxx',
  model: 'SM-S918U',
  version: '14',
  abi: 'arm64-v8a',
  sdk: '34',
  product: 'dm3qsqw',
  cpuPlatform: 'kalama',
  openGLESVersion: '3.2',
  marketName: 'Galaxy S23 Ultra',
  display: {
    id: 0,
    width: 1080,
    height: 2316,
    xdpi: 375.7807312011719,
    ydpi: 377.09173583984375,
    fps: 60.000003814697266,
    density: 2.8125,
    rotation: 0,
    secure: true,
    size: 6.780926216661432,
    url: 'ws://10.119.102.86:7400'
  },
  phone: [Object: null prototype] {}
}
2024-05-30T09:20:54.364Z INF/device:plugins:touch 32383 [R5CW123EVLT] Touch origin is top left
2024-05-30T09:20:54.365Z INF/device:plugins:touch 32383 [R5CW123EVLT] Requesting touch consumer to start
2024-05-30T09:20:54.366Z INF/device:plugins:touch 32383 [R5CW123EVLT] Launching touch service
2024-05-30T09:20:54.394Z INF/device:plugins:touch 32383 [R5CW123EVLT] Connecting to minitouch service
2024-05-30T09:20:54.457Z INF/device:plugins:touch 32383 [R5CW123EVLT] minitouch says: "open: Permission denied"
2024-05-30T09:20:54.458Z INF/device:plugins:touch 32383 [R5CW123EVLT] minitouch says: "Unable to open device /dev/input/event11 for inspectionopen: Permission denied"
2024-05-30T09:20:54.460Z INF/device:plugins:touch 32383 [R5CW123EVLT] minitouch says: "Unable to open device /dev/input/event10 for inspectionopen: Permission denied"
2024-05-30T09:20:54.462Z INF/device:plugins:touch 32383 [R5CW123EVLT] minitouch says: "Unable to open device /dev/input/event9 for inspectionopen: Permission denied"
2024-05-30T09:20:54.464Z INF/device:plugins:touch 32383 [R5CW123EVLT] minitouch says: "Unable to open device /dev/input/event8 for inspectionopen: Permission denied"
2024-05-30T09:20:54.466Z INF/device:plugins:touch 32383 [R5CW123EVLT] minitouch says: "Unable to open device /dev/input/event7 for inspectionopen: Permission denied"
2024-05-30T09:20:54.467Z INF/device:plugins:touch 32383 [R5CW123EVLT] minitouch says: "Unable to open device /dev/input/event6 for inspectionopen: Permission denied"
2024-05-30T09:20:54.468Z INF/device:plugins:touch 32383 [R5CW123EVLT] minitouch says: "Unable to open device /dev/input/event5 for inspectionopen: Permission denied"
2024-05-30T09:20:54.469Z INF/device:plugins:touch 32383 [R5CW123EVLT] minitouch says: "Unable to open device /dev/input/event4 for inspectionopen: Permission denied"
2024-05-30T09:20:54.470Z INF/device:plugins:touch 32383 [R5CW123EVLT] minitouch says: "Unable to open device /dev/input/event3 for inspectionopen: Permission denied"
2024-05-30T09:20:54.470Z INF/device:plugins:touch 32383 [R5CW123EVLT] minitouch says: "Unable to open device /dev/input/event2 for inspectionopen: Permission denied"
2024-05-30T09:20:54.471Z INF/device:plugins:touch 32383 [R5CW123EVLT] minitouch says: "Unable to open device /dev/input/event1 for inspectionopen: Permission denied"
2024-05-30T09:20:54.472Z INF/device:plugins:touch 32383 [R5CW123EVLT] minitouch says: "Unable to open device /dev/input/event0 for inspectionUnable to find a suitable touch device"
2024-05-30T09:20:54.472Z INF/device:plugins:touch 32383 [R5CW123EVLT] minitouch says: "using Android InputManager"
2024-05-30T09:20:54.596Z INF/device:plugins:touch 32383 [R5CW123EVLT] Reading minitouch banner
2024-05-30T09:20:54.639Z INF/device:plugins:touch 32383 [R5CW123EVLT] minitouch says: "Connection established"
2024-05-30T09:20:54.645Z INF/device:plugins:vnc 32383 [R5CW123EVLT] Starting VNC server on port 7402
2024-05-30T09:20:54.648Z INF/device:plugins:browser 32383 [R5CW123EVLT] Loading browser list
2024-05-30T09:20:54.690Z INF/device:plugins:browser 32383 [R5CW123EVLT] Updating browser list
2024-05-30T09:20:54.691Z WRN/device:plugins:browser 32383 [R5CW123EVLT] Unmapped browser "com.airfind.deltabrowser"
2024-05-30T09:20:54.693Z INF/device:plugins:mute 32383 [R5CW123EVLT] Will not mute master volume
2024-05-30T09:20:55.071Z INF/device:resources:minirev 32383 [R5CW123EVLT] Installing "/usr/lib/node_modules/stf/vendor/minirev/arm64-v8a/minirev" as "/data/local/tmp/minirev"
2024-05-30T09:20:55.310Z INF/device:plugins:forward 32383 [R5CW123EVLT] Launching reverse port forwarding service
2024-05-30T09:20:55.340Z INF/device:plugins:forward 32383 [R5CW123EVLT] Connecting to reverse port forwarding service
2024-05-30T09:20:55.530Z INF/device 32383 [R5CW123EVLT] Fully operational
2024-05-30T09:20:59.043Z INF/provider 32178 [*] Providing all 1 device(s)
2024-05-30T09:21:25.317Z IMP/device:plugins:group 32383 [R5CW123EVLT] Now owned by "[email protected]"
2024-05-30T09:21:25.319Z INF/device:plugins:group 32383 [R5CW123EVLT] Subscribing to group channel "27wYow6vQ7KHx53MvmzFQw=="
2024-05-30T09:21:26.668Z INF/device:plugins:screen:stream 32383 [R5CW123EVLT] Setting frame producer projection to 834x834
2024-05-30T09:21:26.671Z INF/device:plugins:screen:stream 32383 [R5CW123EVLT] Requesting frame producer to start
2024-05-30T09:21:26.673Z INF/device:plugins:screen:stream 32383 [R5CW123EVLT] Launching screen service minicap-bin
2024-05-30T09:21:26.674Z ERR/device:resources:minicap 32383 [R5CW123EVLT] Missing resources/unknown minicap grabber: minicap-bin
2024-05-30T09:21:26.676Z INF/device:resources:minicap 32383 [R5CW123EVLT] undefined
2024-05-30T09:21:26.755Z INF/device:plugins:screen:stream 32383 [R5CW123EVLT] minicap says: "/system/bin/sh: undefined: inaccessible or not found"
2024-05-30T09:21:26.757Z WRN/device:plugins:screen:stream 32383 [R5CW123EVLT] Shell keeping minicap running ended unexpectedly
2024-05-30T09:21:31.718Z INF/device:plugins:screen:stream 32383 [R5CW123EVLT] Disconnecting from minicap service
2024-05-30T09:21:31.720Z INF/device:plugins:screen:stream 32383 [R5CW123EVLT] Stopping minicap service
2024-05-30T09:21:31.722Z INF/device:plugins:screen:stream 32383 [R5CW123EVLT] Launching screen service minicap-apk
2024-05-30T09:21:31.724Z INF/device:resources:minicap 32383 [R5CW123EVLT] CLASSPATH=/data/local/tmp/minicap.apk app_process /system/bin io.devicefarmer.minicap.Main -S -Q 80 -P 1080x2316@834x834/0
2024-05-30T09:21:32.052Z INF/device:plugins:screen:stream 32383 [R5CW123EVLT] minicap says: "04:21:31.776 [main] INFO  BaseProvider - framePeriodMs: 0"
2024-05-30T09:21:32.055Z INF/device:plugins:screen:stream 32383 [R5CW123EVLT] minicap says: "PID: 7847"
2024-05-30T09:21:32.056Z INF/device:plugins:screen:stream 32383 [R5CW123EVLT] minicap says: "INFO: 1080x2316@389x834/0"
2024-05-30T09:21:32.056Z INF/device:plugins:screen:stream 32383 [R5CW123EVLT] minicap says: "04:21:31.782 [main] INFO  Main - Listening on socket : minicap"
2024-05-30T09:21:32.056Z INF/device:plugins:screen:stream 32383 [R5CW123EVLT] Connecting to minicap service
2024-05-30T09:21:32.079Z INF/device:plugins:screen:stream 32383 [R5CW123EVLT] Reading minicap banner

image

@denis99999
Copy link

@KingRat0011 , it means if minicap-bin is not available then minicap-apk is used, you can control this behavior by setting the environment variable STF_PROVIDER_SCREEN_GRABBER while launching stf local .. service or by providing --screen-grabber option while launching stf provider .. service

@KingRat0011
Copy link
Author

Hi @denis99999 ,
Thanks for that, but what should the setting be for normal operation?
Regards

@denis99999
Copy link

@KingRat0011 , currently the default operation is to try minicap-bin first and if that fails minicap-apk is used.
In STF minicap-apk should be prefered because it is based on high level Android API and then demands less of modification of code when Android OS & SDK upgrade.

@KingRat0011
Copy link
Author

Hi @denis99999
Setting it like this,
node /usr/lib/node_modules/stf/bin/stf provider --name $cc_controller_id --no-cleanup --screen-grabber minicap-bin --min-port 7400 --max-port 7700 --connect-sub tcp://127.0.0.1:7114 --connect-push tcp://127.0.0.1:7116 --group-timeout 900 --public-ip ".STF_HOST." --storage-url http://127.0.0.1:7100/ --adb-host 127.0.0.1 --adb-port $cc_port_adb --vnc-initial-size 600x800 --mute-master never --allow-remote

when I open the device, I get this

2024-06-03T08:13:19.159Z INF/device 4025 [3B061JEKB06183] Preparing device
2024-06-03T08:13:19.808Z INF/device:support:sub 4025 [3B061JEKB06183] Receiving input from "tcp://127.0.0.1:7114"
2024-06-03T08:13:19.810Z INF/device:support:sub 4025 [3B061JEKB06183] Subscribing to permanent channel "*ALL"
2024-06-03T08:13:19.901Z INF/device:support:properties 4025 [3B061JEKB06183] Loading properties
2024-06-03T08:13:19.971Z INF/device:support:sdk 4025 [3B061JEKB06183] Supports SDK 34
2024-06-03T08:13:19.973Z INF/device:support:abi 4025 [3B061JEKB06183] Supports ABIs arm64-v8a
2024-06-03T08:13:20.192Z INF/device:resources:minicap 4025 [3B061JEKB06183] Installing "/usr/lib/node_modules/stf/node_modules/@devicefarmer/minicap-prebuilt/prebuilt/noarch/minicap.apk" as "/data/local/tmp/minicap.apk"
2024-06-03T08:13:20.693Z INF/device:resources:service 4025 [3B061JEKB06183] Checking whether we need to install STFService
2024-06-03T08:13:20.765Z INF/device:resources:service 4025 [3B061JEKB06183] Running version check
2024-06-03T08:13:21.923Z DBG/device:resources:service 4025 [3B061JEKB06183] output of granting permissions to STFService: 
2024-06-03T08:13:21.926Z INF/device:resources:service 4025 [3B061JEKB06183] STFService up to date
2024-06-03T08:13:21.928Z INF/device:plugins:service 4025 [3B061JEKB06183] Launching agent
2024-06-03T08:13:22.543Z INF/device:plugins:service 4025 [3B061JEKB06183] Agent says: "Starting minitouch agent"
2024-06-03T08:13:22.544Z INF/device:plugins:service 4025 [3B061JEKB06183] Agent says: "Listening on @stfagent"
2024-06-03T08:13:22.667Z INF/device:plugins:service 4025 [3B061JEKB06183] Launching service
2024-06-03T08:13:22.668Z INF/device:plugins:service 4025 [3B061JEKB06183] using 'start-foreground-service' command for API 34
2024-06-03T08:13:22.675Z INF/device:plugins:service 4025 [3B061JEKB06183] Agent says: "InputClient started"
2024-06-03T08:13:22.858Z INF/device:plugins:display 4025 [3B061JEKB06183] Reading display info
2024-06-03T08:13:22.913Z INF/device:plugins:phone 4025 [3B061JEKB06183] Fetching phone info
2024-06-03T08:13:22.932Z INF/device:plugins:identity 4025 [3B061JEKB06183] Solving identity
2024-06-03T08:13:22.940Z INF/device:plugins:solo 4025 [3B061JEKB06183] Subscribing to permanent channel "d4xQDWjvGPqIOI7UXAvB1YhoPVY="
2024-06-03T08:13:22.941Z INF/device:plugins:screen:stream 4025 [3B061JEKB06183] ScreenGrabber option set to minicap-bin
2024-06-03T08:13:22.942Z INF/device:plugins:screen:stream 4025 [3B061JEKB06183] ScreenFrameRate option set to -1
2024-06-03T08:13:22.943Z INF/device:plugins:screen:stream 4025 [3B061JEKB06183] Starting WebSocket server on port 7436
2024-06-03T08:13:22.947Z INF/device:plugins:screen:stream 4025 [3B061JEKB06183] creating FrameProducer: minicap-bin
2024-06-03T08:13:23.138Z INF/device:resources:minitouch 4025 [3B061JEKB06183] Installing "/usr/lib/node_modules/stf/node_modules/@devicefarmer/minitouch-prebuilt/prebuilt/arm64-v8a/bin/minitouch" as "/data/local/tmp/minitouch"
2024-06-03T08:13:23.359Z WRN/device:plugins:data 4025 [3B061JEKB06183] Unable to find device data {
  serial: '3B061JEKB06183',
  platform: 'Android',
  manufacturer: 'GOOGLE',
  operator: 'xxxxxxxxxxxx',
  model: 'Pixel 8a',
  version: '14',
  abi: 'arm64-v8a',
  sdk: '34',
  product: 'akita',
  cpuPlatform: 'zuma',
  openGLESVersion: '3.2',
  marketName: 'akita',
  display: {
    id: 0,
    width: 1080,
    height: 2400,
    xdpi: 391.885009765625,
    ydpi: 409.12701416015625,
    fps: 60,
    density: 2.625,
    rotation: 0,
    secure: true,
    size: 6.481261132826809,
    url: 'ws://10.119.102.86:7436'
  },
  phone: [Object: null prototype] {}
}
2024-06-03T08:13:23.365Z INF/device:plugins:touch 4025 [3B061JEKB06183] Touch origin is top left
2024-06-03T08:13:23.366Z INF/device:plugins:touch 4025 [3B061JEKB06183] Requesting touch consumer to start
2024-06-03T08:13:23.368Z INF/device:plugins:touch 4025 [3B061JEKB06183] Launching touch service
2024-06-03T08:13:23.395Z INF/device:plugins:touch 4025 [3B061JEKB06183] Connecting to minitouch service
2024-06-03T08:13:23.412Z INF/device:plugins:touch 4025 [3B061JEKB06183] minitouch says: "open: Permission denied"
2024-06-03T08:13:23.413Z INF/device:plugins:touch 4025 [3B061JEKB06183] minitouch says: "Unable to open device /dev/input/event3 for inspectionopen: Permission denied"
2024-06-03T08:13:23.414Z INF/device:plugins:touch 4025 [3B061JEKB06183] minitouch says: "Unable to open device /dev/input/event2 for inspectionopen: Permission denied"
2024-06-03T08:13:23.415Z INF/device:plugins:touch 4025 [3B061JEKB06183] minitouch says: "Unable to open device /dev/input/event1 for inspectionopen: Permission denied"
2024-06-03T08:13:23.416Z INF/device:plugins:touch 4025 [3B061JEKB06183] minitouch says: "Unable to open device /dev/input/event0 for inspectionUnable to find a suitable touch device"
2024-06-03T08:13:23.416Z INF/device:plugins:touch 4025 [3B061JEKB06183] minitouch says: "using Android InputManager"
2024-06-03T08:13:23.456Z INF/device:plugins:touch 4025 [3B061JEKB06183] minitouch says: "Connection established"
2024-06-03T08:13:23.459Z INF/device:plugins:touch 4025 [3B061JEKB06183] Reading minitouch banner
2024-06-03T08:13:23.466Z INF/device:plugins:vnc 4025 [3B061JEKB06183] Starting VNC server on port 7438
2024-06-03T08:13:23.468Z INF/device:plugins:browser 4025 [3B061JEKB06183] Loading browser list
2024-06-03T08:13:23.494Z INF/device:plugins:browser 4025 [3B061JEKB06183] Updating browser list
2024-06-03T08:13:23.497Z INF/device:plugins:mute 4025 [3B061JEKB06183] Will not mute master volume
2024-06-03T08:13:23.738Z INF/device:resources:minirev 4025 [3B061JEKB06183] Installing "/usr/lib/node_modules/stf/vendor/minirev/arm64-v8a/minirev" as "/data/local/tmp/minirev"
2024-06-03T08:13:23.952Z INF/device:plugins:forward 4025 [3B061JEKB06183] Launching reverse port forwarding service
2024-06-03T08:13:23.978Z INF/device:plugins:forward 4025 [3B061JEKB06183] Connecting to reverse port forwarding service
2024-06-03T08:13:24.002Z INF/device 4025 [3B061JEKB06183] Fully operational
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
2024-06-03T08:16:08.654Z IMP/device:plugins:group 4025 [3B061JEKB06183] Now owned by "[email protected]"
2024-06-03T08:16:08.655Z INF/device:plugins:group 4025 [3B061JEKB06183] Subscribing to group channel "27wYow6vQ7KHx53MvmzFQw=="
2024-06-03T08:16:09.992Z INF/device:plugins:screen:stream 4025 [3B061JEKB06183] Setting frame producer projection to 864x864
2024-06-03T08:16:09.993Z INF/device:plugins:screen:stream 4025 [3B061JEKB06183] Requesting frame producer to start
2024-06-03T08:16:09.993Z INF/device:plugins:screen:stream 4025 [3B061JEKB06183] Launching screen service minicap-bin
2024-06-03T08:16:09.993Z ERR/device:resources:minicap 4025 [3B061JEKB06183] Missing resources/unknown minicap grabber: minicap-bin
2024-06-03T08:16:09.994Z INF/device:resources:minicap 4025 [3B061JEKB06183] undefined
2024-06-03T08:16:10.073Z INF/device:plugins:screen:stream 4025 [3B061JEKB06183] minicap says: "/system/bin/sh: undefined: inaccessible or not found"
2024-06-03T08:16:10.074Z WRN/device:plugins:screen:stream 4025 [3B061JEKB06183] Shell keeping minicap running ended unexpectedly
2024-06-03T08:16:15.040Z INF/device:plugins:screen:stream 4025 [3B061JEKB06183] Disconnecting from minicap service
2024-06-03T08:16:15.044Z INF/device:plugins:screen:stream 4025 [3B061JEKB06183] Stopping minicap service
2024-06-03T08:16:15.048Z INF/device:plugins:screen:stream 4025 [3B061JEKB06183] Launching screen service minicap-apk
2024-06-03T08:16:15.049Z INF/device:resources:minicap 4025 [3B061JEKB06183] CLASSPATH=/data/local/tmp/minicap.apk app_process /system/bin io.devicefarmer.minicap.Main -S -Q 80 -P 1080x2400@864x864/0
2024-06-03T08:16:15.391Z INF/device:plugins:screen:stream 4025 [3B061JEKB06183] minicap says: "03:16:21.604 [main] INFO  BaseProvider - framePeriodMs: 0"
2024-06-03T08:16:15.394Z INF/device:plugins:screen:stream 4025 [3B061JEKB06183] minicap says: "PID: 16168"
2024-06-03T08:16:15.395Z INF/device:plugins:screen:stream 4025 [3B061JEKB06183] minicap says: "INFO: 1080x2400@389x864/0"
2024-06-03T08:16:15.396Z INF/device:plugins:screen:stream 4025 [3B061JEKB06183] minicap says: "03:16:21.610 [main] INFO  Main - Listening on socket : minicap"
2024-06-03T08:16:15.397Z INF/device:plugins:screen:stream 4025 [3B061JEKB06183] Connecting to minicap service
2024-06-03T08:16:15.417Z INF/device:plugins:screen:stream 4025 [3B061JEKB06183] Reading minicap banner
2024-06-03T08:16:15.461Z FTL/device:plugins:screen:stream 4025 [3B061JEKB06183] minicap error: "03:16:21.646 [main] ERROR SurfaceControl - SurfaceControl error"
2024-06-03T08:16:15.462Z FTL/util:lifecycle 4025 [3B061JEKB06183] Shutting down due to fatal error
2024-06-03T08:16:15.483Z INF/provider 29216 [*] Cleaning up device worker "3B061JEKB06183"
2024-06-03T08:16:15.484Z ERR/provider 29216 [*] Device worker "3B061JEKB06183" died with code 1
2024-06-03T08:16:15.484Z INF/provider 29216 [*] Restarting device worker "3B061JEKB06183"
2024-06-03T08:16:16.444Z INF/device:support:push 14278 [3B061JEKB06183] Sending output to "tcp://127.0.0.1:7116"
2024-06-03T08:16:16.449Z INF/device 14278 [3B061JEKB06183] Preparing device
2024-06-03T08:16:17.111Z INF/device:support:sub 14278 [3B061JEKB06183] Receiving input from "tcp://127.0.0.1:7114"
2024-06-03T08:16:17.114Z INF/device:support:sub 14278 [3B061JEKB06183] Subscribing to permanent channel "*ALL"
2024-06-03T08:16:17.215Z INF/device:support:properties 14278 [3B061JEKB06183] Loading properties
2024-06-03T08:16:17.285Z INF/device:support:sdk 14278 [3B061JEKB06183] Supports SDK 34
2024-06-03T08:16:17.286Z INF/device:support:abi 14278 [3B061JEKB06183] Supports ABIs arm64-v8a
2024-06-03T08:16:17.534Z INF/device:resources:minicap 14278 [3B061JEKB06183] Installing "/usr/lib/node_modules/stf/node_modules/@devicefarmer/minicap-prebuilt/prebuilt/noarch/minicap.apk" as "/data/local/tmp/minicap.apk"
2024-06-03T08:16:18.017Z INF/device:resources:service 14278 [3B061JEKB06183] Checking whether we need to install STFService
2024-06-03T08:16:18.123Z INF/device:resources:service 14278 [3B061JEKB06183] Running version check
2024-06-03T08:16:19.342Z DBG/device:resources:service 14278 [3B061JEKB06183] output of granting permissions to STFService: 
2024-06-03T08:16:19.344Z INF/device:resources:service 14278 [3B061JEKB06183] STFService up to date
2024-06-03T08:16:19.347Z INF/device:plugins:service 14278 [3B061JEKB06183] Launching agent
2024-06-03T08:16:19.939Z INF/device:plugins:service 14278 [3B061JEKB06183] Agent says: "Starting minitouch agent"
2024-06-03T08:16:19.982Z INF/device:plugins:service 14278 [3B061JEKB06183] Agent says: "Listening on @stfagent"
2024-06-03T08:16:19.994Z INF/device:plugins:service 14278 [3B061JEKB06183] Launching service
2024-06-03T08:16:19.995Z INF/device:plugins:service 14278 [3B061JEKB06183] using 'start-foreground-service' command for API 34
2024-06-03T08:16:20.003Z INF/device:plugins:service 14278 [3B061JEKB06183] Agent says: "InputClient started"
2024-06-03T08:16:20.192Z INF/device:plugins:display 14278 [3B061JEKB06183] Reading display info
2024-06-03T08:16:20.248Z INF/device:plugins:phone 14278 [3B061JEKB06183] Fetching phone info
2024-06-03T08:16:20.272Z INF/device:plugins:identity 14278 [3B061JEKB06183] Solving identity
2024-06-03T08:16:20.280Z INF/device:plugins:solo 14278 [3B061JEKB06183] Subscribing to permanent channel "d4xQDWjvGPqIOI7UXAvB1YhoPVY="
2024-06-03T08:16:20.282Z INF/device:plugins:screen:stream 14278 [3B061JEKB06183] ScreenGrabber option set to minicap-bin
2024-06-03T08:16:20.283Z INF/device:plugins:screen:stream 14278 [3B061JEKB06183] ScreenFrameRate option set to -1
2024-06-03T08:16:20.287Z INF/device:plugins:screen:stream 14278 [3B061JEKB06183] Starting WebSocket server on port 7440
2024-06-03T08:16:20.294Z INF/device:plugins:screen:stream 14278 [3B061JEKB06183] creating FrameProducer: minicap-bin
2024-06-03T08:16:20.506Z INF/device:resources:minitouch 14278 [3B061JEKB06183] Installing "/usr/lib/node_modules/stf/node_modules/@devicefarmer/minitouch-prebuilt/prebuilt/arm64-v8a/bin/minitouch" as "/data/local/tmp/minitouch"
2024-06-03T08:16:20.696Z WRN/device:plugins:data 14278 [3B061JEKB06183] Unable to find device data {
  serial: '3B061JEKB06183',
  platform: 'Android',
  manufacturer: 'GOOGLE',
  operator: 'xxxxxxx',
  model: 'Pixel 8a',
  version: '14',
  abi: 'arm64-v8a',
  sdk: '34',
  product: 'akita',
  cpuPlatform: 'zuma',
  openGLESVersion: '3.2',
  marketName: 'akita',
  display: {
    id: 0,
    width: 1080,
    height: 2400,
    xdpi: 391.885009765625,
    ydpi: 409.12701416015625,
    fps: 60,
    density: 2.625,
    rotation: 0,
    secure: true,
    size: 6.481261132826809,
    url: 'ws://10.119.102.86:7440'
  },
  phone: [Object: null prototype] {}
}
2024-06-03T08:16:20.701Z INF/device:plugins:touch 14278 [3B061JEKB06183] Touch origin is top left
2024-06-03T08:16:20.702Z INF/device:plugins:touch 14278 [3B061JEKB06183] Requesting touch consumer to start
2024-06-03T08:16:20.702Z INF/device:plugins:touch 14278 [3B061JEKB06183] Launching touch service
2024-06-03T08:16:20.732Z INF/device:plugins:touch 14278 [3B061JEKB06183] Connecting to minitouch service
2024-06-03T08:16:20.749Z INF/device:plugins:touch 14278 [3B061JEKB06183] minitouch says: "open: Permission denied"
2024-06-03T08:16:20.750Z INF/device:plugins:touch 14278 [3B061JEKB06183] minitouch says: "Unable to open device /dev/input/event3 for inspectionopen: Permission denied"
2024-06-03T08:16:20.751Z INF/device:plugins:touch 14278 [3B061JEKB06183] minitouch says: "Unable to open device /dev/input/event2 for inspectionopen: Permission denied"
2024-06-03T08:16:20.751Z INF/device:plugins:touch 14278 [3B061JEKB06183] minitouch says: "Unable to open device /dev/input/event1 for inspectionopen: Permission denied"
2024-06-03T08:16:20.752Z INF/device:plugins:touch 14278 [3B061JEKB06183] minitouch says: "Unable to open device /dev/input/event0 for inspectionUnable to find a suitable touch device"
2024-06-03T08:16:20.793Z INF/device:plugins:touch 14278 [3B061JEKB06183] minitouch says: "using Android InputManager"
2024-06-03T08:16:20.794Z INF/device:plugins:touch 14278 [3B061JEKB06183] minitouch says: "Connection established"
2024-06-03T08:16:20.796Z INF/device:plugins:touch 14278 [3B061JEKB06183] Reading minitouch banner
2024-06-03T08:16:20.801Z INF/device:plugins:vnc 14278 [3B061JEKB06183] Starting VNC server on port 7442
2024-06-03T08:16:20.804Z INF/device:plugins:browser 14278 [3B061JEKB06183] Loading browser list
2024-06-03T08:16:20.853Z INF/device:plugins:browser 14278 [3B061JEKB06183] Updating browser list
2024-06-03T08:16:20.855Z INF/device:plugins:mute 14278 [3B061JEKB06183] Will not mute master volume
2024-06-03T08:16:21.066Z INF/device:resources:minirev 14278 [3B061JEKB06183] Installing "/usr/lib/node_modules/stf/vendor/minirev/arm64-v8a/minirev" as "/data/local/tmp/minirev"
2024-06-03T08:16:21.290Z INF/device:plugins:forward 14278 [3B061JEKB06183] Launching reverse port forwarding service
2024-06-03T08:16:21.321Z INF/device:plugins:forward 14278 [3B061JEKB06183] Connecting to reverse port forwarding service
2024-06-03T08:16:21.349Z INF/device 14278 [3B061JEKB06183] Fully operational

Setting it like this
node /usr/lib/node_modules/stf/bin/stf provider --name $cc_controller_id --no-cleanup --screen-grabber minicap-apk --min-port 7400 --max-port 7700 --connect-sub tcp://127.0.0.1:7114 --connect-push tcp://127.0.0.1:7116 --group-timeout 900 --public-ip ".STF_HOST." --storage-url http://127.0.0.1:7100/ --adb-host 127.0.0.1 --adb-port $cc_port_adb --vnc-initial-size 600x800 --mute-master never --allow-remote

It just goes into the endless loop

2024-06-03T08:22:39.783Z INF/device:plugins:solo 28968 [3B061JEKB06183] Subscribing to permanent channel "d4xQDWjvGPqIOI7UXAvB1YhoPVY="
2024-06-03T08:22:39.785Z INF/device:plugins:screen:stream 28968 [3B061JEKB06183] ScreenGrabber option set to minicap-apk
2024-06-03T08:22:39.786Z INF/device:plugins:screen:stream 28968 [3B061JEKB06183] ScreenFrameRate option set to -1
2024-06-03T08:22:39.787Z INF/device:plugins:screen:stream 28968 [3B061JEKB06183] Starting WebSocket server on port 7480
2024-06-03T08:22:39.794Z FTL/device 28968 [3B061JEKB06183] Setup had an error Error: listen EADDRINUSE: address already in use :::7480
    at Server.setupListenHandle [as _listen2] (node:net:1380:16)
    at listenInCluster (node:net:1428:12)
    at Server.listen (node:net:1516:7)
    at new WebSocketServer (/usr/lib/node_modules/stf/node_modules/ws/lib/WebSocketServer.js:76:20)
    at createServer (/usr/lib/node_modules/stf/lib/units/device/plugins/screen/stream.js:443:17)
From previous event:
    at createServer (/usr/lib/node_modules/stf/lib/units/device/plugins/screen/stream.js:449:14)
    at /usr/lib/node_modules/stf/lib/units/device/plugins/screen/stream.js:467:12
    at SerialSyrup.ParallelSyrup.invoke (/usr/lib/node_modules/stf/node_modules/@devicefarmer/stf-syrup/lib/parallel.js:54:24)
    at /usr/lib/node_modules/stf/node_modules/@devicefarmer/stf-syrup/lib/serial.js:43:33
    at processTicksAndRejections (node:internal/process/task_queues:78:11)
2024-06-03T08:22:39.795Z FTL/util:lifecycle 28968 [3B061JEKB06183] Shutting down due to fatal error
2024-06-03T08:22:39.821Z INF/provider 19076 [*] Cleaning up device worker "3B061JEKB06183"
2024-06-03T08:22:39.822Z ERR/provider 19076 [*] Device worker "3B061JEKB06183" died with code 1
2024-06-03T08:22:39.822Z INF/provider 19076 [*] Restarting device worker "3B061JEKB06183"
2024-06-03T08:22:40.969Z INF/device:support:push 29030 [3B061JEKB06183] Sending output to "tcp://127.0.0.1:7116"
2024-06-03T08:22:40.978Z INF/device 29030 [3B061JEKB06183] Preparing device
2024-06-03T08:22:41.909Z INF/device:support:sub 29030 [3B061JEKB06183] Receiving input from "tcp://127.0.0.1:7114"
2024-06-03T08:22:41.912Z INF/device:support:sub 29030 [3B061JEKB06183] Subscribing to permanent channel "*ALL"
2024-06-03T08:22:42.036Z INF/device:support:properties 29030 [3B061JEKB06183] Loading properties
2024-06-03T08:22:42.115Z INF/device:support:sdk 29030 [3B061JEKB06183] Supports SDK 34
2024-06-03T08:22:42.118Z INF/device:support:abi 29030 [3B061JEKB06183] Supports ABIs arm64-v8a
2024-06-03T08:22:42.333Z INF/device:resources:minicap 29030 [3B061JEKB06183] Installing "/usr/lib/node_modules/stf/node_modules/@devicefarmer/minicap-prebuilt/prebuilt/noarch/minicap.apk" as "/data/local/tmp/minicap.apk"
2024-06-03T08:22:42.763Z INF/device:resources:service 29030 [3B061JEKB06183] Checking whether we need to install STFService
2024-06-03T08:22:42.871Z INF/device:resources:service 29030 [3B061JEKB06183] Running version check
2024-06-03T08:22:44.009Z DBG/device:resources:service 29030 [3B061JEKB06183] output of granting permissions to STFService: 
2024-06-03T08:22:44.011Z INF/device:resources:service 29030 [3B061JEKB06183] STFService up to date
2024-06-03T08:22:44.014Z INF/device:plugins:service 29030 [3B061JEKB06183] Launching agent
2024-06-03T08:22:44.542Z INF/device:plugins:service 29030 [3B061JEKB06183] Agent says: "Starting minitouch agent"
2024-06-03T08:22:44.552Z INF/device:plugins:service 29030 [3B061JEKB06183] Agent says: "Listening on @stfagent"
2024-06-03T08:22:44.574Z INF/device:plugins:service 29030 [3B061JEKB06183] Launching service
2024-06-03T08:22:44.575Z INF/device:plugins:service 29030 [3B061JEKB06183] using 'start-foreground-service' command for API 34
2024-06-03T08:22:44.581Z INF/device:plugins:service 29030 [3B061JEKB06183] Agent says: "InputClient started"
2024-06-03T08:22:44.766Z INF/device:plugins:display 29030 [3B061JEKB06183] Reading display info
2024-06-03T08:22:44.821Z INF/device:plugins:phone 29030 [3B061JEKB06183] Fetching phone info
2024-06-03T08:22:44.836Z INF/device:plugins:identity 29030 [3B061JEKB06183] Solving identity
2024-06-03T08:22:44.844Z INF/device:plugins:solo 29030 [3B061JEKB06183] Subscribing to permanent channel "d4xQDWjvGPqIOI7UXAvB1YhoPVY="
2024-06-03T08:22:44.845Z INF/device:plugins:screen:stream 29030 [3B061JEKB06183] ScreenGrabber option set to minicap-apk
2024-06-03T08:22:44.846Z INF/device:plugins:screen:stream 29030 [3B061JEKB06183] ScreenFrameRate option set to -1
2024-06-03T08:22:44.847Z INF/device:plugins:screen:stream 29030 [3B061JEKB06183] Starting WebSocket server on port 7484
2024-06-03T08:22:44.852Z INF/device:plugins:screen:stream 29030 [3B061JEKB06183] creating FrameProducer: minicap-apk
2024-06-03T08:22:47.545Z INF/device:resources:minitouch 29030 [3B061JEKB06183] Installing "/usr/lib/node_modules/stf/node_modules/@devicefarmer/minitouch-prebuilt/prebuilt/arm64-v8a/bin/minitouch" as "/data/local/tmp/minitouch"
2024-06-03T08:22:47.764Z WRN/device:plugins:data 29030 [3B061JEKB06183] Unable to find device data {
  serial: '3B061JEKB06183',
  platform: 'Android',
  manufacturer: 'GOOGLE',
  operator: 'xxxxxxxxxxxx',
  model: 'Pixel 8a',
  version: '14',
  abi: 'arm64-v8a',
  sdk: '34',
  product: 'akita',
  cpuPlatform: 'zuma',
  openGLESVersion: '3.2',
  marketName: 'akita',
  display: {
    id: 0,
    width: 1080,
    height: 2400,
    xdpi: 391.885009765625,
    ydpi: 409.12701416015625,
    fps: 60,
    density: 2.625,
    rotation: 0,
    secure: true,
    size: 6.481261132826809,
    url: 'ws://10.119.102.86:7484'
  },
  phone: [Object: null prototype] {}
}
2024-06-03T08:22:47.772Z INF/device:plugins:touch 29030 [3B061JEKB06183] Touch origin is top left
2024-06-03T08:22:47.774Z INF/device:plugins:touch 29030 [3B061JEKB06183] Requesting touch consumer to start
2024-06-03T08:22:47.776Z INF/device:plugins:touch 29030 [3B061JEKB06183] Launching touch service
2024-06-03T08:22:47.802Z INF/device:plugins:touch 29030 [3B061JEKB06183] Connecting to minitouch service
2024-06-03T08:22:47.814Z INF/device:plugins:touch 29030 [3B061JEKB06183] minitouch says: "open: Permission denied"
2024-06-03T08:22:47.816Z INF/device:plugins:touch 29030 [3B061JEKB06183] minitouch says: "Unable to open device /dev/input/event3 for inspectionopen: Permission denied"
2024-06-03T08:22:47.817Z INF/device:plugins:touch 29030 [3B061JEKB06183] minitouch says: "Unable to open device /dev/input/event2 for inspectionopen: Permission denied"
2024-06-03T08:22:47.817Z INF/device:plugins:touch 29030 [3B061JEKB06183] minitouch says: "Unable to open device /dev/input/event1 for inspectionopen: Permission denied"
2024-06-03T08:22:47.818Z INF/device:plugins:touch 29030 [3B061JEKB06183] minitouch says: "Unable to open device /dev/input/event0 for inspectionUnable to find a suitable touch device"
2024-06-03T08:22:47.859Z INF/device:plugins:touch 29030 [3B061JEKB06183] minitouch says: "using Android InputManager"
2024-06-03T08:22:47.869Z INF/device:plugins:touch 29030 [3B061JEKB06183] Reading minitouch banner
2024-06-03T08:22:47.914Z INF/device:plugins:touch 29030 [3B061JEKB06183] minitouch says: "Connection established"
2024-06-03T08:22:47.921Z INF/device:plugins:vnc 29030 [3B061JEKB06183] Starting VNC server on port 7486
2024-06-03T08:22:47.927Z INF/device:plugins:browser 29030 [3B061JEKB06183] Loading browser list
2024-06-03T08:22:47.962Z INF/device:plugins:browser 29030 [3B061JEKB06183] Updating browser list
2024-06-03T08:22:47.966Z INF/device:plugins:mute 29030 [3B061JEKB06183] Will not mute master volume
2024-06-03T08:22:48.517Z INF/device:resources:minirev 29030 [3B061JEKB06183] Installing "/usr/lib/node_modules/stf/vendor/minirev/arm64-v8a/minirev" as "/data/local/tmp/minirev"
2024-06-03T08:22:48.728Z INF/device:plugins:forward 29030 [3B061JEKB06183] Launching reverse port forwarding service
2024-06-03T08:22:48.755Z INF/device:plugins:forward 29030 [3B061JEKB06183] Connecting to reverse port forwarding service
2024-06-03T08:22:48.782Z INF/device 29030 [3B061JEKB06183] Fully operational
2024-06-03T08:22:51.492Z IMP/device:plugins:service 29030 [3B061JEKB06183] Agent connection ended, attempting to relaunch
2024-06-03T08:22:51.493Z INF/device:plugins:service 29030 [3B061JEKB06183] Launching service
2024-06-03T08:22:51.494Z INF/device:plugins:service 29030 [3B061JEKB06183] using 'start-foreground-service' command for API 34
2024-06-03T08:22:51.680Z IMP/device:plugins:service 29030 [3B061JEKB06183] Agent relaunched in 188ms
2024-06-03T08:22:51.727Z INF/device:plugins:display 29030 [3B061JEKB06183] Rotation changed to 0
2024-06-03T08:22:51.729Z INF/device:plugins:screen:stream 29030 [3B061JEKB06183] Keeping 0 as current frame producer rotation
2024-06-03T08:22:51.731Z INF/device:plugins:browser 29030 [3B061JEKB06183] Updating browser list
2024-06-03T08:22:52.783Z WRN/device:plugins:touch 29030 [3B061JEKB06183] Connection to minitouch ended unexpectedly
2024-06-03T08:22:52.784Z INF/device:plugins:touch 29030 [3B061JEKB06183] Disconnecting from minitouch service
2024-06-03T08:22:52.786Z INF/device:plugins:touch 29030 [3B061JEKB06183] Stopping minitouch service
2024-06-03T08:22:52.787Z INF/device:plugins:touch 29030 [3B061JEKB06183] Sending SIGTERM to minitouch
2024-06-03T08:22:52.864Z INF/device:plugins:touch 29030 [3B061JEKB06183] Launching touch service
2024-06-03T08:22:52.935Z INF/device:plugins:touch 29030 [3B061JEKB06183] Connecting to minitouch service
2024-06-03T08:22:52.959Z INF/device:plugins:touch 29030 [3B061JEKB06183] minitouch says: "open: Permission denied"
2024-06-03T08:22:52.960Z INF/device:plugins:touch 29030 [3B061JEKB06183] minitouch says: "Unable to open device /dev/input/event3 for inspectionopen: Permission denied"
2024-06-03T08:22:52.961Z INF/device:plugins:touch 29030 [3B061JEKB06183] minitouch says: "Unable to open device /dev/input/event2 for inspectionopen: Permission denied"
2024-06-03T08:22:52.962Z INF/device:plugins:touch 29030 [3B061JEKB06183] minitouch says: "Unable to open device /dev/input/event1 for inspectionopen: Permission denied"
2024-06-03T08:22:52.962Z INF/device:plugins:touch 29030 [3B061JEKB06183] minitouch says: "Unable to open device /dev/input/event0 for inspectionUnable to find a suitable touch device"
2024-06-03T08:22:52.963Z INF/device:plugins:touch 29030 [3B061JEKB06183] minitouch says: "using Android InputManager"
2024-06-03T08:22:52.978Z INF/device:plugins:touch 29030 [3B061JEKB06183] Reading minitouch banner
2024-06-03T08:22:52.979Z INF/device:plugins:touch 29030 [3B061JEKB06183] minitouch says: "Connection established"
2024-06-03T08:22:54.976Z WRN/device:plugins:touch 29030 [3B061JEKB06183] Connection to minitouch ended unexpectedly
2024-06-03T08:22:54.977Z INF/device:plugins:touch 29030 [3B061JEKB06183] Disconnecting from minitouch service
2024-06-03T08:22:54.978Z WRN/device:plugins:touch 29030 [3B061JEKB06183] Shell keeping minitouch running ended unexpectedly
2024-06-03T08:22:54.979Z INF/device:plugins:touch 29030 [3B061JEKB06183] Stopping minitouch service
2024-06-03T08:22:54.980Z INF/device:plugins:touch 29030 [3B061JEKB06183] Launching touch service
2024-06-03T08:22:55.047Z INF/device:plugins:touch 29030 [3B061JEKB06183] Connecting to minitouch service
2024-06-03T08:22:55.049Z INF/device:plugins:touch 29030 [3B061JEKB06183] minitouch says: "open: Permission denied"
2024-06-03T08:22:55.049Z INF/device:plugins:touch 29030 [3B061JEKB06183] minitouch says: "Unable to open device /dev/input/event3 for inspectionopen: Permission denied"
2024-06-03T08:22:55.050Z INF/device:plugins:touch 29030 [3B061JEKB06183] minitouch says: "Unable to open device /dev/input/event2 for inspectionopen: Permission denied"
2024-06-03T08:22:55.051Z INF/device:plugins:touch 29030 [3B061JEKB06183] minitouch says: "Unable to open device /dev/input/event1 for inspectionopen: Permission denied"
2024-06-03T08:22:55.052Z INF/device:plugins:touch 29030 [3B061JEKB06183] minitouch says: "Unable to open device /dev/input/event0 for inspectionUnable to find a suitable touch device"
2024-06-03T08:22:55.052Z INF/device:plugins:touch 29030 [3B061JEKB06183] minitouch says: "using Android InputManager"
2024-06-03T08:22:55.083Z INF/device:plugins:touch 29030 [3B061JEKB06183] minitouch says: "Connection established"
2024-06-03T08:22:55.084Z INF/device:plugins:touch 29030 [3B061JEKB06183] Reading minitouch banner
2024-06-03T08:22:57.127Z WRN/device:plugins:touch 29030 [3B061JEKB06183] Connection to minitouch ended unexpectedly
2024-06-03T08:22:57.129Z INF/device:plugins:touch 29030 [3B061JEKB06183] Disconnecting from minitouch service
2024-06-03T08:22:57.130Z FTL/device:plugins:touch 29030 [3B061JEKB06183] Touch consumer had an error Error: Failed more than 3 times in 10000ms
    at TouchConsumer._failLimitExceeded (/usr/lib/node_modules/stf/lib/units/device/plugins/touch/index.js:230:26)
    at FailCounter.emit (/usr/lib/node_modules/stf/node_modules/eventemitter3/index.js:117:35)
    at FailCounter.inc (/usr/lib/node_modules/stf/lib/util/failcounter.js:29:10)
    at TouchConsumer._socketEnded (/usr/lib/node_modules/stf/lib/units/device/plugins/touch/index.js:217:24)
    at RiskyStream.emit (/usr/lib/node_modules/stf/node_modules/eventemitter3/index.js:115:35)
    at RiskyStream.<anonymous> (/usr/lib/node_modules/stf/lib/util/riskystream.js:14:12)
    at Socket.emit (node:events:539:35)
    at endReadableNT (node:internal/streams/readable:1345:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
2024-06-03T08:22:57.131Z FTL/util:lifecycle 29030 [3B061JEKB06183] Shutting down due to fatal error
2024-06-03T08:22:57.156Z INF/provider 19076 [*] Cleaning up device worker "3B061JEKB06183"
2024-06-03T08:22:57.156Z ERR/provider 19076 [*] Device worker "3B061JEKB06183" died with code 1
2024-06-03T08:22:57.157Z INF/provider 19076 [*] Restarting device worker "3B061JEKB06183"
2024-06-03T08:22:58.126Z INF/device:support:push 29146 [3B061JEKB06183] Sending output to "tcp://127.0.0.1:7116"
2024-06-03T08:22:58.131Z INF/device 29146 [3B061JEKB06183] Preparing device
2024-06-03T08:22:58.851Z INF/device:support:sub 29146 [3B061JEKB06183] Receiving input from "tcp://127.0.0.1:7114"
2024-06-03T08:22:58.853Z INF/device:support:sub 29146 [3B061JEKB06183] Subscribing to permanent channel "*ALL"
2024-06-03T08:22:58.947Z INF/device:support:properties 29146 [3B061JEKB06183] Loading properties
2024-06-03T08:22:59.013Z INF/device:support:sdk 29146 [3B061JEKB06183] Supports SDK 34
2024-06-03T08:22:59.015Z INF/device:support:abi 29146 [3B061JEKB06183] Supports ABIs arm64-v8a
2024-06-03T08:22:59.210Z INF/device:resources:minicap 29146 [3B061JEKB06183] Installing "/usr/lib/node_modules/stf/node_modules/@devicefarmer/minicap-prebuilt/prebuilt/noarch/minicap.apk" as "/data/local/tmp/minicap.apk"
2024-06-03T08:22:59.709Z INF/device:resources:service 29146 [3B061JEKB06183] Checking whether we need to install STFService
2024-06-03T08:22:59.780Z INF/device:resources:service 29146 [3B061JEKB06183] Running version check
2024-06-03T08:23:00.916Z DBG/device:resources:service 29146 [3B061JEKB06183] output of granting permissions to STFService: 
2024-06-03T08:23:00.917Z INF/device:resources:service 29146 [3B061JEKB06183] STFService up to date
2024-06-03T08:23:00.919Z INF/device:plugins:service 29146 [3B061JEKB06183] Launching agent
2024-06-03T08:23:01.904Z INF/device:plugins:service 29146 [3B061JEKB06183] Agent says: "Starting minitouch agent"
2024-06-03T08:23:01.909Z INF/device:plugins:service 29146 [3B061JEKB06183] Agent says: "Listening on @stfagent"
2024-06-03T08:23:01.969Z INF/device:plugins:service 29146 [3B061JEKB06183] Launching service
2024-06-03T08:23:01.971Z INF/device:plugins:service 29146 [3B061JEKB06183] using 'start-foreground-service' command for API 34
2024-06-03T08:23:01.977Z INF/device:plugins:service 29146 [3B061JEKB06183] Agent says: "InputClient started"
2024-06-03T08:23:02.129Z INF/device:plugins:display 29146 [3B061JEKB06183] Reading display info
2024-06-03T08:23:02.188Z INF/device:plugins:phone 29146 [3B061JEKB06183] Fetching phone info
2024-06-03T08:23:02.208Z INF/device:plugins:identity 29146 [3B061JEKB06183] Solving identity
2024-06-03T08:23:02.219Z INF/device:plugins:solo 29146 [3B061JEKB06183] Subscribing to permanent channel "d4xQDWjvGPqIOI7UXAvB1YhoPVY="
2024-06-03T08:23:02.221Z INF/device:plugins:screen:stream 29146 [3B061JEKB06183] ScreenGrabber option set to minicap-apk
2024-06-03T08:23:02.221Z INF/device:plugins:screen:stream 29146 [3B061JEKB06183] ScreenFrameRate option set to -1
2024-06-03T08:23:02.222Z INF/device:plugins:screen:stream 29146 [3B061JEKB06183] Starting WebSocket server on port 7488
2024-06-03T08:23:02.236Z FTL/device 29146 [3B061JEKB06183] Setup had an error Error: listen EADDRINUSE: address already in use :::7488
    at Server.setupListenHandle [as _listen2] (node:net:1380:16)
    at listenInCluster (node:net:1428:12)
    at Server.listen (node:net:1516:7)
    at new WebSocketServer (/usr/lib/node_modules/stf/node_modules/ws/lib/WebSocketServer.js:76:20)
    at createServer (/usr/lib/node_modules/stf/lib/units/device/plugins/screen/stream.js:443:17)
From previous event:
    at createServer (/usr/lib/node_modules/stf/lib/units/device/plugins/screen/stream.js:449:14)
    at /usr/lib/node_modules/stf/lib/units/device/plugins/screen/stream.js:467:12
    at SerialSyrup.ParallelSyrup.invoke (/usr/lib/node_modules/stf/node_modules/@devicefarmer/stf-syrup/lib/parallel.js:54:24)
    at /usr/lib/node_modules/stf/node_modules/@devicefarmer/stf-syrup/lib/serial.js:43:33
    at processTicksAndRejections (node:internal/process/task_queues:78:11)
2024-06-03T08:23:02.237Z FTL/util:lifecycle 29146 [3B061JEKB06183] Shutting down due to fatal error
2024-06-03T08:23:02.267Z INF/provider 19076 [*] Cleaning up device worker "3B061JEKB06183"
2024-06-03T08:23:02.268Z ERR/provider 19076 [*] Device worker "3B061JEKB06183" died with code 1
2024-06-03T08:23:02.268Z INF/provider 19076 [*] Restarting device worker "3B061JEKB06183"
2024-06-03T08:23:03.397Z INF/device:support:push 29503 [3B061JEKB06183] Sending output to "tcp://127.0.0.1:7116"
2024-06-03T08:23:03.403Z INF/device 29503 [3B061JEKB06183] Preparing device
2024-06-03T08:23:04.210Z INF/device:support:sub 29503 [3B061JEKB06183] Receiving input from "tcp://127.0.0.1:7114"
2024-06-03T08:23:04.212Z INF/device:support:sub 29503 [3B061JEKB06183] Subscribing to permanent channel "*ALL"
2024-06-03T08:23:04.310Z INF/device:support:properties 29503 [3B061JEKB06183] Loading properties
2024-06-03T08:23:04.371Z INF/device:support:sdk 29503 [3B061JEKB06183] Supports SDK 34
2024-06-03T08:23:04.373Z INF/device:support:abi 29503 [3B061JEKB06183] Supports ABIs arm64-v8a
2024-06-03T08:23:04.606Z INF/device:resources:minicap 29503 [3B061JEKB06183] Installing "/usr/lib/node_modules/stf/node_modules/@devicefarmer/minicap-prebuilt/prebuilt/noarch/minicap.apk" as "/data/local/tmp/minicap.apk"
2024-06-03T08:23:05.052Z INF/device:resources:service 29503 [3B061JEKB06183] Checking whether we need to install STFService
2024-06-03T08:23:05.122Z INF/device:resources:service 29503 [3B061JEKB06183] Running version check
2024-06-03T08:23:06.255Z DBG/device:resources:service 29503 [3B061JEKB06183] output of granting permissions to STFService: 
2024-06-03T08:23:06.257Z INF/device:resources:service 29503 [3B061JEKB06183] STFService up to date
2024-06-03T08:23:06.259Z INF/device:plugins:service 29503 [3B061JEKB06183] Launching agent
2024-06-03T08:23:06.874Z INF/device:plugins:service 29503 [3B061JEKB06183] Agent says: "Starting minitouch agent"
2024-06-03T08:23:06.876Z INF/device:plugins:service 29503 [3B061JEKB06183] Agent says: "Listening on @stfagent"
2024-06-03T08:23:07.000Z INF/device:plugins:service 29503 [3B061JEKB06183] Launching service
2024-06-03T08:23:07.002Z INF/device:plugins:service 29503 [3B061JEKB06183] using 'start-foreground-service' command for API 34
2024-06-03T08:23:07.009Z INF/device:plugins:service 29503 [3B061JEKB06183] Agent says: "InputClient started"
2024-06-03T08:23:07.199Z INF/device:plugins:display 29503 [3B061JEKB06183] Reading display info
2024-06-03T08:23:07.256Z INF/device:plugins:phone 29503 [3B061JEKB06183] Fetching phone info
2024-06-03T08:23:07.272Z INF/device:plugins:identity 29503 [3B061JEKB06183] Solving identity
2024-06-03T08:23:07.280Z INF/device:plugins:solo 29503 [3B061JEKB06183] Subscribing to permanent channel "d4xQDWjvGPqIOI7UXAvB1YhoPVY="
2024-06-03T08:23:07.282Z INF/device:plugins:screen:stream 29503 [3B061JEKB06183] ScreenGrabber option set to minicap-apk
2024-06-03T08:23:07.283Z INF/device:plugins:screen:stream 29503 [3B061JEKB06183] ScreenFrameRate option set to -1
2024-06-03T08:23:07.285Z INF/device:plugins:screen:stream 29503 [3B061JEKB06183] Starting WebSocket server on port 7492
2024-06-03T08:23:07.289Z INF/device:plugins:screen:stream 29503 [3B061JEKB06183] creating FrameProducer: minicap-apk
2024-06-03T08:23:10.063Z INF/device:resources:minitouch 29503 [3B061JEKB06183] Installing "/usr/lib/node_modules/stf/node_modules/@devicefarmer/minitouch-prebuilt/prebuilt/arm64-v8a/bin/minitouch" as "/data/local/tmp/minitouch"
2024-06-03T08:23:10.270Z WRN/device:plugins:data 29503 [3B061JEKB06183] Unable to find device data {
  serial: '3B061JEKB06183',
  platform: 'Android',
  manufacturer: 'GOOGLE',
  operator: 'xxxxxxxxxxxx',
  model: 'Pixel 8a',
  version: '14',
  abi: 'arm64-v8a',
  sdk: '34',
  product: 'akita',
  cpuPlatform: 'zuma',
  openGLESVersion: '3.2',
  marketName: 'akita',
  display: {
    id: 0,
    width: 1080,
    height: 2400,
    xdpi: 391.885009765625,
    ydpi: 409.12701416015625,
    fps: 60,
    density: 2.625,
    rotation: 0,
    secure: true,
    size: 6.481261132826809,
    url: 'ws://10.119.102.86:7492'
  },
  phone: [Object: null prototype] {}
}
2024-06-03T08:23:10.272Z INF/device:plugins:touch 29503 [3B061JEKB06183] Touch origin is top left
2024-06-03T08:23:10.273Z INF/device:plugins:touch 29503 [3B061JEKB06183] Requesting touch consumer to start
2024-06-03T08:23:10.273Z INF/device:plugins:touch 29503 [3B061JEKB06183] Launching touch service
2024-06-03T08:23:10.296Z INF/device:plugins:touch 29503 [3B061JEKB06183] Connecting to minitouch service
2024-06-03T08:23:10.310Z INF/device:plugins:touch 29503 [3B061JEKB06183] minitouch says: "open: Permission denied"
2024-06-03T08:23:10.310Z INF/device:plugins:touch 29503 [3B061JEKB06183] minitouch says: "Unable to open device /dev/input/event3 for inspectionopen: Permission denied"
2024-06-03T08:23:10.311Z INF/device:plugins:touch 29503 [3B061JEKB06183] minitouch says: "Unable to open device /dev/input/event2 for inspectionopen: Permission denied"
2024-06-03T08:23:10.311Z INF/device:plugins:touch 29503 [3B061JEKB06183] minitouch says: "Unable to open device /dev/input/event1 for inspectionopen: Permission denied"
2024-06-03T08:23:10.311Z INF/device:plugins:touch 29503 [3B061JEKB06183] minitouch says: "Unable to open device /dev/input/event0 for inspectionUnable to find a suitable touch device"
2024-06-03T08:23:10.355Z INF/device:plugins:touch 29503 [3B061JEKB06183] minitouch says: "using Android InputManager"
2024-06-03T08:23:10.356Z INF/device:plugins:touch 29503 [3B061JEKB06183] minitouch says: "Connection established"
2024-06-03T08:23:10.358Z INF/device:plugins:touch 29503 [3B061JEKB06183] Reading minitouch banner
2024-06-03T08:23:10.361Z INF/device:plugins:vnc 29503 [3B061JEKB06183] Starting VNC server on port 7494
2024-06-03T08:23:10.362Z INF/device:plugins:browser 29503 [3B061JEKB06183] Loading browser list
2024-06-03T08:23:10.392Z INF/device:plugins:browser 29503 [3B061JEKB06183] Updating browser list
2024-06-03T08:23:10.393Z INF/device:plugins:mute 29503 [3B061JEKB06183] Will not mute master volume
2024-06-03T08:23:10.932Z INF/device:resources:minirev 29503 [3B061JEKB06183] Installing "/usr/lib/node_modules/stf/vendor/minirev/arm64-v8a/minirev" as "/data/local/tmp/minirev"
2024-06-03T08:23:11.089Z INF/device:plugins:forward 29503 [3B061JEKB06183] Launching reverse port forwarding service
2024-06-03T08:23:11.131Z INF/device:plugins:forward 29503 [3B061JEKB06183] Connecting to reverse port forwarding service
2024-06-03T08:23:11.154Z INF/device 29503 [3B061JEKB06183] Fully operational
2024-06-03T08:24:41.216Z WRN/device:plugins:touch 30713 [3B061JEKB06183] Connection to minitouch ended unexpectedly
2024-06-03T08:24:41.218Z INF/device:plugins:touch 30713 [3B061JEKB06183] Disconnecting from minitouch service
2024-06-03T08:24:41.219Z INF/device:plugins:touch 30713 [3B061JEKB06183] Stopping minitouch service
2024-06-03T08:24:41.221Z INF/device:plugins:touch 30713 [3B061JEKB06183] Sending SIGTERM to minitouch
2024-06-03T08:24:41.293Z INF/device:plugins:touch 30713 [3B061JEKB06183] Launching touch service
2024-06-03T08:24:41.383Z INF/device:plugins:touch 30713 [3B061JEKB06183] Connecting to minitouch service
2024-06-03T08:24:41.387Z INF/device:plugins:touch 30713 [3B061JEKB06183] minitouch says: "open: Permission denied"
2024-06-03T08:24:41.388Z INF/device:plugins:touch 30713 [3B061JEKB06183] minitouch says: "Unable to open device /dev/input/event3 for inspectionopen: Permission denied"
2024-06-03T08:24:41.390Z INF/device:plugins:touch 30713 [3B061JEKB06183] minitouch says: "Unable to open device /dev/input/event2 for inspectionopen: Permission denied"
2024-06-03T08:24:41.391Z INF/device:plugins:touch 30713 [3B061JEKB06183] minitouch says: "Unable to open device /dev/input/event1 for inspectionopen: Permission denied"
2024-06-03T08:24:41.392Z INF/device:plugins:touch 30713 [3B061JEKB06183] minitouch says: "Unable to open device /dev/input/event0 for inspectionUnable to find a suitable touch device"
2024-06-03T08:24:41.393Z INF/device:plugins:touch 30713 [3B061JEKB06183] minitouch says: "using Android InputManager"
2024-06-03T08:24:41.409Z INF/device:plugins:touch 30713 [3B061JEKB06183] Reading minitouch banner
2024-06-03T08:24:41.413Z INF/device:plugins:touch 30713 [3B061JEKB06183] minitouch says: "Connection established"
2024-06-03T08:24:43.453Z WRN/device:plugins:touch 30713 [3B061JEKB06183] Connection to minitouch ended unexpectedly
2024-06-03T08:24:43.453Z INF/device:plugins:touch 30713 [3B061JEKB06183] Disconnecting from minitouch service
2024-06-03T08:24:43.454Z FTL/device:plugins:touch 30713 [3B061JEKB06183] Touch consumer had an error Error: Failed more than 3 times in 10000ms
    at TouchConsumer._failLimitExceeded (/usr/lib/node_modules/stf/lib/units/device/plugins/touch/index.js:230:26)
    at FailCounter.emit (/usr/lib/node_modules/stf/node_modules/eventemitter3/index.js:117:35)
    at FailCounter.inc (/usr/lib/node_modules/stf/lib/util/failcounter.js:29:10)
    at TouchConsumer._socketEnded (/usr/lib/node_modules/stf/lib/units/device/plugins/touch/index.js:217:24)
    at RiskyStream.emit (/usr/lib/node_modules/stf/node_modules/eventemitter3/index.js:115:35)
    at RiskyStream.<anonymous> (/usr/lib/node_modules/stf/lib/util/riskystream.js:14:12)
    at Socket.emit (node:events:539:35)
    at endReadableNT (node:internal/streams/readable:1345:12)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
2024-06-03T08:24:43.455Z FTL/util:lifecycle 30713 [3B061JEKB06183] Shutting down due to fatal error
2024-06-03T08:24:43.468Z INF/provider 19076 [*] Cleaning up device worker "3B061JEKB06183"
2024-06-03T08:24:43.469Z ERR/provider 19076 [*] Device worker "3B061JEKB06183" died with code 1
2024-06-03T08:24:43.469Z INF/provider 19076 [*] Restarting device worker "3B061JEKB06183"
2024-06-03T08:24:44.179Z INF/device:support:push 30888 [3B061JEKB06183] Sending output to "tcp://127.0.0.1:7116"
2024-06-03T08:24:44.182Z INF/device 30888 [3B061JEKB06183] Preparing device
2024-06-03T08:24:44.839Z INF/device:support:sub 30888 [3B061JEKB06183] Receiving input from "tcp://127.0.0.1:7114"

All the other devices like Samsung on Android 14 is fine, it is just these Google devices that seems to have the problem
Do you perhaps have any other suggestions please, Sorry for being a pain

@KingRat0011
Copy link
Author

This fixed the realme problem that I logged, setting the --screen-grabber minicap-bin
#775

[Unit]
Description=STF provider
After=adbd.service
BindsTo=adbd.service

[Service]
EnvironmentFile=/etc/environment
TimeoutStartSec=0
Restart=always
RestartSec=3
ExecStartPre=/usr/bin/docker pull devicefarmer/stf:latest
ExecStartPre=-/usr/bin/docker kill %p-%i
ExecStartPre=-/usr/bin/docker rm %p-%i
ExecStart=/usr/bin/docker run --rm \
  --name %p-%i \
  --link adbd:adbd \
  -p 15000-16000:15000-16000 \
  devicefarmer/stf:latest \
  stf provider \
    --name "%H/%i" \
    --screen-grabber minicap-bin \
    --connect-sub tcp://xxxxxxx:7250 \
    --connect-push tcp://xxxxxxxxxx:7270 \
    --storage-url https://xxxxxxxxxx/ \
    --public-ip xxxxxxxxx \
    --min-port=15000 \
    --max-port=16000 \
    --heartbeat-interval 10000 \
    --screen-ws-url-pattern "wss://xxxxxx/d/%i/<%= serial %>/<%= publicPort %>/" \
    --adb-host adbd
ExecStop=-/usr/bin/docker stop -t 10 %p-%i
[Install]
WantedBy=multi-user.target

diginetiot@stfdockerdev:~ $ sudo docker logs 171072d17736 -f
2024-06-03T09:23:08.977Z INF/provider 1 [*] Subscribing to permanent channel "oZ61rXDIQuWpZurlIgxLJg=="
2024-06-03T09:23:08.985Z INF/provider 1 [*] Sending output to "tcp://10.70.11.63:7270"
2024-06-03T09:23:08.986Z INF/provider 1 [*] Receiving input from "tcp://10.70.11.63:7250"
2024-06-03T09:23:08.990Z INF/provider 1 [*] Tracking devices
2024-06-03T09:23:08.991Z INF/provider 1 [*] Found device "INJV6XCMCYT8GAOF" (device)
2024-06-03T09:23:09.240Z INF/provider 1 [*] Registered device "INJV6XCMCYT8GAOF"
2024-06-03T09:23:09.589Z INF/device:support:push 20 [INJV6XCMCYT8GAOF] Sending output to "tcp://10.70.11.63:7270"
2024-06-03T09:23:09.592Z INF/device 20 [INJV6XCMCYT8GAOF] Preparing device
2024-06-03T09:23:09.920Z INF/device:support:sub 20 [INJV6XCMCYT8GAOF] Receiving input from "tcp://10.70.11.63:7250"
2024-06-03T09:23:09.921Z INF/device:support:sub 20 [INJV6XCMCYT8GAOF] Subscribing to permanent channel "*ALL"
2024-06-03T09:23:09.996Z INF/device:support:properties 20 [INJV6XCMCYT8GAOF] Loading properties
2024-06-03T09:23:10.043Z INF/device:support:sdk 20 [INJV6XCMCYT8GAOF] Supports SDK 34
2024-06-03T09:23:10.045Z INF/device:support:abi 20 [INJV6XCMCYT8GAOF] Supports ABIs arm64-v8a, armeabi-v7a, armeabi
2024-06-03T09:23:10.247Z INF/device:resources:minicap 20 [INJV6XCMCYT8GAOF] Installing "/app/node_modules/@devicefarmer/minicap-prebuilt/prebuilt/noarch/minicap.apk" as "/data/local/tmp/minicap.apk"
2024-06-03T09:23:10.458Z INF/device:resources:service 20 [INJV6XCMCYT8GAOF] Checking whether we need to install STFService
2024-06-03T09:23:10.512Z INF/device:resources:service 20 [INJV6XCMCYT8GAOF] Running version check
2024-06-03T09:23:11.718Z DBG/device:resources:service 20 [INJV6XCMCYT8GAOF] output of granting permissions to STFService: 
Exception occurred while executing 'grant':
java.lang.SecurityException: grantRuntimePermission: Neither user 2000 nor current process has android.permission.GRANT_RUNTIME_PERMISSIONS.
	at android.app.ContextImpl.enforce(ContextImpl.java:2384)
	at android.app.ContextImpl.enforceCallingOrSelfPermission(ContextImpl.java:2412)
	at com.android.server.pm.permission.PermissionManagerServiceImpl.grantRuntimePermissionInternal(PermissionManagerServiceImpl.java:1382)
	at com.android.server.pm.permission.PermissionManagerServiceImpl.grantRuntimePermission(PermissionManagerServiceImpl.java:1364)
	at com.android.server.pm.permission.PermissionManagerService.grantRuntimePermission(PermissionManagerService.java:557)
	at android.permission.PermissionManager.grantRuntimePermission(PermissionManager.java:609)
	at com.android.server.pm.PackageManagerShellCommand.runGrantRevokePermission(PackageManagerShellCommand.java:2717)
	at com.android.server.pm.PackageManagerShellCommand.onCommand(PackageManagerShellCommand.java:301)
	at com.android.modules.utils.BasicShellCommandHandler.exec(BasicShellCommandHandler.java:97)
	at android.os.ShellCommand.exec(ShellCommand.java:38)
	at com.android.server.pm.PackageManagerService$IPackageManagerImpl.onShellCommand(PackageManagerService.java:6823)
	at android.os.Binder.shellCommand(Binder.java:1092)
	at android.os.Binder.onTransact(Binder.java:912)
	at android.content.pm.IPackageManager$Stub.onTransact(IPackageManager.java:4352)
	at com.android.server.pm.PackageManagerService$IPackageManagerImpl.onTransact(PackageManagerService.java:6807)
	at android.os.Binder.execTransactInternal(Binder.java:1392)
	at android.os.Binder.execTransact(Binder.java:1299)

2024-06-03T09:23:11.720Z INF/device:resources:service 20 [INJV6XCMCYT8GAOF] STFService up to date
2024-06-03T09:23:11.722Z INF/device:plugins:service 20 [INJV6XCMCYT8GAOF] Launching agent
2024-06-03T09:23:12.204Z INF/device:plugins:service 20 [INJV6XCMCYT8GAOF] Agent says: "Starting minitouch agent"
2024-06-03T09:23:12.255Z INF/device:plugins:service 20 [INJV6XCMCYT8GAOF] Agent says: "Listening on @stfagent"
2024-06-03T09:23:12.286Z INF/device:plugins:service 20 [INJV6XCMCYT8GAOF] Launching service
2024-06-03T09:23:12.288Z INF/device:plugins:service 20 [INJV6XCMCYT8GAOF] using 'start-foreground-service' command for API 34
2024-06-03T09:23:12.293Z INF/device:plugins:service 20 [INJV6XCMCYT8GAOF] Agent says: "InputClient started"
2024-06-03T09:23:12.475Z INF/device:plugins:display 20 [INJV6XCMCYT8GAOF] Reading display info
2024-06-03T09:23:12.555Z INF/device:plugins:phone 20 [INJV6XCMCYT8GAOF] Fetching phone info
2024-06-03T09:23:12.573Z INF/device:plugins:identity 20 [INJV6XCMCYT8GAOF] Solving identity
2024-06-03T09:23:12.591Z INF/device:plugins:solo 20 [INJV6XCMCYT8GAOF] Subscribing to permanent channel "6YZTfMaBPtG+wcl39kcFiKVSglI="
2024-06-03T09:23:12.595Z INF/device:plugins:screen:stream 20 [INJV6XCMCYT8GAOF] ScreenGrabber option set to minicap-bin
2024-06-03T09:23:12.597Z INF/device:plugins:screen:stream 20 [INJV6XCMCYT8GAOF] ScreenFrameRate option set to -1
2024-06-03T09:23:12.599Z INF/device:plugins:screen:stream 20 [INJV6XCMCYT8GAOF] Starting WebSocket server on port 15000
2024-06-03T09:23:12.604Z INF/device:plugins:screen:stream 20 [INJV6XCMCYT8GAOF] creating FrameProducer: minicap-bin
2024-06-03T09:23:12.801Z INF/device:resources:minitouch 20 [INJV6XCMCYT8GAOF] Installing "/app/node_modules/@devicefarmer/minitouch-prebuilt/prebuilt/arm64-v8a/bin/minitouch" as "/data/local/tmp/minitouch"
2024-06-03T09:23:12.865Z WRN/device:plugins:data 20 [INJV6XCMCYT8GAOF] Unable to find device data {
  serial: 'INJV6XCMCYT8GAOF',
  platform: 'Android',
  manufacturer: 'REALME',
  operator: ',',
  model: 'RMX3867',
  version: '14',
  abi: 'arm64-v8a',
  sdk: '34',
  product: 'RMX3867',
  cpuPlatform: 'mt6877',
  openGLESVersion: '3.2',
  marketName: 'RE5C86L1',
  display: {
    id: 0,
    width: 1080,
    height: 2400,
    xdpi: 415.635986328125,
    ydpi: 390.7690124511719,
    fps: 120.00000762939453,
    density: 3,
    rotation: 0,
    secure: true,
    size: 6.66878874700719,
    url: 'wss://xxxx/d/floor4/INJV6XCMCYT8GAOF/15000/'
  },
  phone: [Object: null prototype] {}
}
2024-06-03T09:23:12.876Z INF/device:plugins:touch 20 [INJV6XCMCYT8GAOF] Touch origin is top left
2024-06-03T09:23:12.878Z INF/device:plugins:touch 20 [INJV6XCMCYT8GAOF] Requesting touch consumer to start
2024-06-03T09:23:12.880Z INF/device:plugins:touch 20 [INJV6XCMCYT8GAOF] Launching touch service
2024-06-03T09:23:12.895Z INF/device:plugins:touch 20 [INJV6XCMCYT8GAOF] Connecting to minitouch service
2024-06-03T09:23:12.935Z INF/device:plugins:touch 20 [INJV6XCMCYT8GAOF] minitouch says: "open: Permission denied"
2024-06-03T09:23:12.937Z INF/device:plugins:touch 20 [INJV6XCMCYT8GAOF] minitouch says: "Unable to open device /dev/input/event5 for inspectionopen: Permission denied"
2024-06-03T09:23:12.939Z INF/device:plugins:touch 20 [INJV6XCMCYT8GAOF] minitouch says: "Unable to open device /dev/input/event0 for inspectionopen: Permission denied"
2024-06-03T09:23:12.941Z INF/device:plugins:touch 20 [INJV6XCMCYT8GAOF] minitouch says: "Unable to open device /dev/input/event2 for inspectionopen: Permission denied"
2024-06-03T09:23:12.944Z INF/device:plugins:touch 20 [INJV6XCMCYT8GAOF] minitouch says: "Unable to open device /dev/input/event3 for inspectionopen: Permission denied"
2024-06-03T09:23:12.946Z INF/device:plugins:touch 20 [INJV6XCMCYT8GAOF] minitouch says: "Unable to open device /dev/input/event4 for inspectionopen: Permission denied"
2024-06-03T09:23:12.948Z INF/device:plugins:touch 20 [INJV6XCMCYT8GAOF] minitouch says: "Unable to open device /dev/input/event1 for inspectionUnable to find a suitable touch device"
2024-06-03T09:23:12.950Z INF/device:plugins:touch 20 [INJV6XCMCYT8GAOF] minitouch says: "using Android InputManager"
2024-06-03T09:23:13.009Z INF/device:plugins:touch 20 [INJV6XCMCYT8GAOF] minitouch says: "Connection established"
2024-06-03T09:23:13.012Z INF/device:plugins:touch 20 [INJV6XCMCYT8GAOF] Reading minitouch banner
2024-06-03T09:23:13.063Z INF/device:plugins:vnc 20 [INJV6XCMCYT8GAOF] Starting VNC server on port 15002
2024-06-03T09:23:13.069Z INF/device:plugins:browser 20 [INJV6XCMCYT8GAOF] Loading browser list
2024-06-03T09:23:13.109Z INF/device:plugins:browser 20 [INJV6XCMCYT8GAOF] Updating browser list
2024-06-03T09:23:13.111Z WRN/device:plugins:browser 20 [INJV6XCMCYT8GAOF] Unmapped browser "com.heytap.browser"
2024-06-03T09:23:13.113Z WRN/device:plugins:browser 20 [INJV6XCMCYT8GAOF] Unmapped browser "com.transsion.phoenix"
2024-06-03T09:23:13.119Z INF/device:plugins:mute 20 [INJV6XCMCYT8GAOF] Will not mute master volume
2024-06-03T09:23:13.317Z INF/device:resources:minirev 20 [INJV6XCMCYT8GAOF] Installing "/app/vendor/minirev/arm64-v8a/minirev" as "/data/local/tmp/minirev"
2024-06-03T09:23:13.382Z INF/device:plugins:forward 20 [INJV6XCMCYT8GAOF] Launching reverse port forwarding service
2024-06-03T09:23:13.399Z INF/device:plugins:forward 20 [INJV6XCMCYT8GAOF] Connecting to reverse port forwarding service
2024-06-03T09:23:13.590Z INF/device 20 [INJV6XCMCYT8GAOF] Fully operational
2024-06-03T09:23:18.996Z INF/provider 1 [*] Providing all 1 device(s)
2024-06-03T09:23:33.351Z IMP/device:plugins:group 20 [INJV6XCMCYT8GAOF] Now owned by "[email protected]"
2024-06-03T09:23:33.352Z INF/device:plugins:group 20 [INJV6XCMCYT8GAOF] Subscribing to group channel "gz1ltc8VQX2qtcoc+yXvVQ=="
2024-06-03T09:23:34.016Z INF/device:plugins:screen:stream 20 [INJV6XCMCYT8GAOF] Setting frame producer projection to 864x864
2024-06-03T09:23:34.020Z INF/device:plugins:screen:stream 20 [INJV6XCMCYT8GAOF] Requesting frame producer to start
2024-06-03T09:23:34.024Z INF/device:plugins:screen:stream 20 [INJV6XCMCYT8GAOF] Launching screen service minicap-bin
2024-06-03T09:23:34.027Z ERR/device:resources:minicap 20 [INJV6XCMCYT8GAOF] Missing resources/unknown minicap grabber: minicap-bin
2024-06-03T09:23:34.030Z INF/device:resources:minicap 20 [INJV6XCMCYT8GAOF] undefined
2024-06-03T09:23:34.061Z INF/device:plugins:screen:stream 20 [INJV6XCMCYT8GAOF] minicap says: "/system/bin/sh: undefined: inaccessible or not found"
2024-06-03T09:23:34.065Z WRN/device:plugins:screen:stream 20 [INJV6XCMCYT8GAOF] Shell keeping minicap running ended unexpectedly
2024-06-03T09:23:34.468Z INF/device:plugins:connect 20 [INJV6XCMCYT8GAOF] Listening on port 15001
2024-06-03T09:23:34.472Z IMP/device:plugins:connect 20 [INJV6XCMCYT8GAOF] Remote Connect Started for device "INJV6XCMCYT8GAOF" at "10.70.11.79:15001"
2024-06-03T09:23:39.062Z INF/device:plugins:screen:stream 20 [INJV6XCMCYT8GAOF] Disconnecting from minicap service
2024-06-03T09:23:39.063Z INF/device:plugins:screen:stream 20 [INJV6XCMCYT8GAOF] Stopping minicap service
2024-06-03T09:23:39.065Z INF/device:plugins:screen:stream 20 [INJV6XCMCYT8GAOF] Launching screen service minicap-apk
2024-06-03T09:23:39.066Z INF/device:resources:minicap 20 [INJV6XCMCYT8GAOF] CLASSPATH=/data/local/tmp/minicap.apk app_process /system/bin io.devicefarmer.minicap.Main -S -Q 80 -P 1080x2400@864x864/0
2024-06-03T09:23:39.475Z INF/device:plugins:screen:stream 20 [INJV6XCMCYT8GAOF] minicap says: "11:23:38.509 [main] INFO  BaseProvider - framePeriodMs: 0"
2024-06-03T09:23:39.479Z INF/device:plugins:screen:stream 20 [INJV6XCMCYT8GAOF] minicap says: "PID: 6735"
2024-06-03T09:23:39.482Z INF/device:plugins:screen:stream 20 [INJV6XCMCYT8GAOF] minicap says: "INFO: 1080x2400@389x864/0"
2024-06-03T09:23:39.487Z INF/device:plugins:screen:stream 20 [INJV6XCMCYT8GAOF] minicap says: "11:23:38.535 [main] INFO  Main - Listening on socket : minicap"
2024-06-03T09:23:39.490Z INF/device:plugins:screen:stream 20 [INJV6XCMCYT8GAOF] Connecting to minicap service
2024-06-03T09:23:39.502Z INF/device:plugins:screen:stream 20 [INJV6XCMCYT8GAOF] Reading minicap banner
2024-06-03T09:23:55.477Z INF/device:plugins:screen:stream 20 [INJV6XCMCYT8GAOF] minicap says: "11:23:54.536 [main] WARN  BaseProvider - no image available"
2024-06-03T09:25:01.761Z IMP/device:plugins:service 20 [INJV6XCMCYT8GAOF] Service connection ended, attempting to relaunch
2024-06-03T09:25:01.764Z INF/device:plugins:service 20 [INJV6XCMCYT8GAOF] Launching service
2024-06-03T09:25:01.765Z INF/device:plugins:service 20 [INJV6XCMCYT8GAOF] using 'start-foreground-service' command for API 34
2024-06-03T09:25:01.952Z IMP/device:plugins:service 20 [INJV6XCMCYT8GAOF] Service relaunched in 191ms
2024-06-03T09:25:01.996Z INF/device:plugins:display 20 [INJV6XCMCYT8GAOF] Rotation changed to 0
2024-06-03T09:25:02.000Z INF/device:plugins:screen:stream 20 [INJV6XCMCYT8GAOF] Keeping 0 as current frame producer rotation
2024-06-03T09:25:02.005Z INF/device:plugins:browser 20 [INJV6XCMCYT8GAOF] Updating browser list
2024-06-03T09:25:02.008Z WRN/device:plugins:browser 20 [INJV6XCMCYT8GAOF] Unmapped browser "com.heytap.browser"
2024-06-03T09:25:02.011Z WRN/device:plugins:browser 20 [INJV6XCMCYT8GAOF] Unmapped browser "com.transsion.phoenix"
2024-06-03T09:25:29.242Z INF/device:plugins:screen:stream 20 [INJV6XCMCYT8GAOF] Requesting frame producer to stop
2024-06-03T09:25:29.243Z INF/device:plugins:screen:stream 20 [INJV6XCMCYT8GAOF] Disconnecting from minicap service
2024-06-03T09:25:29.245Z INF/device:plugins:screen:stream 20 [INJV6XCMCYT8GAOF] Stopping minicap service
2024-06-03T09:25:29.246Z INF/device:plugins:screen:stream 20 [INJV6XCMCYT8GAOF] Sending SIGTERM to minicap
2024-06-03T09:25:29.306Z INF/device:plugins:screen:stream 20 [INJV6XCMCYT8GAOF] minicap says: "Terminated "
2024-06-03T09:25:33.153Z IMP/device:plugins:group 20 [INJV6XCMCYT8GAOF] No longer owned by "[email protected]"
2024-06-03T09:25:33.156Z INF/device:plugins:group 20 [INJV6XCMCYT8GAOF] Unsubscribing from group channel "gz1ltc8VQX2qtcoc+yXvVQ=="
2024-06-03T09:25:36.943Z IMP/device:plugins:group 20 [INJV6XCMCYT8GAOF] Now owned by "[email protected]"
2024-06-03T09:25:36.945Z INF/device:plugins:group 20 [INJV6XCMCYT8GAOF] Subscribing to group channel "gz1ltc8VQX2qtcoc+yXvVQ=="
2024-06-03T09:25:37.617Z INF/device:plugins:screen:stream 20 [INJV6XCMCYT8GAOF] Keeping 864x864 as current frame producer projection
2024-06-03T09:25:37.622Z INF/device:plugins:screen:stream 20 [INJV6XCMCYT8GAOF] Requesting frame producer to start
2024-06-03T09:25:37.623Z INF/device:plugins:screen:stream 20 [INJV6XCMCYT8GAOF] Launching screen service minicap-apk
2024-06-03T09:25:37.623Z INF/device:resources:minicap 20 [INJV6XCMCYT8GAOF] CLASSPATH=/data/local/tmp/minicap.apk app_process /system/bin io.devicefarmer.minicap.Main -S -Q 80 -P 1080x2400@864x864/0
2024-06-03T09:25:38.066Z INF/device:plugins:connect 20 [INJV6XCMCYT8GAOF] Listening on port 15001
2024-06-03T09:25:38.071Z IMP/device:plugins:connect 20 [INJV6XCMCYT8GAOF] Remote Connect Started for device "INJV6XCMCYT8GAOF" at "10.70.11.79:15001"
2024-06-03T09:25:38.235Z INF/device:plugins:screen:stream 20 [INJV6XCMCYT8GAOF] minicap says: "11:25:37.279 [main] INFO  BaseProvider - framePeriodMs: 0"
2024-06-03T09:25:38.238Z INF/device:plugins:screen:stream 20 [INJV6XCMCYT8GAOF] minicap says: "PID: 7042"
2024-06-03T09:25:38.241Z INF/device:plugins:screen:stream 20 [INJV6XCMCYT8GAOF] minicap says: "INFO: 1080x2400@389x864/0"
2024-06-03T09:25:38.244Z INF/device:plugins:screen:stream 20 [INJV6XCMCYT8GAOF] minicap says: "11:25:37.293 [main] INFO  Main - Listening on socket : minicap"
2024-06-03T09:25:38.248Z INF/device:plugins:screen:stream 20 [INJV6XCMCYT8GAOF] Connecting to minicap service
2024-06-03T09:25:38.258Z INF/device:plugins:screen:stream 20 [INJV6XCMCYT8GAOF] Reading minicap banner
2024-06-03T09:25:43.469Z INF/device:plugins:screen:stream 20 [INJV6XCMCYT8GAOF] minicap says: "11:25:42.526 [main] WARN  BaseProvider - no image available"
2024-06-03T09:25:47.677Z INF/device:plugins:screen:stream 20 [INJV6XCMCYT8GAOF] minicap says: "11:25:46.735 [main] WARN  BaseProvider - no image available"
2024-06-03T09:25:48.475Z INF/device:plugins:screen:stream 20 [INJV6XCMCYT8GAOF] minicap says: "11:25:47.533 [main] WARN  BaseProvider - no image available"
2024-06-03T09:25:49.475Z INF/device:plugins:screen:stream 20 [INJV6XCMCYT8GAOF] minicap says: "11:25:48.533 [main] WARN  BaseProvider - no image available"
2024-06-03T09:26:10.014Z INF/device:plugins:screen:stream 20 [INJV6XCMCYT8GAOF] minicap says: "11:26:09.070 [main] WARN  BaseProvider - no image available"
2024-06-03T09:26:10.018Z INF/device:plugins:screen:stream 20 [INJV6XCMCYT8GAOF] minicap says: "11:26:09.071 [main] WARN  BaseProvider - no image available"
2024-06-03T09:26:17.669Z INF/device:plugins:screen:stream 20 [INJV6XCMCYT8GAOF] minicap says: "11:26:16.727 [main] WARN  BaseProvider - no image available"
2024-06-03T09:26:19.635Z INF/device:plugins:screen:stream 20 [INJV6XCMCYT8GAOF] minicap says: "11:26:18.692 [main] WARN  BaseProvider - no image available"
2024-06-03T09:26:20.187Z INF/device:plugins:screen:stream 20 [INJV6XCMCYT8GAOF] minicap says: "11:26:19.244 [main] WARN  BaseProvider - no image available"
2024-06-03T09:26:20.191Z INF/device:plugins:screen:stream 20 [INJV6XCMCYT8GAOF] minicap says: "11:26:19.244 [main] WARN  BaseProvider - no image available"
2024-06-03T09:26:20.195Z INF/device:plugins:screen:stream 20 [INJV6XCMCYT8GAOF] minicap says: "11:26:19.244 [main] WARN  BaseProvider - no image available"
2024-06-03T09:26:23.840Z INF/device:plugins:screen:stream 20 [INJV6XCMCYT8GAOF] minicap says: "11:26:22.898 [main] WARN  BaseProvider - no image available"
2024-06-03T09:26:26.495Z INF/device:plugins:screen:stream 20 [INJV6XCMCYT8GAOF] minicap says: "11:26:25.551 [main] WARN  BaseProvider - no image available"
2024-06-03T09:26:27.085Z INF/device:plugins:screen:stream 20 [INJV6XCMCYT8GAOF] minicap says: "11:26:26.142 [main] WARN  BaseProvider - no image available"
2024-06-03T09:26:27.088Z INF/device:plugins:screen:stream 20 [INJV6XCMCYT8GAOF] minicap says: "11:26:26.142 [main] WARN  BaseProvider - no image available"
2024-06-03T09:26:27.351Z INF/device:plugins:screen:stream 20 [INJV6XCMCYT8GAOF] minicap says: "11:26:26.407 [main] WARN  BaseProvider - no image available"
^C


@KishanDasani
Copy link

@KingRat0011 For Pixel devices, you can see SurfaceControl Error. You can use updated minicap apk which handles this error.
DeviceFarmer/minicap#54

@KingRat0011
Copy link
Author

Hi @KishanDasani
This is going down a rabbit hole, I'm not sure what to do, according to this DeviceFarmer/minicap#59 , the changes has already been implemented in stf? So if I'm running 3.6.8, I should have the implemented changes? Is there a way to do a version check on minicap?

@KishanDasani
Copy link

@KingRat0011
required changes are merged in minicap project under DeviceFarmer. They have not yet updated the NPM package for the same. NPM repo is last updated 2 years before.
You can take the master branch code from https://github.com/DeviceFarmer/minicap and put it with your stf code.

moreover, not able to understand what you're saying about 3.6.8 version, whose version it is?
Also, I don't think minicap has any versioning, stf code will take necessary files from node_modules/@devicefarmer/minicap-prebuilt/prebuilt/{supported ABI of the device}

@KingRat0011
Copy link
Author

Hi @KishanDasani
The 3.6.8 version is the devicefarmer/stf build
image
Do you have the mincap binaries that you are using somewhere online where I can download them please, that will save me from building them?
Thanks for all the info

@KishanDasani
Copy link

@KingRat0011 Folks from DeviceFarmer can further guide on this if I am going in wrong direction, but here are the things I know

DeviceFarmer's minicap repo is updated with latest changes.
minicap so & apk files are not updated with these changes until I know.

as of now, you will have to build APK with changes of SurfaceControl error and you can use that independently, that's what I have done.

@KingRat0011
Copy link
Author

Hi
This does not make sense to me, I've build the minicap from https://github.com/DeviceFarmer/minicap
I get the minicaps in the libs directory

root@stfdockerdev:/opt/temp/minicap/libs# ls -ltr
total 16
drwxr-xr-x 2 root root 4096 Jun  4 07:16 armeabi-v7a
drwxr-xr-x 2 root root 4096 Jun  4 07:17 arm64-v8a
drwxr-xr-x 2 root root 4096 Jun  4 07:17 x86
drwxr-xr-x 2 root root 4096 Jun  4 07:17 x86_64
root@stfdockerdev:/opt/temp/minicap/libs#
root@stfdockerdev:/opt/temp/minicap/libs# ls -ltr x86_64/
total 1352
-rwxr-xr-x 1 root root 684472 Jun  4 07:17 minicap
-rwxr-xr-x 1 root root 684472 Jun  4 07:17 minicap-nopie
-rwxr-xr-x 1 root root   4176 Jun  4 07:17 minicap.so
root@stfdockerdev:/opt/temp/minicap/libs# 

I uploaded the new minicaps to /usr/lib/node_modules/stf/node_modules/@devicefarmer/minicap-prebuilt/prebuilt/arm64-v8a/bin etc
I then set the stf-provider to --screen-grabber minicap-bin, but it still loads
2024-06-04T08:21:12.287Z INF/device:resources:minicap 25140 [3B061JEKB06183] Installing "/usr/lib/node_modules/stf/node_modules/@devicefarmer/minicap-prebuilt/prebuilt/noarch/minicap.apk" as "/data/local/tmp/minicap.apk"

2024-06-04T08:21:11.859Z INF/device:support:sub 25140 [3B061JEKB06183] Subscribing to permanent channel "*ALL"
2024-06-04T08:21:11.956Z INF/device:support:properties 25140 [3B061JEKB06183] Loading properties
2024-06-04T08:21:12.026Z INF/device:support:sdk 25140 [3B061JEKB06183] Supports SDK 34
2024-06-04T08:21:12.028Z INF/device:support:abi 25140 [3B061JEKB06183] Supports ABIs arm64-v8a
2024-06-04T08:21:12.287Z INF/device:resources:minicap 25140 [3B061JEKB06183] Installing "/usr/lib/node_modules/stf/node_modules/@devicefarmer/minicap-prebuilt/prebuilt/noarch/minicap.apk" as "/data/local/tmp/minicap.apk"
2024-06-04T08:21:12.769Z INF/device:resources:service 25140 [3B061JEKB06183] Checking whether we need to install STFService
2024-06-04T08:21:12.848Z INF/device:resources:service 25140 [3B061JEKB06183] Running version check
2024-06-04T08:21:14.077Z DBG/device:resources:service 25140 [3B061JEKB06183] output of granting permissions to STFService: 
2024-06-04T08:21:14.079Z INF/device:resources:service 25140 [3B061JEKB06183] STFService up to date
2024-06-04T08:21:14.081Z INF/device:plugins:service 25140 [3B061JEKB06183] Launching agent
2024-06-04T08:21:14.681Z INF/device:plugins:service 25140 [3B061JEKB06183] Agent says: "Starting minitouch agent"
2024-06-04T08:21:14.724Z INF/device:plugins:service 25140 [3B061JEKB06183] Agent says: "Listening on @stfagent"
2024-06-04T08:21:14.726Z INF/device:plugins:service 25140 [3B061JEKB06183] Agent says: "InputClient started"
2024-06-04T08:21:14.728Z INF/device:plugins:service 25140 [3B061JEKB06183] Launching service
2024-06-04T08:21:14.729Z INF/device:plugins:service 25140 [3B061JEKB06183] using 'start-foreground-service' command for API 34
2024-06-04T08:21:14.876Z INF/device:plugins:display 25140 [3B061JEKB06183] Reading display info
2024-06-04T08:21:14.930Z INF/device:plugins:phone 25140 [3B061JEKB06183] Fetching phone info
2024-06-04T08:21:14.955Z INF/device:plugins:identity 25140 [3B061JEKB06183] Solving identity
2024-06-04T08:21:14.964Z INF/device:plugins:solo 25140 [3B061JEKB06183] Subscribing to permanent channel "d4xQDWjvGPqIOI7UXAvB1YhoPVY="
2024-06-04T08:21:14.966Z INF/device:plugins:screen:stream 25140 [3B061JEKB06183] ScreenGrabber option set to minicap-bin
2024-06-04T08:21:14.967Z INF/device:plugins:screen:stream 25140 [3B061JEKB06183] ScreenFrameRate option set to -1
2024-06-04T08:21:14.968Z INF/device:plugins:screen:stream 25140 [3B061JEKB06183] Starting WebSocket server on port 7444
2024-06-04T08:21:14.973Z INF/device:plugins:screen:stream 25140 [3B061JEKB06183] creating FrameProducer: minicap-bin
2024-06-04T08:21:15.222Z INF/device:resources:minitouch 25140 [3B061JEKB06183] Installing "/usr/lib/node_modules/stf/node_modules/@devicefarmer/minitouch-prebuilt/prebuilt/arm64-v8a/bin/minitouch" as "/data/local/tmp/minitouch"
2024-06-04T08:21:15.449Z WRN/device:plugins:data 25140 [3B061JEKB06183] Unable to find device data {
  serial: '3B061JEKB06183',
  platform: 'Android',
  manufacturer: 'GOOGLE',
  operator: 'xxxxxx',
  model: 'Pixel 8a',
  version: '14',
  abi: 'arm64-v8a',
  sdk: '34',
  product: 'akita',
  cpuPlatform: 'zuma',
  openGLESVersion: '3.2',
  marketName: 'akita',
  display: {
    id: 0,
    width: 1080,
    height: 2400,
    xdpi: 391.885009765625,
    ydpi: 409.12701416015625,
    fps: 60,
    density: 2.625,
    rotation: 0,
    secure: true,
    size: 6.481261132826809,
    url: 'ws://10.119.102.86:7444'
  },
  phone: [Object: null prototype] {}
}
2024-06-04T08:21:15.454Z INF/device:plugins:touch 25140 [3B061JEKB06183] Touch origin is top left
2024-06-04T08:21:15.455Z INF/device:plugins:touch 25140 [3B061JEKB06183] Requesting touch consumer to start
2024-06-04T08:21:15.455Z INF/device:plugins:touch 25140 [3B061JEKB06183] Launching touch service
2024-06-04T08:21:15.486Z INF/device:plugins:touch 25140 [3B061JEKB06183] Connecting to minitouch service
2024-06-04T08:21:15.502Z INF/device:plugins:touch 25140 [3B061JEKB06183] minitouch says: "open: Permission denied"
2024-06-04T08:21:15.503Z INF/device:plugins:touch 25140 [3B061JEKB06183] minitouch says: "Unable to open device /dev/input/event3 for inspectionopen: Permission denied"
2024-06-04T08:21:15.503Z INF/device:plugins:touch 25140 [3B061JEKB06183] minitouch says: "Unable to open device /dev/input/event2 for inspectionopen: Permission denied"
2024-06-04T08:21:15.504Z INF/device:plugins:touch 25140 [3B061JEKB06183] minitouch says: "Unable to open device /dev/input/event1 for inspectionopen: Permission denied"
2024-06-04T08:21:15.505Z INF/device:plugins:touch 25140 [3B061JEKB06183] minitouch says: "Unable to open device /dev/input/event0 for inspectionUnable to find a suitable touch device"
2024-06-04T08:21:15.505Z INF/device:plugins:touch 25140 [3B061JEKB06183] minitouch says: "using Android InputManager"
2024-06-04T08:21:15.545Z INF/device:plugins:touch 25140 [3B061JEKB06183] minitouch says: "Connection established"
2024-06-04T08:21:15.547Z INF/device:plugins:touch 25140 [3B061JEKB06183] Reading minitouch banner
2024-06-04T08:21:15.552Z INF/device:plugins:vnc 25140 [3B061JEKB06183] Starting VNC server on port 7446
2024-06-04T08:21:15.555Z INF/device:plugins:browser 25140 [3B061JEKB06183] Loading browser list
2024-06-04T08:21:15.597Z INF/device:plugins:browser 25140 [3B061JEKB06183] Updating browser list
2024-06-04T08:21:15.600Z INF/device:plugins:mute 25140 [3B061JEKB06183] Will not mute master volume
2024-06-04T08:21:16.200Z INF/device:resources:minirev 25140 [3B061JEKB06183] Installing "/usr/lib/node_modules/stf/vendor/minirev/arm64-v8a/minirev" as "/data/local/tmp/minirev"
2024-06-04T08:21:16.428Z INF/device:plugins:forward 25140 [3B061JEKB06183] Launching reverse port forwarding service
2024-06-04T08:21:16.458Z INF/device:plugins:forward 25140 [3B061JEKB06183] Connecting to reverse port forwarding service
2024-06-04T08:21:16.484Z INF/device 25140 [3B061JEKB06183] Fully operational

Am I supposed to get an apk from the minicap build?

@KishanDasani
Copy link

KishanDasani commented Jun 4, 2024

Hi This does not make sense to me, I've build the minicap from https://github.com/DeviceFarmer/minicap I get the minicaps in the libs directory

root@stfdockerdev:/opt/temp/minicap/libs# ls -ltr
total 16
drwxr-xr-x 2 root root 4096 Jun  4 07:16 armeabi-v7a
drwxr-xr-x 2 root root 4096 Jun  4 07:17 arm64-v8a
drwxr-xr-x 2 root root 4096 Jun  4 07:17 x86
drwxr-xr-x 2 root root 4096 Jun  4 07:17 x86_64
root@stfdockerdev:/opt/temp/minicap/libs#
root@stfdockerdev:/opt/temp/minicap/libs# ls -ltr x86_64/
total 1352
-rwxr-xr-x 1 root root 684472 Jun  4 07:17 minicap
-rwxr-xr-x 1 root root 684472 Jun  4 07:17 minicap-nopie
-rwxr-xr-x 1 root root   4176 Jun  4 07:17 minicap.so
root@stfdockerdev:/opt/temp/minicap/libs# 

I uploaded the new minicaps to /usr/lib/node_modules/stf/node_modules/@devicefarmer/minicap-prebuilt/prebuilt/arm64-v8a/bin etc I then set the stf-provider to --screen-grabber minicap-bin, but it still loads 2024-06-04T08:21:12.287Z INF/device:resources:minicap 25140 [3B061JEKB06183] Installing "/usr/lib/node_modules/stf/node_modules/@devicefarmer/minicap-prebuilt/prebuilt/noarch/minicap.apk" as "/data/local/tmp/minicap.apk"

2024-06-04T08:21:11.859Z INF/device:support:sub 25140 [3B061JEKB06183] Subscribing to permanent channel "*ALL"
2024-06-04T08:21:11.956Z INF/device:support:properties 25140 [3B061JEKB06183] Loading properties
2024-06-04T08:21:12.026Z INF/device:support:sdk 25140 [3B061JEKB06183] Supports SDK 34
2024-06-04T08:21:12.028Z INF/device:support:abi 25140 [3B061JEKB06183] Supports ABIs arm64-v8a
2024-06-04T08:21:12.287Z INF/device:resources:minicap 25140 [3B061JEKB06183] Installing "/usr/lib/node_modules/stf/node_modules/@devicefarmer/minicap-prebuilt/prebuilt/noarch/minicap.apk" as "/data/local/tmp/minicap.apk"
2024-06-04T08:21:12.769Z INF/device:resources:service 25140 [3B061JEKB06183] Checking whether we need to install STFService
2024-06-04T08:21:12.848Z INF/device:resources:service 25140 [3B061JEKB06183] Running version check
2024-06-04T08:21:14.077Z DBG/device:resources:service 25140 [3B061JEKB06183] output of granting permissions to STFService: 
2024-06-04T08:21:14.079Z INF/device:resources:service 25140 [3B061JEKB06183] STFService up to date
2024-06-04T08:21:14.081Z INF/device:plugins:service 25140 [3B061JEKB06183] Launching agent
2024-06-04T08:21:14.681Z INF/device:plugins:service 25140 [3B061JEKB06183] Agent says: "Starting minitouch agent"
2024-06-04T08:21:14.724Z INF/device:plugins:service 25140 [3B061JEKB06183] Agent says: "Listening on @stfagent"
2024-06-04T08:21:14.726Z INF/device:plugins:service 25140 [3B061JEKB06183] Agent says: "InputClient started"
2024-06-04T08:21:14.728Z INF/device:plugins:service 25140 [3B061JEKB06183] Launching service
2024-06-04T08:21:14.729Z INF/device:plugins:service 25140 [3B061JEKB06183] using 'start-foreground-service' command for API 34
2024-06-04T08:21:14.876Z INF/device:plugins:display 25140 [3B061JEKB06183] Reading display info
2024-06-04T08:21:14.930Z INF/device:plugins:phone 25140 [3B061JEKB06183] Fetching phone info
2024-06-04T08:21:14.955Z INF/device:plugins:identity 25140 [3B061JEKB06183] Solving identity
2024-06-04T08:21:14.964Z INF/device:plugins:solo 25140 [3B061JEKB06183] Subscribing to permanent channel "d4xQDWjvGPqIOI7UXAvB1YhoPVY="
2024-06-04T08:21:14.966Z INF/device:plugins:screen:stream 25140 [3B061JEKB06183] ScreenGrabber option set to minicap-bin
2024-06-04T08:21:14.967Z INF/device:plugins:screen:stream 25140 [3B061JEKB06183] ScreenFrameRate option set to -1
2024-06-04T08:21:14.968Z INF/device:plugins:screen:stream 25140 [3B061JEKB06183] Starting WebSocket server on port 7444
2024-06-04T08:21:14.973Z INF/device:plugins:screen:stream 25140 [3B061JEKB06183] creating FrameProducer: minicap-bin
2024-06-04T08:21:15.222Z INF/device:resources:minitouch 25140 [3B061JEKB06183] Installing "/usr/lib/node_modules/stf/node_modules/@devicefarmer/minitouch-prebuilt/prebuilt/arm64-v8a/bin/minitouch" as "/data/local/tmp/minitouch"
2024-06-04T08:21:15.449Z WRN/device:plugins:data 25140 [3B061JEKB06183] Unable to find device data {
  serial: '3B061JEKB06183',
  platform: 'Android',
  manufacturer: 'GOOGLE',
  operator: 'xxxxxx',
  model: 'Pixel 8a',
  version: '14',
  abi: 'arm64-v8a',
  sdk: '34',
  product: 'akita',
  cpuPlatform: 'zuma',
  openGLESVersion: '3.2',
  marketName: 'akita',
  display: {
    id: 0,
    width: 1080,
    height: 2400,
    xdpi: 391.885009765625,
    ydpi: 409.12701416015625,
    fps: 60,
    density: 2.625,
    rotation: 0,
    secure: true,
    size: 6.481261132826809,
    url: 'ws://10.119.102.86:7444'
  },
  phone: [Object: null prototype] {}
}
2024-06-04T08:21:15.454Z INF/device:plugins:touch 25140 [3B061JEKB06183] Touch origin is top left
2024-06-04T08:21:15.455Z INF/device:plugins:touch 25140 [3B061JEKB06183] Requesting touch consumer to start
2024-06-04T08:21:15.455Z INF/device:plugins:touch 25140 [3B061JEKB06183] Launching touch service
2024-06-04T08:21:15.486Z INF/device:plugins:touch 25140 [3B061JEKB06183] Connecting to minitouch service
2024-06-04T08:21:15.502Z INF/device:plugins:touch 25140 [3B061JEKB06183] minitouch says: "open: Permission denied"
2024-06-04T08:21:15.503Z INF/device:plugins:touch 25140 [3B061JEKB06183] minitouch says: "Unable to open device /dev/input/event3 for inspectionopen: Permission denied"
2024-06-04T08:21:15.503Z INF/device:plugins:touch 25140 [3B061JEKB06183] minitouch says: "Unable to open device /dev/input/event2 for inspectionopen: Permission denied"
2024-06-04T08:21:15.504Z INF/device:plugins:touch 25140 [3B061JEKB06183] minitouch says: "Unable to open device /dev/input/event1 for inspectionopen: Permission denied"
2024-06-04T08:21:15.505Z INF/device:plugins:touch 25140 [3B061JEKB06183] minitouch says: "Unable to open device /dev/input/event0 for inspectionUnable to find a suitable touch device"
2024-06-04T08:21:15.505Z INF/device:plugins:touch 25140 [3B061JEKB06183] minitouch says: "using Android InputManager"
2024-06-04T08:21:15.545Z INF/device:plugins:touch 25140 [3B061JEKB06183] minitouch says: "Connection established"
2024-06-04T08:21:15.547Z INF/device:plugins:touch 25140 [3B061JEKB06183] Reading minitouch banner
2024-06-04T08:21:15.552Z INF/device:plugins:vnc 25140 [3B061JEKB06183] Starting VNC server on port 7446
2024-06-04T08:21:15.555Z INF/device:plugins:browser 25140 [3B061JEKB06183] Loading browser list
2024-06-04T08:21:15.597Z INF/device:plugins:browser 25140 [3B061JEKB06183] Updating browser list
2024-06-04T08:21:15.600Z INF/device:plugins:mute 25140 [3B061JEKB06183] Will not mute master volume
2024-06-04T08:21:16.200Z INF/device:resources:minirev 25140 [3B061JEKB06183] Installing "/usr/lib/node_modules/stf/vendor/minirev/arm64-v8a/minirev" as "/data/local/tmp/minirev"
2024-06-04T08:21:16.428Z INF/device:plugins:forward 25140 [3B061JEKB06183] Launching reverse port forwarding service
2024-06-04T08:21:16.458Z INF/device:plugins:forward 25140 [3B061JEKB06183] Connecting to reverse port forwarding service
2024-06-04T08:21:16.484Z INF/device 25140 [3B061JEKB06183] Fully operational

Am I supposed to get an apk from the minicap build?

I guess your device is pretty nicely enrolled, not seeing any errors.

if you are able to see folders for SDK 32, 33, 34 inside @node_modules/devicefarmer/minicap-prebuilt/prebuilt/{supported ABI}/{SDK}, then you will possibly not needing the APK file.
but if these folders are not in there, you will need minicap apk.

you can open experimental folder in Android Studio and follow the process to get an apk, place it in node_modules/@devicefarmer/minicap-prebuilt/prebuilt/noarch/ folder.

if you need more help, you can reach out to people from DeviceFarmer, they can guide you better. or we can get in touch personally.

@KingRat0011
Copy link
Author

Seem like the latest code fixed the problem, the device displays and I can control it

Thanks @koral-- !!!!
image

2024-06-05T10:06:43.191Z INF/device:plugins:screen:stream 1791 [3B061JEKB06183] Setting frame producer projection to 865x865
2024-06-05T10:06:43.195Z INF/device:plugins:screen:stream 1791 [3B061JEKB06183] Requesting frame producer to start
2024-06-05T10:06:43.198Z INF/device:plugins:screen:stream 1791 [3B061JEKB06183] Launching screen service minicap-apk
2024-06-05T10:06:43.200Z INF/device:resources:minicap 1791 [3B061JEKB06183] CLASSPATH=/data/local/tmp/minicap.apk app_process /system/bin io.devicefarmer.minicap.Main -S -Q 80 -P 1080x2400@865x865/0
2024-06-05T10:06:43.528Z INF/device:plugins:screen:stream 1791 [3B061JEKB06183] minicap says: "05:06:46.264 [main] INFO  BaseProvider - framePeriodMs: 0"
2024-06-05T10:06:43.530Z INF/device:plugins:screen:stream 1791 [3B061JEKB06183] minicap says: "PID: 17598"
2024-06-05T10:06:43.532Z INF/device:plugins:screen:stream 1791 [3B061JEKB06183] minicap says: "INFO: 1080x2400@389x865/0"
2024-06-05T10:06:43.533Z INF/device:plugins:screen:stream 1791 [3B061JEKB06183] minicap says: "05:06:46.270 [main] INFO  Main - Listening on socket : minicap"
2024-06-05T10:06:43.535Z INF/device:plugins:screen:stream 1791 [3B061JEKB06183] Connecting to minicap service
2024-06-05T10:06:43.559Z INF/device:plugins:screen:stream 1791 [3B061JEKB06183] Reading minicap banner
2024-06-05T10:06:43.603Z INF/device:plugins:screen:stream 1791 [3B061JEKB06183] minicap says: "Handle the exception gracefully"
2024-06-05T10:06:43.606Z INF/device:plugins:screen:stream 1791 [3B061JEKB06183] minicap says: "NoSuchMethodException Method not found: android.view.SurfaceControl.createDisplay [class java.lang.String, boolean]"
2024-06-05T10:06:43.606Z INF/device:plugins:screen:stream 1791 [3B061JEKB06183] minicap says: "Try Display: using DisplayManager API"
2024-06-05T10:07:33.394Z INF/device:plugins:screen:stream 1791 [3B061JEKB06183] minicap says: "05:07:36.136 [main] WARN  BaseProvider - no image available"
2024-06-05T10:08:41.789Z INF/device:plugins:service 1791 [3B061JEKB06183] Agent says: "count not manage events #3"
2024-06-05T10:09:37.906Z INF/device:plugins:screen:stream 1791 [3B061JEKB06183] Requesting frame producer to stop
2024-06-05T10:09:37.908Z INF/device:plugins:screen:stream 1791 [3B061JEKB06183] Disconnecting from minicap service
2024-06-05T10:09:37.925Z INF/device:plugins:screen:stream 1791 [3B061JEKB06183] Stopping minicap service
2024-06-05T10:09:37.927Z INF/device:plugins:screen:stream 1791 [3B061JEKB06183] Sending SIGTERM to minicap
2024-06-05T10:09:38.015Z INF/device:plugins:screen:stream 1791 [3B061JEKB06183] minicap says: "Terminated "
2024-06-05T10:10:11.634Z INF/device:plugins:screen:stream 1791 [3B061JEKB06183] Setting frame producer projection to 864x864
2024-06-05T10:10:11.635Z INF/device:plugins:screen:stream 1791 [3B061JEKB06183] Requesting frame producer to start
2024-06-05T10:10:11.636Z INF/device:plugins:screen:stream 1791 [3B061JEKB06183] Launching screen service minicap-apk
2024-06-05T10:10:11.637Z INF/device:resources:minicap 1791 [3B061JEKB06183] CLASSPATH=/data/local/tmp/minicap.apk app_process /system/bin io.devicefarmer.minicap.Main -S -Q 80 -P 1080x2400@864x864/0
2024-06-05T10:10:11.979Z INF/device:plugins:screen:stream 1791 [3B061JEKB06183] minicap says: "05:10:14.721 [main] INFO  BaseProvider - framePeriodMs: 0"
2024-06-05T10:10:11.981Z INF/device:plugins:screen:stream 1791 [3B061JEKB06183] minicap says: "PID: 18205"
2024-06-05T10:10:11.981Z INF/device:plugins:screen:stream 1791 [3B061JEKB06183] minicap says: "INFO: 1080x2400@389x864/0"
2024-06-05T10:10:11.981Z INF/device:plugins:screen:stream 1791 [3B061JEKB06183] minicap says: "05:10:14.727 [main] INFO  Main - Listening on socket : minicap"
2024-06-05T10:10:11.985Z INF/device:plugins:screen:stream 1791 [3B061JEKB06183] Connecting to minicap service
2024-06-05T10:10:12.005Z INF/device:plugins:screen:stream 1791 [3B061JEKB06183] Reading minicap banner
2024-06-05T10:10:12.048Z INF/device:plugins:screen:stream 1791 [3B061JEKB06183] minicap says: "Handle the exception gracefully"
2024-06-05T10:10:12.049Z INF/device:plugins:screen:stream 1791 [3B061JEKB06183] minicap says: "NoSuchMethodException Method not found: android.view.SurfaceControl.createDisplay [class java.lang.String, boolean]"
2024-06-05T10:10:12.050Z INF/device:plugins:screen:stream 1791 [3B061JEKB06183] minicap says: "Try Display: using DisplayManager API"
2024-06-05T10:10:21.960Z INF/device:plugins:service 1791 [3B061JEKB06183] Agent says: "count not manage events #0"
2024-06-05T10:10:21.962Z INF/device:plugins:service 1791 [3B061JEKB06183] Agent says: "count not manage events #0"
2024-06-05T10:10:21.968Z INF/device:plugins:service 1791 [3B061JEKB06183] Agent says: "count not manage events #0"
2024-06-05T10:10:21.972Z INF/device:plugins:service 1791 [3B061JEKB06183] Agent says: "count not manage events #0"
2024-06-05T10:10:21.973Z INF/device:plugins:service 1791 [3B061JEKB06183] Agent says: "count not manage events #0"
2024-06-05T10:10:21.974Z INF/device:plugins:service 1791 [3B061JEKB06183] Agent says: "count not manage events #0"
2024-06-05T10:10:21.974Z INF/device:plugins:service 1791 [3B061JEKB06183] Agent says: "count not manage events #0"
2024-06-05T10:10:21.975Z INF/device:plugins:service 1791 [3B061JEKB06183] Agent says: "count not manage events #0"
2024-06-05T10:10:21.975Z INF/device:plugins:service 1791 [3B061JEKB06183] Agent says: "count not manage events #0"
2024-06-05T10:10:21.976Z INF/device:plugins:service 1791 [3B061JEKB06183] Agent says: "count not manage events #0"
2024-06-05T10:10:22.394Z INF/device:plugins:service 1791 [3B061JEKB06183] Agent says: "count not manage events #0"
2024-06-05T10:14:42.604Z INF/device:plugins:screen:stream 1791 [3B061JEKB06183] Requesting frame producer to stop
2024-06-05T10:14:42.606Z INF/device:plugins:screen:stream 1791 [3B061JEKB06183] Disconnecting from minicap service
2024-06-05T10:14:42.616Z INF/device:plugins:screen:stream 1791 [3B061JEKB06183] Stopping minicap service
2024-06-05T10:14:42.617Z INF/device:plugins:screen:stream 1791 [3B061JEKB06183] Sending SIGTERM to minicap
2024-06-05T10:14:42.693Z INF/device:plugins:screen:stream 1791 [3B061JEKB06183] minicap says: "Terminated "

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants