Merge "Stop installing a profile into an APEX if profiles are disabled."

This commit is contained in:
Vladimir Marko
2021-12-08 15:29:14 +00:00
committed by Gerrit Code Review

View File

@@ -594,8 +594,11 @@ func (b *BootclasspathFragmentModule) provideApexContentInfo(ctx android.ModuleC
if imageConfig != nil { if imageConfig != nil {
info.modules = imageConfig.modules info.modules = imageConfig.modules
info.profilePathOnHost = imageConfig.profilePathOnHost global := dexpreopt.GetGlobalConfig(ctx)
info.profileInstallPathInApex = imageConfig.profileInstallPathInApex if !global.DisableGenerateProfile {
info.profilePathOnHost = imageConfig.profilePathOnHost
info.profileInstallPathInApex = imageConfig.profileInstallPathInApex
}
} }
info.bootImageFilesByArch = bootImageFilesByArch info.bootImageFilesByArch = bootImageFilesByArch