OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 // | |
5 // Request and reply to the "checkin server" devices poll every few hours. | |
6 // | |
Nicolas Zea
2014/01/08 19:53:36
nit: remove this line
fgorski
2014/01/08 21:26:39
Done.
| |
7 | |
8 syntax = "proto2"; | |
9 | |
10 option optimize_for = LITE_RUNTIME; | |
11 option retain_unknown_fields = true; | |
12 | |
13 package checkin_proto; | |
14 | |
15 import "android_checkin.proto"; | |
16 // import "wireless/android/proto/device_configuration.proto"; | |
Nicolas Zea
2014/01/08 19:53:36
this too
fgorski
2014/01/08 21:26:39
Done.
| |
17 | |
18 // A concrete name/value pair sent to the device's Gservices database. | |
19 message GservicesSetting { | |
20 required bytes name = 1; | |
21 required bytes value = 2; | |
22 } | |
23 | |
24 // Devices send this every few hours to tell us how they're doing. | |
25 message AndroidCheckinRequest { | |
26 // IMEI (used by GSM phones) is sent and stored as 15 decimal | |
27 // digits; the 15th is a check digit. | |
28 optional string imei = 1; // IMEI, reported but not logged. | |
29 | |
30 // MEID (used by CDMA phones) is sent and stored as 14 hexadecimal | |
31 // digits (no check digit). | |
32 optional string meid = 10; // MEID, reported but not logged. | |
33 | |
34 // MAC address (used by non-phone devices). 12 hexadecimal digits; | |
35 // no separators (eg "0016E6513AC2", not "00:16:E6:51:3A:C2"). | |
36 repeated string mac_addr = 9; // MAC address, reported but not logged. | |
37 | |
38 // An array parallel to mac_addr, describing the type of interface. | |
39 // Currently accepted values: "wifi", "ethernet", "bluetooth". If | |
40 // not present, "wifi" is assumed. | |
41 repeated string mac_addr_type = 19; | |
42 | |
43 // Serial number (a manufacturer-defined unique hardware | |
44 // identifier). Alphanumeric, case-insensitive. | |
45 optional string serial_number = 16; | |
46 | |
47 // Older CDMA networks use an ESN (8 hex digits) instead of an MEID. | |
48 optional string esn = 17; // ESN, reported but not logged | |
49 | |
50 optional int64 id = 2; // Android device ID, not logged | |
51 optional int64 logging_id = 7; // Pseudonymous logging ID for Sawmill | |
52 optional string digest = 3; // Digest of device provisioning, not logged. | |
53 optional string locale = 6; // Current locale in standard (xx_XX) format | |
54 required AndroidCheckinProto checkin = 4; | |
55 | |
56 // DEPRECATED, see AndroidCheckinProto.requested_group | |
57 optional string desired_build = 5; | |
58 | |
59 // Blob of data from the Market app to be passed to Market API server | |
60 optional string market_checkin = 8; | |
61 | |
62 // SID cookies of any google accounts stored on the phone. Not logged. | |
63 repeated string account_cookie = 11; | |
64 | |
65 // Time zone. Not currently logged. | |
66 optional string time_zone = 12; | |
67 | |
68 // Security token used to validate the checkin request. | |
69 // Required for android IDs issued to Froyo+ devices, not for legacy IDs. | |
70 optional fixed64 security_token = 13; | |
71 | |
72 // Version of checkin protocol. | |
73 // | |
74 // There are currently two versions: | |
75 // | |
76 // - version field missing: android IDs are assigned based on | |
77 // hardware identifiers. unsecured in the sense that you can | |
78 // "unregister" someone's phone by sending a registration request | |
79 // with their IMEI/MEID/MAC. | |
80 // | |
81 // - version=2: android IDs are assigned randomly. The device is | |
82 // sent a security token that must be included in all future | |
83 // checkins for that android id. | |
84 // | |
85 // - version=3: same as version 2, but the 'fragment' field is | |
86 // provided, and the device understands incremental updates to the | |
87 // gservices table (ie, only returning the keys whose values have | |
88 // changed.) | |
89 // | |
90 // (version=1 was skipped to avoid confusion with the "missing" | |
91 // version field that is effectively version 1.) | |
92 optional int32 version = 14; | |
93 | |
94 // OTA certs accepted by device (base-64 SHA-1 of cert files). Not | |
95 // logged. | |
96 repeated string ota_cert = 15; | |
97 | |
98 // Honeycomb and newer devices send configuration data with their checkin. | |
99 // optional DeviceConfigurationProto device_configuration = 18; | |
100 | |
101 // A single CheckinTask on the device may lead to multiple checkin | |
102 // requests if there is too much log data to upload in a single | |
103 // request. For version 3 and up, this field will be filled in with | |
104 // the number of the request, starting with 0. | |
105 optional int32 fragment = 20; | |
106 | |
107 // For devices supporting multiple users, the name of the current | |
108 // profile (they all check in independently, just as if they were | |
109 // multiple physical devices). This may not be set, even if the | |
110 // device is using multiuser. (checkin.user_number should be set to | |
111 // the ordinal of the user.) | |
112 optional string user_name = 21; | |
113 | |
114 // For devices supporting multiple user profiles, the serial number | |
115 // for the user checking in. Not logged. May not be set, even if | |
116 // the device supportes multiuser. checkin.user_number is the | |
117 // ordinal of the user (0, 1, 2, ...), which may be reused if users | |
118 // are deleted and re-created. user_serial_number is never reused | |
119 // (unless the device is wiped). | |
120 optional int32 user_serial_number = 22; | |
121 | |
122 // NEXT TAG: 23 | |
123 } | |
124 | |
125 // The response to the device. | |
126 message AndroidCheckinResponse { | |
127 required bool stats_ok = 1; // Whether statistics were recorded properly. | |
128 optional int64 time_msec = 3; // Time of day from server (Java epoch). | |
129 // repeated AndroidIntentProto intent = 2; | |
130 | |
131 // Provisioning is sent if the request included an obsolete digest. | |
132 // | |
133 // For version <= 2, 'digest' contains the digest that should be | |
134 // sent back to the server on the next checkin, and 'setting' | |
135 // contains the entire gservices table (which replaces the entire | |
136 // current table on the device). | |
137 // | |
138 // for version >= 3, 'digest' will be absent. If 'settings_diff' | |
139 // is false, then 'setting' contains the entire table, as in version | |
140 // 2. If 'settings_diff' is true, then 'delete_setting' contains | |
141 // the keys to delete, and 'setting' contains only keys to be added | |
142 // or for which the value has changed. All other keys in the | |
143 // current table should be left untouched. If 'settings_diff' is | |
144 // absent, don't touch the existing gservices table. | |
145 // | |
146 optional string digest = 4; | |
147 optional bool settings_diff = 9; | |
148 repeated string delete_setting = 10; | |
149 repeated GservicesSetting setting = 5; | |
150 | |
151 optional bool market_ok = 6; // If Market got the market_checkin data OK. | |
152 | |
153 optional fixed64 android_id = 7; // From the request, or newly assigned | |
154 optional fixed64 security_token = 8; // The associated security token | |
155 | |
156 optional string version_info = 11; | |
157 // NEXT TAG: 12 | |
158 } | |
OLD | NEW |