[Q] Push MX Player into /system/app - MX Player

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

Related

[Q] Backup?

Noob question here, how do i make a backup on this phone? do i need to unlock bootloader? it was so easy on the hero lol
I am also wondering this. I have a new stock NS4G with 2.3.4. I would like to root it, but my understanding is that is only possible on 2.3.4 if I unlock the bootloader also... right? Which will wipe my data.
Is there ANY option I have to backup data while not rooted? Specifically some saved games I have... Plants vs Zombies and Cut the Rope... I've spent (wasted) way too much time on those games to lose my saves!
I think game data saves are stored in/data/data/
I'm not 100% on this. See if you can back that folder up. Again, I'm not 100% on this. Do your research and come back to confirm but im about 75% certain it's /data/data/ but don't take my word.
Hmm... using androzip on phone, I browse to /data and I see no contents. :-( But there are some other directories outside of SDcard that I can see contents. Weird.
You do have permissions to access the data files themselves, but you do not have permissions to see the folder contents. So you need someone rooted who has those games installed to give you the path and filenames for the save files. Then download terminal emulator and
cat /data/data/com.happy.gamex/subfolder/gamesave1.poo > /sdcard/backup/com.happy.gamex/subfolder/gamesave1.poo
Make sure the file copied correctly (the new one is not empty). Then backup the sdcard, as that will get wiped, too. After you root, play a couple levels so the game will recreate the save files. Then to put your info back:
cat /sdcard/backup/com.happy.gamex/subfolder/gamesave1.poo > /data/data/com.happy.gamex/subfolder/gamesave1.poo
Thanks for the info Max, that sounds promising. Very strange to have access permissions but not "see" permissions... never heard of that in my other computing experience. Now to find somebody to help me. I wonder if I can use SDK to install games there and see some directory structure in the emulated device to answer the question? I did a google search for Plants vs Zombies and found one guy saying it's impossible with that game, rooted or not... but I still want to find out for myself.
The111 said:
Thanks for the info Max, that sounds promising. Very strange to have access permissions but not "see" permissions... never heard of that in my other computing experience. Now to find somebody to help me. I wonder if I can use SDK to install games there and see some directory structure in the emulated device to answer the question? I did a google search for Plants vs Zombies and found one guy saying it's impossible with that game, rooted or not... but I still want to find out for myself.
Click to expand...
Click to collapse
Well, I'm having trouble installing PvZ on my virtual device, but I have some other things installed and would like to browse my device directories, but I think they are all buried in .img files in my virtual device on my Windows machine. Any tips on getting inside these .img files to look around?
The111 said:
Thanks for the info Max, that sounds promising. Very strange to have access permissions but not "see" permissions... never heard of that in my other computing experience. Now to find somebody to help me. I wonder if I can use SDK to install games there and see some directory structure in the emulated device to answer the question? I did a google search for Plants vs Zombies and found one guy saying it's impossible with that game, rooted or not... but I still want to find out for myself.
Click to expand...
Click to collapse
It's the way linux permissions work. If a folder has execute but not read permissions, you can access subfolders and files, but cannot read the folder contents. If one of the files in it has read access, you can copy it, even though you can't see the actual file listing.
Maximilian Mary said:
You do have permissions to access the data files themselves, but you do not have permissions to see the folder contents. So you need someone rooted who has those games installed to give you the path and filenames for the save files. Then download terminal emulator and
cat /data/data/com.happy.gamex/subfolder/gamesave1.poo > /sdcard/backup/com.happy.gamex/subfolder/gamesave1.poo
Make sure the file copied correctly (the new one is not empty). Then backup the sdcard, as that will get wiped, too. After you root, play a couple levels so the game will recreate the save files. Then to put your info back:
cat /sdcard/backup/com.happy.gamex/subfolder/gamesave1.poo > /data/data/com.happy.gamex/subfolder/gamesave1.poo
Click to expand...
Click to collapse
This appears to be untrue.
I finally found (via another forum) the complete path to one of the saved game files I was interested in:
/data/data/com.zeptolab.ctr/shared_prefs/CtrApp.xml
So I tried in terminal: "cat /data/data/com.zeptolab.ctr/shared_prefs/CtrApp.xml > /sdcard/test.xml"
result: "/data/data/com.zeptolab.ctr/shared_prefs/CtrApp.xml: Permission denied"
The111 said:
This appears to be untrue.
I finally found (via another forum) the complete path to one of the saved game files I was interested in:
/data/data/com.zeptolab.ctr/shared_prefs/CtrApp.xml
So I tried in terminal: "cat /data/data/com.zeptolab.ctr/shared_prefs/CtrApp.xml > /sdcard/test.xml"
result: "/data/data/com.zeptolab.ctr/shared_prefs/CtrApp.xml: Permission denied"
Click to expand...
Click to collapse
Ahh... so frustrating. I want to upgrade to 2.3.5 rooted, and if I know for sure I have to lose these files, then I guess I'll lose them. But if there is any way at all to save them obviously I want to figure that out before I cross the point of no return...

[Q] Can't delete Mms.odex, "No such file or directory"

I'm trying to use my new Sensation with the SIM from my Japanese iPhone, which requires replacing the stock Mms.apk with one that works with Softbank. That much I managed to do. Now when I try to open the Messaging app it crashes immediately, which is apparently normal and means I need to delete the old Mms.odex. But when I try, the command prompt window tells me:
rm failed for /system/app/Mms.odex, No such file or directory
I've made sure the folder isn't read-only (I managed to copy the new Mms.apk to it after all). Not sure what else could be going wrong. Thanks in advance for any help.
Its not a good idea to push files into the system directory of an odexed ROM like that. You usually need to push the appropriate .odex file with the .apk file.
Also could be a permissions problem. You need to make sure the permissions for the new file the are same as what's already in the directory.
Sent from my Sensation using Cyanogenmod
dr.m0x said:
Its not a good idea to push files into the system directory of an odexed ROM like that. You usually need to push the appropriate .odex file with the .apk file.
Click to expand...
Click to collapse
I know it's not ideal, but this method seems to work just fine; I've read a bunch of Japanese blogs that explain this is how to get MMS working with Softbank, and people on forums elsewhere say it's worked for them.
dr.m0x said:
Also could be a permissions problem. You need to make sure the permissions for the new file the are same as what's already in the directory.
Click to expand...
Click to collapse
How do I do that? I'm pretty new to all this, two days ago I was Googling where to find my Sensation's settings menu
If you want to ensure the mms.apk has correct permissions you can simply run:
adb shell chmod 644 /system/app/mms.apk
This will set the correct permissions for apps in the /system/app folder, although its worth reading up on linux permissions to understand what the command is actually doing.
Permissions didn't help, but I've managed to track down another Mms.apk file that works well enough - messages don't integrate properly with HTC's Messaging app, but I can send and receive MMS. I'm going to keep looking for a better apk but at least this one functions!

How to modify ROM (add/remove stuff)?

I've searched all over the net but to no avail.
I want to add some apps into the /system/app folder of the ROM, but whenever I flash the ROM (I did all the procedures - sign the ROM and all), the apps do not work. Instead, they force close everytime I try to open them, and in App Manager, they have absolutely no storage at all - they're blank. 0MB.
I extracted the 31/08/2012 nightly build of CM10 for Samsung Galaxy Mini, then edited all that I needed before compressing and signing the .zip file. However, that doesn't seem to work, although I can flash the ROM.
Is there a way where I can add in my own apps (as system apps into /system/app) and remove selected ringtones(.ogg)? A tutorial would very much be appreciated! Thanks in advance
Brilliance8257 said:
I've searched all over the net but to no avail.
I want to add some apps into the /system/app folder of the ROM, but whenever I flash the ROM (I did all the procedures - sign the ROM and all), the apps do not work. Instead, they force close everytime I try to open them, and in App Manager, they have absolutely no storage at all - they're blank. 0MB.
I extracted the 31/08/2012 nightly build of CM10 for Samsung Galaxy Mini, then edited all that I needed before compressing and signing the .zip file. However, that doesn't seem to work, although I can flash the ROM.
Is there a way where I can add in my own apps (as system apps into /system/app) and remove selected ringtones(.ogg)? A tutorial would very much be appreciated! Thanks in advance
Click to expand...
Click to collapse
For the ringtones, you can simply delete them. For the apps, you need to make sure they're compatible with your Android version/device and they must also have the correct permissions.
What sort of apps are you trying to add?
Theonew said:
For the ringtones, you can simply delete them. For the apps, you need to make sure they're compatible with your Android version/device and they must also have the correct permissions.
Click to expand...
Click to collapse
How do I get the correct permissions? (How do I tweak them?)
aka_bigred said:
What sort of apps are you trying to add?
Click to expand...
Click to collapse
Things like replacing Trebuchet with Launcher Pro, basically replacing apps of my choice and adding in some more like Go Keyboard.

[GT-P6210] [XXMD3 De-Odexed & ZipAligned]

Please make a nandroid backup first!!!
Did not include Root, in case there's one derp that doesn't want this rooted. If you were rooted, you may need to re-root after flashing this. Preferrably after booting this.
ALSO: I highly recommend complete removal/uninstall of Xposed for safety.
Flash in custom recovery that is compatible with jellybean.(CWM 6.0.2.7+) or TWRP 2.5.0.0
This update.zip will wipe your /cache and /data/dalvik-cache and /preload/symlink/system/app's automagically.
Keep calm as it is extracting and be patient on reboot and enjoy...
This is entire /framework, /system/app and /preload/symlinks only, nothing removed so file size is beefy at 405MB. Also included Books and Videos .apk's from CSC in case they weren't already there.
Try to go easy on my hosting sites so they don't get suspended, I may host it at another if I need to.
Should anything go wrong, simply advanced restore /system only.
LINKS:
Mega.NZ
FileDropper
DropBox
reserved. just in case
I have downloaded your Rom and had a look it it before to flash. I saw that there is no /lib, no /bin, no /xbin and no /etc folders.
Is it intentional? Without the jb libs some apps like let's say Google now won't work. Not that I am a fan of Google but I mean, are you sure that it's ok to flash this Rom?
You are supposed to flash OVER stock ROM. Quite simple really. It is not intended to be a stand alone ROM. I maybe should have made that more clear, edited OP now. Thanks.
Some people think there is slight improvement by deodex/zipalign,
It does help theming/mods, as .odex editing is a pain, I have tried tab UI Mod using odex and it doesnt work, However after deodex I can mod things like Tab UI fairly easy.
Thats the main reason I deodexed these this time, I had to have Tab UI.
I see, so I will have too download stock jb first.
Ok, I 'll do it tomorrow and then I'll report here, because now I'm busy with other stuff.
Thanks for deodexing the Rom, it will save me some time!
Works fine. Thank you.
marincax said:
Works fine. Thank you.
Click to expand...
Click to collapse
Thank you sir for your response, and you are welcome.
Ok, I have installed everything and it works, thank you.
But how can I download the unwanted apps that are in the /prelod folder?
Everytime I try it says read only file system...
You need to be rooted, otherwise you should be able to disable them in settings, but not delete them unless you are rooted.
chrisrotolo said:
Please make a nandroid backup first!!!
Did not include Root, in case there's one derp that doesn't want this rooted. If you were rooted, you may need to re-root after flashing this. Preferrably after booting this.
ALSO: I highly recommend complete removal/uninstall of Xposed for safety.
Flash in custom recovery that is compatible with jellybean.(CWM 6.0.2.7+) or TWRP 2.5.0.0
This update.zip will wipe your /cache and /data/dalvik-cache and /preload/symlink/system/app's automagically.
Keep calm as it is extracting and be patient on reboot and enjoy...
This is entire /framework, /system/app and /preload/symlinks only, nothing removed so file size is beefy at 405MB. Also included Books and Videos .apk's from CSC in case they weren't already there.
Try to go easy on my hosting sites so they don't get suspended, I may host it at another if I need to.
Should anything go wrong, simply advanced restore /system only.
LINKS:
Mega.NZ
FileDropper
DropBox
Click to expand...
Click to collapse
what this version change? Could u in clear way tell me? humm i read sth but is like "bla bla bla" u know
chrisrotolo said:
You need to be rooted, otherwise you should be able to disable them in settings, but not delete them unless you are rooted.
Click to expand...
Click to collapse
I am rooted. Actually I found a way to do it, I just unzipped your Rom, removed what I didn't need, then repacked it and flashed it.
But in the preload/Internal_SdCard/Samsung folder there are many other unnecessary files like images, sounds and video.
How can I delete them? Because all together they weight like 90 mb..
If youre rooted, grab a real file explorer like root explorer mount system r/w and just delete
Otherwise you might try adb or even terminal, but I suggest a file explorer.
Agree, they are total dead weight.
chrisrotolo said:
If youre rooted, grab a real file explorer like root explorer mount system r/w and just delete
Otherwise you might try adb or even terminal, but I suggest a file explorer.
Agree, they are total dead weight.
Click to expand...
Click to collapse
Strange, my every day file explorer can delete files in data and system but didn't manage to mount rw preload. So I followed your advice and used another one. And I deleted everything of course.
Thanks!
Apart from that the Rom is nice, much better than ics. I had to remove the usual bloatware, more than 150 apks, but that's another story
installed p6210 version on my p6211 and i got once freez, maybe cuz cpu was really in use (downloading, surfing in net) hmm how u think, i will write if this happen again. anyway thanks kris i hope u will build multi window mod too good luck
If the guys over at TAB 2 forums (current WIP) make any progress and have good info/documentation, I'll give it a shot.
Really liking PA (4.2.2) though
Works great man!!! thanks!
Sorry
chrisrotolo said:
Please make a nandroid backup first!!!
Did not include Root, in case there's one derp that doesn't want this rooted. If you were rooted, you may need to re-root after flashing this. Preferrably after booting this.
ALSO: I highly recommend complete removal/uninstall of Xposed for safety.
Flash in custom recovery that is compatible with jellybean.(CWM 6.0.2.7+) or TWRP 2.5.0.0
This update.zip will wipe your /cache and /data/dalvik-cache and /preload/symlink/system/app's automagically.
Keep calm as it is extracting and be patient on reboot and enjoy...
This is entire /framework, /system/app and /preload/symlinks only, nothing removed so file size is beefy at 405MB. Also included Books and Videos .apk's from CSC in case they weren't already there.
Try to go easy on my hosting sites so they don't get suspended, I may host it at another if I need to.
Should anything go wrong, simply advanced restore /system only.
LINKS:
Mega.NZ
FileDropper
DropBox
Click to expand...
Click to collapse
Dear, your new link blocked in my country can you please reupload into putlocker or mediafire? thanks.
Please do for the new firmware.
Here's the link:
http://yadi.sk/d/cvbdlvNj6Sr6g
marincax said:
Please do for the new firmware.
Here's the link:
http://yadi.sk/d/cvbdlvNj6Sr6g
Click to expand...
Click to collapse
any changes in new firmware? improvements? humm

How do I modify system files (so they STAY modified)?

I think this is a universal issue that would apply to any android system. But in case it makes a difference, I've got some Samsung devices. I've got an original Tab S (10.5 inches) and a Note 4 (8 inches). The first is running Resurrection Remix (based on Nougat) and the second is running LineageOS 16.
WHAT I WANT TO DO:
I want to modify some files that live in subdirectories of sys and system. Basic text files, whether XML or anything else. I want to change the configuration settings within the files. I'm rooted and all that. I can edit the files, but after I do, the system puts them back the way they were.
I can only draw one conclusion from this: THE SYSTEM THINKS IT'S BETTER THAN ME, AND IT WANTS TO FIGHT.
I need help. How can I modify the files and have them stay modified? How do I put on my digital boxing gloves and show the system who's boss?
FailSafeNow said:
I think this is a universal issue that would apply to any android system. But in case it makes a difference, I've got some Samsung devices. I've got an original Tab S (10.5 inches) and a Note 4 (8 inches). The first is running Resurrection Remix (based on Nougat) and the second is running LineageOS 16.
WHAT I WANT TO DO:
I want to modify some files that live in subdirectories of sys and system. Basic text files, whether XML or anything else. I want to change the configuration settings within the files. I'm rooted and all that. I can edit the files, but after I do, the system puts them back the way they were.
I can only draw one conclusion from this: THE SYSTEM THINKS IT'S BETTER THAN ME, AND IT WANTS TO FIGHT.
I need help. How can I modify the files and have them stay modified? How do I put on my digital boxing gloves and show the system who's boss?
Click to expand...
Click to collapse
Well it looks like the app's data you want to modify is kept by the app itself and gets restored everytime. It's a security precautions and I don't think you can do much about it. Is it a game or something ?
But if you saw someone modify successfully the XML file without it being constantly restored I can't help you much, maybe uninstall/reinstall will do the trick but tbh it would be kinda weird.
Hope this help, good luck with your fight.
It's not an app. These are system files. They belong to the system itself.
FailSafeNow said:
It's not an app. These are system files. They belong to the system itself.
Click to expand...
Click to collapse
Can you precise the path to the file, it may come handy
FailSafeNow said:
I think this is a universal issue that would apply to any android system. But in case it makes a difference, I've got some Samsung devices. I've got an original Tab S (10.5 inches) and a Note 4 (8 inches). The first is running Resurrection Remix (based on Nougat) and the second is running LineageOS 16.
WHAT I WANT TO DO:
I want to modify some files that live in subdirectories of sys and system. Basic text files, whether XML or anything else. I want to change the configuration settings within the files. I'm rooted and all that. I can edit the files, but after I do, the system puts them back the way they were.
I can only draw one conclusion from this: THE SYSTEM THINKS IT'S BETTER THAN ME, AND IT WANTS TO FIGHT.
I need help. How can I modify the files and have them stay modified? How do I put on my digital boxing gloves and show the system who's boss?
Click to expand...
Click to collapse
Ok, you're rooted, that's only part of what you need in order to modify system files. The next step is, are you using an app that has a "root explorer" built-in and do you have your read/write permissions set to r/w? If you haven't set your read/write permissions to r/w, you won't be able make changes and have those changes persist.
Sent from my SM-S767VL using Tapatalk
Droidriven said:
Ok, you're rooted, that's only part of what you need in order to modify system files. The next step is, are you using an app that has a "root explorer" built-in and do you have your read/write permissions set to r/w? If you haven't set your read/write permissions to r/w, you won't be able make changes and have those changes persist.
Sent from my SM-S767VL using Tapatalk
Click to expand...
Click to collapse
Yes, I'm using FX, with the root explorer, and the system is mounted read-write.
Let's go with the example I'm most concerned with currently. My Note 4 has sound coming out of the wrong channels. Right and left are switched. I've tried modifying mixer_paths.xml in system/vendor/etc, which is supposed to be a way of fixing this. But the system just changes the file right back.
Edit: The permissions for the System directory are thus: All can read, but only Owner Root can write. Can I change this somehow?
Further update: I rooted my device even more than it was before. I installed the root binary for Lineage OS and set the built-in root to ADB and Apps. I used chmod from a terminal to change permissions for /system, /system/vendor, and /system/vendor/etc to 775. Those permission changes are sticking. But I can't seem to change the xml file so that it stays changed. I even used FX to modify its permission, but it just doesn't work. Nothing doing.

Categories

Resources