blob: 6b9880d632a38caeb180534a689f7994cb645630 [file]
syntax = "proto3";
option java_package = "com.android.tools.deployer.devices";
option java_outer_classname = "Proto";
message AttachAgentRequest {
string path = 1;
string options = 2;
}
message AttachAgentResponse {
string status = 1;
}
service FakeApp {
rpc AttachAgent(AttachAgentRequest) returns (AttachAgentResponse) {}
}
message ShellCommand {
string command = 1;
bytes stdin = 2;
int32 uid = 3;
}
message CommandResponse {
bytes stdout = 1;
int32 exit_code = 2;
bool terminate = 3;
}
message GetAppUidRequest {
string package = 1;
}
message GetAppUidResponse {
int32 uid = 1; // If 0 app does not exist.
}
message RecordCommandRequest {
string command = 1;
}
message RecordCommandResponse {}
service FakeDeviceService {
rpc GetAppUid(GetAppUidRequest) returns (GetAppUidResponse) {}
rpc RecordCommand(RecordCommandRequest) returns (RecordCommandResponse) {}
rpc ExecuteCommand(stream ShellCommand) returns (stream CommandResponse) {}
}