1/* 2 * Copyright (C) 2019 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"; 18package android.debug; 19 20option java_outer_classname = "AdbProtoEnums"; 21option java_multiple_files = true; 22 23/** 24 * adb connection state used to track adb connection changes in AdbDebuggingManager.java. 25 */ 26enum AdbConnectionStateEnum { 27 UNKNOWN = 0; 28 29 /** 30 * The adb connection is waiting for approval from the user. 31 */ 32 AWAITING_USER_APPROVAL = 1; 33 34 /** 35 * The user allowed the adb connection from the system. 36 */ 37 USER_ALLOWED = 2; 38 39 /** 40 * The user denied the adb connection from the system. 41 */ 42 USER_DENIED = 3; 43 44 /** 45 * The adb connection was automatically allowed without user interaction due to the system 46 * being previously allowed by the user with the 'always allow' option selected, and the adb 47 * grant has not yet expired. 48 */ 49 AUTOMATICALLY_ALLOWED = 4; 50 51 /** 52 * An empty or invalid base64 encoded key was provided to the framework; the connection was 53 * automatically denied. 54 */ 55 DENIED_INVALID_KEY = 5; 56 57 /** 58 * vold decrypt has not yet occurred; the connection was automatically denied. 59 */ 60 DENIED_VOLD_DECRYPT = 6; 61 62 /** 63 * The adb session has been disconnected. 64 */ 65 DISCONNECTED = 7; 66} 67 68