Please enable CONFIG_ANDROID_BINDERFS
I'd like to try ReDroid as an alternative to anbox, because one of the Android app I need supports Android >= 8 only.
I've tested running it this way:
docker run -itd --rm --name redroid --memory-swappiness=0 --privileged -v ~/android-data:/data -p 5555:5555 redroid/redroid:8.1.0-latest
But then adb and scrcpy fail to connect to port 5555.
In the container's log I see:
04-09 09:11:40.393 86 86 F DEBUG : Abort message: 'Binder driver could not be opened. Terminating.'
Looking the current kernel configuration I see that CONFIG_ANDROID_BINDERFS
is not enabled:
$ zgrep -i -e android -e ashmem /proc/config.gz
# Android
CONFIG_ASHMEM=y
# end of Android
# Android
CONFIG_ANDROID=y
CONFIG_ANDROID_BINDER_IPC=y
# CONFIG_ANDROID_BINDERFS is not set
CONFIG_ANDROID_BINDER_DEVICES="binder,hwbinder,vndbinder"
# CONFIG_ANDROID_BINDER_IPC_SELFTEST is not set
# end of Android
My L5 is running the up to date 5.16 kernel:
$ uname -a
Linux pinibrem5 5.16.0-1-librem5 #1 SMP PREEMPT Thu Mar 31 21:27:48 UTC 2022 aarch64 GNU/Linux
$ dpkg -l | grep linux-image-5.16
ii linux-image-5.16.0-1-librem5 5.16.18pureos1 arm64 Linux 5.16 for the Librem 5 and its devkit