force save signature info
This commit is contained in:
parent
16db09e883
commit
0c9577a13a
|
|
@ -38,10 +38,6 @@ public class MainCommand extends BaseCommand {
|
||||||
@Opt(opt = "pn", longOpt = "proxyname", description = "special proxy app name with full dot path", argName = "proxy app name")
|
@Opt(opt = "pn", longOpt = "proxyname", description = "special proxy app name with full dot path", argName = "proxy app name")
|
||||||
private String proxyname = "com.wind.xposed.entry.LSPApplication";
|
private String proxyname = "com.wind.xposed.entry.LSPApplication";
|
||||||
|
|
||||||
@Opt(opt = "c", longOpt = "crach", hasArg = false,
|
|
||||||
description = "disable craching the apk's signature.")
|
|
||||||
private boolean disableCrackSignature = false;
|
|
||||||
|
|
||||||
@Opt(opt = "d", longOpt = "debuggable", description = "set 1 to make the app debuggable = true, " +
|
@Opt(opt = "d", longOpt = "debuggable", description = "set 1 to make the app debuggable = true, " +
|
||||||
"set 0 to make the app debuggable = false", argName = "0 or 1")
|
"set 0 to make the app debuggable = false", argName = "0 or 1")
|
||||||
private int debuggable = -1; // 0: debuggable = false 1: debuggable = true
|
private int debuggable = -1; // 0: debuggable = false 1: debuggable = true
|
||||||
|
|
@ -108,7 +104,6 @@ public class MainCommand extends BaseCommand {
|
||||||
}
|
}
|
||||||
|
|
||||||
System.out.println("output apk path: " + output);
|
System.out.println("output apk path: " + output);
|
||||||
System.out.println("disableCrackSignature: " + disableCrackSignature);
|
|
||||||
|
|
||||||
String apkFileName = getBaseName(srcApkFile);
|
String apkFileName = getBaseName(srcApkFile);
|
||||||
|
|
||||||
|
|
@ -120,10 +115,8 @@ public class MainCommand extends BaseCommand {
|
||||||
System.out.println("outputApkFileParentPath: " + outputApkFileParentPath);
|
System.out.println("outputApkFileParentPath: " + outputApkFileParentPath);
|
||||||
System.out.println("unzipApkFilePath = " + unzipApkFilePath);
|
System.out.println("unzipApkFilePath = " + unzipApkFilePath);
|
||||||
|
|
||||||
if (!disableCrackSignature) {
|
|
||||||
// save the apk original signature info, to support crach signature.
|
// save the apk original signature info, to support crach signature.
|
||||||
new SaveApkSignatureTask(apkPath, unzipApkFilePath).run();
|
new SaveApkSignatureTask(apkPath, unzipApkFilePath).run();
|
||||||
}
|
|
||||||
|
|
||||||
long currentTime = System.currentTimeMillis();
|
long currentTime = System.currentTimeMillis();
|
||||||
FileUtils.decompressZip(apkPath, unzipApkFilePath);
|
FileUtils.decompressZip(apkPath, unzipApkFilePath);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue