Limit framework module api packages
Use the same whitelist of packages that the non-updatable part of the platform uses for now. This avoids exposing some internal classes in a follow-up CL. Move telephony off the module-wide defaults for now, as the telephony stubs are causing problems. Bug: 149293194 Test: m checkapi Change-Id: Iedc8c309cef8290ac14e1ad32b5b66656145f557
This commit is contained in:
17
Android.bp
17
Android.bp
@@ -1275,7 +1275,22 @@ droidstubs {
|
||||
removed_api_file: "telephony/api/system-removed.txt",
|
||||
},
|
||||
},
|
||||
defaults: ["framework-module-stubs-defaults-systemapi"],
|
||||
// TODO: make telephony inherit the shared stubs and remove this
|
||||
args: "--show-annotation android.annotation.SystemApi\\(" +
|
||||
"client=android.annotation.SystemApi.Client.PRIVILEGED_APPS" +
|
||||
"\\) " +
|
||||
"--error UnhiddenSystemApi " +
|
||||
"--hide BroadcastBehavior " +
|
||||
"--hide DeprecationMismatch " +
|
||||
"--hide HiddenSuperclass " +
|
||||
"--hide HiddenTypedefConstant " +
|
||||
"--hide HiddenTypeParameter " +
|
||||
"--hide MissingPermission " +
|
||||
"--hide RequiresPermission " +
|
||||
"--hide SdkConstant " +
|
||||
"--hide Todo " +
|
||||
"--hide Typo " +
|
||||
"--hide UnavailableSymbol ",
|
||||
filter_packages: ["android.telephony"],
|
||||
sdk_version: "system_current",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user