PolyluteDocs polylute.app

Concepts

DAP levels: Launcher, Pinned, Dedicated

Why there are three levels, what each one asks of you, and what the device-owner role does and does not do.

On this page

In short

  • When Polylute is your home app, it can run at three levels. Each one is what Android allows with a different amount of effort from you.
  • Launcher needs only the app. Pinned needs only the app and one confirmation in Android. Dedicated needs a computer, once.
  • A higher level is not a better one. Pick the lightest that does what you want.
  • You can leave every level, and you can leave Dedicated without a factory reset.

How it works

If Polylute is not your home app, it is in App mode: one app among others, and the levels do not apply. If you choose Polylute as the home app, you have three levels to pick from.

The three levels
LevelWhat you needWhat it doesHow you get out
LauncherOnly the app. Choose Polylute as the home app.Polylute is your home screen. Nothing is locked.Choose another home app.
PinnedOnly the app. Confirm Android’s pin dialog.Android’s app pinning keeps Polylute on screen.Unpin with Android’s gesture, or the Unpin now button.
DedicatedA computer with adb, once, on a phone with no accounts at that moment.Polylute becomes the device owner and locks the phone to itself.Stop being the device owner, in Polylute’s own settings.
The levels of DAP modeApp mode is where Polylute is one app among others. Choosing Polylute as the home app makes it Launcher: the home screen, with nothing locked. From Launcher you can pin Polylute with Android's app pinning, which needs only the app, or make it Dedicated with a device-owner command from a computer, once. Choosing another home app takes you back to App mode from any level. App mode Polylute is one app among others pick it as home app Launcher the home screen, nothing locked pin it adb, once Pinned Android’s app pinning Dedicated Device Owner + Lock Task Choosing another home app takes you back to App mode
The levels. Amber marks the only level that needs a computer.

In words

In App mode, Polylute is one app among others. Choosing Polylute as the home app makes it Launcher: the home screen, with nothing locked. From Launcher you can pin Polylute with Android’s app pinning, which needs only the app, or make it Dedicated with a device-owner command from a computer, once. Choosing another home app takes you back to App mode from any level.

The Home and DAP mode page at the Launcher level: the home app, the requested level and the actual level, and the three levels to choose from.
One page for all of it. It shows the level you asked for and the level Android confirms.

The page shows two lines: Requested level and Actual level. They can differ, and that is on purpose. Polylute only calls itself Dedicated when Android confirms that the lock is held. If Android is not holding the lock, the page says Not locked now, and Return to DAP locks it again.

What the device-owner role does, and does not do

Dedicated rests on Android’s device-owner role. Polylute asks for little with it.

It does:

  • lock the phone to Polylute with Android’s Lock Task;
  • make Polylute the permanent home app;
  • if you switch on Settings › Appearance › Lock screen › DAP Lock Screen, turn off Android’s own swipe lock and use Polylute’s wake screen instead. The switch is off by default, and it only works on a phone with no PIN, pattern or password. With a real lock, Android’s lock screen stays in charge;
  • switch Wi-Fi and Bluetooth on and off from Polylute’s Device page.

It does not erase data, restrict other users, hide or suspend other apps, or read other apps’ data.

Polylute’s admin declaration includes one old-style device-admin policy, force lock. Polylute uses it only to turn the screen off after 30 seconds without a touch on its own wake screen (when you have switched that on), and only while Polylute is an active device administrator. The wake screen is not a password, and it is not authentication.

Why we built it this way

Why not just one level. The strongest lock, Dedicated, is the one that needs the most from you. Android only names a device owner on a phone that looks unused (no accounts, no extra users), and only through adb from a computer. That is a fair price for a spare phone that will only ever be a player, and an unfair one for everyone else. If it were the only way, most people could not use Polylute as a DAP at all. So we built the two lighter levels that need nothing but the app.

Why not only the light levels. Pinning can be undone by anyone who knows the unpin gesture. Dedicated gives a real appliance: the phone cannot wander off into other apps. We kept it for people who want that, and who are happy to use a computer once.

Why the accounts have to go. It is Android’s security rule, not ours. It only matters at the moment of the command. You add your accounts back right afterwards, and no factory reset is needed.

Why you can always leave. A mode you cannot leave is a mode people are afraid to try. So Stop being the device owner clears what Polylute set (Lock Task, its allowlist, the lock screen and home policies) and then gives up the role. If Android does not confirm that it is gone, Polylute puts everything back as it was, so you are never half out. No factory reset is needed. Afterwards, Polylute is still your home app until you pick another one.

What it costs. Pinned is a convenience, not security. Dedicated is not security either: the optional wake screen has no code, and it does not replace a PIN. To use Dedicated again after leaving it, you need the computer again.

For the curious

For the curiousThe five states the app tells apart

What you ask for is a preference; what Android confirms is a fact. Polylute keeps them apart and works from evidence. It tells five states apart: App mode (Polylute is not the home app), Launcher, Pinned (Android reports app pinning), Dedicated pending (you asked for Dedicated and Android has not confirmed it), and Dedicated active (a device owner, with the lock held).

Dedicated needs the lock actually held. A device owner that is home but not locked is shown as Launcher until the lock is back.

For the curiousAndroid settings shortcuts

Shortcuts to Android’s own settings (Android Settings, USB, Wi-Fi, Bluetooth) are offered only where Lock Task is Polylute’s to manage: in Dedicated, or on a phone that is still a device owner. On a phone at Launcher or Pinned level, or in App mode, you reach Android normally (in Pinned, after you unpin).

Tested on HONOR LGN-NX3