android - 使用 ADB 打开 Chrome

标签 android adb

我曾经能够像这样使用 ADB 启动 Chrome:

adb shell am start -n com.android.chrome/com.android.chrome.Main

但现在当我尝试它时,我得到:

Starting: Intent { cmp=com.android.chrome/.Main }
Error type 3
Error: Activity class {com.android.chrome/com.android.chrome.Main} does not exist.

好像是Main Class的名字变了。如果有,新的是什么?

最佳答案

这个adb命令

adb shell am start -n com.android.chrome/com.google.android.apps.chrome.Main

关于android - 使用 ADB 打开 Chrome,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28150650/

相关文章:

android - 窗口背景 Material 设计兼容性

android - 监听来自 java 的 javascript 函数调用 - Android

android - @+android :id? 是否有任何合法用途

android - Windows docker 容器中的 ADB 设备为空

linux - 在不离开 bash 脚本的情况下中断 logcat?

java - 改进 Android 上的 MIDI 合成器声音/加载声音字体

android - Android 上根据设备语言方向(LTR、RTL)进行文本适配

android - UI 自动转储 "Killed"

android - ADB Bluestacks - 连接 2 台 PC

java - Appium错误packageAndLaunchActivityFromManifest失败