Update dexpreopt_check to check all system server jars.

After this change, standalone system server jars will also be checked.

Bug: 203198541
Test: m nothing
Change-Id: I80f5efe9c7f0386af175d7a37398ffa000d6ba59
This commit is contained in:
Jiakai Zhang 2021-12-21 12:48:27 +00:00
parent 430059b422
commit d806dd4f1d

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)