summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Scarlett Song <scarlettsong@google.com> 2024-11-18 20:19:18 +0000
committer Scarlett Song <scarlettsong@google.com> 2024-11-18 22:42:32 +0000
commitba16e7ec7888ae185b925cd7c6f4d491ff393096 (patch)
tree80b92fb182a864d6276c1551ee057cd7c3949c48
parentb3747b038aef6d15a0d6624c0689bc713d2bd75b (diff)
Update minSdkVersion=Baklava for health permissions background permission test
When we enabled the flag, verifyBackgroundPropertiesForHealthPermissions() CTS test on V image fails. We're able to reproduce this locally, and we found the reason is: the V-image does not have this flag(flag not enabled on device), but the test is built from head where the flag is enabled(flag enabled for test). To fix this, we need to update the minSdkVerision so that it does not run on a device that has inconsistent flag values. Test: https://android-build.corp.google.com/builds/abtd/run/L10800030007846189 Relnote: Granular health permission phase one Bug: 364638912 Bug: 379377663 Flag: android.permission.flags.replace_body_sensor_permission_enabled LOW_COVERAGE_REASON=TEST_ONLY Change-Id: I74c431778d0069bd40f9c4857b4a72521a511c92
-rw-r--r--tests/cts/permission/src/android/permission/cts/BackgroundPermissionsTest.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/cts/permission/src/android/permission/cts/BackgroundPermissionsTest.java b/tests/cts/permission/src/android/permission/cts/BackgroundPermissionsTest.java
index fcdccd87a..f4bed4ada 100644
--- a/tests/cts/permission/src/android/permission/cts/BackgroundPermissionsTest.java
+++ b/tests/cts/permission/src/android/permission/cts/BackgroundPermissionsTest.java
@@ -95,8 +95,7 @@ public class BackgroundPermissionsTest {
verifyBackgroundPermissionsProperties("android");
}
- @SdkSuppress(minSdkVersion = Build.VERSION_CODES.VANILLA_ICE_CREAM,
- codeName = "VanillaIceCream")
+ @SdkSuppress(minSdkVersion = Build.VERSION_CODES.BAKLAVA, codeName = "Baklava")
@RequiresFlagsEnabled({Flags.FLAG_REPLACE_BODY_SENSOR_PERMISSION_ENABLED})
@Test
@AppModeFull(reason = "Instant apps cannot read properties of other packages")