diff options
Diffstat (limited to 'apex/apex.go')
-rw-r--r-- | apex/apex.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/apex/apex.go b/apex/apex.go index 04b667f8..9489f5bf 100644 --- a/apex/apex.go +++ b/apex/apex.go @@ -511,6 +511,17 @@ func (a *apexBundle) DepsMutator(ctx android.BottomUpMutatorContext) { a.properties.Multilib.Prefer32.Binaries, target.String(), a.getImageVariation(config)) } + + if strings.HasPrefix(ctx.ModuleName(), "com.android.runtime") && target.Os.Class == android.Device { + for _, sanitizer := range ctx.Config().SanitizeDevice() { + if sanitizer == "hwaddress" { + addDependenciesForNativeModules(ctx, + []string{"libclang_rt.hwasan-aarch64-android"}, + nil, target.String(), a.getImageVariation(config)) + break + } + } + } } } |