-
Notifications
You must be signed in to change notification settings - Fork 223
Open
Description
Issue
I am following the readme as I am interested in creating an android emulator with playstore.
The idea is that I would be able to run scrcpy to check the output. However, I keep getting the following error:
adb connect <IP>:5555
failed to authenticate to <IP>:5555
and with scrcpy:
scrcpy
scrcpy 2.1 <https://github.com/Genymobile/scrcpy>
ERROR: Device is unauthorized:
ERROR: --> (tcpip) <IP>:5555 unauthorized
ERROR: A popup should open on the device to request authorization.
ERROR: Check the FAQ: <https://github.com/Genymobile/scrcpy/blob/master/FAQ.md>
ERROR: Server connection failed
Steps followed:
docker build \
--build-arg API_LEVEL=28 \
--build-arg IMG_TYPE=google_apis_playstore \
--build-arg ARCHITECTURE=x86 \
--tag android-emulator .
docker run -it --rm --device /dev/kvm -p 5555:5555 android-emulator
Problems found
scrcpy says:
ERROR: A popup should open on the device to request authorization.
And following their docs it says we can connect via usb to solve this with the flag --otg or we need to accept it in the device.
In this case there is no device because it's an emulator.
The questions
- Is this expected?
- if yes, is there any way to accept the popup or connect to the emulator any other way to get around this?
- could we somehow create a virtual usb device and use
scrcpywith--otgand connect that way? (it won't work if USB debugging isn't enabled by default)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels