Sign [Guide] Use your tablet/phone as PC for Fastboot and ADB

In this guide i will show you how to use tablet/phone as a computer for adb and fastboot purposes.

With android devices most of people here in xda can't stay away from using Fastboot or adb. I'm changing kernel of my xperia neo frequently. Unlike samsung, in sony, kernels cannot be flashed without fastboot. So I'm using adb and fastboot frequently,
But what happens if u don't own a PC, or of ur PC is not working.
This guide is helpful for people who doesn't have a PC, who are too lazy to turn on their pc , who are outside from the house, etc.

Okay.. Enough talk. Let's get into work.

Requirements :-
* Rooted android Tablet / Phone.
* OTG cable [ Make sure that your device supports OTG. (If not search your device's thread for OTG )]
* A root browser ( eg:- Root Explorer, ES file explorer)
* Terminal emulator

( um not responsible for your bricked device.)

You may think that we can use adb and fastboot binary files for linux in our android devices. No. We can't use them. Because those files are not compiled for ARM. So we can't use them.

Thanks to google we have adb compiled for ARM. This file is already included in some new devices. ( search "adb" in /system/bin or /system/xbin folder. If you have this you don't need to download this again)
Thanks to josteink we have Fastboot binary compiled for ARM. This isn't coming with your device natively.

STEP 1
1. Download adb file here
2. Download fastboot file here

STEP 2
* Copy those two files to /system/bin to folder.

STEP 3
* set permissions manually if you know how to do it.

If not open terminal emulator. Then enter following,
Code:
su
mount -o remount,rw /system
chmod 755 /system/bin/fastboot
chmod 755 /system/bin/adb
STEP 4
*Reboot your device.

Now you're done.

STEP 5
*Open terminal emulator and type
Code:
fastboot
If you see some text like this, Fastboot is working.
Code:
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 size. default: 2048
*type
Code:
adb version
If you see some text like this, adb is working.
Code:
u0_a60@grouper:/ $ adb version
Android Debug Bridge version 1.0.31
Tada... You have adb and fastboot in your tablet/phone.

STEP 6
*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)

*Report here if adb and fastboot working in your device

Last important STEP
*press thanks button.


Current Devices : SE Xperia Neo V , Google Nexus 7

Previous Devices : Huawei U8160, Samsung Galaxy Y, Samsung Galaxy Ace, Samsung Galaxy S

My Works
------------------
[Guide] Use your tablet/phone as PC for Fastboot and ADB

Samsung Galaxy Y :
How to Deodex stock Rom
Kernel Backup - to backup kernel
ICS Settings app for stock and custom roms
Touchwiz Launcher with landscape orientation