1 /* 2 * Copyright (C) 2020 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #include "host/libs/config/known_paths.h" 18 19 #include "host/libs/config/config_utils.h" 20 21 namespace cuttlefish { 22 AdbConnectorBinary()23std::string AdbConnectorBinary() { return HostBinaryPath("adb_connector"); } 24 AutomotiveProxyBinary()25std::string AutomotiveProxyBinary() { 26 return HostBinaryPath("automotive_vsock_proxy"); 27 } 28 AvbToolBinary()29std::string AvbToolBinary() { return HostBinaryPath("avbtool"); } 30 CasimirBinary()31std::string CasimirBinary() { return HostBinaryPath("casimir"); } 32 CasimirControlServerBinary()33std::string CasimirControlServerBinary() { 34 return HostBinaryPath("casimir_control_server"); 35 } 36 ConsoleForwarderBinary()37std::string ConsoleForwarderBinary() { 38 return HostBinaryPath("console_forwarder"); 39 } 40 ControlEnvProxyServerBinary()41std::string ControlEnvProxyServerBinary() { 42 return HostBinaryPath("control_env_proxy_server"); 43 } 44 DefaultKeyboardSpec()45std::string DefaultKeyboardSpec() { 46 return DefaultHostArtifactsPath("etc/default_input_devices/keyboard.json"); 47 } 48 DefaultMouseSpec()49std::string DefaultMouseSpec() { 50 return DefaultHostArtifactsPath("etc/default_input_devices/mouse.json"); 51 } 52 DefaultMultiTouchpadSpecTemplate()53std::string DefaultMultiTouchpadSpecTemplate() { 54 return DefaultHostArtifactsPath( 55 "etc/default_input_devices/multi_touchpad_template.json"); 56 } 57 DefaultMultiTouchscreenSpecTemplate()58std::string DefaultMultiTouchscreenSpecTemplate() { 59 return DefaultHostArtifactsPath( 60 "etc/default_input_devices/multi_touchscreen_template.json"); 61 } 62 DefaultRotaryDeviceSpec()63std::string DefaultRotaryDeviceSpec() { 64 return DefaultHostArtifactsPath( 65 "etc/default_input_devices/rotary_wheel.json"); 66 } 67 DefaultSingleTouchpadSpecTemplate()68std::string DefaultSingleTouchpadSpecTemplate() { 69 return DefaultHostArtifactsPath( 70 "etc/default_input_devices/single_touchpad_template.json"); 71 } 72 DefaultSingleTouchscreenSpecTemplate()73std::string DefaultSingleTouchscreenSpecTemplate() { 74 return DefaultHostArtifactsPath( 75 "etc/default_input_devices/single_touchscreen_template.json"); 76 } 77 DefaultSwitchesSpec()78std::string DefaultSwitchesSpec() { 79 return DefaultHostArtifactsPath("etc/default_input_devices/switches.json"); 80 } 81 EchoServerBinary()82std::string EchoServerBinary() { return HostBinaryPath("echo_server"); } 83 GnssGrpcProxyBinary()84std::string GnssGrpcProxyBinary() { return HostBinaryPath("gnss_grpc_proxy"); } 85 KernelLogMonitorBinary()86std::string KernelLogMonitorBinary() { 87 return HostBinaryPath("kernel_log_monitor"); 88 } 89 LogcatReceiverBinary()90std::string LogcatReceiverBinary() { return HostBinaryPath("logcat_receiver"); } 91 MetricsBinary()92std::string MetricsBinary() { return HostBinaryPath("metrics"); } 93 ModemSimulatorBinary()94std::string ModemSimulatorBinary() { return HostBinaryPath("modem_simulator"); } 95 NetsimdBinary()96std::string NetsimdBinary() { return HostBinaryPath("netsimd"); } 97 OpenwrtControlServerBinary()98std::string OpenwrtControlServerBinary() { 99 return HostBinaryPath("openwrt_control_server"); 100 } 101 PicaBinary()102std::string PicaBinary() { return HostBinaryPath("pica"); } 103 ProcessRestarterBinary()104std::string ProcessRestarterBinary() { 105 return HostBinaryPath("process_restarter"); 106 } 107 RootCanalBinary()108std::string RootCanalBinary() { return HostBinaryPath("root-canal"); } 109 ScreenRecordingServerBinary()110std::string ScreenRecordingServerBinary() { 111 return HostBinaryPath("screen_recording_server"); 112 } 113 SecureEnvBinary()114std::string SecureEnvBinary() { return HostBinaryPath("secure_env"); } 115 SensorsSimulatorBinary()116std::string SensorsSimulatorBinary() { 117 return HostBinaryPath("sensors_simulator"); 118 } 119 SocketVsockProxyBinary()120std::string SocketVsockProxyBinary() { 121 return HostBinaryPath("socket_vsock_proxy"); 122 } 123 StopCvdBinary()124std::string StopCvdBinary() { return HostBinaryPath("stop_cvd"); } 125 TcpConnectorBinary()126std::string TcpConnectorBinary() { return HostBinaryPath("tcp_connector"); } 127 TestKeyRsa2048()128std::string TestKeyRsa2048() { 129 return DefaultHostArtifactsPath("etc/cvd_avb_testkey_rsa2048.pem"); 130 } 131 TestKeyRsa4096()132std::string TestKeyRsa4096() { 133 return DefaultHostArtifactsPath("etc/cvd_avb_testkey_rsa4096.pem"); 134 } 135 TestPubKeyRsa2048()136std::string TestPubKeyRsa2048() { 137 return DefaultHostArtifactsPath("etc/cvd_rsa2048.avbpubkey"); 138 } 139 TestPubKeyRsa4096()140std::string TestPubKeyRsa4096() { 141 return DefaultHostArtifactsPath("etc/cvd_rsa4096.avbpubkey"); 142 } 143 TombstoneReceiverBinary()144std::string TombstoneReceiverBinary() { 145 return HostBinaryPath("tombstone_receiver"); 146 } 147 VhalProxyServerBinary()148std::string VhalProxyServerBinary() { 149 return HostBinaryPath("vhal_proxy_server"); 150 } 151 VhalProxyServerConfig()152std::string VhalProxyServerConfig() { 153 return DefaultHostArtifactsPath("etc/automotive/vhalconfig"); 154 } 155 WebRtcBinary()156std::string WebRtcBinary() { return HostBinaryPath("webRTC"); } 157 WebRtcSigServerBinary()158std::string WebRtcSigServerBinary() { 159 return HostBinaryPath("webrtc_operator"); 160 } 161 WebRtcSigServerProxyBinary()162std::string WebRtcSigServerProxyBinary() { 163 return HostBinaryPath("operator_proxy"); 164 } 165 WmediumdBinary()166std::string WmediumdBinary() { return HostBinaryPath("wmediumd"); } 167 WmediumdGenConfigBinary()168std::string WmediumdGenConfigBinary() { 169 return HostBinaryPath("wmediumd_gen_config"); 170 } 171 VhostUserInputBinary()172std::string VhostUserInputBinary() { 173 return HostBinaryPath("cf_vhost_user_input"); 174 } 175 176 } // namespace cuttlefish 177