Allow VNDK extensions under vendor or device
This commit allows VNDK extensions (vndk.enabled:true and vendor:true) to reside under vendor/* or device/*. VNDK extensions will be installed into /vendor/lib[64]/vndk[-sp]. It is reasonable for their source being under vendor/* or device/*. Bug: 74506774 Test: lunch aosp_walleye-userdebug && make # runs unit tests Change-Id: I406c5bef10f5c549371dd978b8ecc16c65a7af4b
This commit is contained in:
@@ -46,9 +46,15 @@ func registerNeverallowMutator(ctx RegisterMutatorsContext) {
|
||||
}
|
||||
|
||||
var neverallows = []*rule{
|
||||
neverallow().in("vendor", "device").with("vndk.enabled", "true").
|
||||
neverallow().
|
||||
in("vendor", "device").
|
||||
with("vndk.enabled", "true").
|
||||
without("vendor", "true").
|
||||
because("the VNDK can never contain a library that is device dependent."),
|
||||
neverallow().with("vndk.enabled", "true").without("owner", "").
|
||||
neverallow().
|
||||
with("vndk.enabled", "true").
|
||||
without("vendor", "true").
|
||||
without("owner", "").
|
||||
because("a VNDK module can never have an owner."),
|
||||
neverallow().notIn("libcore", "development").with("no_standard_libs", "true"),
|
||||
|
||||
|
Reference in New Issue
Block a user