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

Commit 07716974 authored by Jiyong Park's avatar Jiyong Park Committed by android-build-merger
Browse files

Don't check apex_available for host

am: 583a226c

Change-Id: I2c41f816b7bbe6085c2bf6c03378e7f9fa96a796
parents 2b0d6a86 583a226c
Loading
Loading
Loading
Loading
+7 −5
Original line number Diff line number Diff line
@@ -1191,6 +1191,7 @@ func (a *apexBundle) GenerateAndroidBuildActions(ctx android.ModuleContext) {
	})

	// check apex_available requirements
	if !ctx.Host() {
		for _, fi := range filesInfo {
			if am, ok := fi.module.(android.ApexModule); ok {
				if !am.AvailableFor(ctx.ModuleName()) {
@@ -1199,6 +1200,7 @@ func (a *apexBundle) GenerateAndroidBuildActions(ctx android.ModuleContext) {
				}
			}
		}
	}

	// prepend the name of this APEX to the module names. These names will be the names of
	// modules that will be defined if the APEX is flattened.