> For the complete documentation index, see [llms.txt](https://easonwang.gitbook.io/web_advance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://easonwang.gitbook.io/web_advance/react-native/adb.md).

# adb

#### 選擇設備

```
adb -s 53F0219321001531 <指令>
```

#### 刪除設備上 APP

```
adb uninstall <套件名稱 com.>
```

#### 列出目前連接之設備

```
adb devices
```

#### 指定 react native連接設備

```
npx react-native run-android --variant=release --deviceId=<設備 ID>
```

#### 如何開啟 adb

需要先開啟 USB 偵錯 debugging

<https://www.syncios.com/android/how-to-debug-huawei-p30-and-p30-pro.html>
