PolyluteDocs polylute.app

GuidesDAP mode

Set up Dedicated

Turn a spare phone into a locked-down music player. It takes a computer and one command, once.

On this page

In short

  • Dedicated makes the phone do one thing: play music with Polylute. Android keeps it locked on Polylute.
  • It needs a computer and one command, once. Everything else in Polylute needs only the app.
  • You can leave Dedicated at any time from Polylute’s settings, with no factory reset: see Leave Dedicated mode.
  • After an update, a Dedicated phone locks itself on Polylute again: see After an update (Launcher, Pinned and Dedicated).

Is Dedicated for you?

Dedicated is for a phone that will only be a player, ideally a spare one. On a phone you use every day, App mode or Pinned is the better fit.

The ways to use Polylute, from lightest to strictest
LevelWhat you needWhat it does
App modeNothingPolylute is not your home app. It works like any other music app.
LauncherOnly the app. Choose Polylute as the home app.Polylute is your home screen. Nothing is locked: Android works as usual.
PinnedOnly the app. You confirm a dialog in Android.Android’s app pinning keeps Polylute on screen until you unpin it. No computer and no reset.
DedicatedA computer with adb, once. A phone with no accounts at that moment.Polylute becomes the device owner and locks the phone to itself with Android’s Lock Task.

If you only want Polylute locked on screen, read Pin Polylute (Pinned level) instead. It needs no computer.

For the curiousWhat the device owner does, and what it does not

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. That 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 or hide apps.

When the wake screen is on, it turns the display off after 30 seconds without a touch.

Set up Dedicated

  1. Install Polylute and turn on USB debugging.

    USB debugging is in Android’s Developer options.

  2. Remove every account from the phone, and every extra user.
  3. From a computer, run this command.
    Run this on the computer
    adb shell dpm set-device-owner app.polylute/com.lostf1sh.pixelplayeross.dap.admin.DapDeviceAdminReceiver

    Settings › Home and DAP mode shows the command for the app you have installed, with a Copy command button. Android may refuse, for example if an account still exists. Nothing is active until Android confirms it.

    The Home and DAP mode page of a phone that is not yet the device owner. It explains what Dedicated needs and ends with the adb command to run on the computer.
    The page shows the command. It is the same one as above, for the app you have installed.
  4. Add your accounts back.
  5. Make Polylute the home app.

    Settings › Home and DAP mode › Choose home app. On a device-owner phone the level is Dedicated. There is nothing else to choose. The whole page is explained in Home and DAP mode.

Set up DedicatedSeven steps from top to bottom: install and turn on USB debugging, remove accounts and extra users, run the adb command on a computer, Android confirms or refuses, add the accounts back, choose Polylute as the home app, and the phone is Dedicated. Set up (once) Install Polylute, turn on USB debugging Remove every account and every extra user On a computer, once: adb shell dpm set-device-owner Android confirms (it may refuse) Add your accounts back Choose Polylute as the home app Dedicated locked with Android’s Lock Task
Setting up, once. Amber marks the one step that needs a computer.

In words

Install Polylute and turn on USB debugging; remove every account and extra user; on a computer run the adb command; Android confirms, or refuses; add your accounts back; choose Polylute as the home app. The phone is now Dedicated and locked with Lock Task.

What next

Dedicated is now on. To change your mind, read Leave Dedicated mode. To see what the optional lock screen and the Device page offer, read The DAP lock screen and device controls.

If something goes wrong

Why it works this way

Why there are three levels, what the device-owner role is for, and why the accounts have to go: read DAP levels: Launcher, Pinned, Dedicated.

Tested on HONOR LGN-NX3