Jump to content

Merging an XAPK

From Battle Cats Game Modding Wiki

For newer game versions, most of the apks you will find are split apks, what the apk download sites call an "xapk".

Most tools will not be able to work with split apks, so you will have to merge the xapk into a normal apk.

This can be done with a tool such as APKEditor. See #merge for more details.

You should download the .jar file from releases and run the following command:

java -jar APKEditor.jar m -i path/to/input.xapk -o path/to/output.apk

Replacing APKEditor.jar with the path to the .jar file you downloaded earlier.

Replacing path/to/input.xapk with the file location of the xapk you downloaded.

Replacing path/to/output.apk with the location of where you want to save the merged apk.

In some cases you may also need to add the -extractNativeLibs true flag to the command as some devices and emulators may not be able to install the APK otherwise:

java -jar APKEditor.jar m -i path/to/input.xapk -o path/to/output.apk -extractNativeLibs true

Once ran you should now have a merged apk at path/to/output.apk (or wherever you specified the output path)