Situation: Android OS that runs chroot'ed Ubuntu. As i understand Ubuntu does work on top of android linux kernel, which have integrated Binder interface, i checked few examples here.

Does it mean that i can compile this 'client' library for ubuntu that will use binder /dev/binder? And at same time have an android application that will act as 'server'? The idea is to get IPC working between these two systems.

  • Yes it will work. But the native binder library isn't available in Ubuntu chroot. You'll have build the library / binary with Android NDK (not with GCC) and copy the shared libraries from /system/lib[64]/ to Ubuntu's /lib/. Aug 4, 2022 at 15:03
  • thats not gonna work then because i cant use android Bionic from ubuntu
    – VasiliSk
    Aug 4, 2022 at 15:11
  • Linking to Android libraries with Ubuntu's GCC or building statically linked libraries is a big challenge. So better go for some other option. Why not simply use socket? If you own the app. Aug 4, 2022 at 15:14


You must log in to answer this question.

Browse other questions tagged .