Android kiosk mode, set up in a few minutes
Lock an Android tablet to one website or one app, so that visitors cannot leave it. Here is what Android lets you do, and how to do it with FreeKiosk, which is free and open source.
What kiosk mode is
A kiosk app keeps a device on a single task: a dashboard on a wall, a menu on a counter, a game on a demo tablet. The visitor sees the page or the app you chose, and nothing else of Android.
On Android there are two levels. Basic mode needs no computer, but leaves some system interactions open. Device Owner mode is a one-time setup from a computer, and gives a complete lockdown.
Basic mode or Device Owner
From the FreeKiosk installation guide. Use basic mode to test or for personal use, Device Owner for a kiosk in production or in public.
| Basic mode | Device Owner mode | |
|---|---|---|
| Kiosk lockdown | Partial | Complete |
| System notifications | Visible | Blocked |
| Status bar | May appear | Hidden |
| Navigation buttons | Accessible | Disabled |
| Home button | May work | Disabled |
| Recent apps | Accessible | Disabled |
| Exit without the PIN | Possible | Impossible |
| Start at boot | Yes | Yes |
Set it up with FreeKiosk
- Install the APK on a tablet running Android 8.0 or later (see the download page).
- Open FreeKiosk. On a device where nothing is configured, a wizard of about a minute starts: the page to show, your own PIN (4 to 6 digits), keeping the app running, and whether to lock the device.
- Tap Start the kiosk. To come back to the settings, tap five times quickly at the same spot and enter your PIN.
For the complete lockdown, set Device Owner once, from a computer, with the tablet connected over USB and no account on it:
adb shell dpm set-device-owner com.freekiosk/.DeviceAdminReceiverThe full steps, with Windows, Mac and Linux, and the usual errors, are in the installation guide.
What to put on the screen
Website
Any HTTP or HTTPS page in fullscreen, including self-signed certificates. Home Assistant dashboards, information displays, web applications.
External app
Locks the tablet to one installed Android app and relaunches it after an exit or a crash. Cloud gaming, media players, your own app.
Dashboard
A grid of tiles, one page per tile, with a return to the grid after a period of inactivity.
Media
A native player for videos and images, with time-based scheduling.
Details in features and modes.
What a lockdown covers
With Device Owner mode, FreeKiosk can:
- disable the home button, the recent apps and the access to the system settings;
- block system dialogs and notifications from covering the screen;
- restart the app by itself if it stops, with a watchdog service;
- protect the settings with a PIN, so that nobody leaves the kiosk without it;
- optionally offer a few controls on the PIN screen: Wi-Fi, Bluetooth, audio output, flashlight, brightness.
Without Device Owner, Android keeps some of these open: see the table above.
Which mode for which job
| Use | Recommended mode |
|---|---|
| Home Assistant dashboard | Website |
| Cloud gaming kiosk | External app, with Device Owner |
| Corporate kiosk | External app, with Device Owner |
| Several dashboards | Dashboard |
| Media display | Media |
| Your own Android app | External app |
More than one tablet
Configure tablets with ADB commands, drive them with the REST API or MQTT and Home Assistant, or manage the whole fleet from one dashboard with FreeKiosk Cloud (the first device is free). Coming from Fully Kiosk Browser? Read the comparison, with sources.