Skip to content
@AEmulator • GitHub • /llms.txt

Build an XAPK File from APK, OBB, or Split APK Files

An XAPK file bundles an APK with its OBB data file, or a base APK with split APK files. Some games come as separate files, so you combine them into one .xapk file that LDPlayer can install. This guide covers three layouts: one OBB file, two

Before You Start

Prerequisites: A Windows PC with Notepad++ (a text editor) and WinRAR (an archive tool) installed.; The APK and OBB files for the game, saved in one folder.; The template archive `xapk.rar`. It is hosted at [res.ldrescdn.com](https://res.ldrescdn.com/other/xapk.rar) and contains three template folders: `xapk(1obb)`, `xapk(2obb)`, and `xapk(napk)`.

Step-by-Step

  1. Extract `xapk.rar` into any folder.
  2. Open the `xapk` folder, then open `xapk(1obb)`. The folder holds an `Android` subfolder and `manifest.json`.
  3. Copy your APK into `xapk(1obb)`.
  4. Rename the APK to the game's package name. The file name must contain only the package name.
  5. Open `Android`, then open `obb`.
  6. Rename the folder inside `obb` to the game's package name.
  7. Copy your OBB file into that renamed folder.
  8. Go back to `xapk(1obb)` and open `manifest.json` in Notepad++.
  9. Replace the package name placeholders with the game's package name.
  10. Replace the game name placeholder with the game's real name.
  11. Replace `main.number.package name.obb` with the exact file name of your OBB file. Keep the `.obb` extension.
  12. Save the file and close Notepad++.
  13. In `xapk(1obb)`, select everything with Ctrl+A.
  14. Right-click the selection and choose Add to archive....
  15. Select ZIP as the archive format and click OK.
  16. Rename the new archive from `.zip` to `.xapk`.
  17. Use the `xapk(2obb)` folder instead of `xapk(1obb)`.
  18. Follow Layout 1, with these changes:
  19. Go to `xapk(napk)` inside the `xapk` folder. It contains `manifest.json`.
  20. Copy all of your APK files into `xapk(napk)`.
  21. Open `manifest.json` in Notepad++.
  22. Edit the manifest so it lists each APK file by its exact name.
  23. Save the file and close Notepad++.
  24. In `xapk(napk)`, press Ctrl+A to select all items.
  25. Right-click the selection, choose Add to archive..., and follow steps 14 and 15 of Layout 1.

## Overview An XAPK file bundles an APK with its OBB data file, or a base APK with split APK files. Some games come as separate files, so you combine them into one .xapk file that LDPlayer can install. This guide covers three layouts: one OBB file, two OBB files, and multiple APK files.

## Verify Install the .xapk file on LDPlayer. For Layout 1 and 2, drag the file into LDPlayer or open it from LD Store. For Layout 3, see the note below. If the game starts, the package is correct.

## Notes and Troubleshooting

## Related