Generate XAPK manifest JSON files with Python. This script simplifies the process of creating XAPK packages by configuring expansion OBB files and split APKs. Find a guide below for instructions on how to create XAPK packages using this script.
- Support for multiple expansion OBB files.
- Flexible split APK configuration with optional APK IDs.
- Automatic OBB file naming based on package name and version code.
- Run the script using a Python interpreter.
- Follow the prompts to enter XAPK details, OBB files, and APK configurations.
- The script generates a
manifest.jsonfile with the configured XAPK settings.
Welcome to the guide on creating an XAPK (eXpansion APK) package for your Android app using the xapk_config script.
-
Python: Ensure you have Python installed on your system.
-
Clone Repository: Clone the
xapk-configrepository to your local machine:git clone https://github.com/knightfall-cs/xapk-config.git cd xapk-config
-
Run the Script to Create the
manifest.jsonFile:Open a terminal/command prompt and navigate to the
xapk-configdirectory:cd path/to/xapk-configRun the script:
python xapk_config.py
-
Prepare Your Files:
Organize your app files as follows:
Android/obb/{PackageName}/main.{VersionCode}.{PackageName}.obbicon.pngmanifest.json{AppName}.apk
Replace
{PackageName},{VersionCode}, and{AppName}with your actual values.π Example.xapk(zip) βββ Android/ β βββ obb/ β β βββ com.android.example/ β β β βββ main.1.com.android.example.obb β β β βββ patch.1.com.android.example.obb βββ icon.png βββ manifest.json βββ example.apk -
Create the XAPK:
- Package all the files (including the generated
manifest.json) into a ZIP file. - Rename the ZIP file's extension from
.zipto.xapk.
- Package all the files (including the generated
Author: KNIGHTFALL