• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1syntax = "proto3";
2
3option java_outer_classname = "AndroidProto";
4
5package pandora;
6
7import "google/protobuf/empty.proto";
8
9// This file contains Android-specific protos and rpcs that should not be part
10// of the general interface. They should not be invoked from MMIs directly since
11// this will couple them too tightly with Android.
12
13// Service for Android-specific operations.
14service Android {
15  // Log text (for utility only)
16  rpc Log(LogRequest) returns (LogResponse);
17  // Set Message, PhoneBook and SIM access permission
18  rpc SetAccessPermission(SetAccessPermissionRequest) returns (google.protobuf.Empty);
19  // Send SMS
20  rpc SendSMS(google.protobuf.Empty) returns (google.protobuf.Empty);
21  // Accept incoming file
22  rpc AcceptIncomingFile(google.protobuf.Empty) returns (google.protobuf.Empty);
23  // Send file
24  rpc SendFile(google.protobuf.Empty) returns (google.protobuf.Empty);
25}
26
27message LogRequest {
28  string text = 1;
29}
30
31message LogResponse {}
32
33enum AccessType {
34  ACCESS_MESSAGE = 0;
35  ACCESS_PHONEBOOK = 1;
36  ACCESS_SIM = 2;
37}
38
39message SetAccessPermissionRequest {
40  // Peer Bluetooth Device Address as array of 6 bytes.
41  bytes address = 1;
42  // Set AccessType to Message, PhoneBook and SIM access permission
43  AccessType access_type = 2;
44}
45
46// Internal representation of a Connection - not exposed to clients, included here
47// just for code-generation convenience. This is what we put in the Connection.cookie.
48message InternalConnectionRef {
49  bytes address = 1;
50  int32 transport = 2;
51}