summaryrefslogtreecommitdiff
path: root/java/java.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2020-05-14 22:59:47 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2020-05-14 22:59:47 +0000
commitcb1d16166669919887b604a453b567e1a8a8a4e1 (patch)
tree4a8ceb08b49cf754e22b470f8e194b674128154e /java/java.go
parent08f72a9709899ec85bb66606c43802948409da69 (diff)
parentc2d24050c5e3a09b7bc5236d15f24afa2405911f (diff)
Merge "Don't use SDK variant for vendor JNI libraries"
Diffstat (limited to 'java/java.go')
-rw-r--r--java/java.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/java/java.go b/java/java.go
index de38b26e7..17b963f6e 100644
--- a/java/java.go
+++ b/java/java.go
@@ -95,8 +95,7 @@ func (j *Module) CheckStableSdkVersion() error {
}
func (j *Module) checkSdkVersions(ctx android.ModuleContext) {
- if j.SocSpecific() || j.DeviceSpecific() ||
- (j.ProductSpecific() && ctx.Config().EnforceProductPartitionInterface()) {
+ if j.RequiresStableAPIs(ctx) {
if sc, ok := ctx.Module().(sdkContext); ok {
if !sc.sdkVersion().specified() {
ctx.PropertyErrorf("sdk_version",