diff --git a/java/sdk_library.go b/java/sdk_library.go index 031bde3c8..1eb7ab834 100644 --- a/java/sdk_library.go +++ b/java/sdk_library.go @@ -538,9 +538,6 @@ type sdkLibraryProperties struct { // of the API. Api_packages []string - // list of package names that must be hidden from the API - Hidden_api_packages []string - // the relative path to the directory containing the api specification files. // Defaults to "api". Api_dir *string @@ -1966,10 +1963,6 @@ func (module *SdkLibrary) createStubsSourcesAndApi(mctx android.DefaultableHookC if len(module.sdkLibraryProperties.Api_packages) != 0 { droidstubsArgs = append(droidstubsArgs, "--stub-packages "+strings.Join(module.sdkLibraryProperties.Api_packages, ":")) } - if len(module.sdkLibraryProperties.Hidden_api_packages) != 0 { - droidstubsArgs = append(droidstubsArgs, - android.JoinWithPrefix(module.sdkLibraryProperties.Hidden_api_packages, " --hide-package ")) - } droidstubsArgs = append(droidstubsArgs, module.sdkLibraryProperties.Droiddoc_options...) disabledWarnings := []string{"HiddenSuperclass"} if proptools.BoolDefault(module.sdkLibraryProperties.Api_lint.Legacy_errors_allowed, true) {