ADB Shell Command Reference
So we have seen a lot of ADB shell commands, but running below command will give you a full list:
- adb shell ls /system/bin
Actually they are files that located in the /system/bin/ directory of emulator/device.
- getprop/setprop/watchprops, running getprop will display settings of device/emulator like below:
[ro.secure]: [0] ro means read-only
[ro.allow.mock.location]: [1]
[ro.debuggable]: [1]
[persist.service.adb.enable]: [1]
[ro.kernel.qemu.gles]: [0]
[ro.kernel.qemu]: [1]
[ro.kernel.console]: [ttyS0]
[ro.kernel.android.qemud]: [ttyS1]
[ro.kernel.android.checkjni]: [1]
[ro.kernel.ndns]: [2]
[ro.factorytest]: [0]
...
[gsm.defaultpdpcontext.active]: [true]
[net.dns1]: [10.0.2.3]
[net.dnschange]: [1]
[EXTERNAL_STORAGE_STATE]: [mounted]
[adb.connected]: []
More refers below, and check this out
/default.prop
/system/build.prop
/system/default.prop
/data/local.prop
/data/property/presist.*
- dumpsys/dumpstate, dump device/emulator system information
dumpsys [meminfo| cpuinfo| account| activity| window| wifi]
cat/dd/mv/mkdir/rmdir/ls/rm/chown/chmod/sh/ln
lsmod/rmmod/insmod
top/ps
id
pm
vmstat
am/dvz/dalvikvm/app_process
ping/iftop/netstat/
dexopt
input, 模拟键盘
- input keyevent 1 http://developer.android.com/reference/android/view/KeyEvent.html
- input text “aaaaa”
adb shell sendevent /dev/input/event0 1 229 1 代表按下按下menu键
kill
- kill -10 465 will produce dump file /data/misc/heap-dump-tm1289007218-pid465.hprof
log
system_server
radiooptions
logwrapper
applypatch
fsck_msdos
keypress
bmgr
updater
flash_image
netcfg
schedtest
showlease
setconsole
service
reboot
hd
getevent
newfs_msdos
recovery
wipe
printenv
bugreport
installd
monkey
stop
qemud
smd
keystore
ime
date
ps
mediaserver
umount
bootanimation
renice
df
pppd
mount
gzip
dmesg
sync
vold
logcat
applypatch_static
keystore_cli
mtpd
qemu-props
svc
sendevent
notify
cmp
racoon
debuggerd
gdbserver
dumpcrash
servicemanager
fbtool
ioctl
check_prereq
ifconfig
sleep
sdutil
rild
dhcpcd
toolbox
start
linker
surfaceflinger
schedtop
dmagent
route
posted on 2012-10-11 15:06 Happykiller 阅读(896) 评论(0) 收藏 举报
浙公网安备 33010602011771号