summaryrefslogtreecommitdiff
path: root/java/java.go
diff options
context:
space:
mode:
authorTreeHugger Robot <treehugger-gerrit@google.com>2020-05-15 23:45:36 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2020-05-15 23:45:36 +0000
commit3fcdb81cf2a9b04f434331b41725c730407a94ef (patch)
treea556d0adaf88009360114ff39cb57a17dca21644 /java/java.go
parent4de27a57577e6cf1a0924fdc33b319fc49c9b36c (diff)
parenteb03296b57a414b5c327ae6b4057f279f6903439 (diff)
Merge "Don't use SDK variant for vendor JNI libraries" into rvc-dev
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 38cde2afe..066e09afb 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",