This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
products:sbc:common:development:adb [2024/08/06 03:46] nick |
products:sbc:common:development:adb [2025/05/14 22:09] (current) nick |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ===== Android Debug Bridge (adb) ===== | + | ===== Use adb ===== |
| Android Debug Bridge ('' | Android Debug Bridge ('' | ||
| - | ==== ADB Tool ==== | + | ==== Install adb tool ==== |
| <tabbox Linux> | <tabbox Linux> | ||
| - | Install the ADB tool on PC Host: | + | Install the '' |
| ```shell | ```shell | ||
| - | $ sudo apt-get update | + | sudo apt-get update |
| - | $ sudo apt-get install android-tools-adb | + | sudo apt-get install android-tools-adb |
| ``` | ``` | ||
| Line 18: | Line 18: | ||
| **Add permission** | **Add permission** | ||
| + | |||
| ```shell | ```shell | ||
| - | $ sudo useradd -G plugdev $USER | + | sudo useradd -G plugdev $USER |
| ``` | ``` | ||
| Line 26: | Line 27: | ||
| Create a .rules file: | Create a .rules file: | ||
| ```shell | ```shell | ||
| - | $ sudo vim / | + | sudo vim / |
| ``` | ``` | ||
| Write the following to the .rules file: | Write the following to the .rules file: | ||
| Line 35: | Line 36: | ||
| **Restart udev service** | **Restart udev service** | ||
| ```shell | ```shell | ||
| - | $ sudo / | + | sudo / |
| ``` | ``` | ||
| - | |||
| - | |||
| <tabbox Windows> | <tabbox Windows> | ||
| - | **Install ADB Tool** | + | |
| - | | + | |
| - | *Download the [[https:// | + | * Download the [[dl>products/ |
| - | *Unzip the platform tools file to the easily accessible directory, such as C: | + | * Double click '' |
| + | * Double click '' | ||
| + | * Edge1/2 | ||
| + | * Download the [[dl> | ||
| + | * Double click '' | ||
| + | * Download the [[https:// | ||
| + | * Unzip the platform tools file to the easily accessible directory, such as C: | ||
| <WRAP tip > | <WRAP tip > | ||
| Line 53: | Line 58: | ||
| </ | </ | ||
| - | ==== Use ADB ==== | + | ==== Use adb ==== |
| === ADB over Wi-Fi/LAN === | === ADB over Wi-Fi/LAN === | ||
| Line 62: | Line 67: | ||
| *Run the adb connect command: | *Run the adb connect command: | ||
| ```shell | ```shell | ||
| - | $ adb connect 192.168.1.120 | + | adb connect 192.168.1.120 |
| - | $ adb shell | + | adb shell |
| ``` | ``` | ||
| Line 72: | Line 77: | ||
| *Open a Terminal and type: | *Open a Terminal and type: | ||
| ```shell | ```shell | ||
| - | $ adb shell | + | adb shell |
| ``` | ``` | ||