/blacknight

Lock Task mode app

Primary LanguageJava

Blacknight

The app implements the Kiosk MODE. This mode allows the users to disable all the major system UI features such as home button, notifications, recent apps button, and global actions. Setting up lock task mode on the device transforms the device into an immersive kiosk, with only the whitelisted apps active on the device.

Compatibility

Android 9

To guarantee system permissions was necessary add device administrator:

Set:

$ adb shell dpm set-device-owner com.studio.blacknight/.DeviceAdminReceiver

Remove:

$ adb shell dpm remove-active-admin com.studio.blacknight/.DeviceAdminReceiver

Features

  • Set Lock Task Mode
  • Set Stay Awake
  • Set Whitelist apps (Waze, Google Maps)
  • Disable Safe Boot
  • Disable Factory Reset
  • Disable Add new User
  • Disable Mount Physical Media
  • Disable Adjust Volume
  • Disable Keyguard
  • Disable Status Bar

Goals

  • Set Lock Task Mode
  • Add apps to Writelist
  • Add Profile ODM project (Default Project Android)

Resources

Add DevicePolicyManager

[Google API] https://developer.android.com/work/dpc/dedicated-devices

[Google API] https://developer.android.com/work/dpc/dedicated-devices/lock-task-mode

[Google API] https://developer.android.com/reference/android/app/admin/DevicePolicyManager

[Policy Manager] https://technostacks.com/blog/android-kiosk-mode/

[Policy Manager] https://snow.dog/blog/kiosk-mode-android

[Policy Manager] https://codelabs.developers.google.com/codelabs/cosu/index.html#2

Contact

Diego Fraga

Email: diego.rfraga@gmail.com