summaryrefslogtreecommitdiff
path: root/core/java/android
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2021-09-30 11:08:11 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2021-09-30 11:08:11 +0000
commit29b748194feb215fbe85d5e4d2eec520a130d5f6 (patch)
tree898040fef3829b5829402ef8f2a11482d666b297 /core/java/android
parent4d0b9f062b9fc7b37ba99368cf8b46877af45eca (diff)
parent74d1de594bccc15ad9e6d645b04945abd6bb22f7 (diff)
Merge "Removed unused DevicePolicyManager.setDeviceOwner() methods."
Diffstat (limited to 'core/java/android')
-rw-r--r--core/java/android/app/admin/DevicePolicyManager.java27
1 files changed, 0 insertions, 27 deletions
diff --git a/core/java/android/app/admin/DevicePolicyManager.java b/core/java/android/app/admin/DevicePolicyManager.java
index f572576222da..4051cc9b79ba 100644
--- a/core/java/android/app/admin/DevicePolicyManager.java
+++ b/core/java/android/app/admin/DevicePolicyManager.java
@@ -7709,33 +7709,6 @@ public class DevicePolicyManager {
/**
* @hide
- * Sets the given package as the device owner.
- * Same as {@link #setDeviceOwner(ComponentName, String)} but without setting a device owner name.
- * @param who the component name to be registered as device owner.
- * @return whether the package was successfully registered as the device owner.
- * @throws IllegalArgumentException if the package name is null or invalid
- * @throws IllegalStateException If the preconditions mentioned are not met.
- */
- public boolean setDeviceOwner(ComponentName who) {
- return setDeviceOwner(who, null);
- }
-
- /**
- * @hide
- */
- public boolean setDeviceOwner(ComponentName who, int userId) {
- return setDeviceOwner(who, null, userId);
- }
-
- /**
- * @hide
- */
- public boolean setDeviceOwner(ComponentName who, String ownerName) {
- return setDeviceOwner(who, ownerName, UserHandle.USER_SYSTEM);
- }
-
- /**
- * @hide
* Sets the given package as the device owner. The package must already be installed. There
* must not already be a device owner.
* Only apps with the MANAGE_PROFILE_AND_DEVICE_OWNERS permission and the shell uid can call