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

Commit c5239513 authored by Inseob Kim's avatar Inseob Kim
Browse files

Allow sdk and core modules to use sysprop_library

This allows javaSdk and javaCore modules to link against Public stub of
Platform owned sysprop_library.

Bug: 141246285
Test: m nothing
Change-Id: Ie11c43cc72ddd0ee13e4163955775c13eb9dbe92
parent 17c51a4f
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -627,12 +627,9 @@ func (j *Module) deps(ctx android.BottomUpMutatorContext) {
			}

			linkType, _ := j.getLinkType(ctx.ModuleName())
			if linkType == javaSystem {
			// only platform modules can use internal props
			if linkType != javaPlatform {
				ret[idx] = stub
			} else if linkType != javaPlatform {
				ctx.PropertyErrorf("sdk_version",
					"can't link against sysprop_library %q from a module using public or core API",
					lib)
			}
		}