快捷搜索:  as

ADB常用命令

安装apk:

adb install xxx.apk

查看log:

adb logcat adb logcat | grep INFO:CONSOLE

登入终端:

adb shell

查看内存占用:

dumpsys meminfo com.yunos.tv.edu.hall

杀逝世app:

am force-stop com.yunos.tv.edu.hall

查看活动容器版本:

adb shell dumpsys package com.yunos.tv.newactivity |grep version

更新活动容器:

删除 /data/data /system/app两个文件夹下与newactivity相关的文件目录然后重启再安装 adb install -r newActivity_production_test.apk

查看UUID:

adb shell getprop | grep uuid

ADB截图:

adb shell /system/bin/screencap -p /sdcard/screenshot.png

adb pull /sdcard/screenshot.png ~/location/

您可能还会对下面的文章感兴趣: