Installing an app on a odexed rom - Nexus 4 Q&A, Help & Troubleshooting

If I'm just staying on stock but rooted...where would I get the odex file that comes with the apk file?
For instance I copied the mms.apk file from another rom a while back because it was color themed (the bubbles)...but at the time I was on an deodexed rom. Now I'm on an odexed rom (stock). Then I just copied it to system/app set permissions and rebooted.
Can I still do that?
Sent from my Nexus 4 using xda app-developers app

Yes it will work fine, you just won't get an odex file to begin with. Don't use the old odex or force one on it will cause lots and lots of force closes and class definition problems. Download an app called SystemCleanup, it can create odex files for any system apps. Sideload something like MMS.apk from CM10 (like I did), set perms, then create an odex.
Jobs a good'n

skezza said:
Yes it will work fine, you just won't get an odex file to begin with. Don't use the old odex or force one on it will cause lots and lots of force closes and class definition problems. Download an app called SystemCleanup, it can create odex files for any system apps. Sideload something like MMS.apk from CM10 (like I did), set perms, then create an odex.
Jobs a good'n
Click to expand...
Click to collapse
I did this but before you had responded and never made the odex file...seems to be working fine. Do I need to do that? Or just leave it be?
Sent from my Nexus 4 using xda app-developers app

odex file will speed up a tiny amount.

Related

I accidentally deleted the Gingerbread music player....help.

I accidentally deleted the Gingerbread (.605) music player yesterday. I did the libjumper.so trick to put the Honeycomb 3.0 player on there and I accidentally overwrote the music.apk for gingerbread without making a copy. I supposedly found a copy if the apk and odex, but when I tried to install it....nothing showed up in the menu. I used root explorer to copy the apk and odex to system/app and I changed the permissions to rw-r-r then I rebooted the phone. That always seems to work when restoring system apps in the past but it isn't working this time. What am I doing wrong? And if I have the wrong apk and odex does anyone else have a link to the correct ones?
Sent from my DROIDX using XDA App
No idea what you might be doing incorrectly, but here...
http://www.chadhaney.com/droidXDefault/4.5.602/
When I clicked on that link I scrolled down to the music apk and odex. I clicked on them and it had a message on the page that they were downloading, but they weren't actually downloading. There was no download indicator at the top. Do you have another link?
Sent from my DROIDX using XDA App

Getting error can't install app not enough space.

Hi I AM getting error's that I can't install apps or update apps because there is insufficient space.
The only way I get any thing to install is to push them via root explorer and set the permissions accordingly, as you see from screen shot I have plenty of internal space as regards system space there is approx 200mbs free.
Anybody.know how to fix it.
Thanks for any help.
From the darkest reaches of my mind...... Somebody turn on the light
Hmmm, have you got lucky patcher installed?
Sent from my Nexus 7 using Tapatalk 2
leelaa said:
Hmmm, have you got lucky patcher installed?
Sent from my Nexus 7 using Tapatalk 2
Click to expand...
Click to collapse
Not that I AM aware.I am on stock rom but rooted.
If I need lucky patcher do you have link or is it available on the pay store.
From the darkest reaches of my mind...... Somebody turn on the light
This happens when there's an odex file of the apk you're installing is still present in the system.
Do you use titanium backup? Sometimes there is an Odex file you need to delete
Sent from my Nexus 7 using xda premium
Billchen0014 said:
This happens when there's an odex file of the apk you're installing is still present in the system.
Click to expand...
Click to collapse
Thanks never thought of this.
kilometers4 said:
Do you use titanium backup? Sometimes there is an Odex file you need to delete
Click to expand...
Click to collapse
When ever I install app I 1st try install like normal app, then when this fails,I use root explorer to move the app and set permissions.
I have noticed the odex files is it safe to delete? or do I need to move odex file then after install move odex back?
Is there away to deodex without running into probs,I AM new to n7 but not to android.
From the darkest reaches of my mind...... Somebody turn on the light
zolaisugly said:
Thanks never thought of this.
When ever I install app I 1st try install like normal app, then when this fails,I use root explorer to move the app and set permissions.
I have noticed the odex files is it safe to delete? or do I need to move odex file then after install move odex back?
Is there away to deodex without running into probs,I AM new to n7 but not to android.
From the darkest reaches of my mind...... Somebody turn on the light
Click to expand...
Click to collapse
I've heard that you have to delete the Odex file. I would copy it first just in case but I'd give it a try
Sent from my Nexus 7 using xda premium
Update it just seems to be gapps that are giving the issue I have deleted any gapp odex file from system and cleared any remaining files from data. Cleaned dalvik cache can now install apps from play store but not gapps
From the darkest reaches of my mind...... Somebody turn on the light
leelaa said:
Hmmm, have you got lucky patcher installed?
Click to expand...
Click to collapse
I have the same problem, and I do have LuckyPatcher installed, yes.
Billchen0014 said:
This happens when there's an odex file of the apk you're installing is still present in the system.
Click to expand...
Click to collapse
The apk I'm trying to install was just added to the phone. How can there be an Odex file for an apk that's never been installed on the system? Where would I find this Odex file?
kilometers4 said:
Do you use titanium backup? Sometimes there is an Odex file you need to delete
Click to expand...
Click to collapse
I do use TItanium backup, but I don't see why there would be an Odex file for an app that has never been installed. I found tons of Odex files when I searched with Root Explorer, but none that seemed relevent to the apk I'm trying to install.
Any help?

