[Android Software/Hacking General [Developers Only]] DevUt:
A thanks here would be highly appreciated :good::good::good:

Any developing you take with Android you need ADB its the acronym fo Android Debugging Bridge

Today I am going to show you how to use Adb , how to build it , how to play with its source

Beginner ​

Lets introduce to you adb

Think adb as your messenger ,

You type a message / command

Then that message is taken by adb and delivered to the phone

the phone client would execute or perform any necessary tasks

Installing Adb

HOW TO INSTALL ADB [Linux]

On Ubunutu

sudo apt-get install android-tools-adb android-tools-fastboot

{I Need more distro's command if you know please contact me}

HOW TO INSTALL ADB ON WINDOWS

http://xdaforums.com/showthread.php?p=48915118

Lets Now play with basic adb commands

================================================================================================

adb devices : This allows you to confirm that your pc and device are communicating

syntax

adb devices

adb pull : This allows you to pull specific files from the device

syntax

adb pull /sdcard/you_know_what.jpg

adb push : This allows you to send specific files to the device

syntax

adb push file.txt /sdcard/0/

================================================================================================

adb reboot : You can guess the command's function by looking at it and you were probably right it just "reboot" your phone

syntax

adb reboot

adb reboot-bootloader : This is same as its parent (adb reboot) but instead of rebooting to Android OS it boots to the bootloader

adb reboot-recovery : This is same as its parent (adb reboot) but instead of rebooting to Android OS it boots to the recovery

================================================================================================

adb shell : This executes a command on the device

Info : You can just pass a single command to the device to execute or you can also open an interactive shell

syntax ( single command ) :

adb shell [I]command[/I]

synatx ( interactive shell ) :

adb shell [ENTER]
command"s"

adb sideload : ADB sideload is a different ADB mode that you can use to push and install a zip using one command from your computer

Info : This was introduced in Jelly Bean Aosp

syntax :

adb sideload /sdcard/0/rom.zip

================================================================================================

adb install : This allows you to install any apps on the device using adb

syntax :

adb install TheApp.apk

info : running adb install with -r flag makes it install the app on the sdcard of the device (if the rom supports it)

adb uninstall : This allows you to uninstall an app on the device

syntax :

adb uninstall com.company.appname

info : using -k option uninstalls the application while retaining the data/cache.

At the moment, there is no way to remove the remaining data.

You will have to reinstall the application with the same signature, and fully uninstall it.

adb logcat : This allows you to access the logs / events of the system/apps

syntax :

adb logcat

{I would do a more in-depth synopsis of these command in my next post}

================================================================================================