@@ -357,7 +357,7 @@ public void testIsDeviceOwner_failsWhenNoPackagesForUid() throws Exception {
357357 }
358358
359359 @ Test
360- @ Config (sdk = 21 )
360+ @ Config (sdk = Config . OLDEST_SDK )
361361 public void testIsProfileOwner_succeedsForProfileOwner () throws Exception {
362362 PackageInfo info =
363363 newBuilder ().setPackageName (OTHER_UID_PACKAGE_NAME ).setSignatures (SIG2 ).build ();
@@ -371,7 +371,7 @@ public void testIsProfileOwner_succeedsForProfileOwner() throws Exception {
371371 }
372372
373373 @ Test
374- @ Config (sdk = 21 )
374+ @ Config (sdk = Config . OLDEST_SDK )
375375 public void testIsProfileOwner_failsForNotProfileOwner () throws Exception {
376376 PackageInfo info =
377377 newBuilder ().setPackageName (OTHER_UID_PACKAGE_NAME ).setSignatures (SIG2 ).build ();
@@ -385,7 +385,7 @@ public void testIsProfileOwner_failsForNotProfileOwner() throws Exception {
385385 }
386386
387387 @ Test
388- @ Config (sdk = 21 )
388+ @ Config (sdk = Config . OLDEST_SDK )
389389 public void testIsProfileOwner_failsWhenNoPackagesForUid () throws Exception {
390390 policy = SecurityPolicies .isProfileOwner (appContext );
391391
@@ -425,7 +425,7 @@ public void testIsProfileOwnerOnOrgOwned_failsForProfileOwnerOnNonOrgOwned() thr
425425 }
426426
427427 @ Test
428- @ Config (sdk = 21 )
428+ @ Config (sdk = Config . OLDEST_SDK )
429429 public void testIsProfileOwnerOnOrgOwned_failsForNotProfileOwner () throws Exception {
430430 PackageInfo info =
431431 newBuilder ().setPackageName (OTHER_UID_PACKAGE_NAME ).setSignatures (SIG2 ).build ();
@@ -439,7 +439,7 @@ public void testIsProfileOwnerOnOrgOwned_failsForNotProfileOwner() throws Except
439439 }
440440
441441 @ Test
442- @ Config (sdk = 21 )
442+ @ Config (sdk = Config . OLDEST_SDK )
443443 public void testIsProfileOwnerOnOrgOwned_failsWhenNoPackagesForUid () throws Exception {
444444 policy = SecurityPolicies .isProfileOwnerOnOrganizationOwnedDevice (appContext );
445445
0 commit comments