Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2395fb4b authored by Jooyung Han's avatar Jooyung Han Committed by Automerger Merge Worker
Browse files

Apex: add NeverAllowRule for updatable am: e17caa63

Change-Id: I511dd13c6fc63537eb6abe1af9a8981333f5c4c1
parents b2add5e4 e17caa63
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -1005,6 +1005,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)