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.
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
3. Now press shift key + right click on mouse/keypad
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
Now once your adb is setup up, lets play.....
GETTING LOGCAT THROUGH ADB
Easiest of all
u will see entire log ur phone,
use ctrl+c to skip it
To get logcat in a file
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 ..
USING ADB WITH SUPERUSER PERMISSIONS
for this , u must be rooted
if it is success it will show something like
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
COPYING A FILE VIA ADB
this is pretty easy
command u use is
i have given a example by pulling the framework-res.apk from system/framework folder
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
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
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
This command remount the /system partition in read/write
Restarts the adbd daemon listening on USB
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