mirror of
https://github.com/revanced/Apktool.git
synced 2024-12-05 02:22:55 +01:00
Remove duplicate manifest-only parameter
This commit is contained in:
parent
88eed24625
commit
a0cd772205
@ -127,9 +127,6 @@ public class Main {
|
||||
if (cli.hasOption("force-manifest")) {
|
||||
decoder.setForceDecodeManifest(ApkDecoder.FORCE_DECODE_MANIFEST_FULL);
|
||||
}
|
||||
if (cli.hasOption("manifest-only")) {
|
||||
decoder.setManifestOnly(true);
|
||||
}
|
||||
if (cli.hasOption("no-assets")) {
|
||||
decoder.setDecodeAssets(ApkDecoder.DECODE_ASSETS_NONE);
|
||||
}
|
||||
@ -297,11 +294,6 @@ public class Main {
|
||||
.desc("Decode the APK's compiled manifest, even if decoding of resources is set to \"false\".")
|
||||
.build();
|
||||
|
||||
Option manifestOnlyOption = Option.builder("mo")
|
||||
.longOpt("manifest-only")
|
||||
.desc("Only decode manifest.")
|
||||
.build();
|
||||
|
||||
Option noAssetOption = Option.builder()
|
||||
.longOpt("no-assets")
|
||||
.desc("Do not decode assets.")
|
||||
@ -439,7 +431,6 @@ public class Main {
|
||||
DecodeOptions.addOption(forceDecOption);
|
||||
DecodeOptions.addOption(noSrcOption);
|
||||
DecodeOptions.addOption(noResOption);
|
||||
DecodeOptions.addOption(manifestOnlyOption);
|
||||
|
||||
// add basic build options
|
||||
BuildOptions.addOption(outputBuiOption);
|
||||
|
@ -100,13 +100,6 @@ public class ApkDecoder {
|
||||
|
||||
LOGGER.info("Using Apktool " + Androlib.getVersion() + " on " + mApkFile.getName());
|
||||
|
||||
if (mManifestOnly) {
|
||||
setAnalysisMode(mAnalysisMode, true);
|
||||
mAndrolib.decodeManifestWithResources(mApkFile, outDir, getResTable());
|
||||
writeMetaFile();
|
||||
return;
|
||||
}
|
||||
|
||||
if (hasResources()) {
|
||||
switch (mDecodeResources) {
|
||||
case DECODE_RESOURCES_NONE:
|
||||
@ -249,10 +242,6 @@ public class ApkDecoder {
|
||||
mForceDelete = forceDelete;
|
||||
}
|
||||
|
||||
public void setManifestOnly(boolean manifestOnly) {
|
||||
mManifestOnly = manifestOnly;
|
||||
}
|
||||
|
||||
public void setFrameworkTag(String tag) throws AndrolibException {
|
||||
mAndrolib.apkOptions.frameworkTag = tag;
|
||||
}
|
||||
@ -448,7 +437,6 @@ public class ApkDecoder {
|
||||
private short mForceDecodeManifest = FORCE_DECODE_MANIFEST_NONE;
|
||||
private short mDecodeAssets = DECODE_ASSETS_FULL;
|
||||
private boolean mForceDelete = false;
|
||||
private boolean mManifestOnly = false;
|
||||
private boolean mKeepBrokenResources = false;
|
||||
private boolean mBakDeb = true;
|
||||
private Collection<String> mUncompressedFiles;
|
||||
|
Loading…
Reference in New Issue
Block a user