Questions tagged [hidl]

refer HIDL | AOSP for more info.

21 questions
3
votes
2 answers

Define and implement HIDL interface

For test purposes I want to create a HIDL interface + implementation and run the combination as a system service. For that I defined the IGuotie.hal interface: package android.hardware.guotie@2.0; interface IGuotie { add(int32_t i, int32_t k)…
munnitz
  • 61
  • 1
  • 4
2
votes
1 answer

Do I need to treat the below scenario as critical?

I have Android java service which will interact with HAL service using HIDL calls. I have below scenario, I'm not sure to treat it as critical. +----------+ (AIDL) +--------------+ |App thread|-------->|Java Service | (HIDL)…
kiran Biradar
  • 12,700
  • 3
  • 19
  • 44
1
vote
2 answers

How can write an app that calls the service through the hal?

I have 1 project using aidl for hal,after creating selinux and .aidl . files I built a service.cpp code and it was loaded into the system I want to deploy my app to be able to test my service but when I download android studio I really don't know…
1
vote
1 answer

Difference between HAL and HIDL

I have recently started working on android native framework for some development work and after going through Android documents I am still not able to clearly understand concept of HIDL. I am sorry if questions sound stupid, but I have just started…
1
vote
0 answers

HIDL to AIDL HAL conversion

I have recently started working on Android side and end up with one issue. As from Android U onwards all Android HALs will be migrated to AIDLs, I am currently trying to do this migration for my project. With the hidl2aidl tool I am successfully…
1
vote
1 answer

undefined reference to 'android::RefBase

I encountered below errors when I tred to call hidl APIs in native code, does any one can help to provide solution of these errors: system/core/libutils/include/utils/StrongPointer.h:168: error: undefined reference to…
jingyuan
  • 11
  • 1
1
vote
2 answers

How is HIDL implemented for Bluetooth module?

I was browsing for AOSP bluetooth code to know more about HIDL. As per my understanding, HIDL provides an interface between System services and HAL layer. But as per official android doc here , It seems that HIDL is interface between bluetooth…
Vivek Mangal
  • 532
  • 1
  • 8
  • 24
0
votes
0 answers

HidlStatus: Attempted to retrieve value from failed HIDL call: Status(-1972947428)

1、I add a new hidl interface in android. 2、The code has compiled successful. 3、but when test goes to call the interface,return this error. I never meet this error and don't have a good idea to fix it,I derive to fix the error!
0
votes
0 answers

Conversion from HIDL type to AIDL

I have an android HIDL hal project which needs to be ported to AIDL type. While porting the code from HIDL, I could not find a corresponding API for below function, ::android::hardware::interfacesEqual(...) - This is part of HIDL. Can anyone suggest…
0
votes
0 answers

Android Face Authentication HIDL

I'm trying to implement the Android Face Authentication HIDL (https://source.android.com/docs/security/features/biometric/face-authentication) in Java for face authentication feature in a custom Android 10 build. I've already generated the…
0
votes
0 answers

UnsupportedSchemeException while creating Mediadrm object

I'm trying to create Mediadrm object for android-12. I pushed our service android.hardware.drm@1.4-service.name in api-32 emulator into the path /vendor/bin/hw/. But aosp is not able to identify our service and I'm getting error. The error is as…
Srinivas
  • 41
  • 1
  • 4
0
votes
1 answer

How to know whether my HIDL Hal version is compatible with future Android versions

Let's say i am developing a device with android version 11. For example, at the time of development i used audio hal version 6.0 and graphics composer(HWC) version 2.1 and my device is treble compatible. How can i assure that my HAL's(audio &…
john
  • 3
  • 3
0
votes
1 answer

Passthrough HAL's of Android AOSP

I understood that they are 2 types of HAL's in AOSP, Binderized and passthrough hals. According to https://source.android.com/docs/core/architecture/hal-types, passthrough HAL's can be served in binderized and passthrough modes. What is the…
john
  • 3
  • 3
0
votes
1 answer

Android HIDL Interface access from Java

I have an AOSP build with a custom HAL layer service and I would like to know if it is at all possible to call the interface from Java. The documentation from Google suggests you can…
George
  • 1,224
  • 12
  • 21
0
votes
1 answer

Android 12 HIDL/AIDL error No more HIDL interfaces can be added to Android. Please use AIDL

I am trying to create new HIDL in android 12,I have done below steps: Added new HAL file in hardware/interfaces/logreader/1.0 generated impl and bp file using hidl-gen added rc file, sepolicy,manifest and compatibility as well while building it…
1
2