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
5
votes
1 answer

how can i share a Jupyter Notebook?

I am using Julia but didn't really like the IDE (more of a notebook guy). So I used for the first time Jupyter (lab and notebooks). I started Jupyter from Anaconda and made my notebook. The thing is I want to share it. Like other people can access a…
5
votes
1 answer

Android System's use of Binder Tokens

I am reading about use of Binder tokens inside Android System at this blog post. I saw the example related to wakelocks where the token is used to identify subsequent requests from same application. I want to ask why in the Android system the UID…
Jake
  • 16,329
  • 50
  • 126
  • 202
5
votes
0 answers

In Android is it possible to force binder death?

I have a Binder that I am sending to a remote process, that remote process uses linkToDeath to watch for when the Binder dies. The remote process gets the callback when the process crashes now, but is there a way I can trigger Binder death…
satur9nine
  • 13,927
  • 5
  • 80
  • 123
5
votes
3 answers

What are the ordering guarantees of AIDL "oneway" remote calls?

AIDL methods and interfaces marked with the "oneway" keyword are asynchronous Binder calls for remote processes, and it is said that the ordering of the calls is not guaranteed. On the other hand, the last comment of Dianne Hackborn (author of…
br1
  • 425
  • 4
  • 9
5
votes
3 answers

Pass active objects between services through AIDL

I'm trying to have a common object shared for several services in different packages. Each service must call the same object. For example, Service A (from APK A) instantiates a custom object and I want that Service B and C (from APK B and C)…
nbe_42
  • 1,212
  • 1
  • 14
  • 22
5
votes
2 answers

Android Binder clearing caller identity

Recently I read Android source codes and find that a pair of methods are always called when doing some Binder IPC call. I read the comment, but I can't clearly know the root reason. The pair of method is as follow: final long origId =…
Crystal Jake
  • 201
  • 4
  • 13
5
votes
1 answer

Sharing file descriptor using Android binder

How can I share file descriptor across process using Android binder IPC in C++? Can you post example also?
user1844484
  • 101
  • 1
  • 3
5
votes
2 answers

How can I use AIDL remote service to deal with defferent clients' concurrent requests?

I'm writting a plug-in which defines a remote Service and provides a AIDL interface for 3rd party developers. How can I use this remote service to deal with defferent clients' concurrent requests? It is that service apk's activitys can keep status…
Shrek.Z
  • 51
  • 1
  • 2
5
votes
2 answers

Android Binder Internals

I am working on a project where we add some non-standard security features to an android system, and I have some serious problems to adapt the Binder. Does anyone have a deep knowledge on the Binder System and knows why the Binder "blocks" a process…
user1685376
  • 51
  • 1
  • 2
4
votes
1 answer

Android: trouble with bindService() -> service is null

I'm having a problem with binding service to an activity. I get playing_service==null. I can't find what I'm doing wrong. Why is playing_service null?? MyActivity class: private playService playing_service=null; private ServiceConnection…
c0dehunter
  • 6,412
  • 16
  • 77
  • 139
4
votes
2 answers

Android remote method data limit

for my application I need to pass data between my activity and the the service both of which are in different processes. I know that Google recommends to keep the data passed while sending intent to a minimum (not full size bitmaps). Does a similar…
android_devrah
  • 270
  • 4
  • 11
4
votes
0 answers

Flutter : Failed to get binder for service "vendor.vpsservice"

Flutter dummy app creates an issue. I created a new app and run it on an android real device. It's show me an issue continuously on terminal like Performing hot restart... Restarted application in…
Abir Ahsan
  • 2,649
  • 29
  • 51
4
votes
2 answers

Android Local Service Sample, bindservice(), and ServiceConnection()

I have a question which is related to this question that was asked by @mnish about a year ago. Please have a look at his question and code. He implements a ServiceConnection() and passes it to bindService(). This follows the Local Service Sample in…
Marie
  • 691
  • 4
  • 12
  • 23
4
votes
0 answers

Logging of all interprocess interactions of the target Android application

I want to collect all requests to Binder, which makes an arbitrary Android application running on a real device with root permissions. To be more accurate, I want to write a program that could log all the interprocess interactions of an arbitrary…
4
votes
0 answers

how to find out what data the saveInstance is saving

got android.os.TransactionTooLargeException, it is said because of “This exception occurs when too much data is transferred via Parcels concurrently. The underlying Binder transaction buffer has a limited fixed size, currently 1Mb, which is shared…
lannyf
  • 9,865
  • 12
  • 70
  • 152
1 2
3
16 17