Merge "locked_region_code_injection: copy jar timestamp to output" am: 69db849f7c

am: 538193abed

Change-Id: I5dcbb0aa806bede7e76caa06b75a11c2269299f8
This commit is contained in:
Colin Cross
2019-04-18 19:25:52 -07:00
committed by android-build-merger

View File

@@ -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));