@@ -357,7 +357,7 @@ public void testIsDeviceOwner_failsWhenNoPackagesForUid() throws Exception {
357
357
}
358
358
359
359
@ Test
360
- @ Config (sdk = 21 )
360
+ @ Config (sdk = Config . OLDEST_SDK )
361
361
public void testIsProfileOwner_succeedsForProfileOwner () throws Exception {
362
362
PackageInfo info =
363
363
newBuilder ().setPackageName (OTHER_UID_PACKAGE_NAME ).setSignatures (SIG2 ).build ();
@@ -371,7 +371,7 @@ public void testIsProfileOwner_succeedsForProfileOwner() throws Exception {
371
371
}
372
372
373
373
@ Test
374
- @ Config (sdk = 21 )
374
+ @ Config (sdk = Config . OLDEST_SDK )
375
375
public void testIsProfileOwner_failsForNotProfileOwner () throws Exception {
376
376
PackageInfo info =
377
377
newBuilder ().setPackageName (OTHER_UID_PACKAGE_NAME ).setSignatures (SIG2 ).build ();
@@ -385,7 +385,7 @@ public void testIsProfileOwner_failsForNotProfileOwner() throws Exception {
385
385
}
386
386
387
387
@ Test
388
- @ Config (sdk = 21 )
388
+ @ Config (sdk = Config . OLDEST_SDK )
389
389
public void testIsProfileOwner_failsWhenNoPackagesForUid () throws Exception {
390
390
policy = SecurityPolicies .isProfileOwner (appContext );
391
391
@@ -425,7 +425,7 @@ public void testIsProfileOwnerOnOrgOwned_failsForProfileOwnerOnNonOrgOwned() thr
425
425
}
426
426
427
427
@ Test
428
- @ Config (sdk = 21 )
428
+ @ Config (sdk = Config . OLDEST_SDK )
429
429
public void testIsProfileOwnerOnOrgOwned_failsForNotProfileOwner () throws Exception {
430
430
PackageInfo info =
431
431
newBuilder ().setPackageName (OTHER_UID_PACKAGE_NAME ).setSignatures (SIG2 ).build ();
@@ -439,7 +439,7 @@ public void testIsProfileOwnerOnOrgOwned_failsForNotProfileOwner() throws Except
439
439
}
440
440
441
441
@ Test
442
- @ Config (sdk = 21 )
442
+ @ Config (sdk = Config . OLDEST_SDK )
443
443
public void testIsProfileOwnerOnOrgOwned_failsWhenNoPackagesForUid () throws Exception {
444
444
policy = SecurityPolicies .isProfileOwnerOnOrganizationOwnedDevice (appContext );
445
445
0 commit comments