DeviceFarmer / stf

Control and manage Android devices from your browser.
https://devicefarmer.github.io
Other
3.3k stars 475 forks source link

Unable to work with odroid #232

Open Orillion360 opened 3 years ago

Orillion360 commented 3 years ago

What is the issue or idea you have? When connecting an odroid c4, it's not possible to stream the screen.

Does it only happen on a specific device? Please run adb devices -l and paste the corresponding row. It happens on devices with no built-in screen.

Please provide the steps to reproduce the issue. Connect odroid

What is the expected behavior? Can stream the screen

Do you see errors or warnings in the stf local output? If so, please paste them or the full log here. It is unable to save the socket url because the output of the display id 0 (built in display, which it doesn't have) has a DPI of 0, so the "size" is set to Infinity, which cannot be stored in the database.

Please run stf doctor and paste the output here.

StigP1337 commented 2 years ago

I have a similar problem with an Odroid N2 device.

For me it works when a display is attached to the HDMI port.

Then values for xdpi/ydpi and size are determined:

platform: 'Android', manufacturer: 'HARDKERNEL CO., LTD.', operator: null, model: '-N2', version: '9', abi: 'arm64-v8a', sdk: '28', product: 'odroidn2', cpuPlatform: 'odroidn2', openGLESVersion: '3.2', marketName: 'odroidn2', display: { id: 0, width: 1920, height: 1080, xdpi: 139, ydpi: 137, fps: 60.000003814697266, density: 1.5, rotation: 0, secure: true, size: 15.904169394797112, url: 'ws://localhost:7400' }, phone: [Object: null prototype] { network: 'UNKNOWN' }

But when I reboot the device without an attached display values for xdpi and ydpi are 0 and size is Infinity

platform: 'Android', manufacturer: 'HARDKERNEL CO., LTD.', operator: null, model: '-N2', version: '9', abi: 'arm64-v8a', sdk: '28', product: 'odroidn2', cpuPlatform: 'odroidn2', openGLESVersion: '3.2', marketName: 'odroidn2', display: { id: 0, width: 1920, height: 1080, xdpi: 0, ydpi: 0, fps: 59.939998626708984, density: 1.5, rotation: 0, secure: true, size: Infinity, url: 'ws://localhost:7404' }, phone: [Object: null prototype] { network: 'UNKNOWN' }