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

Commit 538193ab authored by Colin Cross's avatar Colin Cross Committed by android-build-merger
Browse files

Merge "locked_region_code_injection: copy jar timestamp to output"

am: 69db849f

Change-Id: I14853f14994692c0417f76ecdf85a4567d38f23b
parents 6889ee31 69db849f
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -13,6 +13,9 @@
 */
package lockedregioncodeinjection;

import org.objectweb.asm.ClassReader;
import org.objectweb.asm.ClassWriter;

import java.io.BufferedInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
@@ -24,8 +27,6 @@ import java.util.List;
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;
import java.util.zip.ZipOutputStream;
import org.objectweb.asm.ClassReader;
import org.objectweb.asm.ClassWriter;

public class Main {
    public static void main(String[] args) throws IOException {
@@ -74,6 +75,7 @@ public class Main {
        while (srcEntries.hasMoreElements()) {
            ZipEntry entry = srcEntries.nextElement();
            ZipEntry newEntry = new ZipEntry(entry.getName());
            newEntry.setTime(entry.getTime());
            zos.putNextEntry(newEntry);
            BufferedInputStream bis = new BufferedInputStream(zipSrc.getInputStream(entry));