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()23 std::string AdbConnectorBinary() {
24   return HostBinaryPath("adb_connector");
25 }
26 
AvbToolBinary()27 std::string AvbToolBinary() { return HostBinaryPath("avbtool"); }
28 
CasimirControlServerBinary()29 std::string CasimirControlServerBinary() {
30   return HostBinaryPath("casimir_control_server");
31 }
32 
ConsoleForwarderBinary()33 std::string ConsoleForwarderBinary() {
34   return HostBinaryPath("console_forwarder");
35 }
36 
ControlEnvProxyServerBinary()37 std::string ControlEnvProxyServerBinary() {
38   return HostBinaryPath("control_env_proxy_server");
39 }
40 
EchoServerBinary()41 std::string EchoServerBinary() { return HostBinaryPath("echo_server"); }
42 
GnssGrpcProxyBinary()43 std::string GnssGrpcProxyBinary() {
44   return HostBinaryPath("gnss_grpc_proxy");
45 }
46 
KernelLogMonitorBinary()47 std::string KernelLogMonitorBinary() {
48   return HostBinaryPath("kernel_log_monitor");
49 }
50 
LogcatReceiverBinary()51 std::string LogcatReceiverBinary() {
52   return HostBinaryPath("logcat_receiver");
53 }
54 
MetricsBinary()55 std::string MetricsBinary() {
56   return HostBinaryPath("metrics");
57 }
58 
ModemSimulatorBinary()59 std::string ModemSimulatorBinary() {
60   return HostBinaryPath("modem_simulator");
61 }
62 
NetsimdBinary()63 std::string NetsimdBinary() { return HostBinaryPath("netsimd"); }
64 
OpenwrtControlServerBinary()65 std::string OpenwrtControlServerBinary() {
66   return HostBinaryPath("openwrt_control_server");
67 }
68 
PicaBinary()69 std::string PicaBinary() { return HostBinaryPath("pica"); }
70 
ProcessRestarterBinary()71 std::string ProcessRestarterBinary() {
72   return HostBinaryPath("process_restarter");
73 }
74 
RootCanalBinary()75 std::string RootCanalBinary() { return HostBinaryPath("root-canal"); }
76 
TestKeyRsa2048()77 std::string TestKeyRsa2048() {
78   return DefaultHostArtifactsPath("etc/cvd_avb_testkey_rsa2048.pem");
79 }
80 
TestKeyRsa4096()81 std::string TestKeyRsa4096() {
82   return DefaultHostArtifactsPath("etc/cvd_avb_testkey_rsa4096.pem");
83 }
84 
TestPubKeyRsa2048()85 std::string TestPubKeyRsa2048() {
86   return DefaultHostArtifactsPath("etc/cvd_rsa2048.avbpubkey");
87 }
88 
TestPubKeyRsa4096()89 std::string TestPubKeyRsa4096() {
90   return DefaultHostArtifactsPath("etc/cvd_rsa4096.avbpubkey");
91 }
92 
CasimirBinary()93 std::string CasimirBinary() { return HostBinaryPath("casimir"); }
94 
ScreenRecordingServerBinary()95 std::string ScreenRecordingServerBinary() {
96   return HostBinaryPath("screen_recording_server");
97 }
98 
SecureEnvBinary()99 std::string SecureEnvBinary() { return HostBinaryPath("secure_env"); }
100 
SocketVsockProxyBinary()101 std::string SocketVsockProxyBinary() {
102   return HostBinaryPath("socket_vsock_proxy");
103 }
104 
StopCvdBinary()105 std::string StopCvdBinary() { return HostBinaryPath("stop_cvd"); }
106 
TcpConnectorBinary()107 std::string TcpConnectorBinary() { return HostBinaryPath("tcp_connector"); }
108 
TombstoneReceiverBinary()109 std::string TombstoneReceiverBinary() {
110   return HostBinaryPath("tombstone_receiver");
111 }
112 
WebRtcBinary()113 std::string WebRtcBinary() {
114   return HostBinaryPath("webRTC");
115 }
116 
WebRtcSigServerBinary()117 std::string WebRtcSigServerBinary() {
118   return HostBinaryPath("webrtc_operator");
119 }
120 
WebRtcSigServerProxyBinary()121 std::string WebRtcSigServerProxyBinary() {
122   return HostBinaryPath("operator_proxy");
123 }
124 
WmediumdBinary()125 std::string WmediumdBinary() { return HostBinaryPath("wmediumd"); }
126 
WmediumdGenConfigBinary()127 std::string WmediumdGenConfigBinary() {
128   return HostBinaryPath("wmediumd_gen_config");
129 }
130 
AutomotiveProxyBinary()131 std::string AutomotiveProxyBinary() {
132   return HostBinaryPath("automotive_vsock_proxy");
133 }
134 
VhalProxyServerBinary()135 std::string VhalProxyServerBinary() {
136   return HostBinaryPath("vhal_proxy_server");
137 }
138 
VhalProxyServerConfig()139 std::string VhalProxyServerConfig() {
140   return DefaultHostArtifactsPath("etc/automotive/vhalconfig");
141 }
142 
143 } // namespace cuttlefish
144