This guide will walk you through modifying the 9Xtream (RTX) Android app to connect it to your own Cockpit Panel by replacing the default API URL using MT Manager.
Prerequisites
- MT Manager installed and premium activated
- The 9Xtream_39.0.1 (RTX) APK file
- Your Cockpit Panel URL (example:
https://yourdomain.com/api/9xtream/) - API set to 'RTX 9Xtream'
Steps to Modify the APK
- Launch MT Manager.
- Navigate to and open the 9Xtream_39.0.1 (RTX) APK file.
- Open the classes.dex file using Dex Editor Plus.
- Tap the three-dot menu and choose Select All.
- Browse to the following class:
com/PanelUrl
- Locate the following line in the code:
const-string v0, "https://demo.cockpit.lol/api/9xtream/"
- Replace the demo URL with your own panel URL, including the API endpoint:
const-string v0, "https://yourdomain.com/api/9xtream/"
Note: Be sure the URL ends with
/api/9xtream/and includes the trailing slash. - Tap the checkmark icon to save your changes.
- After all changes, tap the Save button in MT Manager and then choose Compile.
- After compilation, choose Sign to sign the APK using MT Manager's signer.
- Install the signed APK on your device or emulator.
- Open the app and confirm that the services added to your Cockpit panel now appear on the login screen drop-down.
Troubleshooting
- Make sure the API URL is typed correctly.
- Check that the Cockpit panel has at least one active service assigned.
- If nothing loads, inspect logs using logcat to verify the API is being called.
Tip: Always test modified apps in an emulator before installing on a live device.