Merge "Install dexpreopt artifacts of non_system apps in system_other" into main

This commit is contained in:
Spandan Das
2024-06-28 16:14:57 +00:00
committed by Gerrit Code Review
2 changed files with 2 additions and 2 deletions

View File

@@ -532,7 +532,7 @@ func OdexOnSystemOtherByName(name string, dexLocation string, global *GlobalConf
}
for _, f := range global.PatternsOnSystemOther {
if makefileMatch(filepath.Join(SystemPartition, f), dexLocation) {
if makefileMatch("/" + f, dexLocation) || makefileMatch(filepath.Join(SystemPartition, f), dexLocation) {
return true
}
}

View File

@@ -153,7 +153,7 @@ func TestDexPreoptSystemOther(t *testing.T) {
moduleTests: []moduleTest{
{module: systemModule, expectedPartition: "system_other/system"},
{module: systemProductModule, expectedPartition: "system_other/system/product"},
{module: productModule, expectedPartition: "product"},
{module: productModule, expectedPartition: "system_other/product"},
},
},
}