To lock an Android tablet to one app so that it stays locked, make the tablet's Device Owner and run your app in lock task mode. Screen pinning, a custom launcher or a kiosk browser can each hide the rest of the tablet for a while, but a customer or a bored staff member can often get out of them. This guide explains the four options, what a locked tablet has to block, and what to plan for when it crashes or restarts.
Why people want a locked tablet
A tablet on a shop counter, a hotel desk or a clinic reception is a kiosk in everything but name. It runs one ordering, check-in or feedback app, and a customer's hand is the only input. If the customer can swipe to the home screen, open Settings or read a notification, the kiosk is no longer yours. Staff then spend their day resetting tablets that someone played with.
Android calls this idea single app mode, and many people search for it as Android kiosk mode. The words differ but the goal is the same: the tablet shows your app, and only your app, until an authorised person says otherwise.
The four ways to lock a tablet to one app
1. Screen pinning
Screen pinning is built into Android. A person turns it on in Settings, opens the app, then pins it from the recents screen. It needs no extra software, which is its only real advantage.
It is not a security feature. Whoever is holding the tablet can usually unpin it with a button combination, and a reboot clears it. Nothing stops notifications from appearing, and nothing stops someone from reaching Settings. Use it for a quick demo on your own device, not for a tablet that customers touch.
2. A custom launcher app
A launcher replaces the home screen with your own. The tablet opens your app when the home button is pressed, so it looks locked. The weakness is that the launcher is only a replacement for the home screen, not a lock. The status bar still pulls down, the recents button still shows other apps, and Settings is still one gesture away. A launcher alone is a polite request, not a rule.
3. Consumer kiosk browser apps
Several apps on the Play Store wrap a web page in a full-screen shell and add a passcode to exit. They suit a single web page shown on a single tablet. They struggle when your app is a native Android app, when you have more than a handful of tablets, or when you need to know whether each tablet is still locked. They usually rely on tricks that a determined visitor can defeat, and they give you no way to enforce a setting across a fleet.
4. Device Owner with lock task mode
Device Owner is a role Android gives to one app on a fresh tablet. That app, called the device policy controller or agent, can then set rules the user cannot change. Lock task mode is the Android feature that pins a chosen app and hides the home button, recents button and notifications. Google documents this under its guidance for lock task mode on dedicated devices, which is the standard way to build a single-purpose tablet.
Because the lock is enforced by the operating system under the Device Owner's control, a visitor cannot switch it off from the screen. That is why this is the only option that holds when you have tens or hundreds of tablets.
Comparing the options
| Option | Set-up effort | Hard to escape? | Survives a reboot? | Works for a fleet? |
|---|---|---|---|---|
| Screen pinning | A minute per tablet | No | No | No |
| Custom launcher | Install and set as default | No | Usually | Poorly |
| Kiosk browser app | Install and configure | Partly | Usually | Poorly |
| Device Owner and lock task mode | One-time provisioning | Yes | Yes | Yes |
The effort column is the honest cost of Device Owner. It has to be set when the tablet is new or has just been reset, so it needs a proper set-up routine. Our guide to QR code provisioning shows how to do that for many tablets at once.
What a locked tablet must block
Locking the app is only half the job. A tablet that shows your app but leaves other doors open is still easy to break out of. A properly locked kiosk tablet should block each of the following.
| Door | What a visitor could do with it |
|---|---|
| Home and recents buttons | Leave your app and open another one |
| Status bar and notifications | Tap an alert that opens a different app, or reach quick settings |
| Power menu | Restart into a different mode or switch the tablet off |
| Settings | Change Wi-Fi, clear data, add accounts |
| Safe boot | Start the tablet with third-party apps, including yours, disabled |
| Factory reset | Wipe the tablet and walk away with it |
| USB debugging | Control the tablet from a laptop with a cable |
| Unknown sources | Install an app that bypasses your lock |
Device Owner can restrict all of these through user restrictions, which are documented rules Android enforces for the app that holds the role. Our own agent turns on the restrictions against factory reset, safe boot, unknown sources, new users, account changes, USB file transfer and SD cards. It also blocks USB debugging in production builds. It keeps factory reset protection on, so a stolen tablet is much less useful to a thief.
It also hides the manufacturer's launcher and bloat apps. They are hidden rather than removed, so nothing breaks. Settings is never hidden, but it cannot be reached from the screen, so a visitor has no way into it.
When the app crashes or the tablet restarts
A lock is useless if the app goes away and leaves a bare home screen. Two situations decide whether a locked tablet is dependable.
The app crashes or is closed
Every app crashes sometimes. A locked tablet needs something watching and starting the app again at once. In our agent the client app is relaunched within about a second. If the app crashes repeatedly, a short cool-down screen appears so the tablet does not spin in a tight loop. Then it tries again.
The tablet reboots
Power cuts, overnight updates and staff all cause reboots. After one, the tablet should go straight into your app with no lock screen to type through and no home screen in between. A tablet that stops at a lock screen has just become a very expensive paperweight until someone walks to it.
Test both cases before launch. Close the app by every means you can think of, pull the power, and watch what the tablet does. If you are building the app as well, our kiosk application development page explains how we work on the app side.
Letting a supervisor in without opening the door to everyone
Sometimes a real person has to reach Settings: to change a Wi-Fi network, check a version or fix a printer setting. A permanent passcode is a weak answer, because it gets shared on a sticky note.
A better design is a one-time code. In our agent a supervisor presses the power button six times and enters a PIN that was issued from the web console. Settings then opens for 15 minutes and locks again by itself. Each PIN works once, so a leaked code is useless the following day.
Why a fleet needs more than a lock
Locking one tablet is a set-up task. Keeping fifty locked is a management task. A tablet that quietly loses its lock, falls offline or runs an old version of the app is a problem nobody sees until a customer does.
For a fleet you will want to know each tablet's state, push settings to all of them, update the app without visiting each site, and be warned when a tablet is not locked. Our centralized kiosk management platform page describes that side. If you are weighing a lock-only product against a wider management tool, read kiosk mode vs MDM for dedicated devices.
Mistakes to avoid
- Testing the lock only on your own desk. Hand the tablet to someone who has never seen it and watch what they try.
- Leaving a Google account signed in during set-up. Provisioning a Device Owner generally works best on a tablet that has no account added yet.
- Relying on a launcher or a browser app for tablets in a public space.
- Skipping the reboot test. A lock that vanishes after a power cut will do so at the worst moment.
- Giving everyone the same permanent Settings passcode.
How AtashiTech helps
We built our own Android Device Owner agent, so lock task mode, the restrictions above, the relaunch behaviour and the one-time supervisor PIN come as one package. It works with your own APK, with no source code needed from you. See our kiosk lockdown software page for what is built today. We handle Android tablets today, and Windows kiosks are available on request.
If you want to see it on a few of your own tablets first, talk to us and we can set up a small pilot.
Frequently asked questions
Tell us the journey, the sites and the hardware you already have — every engagement is scoped and quoted individually.