Listen to this Post

Introduction
Android Debug Bridge (ADB) and Fastboot are essential tools for Android developers and power users, enabling device debugging, bootloader unlocking, and system modifications. Traditionally, these tools require a rooted device or a computer, but Termux—a Linux terminal emulator for Android—now allows users to execute ADB and Fastboot commands directly on a non-rooted device. This guide explores how to leverage Termux for advanced Android operations without root access.
Learning Objectives
- Set up ADB and Fastboot in Termux on a non-rooted Android device.
- Execute basic ADB commands to manage apps, debug, or modify system settings.
- Use Fastboot to unlock bootloaders, flash ROMs, or root another Android device.
1. Installing Termux and Dependencies
Command:
pkg update && pkg install android-tools -y
Step-by-Step Guide:
- Install Termux from the Google Play Store or F-Droid.
- Open Termux and run the above command to update packages and install
android-tools.
3. Verify installation with:
adb --version fastboot --version
2. Enabling USB Debugging on Your Android Device
Command:
adb devices
Step-by-Step Guide:
- On your Android device, go to Settings > About Phone and tap Build Number 7 times to enable Developer Options.
- Navigate to Developer Options and enable USB Debugging.
- Connect the device via USB and run `adb devices` in Termux.
- Accept the USB debugging prompt on your device.
3. Unlocking the Bootloader Using Fastboot
Command:
fastboot oem unlock
Step-by-Step Guide:
1. Reboot your device into Fastboot mode:
adb reboot bootloader
2. Execute the unlock command (warning: this wipes data).
3. Confirm on your device’s screen.
4. Removing Bloatware with ADB
Command:
adb shell pm uninstall --user 0 com.bloatware.package
Step-by-Step Guide:
1. List installed packages:
adb shell pm list packages
2. Identify bloatware and uninstall it (replace `com.bloatware.package` with the actual package name).
5. Flashing a Custom ROM via Fastboot
Command:
fastboot flash system rom.zip
Step-by-Step Guide:
- Download a compatible ROM and place it in Termux’s home directory.
- Boot into Fastboot mode and flash the ROM:
fastboot flash system rom.zip fastboot reboot
6. Rooting Another Android Device
Command:
fastboot flash boot magisk_patched.img
Step-by-Step Guide:
1. Patch your device’s boot image using Magisk.
2. Flash the patched image via Fastboot.
- Reboot and install the Magisk app to verify root access.
What Undercode Say
- Key Takeaway 1: Termux democratizes advanced Android modifications by eliminating the need for a computer or root access.
- Key Takeaway 2: Misuse of ADB/Fastboot can brick devices—always backup data and verify commands.
This method bridges the gap for users in resource-constrained environments, enabling device customization and debugging without traditional barriers. As Android security evolves, expect Termux-based workflows to become mainstream for developers and hobbyists alike.
IT/Security Reporter URL:
Reported By: Lukasstefanko Termux – Hackers Feeds
Extra Hub: Undercode MoN
Basic Verification: Pass ✅


