السبت، 11 أبريل 2015

10 ADB Commands That You Must Know


ndroid Debug Bridge (adb) is a versatile command line tool that lets you communicate with an emulator instance or connected Android-powered device. It is a client-server program that includes three components:

  • A client, which runs on your development machine. You can invoke a client from a shell by issuing an adb command. Other Android tools such as the ADT plugin and DDMS also create adb clients.
  • A server, which runs as a background process on your development machine. The server manages communication between the client and the adb daemon running on an emulator or device.
  • A daemon, which runs as a background process on each emulator or device instance.


Here are 10 ADB commands that you must know:

1. View connected device(s) : Use this to view all connected devices and list their IDs.

adb devices

If multiple devices are attached, use

adb -s DEVICE_ID 

to target a specific device.

2. Install an application :

Use the install command to install an apk, the optional -r argument reinstalls and keeps any data if the application is already installed on the device.

adb install -r APK_FILE

#Example# 
adb install -r ~/application.apk


3. Uninstall an application :

adb uninstall PACKAGE_NAME

#Example#


adb uninstall com.idigitalorbis.example


4. Entering the device’s shell :

adb shell

5. Take a screenshot :

adb shell screencap -p | perl -pe 's/\x0D\x0A/\x0A/g' > screen.png

6. Power button : This command sends the power button event to turn the device on or off.

adb shell input keyevent 26

7. Unlock screen :

This command sends the event that unlocks the lockscreen on the device. It can be combine with the power button command above to turn on and unlock the device.

adb shell input keyevent 82

8. Print all installed packages :

adb shell pm list packages -f

9. Logging :  To show the log stream on your command line.

adb logcat

10. Clearing the logcat buffer : Use this to clear the buffer to remove any old log data.

adb logcat -c
Tags by google :
adb commands for android
adb commands fastboot
adb commands mac
adb commands list
adb commands for windows
adb commands mac terminal
adb commands for diag mode
adb commands pdf
adb commands download
adb commands to install apk
adb commands android
adb commands android recovery
adb commands android studio
adb commands as root
adb commands and examples
adb command airplane mode
adb command apk
adb command android phone
adb command android version
adb command android sdk download
adb commands backup
adb commands boot.img
adb commands bluetooth
basic adb commands
adb shell commands in batch file
basic adb commands android
adb commands for beginners apk
adb boot commands
adb busybox commands
adb shell basic commands
adb commands cheat sheet
adb commands copy
adb commands copy file
run adb commands cmd
adb cmd commands
adb shell commands copy file
common adb commands
cool adb commands
cwm recovery adb commands
cwm adb commands
adb commands device not found
adb command download mode
adb devices command
adb command wipe data
adb commands examples
adb command enable usb debugging
adb command echo
adb.exe commands
adb console eclipse
adb push command example
adb pull command example
execute adb commands
adb commands for mac
adb commands for flashing rom
adb commands factory reset
adb commands fire tv
adb commands from application
adb commands for dummies
adb command guide
adb command getprop
adb grep command
adb command to go to home screen
adb push command galaxy y
adb commands htc one
adb commands hang
adb commands how to
adb command hard reset
adb commands in android
adb commands install apk
adb commands in windows
adb commands in eclipse
adb commands in mac
adb commands in ubuntu
adb commands in java
adb commands in recovery mode
adb commands in terminal emulator
adb commands in fastboot
adb commands java
executing adb commands in java
java send adb commands
adb shell commands java
adb commands kindle fire
adb command kill process
adb keyevent commands
adb kill command
adb commands list pdf
adb commands linux
adb commands logcat
adb command line windows
adb command launcher
adb command line tool download
adb command line install apk
adb command launch application
adb command line eclipse
adb command mount
adb command monkey
adb mac command not found
adb command recovery mode
adb shell multiple commands
adb commands not working
adb commands not working in cmd
adb commands not found
adb commands not working mac
adb commands nexus 5
adb command not found ubuntu
adb command not found windows
adb command not found ubuntu 12.04
adb command not recognized
adb command not found cygwin
adb commands on mac
adb commands on windows
adb commands on android
how to run adb commands on android phone
adb shell list of commands
adb commands push
adb commands permission denied
adb commands push file
adb command prompt
adb command pull
adb push command in android
adb shell commands pdf
adb commands root
adb commands recovery
adb commands reboot
adb commands recovery mode
adb commands root access
adb commands reboot into recovery
adb command reference
adb command reset
adb command rm
adb remount command
adb commands sideload
adb commands shell
adb command shutdown
adb command screenshot
adb shell commands in android
adb sqlite commands
adb sync command
adb shell command copy
adb sudo command not found
nexus s adb commands
adb commands to flash recovery
adb commands to install rom
adb commands terminal
adb commands to flash rom
adb commands tutorial
adb commands to root android
adb commands to unlock screen
adb commands taking too long
adb commands terminal emulator
adb commands ubuntu
adb commands uninstall
adb command unlock screen
adb command uninstall apk
adb command unlock
adb command usb
adb useful commands
adb update command
adb ubuntu command not found
adb command play video
adb commands windows
adb commands wiki
adb commands windows 8
adb commands wipe data
adb commands without usb debugging
adb commands windows 7
adb command wipe
adb windows command line
adb commands xda
htc one x adb commands
adb command install zip
adb commands for factory reset
adb commands for rooting
adb commands for ubuntu
adb commands for linux
adb commands for testing
nexus 4 adb commands
nexus 5 adb commands
adb shell commands windows 7
nexus 7 adb commands
windows 7 adb commands
top 10 adb commands

ليست هناك تعليقات:

إرسال تعليق

Featured Post

Download Overkill 3 game for Android phones