Stop using '&' for class loader context.

Test: m
Bug: 132357300
Change-Id: I01a5008d5b84820f793c1c23fe2e4c4687cf4acf
This commit is contained in:
Nicolas Geoffray 2021-02-24 21:09:59 +00:00
parent 7ad17bdad5
commit 863f3b9fb4

View file

@ -287,12 +287,9 @@ func dexpreoptCommand(ctx android.PathContext, globalSoong *GlobalSoongConfig, g
} else {
// Other libraries or APKs for which the exact <uses-library> list is unknown.
// Pass special class loader context to skip the classpath and collision check.
// This will get removed once LOCAL_USES_LIBRARIES is enforced.
// Right now LOCAL_USES_LIBRARIES is opt in, for the case where it's not specified we still default
// to the &.
// We assume the class loader context is empty.
rule.Command().
Text(`class_loader_context_arg=--class-loader-context=\&`).
Text(`class_loader_context_arg=--class-loader-context=PCL[]`).
Text(`stored_class_loader_context_arg=""`)
}