Fix DO check on headless devices
Bug: 289515470 Test: btest a.d.c.PreferentialNetworkServiceTest Merged-In: Id93322caca55e122339701e4c69b4ded57b8f6cc Change-Id: Id93322caca55e122339701e4c69b4ded57b8f6cc
This commit is contained in:
parent
fd207b88e7
commit
7a7d1ac87d
1 changed files with 6 additions and 4 deletions
|
|
@ -12733,8 +12733,8 @@ public class ConnectivityService extends IConnectivityManager.Stub
|
|||
if (um.isManagedProfile(profile.getIdentifier())) {
|
||||
return true;
|
||||
}
|
||||
if (mDeps.isAtLeastT() && dpm.getDeviceOwner() != null) return true;
|
||||
return false;
|
||||
|
||||
return mDeps.isAtLeastT() && dpm.getDeviceOwnerComponentOnAnyUser() != null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue