This guide explains how to modify the 1-Stream Player Android application to connect it to your Cockpit Panel API using MT Manager.
Prerequisites
- MT Manager installed (with premium features unlocked)
- APK of 1-Stream Player
- Your Cockpit Panel URL (e.g.,
https://yourdomain.com/api/1stream/)
Steps
- Open MT Manager on your device or emulator.
- Locate and open the 1-Stream Player APK file.
- Tap on the classes.dex file and select Dex Editor Plus.
- In Dex Editor Plus, tap the 3-dot menu and choose Select All to scan all packages.
- Navigate to the following class:
com/vstroproject/RTX/mConfig.smali
- Scroll through the code to find the following line:
const-string v0, "https://demo.cockpit.lol/api/1stream/"
- Replace the demo URL with your own Cockpit API URL, including the full path:
const-string v0, "https://yourdomain.com/api/1stream/"
Note: Make sure to include the trailing
/at the end of the URL. - After editing, tap the Save button in MT Manager and then choose Compile.
- Once compiled, choose Sign the APK using MT Manager’s built-in signer.
- Install the modified APK and launch the app.
- On the login screen, the service drop-down should now display all services added to your Cockpit Panel.
Troubleshooting
- Ensure your Cockpit panel is set up correctly and has services assigned.
- Check for typos in the URL string.
- If services do not appear, inspect logcat logs for any API errors.
Reminder: Always back up the original APK before making modifications, and test the final APK on a safe environment like an emulator before deploying.