Merge tm-qpr-dev-plus-aosp-without-vendor@9467136

Bug: 264720040
Merged-In: I70802042e5665baa471a3e9e0bc27efaf7a97944
Change-Id: If7ed30b5104e479d61245a768507715c249ec583
This commit is contained in:
Xin Li
2023-01-11 22:46:06 -08:00
2 changed files with 11 additions and 2 deletions

View File

@@ -165,6 +165,7 @@ func createJavaDeviceForHostRules() []Rule {
javaDeviceForHostProjectsAllowedList := []string{
"development/build",
"external/guava",
"external/kotlinx.coroutines",
"external/robolectric-shadows",
"external/robolectric",
"frameworks/layoutlib",

View File

@@ -162,9 +162,17 @@ func (w *Writer) Close() error {
if records > uint16max {
records = uint16max
}
// Only store uint32max for the size and the offset if they don't fit.
// Robolectric currently doesn't support zip64 and fails to find the
// offset to the central directory when the number of files in the zip
// is larger than 2^16.
if size > uint32max {
size = uint32max
}
if offset > uint32max {
offset = uint32max
}
// END ANDROID CHANGE
size = uint32max
offset = uint32max
}
// write end record