diff options
| author | 2020-05-13 11:05:02 -0700 | |
|---|---|---|
| committer | 2020-05-13 11:10:38 -0700 | |
| commit | c2d24050c5e3a09b7bc5236d15f24afa2405911f (patch) | |
| tree | bc179760d953be7c0ebdc6eb4deb795664828c52 /java/java.go | |
| parent | 61b5e26f27f7d106177308289437b769722a1548 (diff) | |
Don't use SDK variant for vendor JNI libraries
Vendor JNI libraries already have stable APIs enforced by the VNDK,
they shouldn't use SDK variants.
Bug: 156225490
Test: TestJNISDK
Change-Id: I21ba67e8e9fb05016caf5888129adc1a939545c2
Diffstat (limited to 'java/java.go')
| -rw-r--r-- | java/java.go | 3 |
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", |