Concepts
What happens to a DAP on update
What an update does at each level, why Dedicated locks itself again, and why Launcher and Pinned may ask you once.
In short
- An update replaces Polylute’s files and stops the app. What you see next depends on your level.
- Dedicated: Polylute puts its device-owner settings back, starts its own home screen, and the phone is locked again. You do nothing.
- Launcher or Pinned: if the update took the home app role away, Polylute asks you once to set it again. A pin does not survive an update, so Pinned asks you to confirm it again.
- App mode: nothing special happens.
What happens on update
An update replaces Polylute’s files and stops the app. What you see next depends on your level.
In words
Dedicated: Android replaces the app. Polylute restores its device-owner policies, starts its own home screen, and the phone is locked again.
Launcher or Pinned: if the update did not take the home app role away, or you had left it on purpose, nothing happens. Otherwise Polylute shows one quiet notice (“Polylute is no longer your home app. The update reset it. Tap to set it again.”), or, if notices are off, asks once the next time you open it. Android’s own dialog then makes Polylute the home app again, and your level comes back. Pinned asks you to confirm the pin again, because a pin does not survive an update.
How it works
Dedicated
Replacing the app kills the process, and with it the lock Android was holding. Nothing else would start the app again, so the phone would sit on whatever Android shows next. As a device owner, Polylute is allowed to start its own screen from the update broadcast. It first restores its policies. Then, if the policies are back in force, Polylute is the home app and Android reads nothing locked, it starts its own home screen. That screen asks for the lock, and the phone is locked again.
It never starts anything on a phone without the device-owner role, nor at boot (Android starts the home app itself then), nor on a phone where you chose another launcher on purpose.
Launcher and Pinned
Without the device-owner role, Polylute cannot make itself the home app after an update. On the HONOR we used, an update can reset the home app role, and then Polylute loses the level you had. Other phones may or may not do the same, so Polylute decides from what it reads, not from the phone’s brand. It remembers your level, and after an update asks:
- once per update;
- only if Polylute was the home app at Launcher or Pinned level, is not any more, and you did not leave on purpose;
- never for Dedicated, which comes back by itself.
The ask is one quiet notice. If notices are off for Polylute, it is one question the next time you open the app. Either way Android’s own dialog does the actual change: Polylute cannot set the home app by itself. When the role is back, Polylute restores your level. For Pinned that means Android asks you to confirm the pin again.
Why we built it this way
Dedicated heals itself, because it can. A Dedicated phone is meant to be an appliance. You should not have to touch it after an update. The device-owner role is what lets Polylute restore the lock and start its home screen on its own.
Launcher and Pinned ask, because they must. Only you can choose a home app, so the best Polylute can do is notice and ask. We chose to ask once per update, and never more. An app that keeps nagging after every update is worse than one that waits. It costs you one tap on a phone where the update resets the role.
The pin does not come back by itself. Android ends app pinning when the app stops, and only you can confirm a new pin. So Polylute asks for that confirmation again, and does not try to pin silently.
We decide from what we read, not from the brand. We do not assume a phone resets the home app role. If it keeps the role, Polylute does nothing.