Merge "Allow service-media-s in apex"
This commit is contained in:
commit
2b7d4e1ba4
3 changed files with 1 additions and 22 deletions
|
@ -51,7 +51,6 @@ var neverallows = []Rule{}
|
|||
func init() {
|
||||
AddNeverAllowRules(createIncludeDirsRules()...)
|
||||
AddNeverAllowRules(createTrebleRules()...)
|
||||
AddNeverAllowRules(createMediaRules()...)
|
||||
AddNeverAllowRules(createJavaDeviceForHostRules()...)
|
||||
AddNeverAllowRules(createCcSdkVariantRules()...)
|
||||
AddNeverAllowRules(createUncompressDexRules()...)
|
||||
|
@ -132,14 +131,6 @@ func createTrebleRules() []Rule {
|
|||
}
|
||||
}
|
||||
|
||||
func createMediaRules() []Rule {
|
||||
return []Rule{
|
||||
NeverAllow().
|
||||
With("libs", "updatable-media").
|
||||
Because("updatable-media includes private APIs. Use updatable_media_stubs instead."),
|
||||
}
|
||||
}
|
||||
|
||||
func createJavaDeviceForHostRules() []Rule {
|
||||
javaDeviceForHostProjectsAllowedList := []string{
|
||||
"external/guava",
|
||||
|
|
|
@ -189,19 +189,6 @@ var neverallowTests = []struct {
|
|||
}`),
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "dependency on updatable-media",
|
||||
fs: map[string][]byte{
|
||||
"Android.bp": []byte(`
|
||||
java_library {
|
||||
name: "needs_updatable_media",
|
||||
libs: ["updatable-media"],
|
||||
}`),
|
||||
},
|
||||
expectedErrors: []string{
|
||||
"updatable-media includes private APIs. Use updatable_media_stubs instead.",
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "java_device_for_host",
|
||||
fs: map[string][]byte{
|
||||
|
|
|
@ -572,6 +572,7 @@ prebuilt_libclang_rt.builtins-x86_64-android(minSdkVersion:(no version))
|
|||
prebuilt_libunwind(minSdkVersion:(no version))
|
||||
prebuilt_test_framework-sdkextensions(minSdkVersion:(no version))
|
||||
server_configurable_flags(minSdkVersion:29)
|
||||
service-media-s(minSdkVersion:29)
|
||||
service-permission(minSdkVersion:current)
|
||||
service-statsd(minSdkVersion:current)
|
||||
SettingsLibActionBarShadow(minSdkVersion:21)
|
||||
|
|
Loading…
Reference in a new issue