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

Commit 6bc1d303 authored by Alex Klyubin's avatar Alex Klyubin Committed by Android (Google) Code Review
Browse files

Merge "Fix bug in APK entry alignment." into nyc-dev

parents c4b9d009 284e45ac
Loading
Loading
Loading
Loading
+5 −0
Original line number Original line Diff line number Diff line
@@ -544,6 +544,11 @@ class SignApk {
            // Preserve the STORED method of the input entry.
            // Preserve the STORED method of the input entry.
            outEntry = new JarEntry(inEntry);
            outEntry = new JarEntry(inEntry);
            outEntry.setTime(timestamp);
            outEntry.setTime(timestamp);
            // Discard comment and extra fields of this entry to
            // simplify alignment logic below and for consistency with
            // how compressed entries are handled later.
            outEntry.setComment(null);
            outEntry.setExtra(null);


            // 'offset' is the offset into the file at which we expect
            // 'offset' is the offset into the file at which we expect
            // the file data to begin.  This is the value we need to
            // the file data to begin.  This is the value we need to