Align entries in APEX at 4K boundary
Use -a option of signapk to specify the alignment to 4K. The default is 4. Test: m apex.test; zipalign -c -v 4096 $(OUT)/system/apex/apex.test.apex shows ok Change-Id: I7b1a3d442b69b89838cf09451939cd23d5646bde
This commit is contained in:
parent
552b362fdc
commit
bfe64a1a59
|
@ -662,6 +662,7 @@ func (a *apexBundle) buildUnflattenedApex(ctx android.ModuleContext, keyFile and
|
||||||
Input: unsignedOutputFile,
|
Input: unsignedOutputFile,
|
||||||
Args: map[string]string{
|
Args: map[string]string{
|
||||||
"certificates": strings.Join([]string{certificate.Pem.String(), certificate.Key.String()}, " "),
|
"certificates": strings.Join([]string{certificate.Pem.String(), certificate.Key.String()}, " "),
|
||||||
|
"flags": "-a 4096", //alignment
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,10 +32,10 @@ var (
|
||||||
Signapk = pctx.AndroidStaticRule("signapk",
|
Signapk = pctx.AndroidStaticRule("signapk",
|
||||||
blueprint.RuleParams{
|
blueprint.RuleParams{
|
||||||
Command: `${config.JavaCmd} -Djava.library.path=$$(dirname $signapkJniLibrary) ` +
|
Command: `${config.JavaCmd} -Djava.library.path=$$(dirname $signapkJniLibrary) ` +
|
||||||
`-jar $signapkCmd $certificates $in $out`,
|
`-jar $signapkCmd $flags $certificates $in $out`,
|
||||||
CommandDeps: []string{"$signapkCmd", "$signapkJniLibrary"},
|
CommandDeps: []string{"$signapkCmd", "$signapkJniLibrary"},
|
||||||
},
|
},
|
||||||
"certificates")
|
"flags", "certificates")
|
||||||
|
|
||||||
androidManifestMerger = pctx.AndroidStaticRule("androidManifestMerger",
|
androidManifestMerger = pctx.AndroidStaticRule("androidManifestMerger",
|
||||||
blueprint.RuleParams{
|
blueprint.RuleParams{
|
||||||
|
|
Loading…
Reference in New Issue