This guide walks you through modifying the APKTime_2.2 app to connect to your custom Cockpit Panel. We'll change all hardcoded API endpoints using MT Manager.
Prerequisites
- MT Manager (Premium recommended for compiling/signing)
- The APKTime_2.2 APK file
- Your Cockpit Panel URL (e.g.
https://yourdomain.com/api/apktime/)
Modification Instructions
- Open MT Manager.
- Open the APKTime_2.2 APK file and locate classes.dex.
- Open the classes.dex file using Dex Editor Plus.
- Select All classes for analysis.
Modify: com/apktime/apktime/CategoryListActivity
- Find:
const-string v1, "https://demo.cockpit.lol/api/apktime/update.xml"const-string v0, "https://demo.cockpit.lol/api/apktime/apktime2.xml"
- Replace with:
const-string v1, "https://yourdomain.com/api/apktime/update.xml"const-string v0, "https://yourdomain.com/api/apktime/apktime2.xml"
Modify: com/apktime/apktime/tv/CategoryListActivity
- Find:
const-string v1, "https://demo.cockpit.lol/api/apktime/update.xml"const-string v0, "https://demo.cockpit.lol/api/apktime/apktime2.xml"
- Replace with:
const-string v1, "https://yourdomain.com/api/apktime/update.xml"const-string v0, "https://yourdomain.com/api/apktime/apktime2.xml"
Modify: com/apktime/apktime/tv/CategoryListActivity$1
- Find:
const-string v1, "https://demo.cockpit.lol/api/apktime/apktime2.xml"
- Replace with:
const-string v1, "https://yourdomain.com/api/apktime/apktime2.xml"
Modify: com/apktime/apktime/network/NetworkUrl
- Find and replace the following fields:
.field public static final APK_TIME_URL:Ljava/lang/String; = "https://demo.cockpit.lol/api/apktime/apktime2.xml".field public static final APK_UPDATE_URL:Ljava/lang/String; = "https://demo.cockpit.lol/api/apktime/update.xml".field private static final BASE_URL:Ljava/lang/String; = "https://demo.cockpit.lol/api/apktime/"
- Replace with:
.field public static final APK_TIME_URL:Ljava/lang/String; = "https://yourdomain.com/api/apktime/apktime2.xml".field public static final APK_UPDATE_URL:Ljava/lang/String; = "https://yourdomain.com/api/apktime/update.xml".field private static final BASE_URL:Ljava/lang/String; = "https://yourdomain.com/api/apktime/"
Compile and Sign
- After all changes, tap the Save button in MT Manager and then choose Compile.
- Once compiled, sign the APK using MT Manager’s built-in signer.
Testing
- Install the signed APK on an emulator or device.
- Launch the app and ensure it pulls content and updates from your Cockpit Panel.
- Check the category list and app listings for successful panel linkage.
Note: You may need to clear app cache or reinstall after modification for changes to take effect.