adb-wifi
enables you to send commands to an Android device over WiFi using ADB. It assumes that the
device is initially connected to the computer via USB, and that the device's WiFi interface is named wlan0
. If your
setup is different, you may need to modify the script accordingly.
- Clone or download the repository to your computer.
git clone https://github.com/nerandell/adb-wifi.git
- Change into the
adb-wifi
directory.
cd adb-wifi
- Make the script executable.
chmod x adb-wifi.sh
- Tap the Homebrew repository that hosts the adb-wifi script by running the following command:
brew tap nerandell/adb
brew update
- Install the adb-wifi script by running the following command:
brew install adb-wifi
- Verify that the script is installed by running the following command:
which adb-wifi
The output should be /usr/local/bin/adb-wifi
.
-
Connect your Android device to your computer via USB and make sure that USB debugging is enabled in the device's developer options.
-
Run the script by typing
adb-wifi
in a terminal window. -
The script will disconnect the USB cable from the device, obtain the device's IP address, and then connect to the device over WiFi using ADB.
This script is licensed under the MIT License.