shamanec / GADS

Simple device farm for remote control of devices and Appium test execution on iOS/Android
MIT License
47 stars 10 forks source link

black screen on android devices #85

Closed brestrepov closed 4 months ago

brestrepov commented 5 months ago

hello, I have successfully configured the project on a mac, when I enter an android device the screen image looks black but if I do any action on the black screen is reflected in the cell phone. Do you have any idea why the black image is seen and how to fix it?

image
shamanec commented 5 months ago

Is the device by any chance running on Android 14? Because Google introduced some changes in the APIs I am using to create the video stream and I havent got around to fixing it yet :( If it's lower than 14 then maybe something is wrong with the GADS-stream setup on the device. You can disconnect the device from the host, open Settings>Apps on the phone and do Force stop on the GADS-stream app. Then manually tap on the GADS-stream icon, you should see a popup asking for recording permissions, allow them, press the Home button and in the device notification bar you should see something like GADS-stream is recording this device screen. Then reconnect the device to the host and wait for it to become available and try again :)

brestrepov commented 5 months ago

I followed the steps you mentioned and it worked, I am testing on an android 13 device, thanks for your help

image
shamanec commented 5 months ago

You got it! In theory setup of the stream should happen automatically but sometimes it fails with no obvious reason and I am not sure why :( I got a lot of improvements done but they are still on develop and I don't know when they'll reach main. Nevertheless if you encounter other issues let me know :)

shamanec commented 4 months ago

That was handled