Merge "Use unzip -DD" am: b7cea24fe3
am: cae5903677
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1361337 Change-Id: I68b97b33bd19206dfd96aca36bf4575a0bca5459
This commit is contained in:
commit
56b330f8e7
3 changed files with 3 additions and 3 deletions
|
@ -390,7 +390,7 @@ func (a *apexBundle) buildUnflattenedApex(ctx android.ModuleContext) {
|
||||||
} else {
|
} else {
|
||||||
if fi.class == appSet {
|
if fi.class == appSet {
|
||||||
copyCommands = append(copyCommands,
|
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 {
|
} else {
|
||||||
copyCommands = append(copyCommands, "cp -f "+fi.builtFile.String()+" "+destPath)
|
copyCommands = append(copyCommands, "cp -f "+fi.builtFile.String()+" "+destPath)
|
||||||
}
|
}
|
||||||
|
|
|
@ -641,7 +641,7 @@ func (a *AARImport) DepsMutator(ctx android.BottomUpMutatorContext) {
|
||||||
var unzipAAR = pctx.AndroidStaticRule("unzipAAR",
|
var unzipAAR = pctx.AndroidStaticRule("unzipAAR",
|
||||||
blueprint.RuleParams{
|
blueprint.RuleParams{
|
||||||
Command: `rm -rf $outDir && mkdir -p $outDir && ` +
|
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")
|
"outDir")
|
||||||
|
|
||||||
|
|
|
@ -146,7 +146,7 @@ func (h *hiddenAPI) hiddenAPIGenerateCSV(ctx android.ModuleContext, flagsCSV, me
|
||||||
|
|
||||||
var hiddenAPIEncodeDexRule = pctx.AndroidStaticRule("hiddenAPIEncodeDex", blueprint.RuleParams{
|
var hiddenAPIEncodeDexRule = pctx.AndroidStaticRule("hiddenAPIEncodeDex", blueprint.RuleParams{
|
||||||
Command: `rm -rf $tmpDir && mkdir -p $tmpDir && mkdir $tmpDir/dex-input && mkdir $tmpDir/dex-output &&
|
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
|
for INPUT_DEX in $$(find $tmpDir/dex-input -maxdepth 1 -name 'classes*.dex' | sort); do
|
||||||
echo "--input-dex=$${INPUT_DEX}";
|
echo "--input-dex=$${INPUT_DEX}";
|
||||||
echo "--output-dex=$tmpDir/dex-output/$$(basename $${INPUT_DEX})";
|
echo "--output-dex=$tmpDir/dex-output/$$(basename $${INPUT_DEX})";
|
||||||
|
|
Loading…
Reference in a new issue