PolyluteDocs polylute.app

Reference

adb and device-owner commands

The one command that makes Polylute the device owner for Dedicated mode, for the release app and for a debug build, and what each part means.

On this page

In short

  • Only Dedicated mode needs a command. It runs once, on a computer, with adb.
  • There are two versions: one for the release app (app.polylute) and one for a debug build (app.polylute.debug), which is a separate app.
  • Polylute shows the right command for the app you have installed, with a Copy command button, in Settings › Home and DAP mode.
  • Leaving Dedicated needs no command: use Stop being the device owner in the app.

Before you run it

  • Install adb on the computer (it comes with Android’s platform-tools), turn on USB debugging on the phone and connect it.
  • The phone must have no accounts and no extra users at that moment. Android only names a device owner on a phone that looks unused. The full steps are in Set up Dedicated.

To check that the computer sees the phone:

Run this on the computer
adb devices

The phone should be listed. If it says it is unauthorised, accept the question on the phone first.

The command

For the release app, the one you download from GitHub:

Release app, run this on the computer
adb shell dpm set-device-owner app.polylute/com.lostf1sh.pixelplayeross.dap.admin.DapDeviceAdminReceiver

For a debug build you made yourself, which is another app that installs next to the release one:

Debug build, run this on the computer
adb shell dpm set-device-owner app.polylute.debug/com.lostf1sh.pixelplayeross.dap.admin.DapDeviceAdminReceiver
The Home and DAP mode page of a phone that is not yet the device owner, scrolled to the adb command with its Copy command button.
The app shows the command for the build you are running.

What the parts mean

Reading the command
PartMeaning
adb shellRun the rest on the phone.
dpm set-device-ownerAndroid’s device policy tool: make this app the device owner.
app.polyluteThe app’s package name. A debug build is app.polylute.debug.
The last partcom.lostf1sh.pixelplayeross.dap.admin.DapDeviceAdminReceiver is the part of Polylute that Android talks to as device owner. The same name is used in both builds.

What happens, and what does not

  • Android may refuse, for example if an account still exists. Nothing is active until Android confirms it. If it refuses, see Dedicated: I can’t make Polylute the device owner.
  • As device owner, Polylute locks the phone to itself and does a few more things for the player, such as switching Wi-Fi and Bluetooth when you ask. It does not erase data, restrict users or hide apps. The full list, and the reasons, are in DAP levels: Launcher, Pinned, Dedicated.
  • To give up the role, open Settings › Home and DAP mode › Stop being the device owner. No computer and no factory reset: see Leave Dedicated mode. The page itself is explained in Home and DAP mode.

More

Tested on HONOR LGN-NX3