diff options
Diffstat (limited to 'java/java.go')
-rw-r--r-- | java/java.go | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/java/java.go b/java/java.go index a546cd524..d0088960b 100644 --- a/java/java.go +++ b/java/java.go @@ -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) } } |