Allow the user to explicitly set the java Uncompress_dex property.
ART tests need to explicitly control the compression. Bug: 157239179 Test: "atest ArtGtestsTarget" with http://go/aog/1302773 Change-Id: I4490aa0a61fa71f830feb6a46dffd8d20fccfc66 Merged-In: I4490aa0a61fa71f830feb6a46dffd8d20fccfc66
This commit is contained in:
@@ -55,6 +55,7 @@ func init() {
|
||||
AddNeverAllowRules(createMediaRules()...)
|
||||
AddNeverAllowRules(createJavaDeviceForHostRules()...)
|
||||
AddNeverAllowRules(createCcSdkVariantRules()...)
|
||||
AddNeverAllowRules(createUncompressDexRules()...)
|
||||
}
|
||||
|
||||
// Add a NeverAllow rule to the set of rules to apply.
|
||||
@@ -210,6 +211,15 @@ func createCcSdkVariantRules() []Rule {
|
||||
}
|
||||
}
|
||||
|
||||
func createUncompressDexRules() []Rule {
|
||||
return []Rule{
|
||||
NeverAllow().
|
||||
NotIn("art").
|
||||
WithMatcher("uncompress_dex", isSetMatcherInstance).
|
||||
Because("uncompress_dex is only allowed for certain jars for test in art."),
|
||||
}
|
||||
}
|
||||
|
||||
func neverallowMutator(ctx BottomUpMutatorContext) {
|
||||
m, ok := ctx.Module().(Module)
|
||||
if !ok {
|
||||
|
Reference in New Issue
Block a user