FORUMS
Remove All Ads from XDA

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

428 posts
Thanks Meter: 629
 
By chamatht, Senior Member on 27th December 2013, 10:01 AM
Post Reply Email Thread
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:
[email protected]:/ $ 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:
[email protected]:/ $ 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.
The Following 158 Users Say Thank You to chamatht For This Useful Post: [ View ] Gift chamatht Ad-Free
8th February 2014, 08:17 AM |#2  
ricosf415's Avatar
Junior Member
Thanks Meter: 3
 
More
Thumbs up adb/fastboot
Succesfully installed adb/fastboot in galaxy tab3
The Following User Says Thank You to ricosf415 For This Useful Post: [ View ] Gift ricosf415 Ad-Free
18th February 2014, 01:28 AM |#3  
Junior Member
Thanks Meter: 2
 
More
Works on Nexus5 with Samsung otg cable
The Following User Says Thank You to abshire57 For This Useful Post: [ View ] Gift abshire57 Ad-Free
26th February 2014, 05:16 PM |#4  
MistaJae's Avatar
Senior Member
Thanks Meter: 63
 
More
I tried to use fastboot on my 2012 Nexus 7 via my Nexus 5. When I type 'adb devices' my Nexus7 shows up, but it says 'unauthorized'.

Any ideas?
BTW, both devices are running 4.4.2
The Following User Says Thank You to MistaJae For This Useful Post: [ View ] Gift MistaJae Ad-Free
21st March 2014, 11:23 PM |#5  
p70shooter's Avatar
Senior Member
Thanks Meter: 1,860
 
More
Thanks for this guide. Got fastboot working no probs but want to flash a Kernel on my One X but don't know where to put the boot.img? On my pc I put it in the fastboot folder but where does it go on my nexus? I'm sure I'm being thick but I'm confused

---------- Post added at 11:23 PM ---------- Previous post was at 11:19 PM ----------

Quote:
Originally Posted by MistaJae

I tried to use fastboot on my 2012 Nexus 7 via my Nexus 5. When I type 'adb devices' my Nexus7 shows up, but it says 'unauthorized'.

Any ideas?
BTW, both devices are running 4.4.2

Probably a really stupid question but did you try it in recovery? Works for me.
The Following User Says Thank You to p70shooter For This Useful Post: [ View ] Gift p70shooter Ad-Free
23rd June 2014, 03:41 PM |#6  
Anoopnk's Avatar
Senior Member
Flag Bangalore
Thanks Meter: 107
 
More
Cannot find any device listing (adb) on nexus 5 !

Sent from my Nexus 5 using Tapatalk
The Following User Says Thank You to Anoopnk For This Useful Post: [ View ] Gift Anoopnk Ad-Free
11th July 2014, 01:08 PM |#7  
sheikhrr's Avatar
Senior Member
Flag rajnandgaon
Thanks Meter: 25
 
More
Hello sir
will you please compile "adb 1.0.31" binary for ARMv7 processor rev 2 (v7l)

I followed your guide

And got an error
Segmentation fault

Any help is going to be appreciated.
Fb- https://m.facebook.com/sheikh.rameez.940
The Following 2 Users Say Thank You to sheikhrr For This Useful Post: [ View ] Gift sheikhrr Ad-Free
28th September 2014, 08:42 AM |#8  
Agent_fabulous's Avatar
Recognized Developer
Flag Bangalore
Thanks Meter: 4,755
 
Donate to Me
More
Smile Use root.
Quote:
Originally Posted by Anoopnk

Cannot find any device listing (adb) on nexus 5 !

Sent from my Nexus 5 using Tapatalk

Code:
su
adb kill-server
adb devices
You need to run the server with root, else your device won't be recognized. Just shut the server, gain root permissions and start it again.
28th September 2014, 08:43 AM |#9  
Anoopnk's Avatar
Senior Member
Flag Bangalore
Thanks Meter: 107
 
More
Quote:
Originally Posted by K****ij0211

Code:
su
adb kill-server
adb devices
You need to run the server with root, else your device won't be recognized. Just shut the server, gain root permissions and start it again.

After I changed the ROM, adb and fastboot works perfectly !
8th November 2014, 05:25 PM |#10  
Senior Member
Flag Massachusetts
Thanks Meter: 100
 
More
Quote:
Originally Posted by Anoopnk

After I changed the ROM, adb and fastboot works perfectly !

Can anyone confirm if this works on the final Lollipop developer preview? Fastboot seems to work using my Nexus 7 as host with a Nexus 5 but ADB does not work at all.

From Nexus 7, I run:

Code:
# su
# adb devices
* daemon not running. starting it now on port 5038 *
* daemon started successfully *
** daemon still not running
error: cannot connect to daemon
The Following User Says Thank You to thefsfempire For This Useful Post: [ View ] Gift thefsfempire Ad-Free
8th November 2014, 05:35 PM |#11  
Anoopnk's Avatar
Senior Member
Flag Bangalore
Thanks Meter: 107
 
More
Are the permissions set right for binary files? Try it on nexus 5 as host !
Post Reply Subscribe to Thread

Tags
adb, fastboot, use adb in tablet, use fastboot in tablet, use phone to fastboot

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes