Fail to connect to screen with versions 16.0 built 250627
Describe the bug 请详细描述问题(ZH_CN)
Running version 16.0 ~~or 15.0~~ built 250627 and connecting with ADB works fine. But trying to connect to the screen fails, when using scrcpy or appium+appium-inspector for example.
There is no other version for 16.0 to compare with, but for 15.0, these same actions are working fine with previous build 240905 .. and build 250627 again too.
make sure the required kernel modules present 确保必须的内核功能已开启(ZH_CN)
- [x]
grep binder /proc/filesystems - [ ]
grep ashmem /proc/misc(optional)
OK, since the same env is fine in my context for all other versions.
Collect debug logs
收集调试日志(ZH_CN)
curl -fsSL https://raw.githubusercontent.com/remote-android/redroid-doc/master/debug.sh | sudo bash -s -- [CONTAINER]
omit CONTAINER if not exist any more.
如容器已退出,可忽略CONTAINER参数(ZH_CN)
Not yet available. Planning it.
Running on Ubuntu 24, Docker 28, cgroup v2.
Screenshots 截图(ZH_CN) If applicable, add screenshots to help explain your problem.
This same issue exists for 16.0.0-latest and 16.0.0_64only-latest (250627).
~~And so for 15.0.0-latest and 15.0.0_64only-latest (250627).~~
While OK with 15.0.0 builds 240905 .. and build 250627 again too.
- running redroid ✅
$ docker run -itd --rm --privileged \
--pull always \
-v ~/data16:/data \
-p 5555:5555 \
--name redroid16 \
redroid/redroid:16.0.0-latest
- connecting with adb ✅
$ adb connect <url_to_my_redroid>:5555
- connecting to screen
- with scrcpy ❌
$ scrcpy -s <url_to_my_redroid>:5555
scrcpy 3.3.1 <https://github.com/Genymobile/scrcpy>
INFO: ADB device found:
INFO: --> (tcpip) <url_to_my_redroid>:5555 device redroid16_x86_64
C:\Users\myuser\scoop\apps\scrcpy\current\scrcpy-server: 1 file pushed, 0 skipped. 42.3 MB/s (90788 bytes in 0.002s)
[server] INFO: Device: [redroid] redroid redroid16_x86_64 (Android 16)
[server] ERROR: Attempt to invoke virtual method 'android.view.InputDevice android.hardware.input.InputManagerGlobal.getInputDevice(int)' on a null object reference
java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.InputDevice android.hardware.input.InputManagerGlobal.getInputDevice(int)' on a null object reference
at android.view.KeyCharacterMap.load(KeyCharacterMap.java:367)
at com.genymobile.scrcpy.control.Controller.<init>(Controller.java:86)
at com.genymobile.scrcpy.Server.scrcpy(Server.java:114)
at com.genymobile.scrcpy.Server.internalMain(Server.java:267)
at com.genymobile.scrcpy.Server.main(Server.java:215)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:371)
ERROR: Could not retrieve device information
ERROR: Server connection failed
- with appium+appium-inspector ❌
Error
Failed to create session. An unknown server-side error occurred while processing the command. Original error: Error executing adbExec. Original error: 'Command '/opt/android/platform-tools/adb -P 5037 -s remote-android\:5555 shell 'settings delete global hidden_api_policy_pre_p_apps;settings delete global hidden_api_policy_p_apps;settings delete global hidden_api_policy'' exited with code 20'; Command output: cmd: Can't find service: settings cmd: Can't find service: settings cmd: Can't find service: settings
I just updated the description as I realized this same issue happens for latest 15.0.0 too. To compare, I didn't and still don't have any problem with its previous build, 240905.
It means that both versions 16.0 and 15.0 fail with their 250627 build.
16.0.0
250627/latest: ❌
15.0.0
250627/latest: ❌ .. ✅!? testing it again 2026-01240905: ✅
(probably related to the moves about android 15 and 16 around June 2025 in the redroid repositories)
Edit 2026-01:
I don't understand how but 15.0.0 build 250627 / latest is back to ✅, without any change.
Are you using prebuilt redroid images or custom images built by yourself?
Are you using prebuilt redroid images or custom images built by yourself?
I am using the prebuilt redroid images.
I'm facing same problem with @ath0mas and older version android15 build 240905 works well.
This problem can be fixed after applying this patch remote-android/redroid-patches#5
You can do a quick test by using image I built: teddynight/redroid16:latest
see pull request for details.
Thanks @TeddyNight!
Running teddynight/redroid16:latest and connecting to it works great. Using it from now on 👍
You can do a quick test by using image I built:
teddynight/redroid16:latest
Could you publish a Aarch64 image build please?