Skip to content

Commit

Permalink
Fixed issue decompiling split apk using Apkeditor
Browse files Browse the repository at this point in the history
  • Loading branch information
AndnixSH committed Sep 30, 2024
1 parent f2329a4 commit 48b6736
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion APKToolGUI/Forms/FormMain.cs
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,10 @@ await Task.Factory.StartNew(() =>
code = apkeditor.Merge(extractedDir, tempApk);
if (code == 0)
{
code = apktool.Decompile(tempApk, tempDecApk);
if (useAPKEditorForDecompilingItem.Checked)
code = apkeditor.Decompile(tempApk, tempDecApk);
else
code = apktool.Decompile(tempApk, tempDecApk);

if (code == 0)
{
Expand Down
2 changes: 1 addition & 1 deletion APKToolGUI/Handlers/DecodeControlEventHandlers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ internal async void button_DECODE_Decode_Click(object sender, EventArgs e)
}
}

if (inputFile.ContainsAny(".xapk", ".zip", ".apks", ".apkm") && !main.useAPKEditorForDecompilingItem.Checked)
if (inputFile.ContainsAny(".xapk", ".zip", ".apks", ".apkm"))
{
await main.MergeAndDecompile(inputFile);
}
Expand Down
2 changes: 1 addition & 1 deletion APKToolGUI/Handlers/DragDropHandlers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ private async void DropApkToDec(DragEventArgs e)
if (!Settings.Default.Decode_DontParseApkInfo)
await main.GetApkInfo(apkFile);

if (apkFile.ContainsAny(".xapk", ".zip", ".apks", ".apkm") && !main.useAPKEditorForDecompilingItem.Checked)
if (apkFile.ContainsAny(".xapk", ".zip", ".apks", ".apkm"))
{
await main.MergeAndDecompile(apkFile);
}
Expand Down

0 comments on commit 48b6736

Please sign in to comment.