Questions tagged aidl

Explore the latest questions and answers asked by our top developers.

android : HIDL to AIDL

Recenetly google is asking chip vendor to change HAL from HIDL to AIDL. My question is : As a chip vendor, I can porting original service side method from HIDL to AIDL. But how about client side? Does client side need to modify their code? Be more specific, does HIDL and AIDL generate same .h […]

By John
Published
Categorized as aidl, android, hidl

Android 12 breaks AIDL/IPC with runtime permissions on IPC APK

Pre-Android 12 I could create proprietary Bluetooth health device driver service APKs and exchange info with them from a main application via AIDL. The driver APKs have no UI and launch nothing when installed. Though these APKs used Bluetooth and BLE all runtime permissions could be given from the primary application. These APKs could be […]

By Brian Reinhold
Published
Categorized as aidl, android, android-bluetooth, android-service

Client Android app is crashing while clicking any button created there, for binding and accessing server app in AIDL concept implementation

I have created 2 different application one is client and another one is server for implementation of AIDL concept of Android. But my client app keeps stopping just after clicking any button from client app. I have used one already given method from youtube to convert implicit intent to explicit intent. It is showing error […]

By ANUPAM ANURAG
Published
Categorized as aidl, android, client, server, service

How is ParceledListSlice used in AIDL?

I want to pass large collections across processes, How is ParceledListSlice used in AIDL? Source: Android Questions

By zuilintan
Published
Categorized as aidl, android

I m getting Android Aidl Service Instantiate Error

I have a AIDL service which do some basic tasks. I would like to use that AIDL Service as abstract class. So that, if another class wants to handle callbacks of Service, it will be enough extend my service. Classes and error log are looking like that: //////////////////// AIDL SERVICE \\\ public abstract class AdditionService […]

By piruzi
Published
Categorized as abstract, aidl, android, instantiationexception, service

Working or Music Player Application but getting some bugs at onClick in Android Studio:

I am trying to create a Music Player Application but an issue occur. Its only adding/submitting the details of only one song(first clicked). Here’s the code below: MainActivity.java package com.example.poptunemusicplayerapplication; import android.Manifest; import android.content.ComponentName; import android.content.ServiceConnection; import android.content.pm.PackageManager; import android.os.Bundle; import android.os.IBinder; import androidx.annotation.NonNull; import androidx.appcompat.app.AppCompatActivity; import androidx.core.app.ActivityCompat; import androidx.core.content.ContextCompat; import androidx.fragment.app.Fragment; import androidx.fragment.app.FragmentManager; import […]

By Kailash8460
Published
Categorized as aidl, android, android-sqlite, android-studio, java

How do you thorw/handle exceptions via AIDL

I have an Android service that manages some devices. This service also provides APIs via an AIDL interface for clients to query devices and their state/data. Clients can query information using name/number. It looks something like this: package com.mydomain.myservice; interface IMyService { MyDeviceInformation getInfo(myDeviceNumber); MyDeviceSate getState(myDeviceName); } Both MyDeviceInformation and MyDeviceState are parcelable, so they […]

By yetanothercprogrammer
Published
Categorized as aidl, android

aidl.exe” finished with non-ze ro exit value -1073741701

I have a normal android project which build well in macOS, ubuntu and other person‘windows. I hava a new windows 7 pc. When environment is configured, There is an error. … Caused by: org.gradle.process.internal.ExecException: Process ‘command ‘C:Androidbuild-tools.0.2aidl.exe” finished with non-ze ro exit value -1073741701 at org.gradle.process.internal.DefaultExecHandle$ExecResultImpl.assertNormalExitValue(DefaultExecHandle.java:414) at com.android.build.gradle.internal.process.GradleProcessResult.assertNormalExitValue(GradleProcessResult.java:46) … 12 more I try nearly any […]

By Victor Choy
Published
Categorized as aidl, android

How to use Stable AIDL interface from product partition apps in AOSP?

We have a Stable AIDL interface created like this https://source.android.com/devices/architecture/aidl/stable-aidl. I can access this if my apps are in the system_ext partition because both are built with system images. Below is the aidl interface implementation we have – aidl_interface { name: "vendor.my.hardware.myLib", owner: "me", vendor_available: true, srcs: ["vendor/my/hardware/myLib/*.aidl"], versions: ["1"], stability: "vintf", backend: { java: […]

By Bajrang Hudda
Published
Categorized as aidl, android, android-source, product-partition

Android AOSP generate cpp files from AIDL files

I’m trying to generate cpp files from framework aidl files available in the AOSP tree. I see in the framework Android.mk that the aidl files need to be added to LOCAL_SRC_FILES and that LOCAL_AIDL_INCLUDES needs to be set. I’ve added a module to the tree and my Android.mk is as follows: LOCAL_PATH := $(call my-dir) […]

By user1247196
Published
Categorized as aidl, android, android-source, c#
1 2 3 6

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq