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

Commit e47ba7b5 authored by Yu Liu's avatar Yu Liu
Browse files

Change enforceAppUpdatability to use ModuleProxy.

Bug: 377723687
Test: Unit tests and compare the ninja and mk files generated.
Change-Id: I9113916e2124bc22a3d492dbe092a60e8809ab99
parent 63bdf633
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2340,7 +2340,7 @@ func (a *apexBundle) enforceAppUpdatability(mctx android.ModuleContext) {
	}
	if a.Updatable() {
		// checking direct deps is sufficient since apex->apk is a direct edge, even when inherited via apex_defaults
		mctx.VisitDirectDeps(func(module android.Module) {
		mctx.VisitDirectDepsProxy(func(module android.ModuleProxy) {
			if appInfo, ok := android.OtherModuleProvider(mctx, module, java.AppInfoProvider); ok {
				// ignore android_test_app
				if !appInfo.TestHelperApp && !appInfo.Updatable {