commit | 477666d963d152a57720aa6aca8962430b0fe41c | [log] [tgz] |
---|---|---|
author | Philip P. Moltmann <moltmann@google.com> | Mon Mar 18 09:13:44 2019 -0700 |
committer | Philip P. Moltmann <moltmann@google.com> | Mon Mar 18 18:43:40 2019 +0000 |
tree | 4ccaa2d7abee7509c65d07e083849bb926785b0c | |
parent | 6983ad3f17566a44d36886affb5e877e7e4ae34c [diff] |
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