FORUMS
Remove All Ads from XDA
Honor 7x
Win an Honor 7X!

{Tutorial} (Basics of ADB) For Beginners Part-1

4,471 posts
Thanks Meter: 1,950
 
By doctor_droid, Senior Member on 6th May 2013, 01:56 PM
Post Reply Email Thread
11th October 2013, 08:19 AM |#21  
Junior Member
Flag Detroit, Michigan
Thanks Meter: 0
 
More
The link is broken!
The software link is broken!
 
 
11th October 2013, 08:34 AM |#22  
Guich's Avatar
Senior Member
Flag Somewhere
Thanks Meter: 3,365
 
Donate to Me
More
Quote:
Originally Posted by LeeWilkerson77

The software link is broken!

In this folder there is adb and fastboot, and you can use all the adb command
Download
The Following User Says Thank You to Guich For This Useful Post: [ View ] Gift Guich Ad-Free
11th October 2013, 02:40 PM |#23  
majdinj's Avatar
Senior Member
Flag AlAhsa
Thanks Meter: 3,397
 
More
Quote:
Originally Posted by doctor_droid


for this , u must be rooted

command

adb root

...
...

very similar to pull, bt this copies file from ur pc to ur android .

command u use is

adb push


this command is very powerful and u can shift an entire video or movie folder via a single command anywhere on ur android

...
...

more commands added
thanks to @Guich


Code:
adb remount
This command remount the /system partition in read/write

Nice mate but you could add small notification here that these commands will only work properly if you have patched adbd binary in your android device (ro.secure=0 in default.prop or insecure adbd installed) and not only su binary (in adb push, you will need patched adbd only if you want to push to protected partition like system partition even if it is mounted as read and write..!!).


Code:
adb root
Code:
adb remount
These 2 command are fair on most devices but some are funky..!!! so you may need another command to remount partition as read and write.
example:
Code:
adb shell "su" "" "mount -o remount,rw /system"
This will efficiently mount system partition as read and write (you can put any partition name instead of /system for e.g, /preload)

Again adb is very powerful tool especially for debugging, direct pushing and installing of apps. Many tools here in xda are born with help of adb engine, so make sure to use and consume it to the last drop
Yours;

The Following 3 Users Say Thank You to majdinj For This Useful Post: [ View ] Gift majdinj Ad-Free
11th October 2013, 06:09 PM |#24  
Srinath_Newbie's Avatar
Member
Flag Bangalore
Thanks Meter: 5
 
More
Quote:
Originally Posted by doctor_droid

The purpose of this thread is to make u familiar with the ADB (Android Debug Bridge)
It is a tool that lets u communicate with ur android device that is connected to ur pc.

In the first tutorial we shall learn some basics of adb and then advance to use pro commands in further tutorials.

Requirements

1. Adb link - http://dl.google.com/android/adt/adt...6-20130219.zip

2. Windows based pc ( yes we will use windows and not linux as i dun want to communicate anything that i havent tried by myself )


1. Download and extract the zip ADB in any drive , lets say C:

2. Go to C:/adb/sdk/platform-tools and u will something like
Attachment 1937059




3. Now press shift key + right click on mouse/keypad
http://forum.xda-developers.com/atta...1&d=1367732560
select open command window here

then type adb start-server

in order to ensure ur device is connected and recognized by adb , type adb devices , u will get something like this
Attachment 1940190

Now once your adb is setup up, lets play.....

GETTING LOGCAT THROUGH ADB


Easiest of all
just type
adb logcat

u will see entire log ur phone,
use ctrl+c to skip it

To get logcat in a file
type
adb logcat > logcat.txt

u will see a file logcat which will save ur phone's realtime process log.

TO GET A BUGREPORT


type adb bugreport
bt bt bt.. this will show info that wont b readable ..
so type

adb bugreport>result.txt

http://forum.xda-developers.com/atta...3&d=1367737608


USING ADB WITH SUPERUSER PERMISSIONS

for this , u must be rooted

command

adb root
if it is success it will show something like

http://forum.xda-developers.com/atta...1&d=1367740210



INSTALLING AN APP VIA ADB

to install any app, make sure there is no space in the name of the apk...
and u should know its location,

command that u use is adb install

i have installed a game papertoss via this command, if u get success u will get something like this

Attachment 1936893
Attachment 1940189

COPYING A FILE VIA ADB


this is pretty easy

command u use is

adb pull
i have given a example by pulling the framework-res.apk from system/framework folder
Attachment 1940191

the file that u pull, u will see it in the platform -tools folder


PUSHING A FILE INTO YOUR PHONE


very similar to pull, bt this copies file from ur pc to ur android .

command u use is

adb push

For eg,
i have pushed the papertoss.apk file from C:\sanket\apps to sdcard/nimbuzz folder through the command

adb push C:\SANKET\apps\papertoss.apk /sdcard/nimbuzz

if u get success u will see something like this
http://forum.xda-developers.com/atta...1&d=1367739756

this command is very powerful and u can shift an entire video or movie folder via a single command anywhere on ur android


more commands added
thanks to @Guich


Code:
adb remount
This command remount the /system partition in read/write

Code:
adb usb
Restarts the adbd daemon listening on USB

Code:
adb shell
Run remote shell interactively

The command set shall b updated within few days.
Feel free to drop ur comments, corrections, commands.

All commands have been verified by me..
once i learn more, i will share more.
criticism is welcomed if its healthy

Thread material is not copied and will never be.
Thread will be updated with newer and complex commands soon with pics.

For developers, this is just a piece of cake which they can do with their eyes closed
i have made this specially for beginners ( like me )


Hi

The link shows - Error 404!
Link removed?
Thanks in advance for your reply
11th October 2013, 08:07 PM |#25  
doctor_droid's Avatar
OP Senior Member
Flag Indore
Thanks Meter: 1,950
 
More
Links fixed
12th October 2013, 12:11 AM |#26  
armydog13's Avatar
Senior Member
Flag Mangum
Thanks Meter: 104
 
Donate to Me
More
Please don't quote the entire OP

Sent from my HTC6435LVW using Tapatalk 4
The Following 2 Users Say Thank You to armydog13 For This Useful Post: [ View ] Gift armydog13 Ad-Free
12th October 2013, 07:33 AM |#27  
Junior Member
Flag Detroit, Michigan
Thanks Meter: 0
 
More
Thumbs up Thank you
Thank you very much for that link.

~/Lee
12th October 2013, 07:41 PM |#28  
Ricky Divjakovski's Avatar
Inactive Recognized Developer / Recognized Contributor
Flag Sydney
Thanks Meter: 6,427
 
Donate to Me
More
Quote:
Originally Posted by doctor_droid

Links fixed

not bad, although i think you could explain some commands abit better check out my adb and fastboot guide in my sig for some help!
14th October 2013, 10:10 PM |#29  
clockworkstop's Avatar
Senior Member
Thanks Meter: 332
 
More
May I be a grammar nazi?

Sent from my Nexus 4 using XDA Premium 4 mobile app
14th October 2013, 10:54 PM |#30  
armydog13's Avatar
Senior Member
Flag Mangum
Thanks Meter: 104
 
Donate to Me
More
Maybe grammar police would be a better phrase

Sent from my HTC6435LVW using Tapatalk
15th October 2013, 07:46 AM |#31  
clockworkstop's Avatar
Senior Member
Thanks Meter: 332
 
More
Maybe, maybe not.
Anyway, I would cut the ur and b and that stuff. People like grammar.

Sent from my Nexus 4 using XDA Premium 4 mobile app
Post Reply Subscribe to Thread

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

Advanced Search
Display Modes