Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,804,353 Members 40,467 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Push MX Player into /system/app

Tip us?
 
zappacor
Old
#1  
Member - OP
Thanks Meter 12
Posts: 52
Join Date: Aug 2006
Default [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?
 
bleu8888
Old
#2  
Senior Member
Thanks Meter 159
Posts: 239
Join Date: Mar 2011
Quote:
Originally Posted by zappacor View Post
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?
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.
MX Player Developer
 
zappacor
Old
(Last edited by zappacor; 23rd July 2014 at 07:44 AM.)
#3  
Member - OP
Thanks Meter 12
Posts: 52
Join Date: Aug 2006
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.
 
sumantaadk
Old
(Last edited by sumantaadk; 23rd July 2014 at 03:25 PM.)
#4  
sumantaadk's Avatar
Member
Thanks Meter 16
Posts: 32
Join Date: Dec 2013
Location: Narayangarh
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-4o...p=docslist_api
Device: Xperia Ray (Urushi)
ROM OS Version: 4.4.x KitKat
ROM Kernel: Linux 3.4.x
 
bleu8888
Old
#5  
Senior Member
Thanks Meter 159
Posts: 239
Join Date: Mar 2011
Quote:
Originally Posted by zappacor View Post
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?
New test build may be installed on /system/app:
https://sites.google.com/site/mxvpen...ion/test-build

Also I also wrote brief instruction on FAQ:
https://sites.google.com/site/mxvpen...my-custom-ROM-
MX Player Developer
The Following 2 Users Say Thank You to bleu8888 For This Useful Post: [ Click to Expand ]
 
zappacor
Old
#6  
Member - OP
Thanks Meter 12
Posts: 52
Join Date: Aug 2006
Thanks man!!!! Will give it a try ASAP (cannot now).

One comment, regarding the FAQ:
Quote:
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.
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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes