mirror of
https://github.com/revanced/Apktool.git
synced 2025-06-12 21:27:36 +02:00
add support for automatically patch signatures
Conflicts: brut.apktool/apktool-lib/src/main/java/brut/androlib/Androlib.java
This commit is contained in:
@ -183,9 +183,11 @@ public class Main {
|
||||
flags.put("verbose", false);
|
||||
flags.put("framework", false);
|
||||
flags.put("update", false);
|
||||
flags.put("copyOriginal", false);
|
||||
|
||||
int i;
|
||||
int skip = 0;
|
||||
|
||||
ExtFile mOrigApk = null;
|
||||
String mAaptPath = "";
|
||||
for (i = 0; i < args.length; i++) {
|
||||
@ -202,6 +204,8 @@ public class Main {
|
||||
} else if ("-a".equals(opt) || "--aapt".equals(opt)) {
|
||||
mAaptPath = args[i + 1];
|
||||
skip = 1;
|
||||
} else if ("-c".equals(opt) || "--copy-original".equals(opt)) {
|
||||
flags.put("copyOriginal", true);
|
||||
} else if ("--frame-path".equals(opt)) {
|
||||
i++;
|
||||
instance.setFrameworkFolder(args[i]);
|
||||
@ -329,6 +333,8 @@ public class Main {
|
||||
+ " Build in debug mode. Check project page for more info.\n"
|
||||
+ " -a, --aapt\n"
|
||||
+ " Loads aapt from specified location.\n"
|
||||
+ " -c, --copy-original\n"
|
||||
+ " Copies original AndroidManifest.xml and META-INF.\n"
|
||||
+ " --frame-path <dir>\n"
|
||||
+ " Use the specified directory for framework files\n"
|
||||
+ "\n"
|
||||
|
Reference in New Issue
Block a user