Android Automotive


#301

Hi Ahmed,
How did you fix this issue ? i am facing exactly the same.
Just by commenting the two lines ?
thanks for your support


#302

Which two lines ?? Sorry I did not follow…


#303

#304

Indeed this can be fix by removing these lines because this sepolicy are new integrated to system natively


#305

Hi,

any idea what is the root reson for this issue “java.lang.IllegalStateException: Vehicle HAL service is not available” (see logcat below)?

service is already added to the make file

PRODUCT_PACKAGES +=
android.hardware.automotive.vehicle@2.0-service

when i do

adb shell ps -Al

i see :

4 S 1054 2336 1 0 19 0 - 4258 0 ? 00:00:02 vehicle@2.0-ser

logcat:

09-17 14:03:41.646 22194-22194/? E/AndroidRuntime: FATAL EXCEPTION: main
_ Process: com.android.car, PID: 22194_
_ java.lang.RuntimeException: Unable to create service com.android.car.CarService: java.lang.IllegalStateException: Vehicle HAL service is not available._
_ at android.app.ActivityThread.handleCreateService(ActivityThread.java:3367)_
_ at android.app.ActivityThread.access$2300(ActivityThread.java:176)_
_ at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1679)_
_ at android.os.Handler.dispatchMessage(Handler.java:106)_
_ at android.os.Looper.loop(Looper.java:164)_
_ at android.app.ActivityThread.main(ActivityThread.java:6518)_
_ at java.lang.reflect.Method.invoke(Native Method)_
_ at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:486)_
_ at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:832)_
_ Caused by: java.lang.IllegalStateException: Vehicle HAL service is not available._
_ at com.android.car.CarService.onCreate(CarService.java:78)_
_ at android.app.ActivityThread.handleCreateService(ActivityThread.java:3355)_
_ at android.app.ActivityThread.access$2300(ActivityThread.java:176) _
_ at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1679) _
_ at android.os.Handler.dispatchMessage(Handler.java:106) _
_ at android.os.Looper.loop(Looper.java:164) _
_ at android.app.ActivityThread.main(ActivityThread.java:6518) _
_ at java.lang.reflect.Method.invoke(Native Method) _
_ at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:486) _
_ at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:832) _
09-17 14:03:41.742 22209-22209/? E/CAR.SERVICE: IVehicle service not registered yet

thnks