summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Colin Cross <ccross@android.com> 2020-07-13 05:58:42 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2020-07-13 05:58:42 +0000
commitb7cea24fe39e30dedb6fabe7b7c33f6f4d79c02c (patch)
treebb056e2ea7c2e34dd26aad9798ca491fcc0432b3
parent9d98ac15bb11703b243b7137e6b4abdb61871c59 (diff)
parentd783bbbace0d7e5b7e333ffa276ff18216109cc7 (diff)
Merge "Use unzip -DD"
-rw-r--r--apex/builder.go2
-rw-r--r--java/aar.go2
-rw-r--r--java/hiddenapi.go2
3 files changed, 3 insertions, 3 deletions
diff --git a/apex/builder.go b/apex/builder.go
index 5fb9a5fd4..49e4642bf 100644
--- a/apex/builder.go
+++ b/apex/builder.go
@@ -390,7 +390,7 @@ func (a *apexBundle) buildUnflattenedApex(ctx android.ModuleContext) {
} else {
if fi.class == appSet {
copyCommands = append(copyCommands,
- fmt.Sprintf("unzip -q -d %s %s", destPathDir, fi.builtFile.String()))
+ fmt.Sprintf("unzip -qDD -d %s %s", destPathDir, fi.builtFile.String()))
} else {
copyCommands = append(copyCommands, "cp -f "+fi.builtFile.String()+" "+destPath)
}
diff --git a/java/aar.go b/java/aar.go
index 500788f48..ad9b5e7d2 100644
--- a/java/aar.go
+++ b/java/aar.go
@@ -641,7 +641,7 @@ func (a *AARImport) DepsMutator(ctx android.BottomUpMutatorContext) {
var unzipAAR = pctx.AndroidStaticRule("unzipAAR",
blueprint.RuleParams{
Command: `rm -rf $outDir && mkdir -p $outDir && ` +
- `unzip -qo -d $outDir $in && rm -rf $outDir/res && touch $out`,
+ `unzip -qoDD -d $outDir $in && rm -rf $outDir/res && touch $out`,
},
"outDir")
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})";