Saturday, July 28, 2012

0 Useful ADB & Shell Commands

Useful ADB(Android Debug Bridge) & Shell Commands list :

adb shell => opens shell
su => change to super user
adb install [APK PATH] => install apk
adb uninstall [PACKAGE NAME] => uninstall apk
pm disable [PACKAGE NAME] => disable package
pm enable [PACKAGE NAME] => enable package
pm packages list -d => list disabled packages
pm packages list -s => list only system packages
am broadcast -a [INTENT NAME] --es [EXTRA KEY] [EXTRA VALUE] => broadcast intent with extras
cd [PATH] => change directory
cd - => go back
cd -- => go to home directory
ls => list files
du -a -m -h => list files &directories show sizes
adb reboot => reboot
adb reboot recovery => reboot to recovery mode
adb reboot download => reboot to download mode
cp [SOURCE] [DESTINATION] => copy file
mkdir [DIRECTORY PATH] => create directory
rmdir [DIRECTORY PATH] => delete directory
rm [PATH] => delete file
getprop => list device properties
setprop [KEY] [VALUE] => set device property
killall [APPLICATION NAME] => kill application by name
df –h => Display disk space usage

P.S. : I'm sure that I will update this post with other ADB commands soon.
You can find the adb tool in <sdk>/platform-tools/.

0 comments:

Post a Comment

 

Samsung Galaxy S 3 i9300 Copyright © 2011 - |- Template created by O Pregador - |- Powered by Blogger Templates