Skip to content

Commit 4a8ba05

Browse files
DeviceInfracopybara-github
authored andcommitted
Internal change
PiperOrigin-RevId: 750990358
1 parent 25ac874 commit 4a8ba05

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/java/com/google/devtools/mobileharness/infra/controller/test/util/xtsdownloader/MctsDynamicDownloadPlugin.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,11 @@ public class MctsDynamicDownloadPlugin implements XtsDynamicDownloadPlugin {
8585

8686
private static final String NON_PRELOADED_KEY = "non-preloaded";
8787

88-
// Only consider the Module released in Android V+ , the month digits (3,4 index) should not be 00
89-
// or 99.
88+
// Only consider the Module released in Android V+ and not beta version, 5th digit >= 4 indicates
89+
// platform beta (or mainline beta if >=8 or daily if => 9), refer to b/413266608 for more
90+
// details.
9091
private static final Pattern VERSIONCODE_PATTERN =
91-
Pattern.compile("(3[5-9]|[4-9][0-9])(?!(00|99))\\d{2}(?!99999)\\d{5}");
92+
Pattern.compile("(3[5-9]|[4-9][0-9])(?!(00|99))\\d{2}[0-3]\\d{4}");
9293

9394
// Add the versioncode from
9495
// android/platform/superproject/main/+/main:build/release/flag_declarations/RELEASE_DEFAULT_UPDATABLE_MODULE_VERSION.textproto

src/javatests/com/google/devtools/mobileharness/infra/controller/test/util/xtsdownloader/MctsDynamicDownloadPluginTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,18 +84,18 @@ public void setUp() throws MobileHarnessException, InterruptedException {
8484
.thenReturn(XtsConstants.DYNAMIC_MCTS_JOB_NAME);
8585
when(mockAndroidPackageManagerUtil.getAppVersionCode(
8686
any(), eq("com.google.android.modulemetadata")))
87-
.thenReturn(351050004);
87+
.thenReturn(351030004);
8888
when(mockAndroidPackageManagerUtil.getAppVersionCode(
8989
any(), eq("com.google.android.captiveportallogin")))
90-
.thenReturn(351050004);
90+
.thenReturn(351030004);
9191
when(mockAndroidPackageManagerUtil.getAppVersionCode(any(), eq("com.google.android.conscrypt")))
9292
.thenReturn(350050004);
9393
when(mockAndroidPackageManagerUtil.getAppVersionCode(
9494
any(), eq("com.google.android.go.configinfrastructure")))
9595
.thenReturn(341050004);
9696
when(mockAndroidPackageManagerUtil.getAppVersionCode(
9797
any(), eq("com.google.android.documentsui")))
98-
.thenReturn(359999999);
98+
.thenReturn(351059999);
9999
when(mockAdbUtil.getProperty(any(), eq(AndroidProperty.ABI))).thenReturn("arm64-v8a");
100100
when(mockAdbUtil.getProperty(any(), eq(AndroidProperty.SDK_VERSION))).thenReturn("30");
101101
when(mockAdbUtil.getProperty(any(), eq(AndroidProperty.CODENAME))).thenReturn("fake_codename");

0 commit comments

Comments
 (0)