adb命令

来源:互联网 发布:认知 人工智能 编辑:程序博客网 时间:2024/05/21 09:10

1.通过包名启动apk

adb shell monkey -p 包名 -c android.intent.category.LAUNCHER 1

2.查看手机上应用的包名

adb shell pm list packages

3.列出某个包名的详细信息

adb shell dumpsys package com.tre.android.xxx

4.adb shell getprop 列出系统所有属性

查看序列号    adb shell getprop | find "ro.serialno"

5.启动service

adb shell am startservice --user 0 -a pacer.autoupdate.service

1.退出省电模式

adb shell input keyevent 26adb shell input keyevent 82

2.截图

adb shell /system/bin/screencap -p /sdcard/screenshot_temp.png &&adb pull /sdcard/screenshot_temp.png /Users/yongguangzhang/Desktop

3.安装apk

adb install "C:\Users\zhang_yongguang\AppData\Roaming\Skype\My Skype Received Files\com.tre.android.framework.apk"

4.卸载apk

adb uninstall com.tre.android.frameworkadb shellpm uninstall com.tre.android.framework

1.adb发送BOOT_COMPLETED

adb shell am broadcast -a android.intent.action.BOOT_COMPLETED

2.更精确的发送到某个package

adb shell am broadcast -a android.intent.action.BOOT_COMPLETED -c android.intent.category.HOME -n com.morlunk.mumbleclient/com.morlunk.mumbleclient.app.PlumbleActivity

3.查看序列号

adb shell getprop ro.serialno

4.电脑序列号

wmic bios get serialnumber

5.输出log文件

adb logcat -v time >c:\opt\log1.txt

6.vlookup

=VLOOKUP(E6,更新成功!A:A,1,0)

7.logcat导出多文件

adb connect 192.168.23.67 &adb -s 192.168.13.79 logcat -v time > ./192.168.13.79.log &
0 0
原创粉丝点击