summaryrefslogtreecommitdiff
path: root/java/hiddenapi.go
diff options
context:
space:
mode:
author David Brazdil <dbrazdil@google.com> 2019-01-18 11:12:05 +0000
committer David Brazdil <dbrazdil@google.com> 2019-01-18 11:12:33 +0000
commit9fc36a68d0d0f260806b66e88bebefd778a5eb5c (patch)
treeedec31ef184266ecc547bbc8bc3f04786988ff81 /java/hiddenapi.go
parent77542038ebdf39285d178f9fe1967fbe516e32c1 (diff)
Restore UNSAFE_DISABLE_HIDDENAPI_FLAGS functionality.
It got broken with the move to hiddenapi to Soong. Test: UNSAFE_DISABLE_HIDDENAPI_FLAGS=true m -j32 Change-Id: Id369bfae8e118907b1f12faa7e4207494904edda
Diffstat (limited to 'java/hiddenapi.go')
-rw-r--r--java/hiddenapi.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/java/hiddenapi.go b/java/hiddenapi.go
index 7378b6401..de72e7c79 100644
--- a/java/hiddenapi.go
+++ b/java/hiddenapi.go
@@ -78,11 +78,6 @@ var hiddenAPIEncodeDexRule = pctx.AndroidStaticRule("hiddenAPIEncodeDex", bluepr
}, "flags", "tmpDir")
func hiddenAPIEncodeDex(ctx android.ModuleContext, output android.WritablePath, dexInput android.WritablePath) {
- if ctx.Config().IsEnvTrue("UNSAFE_DISABLE_HIDDENAPI_FLAGS") {
- output = dexInput
- return
- }
-
flags := &bootImagePath{ctx.Config().HiddenAPIFlags()}
ctx.Build(pctx, android.BuildParams{