2011-02-05 98 views
-1

如何使用ADB shell控制我的android手機?如何使用ADB外殼?

請給我你們對亞行

+3

你可以擴展你的問題,以顯示它如何與編程? – 2011-02-05 12:33:29

+0

你使用什麼操作系統; 「控制我的Android手機」究竟是什麼意思? – Mateng 2011-07-07 00:36:34

回答

0

的命令。如果你有一個設備或參數外殼仿真器連接運行ADB在

adb shell

您也可以鍵入adb命令和/或參數ADB

對於這一切工作 - adb必須在路徑

3

adb shell爲您提供了一個在設備上運行的ash shell,該設備是sh兼容的shell。所以,你有標準的SH建宏:cdecho

再就是對PATH的命令二進制文件。我的手機(Nexus One的,安卓2.2.2)有以下幾點:(?除非你紮根您的設備)

$ ls /system/bin 
logwrapper 
logcat 
nandread 
linker 
ionice 
keystore 
installd 
hciattach 
fsck_msdos 
dumpsys 
dumpstate 
wpa_supplicant 
dhcpcd 
sleep 
dexopt 
vold 
stop 
bluetoothd 
route 
am 
cmp 
surfaceflinger 
iftop 
wipe 
monkey 
id 
toolbox 
insmod 
sync 
notify 
cat 
ioctl 
top 
dbus-daemon 
rmdir 
sh 
date 
ps 
ifconfig 
servicemanager 
ln 
netstat 
vdc 
sendevent 
input 
vmstat 
schedtop 
service 
brcm_patchram_plus 
mount 
dd 
bootanimation 
tc 
hd 
getprop 
ime 
setprop 
sdptool 
ls 
chown 
log 
run-as 
pand 
dmesg 
schedtest 
chmod 
pm 
kill 
rm 
df 
rild 
smd 
dalvikvm 
mkdir 
reboot 
omx_tests 
bugreport 
app_process 
lsmod 
svc 
racoon 
netd 
dvz 
akmd 
umount 
newfs_msdos 
ndc 
printenv 
gzip 
renice 
watchprops 
mv 
bmgr 
start 
mediaserver 
pppd 
getevent 
rmmod 
setconsole 
system_server 
ping 
mm-venc-omx-test 
iptables 
parse_radio_log 
applypatch 
dnsmasq 
debuggerd 
netcfg 
mtpd 

上有PATH其他目錄,但這些都不是訪問。請參閱documentation