- A rooted Android phone or tablet.
- OTG cable, but first make sure your device supports OTG.
- A root browser like Root Explorer, ES file explorer. Both are free on Play Store.
- Terminal emulator.
You can’t use ADB and Fastboot binary files for Linux on an Android device because those files are not compiled for ARM. However, thanks to Google there is ADB compiled for ARM. This file is already included in most of the newest Android devices.
Open your favorite file explorer and go to system/bin or system/xbin folder and search for ADB. If you can find this file there, there is no need to download it again.
Thanks to a developer named josteink we have also Fastboot binary compiled for ARM. This is not coming with your device natively so you will need to download it.
How to install ADB and Fastboot on Android phone or tablet
- Copy the two downloaded files to /system/bin folder
- Set permissions manually if you know how to do it. If not open terminal emulator and enter the following code:
su mount -o remount,rw /system chmod 755 /system/bin/fastboot chmod 755 /system/bin/adb
- Reboot your device.
- Open terminal emulator and type:
If you see some text like this: ‘Fastboot is working’
u0_a60@grouper:/ $ fastboot usage: fastboot [ <option> ] <command> commands: update <filename> reflash device from update.zip flashall flash boot + recovery + system flash <partition> [ <filename> ] write a file to a flash partition erase <partition> erase a flash partition getvar <variable> display a bootloader variable boot <kernel> [ <ramdisk> ] download and boot kernel flash:raw boot <kernel> [ <ramdisk> ] create bootimage and flash it devices list all connected devices continue continue with autoboot reboot reboot device normally reboot-bootloader reboot device into bootloader help show this help message options: -w erase userdata and cache -s <serial number> specify device serial number -p <product> specify product name -c <cmdline> override kernel commandline -i <vendor id> specify a custom USB vendor id -b <base_addr> specify a custom kernel base address -n <page size> specify the nand page
If you see some text like this: ‘ADB is working’
u0_a60@grouper:/ $ adb version Android Debug Bridge version 1.0.31
Connect another android device to your device by OTG cable. And try out ADB and fastboot. (use “su” command before using fastboot and ADB in terminal. Otherwise fastboot/adb will not function well)