Skip dexpreopting android_test_import modules
android_test_import modules should be labelled as tests so they are
not dexpreopted.
Bug: 155778135
Test: m CtsCorruptApkTests_Compressed_Q
Change-Id: I7baa5405d03df03920b01616b030ba77f882a77e
diff --git a/java/app.go b/java/app.go
index 48ef90b..43bdc91 100755
--- a/java/app.go
+++ b/java/app.go
@@ -1398,6 +1398,8 @@
module.processVariants(ctx)
})
+ module.dexpreopter.isTest = true
+
android.InitApexModule(module)
android.InitAndroidMultiTargetsArchModule(module, android.DeviceSupported, android.MultilibCommon)
android.InitDefaultableModule(module)