diff options
author | Colin Cross <ccross@android.com> | 2020-05-13 11:05:02 -0700 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2020-05-15 10:13:42 -0700 |
commit | eb03296b57a414b5c327ae6b4057f279f6903439 (patch) | |
tree | 5fdf6aa0585e8fde5a4dd13b5cd6112b5463b04b /android/module.go | |
parent | 0f27063a9e9cd2c9a06920f1aa15b397df68a573 (diff) | |
download | build_soong-eb03296b57a414b5c327ae6b4057f279f6903439.tar.gz build_soong-eb03296b57a414b5c327ae6b4057f279f6903439.tar.bz2 build_soong-eb03296b57a414b5c327ae6b4057f279f6903439.zip |
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
Merged-In: I21ba67e8e9fb05016caf5888129adc1a939545c2
(cherry picked from commit c2d24050c5e3a09b7bc5236d15f24afa2405911f)
Diffstat (limited to 'android/module.go')
-rw-r--r-- | android/module.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/android/module.go b/android/module.go index f1640727..baf348aa 100644 --- a/android/module.go +++ b/android/module.go @@ -886,6 +886,13 @@ func (m *ModuleBase) SystemExtSpecific() bool { return Bool(m.commonProperties.System_ext_specific) } +// RequiresStableAPIs returns true if the module will be installed to a partition that may +// be updated separately from the system image. +func (m *ModuleBase) RequiresStableAPIs(ctx BaseModuleContext) bool { + return m.SocSpecific() || m.DeviceSpecific() || + (m.ProductSpecific() && ctx.Config().EnforceProductPartitionInterface()) +} + func (m *ModuleBase) PartitionTag(config DeviceConfig) string { partition := "system" if m.SocSpecific() { |