1 /* 2 * Copyright (C) 2018 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 17 package android.debug; 18 19 import java.io.File; 20 21 /** 22 * This class allows the control of ADB-related functions that should only be called from the system 23 * server. 24 * 25 * @hide Only should be called from the system server. 26 */ 27 public abstract class AdbManagerInternal { 28 /** 29 * Registers a ADB transport mechanism. 30 * 31 * @param transport ADB transport interface to register 32 */ registerTransport(IAdbTransport transport)33 public abstract void registerTransport(IAdbTransport transport); 34 35 /** 36 * Unregisters a previously registered ADB transport mechanism. 37 * 38 * @param transport previously-added ADB transport interface to be removed 39 */ unregisterTransport(IAdbTransport transport)40 public abstract void unregisterTransport(IAdbTransport transport); 41 42 /** 43 * Returns {@code true} if ADB debugging is enabled. 44 */ isAdbEnabled()45 public abstract boolean isAdbEnabled(); 46 47 /** 48 * Returns the file that contains all of the ADB keys used by the device. 49 */ getAdbKeysFile()50 public abstract File getAdbKeysFile(); 51 52 /** 53 * Returns the file that contains all of the ADB keys and their last used time. 54 */ getAdbTempKeysFile()55 public abstract File getAdbTempKeysFile(); 56 } 57