导航:首页 > 程序命令 > adb命令覆盖安装低版本

adb命令覆盖安装低版本

发布时间:2025-03-19 17:24:25

‘壹’ adb常用指令

1、adb devices 获取模拟器或物理手机设备

2、adb install 安装软件
adb -s emulator-5554 install E:\CalculatorOfTwoNum.apk 连接了多个设备
adb install -r E:\CalculatorOfTwoNum.apk 覆盖安装已有的软件
adb install E:\CalculatorOfTwoNum.apk只有一个设备且未安装

3、adb uninstall 卸载软件
adb -s emulator-5554 uninstall com.example.calculatoroftwonum 卸载指定设备的软件
adb -s emulator-5554 shell pm uninstall -k com.example.calculatoroftwonum 保留配置及缓存

4、adb pull 把文件从手机设备发送到本地计算机
adb pull /sdcard/tmp/虚弊拆error.data d:/
adb -s emulator-5554 pull /sdcard/tmp/error.data d:/ 连接了多个设备个

5、adb push 把文件从本地计算机发送到手机设备
adb -s emulator-5554 push d:/example/error.data /sdcard/pass

6、adb shell ls 显示差枣当前目录的所有内容

7、adb shell 查看手机安装的应用
su root
cd /data/data
ls

8、adb shell mpsys battery 查看电量信息

9、adb shell mpsys wifi 查看无线网络信息

10、adb shell mpsys power 查看电源信息

11、adb shell mpsys telephony.registry 查看电话相关信息

12、adb shell cat /proc/cpuinfo 查看CPU硬件信息

13、adb shell cat /proc/meminfo 查看内存信息

14、adb shell cat /proc/卜埋iomen 查看I/O内存分区的信息

15、adb shell cat /system/build.prop | findstr "ro.proct.model" 获取手机型号

16、adb shell cat /proc/cpuinfo | findstr "Processor" 获取手机处理器信息

17、adb shell cat /proc/meminfo | findstr "MemTotal" 获取手机内存信息

18、adb shell mpsys windows | findstr "Display" 获取手机屏幕分辨率信息

19、adb shell getprop ro.build.version.release 获取系统版本信息

20、adb shell cat /proc/version 获取内核版本信息

21、adb shell getprop gsm.operator.alpah 获取运营商信息

22、adb shell getprop gsm.network.type 获取网络类型信息

23、adb shell mpsys iphonesubinfo | findstr "Devices ID" 获取手机串号信息

24、adb shell df 获取系统分区信息

25、adb shell dmesg 获取linux内核环形缓冲区信息

26、adb shell mpstate 获取系统当前状态

27、adb get-serialno 获取设备序列号

28、adb get-state 获取设备当前状态

29、adb logcat 查看日志信息
adb logcat *:W 输出优先级大于警告级的信息
adb logcat -b main 查看主缓冲区信息

30、adb bugreport 查看启动过程日志

31、adb jdwp 列出指定设备的IDWP相关进程的ID

32、adb start-server 启动adb服务

33、adb kill-server 关闭adb服务

34、adb forward 将本机的端口重定向到模拟器或者设备端口上
adb forward tcp:2211 tcp:5566

35、am 模拟系统行为
adb shell am start -n com.sec.android.app.camera/.Camera 启动照相功能
adb shell am broadcast -a android.intent.action.BATTERY_CHANGED --ei "level"5 --ei "scale" 100 向手机发送模拟手机低电环境的信息

36、pm 模拟行为或者查询设备上的应用
adb shell pm list packages

37、向模拟器发送短信、打电话
20181021141213.png 20181021141213.png 20181021141252.png 20181021141252.png
cmd telnet localhost 5554
20181021141306.png 20181021141306.png
network speed 14.4:20 设定网速
network delay 5 设定网络延时5毫秒
network capture start/stop 开始/停止数据包的捕获
windows scale 0.5 修改模拟器大小比例
quit退出

39、android list targets 查看模拟器的Android系统版本

40、android create avd 创建模拟器
android create avd --name Android4.4.2 --target 2 --abi armeabi-v7a

41、android move avd -n Android4.4.2 -r mytestdev4.4.2 重命名模拟器

42、android list avd 查看模拟器列表

43、android delete avd -n hhh 删除模拟器

44、emulator -avd Android4.4.2 启动模拟器

阅读全文

与adb命令覆盖安装低版本相关的资料

热点内容
程序员放弃后会怎样 浏览:188
河北模具编程 浏览:190
adb查找命令 浏览:324
安卓手机视频文件夹怎么打开 浏览:314
平板加密手机后怎么关闭 浏览:572
流媒体服务器应该注意什么 浏览:539
d8命令编译 浏览:970
压缩包解压需要多少空间 浏览:152
如何查找app属性 浏览:392
android人脸识别技术 浏览:327
pc104编程 浏览:338
二维码反编译破解推广 浏览:687
修改服务器的mac地址 浏览:531
好玩的编程软件 浏览:903
编程语言创始人有钱吗 浏览:810
短视频app怎么获客 浏览:18
查看云服务器的应用 浏览:441
javadump工具 浏览:569
程序员16g 浏览:449
程序员没有办法成为top怎么办 浏览:224