summaryrefslogtreecommitdiffstats
path: root/services/devicepolicy
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2014-05-16 15:25:33 -0700
committerAmith Yamasani <yamasani@google.com>2014-05-16 15:25:33 -0700
commit3a483594436cc477529b3f7c31b3242ee4707705 (patch)
treec92936170cb239bbec7c9b22d8122d777179c7c9 /services/devicepolicy
parentb8b99c0fc0c22d509c500af5eadec8f7edd75c8f (diff)
downloadframeworks_base-3a483594436cc477529b3f7c31b3242ee4707705.zip
frameworks_base-3a483594436cc477529b3f7c31b3242ee4707705.tar.gz
frameworks_base-3a483594436cc477529b3f7c31b3242ee4707705.tar.bz2
Use correct package name for profile owner
Fixes reboot loop when you have a managed profile on your device. Change-Id: I935ded447f226ee0507d3dcf22a730a7fb61a0c0
Diffstat (limited to 'services/devicepolicy')
-rw-r--r--services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java b/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java
index edbbc9f..e2cd4e2 100644
--- a/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java
+++ b/services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java
@@ -1224,7 +1224,7 @@ public class DevicePolicyManagerService extends IDevicePolicyManager.Stub {
}
for (Integer i : mDeviceOwner.getProfileOwnerKeys()) {
try {
- mAppOpsService.setProfileOwner(mDeviceOwner.getProfileOwnerName(i), i);
+ mAppOpsService.setProfileOwner(mDeviceOwner.getProfileOwnerPackageName(i), i);
} catch (RemoteException e) {
Log.w(LOG_TAG, "Unable to notify AppOpsService of ProfileOwner", e);
}