Apex: add NeverAllowRule for updatable am: e17caa63a6

Change-Id: Ie893bf23a57083b594cd0fc5c09adb7a38322969
This commit is contained in:
Jooyung Han
2020-04-08 15:56:17 +00:00
committed by Automerger Merge Worker

View File

@@ -821,6 +821,12 @@ func makeApexAvailableWhitelist() map[string][]string {
}
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_test", testApexBundleFactory)
android.RegisterModuleType("apex_vndk", vndkApexBundleFactory)