Skip to content
Commit 477666d9 authored by Philip P. Moltmann's avatar Philip P. Moltmann
Browse files

No need for getProfileOwnerForUser as SystemApi

Rather use
context.createPackageContextAsUser(context.getPackageName(), 0, user)
        .getSystemService(DevicePolicyManager.class).getProfileOwner();

Test: Looked at permission restricted by device owner in UI
Fixes: 126699845
Change-Id: I3dc16fbe360aaeb416c526cacf5f55ce2c3a1b20
parent 6983ad3f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment