常用ADB的用法

1.查看当前运行的模拟器

  adb -devices

2.电脑与手机之间文件的相互复制

  adb push d:/abc.txt /sdcard/

3.启动模拟器的shell窗口

  adb shell

4.安装、卸载APK程序

  (1)  adb install [-r] [-s] <file>

-r  表示重新安装

-s  表示将APK安装到SD卡上

  adb install text.apk

  (2) adb uninstall [-k] <package>

-k 表示只删除该应用程序但保留该程序所用的数据和缓存目录

package 表示删除指定<package>代表的APK包

原文地址:https://www.cnblogs.com/spadd/p/4186464.html