通过ADB命令获取当前activity

adb shell dumpsys activity activities| grep 包名
TaskRecord下面就是栈

你可能感兴趣的:(通过ADB命令获取当前activity)