How to modify an apk, add your dns into an apk

Post Reply
User avatar
emre1393
Donator
Posts: 197
Joined: Mon Oct 21, 2019 8:07 pm

Mon Dec 02, 2019 10:21 pm

as you know there are many iptv player apps for android. in this topic i will show you how to decompile and compile apk file with apktool.

-extract apk folder to c:\ path
-open cmd as administrator
-then

Code: Select all

cd c:\apktool
-copy your apk into apktool folder
-decompile apk file with apktool, it will extract apk file to c:\apktool\apk_name folder

Code: Select all

apktool d apk_name.apk
-edit files as you want
-compile apk again with apktool

Code: Select all

apktool b apk_name
-compiled apk will be in c:\apktool\apk_name\dist\apk_name.apk
-install java 8
-sign apk file with signapk.jar

Code: Select all

java -jar signapk.jar testkey.x509.pem testkey.pk8 apk_name\dist\apk_name.apk signed_apk_name.apk
-then optimize this signed_apk_name.apk with zipalign

Code: Select all

zipalign -v 4 signed_apk_name.apk zipalign_apk_name.apk
-and this zipalign_apk_name.apk is ready to use on android devices.


download apk tool: http://www.mediafire.com/file/yf5pu1gt4 ... l.zip/file

-next posts of this topic will be about how to add domain name into apk files.
discord: emre1393#1269
User avatar
emre1393
Donator
Posts: 197
Joined: Mon Oct 21, 2019 8:07 pm

Mon Dec 02, 2019 10:21 pm

i will use this post as guide for adding domain names into apk files.

decompile apk files, edit files and compile them again. (look above to first post)
for stb emu app wrote: -for stb emu, you can change default profile and add your domain name.

-Specify the url address of the portal, go to:

Code: Select all

\StbEmu\res\values/strings.xml
-find <string name="default_portal_url"> line and modify as you wish.

Code: Select all

 <string name="default_portal_url">http://yoururl.domain:port/c/</string>
-Change application logo:

Code: Select all

edit \StbEmu\res/drawable\logo.png
edit \StbEmu\res\drawable-en-xhdpi\banner.png
for ltq 60 app wrote: warning: i heard that original developers of ltq hates unauthorised modifications and they did attack to dns names of modified apks. i don't know how to prevent this.
-for ltq v60 app, download from https://www.mediafire.com/file/asb5t89r ... 0.apk/file
-for ltq v61 app, download from https://www.mediafire.com/file/46owdxq0 ... 1.apk/file

-this file has domain name string

Code: Select all

LTQv60\smali\com\topper865\ltq\d\a.smali
- there are 2 place to replace,

Code: Select all

 find
http://mbm.watch:25461/
and replace them with yours. 
-also you can use ltq portal, look at pcpaul's post.
https://xtream-ui.com/forum/viewtopic.p ... 243#p14243
Last edited by emre1393 on Tue Dec 03, 2019 11:47 pm, edited 2 times in total.
discord: emre1393#1269
pcpaul
Posts: 5
Joined: Sat Oct 19, 2019 8:28 pm

Tue Dec 03, 2019 2:42 pm

LTQ v6x
Get the appstore / notifications working....

change line 78 (NOTIFICATIONS)

Java:
const-string v2, "notifications.php"

change line 97​ (APPSTORE)

Java:
const-string v2, "appstore.php"

change line 188​ IF NOT DONE ALREADY
to:​

const-string v0, ""

change line 196
to the url to match where you put the php files on your server

Java:
const-string v0, "http://YOURSERVER/FOLDER/FOLDER/"

Recompile the apk
Attachments
PHP.zip
(2.36 KiB) Downloaded 38 times
Last edited by pcpaul on Tue Dec 03, 2019 4:07 pm, edited 1 time in total.
User avatar
martinrfc
Donator
Posts: 3
Joined: Thu Oct 10, 2019 3:48 pm

Wed Dec 04, 2019 12:01 am

Is there a bug when viewing the sports schedule on this version as each time I move to it the app craches well on memu anyway :( ? Thanks to both contributers for there efforts regardless.
pcpaul
Posts: 5
Joined: Sat Oct 19, 2019 8:28 pm

Wed Dec 04, 2019 3:07 pm

yes it crashs on memu - ok on boxs/phones tho

V61 crashs also on themes in setting menu
User avatar
martinrfc
Donator
Posts: 3
Joined: Thu Oct 10, 2019 3:48 pm

Thu Dec 05, 2019 3:06 pm

pcpaul wrote:
Wed Dec 04, 2019 3:07 pm
yes it crashs on memu - ok on boxs/phones tho

V61 crashs also on themes in setting menu
Thanks for the info dude.

Do you think it would be worth while or already tried moving the code for that from one for the previous working versions over to try fix it?
Vipers77
Donator
Posts: 1
Joined: Thu Nov 21, 2019 2:19 pm

Thu Dec 05, 2019 4:22 pm

Do you also have the check_update file?
Post Reply