diff options
| author | 2021-04-30 08:58:12 +0100 | |
|---|---|---|
| committer | 2021-05-04 14:07:23 +0100 | |
| commit | 4977540bcb20de912acb14fd5443074908ffa512 (patch) | |
| tree | c6b2cf24c1623822e9712565af314d0a4ed70479 /java/platform_bootclasspath.go | |
| parent | ee4e7fe76fdab6339993d01083fa73c59e24e91b (diff) | |
Support dex_import on platform_bootclasspath
Maintain compatibility with previous behavior by ignoring dex_import
during hidden API processing.
Bug: 179354495
Test: m nothing
Change-Id: I976b02129bf981b7b61dce233567d6f89e04f92d
Diffstat (limited to 'java/platform_bootclasspath.go')
| -rw-r--r-- | java/platform_bootclasspath.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/java/platform_bootclasspath.go b/java/platform_bootclasspath.go index 4cb02e3c6..3a5982279 100644 --- a/java/platform_bootclasspath.go +++ b/java/platform_bootclasspath.go @@ -321,6 +321,8 @@ func (b *platformBootclasspathModule) generateHiddenAPIBuildActions(ctx android. } hiddenAPISupportingModules = append(hiddenAPISupportingModules, hiddenAPISupportingModule) + } else if _, ok := module.(*DexImport); ok { + // Ignore this for the purposes of hidden API processing } else { ctx.ModuleErrorf("module %s of type %s does not support hidden API processing", module, ctx.OtherModuleType(module)) } |