# Built-in ADB Management

The built-in ADB service is completely independent of the system's own ADB. Before use, you need to manually call the following interface to install your ADB public key into the service; otherwise, the connection will show as unauthorized. (The key authorized in the system's developer options is not compatible with this built-in ADB.) You can establish a wireless connection to the built-in ADB. With this feature, you can connect to the highest-privilege ADB **without enabling developer mode**.

```{note}
JDWP-related debugging features are exclusive and conflict with the system's built-in ADB, so they are not currently supported by this built-in ADB.
```

## Install Key

The install key interface requires you to first prepare your ADB public key. It is usually located on your computer. You can find it in the `~/.android` or `C:\\Users\\xxxx\\.android` directory, with the filename `adbkey.pub`. If you do not see this file, but `adbkey` exists, you can use the command `adb pubkey adbkey >adbkey.pub` to generate it manually.

Next, call the following interface to install the local machine's public key into the service.

```python
d.install_adb_pubkey("/path/to/adbkey.pub")
```

After installation, you can execute the command `adb connect 192.168.0.2:65000` to connect to the built-in ADB.

## Uninstall Key

If you need to remove a public key from the built-in ADB, you can make the following call.

```python
d.uninstall_adb_pubkey("/path/to/adbkey.pub")
```