Kiosk Mode - Tuong-Nguyen/PreparationEduLog GitHub Wiki
Requirement/Concern
Kiosk mode:
- Edulog app run only
- No voice in the motion
- Dim screen in the motion
Lock-task mode for Single-purpose device
Expectation
- Standalone Kiosk mode application (without set Device Owner app)
- Device Policy Controller (DPC) run as Device Owner to set several policies on the device
- Keep devices from locking with the keyguard using
setKeyguardDisabled()
- Disable the status bar using
setStatusBarDisabled()
- Keep a device’s screen on while plugged in via
STAY_ON_WHILE_PLUGGED_IN
- Ensure your app is launched on reboot by setting it as the default launcher
- Output is a
KioskModeActivity
class so that we can extend it to activate kiosk mode
Ref:
- https://developer.android.com/work/cosu.html#create-dpc
- https://codelabs.developers.google.com/codelabs/cosu/index.html?index=..%2F..%2Findex#0 (slide 8 is for standalone Kiosk mode application)
- Set device owner app source code
- Kiosk Mode demo app source code
Note: we can refer these source code and merge them as single project