5

I'm trying to set the --kiosk and the --kiosk-printing flags in Chrome for Android on my Galaxy Tab 10.1.

All the instructions that I can find here and elsewhere tell me to go to chrome://flags and set the flag there. But neither of these flags is mentioned in the list there.

What do I need to do to set kiosk mode?

I'm using Chrome 39.0.2171.56 on Android 4.0.4

Andrew T.
  • 15,988
  • 10
  • 74
  • 123
Mr. Flibble
  • 103
  • 1
  • 1
  • 6

3 Answers3

5

It is not possible to do this in Chrome on Android; you can achieve what you want to with Kiosk Browser Lockdown instead.

Andrew T.
  • 15,988
  • 10
  • 74
  • 123
NStorm
  • 538
  • 3
  • 11
  • Thanks very much NStorm. I don't see any reference to --kiosk-printing in the docs for that app. Do you know if it's possible to enable this (or some other way to print directly to the printer via the browser without user interaction)? – Mr. Flibble Nov 21 '14 at 12:47
  • I don't think that's possible with the app. – NStorm Nov 22 '14 at 03:58
3

This page suggests you can put them in /data/local/tmp/content-shell-command-line.

eg adb shell 'echo "chrome --kiosk --kiosk-printing" > /data/local/tmp/content-shell-command-line'

lane
  • 221
  • 1
  • 5
  • Can somebody explain what this does. When I execute I get nothing in that directory and the flags don't appear in 'about:version' in Chrome. – jim May 13 '15 at 07:54
  • If the flags appear in about:version then it should switch Chrome to kiosk mode - ie full screen with silent printing. I must confess I gave up on Chrome and switched to Firefox with a full-screen add-on for my kiosk device. – lane May 13 '15 at 08:44
  • Ok, do you need root to add the flags? Thanks. – jim May 13 '15 at 10:00
  • I presume the flags are set at build time, or am I misunderstanding the question? – lane May 13 '15 at 12:55
  • On Chrome for Android on my side it was: adb shell 'echo " --kiosk --kiosk-printing <url>" > /data/local/tmp/chrome-command-line'. It now appears in chrome://version however, the kiosk-printing is still not working. – jflaflamme Sep 22 '22 at 06:59
  • Is it possible to build an APK to setup this so adb shell isn't needed? I cannot edit the file with Termux, what can I do? – Martin Braun Oct 27 '22 at 13:55
-1

It is not possible to add flags to chrome on Android unless they exist in the chrome://flags a list.