[Android Automotive] Problem with Vehicle HAL

1,503 views
Skip to first unread message

Salvatore Amodio

unread,
Sep 28, 2020, 12:32:34 PM9/28/20
to android-platform
I installed android automotive on raspebrry pi. 
I created some applications that are used to control the sensors, for example the speed. But on the raspberry pi they don't work. 
The system log says this:




09-25 17:11:05.516   358   375 W ActivityManager: Scheduling restart of crashed service com.android.car/.CarService in 0ms
09-25 17:11:05.516   358   375 W ActivityManager: Re-adding persistent process ProcessRecord{88eb586 7967:com.android.car/1000}
09-25 17:11:05.541   201   201 D Zygote  : Forked child process 7998
09-25 17:11:05.545   358   387 I ActivityManager: Start proc 7998:com.android.car/1000 for restart com.android.car
09-25 17:11:05.546  7998  7998 I Zygote  : seccomp disabled by setenforce 0
09-25 17:11:05.670  7998  7998 I CAR.SERVICE: Service onCreate
09-25 17:11:05.674   156   156 I hwservicemanager: getTransport: Cannot find entry android.hardware.automotive.vehicle@2.0::IVehicle/default in either framework or device manifest.
09-25 17:11:05.675  7998  7998 E CAR.SERVICE: IVehicle service not registered yet
09-25 17:11:05.676  7998  7998 D AndroidRuntime: Shutting down VM
09-25 17:11:05.677  7998  7998 E AndroidRuntime: FATAL EXCEPTION: main
09-25 17:11:05.677  7998  7998 E AndroidRuntime: Process: com.android.car, PID: 7998
09-25 17:11:05.677  7998  7998 E AndroidRuntime: java.lang.RuntimeException: Unable to create service com.android.car.CarService: java.lang.IllegalStateException: Vehicle HAL service is not available.
09-25 17:11:05.677  7998  7998 E AndroidRuntime: at android.app.ActivityThread.handleCreateService(ActivityThread.java:3965)
09-25 17:11:05.677  7998  7998 E AndroidRuntime: at android.app.ActivityThread.access$1500(ActivityThread.java:219)
09-25 17:11:05.677  7998  7998 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1875)
09-25 17:11:05.677  7998  7998 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:107)
09-25 17:11:05.677  7998  7998 E AndroidRuntime: at android.os.Looper.loop(Looper.java:214)
09-25 17:11:05.677  7998  7998 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7356)
09-25 17:11:05.677  7998  7998 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
09-25 17:11:05.677  7998  7998 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
09-25 17:11:05.677  7998  7998 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
09-25 17:11:05.677  7998  7998 E AndroidRuntime: Caused by: java.lang.IllegalStateException: Vehicle HAL service is not available.
09-25 17:11:05.677  7998  7998 E AndroidRuntime: at com.android.car.CarService.onCreate(CarService.java:82)
09-25 17:11:05.677  7998  7998 E AndroidRuntime: at android.app.ActivityThread.handleCreateService(ActivityThread.java:3953)
09-25 17:11:05.677  7998  7998 E AndroidRuntime: ... 8 more
09-25 17:11:05.681   358   375 V RescueParty: Disabled because of eng build
09-25 17:11:05.682   358   375 W ActivityManager: Process com.android.car has crashed too many times: killing!
09-25 17:11:05.683  7998  7998 I Process : Sending signal. PID: 7998 SIG: 9


Can anyone help me? 
thank you!

kiran kadam

unread,
Sep 29, 2020, 9:58:20 AM9/29/20
to android-...@googlegroups.com
Hi Salvatore ,

CAR.SERVICE: IVehicle service not registered yet

check if service detailed in either framework or device manifest XML and after this check using 'lshal' command if service is listed once registered.

Thanks,
Kiran

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-platfo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-platform/eb823c22-f7c4-4927-8413-86bee0e21898n%40googlegroups.com.


--
Regards,
Kiran Kadam

Salvatore Amodio

unread,
Sep 29, 2020, 6:11:28 PM9/29/20
to android-platform
Thanks I solved it

kiran kadam

unread,
Sep 30, 2020, 11:50:13 AM9/30/20
to android-...@googlegroups.com
Please post your solution which might be useful for others.

Thanks,
Kiran

On Wed, Sep 30, 2020 at 3:41 AM Salvatore Amodio <sasi.a...@gmail.com> wrote:
Thanks I solved it


--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-platfo...@googlegroups.com.


--
Regards,
Kiran Kadam

Salvatore Amodio

unread,
Oct 1, 2020, 2:28:51 PM10/1/20
to android-platform
The solution is what you have suggested.
I added the dependency of Vehicle in the system manifest

Vinayak Soni

unread,
Feb 22, 2021, 7:03:52 PM2/22/21
to android-platform
Can you share the steps to build Android Automotive on Raspberry Pi? Also, which raspberry pi are you using?
Reply all
Reply to author
Forward
0 new messages