美文网首页
Android ADB相关命令

Android ADB相关命令

作者: 天神Deity | 来源:发表于2018-05-14 17:01 被阅读31次

1.启动应用

adb shell  am start -n {package}/{package}.{activity名称}
例如: adb shell am start -n  com.keytop.rsp/com.keytop.rsp.activity.LogInActivity

2.获取应用的入口地址

//事先打开需要启动的app(例如QQ),通过以下命令获取当前顶层应用 当前的入口 签名地址
adb shell dumpsys window windows | findstr "Current"
//调用入口签名地址拉起应用(以QQ为例)
adb shell am start -n com.tencent.mobileqq/com.tencent.mobileqq.activity.SplashActivity

相关文章

网友评论

      本文标题:Android ADB相关命令

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