You have to add an SELinux domain and file context for the vehicle service 
as described here.
https://source.android.com/security/selinux/device-policy#label_new_services_and_address_denials

On Thursday, December 14, 2017 at 3:02:24 PM UTC-5, abdul hussain wrote:
>
> 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 
>

-- 
-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

--- 
You received this message because you are subscribed to the Google Groups 
"android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-porting+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to