Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • L linux
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 129
    • Issues 129
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 23
    • Merge requests 23
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Librem5
  • linux
  • Issues
  • #415

Closed
Open
Created Apr 09, 2022 by Gilles Filippini@pini

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
Edited Apr 09, 2022 by Gilles Filippini
Assignee
Assign to
Time tracking