Run google-chrome with flags on Android

后端 未结 4 870
臣服心动
臣服心动 2020-12-14 23:46

There are command line flags (or \"switches\") that Chromium (and Chrome) accept in order to enable particular features or modify otherwise default functionality.

Ch

4条回答
  •  半阙折子戏
    2020-12-15 00:04

    New method added in Chrome 661 that works for a production build on unrooted devices.

    1. Using adb, write the flags to /data/local/tmp/chrome-command-line.

      For example:

      ~$ adb shell 'echo --unsafely-treat-insecure-origin-as-secure=http://a.test > /data/local/tmp/chrome-command-line'
      
    2. In chrome://flags, turn on enable-command-line-on-non-rooted-devices.

    3. Force stop Chrome (the relaunch now button will not trigger the reading of the flags file, even though the danger snackbar will disagree).

    Verify in chrome://version that this worked.

    https://www.chromium.org/developers/how-tos/run-chromium-with-flags#TOC-Android

提交回复
热议问题