This guide explains how to modify Purple Easy_1.5 to use your custom Cockpit API by changing the hardcoded URLs in the app.
Prerequisites
- MT Manager installed on your device
- Purple Easy_1.5 APK file
- Your custom Cockpit Panel URL (e.g.
https://yourdomain.com/api/easy/)
Steps to Modify the APK
Modify: com/purpleiptv/player/utils/f
- Find:
field public static final F:Ljava/lang/String; = "https://demo.cockpit.lol/api/easy/gp/v1.json"
- Replace with:
field public static final F:Ljava/lang/String; = "https://yourdomain.com/api/easy/gp/v1.json"
Modify: com/purpleiptv/player/utils/MyApplication
- Find:
const-string v1, "https://demo.cockpit.lol/api/easy/v1/main.json"
- Replace with:
const-string v1, "https://yourdomain.com/api/easy/v1/main.json"
Modify: com/purpleiptv/player/utils/MyApplication$Companion
- Find:
const-string v0, "https://demo.cockpit.lol/api/easy/gp/v1.json"
- Replace with:
const-string v0, "https://yourdomain.com/api/easy/gp/v1.json"
Modify: com/purpleiptv/player/viewmodels/j
- Find:
const-string v1, "https://demo.cockpit.lol/api/easy/gp/v1.json"
- Replace with:
const-string v1, "https://yourdomain.com/api/easy/gp/v1.json"
Modify: ea/b
- Find:
.field public static final i:Ljava/lang/String; = "https://demo.cockpit.lol/api/easy/gp/v1.json"
- Replace with:
.field public static final i:Ljava/lang/String; = "https://yourdomain.com/api/easy/gp/v1.json"
Compile, Sign, and Test
- After all changes, tap the Save button in MT Manager and then choose Compile.
- Wait for compilation to complete, then use the built-in APK Signer in MT Manager.
- Install the APK on your emulator or device.
- Test the application to ensure content loads from your new API URL.
Tip: You may need to uninstall the old version and clear app cache/data for changes to take effect.