Lock Task Mode (sometimes called screen pinning for developers) lets a device run a single app while disabling system navigation, status bar, and most settings. It’s the official way Android supports public‑facing kiosks, digital signage, or any scenario where you want to hand a phone to a user without exposing the rest of the OS.
Unlike rooting or custom ROMs, Lock Task Mode works on stock Android 5.0+ and requires only a few ADB commands. The device remains fully update‑able and secure, and you can revert the changes at any time.
Settings > About phone > Build number (tap 7 times) then Settings > System > Developer options > USB debugging.Lock Task Mode can only be started by an app that has been granted the android:lockTaskMode permission and is set as a device‑owner. Several free apps on the Play Store already include the required device‑admin receiver, for example:
For this tutorial we’ll use **SureLock** because it provides a simple UI to enable lock task mode and its package name is stable.
SureLock Kiosk Lockdown and install it.After installation the app will request Device admin permission. Grant it by tapping Activate → Allow in the system dialog.
Android only allows dpm set-device-owner on a device that has no Google account and no existing device owner. The safest way is to perform a factory reset after you have backed up your data.
ERROR: Device owner already set. A factory reset is required.To factory‑reset:
Settings > System > Reset > Factory data reset.Once the device restarts, enable USB debugging again (see the “Before you start” list).
Connect the phone to your computer with the USB cable. Open a terminal (or Command Prompt) and verify the connection:
adb devices
You should see a device ID with the word device. If it shows unauthorized, check the phone for a prompt asking to allow USB debugging and tap Allow.
Now run the device‑owner command. The exact component name for SureLock is:
adb shell dpm set-device-owner com.surelock.kiosk/.DeviceAdminReceiver
Replace com.surelock.kiosk/.DeviceAdminReceiver with the actual receiver class if the app updates its package structure (you can find it in the app’s AndroidManifest.xml via APKTool if needed). For most versions the above works.
Success: Device owner set.Security exception or Device owner already set, double‑check that the device is freshly reset and that no Google account is added.At this point the device recognises SureLock as the privileged “device owner”. This status grants the app permission to start Lock Task Mode without user interaction.
Open the SureLock app. Navigate to Settings > Lock Task Mode (the exact path may vary by version, but look for “Kiosk Mode” or “Lock task” options).
com.surelock.kiosk/.MainActivity. This tells Android which screen should stay in the foreground.After saving, tap the Start Kiosk button inside the app. The device will immediately hide the navigation bar, status bar, and the recent‑apps button. Only the SureLock interface remains visible.
What you should see: The screen shows SureLock’s main UI, the Android status bar disappears, and attempts to swipe from the edges do nothing. Pressing the power button will still turn the screen off, but unlocking brings you straight back into the kiosk.
Because the device is now locked, you need a reliable way to exit for maintenance:
adb shell am stopservice -n com.surelock.kiosk/.KioskService (replace the service name if different) or simply adb shell am clear-task com.surelock.kiosk.After exiting, you can remove the device‑owner status if you ever want to return the phone to normal use:
adb shell dpm remove-active-admin com.surelock.kiosk/.DeviceAdminReceiver
Note that removing the admin does not automatically clear the lock‑task configuration; you may need to open the app once more and disable the lock‑task toggle.
If a factory reset is not an option, Android’s Screen Pinning offers a lightweight, user‑initiated kiosk‑like experience:
Settings > Security > Screen pinning (or Settings > Biometrics & security > Screen pinning on some devices).Screen Pinning does not hide the status bar, and users can still exit with the button combination, but it requires no ADB or device‑owner setup.
| Problem | Possible Cause | Fix |
|---|---|---|
| ADB command returns “Security exception” | Device already has a Google account or another device‑owner. | Factory reset the device, ensure no account is added, then retry. |
| SureLock does not start Lock Task Mode after enabling it | Incorrect activity selected or the app version lacks the permission. | Open SureLock settings, verify the selected activity matches the one listed in the app’s manifest, or reinstall the latest version. |
| Navigation gestures still work | Device manufacturer has disabled lock‑task enforcement (rare on older OEM skins). | Check for a vendor‑specific “Kiosk mode” toggle in Settings, or use a different kiosk app that implements a custom launcher. |
| Unable to exit via ADB | Wrong service/component name. | Run adb shell dumpsys activity services | grep -i kiosk to locate the exact service name, then stop it. |
By following the steps above you have turned a regular Android phone into a dedicated kiosk that runs a single app, hides system UI, and prevents users from leaving the intended experience—all without rooting or flashing custom ROMs. The setup is reversible, works on most modern Android devices, and gives you a solid foundation for public displays, point‑of‑sale terminals, or classroom devices.
Remember to keep a backup of the ADB commands and the device‑owner package name in a secure place. If you ever need to repurpose the device, the removal command and a simple factory reset will restore full Android functionality.









