mirror of
https://github.com/revanced/Apktool.git
synced 2025-01-05 17:45:52 +01:00
removed --original
This commit is contained in:
parent
69ee710e30
commit
e4d506ab27
@ -181,7 +181,6 @@ public class Main {
|
||||
flags.put("forceBuildAll", false);
|
||||
flags.put("debug", false);
|
||||
flags.put("verbose", false);
|
||||
flags.put("injectOriginal", false);
|
||||
flags.put("framework", false);
|
||||
flags.put("update", false);
|
||||
|
||||
@ -206,14 +205,6 @@ public class Main {
|
||||
} else if ("--frame-path".equals(opt)) {
|
||||
i++;
|
||||
instance.setFrameworkFolder(args[i]);
|
||||
} else if ("-o".equals(opt) || "--original".equals(opt)) {
|
||||
if (args.length >= 4) {
|
||||
throw new InvalidArgsError();
|
||||
} else {
|
||||
flags.put("injectOriginal", true);
|
||||
mOrigApk = new ExtFile(args[i + 1]);
|
||||
skip = 1;
|
||||
}
|
||||
} else {
|
||||
throw new InvalidArgsError();
|
||||
}
|
||||
|
@ -189,15 +189,6 @@ public class Androlib {
|
||||
: (Boolean) meta.get("compressionType"));
|
||||
mAndRes.setSdkInfo((Map<String, String>) meta.get("sdkInfo"));
|
||||
|
||||
// check the orig apk
|
||||
if (flags.get("injectOriginal")) {
|
||||
if (!origApk.isFile() || !origApk.canRead()) {
|
||||
throw new InFileNotFoundException();
|
||||
} else {
|
||||
mOrigApkFile = origApk;
|
||||
}
|
||||
}
|
||||
|
||||
if (outFile == null) {
|
||||
String outFileName = (String) meta.get("apkFileName");
|
||||
outFile = new File(appDir, "dist" + File.separator
|
||||
@ -450,13 +441,6 @@ public class Androlib {
|
||||
}
|
||||
mAndRes.aaptPackage(outApk, null, null, new File(appDir, APK_DIRNAME),
|
||||
assetDir, null, flags, mAaptPath);
|
||||
|
||||
// retain signature
|
||||
// aapt r (remove)
|
||||
// aapt a (add)
|
||||
if (flags.get("injectOriginal")) {
|
||||
LOGGER.info("Injecting contents isn't ready yet. Sorry :(");
|
||||
}
|
||||
}
|
||||
|
||||
public void publicizeResources(File arscFile) throws AndrolibException {
|
||||
|
@ -182,7 +182,6 @@ public class BuildAndDecodeTest {
|
||||
tmp.put("forceBuildAll", false);
|
||||
tmp.put("debug", false);
|
||||
tmp.put("verbose", false);
|
||||
tmp.put("injectOriginal", false);
|
||||
tmp.put("framework", false);
|
||||
tmp.put("update", false);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user