Install the stock 4.2.2 Launcher into a ROM?

Hi,
I've been wondering if I could somehow push the stock 4.2.2 Launcher that comes with the stock jellybean update into lets say CM10.1? I always preferred the stock Launcher over all those different ones, is it possible though?
Take the app from the stock ROM located in system/app. I believe its called "launcher2".
Then just put it into the system/app directory of the other ROM. Also change the permissions to rw-r-r, and delete the old launcher that is there. (In the case of CM, I think the original launcher is trebuchet so delete that apk)
Sent from my HTC Desire using xda app-developers app
chromium96 said:
Take the app from the stock ROM located in system/app. I believe its called "launcher2".
Then just put it into the system/app directory of the other ROM. Also change the permissions to rw-r-r, and delete the old launcher that is there. (In the case of CM, I think the original launcher is trebuchet so delete that apk)
Sent from my HTC Desire using xda app-developers app
Click to expand...
Click to collapse
I tried that before and I couldn't get it to work, I also tried to install the "Launcher2.apk" and it refused to install, I managed to install it by doing the following steps:
1-Flash the stock ROM:
http://forum.xda-developers.com/showthread.php?t=2147281
2- Download Titanium backup and back-up the "Launcher2.apk" file.
3- Do a full reset to phone/cache/dalvik
4- Flash the latest RC1 CM10.1 or whatever ROM, then reboot.
5- Install TB again and then restore (App+Data) for the "Launcher2" file.
6-Reboot
7- When booted, choose the "Launcher2" as the default Launcher.
8-Finally, launch TB and deleted "Trebuchet", Reboot.
The procedure might take long and I'm not sure if there is an easy way to do it, but I got it to work that way.
Thanks!

[Q] Manually installing system app, reboot, no .odex

I recently rooted my stock AT&T Samsung Galaxy S4 (MF3) and have been implementing a few improvements that I've found on this thread but have run into a strange error twice already when trying to replace an existing system app with a modded version.
With other phones in the past I simply paste an app into system/app and set RW-R-R permissions, then reboot the phone. During the next boot it usually says "android is upgrading 1 of 1" and creates a matching .odex file in the /system/app folder and everything works perfect.
So far I've tried to replace the SecPhone.apk with a version that allows call recording, and the TetheringProvision.apk with one that will let me tether on my AT&T phone. In both instances I reboot, but it never says "upgrading", nor is an .odex file created, and then the app fails to work. With the TetheringProvision.apk I also kept getting a "failed to change permissions" error in ES File Explorer, so I retried with Root Explorer, and SMangager but none of them could change the permission on the apk once it was in the system/app folder (yes /system was mounted R/W). I'm not sure if this is related to the above problem or not.
Has anyone else had a similar issue? I have frozen most of the Samsung bloatware apps and while I've been careful, I suppose I could have accidentally frozen something important, but everything other than these replacement system apps seems to be working perfectly. I thought android automatically checked for new apps on every boot, but apparently not on my phone.
Is there any way to force an app check on boot? Thanks for the help.
So I guess no one else has had a similar issue...
Sent from my GT-I9505 using xda app-developers app
You can not mod a rom that is odexed...period, unless it is made for odex.
TheAxman said:
You can not mod a rom that is odexed...period, unless it is made for odex.
Click to expand...
Click to collapse
Sorry, what do you mean by "period, unless it is made for odex"? Can you or can't you?
Sent from my GT-P7510 using xda premium
stinky73 said:
Sorry, what do you mean by "period, unless it is made for odex"? Can you or can't you?
Sent from my GT-P7510 using xda premium
Click to expand...
Click to collapse
For an Odexed system, an Odex file is required to be installed along with the original file. So if a mod is created for an "Odexed" system, it will have a .odex file accompanying it that must be installed also. Installing a deodexed file into an odexed system doesn't work unless the deodexed file is split down into its 2 parts again (original file, plus .odex file)..
This was very helpful. Is there a guide you could recommend to me on how to make an odex file from the modded apk that I have so that I can get these programs working on my S4?
Sent from my GT-I9505 using xda app-developers app
stephend9 said:
This was very helpful. Is there a guide you could recommend to me on how to make an odex file from the modded apk that I have so that I can get these programs working on my S4?
Sent from my GT-I9505 using xda app-developers app
Click to expand...
Click to collapse
Following article explains the odexing procedure "http://forum.xda-developers.com/showthread.php?t=1208320"

