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

Commit a46c2b19 authored by Inseob Kim's avatar Inseob Kim Committed by Gerrit Code Review
Browse files

Merge "Allow sdk and core modules to use sysprop_library"

parents ee76fba9 c5239513
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -619,12 +619,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)
			}
		}