request: extract m3u from app

by tjonez47

I recently subbed to an Iptv provider called royal then later found out the channels only works on a TV box you have to buy from them or through an apk. Is there a way to extract the channels from the app so i can add them to an iptv player like perfect player?

geobranham4326
yyzworker

Untried Method: What about decompiling the APK file and look at the source code?

http://www.javadecompilers.com/apk

  • upload apk and get source code

On a computer:

Procedure for decoding .apk files, step-by-step method:

Step 1: Make a new folder and copy over the .apk file that you want to decode.

Now rename the extension of this .apk file to .zip (e.g. rename from filename.apk to filename.zip) and save it. Now you can access the classes.dex files, etc. At this stage you are able to see drawables but not xml and java files, so continue.

Step 2: Now extract this .zip file in the same folder (or NEW FOLDER).

Download dex2jar and extract it to the same folder (or NEW FOLDER).

Move the classes.dex file into the dex2jar folder.

Now open command prompt and change directory to that folder (or NEW FOLDER). Then write d2j-dex2jar classes.dex (for mac terminal or ubuntu write ./d2j-dex2jar.sh classes.dex) and press enter. You now have the classes.dex.dex2jar file in the same folder.

Download java decompiler, double click on jd-gui, click on open file, and open classes.dex.dex2jar file from that folder: now you get class files.

Save all of these class files (In jd-gui, click File -> Save All Sources) by src name. At this stage you get the java source but the .xml files are still unreadable, so continue.

Step 3: Now open another new folder

Put in the .apk file which you want to decode

Download the latest version of apktool AND apktool install window (both can be downloaded from the same link) and place them in the same folder

Open a command window

Now run command like apktool if framework-res.apk (if you don't have it get it here)and next

apktool d myApp.apk (where myApp.apk denotes the filename that you want to decode)

now you get a file folder in that folder and can easily read the apk's xml files.

Step 4: It's not any step, just copy contents of both folders(in this case, both new folders) to the single one

and enjoy the source code...

jonconnery

Unfortunately you might have to cut your losses and don’t renew. Next time be sure to make sure the service provides a m3u option.

kandrews8098

First go through the setting of the apk and see if you can change the player to an external player such as mxplayer, then open any stream this should then play in mxplayer. Once a stream is playing using the external player you can view the properties of the stream, this will expose the URL.. eg.. http://xxx.xxxxx:12345/ with the username and password.. now you can try creating the URL to get the m3u playlist if its supported.. eg http://xxx.xxxxx:12345/get.php?username=xxxxxx& password=xxxxxx&type=m3u_plus&output=ts

Huerrbuzz

I had royal before, in fact I still have it. It turned out to be a disaster and I left them. It felt like the "company" changed hands and the new guy had zero care in the world to help me. I've tried over 20 IPTV easily. By far one of the worst.

nemofbaby2014

just cut your losses and switch to a better service

Damage14

What about webplayer, is that possible.

atavaneitor
geobranham4326

But if they don't give you a xc address then it won't work

apache07x

Install url sniffer and bluestacks on your windows computer, install the apk in blustacks and then start url sniffer. After url sniffer is going start the apk and play a channel. Should give you a url in an Xtream codes type format plug that into your program, extreme editor or whatever you prefer and there you go.

TDD_King

Lol I mean can the app work for a IPTV box which is Linux based ?

MrKaon

Everyone did comment about this matter, and here is mine:

HttpCanary

mrkingpin007

if you give me the apk I can get it for you .. then you can use iptv smarters or download the m3u to pc so you can edit the channel map or whatever.

also there are plenty of iptv sellers on here that can offer you what you want .. or join the chat --> r/iptvgta and ask on there what you want and the channels in particular you need

make sure you ask for a free test before paying .. and always pay with paypal imo as I don't trust giving my credit card info out.

h0ttzspam

Yes, there is!

Zagor64

You can't just extract a m3u from a provider. The backend server panel has to support m3u. If it does support it it usually produces a m3u link that looks like this:

http://xxxx.yyy.zzz:80/get.php?username=xxxxxx&password=xxxxxxxx&type=m3u_plus&output=ts

But, again..the back end server has to support m3u. As you notice you will need a user account and a password which is provided to you by the provider, If you don't have that then you can't do it.