Help! How to Convert and Recompile XAPK Files

sara7645

Platinian
Hi everyone,

I've recently ventured into the world of Android modding and am currently working on modding the game Marvel Contest of Champions. However, I've run into a challenge—every site I visit only offers the game as an XAPK file, not an APK. I downloaded the XAPK from APKPure, installed the unmodded APK on BlueStacks, and it works fine.

but when i decompile and recompile the apk without altering the code i get an error when installing the apk (Application can not be installed)

What I've Tried So Far​

I'm still learning the basics of decompiling and recompiling APKs without altering the code. Here’s a summary of what I’ve attempted, though none of these methods have worked:

  • Changing the XAPK Extension: I changed the XAPK extension to .zip, extracted the contents, and then re-archived the files in the same order without making any changes. However, the APK failed to install.
  • Using APKEditor Tool and APKTool: I used the APKEditor tool to convert the extracted XAPK into an APK, but the installation failed with a "Certification Verification Failed" error. I then tried signing the APK with APKTool, but the installation still didn’t succeed.
  • Converting XAPK to APK with APKTool: I tried converting the XAPK directly to an APK using APKTool, but encountered a "Title Not Found" error.
Thanks
 
When I first started my modding journey, I also experienced the "Application can not be installed" issue. How I managed to fix this was I just went into AndroidManifest.xml, and I removed these 2 lines;

- android.requiredSplitTypes="base__abi"
- android:splitTypes=""

Once those 2 lines are removed, save the changes to the file and install.
 
Thanks for your suggestions! I’ve tried all of the solutions you mentioned, but I’m still running into the “App not installed” error. Here's what I've done so far:

  1. Merged the APK using the App tool GUI.
  2. Signed the merged APK.
  3. Tried to install the APK on my device, but I still get the “App not installed” message.
I also took a look at the AndroidManifest.xml of the original XAPK. However, when I open it in Notepad, I get gibberish. When I open it in a browser, it shows an error message.

Has anyone experienced something similar or have any other ideas on what could be causing this issue?

Thanks again for your help!


Capture.PNG
Capture2.PNG
 
Thanks for your suggestions! I’ve tried all of the solutions you mentioned, but I’m still running into the “App not installed” error. Here's what I've done so far:

  1. Merged the APK using the App tool GUI.
  2. Signed the merged APK.
  3. Tried to install the APK on my device, but I still get the “App not installed” message.
I also took a look at the AndroidManifest.xml of the original XAPK. However, when I open it in Notepad, I get gibberish. When I open it in a browser, it shows an error message.

Has anyone experienced something similar or have any other ideas on what could be causing this issue?

Thanks again for your help!


View attachment 694096View attachment 694097
You have to look in the AndroidManifest of the APK, not the XAPK file. You can look in the XAPK file, but you'll find the arm64 and arm7 files separately, as well as the main base file separately. Therefore, you have to look in the APK file and not the XAPK.
 
Thanks for your suggestions! I’ve tried all of the solutions you mentioned, but I’m still running into the “App not installed” error. Here's what I've done so far:

  1. Merged the APK using the App tool GUI.
  2. Signed the merged APK.
  3. Tried to install the APK on my device, but I still get the “App not installed” message.
I also took a look at the AndroidManifest.xml of the original XAPK. However, when I open it in Notepad, I get gibberish. When I open it in a browser, it shows an error message.

Has anyone experienced something similar or have any other ideas on what could be causing this issue?

Thanks again for your help!


View attachment 694096View attachment 694097
 
@Wxrnin

Thnx for the tool and all the help I really appreciate it
I convert the xapk to apk and its does get installed but I cannot open the game I get an error
Screenshot_20241226-005355.jpg


But I ok this tool you give me will do what I need I just don't how to do yet and if you show me how I would really appreciate

This game I am trying to mod has been already modded but the original modder stop updating the mod now I have those mod file from the outdated mod APK I just don't know who to put the mod in the update xapk

There are 2 files as far as I check the apk

One i need to put in com.mcoc.apk -> assets
And the other in arm64 v8 -> lib

My first question is when I try to add the file I get these option
Level: APKMode
Updatemode:Replace all
What should I select there I tried with above option I also have uncheck the autosigned but when I try to install the apk I got invalid certificate
Screenshot_20241226-010455.jpg

And second the when the apk is sign I get this what does this mean can this be causing the issue when Install the apk

Screenshot_20241226-004907.jpg
 
Firstly, when you auto sign, just click ok. Secondly, that "Tip" that shows up, just click "ok" and ignore it. It's basically saying that when you sign an apk, it will be flagged as a false/positive if someone runs it in a Virus Scanner.
 
Hi

Ok so these are the step I took
  • First I view the xapk and put both of the file in there respective place
  • The use the default option when adding the file Level: Apk mod, updatemode: replace all
  • Also the autosign was check on I add the file I asked to update because the apk was change I press yes
  • But when I try to install using both the MT manager vip or SAI (split apk Installer) I got these errors

Screenshot_20241226-014248.jpg
 

Attachments

  • Screenshot_20241226-013843.jpg
    Screenshot_20241226-013843.jpg
    69.7 KB · Views: 5
Hi

Ok so these are the step I took
  • First I view the xapk and put both of the file in there respective place
  • The use the default option when adding the file Level: Apk mod, updatemode: replace all
  • Also the autosign was check on I add the file I asked to update because the apk was change I press yes
  • But when I try to install using both the MT manager vip or SAI (split apk Installer) I got these errors

View attachment 694197
Unfortunately, I'm not able to help you anymore as I'm totally confused on what you're trying to do or achieve here. Tell me what you're trying to do and perhaps I can do it for you.
 
Unfortunately, I'm not able to help you anymore as I'm totally confused on what you're trying to do or achieve here. Tell me what you're trying to do and perhaps I can do it for you.
Ok thnx I really appreciate it

I am playing this game Marvel Contest of champions before it had mod where you can increase defense and offense but no the original modder is not updating the mod so I am trying to get to mod from the outdated game to the new updated version
Unmodded Marvel Contest of champions apk from apkcombo

Modded Marvel Contest of champions from gamedva (outdated)

If you can get the mod from the outdated version of the game and put in lastest version I would really appreciate it also if you can tell me how to do this so I don't have to bother you ever month when they released a new updated
 
Ok thnx I really appreciate it

I am playing this game Marvel Contest of champions before it had mod where you can increase defense and offense but no the original modder is not updating the mod so I am trying to get to mod from the outdated game to the new updated version
Unmodded Marvel Contest of champions apk from apkcombo

Modded Marvel Contest of champions from gamedva (outdated)

If you can get the mod from the outdated version of the game and put in lastest version I would really appreciate it also if you can tell me how to do this so I don't have to bother you ever month when they released a new updated
Since the mod as a VIP Mod, It'll always be up-to-date.
 
Back
Top Bottom