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} 24 25message LogRequest { 26 string text = 1; 27} 28 29message LogResponse {} 30 31enum AccessType { 32 ACCESS_MESSAGE = 0; 33 ACCESS_PHONEBOOK = 1; 34 ACCESS_SIM = 2; 35} 36 37message SetAccessPermissionRequest { 38 // Peer Bluetooth Device Address as array of 6 bytes. 39 bytes address = 1; 40 // Set AccessType to Message, PhoneBook and SIM access permission 41 AccessType access_type = 2; 42} 43 44// Internal representation of a Connection - not exposed to clients, included here 45// just for code-generation convenience. This is what we put in the Connection.cookie. 46message InternalConnectionRef { 47 bytes address = 1; 48 int32 transport = 2; 49}