• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# This is the regular VHAL using ethernet. It runs in regular build.
2service vendor.vehicle-cf-eth /apex/com.android.hardware.automotive.vehicle/bin/hw/android.hardware.automotive.vehicle@V3-cf-service eth
3    class early_hal
4    user vehicle_network
5    group system inet
6    enter_namespace net /mnt/run/auto_eth
7    disabled
8
9# This is the VHAL running in vsock mode in case ethernet namespace is not set
10# up, e.g. in GSI build.
11# Set this as one-shot because this service will do nothing and exit if
12# property:android.car.auto_eth_namespace_setup_complete is 1.
13service vendor.vehicle-cf-vsock /apex/com.android.hardware.automotive.vehicle/bin/hw/android.hardware.automotive.vehicle@V3-cf-service vsock
14    class early_hal
15    user vehicle_network
16    group system inet
17    oneshot
18
19# Only enable vendor.vehicle-cf-eth when we know network namespace is set up.
20# Otherwise, enter_namespace will fail.
21# Ideally we should only enable vendor.vehicle-cf when we know network namespace
22# is not set up. However, init does not have a check if a property is unset.
23# As a result, we will run both vendor.vehicle-cf and vendor.vehicle-cf-eth
24# if the network namespace is set up. vendor.vehicle-cf will exit if it detects
25# the network namespace property is set.
26on late-fs && property:android.car.auto_eth_namespace_setup_complete=1
27    enable vendor.vehicle-cf-eth
28