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

Commit 0bc18c8f authored by Jooyung Han's avatar Jooyung Han Committed by Automerger Merge Worker
Browse files

Apex: add NeverAllowRule for updatable am: e17caa63 am: 2395fb4b

Change-Id: I56e8b236c99c7382bc87171f7371968e997321ed
parents 53daf455 2395fb4b
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1005,6 +1005,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)