1/*
2 * Copyright (C) 2024 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
17syntax = "proto2";
18
19package android.os.statsd.telephony;
20
21import "frameworks/proto_logging/stats/atom_field_options.proto";
22import "frameworks/proto_logging/stats/atoms.proto";
23import "frameworks/proto_logging/stats/enums/telephony/enums.proto";
24import "frameworks/proto_logging/stats/enums/telephony/security/enums.proto";
25
26option java_package = "com.android.os.telephony";
27option java_multiple_files = true;
28
29extend Atom {
30  optional CellularIdentifierDisclosed cellular_identifier_disclosed = 800
31  [(module) = "telephony", (restriction_category) = RESTRICTION_FRAUD_AND_ABUSE];
32}
33
34/**
35 * A single cellular identifier disclosure
36 */
37message CellularIdentifierDisclosed {
38    // The mobile country code of the SIM on which the disclosure occurred
39    optional int32 sim_mcc = 1;
40    // The mobile network code of the SIM on which the disclosure occurred
41    optional int32 sim_mnc = 2;
42    // The mobile country code reported by the base station to which the identifier was disclosed
43    optional int32 mcc_of_disclosure = 3;
44    // The mobile network code reported by the base station to which the identifier was disclosed
45    optional int32 mnc_of_disclosure = 4;
46    // The type of identifier that was disclosed
47    optional android.telephony.CellularIdentifier cellular_identifier = 5;
48    // The protocol message within which the identifier was disclosed
49    optional android.telephony.NasProtocolMessage nas_protocol_message = 6;
50    // Whether or not the identifier was disclosed for an emergency call
51    optional bool is_emergency = 7;
52    // Whether or not the user was notified for this disclosure
53    optional bool notification_emitted = 8;
54}
55