vehicle service not running

640 views
Skip to first unread message

abdul hussain

unread,
Dec 14, 2017, 3:02:24 PM12/14/17
to android-porting
Hi,

I am trying to run android-8.0.0_r4 in imx6 based custom hardware. tablet version is running without any issue. whereas ivi version is keeping on restarting due to vehicle service is not running. Please find the error log below.
===========
01-01 00:01:53.255  1385  1385 I CAR.SERVICE: Service onCreate
01-01 00:01:53.259  1385  1385 I com.android.car: Looking for service android.hardware.automotive.vehicle@2.0::IVehicle/default
01-01 00:01:53.269  1385  1385 E CAR.SERVICE: IVehicle service not registered yet
01-01 00:01:53.272  1385  1385 D AndroidRuntime: Shutting down VM
01-01 00:01:53.314  1385  1385 E AndroidRuntime: FATAL EXCEPTION: main
01-01 00:01:53.314  1385  1385 E AndroidRuntime: Process: com.android.car, PID: 1385
01-01 00:01:53.314  1385  1385 E AndroidRuntime: java.lang.RuntimeException: Unable to create service com.android.car.CarService: java.lang.Illegal
StateException: Vehicle HAL service is not available.
01-01 00:01:53.314  1385  1385 E AndroidRuntime:        at android.app.ActivityThread.handleCreateService(ActivityThread.java:3414)
01-01 00:01:53.314  1385  1385 E AndroidRuntime:        at android.app.ActivityThread.-wrap4(Unknown Source:0)
01-01 00:01:53.314  1385  1385 E AndroidRuntime:        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1683)
01-01 00:01:53.314  1385  1385 E AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:105)
01-01 00:01:53.314  1385  1385 E AndroidRuntime:        at android.os.Looper.loop(Looper.java:164)
01-01 00:01:53.314  1385  1385 E AndroidRuntime:        at android.app.ActivityThread.main(ActivityThread.java:6541)
01-01 00:01:53.314  1385  1385 E AndroidRuntime:        at java.lang.reflect.Method.invoke(Native Method)
01-01 00:01:53.314  1385  1385 E AndroidRuntime:        at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
01-01 00:01:53.314  1385  1385 E AndroidRuntime:        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
01-01 00:01:53.314  1385  1385 E AndroidRuntime: Caused by: java.lang.IllegalStateException: Vehicle HAL service is not available.
01-01 00:01:53.314  1385  1385 E AndroidRuntime:        at com.android.car.CarService.onCreate(CarService.java:84)
01-01 00:01:53.314  1385  1385 E AndroidRuntime:        at android.app.ActivityThread.handleCreateService(ActivityThread.java:3404)
01-01 00:01:53.314  1385  1385 E AndroidRuntime:        ... 8 more
01-01 00:01:53.493   401   719 W ActivityManager: Process com.android.car has crashed too many times: killing!
=============

But the vehicle serivce file and binary file present in vendor partition.
Kindly help me to solve this issue.

Regards,
Abdul

Christopher McClellan

unread,
Jan 19, 2018, 3:58:25 PM1/19/18
to android-porting
You have to add an SELinux domain and file context for the vehicle service as described here.

Hatem Azzouni

unread,
Sep 17, 2018, 1:38:20 PM9/17/18
to android-porting
Hi Abdul ,
I am facing exactly the same issue. did you solve it ?
thx
Reply all
Reply to author
Forward
0 new messages