Apex: add NeverAllowRule for updatable am: e17caa63a6
Change-Id: Ie893bf23a57083b594cd0fc5c09adb7a38322969
This commit is contained in:
@@ -821,6 +821,12 @@ func makeApexAvailableWhitelist() map[string][]string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
android.AddNeverAllowRules(android.NeverAllow().
|
||||||
|
ModuleType("apex").
|
||||||
|
With("updatable", "true").
|
||||||
|
With("min_sdk_version", "").
|
||||||
|
Because("All updatable apexes should set min_sdk_version."))
|
||||||
|
|
||||||
android.RegisterModuleType("apex", BundleFactory)
|
android.RegisterModuleType("apex", BundleFactory)
|
||||||
android.RegisterModuleType("apex_test", testApexBundleFactory)
|
android.RegisterModuleType("apex_test", testApexBundleFactory)
|
||||||
android.RegisterModuleType("apex_vndk", vndkApexBundleFactory)
|
android.RegisterModuleType("apex_vndk", vndkApexBundleFactory)
|
||||||
|
Reference in New Issue
Block a user