redroid-doc
redroid-doc copied to clipboard
Running edroid/redroid:13.0.0-arm64 in oracle cloud, ubuntu 22.04.1 LTS, but cannot connect to redroid via adb
Describe the bug I have installed Required Kernals and run blew docker(Docker version 20.10.18) command, and cannot connect with adb. It alway display the offline or missing the connection state sometime.
ubuntu@oci3:~$ docker run -itd --rm --memory-swappiness=0 --privileged --pull always -v ~/data:/data -p 5555:5555 redroid/redroid:13.0.0-arm64 ndroidboot.redroid_gpu_mode=guest
ubuntu@oci3:~$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
939a66da7933 redroid/redroid:13.0.0-arm64 "/init qemu=1 androi…" 11 minutes ago Up 11 minutes 0.0.0.0:5555->5555/tcp, :::5555->5555/tcp determined_jennings
ubuntu@oci3:~$ adb devices
List of devices attached
ubuntu@oci3:~$ adb devices
List of devices attached
emulator-5554 offline
make sure the required kernel modules present
grep binder /proc/filesystemsgrep ashmem /proc/misc
ubuntu@oci3:~$ grep binder /proc/filesystems
nodev binder
ubuntu@oci3:~$ grep ashmem /proc/misc
123 ashmem
collect debug logs
curl -fsSL https://raw.githubusercontent.com/remote-android/redroid-doc/master/debug.sh | bash -s -- [CONTAINER]
omit CONTAINER if not exist any more.
ubuntu@oci3:~$ curl -fsSL https://raw.githubusercontent.com/remote-android/redroid-doc/master/debug.sh | bash -s -- 939a66da7933
USAGE: bash [container]
creating tmp dir: /tmp/tmp.FCFb16BRZS
WARNING: you should run this program as super-user.
WARNING: output may be incomplete or inaccurate, you should run this program as super-user.
dmesg: read kernel buffer failed: Operation not permitted
Error with service 'batterystats' while dumping: DEAD_OBJECT
Can't find service: dataloader_manager
Can't find service: device_identifiers
Error with service 'dnsresolver' while dumping: DEAD_OBJECT
Can't find service: file_integrity
Can't find service: lights
Can't find service: mdns
Can't find service: media.audio_flinger
Can't find service: media.player
Can't find service: media.resource_manager
Can't find service: media.resource_observer
Can't find service: memtrack.proxy
Can't find service: netd
Can't find service: performance_hint
Can't find service: platform_compat
Can't find service: platform_compat_native
Can't find service: power
Can't find service: powerstats
Can't find service: recovery
Error with service 'stats' while dumping: PERMISSION_DENIED
Can't find service: system_server_dumper
Can't find service: thermalservice
Can't find service: uri_grants
Can't find service: wifinl80211
Error: argument "eth0" is wrong: table id value is invalid
tar: Removing leading `/' from member names
all logs collected in /tmp/tmp.FCFb16BRZS.tgz
Screenshots If applicable, add screenshots to help explain your problem.
please running with software rendering: androidboot.redroid_gpu_mode=guest (typo in your command ndroidboot.redroid_gpu_mode=guest)
ndroidboot.redroid_gpu_mode=guest
I add the ndroidboot.redroid_gpu_mode=guest as docker container agrument. It still cannot connected by adb
shoud be androidboot.redroid_gpu_mode=guest
shoud be
androidboot.redroid_gpu_mode=guest
@zhouziyang Thanks. It worked.
docker run -itd --rm --memory-swappiness=0 --privileged --pull always -v ~/data:/data -p 5555:5555 redroid/redroid:13.0.0-arm64 androidboot.redroid_gpu_mode=guest