• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 /**
20  * Interface to communicate remotely with the {@code AdbService} in the system server.
21  *
22  * @hide
23  */
24 interface IAdbManager {
25     /**
26      * Allow ADB debugging from the attached host. If {@code alwaysAllow} is
27      * {@code true}, add {@code publicKey} to list of host keys that the
28      * user has approved.
29      *
30      * @param alwaysAllow if true, add permanently to list of allowed keys
31      * @param publicKey RSA key in mincrypt format and Base64-encoded
32      */
allowDebugging(boolean alwaysAllow, String publicKey)33     void allowDebugging(boolean alwaysAllow, String publicKey);
34 
35     /**
36      * Deny ADB debugging from the attached host.
37      */
denyDebugging()38     void denyDebugging();
39 
40     /**
41      * Clear all public keys installed for secure ADB debugging.
42      */
clearDebuggingKeys()43     void clearDebuggingKeys();
44 }
45