Follow these steps to safely download and install the ADB & Fastboot for Android NDK module on your device. Prerequisites
(minimal for Magisk):
After rebooting, install any terminal emulator (like Termux) and type:
git clone --depth 1 -b android-11.0.0_r46 https://android.googlesource.com/platform/system/core cd core/adb
$NDK/build/tools/make_standalone_toolchain.py --arch arm64 --api 29 --install-dir toolchain export PATH=$PWD/toolchain/bin:$PATH export CC=aarch64-linux-android29-clang download adb fastboot for android ndk magisk module 2021
These ZIPs were typically under 2 MB, as the binaries were stripped and NDK-optimized.
Connect both phones together using a and a standard data cable. (The phone hosting the Magisk module must be connected to the OTG side). On the host phone, open Termux and type su . Check if the target phone is recognized: adb devices Use code with caution. If the target phone is in bootloader mode, run: fastboot devices Use code with caution. Troubleshooting Common Issues
: Open any Terminal Emulator app and type adb --version or fastboot --version . If it returns a version number, you're good to go!. Pro Tip: Using it with Android NDK
Follow these steps to safely download and flash the module onto your device. 1. Download the Module Zip File Follow these steps to safely download and install
To safely:
While this tool is highly efficient, using ADB/Fastboot carries risks.
Users would download the module ZIP, which contained:
Why would someone want to run ADB and Fastboot commands from a phone? The scenarios are surprisingly diverse: (The phone hosting the Magisk module must be
Restart your device to initialize the new binaries in your system path.
This article is optimized for users looking for a 2021-specific solution, explaining not just where to download, but why the NDK Magisk Module method was relevant at that time.
Perform advanced actions like adb reboot recovery or manage app permissions directly from a terminal emulator on your device. Download and Installation (2021 Versions)