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
Loading
Please register or sign in to comment