Questions tagged [android-binder]

Android's lightweight remote procedure call mechanism designed for high performance when performing in-process and cross-process calls.

While the term "binder" is somewhat generic, its most popular namesake is the Android-specific interprocess communication mechanism and remote method invocation system. It forms the basis for many of Android's core services.

The official documentation is here, and there is a collection of in-depth information at this wiki.

244 questions
0
votes
0 answers

An error when hal server callback app clint function on the android

This problem has troubled me for a long time, and I hope someone kind can help me. When I was doing a hal program on android12, I encountered such an error "Cannot do a user transaction on a system stability wire protocol version 1 binder…
amloading
  • 1
  • 2
0
votes
0 answers

Compile Binder with OpenCv for Android executable

I'm trying to compile a Binder and OpenCV libraries in the same code. Everything is compiled and runs well separately, but when I'm trying to compile it together I get an error: error: undefined symbol: typeinfo From looking on the internet I found…
0
votes
1 answer

Why recycler view only show first data only?

So I have 3 data on my firestore database, but when I run my app, it only show the first data only. I thought the binder will automatically read all the data and increase by itself like a loop. But turns out it stucks to only first index position. I…
0
votes
0 answers

Android NDK Binder Naming Conventions

I am a newbie to this Android Native code development. I have some questions to get my head wrapped around some of the terms used in Android Native libraries. What is the meaning of ABpBinder, BpBinder, IBinder, AIBinder, IBinderInterface,…
0
votes
0 answers

How to deploy voila on binder? cannot open error

I have a very simple python jupyter notebook (map.ipynb), no ML/AI just a simple map hosted in my public github repo. You will see in it the requirements.txt file. Following the voila deployment documentation, I am trying to deploy it on…
G. Macia
  • 1,204
  • 3
  • 23
  • 38
0
votes
0 answers

Android Treble - AIDL for HAL

What I understand is, if an application is requesting for any service h/w, the flow goes: Process A(Calling Application) --- AIDL --> System Server process B --- AIDL ---> HAL module In terms of, context switching, copying data and etc., is done…
Vidz
  • 406
  • 2
  • 4
  • 16
0
votes
0 answers

libbinder_ndk doesnt open /dev/vndbinder

I have a service process using binder and runs under product partition. To connect to this service from Apps, I have written a shared library which uses AIBinder (eventually link with libbinder_ndk.so). However, I can't use /dev/binder as its only…
0
votes
2 answers

How is Android binder handle generated?

When app need use functions provided by Android system server service, app will getService from ServiceManager first, then call API to send data to system service. When send data to system service by binder driver, there is a call…
Daniel.W
  • 180
  • 1
  • 8
0
votes
1 answer

Why android binder need mmap?

Binder client and server use binder driver to send and receive data. By reading binder related source code, I find that APP process send and receive data by ioctl(BINDER_READ_WRITE), and binder driver read data by copy_from_user and write data by…
Daniel.W
  • 180
  • 1
  • 8
0
votes
1 answer

Fail to pass a List with a lot of Itens between Activities

I have this code: Intent intent = new Intent(currentActivity, nextActivity); Bundle bundle = new Bundle(); bundle.putSerializable(nameParameter, serializable); My serializable is a ArrayList with a bunch of elements. When I use the method…
0
votes
0 answers

Can a client technically use a services binder after unbinding from the service?

Background: I have a few services (open for other apps to use) which run in the same process. The RPC is implemented using AIDL and therefore the services have to be open to multiple threads. This leads me to the question: can a client still use a…
user19309143
0
votes
0 answers

How to start and bind a service without race conditions?

I'm trying to create a service that is primarily run in the foreground and clients can bind to it only if it is already in the started state. However, every potential solution I can come up with is riddled with race conditions. The most promiment…
0
votes
0 answers

aidl file for c++ class (couldn't find import for class)

I am teaching myself binder for c++ and there is barely any documentation, so I'm hoping someone can help me figure out why my aidl file isn't compiling for my custom c++ class. Here is my class header: 1 #include 2 #include…
jkr
  • 1
  • 1
0
votes
2 answers

How to get the client id which is trying to bind my service in Android

I have read thread in the below link. But this is too old and many said in various possiblities. How to get application package name or UID which is trying to bind my service from onBind function? I have altered the question according to my need. I…
RKVM
  • 67
  • 6