Merge "Get device owner app admin" into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
2844eaf9f7
@@ -12269,7 +12269,7 @@ public class DevicePolicyManagerService extends BaseIDevicePolicyManager {
|
|||||||
+ " only profile owner or device owner may control the preferential"
|
+ " only profile owner or device owner may control the preferential"
|
||||||
+ " network service");
|
+ " network service");
|
||||||
synchronized (getLockObject()) {
|
synchronized (getLockObject()) {
|
||||||
final ActiveAdmin requiredAdmin = getProfileOwnerAdminLocked(
|
final ActiveAdmin requiredAdmin = getDeviceOrProfileOwnerAdminLocked(
|
||||||
caller.getUserId());
|
caller.getUserId());
|
||||||
if (!requiredAdmin.mPreferentialNetworkServiceConfigs.equals(
|
if (!requiredAdmin.mPreferentialNetworkServiceConfigs.equals(
|
||||||
preferentialNetworkServiceConfigs)) {
|
preferentialNetworkServiceConfigs)) {
|
||||||
@@ -12299,7 +12299,8 @@ public class DevicePolicyManagerService extends BaseIDevicePolicyManager {
|
|||||||
+ " only profile owner or device owner may retrieve the preferential"
|
+ " only profile owner or device owner may retrieve the preferential"
|
||||||
+ " network service configurations");
|
+ " network service configurations");
|
||||||
synchronized (getLockObject()) {
|
synchronized (getLockObject()) {
|
||||||
final ActiveAdmin requiredAdmin = getProfileOwnerAdminLocked(caller.getUserId());
|
final ActiveAdmin requiredAdmin = getDeviceOrProfileOwnerAdminLocked(
|
||||||
|
caller.getUserId());
|
||||||
return requiredAdmin.mPreferentialNetworkServiceConfigs;
|
return requiredAdmin.mPreferentialNetworkServiceConfigs;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user