Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 663127d0 authored by Brian Carlstrom's avatar Brian Carlstrom Committed by Tao Bao
Browse files

Use zipalign -p to page align .so files

Bug: 21400810
Change-Id: Ie3adf26dd3a51acfdb0faa23dc8ca1b206fb3727
(cherry picked from commit 903186f9)
parent b888668a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -544,7 +544,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,))