mirror of
https://github.com/revanced/Apktool.git
synced 2024-12-12 13:57:46 +01:00
commenting out retaining original signature until fixed
This commit is contained in:
parent
85a4901e1d
commit
5a290988bc
@ -452,32 +452,33 @@ public class Androlib {
|
|||||||
|
|
||||||
/* check for re-insert */
|
/* check for re-insert */
|
||||||
if (flags.get("injectOriginal")) {
|
if (flags.get("injectOriginal")) {
|
||||||
try {
|
//try {
|
||||||
LOGGER.info("Building resources into original apk file...");
|
//LOGGER.info("Building resources into original apk file...");
|
||||||
ZipFile editOrig = new ZipFile(mOrigApkFile.getAbsoluteFile());
|
LOGGER.info("Injecting contents isn't ready yet. Sorry :(");
|
||||||
|
//ZipFile editOrig = new ZipFile(mOrigApkFile.getAbsoluteFile());
|
||||||
|
|
||||||
// no compression levels, paras
|
// no compression levels, paras
|
||||||
ZipParameters parameters = new ZipParameters();
|
//ZipParameters parameters = new ZipParameters();
|
||||||
parameters.setCompressionMethod(Zip4jConstants.COMP_STORE);
|
//parameters.setCompressionMethod(Zip4jConstants.COMP_STORE);
|
||||||
parameters.setCompressionLevel(0);
|
//parameters.setCompressionLevel(0);
|
||||||
parameters.setIncludeRootFolder(true);
|
//parameters.setIncludeRootFolder(true);
|
||||||
parameters.setRootFolderInZip("/");
|
//parameters.setRootFolderInZip("/");
|
||||||
|
|
||||||
// add res folder
|
// add res folder
|
||||||
editOrig.addFolder(new File(appDir, APK_DIRNAME + "/res").getAbsolutePath(), parameters);
|
//editOrig.addFolder(new File(appDir, APK_DIRNAME + "/res").getAbsolutePath(), parameters);
|
||||||
System.out.println("file: " + new File(appDir, APK_DIRNAME + "/res").getAbsolutePath());
|
//System.out.println("file: " + new File(appDir, APK_DIRNAME + "/res").getAbsolutePath());
|
||||||
|
|
||||||
// add assets, if there
|
// add assets, if there
|
||||||
if (assetDir != null) {
|
//if (assetDir != null) {
|
||||||
//editOrig.addFolder(new File(appDir, APK_DIRNAME + "/assets").getAbsolutePath(), parameters);
|
//editOrig.addFolder(new File(appDir, APK_DIRNAME + "/assets").getAbsolutePath(), parameters);
|
||||||
}
|
//}
|
||||||
|
|
||||||
// add resources.arsc
|
// add resources.arsc
|
||||||
parameters.setFileNameInZip("resources.arsc");
|
// parameters.setFileNameInZip("resources.arsc");
|
||||||
// editOrig.addFile(new File(appDir, "resources.arsc"), parameters);
|
// editOrig.addFile(new File(appDir, "resources.arsc"), parameters);
|
||||||
} catch(ZipException ex) {
|
//} catch(ZipException ex) {
|
||||||
throw new AndrolibException(ex);
|
// throw new AndrolibException(ex);
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user