Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3a483594 authored by Amith Yamasani's avatar Amith Yamasani
Browse files

Use correct package name for profile owner

Fixes reboot loop when you have a managed profile on your device.

Change-Id: I935ded447f226ee0507d3dcf22a730a7fb61a0c0
parent b8b99c0f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
                }