This guide will walk you through the process of modifying the Hot Player APK to point to your own server instead of the demo server. You'll need to replace the hardcoded demo URL with your personal server URL generated in your panel.
Prerequisites:
- MT Manager app installed on your Android device
- Hot Player APK file downloaded to your device
- Your custom server URL from the panel (found in API Help → Hot Player → Endpoints)
Step 1: Get Your Custom Server URL
- Log into your panel
- Navigate to API Help → Hot Player → Endpoints
- Copy your custom server URL (it should look similar to the demo URL but with your domain)
- Make note of the exact URL length - it must be the same length or shorter than the original demo URL
Important: Your replacement URL must be exactly the same length or shorter than the original demo URL. If it's longer, you'll need to pad it with null bytes or use a shorter domain/path.
Step 2: Open APK in MT Manager
- Open MT Manager on your Android device
- Navigate to the location where you saved the Hot Player APK file
- Long-press on the APK file and select "View" to open it as an archive
- Navigate to the
libfolder within the APK
Step 3: Locate and Edit Library Files
You'll need to edit the libapp.so file for each CPU architecture. Common architectures include:
lib/arm64-v8a/libapp.solib/armeabi-v7a/libapp.solib/x86/libapp.solib/x86_64/libapp.so
For each architecture folder that exists:
Step 3a: Open the Library File
- Navigate to the architecture folder (e.g.,
arm64-v8a) - Long-press on
libapp.so - Select "Open with" → "Hex Editor"
Step 3b: Search for the Demo URL
- In the Hex Editor, tap the 3-dot menu (⋮) in the top-right corner
- Select "Search"
- Set Data Type to "ASCII"
- In the "Text to Find" field, enter:
https://demo.cockpit.lol/api/hot/?_=A7C3F89B2E4D6A1C5F8E9B3A7D2C6F4E8A9C5B7F3E6D2A8C4F7B9E3AE9B3A7D2C6F4E8AF4E8A9- Tap "Search" or press Enter
- If multiple results are found, click "Next" at the bottom to cycle through them
Step 3c: Select and Replace the URL
- When the search finds the URL, you'll see it highlighted in the hex view. The hex representation will look like:
68 74 74 70 73 3A 2F 2F 64 65 6D 6F 2E 63 6F 63
6B 70 69 74 2E 6C 6F 6C 2F 61 70 69 2F 68 6F 74
2F 3F 5F 3D 41 37 43 33 46 38 39 42 32 45 34 44
36 41 31 43 35 46 38 45 39 42 33 41 37 44 32 43
36 46 34 45 38 41 39 43 35 42 37 46 33 45 36 44
32 41 38 43 34 46 37 42 39 45 33 41 45 39 42 33
41 37 44 32 43 36 46 34 45 38 41 46 34 45 38 41
39
- Carefully select all the hex bytes that represent the demo URL
- Tap the 3-dot menu (⋮) again
- Select "Paste from..." → "Paste from ASCII"
- Enter your custom server URL (ensure it's the same length or shorter)
- Tap "OK" to replace the selected bytes
Critical: The replacement URL must be exactly the same number of characters as the original, or shorter. If shorter, the remaining bytes should be padded with null bytes (00).
Step 3d: Save Changes
- After making the replacement, tap the 3-dot menu (⋮)
- Select "Save" to save your changes to the library file
- Confirm the save when prompted
Step 4: Repeat for All Architectures
Repeat Step 3 for each libapp.so file in every architecture folder present in the APK. This ensures the app will work correctly on all supported device types.
Verification
To verify that your changes worked correctly:
- Open the modified Hot Player app
- Check if it successfully connects to your server
- Verify that content loads properly from your configured services
Troubleshooting
Common Issues:
- App crashes on startup: Ensure you replaced the URL in all architecture folders
- Still connecting to demo server: Double-check that you found and replaced all instances of the demo URL
- APK won't install: Make sure the repacking process completed successfully and try enabling unknown sources
- URL too long: Use a shorter domain or path, or consider setting up a redirect from a shorter URL
Success! Your Hot Player app should now connect to your personal server instead of the demo server. Users can now register their devices and access content through your configured services.
Security Considerations
- Always backup the original APK before making modifications
- Test the modified APK thoroughly before distributing to users
- Keep your server URL secure and don't share it publicly
- Consider implementing proper authentication and rate limiting on your server