• According our Forum Rules,

    • only English Language is allowed
    • asking other members for Likes is forbidden
    • First of all introduce yourselft to earn free likes from moderators
    • links to server IPs, other forums, website or shops, phishing or malware websites etc. are forbidden

    Please Make a small Donation : GET VIP ACCOUNT
    Discord Room

    Members who do not follow this rule will be banned !

Tutorial XCIPTV 4.0.0(545) Custom User-Agent, AppName and Skip License Validation

ZED

Administrator
Staff member
HARDCORE
VIP MEMBER
Joined
Sep 29, 2019
Messages
600
Reaction score
3,871
Points
93
Location
Morocco
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, "http://server.com/folder/"
sput-object v0, Lcom/nathnetwork/xciptv/util/Config;->c:Ljava/lang/String;

.line 5
const-string v0, "http://server.com/folder/"
sput-object v0, Lcom/nathnetwork/xciptv/util/Config;->d:Ljava/lang/String;

.line 6
const-string v0, "http://server.com/folder/"
sput-object v0, Lcom/nathnetwork/xciptv/util/Config;->e:Ljava/lang/String;

Be sure to replace "http://server.com/foler/" 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.

Download :

To view the content, you need to Sign In or Register.
 

olaiptv

Member
Member
Joined
Nov 4, 2019
Messages
15
Reaction score
34
Points
13
Location
hors zone
ApiIPTV.zip
End-of-central-directory signature not found. Either this file is not
a zipfile, or it constitutes one disk of a multi-part archive. In the
latter case the central directory and zipfile comment will be found on
the last disk(s) of this archive.
 

naspter

Member
Member
Joined
Oct 5, 2019
Messages
30
Reaction score
33
Points
18
gracias
 
Top