Skip to content

Improve managed-profile provisioning checks #11

Description

@Stem0794

Follow-up to #10.

Harbor should detect when Android does not permit managed-profile provisioning before launching the provisioning flow, and explain the conflict clearly to the user.

Scope:

  • Check whether ACTION_PROVISION_MANAGED_PROFILE is currently allowed before starting provisioning.
  • Surface a clear unsupported-management-state message instead of launching a flow that cannot succeed.
  • Cover cases where another device-management configuration (for example, an existing device owner) prevents Harbor's normal managed-profile setup.
  • Keep the implementation generic; do not special-case Dhizuku.
  • Preserve Harbor's use of standard Android profile-owner APIs.

This does not imply support for creating Harbor work profiles alongside unsupported device-owner configurations on modern Android; the goal is accurate detection and error handling.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions