MX Player : System Application - MX Player

I found a way to convert mx player to system app. You just need to edit its .dex file and set the nativeLibraryDir to "/system/lib".
My mx player(system app) is now running without asking for codec...

meryll said:
I found a way to convert mx player to system app. You just need to edit its .dex file and set the nativeLibraryDir to "/system/lib".
My mx player(system app) is now running without asking for codec...
Click to expand...
Click to collapse
Why do you want to install it as a system app..?
Modifying the apk is illegal & not allowed. When MX Player signature verification fails it will crash after some time.
BTW, it's nit necessary to modify dex files. Just extract the libs from the apk to /system/lib & copy the untouched apk to /system/app. It should work.
Read the FAQ here
https://sites.google.com/site/mxvpe...l-MX-Player-as-a-system-app-on-my-custom-ROM-
Sent from my Samsung Galaxy S5 using XDA Labs

Related

[Q] Can you watch HULU from the G tab?

I tried and I got the unsupported platform message.
I could never get it to work but look here
http://forum.xda-developers.com/showthread.php?t=856318
Hulu Tips
The trick for getting Hulu working is to do these things:
1) Use Either Dolphin Browser or SkyFire
2) In the browser, Settings...set User Agent to "Desktop"
3) In Advanced Settings set Plugins to "Always On"(Default is "on demand"))
4) Install either the Adobe flash player hacked apk or hexedit the libflashplayer.so file yourself. I had issues using the hacked apk, I just hexedited my own on the PC and moved it over. Instruction and hacked apk in first post of this thread: http://forum.xda-developers.com/showthread.php?t=856318&highlight=hulu
5) Install AdFree from the marketplace
6) Delete/Rename the Host file in /system/etc (TNT Lite Builds)
7) Start AdFree, it will want to create the Host file. If it exists when you run it, it will hang and not complete the installation.
8) When AdFree comes up there is an option to "Revert" click this button to allow ads, Hulu needs this to work.
9) Reboot to clear the host cache.
10) Turn back on AdFree Host file restrictions if you like after you're done with the Hulu Goodness! Enjoy!
rooted?
Is there anything special that needs to be done in order to delete "system/etc/hosts" file? I am running TNT lite 2.4 with Cwm, and/\ have had superuser capabilities for everything else, I'm assuming it's not root related?
I did it - I can see the video but when clicked after waiting for a while to run I'm getting the "unfortunately Hulu is not supported on your platform...
Well it works, sort of. It played real nice until it reached a commercial. Then it paused for a few seconds and Dolphin crashed. Tried again and had no sound. Re-booted, tried again and it worked again. Haven't watched long enough to see if it crashes at the commercials again.
Full screen sort of worked. Had to disable the popup blocker in Dolphin. Then it played for a few seconds until the video froze. Still had sound, but frozen video.
I wish there was something not as touchy as flash too...
Update.. Made it past the commercials this time. Seems pretty touchy but it works...
thaigai - you can use root explorer to delete the hosts file. All the firmware distros get you to root. You will need root in order to access the /system/etc and the /data/data/com.adobe.flashplayer/lib directories.
jcarlospr - Unfortunately.... message is usually caused by either the User Agent is not set to "Desktop" or your libflashplayer.so is not set correctly.
Download this file, unzip it, and use Root Explorer to copy it into the /data/data/com.adobe.flashplayer/lib directory
http://www.megaupload.com/?d=K4C7N34D
You can use this with both the Folio 100 Adobe Flash apk and the GLES Optimized Flash apk. The GLES Optimized is linked in Roebeet's TNT Lite Thread - http://forum.xda-developers.com/showthread.php?t=842004
Copy the libflashplayer.so file after installing the Adobe Flash Player apk.
dkhilo said:
thaigai - you can use root explorer to delete the hosts file
jcarlospr - Unfortunately.... message is usually caused by either the User Agent is not set to "Desktop" or your libflashplayer.so is not set correctly.
Download this file, unzip it, and use Root Explorer to copy it into the /data/data/com.adobe.flashplayer/lib directory
http://www.megaupload.com/?d=K4C7N34D
You can use this with both the Folio 100 Adobe Flash apk and the GLES Optimized Flash apk. The GLES Optimized is linked in Roebeet's TNT Lite Thread - http://forum.xda-developers.com/showthread.php?t=842004
Copy the libflashplayer.so file after installing the Adobe Flash Player apk.
Click to expand...
Click to collapse
No luck!!!
But I also notice that I didn't have the /data/data/com.adobe.flashplayer/lib directory - so I create it myself - is that right??
jcarlospr said:
No luck!!!
But I also notice that I didn't have the /data/data/com.adobe.flashplayer/lib directory - so I create it myself - is that right??
Click to expand...
Click to collapse
That doesn't sound right. Try uninstalling your flash player and reinstalling with the new GLES optimized Flash apk, then copy the libflashplayer.so file. Like I mentioned I had issues with the hacked apk.
dkhilo said:
That doesn't sound right. Try uninstalling your flash player and reinstalling with the new GLES optimized Flash apk, then copy the libflashplayer.so file. Like I mentioned I had issues with the hacked apk.
Click to expand...
Click to collapse
Ok, This is what I did
1. Re-downloaded Adobe Flash Player 10.1.12.1 from http://forum.xda-developers.com/showthread.php?t=842004
2. Went to settings/Applications/downloaded applications and uninstall the Adobe Flash Palyer 10.1
3. Using ES File Explorer I put the adobe flash player 10.1.120.1.apk
4. Went to the data/data/com.adobe.flashplayer/lib/ I renamed the libflashplayer.so that I got from http://www.megaupload.com/?d=K4C7N34D
5. Using the app App Installer I install the apk from step 3
6. Turn off the table after reboot I went back to the data/data/com.adobe.flashplayer/lib/ and rename back the file.
7. Went to hulu using skyfire (first, I verified that the option selected by default is desktop).
8. I selected a video from hulu and after 30 seconds I got the unsupported message.
Something else, I created data/data/com.adobe.flashplayer/lib/ directory because it was not there.
I am using TnT Lite V2.2.0
jcarlospr said:
Ok, This is what I did
1. Re-downloaded Adobe Flash Player 10.1.12.1 from http://forum.xda-developers.com/showthread.php?t=842004
2. Went to settings/Applications/downloaded applications and uninstall the Adobe Flash Palyer 10.1
3. Using ES File Explorer I put the adobe flash player 10.1.120.1.apk
4. Went to the data/data/com.adobe.flashplayer/lib/ I renamed the libflashplayer.so that I got from http://www.megaupload.com/?d=K4C7N34D
5. Using the app App Installer I install the apk from step 3
6. Turn off the table after reboot I went back to the data/data/com.adobe.flashplayer/lib/ and rename back the file.
7. Went to hulu using skyfire (first, I verified that the option selected by default is desktop).
8. I selected a video from hulu and after 30 seconds I got the unsupported message.
Something else, I created data/data/com.adobe.flashplayer/lib/ directory because it was not there.
I am using TnT Lite V2.2.0
Click to expand...
Click to collapse
I don't see where you are doing the adfree part. I got it to work using the Flash apk that was already modded without having to play with the lib file.
My bad - for some reason is not letting me to delete the host file or even rename it and I don't have anything else open - I tried right after turning on the tablet
jcarlospr said:
My bad - for some reason is not letting me to delete the host file or even rename it and I don't have anything else open - I tried right after turning on the tablet
Click to expand...
Click to collapse
Are you trying to delete the host file with something like androot, or root explorer? The folder has to be set to read/write or it won't let you change it.
thaigai said:
Is there anything special that needs to be done in order to delete "system/etc/hosts" file? I am running TNT lite 2.4 with Cwm, and/\ have had superuser capabilities for everything else, I'm assuming it's not root related?
Click to expand...
Click to collapse
Folder has to be set to read/write with something like root explorer.
dkhilo said:
The trick for getting Hulu working is to do these things:
1) Use Either Dolphin Browser or SkyFire
2) In the browser, Settings...set User Agent to "Desktop"
3) In Advanced Settings set Plugins to "Always On"(Default is "on demand"))
4) Install either the Adobe flash player hacked apk or hexedit the libflashplayer.so file yourself. I had issues using the hacked apk, I just hexedited my own on the PC and moved it over. Instruction and hacked apk in first post of this thread: http://forum.xda-developers.com/showthread.php?t=856318&highlight=hulu
5) Install AdFree from the marketplace
6) Delete/Rename the Host file in /system/etc (TNT Lite Builds)
7) Start AdFree, it will want to create the Host file. If it exists when you run it, it will hang and not complete the installation.
8) When AdFree comes up there is an option to "Revert" click this button to allow ads, Hulu needs this to work.
9) Reboot to clear the host cache.
10) Turn back on AdFree Host file restrictions if you like after you're done with the Hulu Goodness! Enjoy!
Click to expand...
Click to collapse
Is this in general for most devices?
Sent from my HTC HD2 using XDA App
ceo4eva said:
Is this in general for most devices?
Sent from my HTC HD2 using XDA App
Click to expand...
Click to collapse
The hack original came form those that discovered it on the Nexus One Phones(rcgabriel thx for correction). It just edits what Adobe Flash Reports to the website the client using it, in this case it reports WIN instead of AND. So, I believe it would work for all mobile devices as long as they use a libflashplayer.so file as well. You might want to hexedit your particular libflashplayer.so file since it may be different from the one posted here. This apk is specific to the tegra2 devices.
jcarlospr said:
My bad - for some reason is not letting me to delete the host file or even rename it and I don't have anything else open - I tried right after turning on the tablet
Click to expand...
Click to collapse
Also make sure your firewall is not doing some kind of ad blocking either. Some firewalls like Untangle have a ad blocker or if you use OpenDNS, you might have problems also if you have the restrictions to block the ad sites. Anything that blocks ads might prevent hulu from showing you the video.
Strangely enough, I needed to delete the host in order to have the AdFree even get to the point where it gives me the option to "revert" or load the updated hosts file. I'm not sure if the hosts file itself was blocking things, or the hosts file had some permissions preventing AdFree from modifying it. Either way, using Root Explorer after making sure the directory is R/W and not R/O is probably the easiest route for deleting this file.
dkhilo said:
Also make sure your firewall is not doing some kind of ad blocking either. Some firewalls like Untangle have a ad blocker or if you use OpenDNS, you might have problems also if you have the restrictions to block the ad sites. Anything that blocks ads might prevent hulu from showing you the video.
Strangely enough, I needed to delete the host in order to have the AdFree even get to the point where it gives me the option to "revert" or load the updated hosts file. I'm not sure if the hosts file itself was blocking things, or the hosts file had some permissions preventing AdFree from modifying it. Either way, using Root Explorer after making sure the directory is R/W and not R/O is probably the easiest route for deleting this file.
Click to expand...
Click to collapse
How I switch from r/o to r/w?
dkhilo said:
The hack original came form those that discovered it on the Galaxy S Phones. It just edits what Adobe Flash Reports to the website the client using it, in this case it reports WIN instead of AND. So, I believe it would work for all mobile devices as long as they use a libflashplayer.so file as well. You might want to hexedit your particular libflashplayer.so file since it may be different from the one posted here. This apk is specific to the tegra2 devices.
Click to expand...
Click to collapse
Minor historical correction - the hack originally came from the Nexus One forums. http://forum.xda-developers.com/showthread.php?t=687842&page=3
Fancast works great without all the BS, hulu is a waste of time.

[Q] Push MX Player into /system/app

Hi,
I'm trying to move MX Player into /system/app but even though I apktool decompile it and add its libraries to /system/lib it keeps requesting me to download the codecs on startup.
Summing up, what is shown here: forum.xda-developers.com/showthread.php?p=54329455
Any hint on how to successfuly add MXP as a system app?
zappacor said:
Hi,
I'm trying to move MX Player into /system/app but even though I apktool decompile it and add its libraries to /system/lib it keeps requesting me to download the codecs on startup.
Summing up, what is shown here: forum.xda-developers.com/showthread.php?p=54329455
Any hint on how to successfuly add MXP as a system app?
Click to expand...
Click to collapse
It searches for .so files from ApplicationInfo.nativeLibraryDir folder.
I have no idea what this folder will be if installed as a system app.
It is typically this form if installed as a downloaded app;For old Android: /data/data/com.mxtech.ffmpeg.v7_neon/libs
For KitKat and later: /data/app-lib/com.mxtech.ffmpeg.v7_neon-1
​I will be able to check more if you post logcat log.
Thanks mate!
Unfortunately, things are not that easy: actually my mopho isn't rooted. And yes, before you ask how I'm moving it to /system, what I did is to un-sparse the system.img from stock. So, now I mount, modify, re-sparse and heimdall flash using a script of mine. Problem is as everything is still stock I've almost no way to debug or troubleshoot anything live.
Back to the point, I think this is a strange way of doing things. I mean, I thought the "rule of thumb" for .so was to always default to /system/lib unless an update for the given apk was installed (in which case, /data does come into play).
But doing things like MXP does seems strange and at the same time makes me think one could never integrate MX into any ROM. This because MXP *always* searches into /data (as per your comment) and only way to move/copy/symlink into there after a data wipe/factory reset is a bit tricky. Any other way you could think of? I'm open to alternatives.
Finally, I could see lots of guys out there wishing to put MXP as their custom ROM player. Are you MXP devs planning to somehow make this easier? Please don't get me wrong, I'm asking kindly and in no way telling you what you have to do or "claiming" unpolitely.
I am on cm11. First I copy mx.apk and paste it to system/app with rw-r-r . Reboot device and got component file error. I extract libloader.mx.so and paste in sysyem/lib. Now I got the same error which op described. Here is logcat log https://docs.google.com/file/d/0B-4oyVtb98VZa3FuX2FBLXo5WDQ/edit?usp=docslist_api
zappacor said:
Hi,
I'm trying to move MX Player into /system/app but even though I apktool decompile it and add its libraries to /system/lib it keeps requesting me to download the codecs on startup.
Summing up, what is shown here: forum.xda-developers.com/showthread.php?p=54329455
Any hint on how to successfuly add MXP as a system app?
Click to expand...
Click to collapse
New test build may be installed on /system/app:
https://sites.google.com/site/mxvpen/translation/test-build
Also I also wrote brief instruction on FAQ:
https://sites.google.com/site/mxvpe...l-MX-Player-as-a-system-app-on-my-custom-ROM-
Thanks man!!!! Will give it a try ASAP (cannot now).
One comment, regarding the FAQ:
But this is not the case for MX Player Pro. Even if you purchased a copy, it is only for your personal use and cannot be shipped on the ROM for other person.
Click to expand...
Click to collapse
please bear in mind the idea of some of us is to move MXP into the ROM to free up /data space instead of creating a ROM to be distributed.
At least in my case, it seems I'll have to stay on the unpaid version as I do need to move as much as possible out of /data

[Q] Setting Ringtone One Plus One - challenge

Recently bought one plus one in India , was trying to customize the ringtone by using mp3 songs. But read in one of the forum that need to copy mp3 file in Ringtone folder and you will be able to see it in system ringtone's list.
But in my case the ringtones folder is in
/system/media/audio/ringtones
which is not allowing me to add any files , since do not have permission to write on this folder.
Please advice..
Is this the right folder to copy the desired mp3 file or have to copy somewhere else.?
If this is the right folder, how to set the permission to copy any files.
Following are few details about my phone
Android versio
4.4.4
model A0001
cyanogen OS 11
Thanking you in advance.
Cheers !!
Girish
girishdp said:
Recently bought one plus one in India , was trying to customize the ringtone by using mp3 songs. But read in one of the forum that need to copy mp3 file in Ringtone folder and you will be able to see it in system ringtone's list.
But in my case the ringtones folder is in
/system/media/audio/ringtones
which is not allowing me to add any files , since do not have permission to write on this folder.
Please advice..
Is this the right folder to copy the desired mp3 file or have to copy somewhere else.?
If this is the right folder, how to set the permission to copy any files.
Following are few details about my phone
Android versio
4.4.4
model A0001
cyanogen OS 11
Thanking you in advance.
Cheers !!
Girish
Click to expand...
Click to collapse
What message are you getting when trying to add the files and what are you using to try and do so? I can copy and paste an mp3 to the folder using es file explorer, changing the mp3's permissions to rw-r-r, then reboot and you can select it from the settings>sound>ringtones menu. You should be able to just set an mp3 from other programs, like shuttle music player, just click on the 3 dot menu on a track and you have an option to set as phone ringtone.
The file path you should be using is /sdcard/ringtones. The other path you are trying to copy them into needs root permissions to write, as that is the system ringtones folder. If you are rooted, then you would be able to write them in there.
from the one+
gsmyth said:
What message are you getting when trying to add the files and what are you using to try and do so? I can copy and paste an mp3 to the folder using es file explorer, changing the mp3's permissions to rw-r-r, then reboot and you can select it from the settings>sound>ringtones menu. You should be able to just set an mp3 from other programs, like shuttle music player, just click on the 3 dot menu on a track and you have an option to set as phone ringtone.
Click to expand...
Click to collapse
Thanks ..let me try to set using shuttle music player , if not have to root my phone..
girishdp said:
Thanks ..let me try to set using shuttle music player , if not have to root my phone..
Click to expand...
Click to collapse
Thanks a ton!! was able to set ringtone using Shuttle music player..
Thanks again.
Cheers !!
Girish
For CM12 users of one plus one.....using rooted phones, you can install "ES file explorer " aap there from you can r ringtone of your phone by the music player of this aap without any problem....the music player lie in the option list of es file explorer.

[Q] How can I restore a system app with .odex file ?

Hi,
I've deleted the app Docs that was in system\app\DocumentsUI.
There was the file DocumentsUI.apk in this folder and a subfolder named arm with the file DocumentsUI.odex like every system app.
I'd like to know how can I restore this app. I've tried to put back in place all the files but Android don't recognise the app...
Thank
Sebacestmoi said:
Hi,
I've deleted the app Docs that was in system\app\DocumentsUI.
There was the file DocumentsUI.apk in this folder and a subfolder named arm with the file DocumentsUI.odex like every system app.
I'd like to know how can I restore this app. I've tried to put back in place all the files but Android don't recognise the app...
Thank
Click to expand...
Click to collapse
Have you set the permission of both apk and odex file? Both file must be given rw-r--r-- as permission.
Yes but it didn't change anything...
The phone recognise the app if I put the .apk in directly in system/app and not in system/app/DocumentsUI but then it can't find the .odex file even if I put it next to the .apk...
It'll work without the odex won't it?
Sent from my Nexus 5 using Tapatalk
Unfortunately no. It give a force close message...
You still on kitkat?
Sent from my Nexus 5 using Tapatalk
No, I'm on official 5.1.1
Still no help. Nobody know how I can restore a system app ?

Custom charging animation when phone is off

How i can change the custom charging animation when the phone is off?
Also, if someone knows, i would like to know why the system says file can't be played when i try to open the bootSound.ogg that i created. It plays well on my computer though
anyone have beta firmware for honor 6 plus europe ?
Tomperz said:
How i can change the custom charging animation when the phone is off?
Also, if someone knows, i would like to know why the system says file can't be played when i try to open the bootSound.ogg that i created. It plays well on my computer though
Click to expand...
Click to collapse
You have to be rooted first...then you have to edit the bootanimation.zip
I think it should be on
/cust/media/bootanimation.zip
I am not sure...
And for the .ogg files android can't play them unless you have a player that supports .ogg i use es file explorer it has a media player that supports .ogg files
Sent from my H60-L04 using Tapatalk
Android supports OGG Vorbis files natively. The more likely reason for why you can't play it is because the player is unable to access the file itself. Either copy the file to somewhere you have full read access, or open it through a file manager which copies inaccessible files to temporary directories before passing the file path further (for example X-Plore).

Categories

Resources