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

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

Change-Id: I5b586a3051a54fbb52a1703d6bccaa3cc07bf5fe
This commit is contained in:
Jiakai Zhang 2021-12-22 21:20:05 +00:00 committed by Automerger Merge Worker
commit 8f9664b188

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)