You can run ADB commands in Chromium-based web browsers without setting up Android SDK Platform tools on your computer. Web ADB is an amazing online tool that brings the powerful features of ADB to desktop and mobile browsers. This web browser-based tool supports all ADB and ADB Shell commands. Moreover, it allows you to control your Android phone or tablet from another device via ADB in Chrome and other supported browsers.
Web ADB takes advantage of the WebUSB API found in all Chromium-based web browsers including the ones listed below.
- Google Chrome
- Microsoft Edge
- Opera
- Vivaldi
- Brave
- Blisk
- Colibri
- Yandex Browser
- Cent Browser
- UC Browser
WebUSB API lets web pages access and communicate with devices connected via USB. The developer, Yume Chan, recommends the latest version of Google Chrome or Microsoft Edge for the best compatibility.
Features of Web ADB
Web ADB can be used to execute ADB commands from a compatible web browser desktop or mobile web browser. Besides, you can browse the files stored on your Android device, capture the screen, and install APK files from a web browser’s interface. You can also mirror your phone’s screen using Scrcpy via Web ADB. Below is a complete list of its features.
- Device information
- Run ADB shell commands
- Manage files
- Install APK files
- Enable ADB over Wi-Fi to run ADB commands wirelessly.
- Capture screenshots and record screens.
- Mirror and control the device via USB with SCRCPY (screen copy).
- Power off and reboot Android devices to Bootloader, Fastboot, Recovery, Qualcomm EDL, and Download (Samsung) modes.
- Supports mobile browsers.
The whole concept of Web ADB looks pretty neat but has its dark sides too. Many of us might not be comfortable granting ADB access to a web app. It’s like handing over the key to our house to a stranger. If someone hacks the Web ADB website, one can do anything from uploading all our data to installing malware stealthily. Such a thing might turn out to be a nightmare for anyone.
Using ADB Commands in Web Browser
Having discussed the features of WebADB, let’s see how to use it to execute ADB Shell commands via web browsers that support WebUSB API.
- First, enable USB debugging from the Developer Options on your Android device.
- Open the WebADB web app in a Chromium-based web browser.
- Â If you are a Windows user, open Chrome’s flags page and enable the New USB Backend.
chrome://flags/#enable-webusb-device-detection
- Connect your phone or tablet to the computer via a USB cable and select File Transfer mode when prompted. Make sure no other Android device is connected to your PC as WebADB can communicate with only one device at a time. If multiple devices are connected, you’ll get the “Unable to claim interface” error.
- Click the Add Device button, select your device, and click the Connect button.
- Your Android device will be connected to WebADB. You are now ready to enjoy all the features it offers.
- Please note that you’ll need to Allow USB debugging on your device when prompted.
- If you want to run a Shell command, click on Interactive Shell. You don’t need to execute
adb shell
first to start the daemon as WebADB activates that by default. For instance, to get the list of all system apps installed on your Android device, typepm list packages -s
in the command box and press the Enter key. Similarly, you are supposed to omit the “adb” part while using ADB commands. For instance, to boot an Android device into the recovery mode, usereboot recovery
. - To mirror your Android device’s screen in a web browser window, click Scrcpy. Just click the Start button to start mirroring and control your device from the computer.
Using Web ADB on a Mobile Browser
Web ADB also lets you send ADB commands from one Android device to another phone or tablet. That means you don’t need a laptop or desktop computer or even a root privilege for that.
- Open WebADB in your phone’s web browser.
- Since the command box on the Web ADB website is not properly visible in a mobile browser window, you should enable the Desktop site option from the browser menu.
- Make sure to enable USB debugging on the other Android phone or tablet.
- You will need a USB OTG or USB C-Type to C-Type cable as shown below.
- Plug the USB cable into the phone that you’ll use as a host. Then plug the other end of the USB C-Type cable into the device you want to send the commands. In my case, I am using the Galaxy Note 10 as a host so I can control my Redmi K20 Pro.
- When you connect the first device (host) to the second one, it’ll prompt you to select the USB connection mode. You must select the File Transfer mode shown below.
- Also, you’re supposed to enable USB debugging on the second device and authorize debugging when prompted.
- Now click the Interactive Shell option on Web ADB and you can send any ADB command via the mobile web browser to any Android phone or tablet without root and using a computer.
All the features of Web ADB work flawlessly on Chrome for Android. I tested the screen mirroring feature called Scrcpy and it worked as expected.
You can use Web ADB on computers and Android devices. The feature I like most is its compatibility with mobile browsers like Chrome, Microsoft Edge, Opera, etc. It fills a much-needed void by allowing us to control a phone or tablet from another Android device without root.
Source: GitHub