Documentos de Académico
Documentos de Profesional
Documentos de Cultura
1 dari 12
adb
http://developer.android.com/tools/help/adb.html
<sdk>/platform-tools/
23/05/2015 10:56
2 dari 12
http://developer.android.com/tools/help/adb.html
-d -e
-s
-d
-e
-s <serialNumber>
devices
help
version
logcat [option] [filterspecs]
bugreport
dumpsys
dumpstate
logcat
forward jdwp:<pid>
jdwp
adb forward tcp:8000 jdwp:472
jdb -attach localhost:8000
install <path-to-apk>
23/05/2015 10:56
3 dari 12
http://developer.android.com/tools/help/adb.html
tcp:<portnum>
local:<UNIX domain socket name>
dev:<character device name>
jdwp:<pid>
<tty>
dev:/dev
/omap_csmi_ttyl
[parm]...
ppp <tty> [parm]...
defaultroute
local notty
get-serialno
get-state
wait-for-device
install
device
install
start-server
23/05/2015 10:56
4 dari 12
http://developer.android.com/tools/help/adb.html
shell
shell [shellCommand]
devices
adb devices
<type>-<consolePort>
emulator-5554
offline
device
no device
[serialNumber] [state]
devices
adb devices
List of devices attached
emulator-5554 device
emulator-5556 device
emulator-5558 device
-s
-s
devices
23/05/2015 10:56
5 dari 12
http://developer.android.com/tools/help/adb.html
install
forward
pull
push
install
pull
push
<local>
<remote>
/system/bin/...
am
pm
23/05/2015 10:56
6 dari 12
http://developer.android.com/tools/help/adb.html
exit
am
am <command>
Activity
<INTENT>
-D
-W
--start-profiler <FILE>
<FILE>
-P <FILE>
--start-profiler
-R
<COUNT>
-S
--opengl-trace
--user <USER_ID> | current
Service
<INTENT>
force-stop <PACKAGE>
<PACKAGE>
<PACKAGE>
23/05/2015 10:56
7 dari 12
http://developer.android.com/tools/help/adb.html
<COMPONENT>
Instrumentation
<TEST_PACKAGE>/<RUNNER_CLASS>
-r
<REPORT_KEY_STREAMRESULT>
instrument [options] <COMPONENT>
-e <NAME> <VALUE>
<NAME> <VALUE>
-e <testrunner_flag> <value>
[,<value>...]
-p <FILE>
-w
<FILE>
--no-window-animation
--user <USER_ID> | current
profile start <PROCESS> <FILE>
<PROCESS>
<PROCESS>
<PROCESS>
<FILE>
<FILE>
set-debug-app
monitor [options]
--gdb
<PACKAGE>
display-size [reset|<WxH>]
am display-size 1280x800
display-density <dpi>
am display-density 480
to-uri <INTENT>
23/05/2015 10:56
8 dari 12
http://developer.android.com/tools/help/adb.html
to-intent-uri <INTENT>
pm
pm <command>
<FILTER>
-f
-d
-e
-s
-3
-i
-u
--user <USER_ID>
list permission-groups
<GROUP>
-g
-f
-s
-d
-u
list instrumentation
-f
<TARGET_PACKAGE>
list features
list libraries
list users
path <PACKAGE>
<PACKAGE>
<PATH>
-r
-t
-i <INSTALLER_PACKAGE_NAME>
-s
23/05/2015 10:56
9 dari 12
http://developer.android.com/tools/help/adb.html
-d
0
1
2
set-install-location <LOCATION>
0 [auto]
1 [internal]
2 [external]
get-install-location
set-permission-enforced <PERMISSION>
[true|false]
trim-caches <DESIRED_FREE_SPACE>
<USER_NAME>
create-user <USER_NAME>
<USER_IDENTIFIER>
remove-user <USER_ID>
get-max-users
sqlite3
.dump
.schema
sqlite3
sqlite3
sqlite3
/data/data/<package_name>/databases/
23/05/2015 10:56
10 dari 12
sqlite3
CTRL+D
exit
http://developer.android.com/tools/help/adb.html
sqlite3
screenrecord
screenrecord
--time-limit
pull
$ adb shell
shell@ $ screenrecord --verbose /sdcard/demo.mp4
(press Ctrl-C to stop)
shell@ $ exit
$ adb pull /sdcard/demo.mp4
screenrecord
screenrecord
screenrecord
--help
1280x720
--size <WIDTHxHEIGHT>
--bit-rate <RATE>
screenrecord --bit-rate 6000000 /sdcard/demo.mp4
--time-limit <TIME>
--rotate
--verbose
23/05/2015 10:56
11 dari 12
http://developer.android.com/tools/help/adb.html
dumpsys
dumpstate
logcat [option]... [filterspec]...
dmesg
start
stop
logcat
logcat
logcat
adb logcat
logcat
23/05/2015 10:56
12 dari 12
http://developer.android.com/tools/help/adb.html
$ adb usb
restarting in USB mode
$ adb devices
List of devices attached
######## device
#.#.#.#
$ adb devices
List of devices attached
#.#.#.#:5555 device
adb kill-server
23/05/2015 10:56