Sample Header Ad - 728x90

Use flags in Chrome command line without root

1 vote
1 answer
4364 views
I'm using Chrome version 74.0.3729.136. My phone is not rooted. I'm trying to use flags in Chrome command line without root. I use the guide from Run Chromium with flags . According to that guide, with flags, it can be done. The guide said: > For production build on a non-rooted device, you need to enable "Enable command line on non-rooted devices" in chrome://flags, then set command-line in /data/local/tmp/chrome-command-line. When doing that, mind that the first command-line item should be a "_" (underscore) followed by the ones you actually need. Finally, manually restart Chrome ... I successfully set up the flag "Enable command line on non-rooted devices". But then I need to copy the data file to /data/local/tmp/chrome-command-line - and I cannot do that. I tried: 1. Command like that:
C*:\WINDOWS\system32>adb shell 'echo --unsafely-treat-insecure-origin-as-secure=TestTest > /data/local/tmp/chrome-command-line'*
   The system cannot find the path specified.
1. Recommendation from https://android.stackexchange.com/questions/103646/run-google-chrome-with-flags-not-from-chrome-flags # echo "chrome --sync-url whatever" > /data/local/tmp/chrome-command-line 1. Use different Android OS (5-7). 1. Use construction like the following for copying files: run-as com.example.app "cat /sdcard/temp_prefs.xml > shared_prefs/com.example.app_preferences.xml" but nothing happened. Anyone has tried it?
Asked by alex89607 (121 rep)
May 21, 2019, 07:37 AM
Last activity: May 23, 2023, 05:43 AM