diff --git a/automotive/remoteaccess/hal/default/Android.bp b/automotive/remoteaccess/hal/default/Android.bp index a2bf86c9e5..f27b8f86e6 100644 --- a/automotive/remoteaccess/hal/default/Android.bp +++ b/automotive/remoteaccess/hal/default/Android.bp @@ -18,11 +18,9 @@ package { default_applicable_licenses: ["Android-Apache-2.0"], } -cc_binary { - name: "android.hardware.automotive.remoteaccess@V1-default-service", +cc_defaults { + name: "remote-access-hal-defaults", vendor: true, - vintf_fragments: ["remoteaccess-default-service.xml"], - init_rc: ["remoteaccess-default-service.rc"], relative_install_path: "hw", srcs: ["src/RemoteAccessImpl.cpp"], whole_static_libs: [ @@ -41,10 +39,29 @@ cc_binary { ], cflags: [ "-Wno-unused-parameter", + ], +} + +cc_binary { + name: "android.hardware.automotive.remoteaccess@V1-default-service", + defaults: ["remote-access-hal-defaults"], + vintf_fragments: ["remoteaccess-default-service.xml"], + init_rc: ["remoteaccess-default-service.rc"], + cflags: [ "-DGRPC_SERVICE_ADDRESS=\"localhost:50051\"", ], } +cc_binary { + name: "android.hardware.automotive.remoteaccess@V1-tcu-test-service", + defaults: ["remote-access-hal-defaults"], + vintf_fragments: ["remoteaccess-default-service.xml"], + init_rc: ["remoteaccess-tcu-test-service.rc"], + cflags: [ + "-DGRPC_SERVICE_ADDRESS=\"10.10.10.1:50051\"", + ], +} + cc_library { name: "RemoteAccessService", vendor_available: true, diff --git a/automotive/remoteaccess/hal/default/remoteaccess-tcu-test-service.rc b/automotive/remoteaccess/hal/default/remoteaccess-tcu-test-service.rc new file mode 100644 index 0000000000..6437d70f08 --- /dev/null +++ b/automotive/remoteaccess/hal/default/remoteaccess-tcu-test-service.rc @@ -0,0 +1,4 @@ +service vendor.remoteaccess-default /vendor/bin/hw/android.hardware.automotive.remoteaccess@V1-tcu-test-service + class hal + user vehicle_network + group system inet