blob: 51eb7fc2d8048b3a2546122e3a273d285e8d105d [file] [log] [blame]
Kenny Rootdc14eb72018-10-18 10:15:22 +09001/*
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
17package android.debug;
18
William Hester99a7d632019-02-06 17:36:37 -080019import java.io.File;
20
Kenny Rootdc14eb72018-10-18 10:15:22 +090021/**
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 */
27public abstract class AdbManagerInternal {
Kenny Root61fd3602018-01-19 09:01:46 -050028 /**
29 * Registers a ADB transport mechanism.
30 *
31 * @param transport ADB transport interface to register
32 */
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 */
40 public abstract void unregisterTransport(IAdbTransport transport);
Kenny Roota269b332018-01-19 13:24:01 -050041
42 /**
43 * Returns {@code true} if ADB debugging is enabled.
44 */
45 public abstract boolean isAdbEnabled();
William Hester99a7d632019-02-06 17:36:37 -080046
47 /**
48 * Returns the file that contains all of the ADB keys used by the device.
49 */
50 public abstract File getAdbKeysFile();
51
52 /**
53 * Returns the file that contains all of the ADB keys and their last used time.
54 */
55 public abstract File getAdbTempKeysFile();
Kenny Rootdc14eb72018-10-18 10:15:22 +090056}