文档视界 最新最全的文档下载
当前位置:文档视界 › adbshell命令列表

adbshell命令列表

【adb操作命令】:

1. 查看设备

adb devices

这个命令是查看当前连接的设备, 连接到计算机的android设备或者模拟器将会列出显示



2.安装软件

adb install

adb install :这个命令将指定的apk文件安装到设备上



3. 卸载软件

adb uninstall <软件名>

adb uninstall -k <软件名>

如果加 -k 参数,为卸载软件但是保留配置和缓存文件.

4. 进入设备或模拟器的shell:

adb shell

通过上面的命令,就可以进入设备或模拟器的shell环境中,在这个Linux Shell中,你可以执行各种Linux的命令,另外如果只想执行一条shell命令,可以采用以下的方式:

adb shell [command]

如:adb shell dmesg会打印出内核的调试信息。

5. 发布端口

可以设置任意的端口号,做为主机向模拟器或设备的请求端口。如:

adb forward tcp:5555 tcp:8000

6. 从电脑上发送文件到设备

adb push <本地路径> <远程路径>

用push命令可以把本机电脑上的文件或者文件夹复制到设备(手机)

7. 从设备上下载文件到电脑

adb pull <远程路径> <本地路径>

用pull命令可以把设备(手机)上的文件或者文件夹复制到本机电脑

8、查看bug报告

adb bugreport

9、记录无线通讯日志

一般来说,无线通讯的日志非常多,在运行时没必要去记录,但我们还是可以通过命令,设置记录:

adb shell

logcat -b radio

10、获取设备的ID和序列号

adb get-product

adb get-serialno

adb shell

sqlite3



【adb shell 命令】:
sound
tiwlan_loader
btipsd_cli
installd
ioctl
iftop
udhcpd
mv
monkey
sleep
cat
start
ln
ls
hciattach
bma150_usr
printenv
monitorMTD
reboot
rsync
kill
setprop
qemud
sample
logcat
newfs_msdos
insmod
system_server
debug_tool
stop
logwrapper
debuggerd
dhcpcd
app_process
dumpsys
gzip
linker
ip
rild
ser2net
getprop
vold
awb_camera
mmcamera_test
spkamp
keystore
mmclient
top
notify
bluetoothd
cmp
log
fsck_msdos
rm
mm-venc-omx-test
dumpcrash
keypress
lsc_camera
ime
radiooptions
mount
wipe
showlease
racoon
df
gdbserver
watchprops
mkdir
id
wpa_supplicant
snd8k
bmgr
wpa_cli
dd
dmesg
netsharing
aparse
vptest
rmmod
sdptool
mtpd
toolbox
setmic
bugreport
ping
cam_ins_spmo
ifconfig
netstat
tiwlan_cu
sendevent
dumpstate
surfaceflinger
chown
dalvikvm
lsmod
chmod
shutdown
dvz
vmstat
fbtool
htclogkernel
bootanimation
schedtop
svc
smd
mscompress
wifitools
service
akmd
iptables
bootcomplete
snd
renice
getevent
route
applypatch
pm
input
mediaserver
sync
rmdir
sh
dbus-daemon
setconsole
hd
pppd
servicemanager
qemu-props
schedtest
umount
keystore_cli
sdutil
btipsd
date
netcfg
uevent
am
ps


dexopt


电脑上运行命令查看手机:adb shell ls /system/app/
如果看到有文件后缀名是.odex则是经过优化了


相关文档
相关文档 最新文档