diff --git a/java/sdk_library.go b/java/sdk_library.go index eba16e9a4..45aa652e5 100644 --- a/java/sdk_library.go +++ b/java/sdk_library.go @@ -1091,9 +1091,12 @@ func (module *SdkLibrary) createImplLibrary(mctx android.DefaultableHookContext) props := struct { Name *string Visibility []string + Instrument bool }{ Name: proptools.StringPtr(module.implLibraryModuleName()), Visibility: module.sdkLibraryProperties.Impl_library_visibility, + // Set the instrument property to ensure it is instrumented when instrumentation is required. + Instrument: true, } properties := []interface{}{