(Request) stock systemui and odex from mf3

Install a transparent notification bar, forgot to keep a copy of the original sysmui. Now i have no status bar and a black baground. If anyone can copy it from their phone, i really appreciated. Im on a active with mf3. Thanks
Sent from my SAMSUNG-SGH-I537 using Tapatalk 2
Could you go into a little detail on what happened and what you have done to try to fix it? I don't understand what your saying.
I think he wants the systemUI.apk for the active because he fubar'd his.
jd1639 said:
I think he wants the systemUI.apk for the active because he fubar'd his.
Click to expand...
Click to collapse
Any ideas where to get that? I don't even think that will install without flashing, but can't flash on MF3 yet.
Sent from miPhone using XDA Premium HD app
agent929 said:
Any ideas where to get that? I don't even think that will install without flashing, but can't flash on MF3 yet.
Sent from miPhone using XDA Premium HD app
Click to expand...
Click to collapse
You can copy the file from root explorer without flashing. I was able to get a copy of the systemui and place it into the sys/app folder. Now everything is back to normal.
Sent from my SAMSUNG-SGH-I537 using Tapatalk 2
Sweet nice job. Will remember that for the future
Where did you get it from?
Sent from miPhone using XDA Premium HD app
agent929 said:
Sweet nice job. Will remember that for the future
Where did you get it from?
Sent from miPhone using XDA Premium HD app
Click to expand...
Click to collapse
Got it from a friend who just picked up a s4 active.
Sent from my SAMSUNG-SGH-I537 using Tapatalk 2
So you just copied the apk off his phone I'm assuming? I'm also assuming it's the same apk as the regular S4? (I'm just trying to get better knowledge so I can help somebody in the future.)
agent929 said:
So you just copied the apk off his phone I'm assuming? I'm also assuming it's the same apk as the regular S4? (I'm just trying to get better knowledge so I can help somebody in the future.)
Click to expand...
Click to collapse
As the other person replied - with root access, you can download ES File Explorer, or Root Browser, give the app root access via SuperSU, navigate to the System > apps folder, find the file(s) you want, copy/move them where you need.
FourPointedFreak said:
As the other person replied - with root access, you can download ES File Explorer, or Root Browser, give the app root access via SuperSU, navigate to the System > apps folder, find the file(s) you want, copy/move them where you need.
Click to expand...
Click to collapse
Yeah I'm well aware you can do that but I didn't know that apk would actually function like an apk if you did that. Just thought it was more to it than that.
Sent from miPhone using XDA Premium HD app
agent929 said:
Yeah I'm well aware you can do that but I didn't know that apk would actually function like an apk if you did that. Just thought it was more to it than that.
Sent from miPhone using XDA Premium HD app
Click to expand...
Click to collapse
As long as you have the appropriate odex file along with it and you know how to do it - it should be fine. You have to know how an APK file works, Applications are basically glorified ZIP archives. The java code is stored in a file called classes.dex and this file is parsed by the Dalvik JVM and a cache of the processed classes.dex file is stored in the phone's Dalvik cache.
An odex is basically a pre-processed version of an application's classes.dex that is execution-ready for Dalvik. When an application is odexed, the classes.dex is removed from the APK archive and it does not write anything to the Dalvik cache. An application that is not odexed ends up with 2 copies of the classes.dex file--the packaged one in the APK, and the processed one in the Dalvik cache. It also takes a little longer to launch the first time since Dalvik has to extract and process the classes.dex file.
If you are building a custom ROM, it's a really good idea to odex both your framework JAR files and the stock apps in order to maximize the internal storage space for user-installed apps. If you want to theme, then simply deodex -> apply your theme -> reodex -> release.

Categories

Resources