Android SDK 中常用的几个命令

<Android SDK directory>\tools

adb kill-server 关闭adb服务

adb start-server

adb devices 查看当前在线的模拟器或是真机数量

adb -s emulator-5554 install parking.apk 把parking.apk安装到指定的机器上

adb -s emulator-5554 install -r parking.apk

adb -s emulator-5554 uninstall com.yh.park

adb -s emulator-5554 shell am start -n com.yh.park/com.yh.park.Main 

在指定的机器上通过shell启动parking这个app

adb -s emulator-5554 pull /sdcard/1.jpg picture.jpg

把指定手机上内存卡根目录中的1.jpg copy 到PC的当前目录中,并重命名为picture.jpg

adb -s emulator-5554 push picture.jpg /sdcard/1.jpg

adb -s emulator-5554 shell 在PC上进入Android shell里面

进入shell之后 输入 cd system/bin , 再输入ls 可以查看当前Android系统支持的命令文件

猜你喜欢

转载自cuizhihua.iteye.com/blog/2087219