Merge "Update dexpreopt_check to check all system server jars." am: 59571ddf67 am: 9758103119 am: 8f9664b188 am: f2d6aea0d4

Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1930899

Change-Id: Ieb093f9c663d02f79ab92d110ff67fd2bd4d3087
This commit is contained in:
Jiakai Zhang
2021-12-22 22:01:41 +00:00
committed by Automerger Merge Worker

View File

@@ -72,8 +72,7 @@ func (m *dexpreoptSystemserverCheck) GenerateAndroidBuildActions(ctx android.Mod
return
}
// TODO(b/203198541): Check all system server jars.
systemServerJars := global.AllSystemServerClasspathJars(ctx)
systemServerJars := global.AllSystemServerJars(ctx)
for _, jar := range systemServerJars.CopyOfJars() {
dexLocation := dexpreopt.GetSystemServerDexLocation(ctx, global, jar)
odexLocation := dexpreopt.ToOdexPath(dexLocation, targets[0].Arch.ArchType)