如何在 Android 上使用 adb shell 脚本启用 chrome 标志?

问题描述 投票:0回答:0

目标是在没有用户交互的情况下在 Android 设备上启用 chrome 标志。

我有这样的东西:

adb shell am start -n com.android.chrome/com.google.android.apps.chrome.Main -d "chrome://flags/#enable-new-contacts-picker"

adb shell am broadcast -a com.android.chrome -n com.android.chrome/com.google.android.apps.chrome.Main/ --ez enable-new-contacts-picker true

然后 adb shell am 强制停止 com.android.chrome

但是在运行这个之后标志仍然没有启用。

知道为什么它不起作用吗?

broadcast google-chrome-flags
© www.soinside.com 2019 - 2024. All rights reserved.