mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-06 01:55:53 +01:00
Merge branch 'BurgerZ-patch-6'
This commit is contained in:
commit
2792b05b9d
@ -621,6 +621,23 @@ final public class AndrolibResources {
|
|||||||
entry.setCrc(crc.getValue());
|
entry.setCrc(crc.getValue());
|
||||||
out.putNextEntry(entry);
|
out.putNextEntry(entry);
|
||||||
out.write(data);
|
out.write(data);
|
||||||
|
out.closeEntry();
|
||||||
|
|
||||||
|
//Write fake AndroidManifest.xml file to support original aapt
|
||||||
|
entry = zip.getEntry("AndroidManifest.xml");
|
||||||
|
if (entry != null) {
|
||||||
|
in = zip.getInputStream(entry);
|
||||||
|
byte[] manifest = IOUtils.toByteArray(in);
|
||||||
|
CRC32 manifestCrc = new CRC32();
|
||||||
|
manifestCrc.update(manifest);
|
||||||
|
entry.setSize(manifest.length);
|
||||||
|
entry.setCompressedSize(-1);
|
||||||
|
entry.setCrc(manifestCrc.getValue());
|
||||||
|
out.putNextEntry(entry);
|
||||||
|
out.write(manifest);
|
||||||
|
out.closeEntry();
|
||||||
|
}
|
||||||
|
|
||||||
zip.close();
|
zip.close();
|
||||||
LOGGER.info("Framework installed to: " + outFile);
|
LOGGER.info("Framework installed to: " + outFile);
|
||||||
} catch (IOException ex) {
|
} catch (IOException ex) {
|
||||||
|
Loading…
Reference in New Issue
Block a user