summaryrefslogtreecommitdiff
path: root/java/hiddenapi.go
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2020-07-11 22:30:45 -0700
committer Colin Cross <ccross@android.com> 2020-07-12 05:37:46 +0000
commitd783bbbace0d7e5b7e333ffa276ff18216109cc7 (patch)
treeca2800e2c2988ee0a0b6f0cfcc7121c98708f441 /java/hiddenapi.go
parent41405cc275dd0e35c5a97b2529bd48a3ae924331 (diff)
Use unzip -DD
We put reproducible timestamps in zip files so that the artifacts are consistent, but that leads to old timestamps in the output directory if they are unzipped as part of the build. Use unzip -DD when unzipping to update the timestamps. Bug: 161015009 Test: touch -d 2020-01-01 ref; find $OUT/system -not -newer ref Change-Id: I70407a627cb070e24be510faa6a774e3d9eae3a8
Diffstat (limited to 'java/hiddenapi.go')
-rw-r--r--java/hiddenapi.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/hiddenapi.go b/java/hiddenapi.go
index 130b63496..b5a021785 100644
--- a/java/hiddenapi.go
+++ b/java/hiddenapi.go
@@ -146,7 +146,7 @@ func (h *hiddenAPI) hiddenAPIGenerateCSV(ctx android.ModuleContext, flagsCSV, me
var hiddenAPIEncodeDexRule = pctx.AndroidStaticRule("hiddenAPIEncodeDex", blueprint.RuleParams{
Command: `rm -rf $tmpDir && mkdir -p $tmpDir && mkdir $tmpDir/dex-input && mkdir $tmpDir/dex-output &&
- unzip -o -q $in 'classes*.dex' -d $tmpDir/dex-input &&
+ unzip -qoDD $in 'classes*.dex' -d $tmpDir/dex-input &&
for INPUT_DEX in $$(find $tmpDir/dex-input -maxdepth 1 -name 'classes*.dex' | sort); do
echo "--input-dex=$${INPUT_DEX}";
echo "--output-dex=$tmpDir/dex-output/$$(basename $${INPUT_DEX})";