Tutorial XCIPTV 4.0.0(545) Custom User-Agent, AppName and Skip License Validation.
Lets assumed you allready had the app hardcoded to your DNS, if not, search on the forum for it, its allready posted by Ian.
Step 1: open smali\com\nathnetwork\xciptv\util\Config.Smali
line 173 change to = const-string v0, "com.nathnetwork.YourAPPName"
line 178 change to = const-string v0, "YourAPPName"
Step 2: Open AndroidManifest.xml and search for this:
line 2 package="com.nathnetwork.YourAPPNAme"
line 24 android:authorities="com.nathnetwork.YourAPPName.provider"
Be sure that you use the same Name replacing the part of "YourAPPName" on line 173 of the Config.Smali and the line 2 and 24 on the AndroidManifest.xml.
Note: the line 178 will be the "User-Agent" and now you can secure your streams. In this case the user-agent will be "YourAPPName-v4.0.0".
If you do this, the app will compile fine and run, but when you try to play any stream, the license validation will crash the app messagin "Invalid License", to fix this and avoid any future call-back from ott and skip license validation, you need a dns running php and upload ApiIPTV.php on some folder. I.E. server.com/folder/ApiIPTV.php
Then go back and Open smali\com\nathnetwork\xciptv\util\Config.Smali
Find this on line 173 to 185
.line 4
invoke-static {}, Lcom/nathnetwork/xciptv/util/Config;->APIOneFromJNI()Ljava/lang/String;
move-result-object v0
sput-object v0, Lcom/nathnetwork/xciptv/util/Config;->c:Ljava/lang/String;
.line 5
invoke-static {}, Lcom/nathnetwork/xciptv/util/Config;->APIOneFromJNI()Ljava/lang/String;
move-result-object v0
sput-object v0, Lcom/nathnetwork/xciptv/util/Config;->d:Ljava/lang/String;
.line 6
invoke-static {}, Lcom/nathnetwork/xciptv/util/Config;->APITwoFromJNI()Ljava/lang/String;
move-result-object v0
sput-object v0, Lcom/nathnetwork/xciptv/util/Config;->e:Ljava/lang/String;
And replace all those lines with this:
.line 4
const-string v0, "
sput-object v0, Lcom/nathnetwork/xciptv/util/Config;->c:Ljava/lang/String;
.line 5
const-string v0, "
sput-object v0, Lcom/nathnetwork/xciptv/util/Config;->d:Ljava/lang/String;
.line 6
const-string v0, "
sput-object v0, Lcom/nathnetwork/xciptv/util/Config;->e:Ljava/lang/String;
Be sure to replace "
That is it!
The requests sending by the XCIPTV include the Serial Number of the Device, so, with a little creativity, you can do more secures to your server like only allow one device per customer and so on.
Step 1: open smali\com\nathnetwork\xciptv\util\Config.Smali
line 173 change to = const-string v0, "com.nathnetwork.YourAPPName"
line 178 change to = const-string v0, "YourAPPName"
Step 2: Open AndroidManifest.xml and search for this:
line 2 package="com.nathnetwork.YourAPPNAme"
line 24 android:authorities="com.nathnetwork.YourAPPName.provider"
Be sure that you use the same Name replacing the part of "YourAPPName" on line 173 of the Config.Smali and the line 2 and 24 on the AndroidManifest.xml.
Note: the line 178 will be the "User-Agent" and now you can secure your streams. In this case the user-agent will be "YourAPPName-v4.0.0".
If you do this, the app will compile fine and run, but when you try to play any stream, the license validation will crash the app messagin "Invalid License", to fix this and avoid any future call-back from ott and skip license validation, you need a dns running php and upload ApiIPTV.php on some folder. I.E. server.com/folder/ApiIPTV.php
Then go back and Open smali\com\nathnetwork\xciptv\util\Config.Smali
Find this on line 173 to 185
.line 4
invoke-static {}, Lcom/nathnetwork/xciptv/util/Config;->APIOneFromJNI()Ljava/lang/String;
move-result-object v0
sput-object v0, Lcom/nathnetwork/xciptv/util/Config;->c:Ljava/lang/String;
.line 5
invoke-static {}, Lcom/nathnetwork/xciptv/util/Config;->APIOneFromJNI()Ljava/lang/String;
move-result-object v0
sput-object v0, Lcom/nathnetwork/xciptv/util/Config;->d:Ljava/lang/String;
.line 6
invoke-static {}, Lcom/nathnetwork/xciptv/util/Config;->APITwoFromJNI()Ljava/lang/String;
move-result-object v0
sput-object v0, Lcom/nathnetwork/xciptv/util/Config;->e:Ljava/lang/String;
And replace all those lines with this:
.line 4
const-string v0, "
You need to be registered to see the hidden links
"sput-object v0, Lcom/nathnetwork/xciptv/util/Config;->c:Ljava/lang/String;
.line 5
const-string v0, "
You need to be registered to see the hidden links
"sput-object v0, Lcom/nathnetwork/xciptv/util/Config;->d:Ljava/lang/String;
.line 6
const-string v0, "
You need to be registered to see the hidden links
"sput-object v0, Lcom/nathnetwork/xciptv/util/Config;->e:Ljava/lang/String;
Be sure to replace "
You need to be registered to see the hidden links
" with your DNS running php.That is it!
The requests sending by the XCIPTV include the Serial Number of the Device, so, with a little creativity, you can do more secures to your server like only allow one device per customer and so on.
More Related Thread
Relate Threads