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

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

Change-Id: Ied2c43f01d33212c8bb64e14eca7f0a5d85639d1
This commit is contained in:
Jiakai Zhang 2021-12-22 21:02:17 +00:00 committed by Automerger Merge Worker
commit 9758103119

View file

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