首页 > 学院 > 开发设计 > 正文

adb实用命令

2019-11-09 17:38:33
字体:
来源:转载
供稿:网友

1.打开Activity

adb shell am start -n 包名/类名

2.查询Service

adb shell dumpsys activity services 包名 | findstr "Service名称"

3. 查看Activity栈信息

adb shell dumpsys activity | findstr "mFoc"   查看处于前台的Activity

adb shell dumpsys activity | grep mFocusedActivity同上

adb shell dumpsys activity | findstr "包名关键字" | findstr "Run"  查看正在运行并与关键字匹配的Activity信息


上一篇:block循环引用

下一篇:TabLayout+Fragment

发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表