Tag: bridge

  • Here are 3 reasons why you should enable ADB on your Android device

    Here are 3 reasons why you should enable ADB on your Android device

    You have heard about ADB and that you ought to turn it on for your Android phone. But why?

    Here are three reasons to enable ADB on your smartphone right now.

    Wirelessly mirroring phone to PC

    The most recent versions of macOS and iOS allow you to mirror the screen of your iPhone to your Mac. In certain situations, this can be really helpful. However, what about Android? Unfortunately, there is not a built-in method for mirroring the screen of your Android handset to a Windows computer—or any computer, really.

    But that is where scrcpy is useful. “Screen copy” is represented by the unusual name, and the application’s name is bolded. I was able to utilize scrcpy with ADB over my home network on my OnePlus 13R, and it was great, despite the strange name.

    The mirrored display functions just as it would if you were physically touching it, and there was hardly any lag when using Scrcpy. Everything worked as I had anticipated, and I could utilize gestures just like I could with the OnePlus 13R.

    scrcpy mirror android via adb

    You can use the command scrcpy in the terminal to remotely connect to your phone and display (and interact with) its screen on your computer after it has been installed on macOS, Windows, or Linux.

    I have two devices linked to my PC: a Wi-Fi device and a USB device. To force the connection over Wi-Fi, I used the command scrcpy -e, and it worked perfectly. Using scrcpy -d would force the connection over USB, but unless you do not have a reliable Wi-Fi network, I do not see why you should do this.

    In any case, utilize scrcpy to keep your phone’s screen shown on your computer. Just be aware that the program will only function if your phone is unlocked and the screen is turned on. You will also need to input any passcodes on your phone’s screen, not your computer’s.

    Sync files between your computer and phone

    Even though ADB comes with the adb push and adb pull commands built in, I much like use the program better-adb-sync than the built-in options. It is more akin to an rsync tool that allows you to synchronize files between your phone and computer.

    The –show-progress parameter is one feature that sets it apart from the built-in commands, even if the core operation is fairly similar to that of adb push and adb pull. This will display the status of the file transmission between your computer and phone. After installation, the better-adb-sync command is simply adbsync. If you want to transfer a video file from your phone’s storage to your computer while displaying the progress, you would use a command like adbsync –show-progress pull /sdcard/video.mp4.

    screenshot 2025 03 10 203417

    Personally, I think it is essential to know the status of a transfer. Sending a command and then waiting for a blank response till it fails or succeeds is something I detest. Does it still function? Does the transfer continue? Was it stalling? Is it moving slowly? Is it taking so long because of that? I frequently ask all of these questions when transferring files in the terminal.

    I think it is essential to be able to use the –show-progress flag with better-adb-sync, and I am sure you will find it useful as well.

    Move files to your computer wirelessly

    ADB is the answer if you have ever wished to quickly take a screenshot of your phone and transfer the image to your computer.

    To take a screenshot of your phone’s screen, just type the command adb shell screencap /sdcard/screen.png. After that, the file will be pulled to your computer using a program like adbsync pull /sdcard/screen.png. If you are also wirelessly connected to your phone, you may accomplish all of this over Wi-Fi without the need for wires.

    When you require the information from your phone but are attempting to send anything from your computer, this can be helpful. If you have multiple phones and are unable to recall which button shortcut to use to capture a screenshot, you could also just utilize it.

    There are several justifications for using this command, and I believe each one is sound. Additionally, it works well with better-adb-sync, which makes it simple to transfer the file to your computer after taking a screenshot.

    Do you want to know additional ADB commands for your Android phone? Every Android user should be familiar with these nine of the greatest ADB commands.

  • How to configure and use Android’s ADB wirelessly

    How to configure and use Android’s ADB wirelessly

    ADB is a command-line tool that makes it easier for your Android smartphone and a PC to communicate. The tool has many more applications besides only rooting and updating Android ROMs (more on this later).

    The traditional method for using ADB entails connecting your Android device to the Desktop through USB. But there is an alternative. Let’s examine at some wireless ADB usage options.

    Set up ADB

    You can skip this step if ADB has previously been configured on your Android and PC. If you haven’t, remember that everything is new to you!

    You must first download and unzip the Android SDK Platform Tools from the Android developer website before you can use ADB on your machine.

    By executing the command: brew install homebrew/cask/android-platform-tools, Mac users can use Homebrew to install ADB.

    Before you may connect your Android smartphone using ADB, you must first enable USB debugging in the developer settings.

    wireless adb setup

    Go to Settings > About phone then tap on the Build number several times. Once again, go to Settings > Developer options, then toggle on USB debugging.

    Once that is finished, use a USB cord to connect the Android device to your Desktop. You must utilize a cable initially even though we’re going to set up a wireless connection. The USB debugging prompt that will display on your Android device should always be accepted.

    enable usb debugging for ADB

    Open the command line or Terminal and navigate to the Platform Tools folder.

    If you’re on Windows, you can head to the downloaded Platform Tools folder and open the PowerShell window by pressing Shift and right-clicking anywhere in the folder, and selecting Open PowerShell Window here. On a Mac, open the Platform Tools folder and go to Finder > Services > New Terminal at Folder.

    If you’re using Windows, use the command adb devices into the command prompt. All instructions should be prefixed by a dot-slash on Linux and Mac, so it would be./adb devices.

    You should be able to find your device’s serial number in the list of attached devices if everything functions as it should.

    adb devices

    How to use Android wireless ADB

    The main topic at hand right now is how to connect your Android smartphone wirelessly to an ADB server. To use ADB wirelessly after configuring it and connecting your Android device to your PC, follow the instructions below.

    1. Type adb tcpip 5555 in the command line or Terminal and press Enter.
    2. Find your phone’s IP address in Settings > About Phone > Status > IP Address.
    3. Back in the command line or Terminal, type adb connect [your Android device’s IP address].
    4. Finally, press Enter again.

    The Android device should now be connected to ADB over a wireless connection. You can safely remove the USB cable.

    Is wireless ADB not working?

    Try installing Minimal ADB and Fastboot from the XDA Forums if your Android device won’t connect to Windows using ADB (you are getting errors in the command line). The required Android drivers are installed by this package, which may also assist you in fixing any command line issues.

    You can also utilize WebADB, which transfers all of ADB’s capabilities to your web browser. You can use the online tool to use ADB via Wi-Fi. In other words, you can completely forego installing ADB.

    What is ADB used for?

    The idea that Android ADB is solely helpful when rooting Android is a common one. It, however, is merely one of the several uses for the Android Debug Bridge.

    For example, you can use an ADB command to delete pre-installed apps from your Android device that is not rooted. Unwanted apps may be tough to remove from some Android cellphones, but ADB can assist.

    Without needing to root your device, you may also mirror your Android screen to a Desktop using the command line utility. This can be done using the free program Scrcpy. The tool’s wireless ADB connection results in extremely fantastic performance.

    Is safe to use?

    Using the utility won’t be a problem if you are familiar with ADB commands. There are risks involved with using ADB, especially if you are new to this field. If you are trying to root your device, using the incorrect commands could result in problems or, at worse, brick your phone.

    Although your Android smartphone won’t have any problems once you set up wireless ADB, you should always keep a backup of your data in the cloud or on an external storage device as a safety measure.

    No cables anymore

    Although though you first require a USB cord to set up ADB, the ability to utilize it wirelessly is incredibly useful. It allows you to walk around more freely while you work, allows you to simultaneously charge your phone at full speed, and is just much more practical in general. It’s definitely worth a go if you use ADB.

  • The complete guide to install ADB on any platform

    The complete guide to install ADB on any platform

    Whether you want to install a custom ROM, turn on some hidden Android features, or take screenshots from apps that prevent you from doing so, you’ll need the Android Debug Bridge (ADB) and fastboot. They’re part of the Google SDK platform tools and give you some lower-level access to your phone. You’ve got to prepare a few things before you can start, so here’s a comprehensive guide showing you how to get the platform tools up and running on any platform.

    Setup your phone

    You need to set up your Android device first. If you haven’t already activated the developer options in your system settings, you will have to do so by going to the About section and taping the Build number entry seven times. You will be congratulated on becoming a developer, and a new entry called Developer Options will appear in your system settings. Enter them, look for the USB debugging toggle, and turn it on.

    Installing ADB

    Windows, macOS, Linux, and Chrome OS with Android Studio

    If you’re a developer or looking to get into Android app development, you should install the Android Studio. It’s Google’s official IDE (Integrated Development Environment) for Android applications and has all the tools on board you need for creating your projects, including ADB and fastboot. The software will also ensure that your tools are always up to date. You can download Android Studio on the Android Developers website. The installation process is straight-forward — just follow the on-screen instructions from the installer.

    android adb

    Since Android Studio is quite huge when installed, the standalone SDK platform tools could be a better option if you want to save some precious space on your computer’s storage, especially if you don’t want to get into app development. The tools are comprised of the same interfaces you get when you install the Android Studio: ADB, fastboot, and systrace. They’re available on the Android Developers website. You’ll have to extract them and add them to your system’s path, but there are some scripts that simplify the process:

    Nexus Tools

    If you ask me, Nexus Tools is the fastest way to get ADB and the other platform tools up and running on your computer. It’s an open-source tool created by our own Corbin Davenport. Nexus Tools automatically downloads the latest platform tools from the Google website mentioned above, extracts them, and adds them to your system’s path for ease of use. You just need to paste the following command into a macOS or Linux terminal and hit enter:

    bash <(curl -s https://raw.githubusercontent.com/corbindavenport/nexus-tools/master/install.sh)

    Once it’s finished installing, open a new terminal window and confirm that ADB works with the ADB devices command. If your phone is connected with USB debugging enabled, you should then be able to see its ID.

    The script also works for the latest Macs with the M1 chip, Linux on Chromebooks (here’s how to enable Linux on Chrome OS), and Bash for Windows. However, the Windows subsystem for Linux doesn’t support USB, so you’ll have to rely on a wireless connection. That’s only really feasible if you have Android 11 or a rooted phone, and even then, there are some limitations.

    You can find more information on Nexus Tools on Github, including uninstall and update instructions.

    15 seconds ADB installer

    adb installer

    For Windows, you can rely on another automatic tool from an XDA Developers Forum member, the 15 seconds ADB installer. However, some users report that the script doesn’t properly work for them, and it hasn’t been updated by the original maintainer for a long time. You can try using some of the recent revisions from another forum member or set up the platform tools manually:

    1. Download the SDK platform tools for Windows from the Android Developers website.
    2. Extract the ZIP file into a folder you can easily remember (like C:/platform-tools)
    3. Open a command window in the folder by holding shift and right-clicking in an empty spot in the folder and selecting “Open command prompt/PowerShell here” in the menu. Then you can start using ADB — connect your phone and try .\ADB devices to see if it’s working. A list with attached devices should show up.
    4. If you computer doesn’t recognize your phone, you may need to install its respective Windows USB driver additionally. Alternatively, there’s an open-source universal driver if you don’t want to go through the hassle of finding the correct one for your device.

    If you want to be able to just open a command window and start using ADB without navigating to your platform-tools folder first, you’ll need to add the folder to your Windows path:

    1. Search for “system environment” in the Windows 10 Start search and select “Edit the system environment variables” from the results.
    2. Click “Environment Variables…” towards the bottom of the window that just opened.
    3. In the lower section of the next window under “System variables,” look for the “Path” row. Select it and click “Edit…”
    4. In the “Edit environment variable” window, you can hit the “New” button and add the path with the platform tools. In our example, that’s “C:/platform-tools.”
    5. Exit all windows and save the changes you’ve made by selecting “OK.”
    6. Open a new command prompt or PowerShell and see if ADB devices now works without navigating to your platform-tools folder first. You also won’t have to add .\ in front of it anymore. You might have to restart your computer before the change takes effect.

    On your phone

    Lev2.2 206x366 1

    If you don’t want to root your phone or install a custom ROM and just need access to the ADB shell, you don’t even need to connect your handset to a computer. The open-source LADB app allows you to run a shell locally, utilizing the wireless ADB protocol. However, setting it up is a little convoluted, and you’ll need to be on Android 11 to be truly free from a computer. We’ve got a tutorial that walks you through the process.

    Web

    ADB

    If you don’t have the Android 11 yet, or prefer to work with a larger screen, the WebADB might be for you. It’s an open-source web app that you can use to run the ADB shell, but it also comes with a file manager and supports SCRCPY for screenshots and screencasts in apps that don’t allow you to run them on a regular basis. The biggest caveat: being a web tool, you have to trust that developers don’t do anything fishy with your phone—you’re giving an unknown party low-level access, after all. Here’s our tool hands-on.

    Using ADB

    Depending on which install method you opted for, you may have to add a .\ in front of ADB commands to make them work. If you haven’t added your SDK tools installation to your path on Windows, keep in mind that you always have to run a terminal from the SDK tools folder.

    There are tons of advanced features and tweaks you can enable or disable via ADB and the ADB shell. Here are just a few of the things we covered, but there are plenty of other things you can find all around the internet. Some of our favorites include SCRCPY, APK installation, stock-ifying Amazon Fire tablets, and more.