Use zipalign -p to page align .so files

Bug: 21400810
Change-Id: Ie9a0ec0a55511383596016e830b474c76754277a
This commit is contained in:
Brian Carlstrom 2015-05-22 15:51:19 -07:00
parent 2913ecc2d5
commit 903186f938
1 changed files with 1 additions and 1 deletions

View File

@ -545,7 +545,7 @@ def SignFile(input_name, output_name, key, password, align=None,
raise ExternalError("signapk.jar failed: return code %s" % (p.returncode,))
if align:
p = Run(["zipalign", "-f", str(align), sign_name, output_name])
p = Run(["zipalign", "-f", "-p", str(align), sign_name, output_name])
p.communicate()
if p.returncode != 0:
raise ExternalError("zipalign failed: return code %s" % (p.returncode,))