This project builds the launcher.dex file used by LeviLaunchroid, a third-party Minecraft Bedrock Edition launcher. The generated DEX file contains essential Java classes that enable Minecraft launching functionality within the LeviLaunchroid Android application.
LeviLaunchroid is a third-party launcher for Minecraft Bedrock Edition that requires specific Java classes to function properly. This project compiles those classes into a DEX file (launcher.dex) that gets placed in the LeviLaunchroid app's assets directory (app/src/main/assets/launcher.dex).
-
Java Development Kit (JDK) 21 or higher
- Download from: https://adoptium.net/
- Verify installation:
java -version
-
Android SDK
- Install Android Studio or standalone SDK tools
- Set the
ANDROID_HOMEenvironment variable to your Android SDK path - Windows:
ANDROID_HOME=C:\Users\YourName\AppData\Local\Android\Sdk
-
Python 3.6+ (for the DEX modification script)
- Download from: https://python.org/
# Clone the repository
git clone https://github.com/RadiantByte/LauncherDex.git
cd LauncherDex
# Set your Android SDK path
set ANDROID_HOME=C:\path\to\your\android\sdk
# Build launcher.dex
build.bat
# Run Python script to get the final DEX file for LeviLaunchroid
python modify_dex.py
# The final launcher.dex will be in build/libs/launcher.dexAfter building, you'll find:
build/libs/launcher.dex- The optimized DEX file for LeviLaunchroid (≈5.8KB)build/libs/LeviLauncherDex-1.0.jar- Intermediate JAR file (≈8.7KB)
Follow the build instructions above to generate launcher.dex.
Copy the generated launcher.dex file to your LeviLaunchroid project.
Build your LeviLaunchroid app as usual. The launcher.dex will be included in the APK and loaded at runtime to provide Minecraft launching capabilities.
The optimized launcher.dex contains only the essential classes needed for Minecraft launching:
com.mojang.minecraftpe.Launchercom.mojang.minecraftpe.NotificationListenerServicecom.mojang.minecraftpe.store.amazonappstore.AmazonAppStorecom.mojang.minecraftpe.store.googleplay.GooglePlayStore
MainActivityFilePickerManagerHandlerExtraLicenseResponseDataProduct,Purchase,Store,StoreListener
The build process automatically removes these unused classes using the modify_dex.py script, reducing the final DEX file size from ~8KB to ~6KB.