diff options
| author | 2020-05-14 22:59:47 +0000 | |
|---|---|---|
| committer | 2020-05-14 22:59:47 +0000 | |
| commit | cb1d16166669919887b604a453b567e1a8a8a4e1 (patch) | |
| tree | 4a8ceb08b49cf754e22b470f8e194b674128154e /java/java.go | |
| parent | 08f72a9709899ec85bb66606c43802948409da69 (diff) | |
| parent | c2d24050c5e3a09b7bc5236d15f24afa2405911f (diff) | |
Merge "Don't use SDK variant for vendor JNI libraries"
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", |