A simple Magisk module to control wireless ADB daemon. It allows you to start wireless ADBD in current session, start automatically on boot, set custom ports, and manage ADB keys (backup/restore/import). It supports KernelSU WebUI as well.
- Install the module via Magisk, KernelSU, or Apatch.
- Reboot your device.
- Open Termux or a terminal emulator and run the following command as
su
.
wadbd on <port> - Enable wireless ADB on the specified port.
wadbd off - Disable wireless ADB.
wadbd status - Show the status of wireless ADB.
wadbd enable-on-boot <port> - Enable wireless ADB on boot with the specified port.
wadbd disable-on-boot - Disable wireless ADB on boot.
wadbd --import-key <path> - Import an adbkey.pub file to authorize ADB without prompt.
wadbd --backup <path> - Backup authorized adb_keys
wadbd --restore <path> -restore backed up adb_keys
wadbd --clear-keys - Revokes all authorized Keys
- Note: If you don't specify a port, it will use the default port 5555.
- You Can Also Control This Module Using Kernel Su or Apatch WebUI
- Enables Wireless ADB on specified port and displays the necessary commands to connect to your phone wirelessly.
- default port is 5555 if not specified while running the command
- Displays whether Wireless ADB is currently running or not.
- Disables Wireless ADB.
- enables wireless adbd automatically on boot on specified port (default 5555 if not specified)
- Disables wirelss adbd on boot
never
be added.
- For some reason , If your device is not prompting to authorize ADB, you can use this command to directly import keys.
- The adbkey.pub file is typically located at:
- Windows:
C:\Users\<username>\.android\adbkey.pub
- Linux:
/home/<username>/.android/adbkey.pub
- Termux:
/data/data/com.termux/files/home/.android/adbkey.pub
- Windows:
- Used to backup or restore authorized keys
- Revokes all authorized keys
This Script Is Free Software. You can redistribute it
and/or modify it under the terms of the GNU General Public
License as published by the Free SoftwareFoundation,either version 3 of the License , or (at your option)
any later version.
This script is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this script. If not, see <http://www.gnu.org/licenses/>.