597 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
1
answer
129
views
Is this the correct way to connect to an AIDL service?
I'm trying to connect to an AIDL service for the first time, and I'm afraid that I might be doing something wrong, even though, on the surface level, everything seems to be working fine. Am I doing ...
1
vote
0
answers
94
views
failing to import aidl interface
I've looked at several posts, but can't seem to figure out how to import the aidl file within my kotlin file. Here is my directory structure:
src/main/java/com/abc/project/MyTest.kt
src/main/aidl/com/...
0
votes
0
answers
211
views
Custom VHAL property is not reflecting in Emulator AAOS14
As per Android 14 and above,
Property definitions are defined at hardware/interfaces/automotive/vehicle/aidl_property/android/hardware/automotive/vehicle/VehicleProperty.aidl.
Ref
Also I found the ...
0
votes
0
answers
19
views
Calling a non-existent method on an older Binder service does not throw an exception?
I have an old Binder service for IPC, which does not implement the call with transaction_id=2, but only implements transaction_id=1.
Now, after updating my client, it calls the transact with ...
0
votes
0
answers
91
views
StableAidl, how to use on Java/Kotlin Android Project
Reading this article about StableAidl in Android: https://source.android.com/docs/core/architecture/aidl/stable-aidl
I found there is multiple benifts to use it :
Backward compatibility: Support the ...
1
vote
1
answer
476
views
Creating an AIDL file to communicate with a service in AOSP
I am adding a new SystemService to a custom build of Android 11 and I need an aidl interface for apps to communicate with it. I am just starting with the aidl file right now and to keep it simple I ...
1
vote
1
answer
407
views
Connect service with app via AIDL in AOSP
I'm trying to connect HAL service to the user app via AIDL. I've tried connecting app to service without luck. How to properly connect user app to HAL C++ service via AIDL? What am I doing wrong?
For ...
0
votes
0
answers
75
views
Dialing and emergency number on android using kotlin and jetpack compose
I need to dial an emergency number from my app and from what I understand by reading the docs, I need to implement emergencyDial in IRadio.hal and implement emergencyDialResponse in IRadioResponse.hal ...
0
votes
0
answers
173
views
AIDL API establishing communication from a proprietary server app
New to Android development, I have made an app (the server) in Android Studio, and I have made a simple plugin in civTAK (client). To put simply, my app is proprietary, so I can't expose or share the ...
1
vote
0
answers
435
views
How to create vendor hal in Android
I have my custom AIDL HAL and my custom client which connects to this HAL in this way:
binder = ServiceManager.getService("my.custom.hal.ICustomThing/default");
This worked well when this ...
LLL's user avatar
- 1,927
2
votes
1
answer
536
views
AIDL file is not getting compiled
The documentation says the file should get created in the directory app/build/generated/source/aidl/debug/ after compiling but the source folder isnt getting created in the generated
I tried this ...
0
votes
1
answer
179
views
Which servicemanager and binder driver is used in the communication between system and HAL through stable AIDLs
Now, Android system has 3 binder drivers, /dev/binder and servicemanager for system to system, /dev/hwbinder and hwservicemanager for system to vendor HAL, /dev/vendor and vndservicemanager for vendor ...
1
vote
0
answers
79
views
How does aidl work? Don't you need a Service Manager
I read from the official Android documentation that AIDL works as follows: AIDL uses the binder kernel driver to make calls,link below
https://source.android.com/docs/core/architecture/aidl
According ...
1
vote
1
answer
154
views
Share the surface between different apps with AIDL in Android
I wanted to drawRect after sending the Surface from App A to B, so I tried using AIDL. I checked the SurfaceFlinger because nothing was drawn. When I drew from App A, the surface was not compressed, ...
0
votes
0
answers
88
views
onServiceConnected not called but context#bindService return true
I am experiencing an issue where the onServiceConnected callback is not invoked in my client code, despite the service's onCreate and onBind methods being called successfully and return a binder. The ...