mirror of
https://github.com/revanced/Apktool.git
synced 2024-12-05 02:22:55 +01:00
Prevent reading resources when -r / --no-res is used
This commit is contained in:
parent
099cc0fcb3
commit
2033e305af
@ -89,8 +89,6 @@ public class ApkDecoder {
|
||||
LOGGER.info("Using Apktool " + Androlib.getVersion() + " on " + mApkFile.getName());
|
||||
|
||||
if (hasResources()) {
|
||||
setTargetSdkVersion();
|
||||
setAnalysisMode(mAnalysisMode, true);
|
||||
setCompressionMode();
|
||||
|
||||
switch (mDecodeResources) {
|
||||
@ -98,6 +96,9 @@ public class ApkDecoder {
|
||||
mAndrolib.decodeResourcesRaw(mApkFile, outDir);
|
||||
break;
|
||||
case DECODE_RESOURCES_FULL:
|
||||
setTargetSdkVersion();
|
||||
setAnalysisMode(mAnalysisMode, true);
|
||||
|
||||
if (hasManifest()) {
|
||||
mAndrolib.decodeManifestWithResources(mApkFile, outDir, getResTable());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user