美文网首页
adb shell命令

adb shell命令

作者: 皓皓amous | 来源:发表于2023-11-19 10:53 被阅读0次
adb保留数据卸载app
adb shell pm uninstall -k 包名

启动应用
adb shell am -n com.test/com.test.ui.WelcomeActivity

查看Activity堆栈情况
adb shell "dumpsys activity grep com.test"

日志打印输出
adb logcat -c
adb logcat -s Tag:D

查询进程uid
adb shell "dumpsys package com.vrv.im | grep userId="

获取应用程序的进程ID。可以通过运行以下命令获取:
adb shell "ps | grep your_package_name"

ctrl +c 退出

相关文章

网友评论

      本文标题:adb shell命令

      本文链接:https://www.haomeiwen.com/subject/nrxmwdtx.html