ADB Command
ADB Command
ADB Command
com
using the adb tool you can shell into the running emulator, or any
real device connected through USB.
$ adb devices
List of devices attached
emulator-5554 device
0000021459584822 device
emulator-5556 offline
$id
$su
$adb logcat
to dump the data contained in the main logger buffer
$ adb kill-server
to start the adb server manually,
$adb start-server
$adb version
$cat /proc/cpuinfo
$adb reboot
$adb reboot recovery
$ls
$cd data
$ls
/anr ANR traces.
/app Default install location for apps.
/backup For use by the BackupManager system service.
/dalvik-cache Holds the cached JIT’ed b versions of all dex files.
/data Contains one subdirectory for each app installed on the system. In
effect, this is where each app’s “home” directory is located.
/system Systemwide data, such as the accounts database and the list of
installed packages.
$ls -l /data/user/
$ls -l /data/user/0/
$service -h
$am
$am start -a android.intent.action.VIEW -d http://source.android.com
$logcat
$
$am monitor
$pm
$pm list packages
$pm install FastBirds.apk
$pm uninstall com.acme.fastbirds