[Q] Manually installing system app, reboot, no .odex - AT&T Samsung Galaxy S 4 Q&A, Help & Troubleshootin

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"

Related

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?

Installing an app on a odexed rom

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.

(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.

[Q] Lg Gallery Application not Reinstalling

Hello all,
My device is an ls980 running rooted, stock kitkat. About a week after the ZVC update (kitkat), my Lg Gallery application stopped working. It would not open, giving me an error message saying that "gallery has stopped." So I tried an "uninstall" application from the market to uninstall the stock app, and then I attempted to restore/reinstall it again. Every attempt I have made has been unsuccessful and the app cannot be installed.
So my question is: how can I get the Lg Gallery application reinstalled and working properly?
Thank you, I appreciate anyone's help greatly.
How did you uninstall the stock gallery from the play store when it's not available on the play store and I'm sure the reason it's not installing is because the app needs to be placed in the system/priv-app folder and needs to be given the correct permissions
Sent from my LG-D800 running stock kk, rooted with philz using XDA app
I uninstalled the app using a "system app uninstaller" application. The APK file is still located in my system/priv-app folder, and I have even tried installing it from there using root explorer. What permissions need to be applied?
Jayriff said:
I uninstalled the app using a "system app uninstaller" application. The APK file is still located in my system/priv-app folder, and I have even tried installing it from there using root explorer. What permissions need to be applied?
Click to expand...
Click to collapse
you apply the rw-r--r-- (0644) and then reboot, the phone should say android is upgrading and it should be working again
XxZombiePikachu said:
you apply the rw-r--r-- (0644) and then reboot, the phone should say android is upgrading and it should be working again
Click to expand...
Click to collapse
Those permissions are already applied to the file, but the APK still refuses to install even after a full reboot.
Jayriff said:
Those permissions are already applied to the file, but the APK still refuses to install even after a full reboot.
Click to expand...
Click to collapse
are both the apk/odex files there
XxZombiePikachu said:
are both the apk/odex files there
Click to expand...
Click to collapse
Actually the odex file is missing.
Then that's the problem
here's mine it should work no problem don't forget to add the permissions
Sent from my LG-D800 running stock kk, rooted with philz using XDA app
XxZombiePikachu said:
Then that's the problem
mine it should work no problem don't forget to add the permissions
Sent from my LG-D800 running stock kk, rooted with philz using XDA app
Click to expand...
Click to collapse
I copied the odex file over to the priv-app folder and added the permissions, but after a reboot, the gallery still will not install.
Perhaps the file is somehow damaged?
Well here's my gallery apk
Sent from my LG-D800 running stock kk, rooted with philz using XDA app
XxZombiePikachu said:
Well here's my gallery apk
Sent from my LG-D800 running stock kk, rooted with philz using XDA app
Click to expand...
Click to collapse
Hmm, this is very odd. I continue to get the same error. I guess I will have to continue researching the issue for a solution.
Jayriff said:
Hmm, this is very odd. I continue to get the same error. I guess I will have to continue researching the issue for a solution.
Click to expand...
Click to collapse
very odd indeed maybe you should find the apk/odex for your device or maybe placing them somewhere else like system/app
XxZombiePikachu said:
very odd indeed maybe you should find the apk/odex for your device or maybe placing them somewhere else like system/app
Click to expand...
Click to collapse
I was able to get the app installed again (although it did it on its own after a reboot and some tinkering...); however, the gallery still cannot open as before.

Unable to uninstall: com.sonyericsson.album_5.4.A.0.22.apk

I recently installed com.sonyericsson.album_5.4.A.0.22.apk, but like a noob I didn't read the description before hand and the apk file is actually only for Xperia Z2 System/Media/App ] Apks and Odex and Jar files for Z1
The apk installed as normal, however I can't find the application in my app drawer and using root explorer the album apk is not showing in system/app system/private app or any other location.
The problem is that I am not able to install the correct version as the wrong apk has to be removed somehow first, when I try to restore the version that used to work from titanium backup - it just hangs at restoring and never restores successfully. Trying to restore the apk directly from a file manager results in a "not installed" message - I think this is because the wrong apk is still hidden somewhere in my device.
Any suggestions guys? any suggestions will be highly appreciated :good:
Heres the thread from which I found the incorrect apk from:
http://forum.xda-developers.com/showthread.php?t=2665174
I've also attached the apk file here.
krohme said:
I recently installed com.sonyericsson.album_5.4.A.0.22.apk, but like a noob I didn't read the description before hand and the apk file is actually only for Xperia Z2 System/Media/App ] Apks and Odex and Jar files for Z1
The apk installed as normal, however I can't find the application in my app drawer and using root explorer the album apk is not showing in system/app system/private app or any other location.
The problem is that I am not able to install the correct version as the wrong apk has to be removed somehow first, when I try to restore the version that used to work from titanium backup - it just hangs at restoring and never restores successfully.
Any suggestions guys? any suggestions will be highly appreciated :good:
Heres the thread from which I found the incorrect apk from:
http://forum.xda-developers.com/showthread.php?t=2665174
I've also attached the apk file here.
Click to expand...
Click to collapse
If you installed it like a normal app (just opened the apk), then look into /data/app.
Someguyfromhell said:
If you installed it like a normal app (just opened the apk), then look into /data/app.
Click to expand...
Click to collapse
Thanks for the suggestion, but its not there either - strange.
Then how do you know, that it isn't gone yet?
The system wont allow me to install it again or any other com.sonyericsson.album.apk file, I'll keep checking system directories one by one until I find it.
Flash philz recovery, then download aroma file explorer from here http://forum.xda-developers.com/showthread.php?t=2236977 then, boot into recovery, begin to flash aroma file manager. Once the manager loads, navigate to the file you want to delete and do it that way
Sent from my SM-N9005 using XDA Premium 4 mobile app
speedyjay said:
Flash philz recovery, then download aroma file explorer from here http://forum.xda-developers.com/showthread.php?t=2236977 then, boot into recovery, begin to flash aroma file manager. Once the manager loads, navigate to the file you want to delete and do it that way
Sent from my SM-N9005 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
I'll give this a try thanks bro :highfive:

Categories

Resources