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

Why isn't the type casting between the IBinder and Binder illegal?

Note: I have found questions regarding the type casting with the IBinder and Binder but they focus on fixing issues. My issue is understanding why the cast is not illegal in the first place. I have also tried the same operation in BlueJ with…
Micah Simmons
  • 2,078
  • 2
  • 20
  • 38
0
votes
0 answers

inout String acceptable in AIDL

The documentation states that all non-primitive parameters require a directional tag indicating which way the data goes; and primitives are in by default, and cannot be otherwise. Then they proceed with giving an example where a String is missing…
Daniel
  • 2,380
  • 29
  • 44
0
votes
2 answers

Android Bound Services: Why do we cast this IBinder instance into an IBinder instance?

In the developer docs for Bound Services, the following code example is given for "Extending the Binder Class" in "Creating a Bound Service". The following code snippet (I have removed irrelevant bits) is given in which the Service returns an …
0
votes
0 answers

Android Failed Binder Transaction Workaround

I need a viable workaround for this problem. I take a picture using the android Camera. The method invoked is called onPictureTaken. The program is supposed to take the byte array from the picture, and pass it back to the intent waiting for it in…
balloway
  • 161
  • 4
  • 13
0
votes
0 answers

what's the bn client for the contentprovidernative?

I see the source code in contentproviderNative.java . there is a method called openAssetFile(),and has a field called remote.transact(); I know I should find the c++ file for the method ,but which c++ file should I read?
cowboi-peng
  • 777
  • 2
  • 6
  • 24
0
votes
1 answer

How android system manages list of connected clients to a bounded remote service

I am doing a project which does real time analysis of the system on android phone.I want to know how many clients are bounded to a any remote services at a given point in time. For example:No of clients bounded to LocationManager service. This will…
rupesh jain
  • 3,410
  • 1
  • 14
  • 22
0
votes
1 answer

Where is libbinder since JellyBean?

I saw libbinder code in the framework base code base /libs/binder. But since jellybean, libbinder is moved somewhere else and I could never find it. Nevertheless, I still find many libraries referencing it. I would like to know where it it now. P.S.…
mingyuan-xia
  • 265
  • 4
  • 10
0
votes
0 answers

SIGABRT in __ioctl() while waiting for /dev/binder response

Pre-requisites: ARMv7 device, Android platform 4.2.2. Time to time I get SIGABRT upon interaction with a system service (a really buggy one) over a binder. The stack trace is as follows: #00 pc 000170ac /system/lib/libc.so (__ioctl+8) #01 pc…
LXE
  • 11
  • 3
0
votes
0 answers

Prevents the 'XYZ binder is null' error message in LogCat

Please READ FULLY and understand my question first as I'll be happy triggering the downvote button! The question is really a LogCat-cosmetic. I don't have any crashes or actual problem with Bluetooth. I do get the "Bluetooth binder is null" LogCat…
Rastikan
  • 517
  • 5
  • 18
0
votes
1 answer

what does the flag VM_IOREMAP in vmalloc.c in mean?

http://lxr.free-electrons.com/source/include/linux/vmalloc.h?v=3.4;a=arm#L11 There are bunch of flags for vm_struct in vmalloc.c. I can understand VM_ALLOC, which means the vm_struct is constructed by the vmalloc() call. But what do the other flags…
jiawen
  • 1,198
  • 2
  • 17
  • 29
0
votes
0 answers

How to start the newer version of the AIDL Service and stop the old currently running one

What I need is very similar to the How to properly upgrade AIDL interfaces in Android? question, but I also want a newer version of the AIDL Service to launch after it is installed and the old one to stop. Simply put: I need that the newest version…
VladimirVip
  • 384
  • 3
  • 13
0
votes
2 answers

putExtra: How should I handle large arrays? Database or split to smaller arrays?

I like to know what of following ideas makes more sentence: I have three Arrays with more than 5'000 entries. And when I try to put them into Extra, I became the FAILED BINDER TRANSACTION: Split those big arrays into smaller and give them to the…
MSeiz5
  • 182
  • 1
  • 9
  • 28
0
votes
1 answer

Why did google choose C/S architecture in android camera?

As we know , android camera is the C/S architecture, including the client and the service. They communicate each other by the Binder. They are running in different process. So I have a question : why android camera have a client and service ?…
Jerikc
  • 349
  • 1
  • 4
  • 12
0
votes
1 answer

android binders

Is it normal for an application to have approximately 100 instances of local binders? The number climbs to that high, and never drops down to what it initially is. What could be the scenarios to have this large number of binders?
dacongy
  • 2,504
  • 3
  • 30
  • 48
0
votes
1 answer

Android service with root permission

My goal is to create a service with root permission on an Android device such that I can communicate with this service from a regular app. Assume I have access to the platform build, but would like the least amount of change to it. The service could…
Android QS
  • 416
  • 2
  • 8
  • 17
1 2 3
16
17