Some useful adb command

The followings are some useful adb commands :

adb usb                        – restarts the adbd daemon listening on USB

adb start-server          – ensure that there is a server run
adb kill-server             – kill the server if it is running

adb version                  – show version num

adb install [-l] [-r] [-d] [-s] [–algo <algorithm name> –key <hex-encoded key> –iv <hex-encoded iv>] <file>    – push this package file to the device and install it

for example: adb install -r D:\appDemos.apk

adb uninstall [-k] <package> – remove this app package from the device(‘-k’ means keep the data and cache directories)

adb reboot-bootloader        – reboots the device into the bootloader

adb root                                – restarts the adbd daemon with root permissions
adb tcpip <port>                  – restarts the adbd daemon listening on TCP on the specified port

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s