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

Android: system service has no interface?

After executing the service list command, you can see that many system services have no interfaces? # service list | grep '\[\]' 5 app_binding: [] 24 network_time_update_service: [] 25 runtime: [] 26 diskstats: [] 39 …
xdek
  • 3
  • 3
0
votes
0 answers

Android jni framework internal class init and use help need

i am using c++ for target to build android internal framework api. api is accessible i tested with frida hooking methods. for reference link https://github.com/frida/frida/issues/1867 java code here. public x3Client(Context arg2) { super(); …
0
votes
2 answers

Why Binders(used for IPC) even when activity and services are in the same process

Binders are used for Inter(not intra) Process Communication/Remote Method Invocation so why/how the communication between Activity and Service is possible via binders where there are no different processes involvement. When the very first component…
0
votes
1 answer

Adding new line in error-message for vaadin form validation

I have a form fields binded to java entity model. That model has an annotation: @ValidPassword private String password which validates the field with some conditions and return error message containing each failed condition separated by '\n' new…
0
votes
1 answer

Notebook not working in Binder; OSError: libusb-1.0.so.0: cannot open shared object file: No such file or directory

whenever i try to run the following notebook code on binder, i get this error: OSError Traceback (most recent call last) in 1 from pyntcloud import PyntCloud ----> 2 import open3d as od 3 4 5 path…
0
votes
1 answer

Getting raw data when attempting to retrieve Edittext input with a view model

I am trying to build a multi page form for an application. As per suggestions here I am attempting to use a ViewModel to store the data input by the user to easily get it in another fragment, and to update the edittext to their previous input if…
0
votes
2 answers

Entity Framework Code First with MVC : RuntimeBinder Exception error

I am using ASP.Net Core Web Application with MVC and EF Code First and my db is MySQL. Here is the structure of my db: I am trying to display data from the view bag and its giving me an error. Its complaining about foreach loop. here is whats…
0
votes
1 answer

Using HwBinder inside fork

I'm implementing a HAL component for which I'm creating a test. The test is actually about creating a mock of the HAL callbacks in a different process, and registering itself to the HAL. In other words, I'm mocking the client of the HAL, then…
Moaaz Ali
  • 93
  • 15
0
votes
1 answer

How to properly build binder for pybind11

I'm a new user of binder and I followed the installation steps but when I run the last following command: cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DLLVM_ENABLE_EH=1 -DLLVM_ENABLE_RTTI=ON .. && ninja It says: CMake Error: The source directory…
Zack Lee
  • 2,784
  • 6
  • 35
  • 77
0
votes
0 answers

Doubly linked list task_list in Binder why is is empty? how to print it?

Modified binder.c code based on this. https://github.com/S3NEO/android_kernel_samsung_s3ve3g/blob/24c9b3454fddc6a5b332989cb4f4455c21867a42/drivers/staging/android/binder.c#L3222 I want to print the doubly linked list task_list: static int…
dev
  • 1,119
  • 1
  • 11
  • 34
0
votes
0 answers

How can I call Java functions from a C service in Android?

I want to call the maybeStartIpManager function in EthernetNetworkFactory file in AOSP from a C file in the wpa_supplicant project. I found many examples of how Java services use binder to access code written in C. How can I use binder to achieve…
0
votes
2 answers

Return a different Binder from already bound service

I have a Service which is already bound by an external App via AIDL. However, there are some service requests which require to start an Activity. Since I cannot call startActivityForResult from within a Service I decided to Bind my local Activities…
Rafael T
  • 15,401
  • 15
  • 83
  • 144
0
votes
0 answers

How can I get rid of all errors: Cannot solve symbol.. from Binder.java class from android.os package?

I'm trying to do the following thing: button.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { Intent startNextActivity = new Intent(getApplicationContext(), NextActivity.class); …
katherine
  • 79
  • 5
0
votes
0 answers

How to re-bind to a running service?

My service is a 3-hour timer that should run in the background until the time is finished (even if the user exits the app). I have successfully created and bound my service with a fragment. This enables me to show the timer in real time to the…
Paris B. G.
  • 374
  • 1
  • 3
  • 14
0
votes
1 answer

Service running in the background

What I want to achieve is to create a Service(?) which starts/gets registered once Application gets installed and keeps monitor items stored in Array. These items are products with expiry dates so if today is the day of expiry I want to show a…