Loading services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java +5 −3 Original line number Original line Diff line number Diff line Loading @@ -5526,11 +5526,13 @@ public class DevicePolicyManagerService extends BaseIDevicePolicyManager { // If there is a profile owner, redirect to that; otherwise query the device owner. // If there is a profile owner, redirect to that; otherwise query the device owner. ComponentName aliasChooser = getProfileOwner(caller.getIdentifier()); ComponentName aliasChooser = getProfileOwner(caller.getIdentifier()); if (aliasChooser == null && caller.isSystem()) { if (aliasChooser == null && caller.isSystem()) { ActiveAdmin deviceOwnerAdmin = getDeviceOwnerAdminLocked(); synchronized (getLockObject()) { final ActiveAdmin deviceOwnerAdmin = getDeviceOwnerAdminLocked(); if (deviceOwnerAdmin != null) { if (deviceOwnerAdmin != null) { aliasChooser = deviceOwnerAdmin.info.getComponent(); aliasChooser = deviceOwnerAdmin.info.getComponent(); } } } } } if (aliasChooser == null) { if (aliasChooser == null) { sendPrivateKeyAliasResponse(null, response); sendPrivateKeyAliasResponse(null, response); return; return; Loading Loading
services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java +5 −3 Original line number Original line Diff line number Diff line Loading @@ -5526,11 +5526,13 @@ public class DevicePolicyManagerService extends BaseIDevicePolicyManager { // If there is a profile owner, redirect to that; otherwise query the device owner. // If there is a profile owner, redirect to that; otherwise query the device owner. ComponentName aliasChooser = getProfileOwner(caller.getIdentifier()); ComponentName aliasChooser = getProfileOwner(caller.getIdentifier()); if (aliasChooser == null && caller.isSystem()) { if (aliasChooser == null && caller.isSystem()) { ActiveAdmin deviceOwnerAdmin = getDeviceOwnerAdminLocked(); synchronized (getLockObject()) { final ActiveAdmin deviceOwnerAdmin = getDeviceOwnerAdminLocked(); if (deviceOwnerAdmin != null) { if (deviceOwnerAdmin != null) { aliasChooser = deviceOwnerAdmin.info.getComponent(); aliasChooser = deviceOwnerAdmin.info.getComponent(); } } } } } if (aliasChooser == null) { if (aliasChooser == null) { sendPrivateKeyAliasResponse(null, response); sendPrivateKeyAliasResponse(null, response); return; return; Loading