diff --git a/cc/cc.go b/cc/cc.go index 9c555a11e..ae82b9e26 100644 --- a/cc/cc.go +++ b/cc/cc.go @@ -1858,6 +1858,10 @@ func GetSubnameProperty(actx android.ModuleContext, c LinkableInterface) string if c.SplitPerApiLevel() { subName += "." + c.SdkVersion() } + } else if c.IsStubs() && c.IsSdkVariant() { + // Public API surface (NDK) + // Add a suffix to this stub variant to distinguish it from the module-lib stub variant. + subName = sdkSuffix } return subName