Allow bootjars in system_ext.
Bug: 148385042
Test: Built and booted Pixel 3a both with and without a boot jar in system_ext.
Change-Id: I0702aa8259478a71cf96a5cd3a425071ccdafdfb
diff --git a/java/dexpreopt_config.go b/java/dexpreopt_config.go
index d849dc2..add2e68 100644
--- a/java/dexpreopt_config.go
+++ b/java/dexpreopt_config.go
@@ -89,6 +89,8 @@
// Special apex name "platform" denotes jars do not come from an apex, but are part
// of the platform. Such jars are installed on the /system partition on device.
subdir = "system/framework"
+ } else if apex == "system_ext" {
+ subdir = "system_ext/framework"
} else {
subdir = filepath.Join("apex", apex, "javalib")
}