This will essentially odex all files in your /system/framework and it will do it straight from the Android UI via my personal favorite app ... this is good because it frees up memory, makes UI transitions cleaner, and reduces DVM size.
NOTE: DO NOT TRY TO ODEX YOUR /SYSTEM/APP/ DIRECTORY THEN TRY TO ODEX USING THIS METHOD. YOU WILL HAVE A BAD DAY. 0_o framework must me odexed before system apps
1. download the odex.zip here --> PURPLE
2. extract all files with a file explorer, i prefer root explorer or fx file explorer
3. place the extracted folder and all of it's contents in /data/local/tmp ... so you should have /data/local/tmp/odex/+(misc files in new odex directory)
4. give the new directory and ALL contents FULL permissions - full read, write, and execute perms. You will need to set them all individually. the odex folder, and all contents. your file explorer, if it has taken you this far, should be able to accomplish this. Also, mount your system as writeable as well!
5. download this app TERMINAL EMULATOR dont worry it is free. open the app
Type the following commands - each new line should be executed with the enter key:
su (hit enter, it will ask for root)
/data/local/tmp/odex/odex (hit enter, you will see
you will see a bunch of outputs. there will be a message when it is done (honestly, like 10 seconds if that) saying something like "enjoy your hybrid ROM"
type "reboot recovery" (without the quotes)
device will boot into recovery immediately after you hit enter...
wipe cache and dalvik cache once more each, and reboot your device. PROFIT :good:
*Disclaimer - I don't take donations, just hit the thanks button, and the thanks button for anybody I mention in my thread.
typing su in doesn't request root permission. I am definitely rooted, not sure what's going on.
EDIT: Got it, the su was working but I didn't realize that it might just change from $ to # instead of asking for permission. I also had to grant not just the directory, but all of the files in the odex folder full permission, which might have just been a reading comprehension error on my part. Worked flawlessly after that. On Infamous 2.2
deadpass said:
typing su in doesn't request root permission. I am definitely rooted, not sure what's going on.
EDIT: Got it, the su was working but I didn't realize that it might just change from $ to # instead of asking for permission. I also had to grant not just the directory, but all of the files in the odex folder full permission, which might have just been a reading comprehension error on my part. Worked flawlessly after that. On Infamous 2.2
Click to expand...
Click to collapse
your super user app is probably set by default to allow access. also, i will update the OP to be a little more clear about setting the perms on the directory AND it's contents.
thanks
Forgot to mention that you have to mount your system to writeable.
Sent from my SGH-T999 using xda app-developers app
---------- Post added at 09:32 PM ---------- Previous post was at 09:18 PM ----------
Oh and the old odexme.apk works fine for odexing jb roms.
Sent from my SGH-T999 using xda app-developers app
TarHeelTrigger said:
Forgot to mention that you have to mount your system to writeable.
Sent from my SGH-T999 using xda app-developers app
---------- Post added at 09:32 PM ---------- Previous post was at 09:18 PM ----------
Oh and the old odexme.apk works fine for odexing jb roms.
Sent from my SGH-T999 using xda app-developers app
Click to expand...
Click to collapse
Ah, yes. I need sleep. Lol
So... shouldn't I see "odex" files in /system/app?
So what's the difference between this and the app that does it automaticly?
Sent from my SGH-T999 using xda app-developers app
I'll wait for the app
Sent from my SGH-T999 using xda premium
scifan said:
So... shouldn't I see "odex" files in /system/app?
Click to expand...
Click to collapse
I don't see the .odex files either...
Sent from my SGH-T999
scifan said:
So... shouldn't I see "odex" files in /system/app?
Click to expand...
Click to collapse
Nabeel10 said:
I don't see the .odex files either...
Sent from my SGH-T999
Click to expand...
Click to collapse
This Odex's the files in your /system/framework
NOT /system/app
WarlockW said:
This Odex's the files in your /system/framework
NOT /system/app
Click to expand...
Click to collapse
Ok, that explains a few things... I'd expected the /system/app folder to also be odexed
Think I restored from Nandroid because I couldn't tell what changed....
Sent from my SGH-T999 using Tapatalk 2
scifan said:
So... shouldn't I see "odex" files in /system/app?
Click to expand...
Click to collapse
No, you shouldn't, because this odexes /system/framework/* not /system/app/*.all
Also, please for the love of hot Asian women people... please read the directions carefully in the OP lol...
If you have used the odex me app... don't use this method... if you odex your system apps, THEN try to odex framework after, you will have issues.
cobraboy85 said:
No, you shouldn't, because this odexes /system/framework/* not /system/app/*.all
Also, please for the love of hot Asian women people... please read the directions carefully in the OP lol...
If you have used the odex me app... don't use this method... if you odex your system apps, THEN try to odex framework after, you will have issues.
Click to expand...
Click to collapse
Understood. Don't odex system apps BEFORE odexing framework, but can we odex system apps AFTER odexing /system/framework? Or better yet, is there any reason to odex system apps after odexing /system/framework?
Thanks in advance for your reply!
__McB__ said:
Understood. Don't odex system apps BEFORE odexing framework, but can we odex system apps AFTER odexing /system/framework? Or better yet, is there any reason to odex system apps after odexing /system/framework?
Thanks in advance for your reply!
Click to expand...
Click to collapse
Yes after you odex your framework you can odex system apps.
The main thing about odexing is your apps load faster and it frees up memory in your /data/ partition because you are removing a good chunk of dalvik cache.
Also does improve performance just a tick, by that I mean general UI responsiveness is improved.
Thanks!
just for the sgh3 or would any work like sgh2?
wondering if this would work for the s2 :fingers-crossed:
DAD12345 said:
wondering if this would work for the s2 :fingers-crossed:
Click to expand...
Click to collapse
No it won't.
Boot class path is different.
But if you change that part in the script it will work.
Will this work on all jb roms. Like 4.2 or is it just for s3 4.1?
sent via note 2 in boss mode @ quad core 1.9ghz
Didn't work for me and the dude was so rude that I asked really made me like unfollow him
Sent from my SGH-T989 using xda app-developers app
It didn't really work, and I gave full permissions as well, should I try again?
Sent from my SGH-T999
Related
Everyone seems to be asking for a silent camera app, also some desire one with better image/video capturing. There is one in existence however, most wouldn't know this (unless you use the 'search' function) because it's in the I9100 forum. Yes, it does work with our phone but I wanted something that was build from our source and that's up to date. I decided to take the best of both and combine them. This is the Camera.apk from Calkulin's 2.8.1 (EL29) ROM but with the edits from Potatoman's incorporated into it.
Check out Potatoman's thread to see the bitrates and sampling rates if you're curious. Instructions on how to put this in /system/app are in Patatoman's thread also. Let me know if for some reason they didn't work and I'll see what I can do. I've tested it on mine so I know it works I just haven't had a chance to test the sampling and bitrates.
Also, there's a media_profiles.xml that may or may not be useful. I use it anyway. That goes in /system/etc with no special permissions. Just give it the same as the stock one.
Lastly, in no way do I take credit for this. All I've done is combine work from two great devs - they did all the dirty work. If you'd like to thank or donate to someone then donate/thank one of them, or both
Cheers and enjoy.
EDIT: Figured I would add this here for those that aren't sure how to replace a /system file.
For a file explorer (eg. Root Explorer) make sure the system is mounted as r/w. Copy the app from your sdcard to the /system/app directory. Change permissions to rw-r-r. Reboot. I also set the owner and group to root but you shouldn't have to.
For terminal
Code:
su
mount -o remount,rw /dev/block/mmcblk0p9 /system
cp /sdcard/path/to/app /system/app
chmod 644 /system/app/Camera.apk
Reboot
Only if you have to should you just install it like a regular app. If you have to, just click on the app in your file explorer and select 'install'. This will install it to the /data/app directory. This should never have to be done though.
Just make sure you reboot
Sent from my SPH-D710 using xda premium
Thanks for the update. The higher bitrate camp.apk was posted in the theme/app section.
Excellent find... much obliged!
Sent from the last remaining Prime; Leader of the Autopads.
Didn't get it where the volume rocker takes picture though
Sent from the near past
Wait... so this particular .apk does not include the snap photo via volume rocker functionality?
I am just going by the previous post.
Sent from one impressive piece of technology.
No not yet anyway. It just has the higher bitrate and sampling rate right now. I'm new to .dex edits so I'll keep updating it as I learn more. I know there's a power button mod for it but from what I've read its still buggy.
Sent from my SPH-D710 using XDA App
KCRic said:
Everyone seems to be asking for a silent camera app, also some desire one with better image/video capturing. There is one in existence however, most wouldn't know this (unless you use the 'search' function) because it's in the I9100 forum. Yes, it does work with our phone but I wanted something that was build from our source and that's up to date. I decided to take the best of both and combine them. This is the Camera.apk from Calkulin's 2.8.1 (EL29) ROM but with the edits from Potatoman's incorporated into it.
Check out Potatoman's thread to see the bitrates and sampling rates if you're curious. Instructions on how to put this in /system/app are in Patatoman's thread also. Let me know if for some reason they didn't work and I'll see what I can do. I've tested it on mine so I know it works I just haven't had a chance to test the sampling and bitrates.
Also, there's a media_profiles.xml that may or may not be useful. I use it anyway. That goes in /system/etc with no special permissions. Just give it the same as the stock one.
Lastly, in no way do I take credit for this. All I've done is combine work from two great devs - they did all the dirty work. If you'd like to thank or donate to someone then donate/thank one of them, or both
Cheers and enjoy.
Click to expand...
Click to collapse
For noobs like me, do you just put the camera apk in your storage and install it using installer app?
Nice find! I just switched from Calkulin 2.8.1 to TNz Blend ROM and will love to have Calkulin's camera app with the Blend ROM... Best of both worlds! Will flash this tomorrow and report back.
Sent from my GT-P7510 using Tapatalk
Could not sleep so decided to install it now, not letting me though. Tried to install through the package installer but it won't go... Perhaps I cannot install it on a different ROM (running TNz Blend)
Sent from my SPH-D710 using Tapatalk
AntikytheraTech said:
Could not sleep so decided to install it now, not letting me though. Tried to install through the package installer but it won't go... Perhaps I cannot install it on a different ROM (running TNz Blend)
Sent from my SPH-D710 using Tapatalk
Click to expand...
Click to collapse
Yes you can....push to system/app....set permissions up like the other apps there....the click and install
Sent from the near past
Danial723 said:
Yes you can....push to system/app....set permissions up like the other apps there....the click and install
Sent from the near past
Click to expand...
Click to collapse
How do you set the permissions without using ADB? I only ask because I have never used it (clearly). But maybe now is the time.... :-S
Sent from my SPH-D710 using Tapatalk
AntikytheraTech said:
How do you set the permissions without using ADB? I only ask because I have never used it (clearly). But maybe now is the time.... :-S
Sent from my SPH-D710 using Tapatalk
Click to expand...
Click to collapse
You'll need a file explorer app like Root Explorer. You can also use a terminal emulator app. With the file explorer you copy the app from your sdcard to the /system/app directory. Make sure sure the system is mounted in r/w also. That will overwrite the original, now all you have to do is set permissions which are rw-r-r.
Just to be safe, reboot. If you had a shortcut for it on your homescreen you'll have to put it back there.
For terminal
Code:
su
mount -o remount,rw /dev/block/mmcblk0p9 /system
cp /sdcard/path/to/app /system/app
chmod 644 /system/app/Camera.apk
Danial723 said:
Didn't get it where the volume rocker takes picture though
Sent from the near past
Click to expand...
Click to collapse
I figured I would test to see if it had that function since Calkulin's camera does. I'm able to take pictures with the volume rocker. Are you not?
sratwars said:
For noobs like me, do you just put the camera apk in your storage and install it using installer app?
Click to expand...
Click to collapse
No,u need to put apk in /system/app folder but you need to be rooted to put apk's in that folder.
But u can try just installing it regularly,sometimes that works too for some apps.
(For noobs like me, do you just put the camera apk in your storage and install it using installer app?)
no. read instruction before replying PLEASE!
*xda_ace=spades. said:
(For noobs like me, do you just put the camera apk in your storage and install it using installer app?)
no. read instruction before replying PLEASE!
Click to expand...
Click to collapse
And read the dates before you revive a 5 month old thread PLEASE!
I noticed that force closes would lock up my phone with ICS ROMs enough to make it completely unusable at times. I noticed that this is so because a system state dump is done every time it hangs by default. I don't know how to disable this internally, but found out how to prevent dumpstate from running when this occurs.
Code:
su
busybox chmod a-x /system/bin/dumpstate
Enjoy!
So we just open a terminal emulator and type in that code?
Sent from my SAMSUNG-SGH-T989 using xda premium
An easier way is to navigate to /system/bin in Root Explorer, select dumpstate, long press, change permissions and remove execute permissions for all (system, user, etc).
Update: It's critical to ensure you have "R/W" permissions on the folder before doing this, if it reads "R/O" at the top, make sure you change it (change it by clicking on the "R/O", it will change to "R/W").
blchff04 said:
So we just open a terminal emulator and type in that code?
Sent from my SAMSUNG-SGH-T989 using xda premium
Click to expand...
Click to collapse
or you could do it through adb shell.
autom8r said:
An easier way is to navigate to /system/bin in Root Explorer, select dumpstate, long press, change permissions and remove execute permissions for all (system, user, etc).
Click to expand...
Click to collapse
"Easier" is subjective, but yes, that is another way of doing it.
Sent from my SGH-T989 using xda premium
Thanks for this tip. I tried both methods, but no dice. I can't seem to change either directory to read/write.
Any thoughts? Thanks in advance.
Reboot and try again. If it still doesn't work try flashing TDJs cache wipe script.
Sent from the iPhone graveyard.
Which ones should be checked?
Sent from my SGH-T989 using xda premium
Which ones should be checked?
Sent from my SGH-T989 using xda premium
Uncheck all the Execute permissions, that's all you need to do.
markusf21 said:
Reboot and try again. If it still doesn't work try flashing TDJs cache wipe script.
Sent from the iPhone graveyard.
Click to expand...
Click to collapse
Hmmmm... tried both. I get the following error:
Permissions change was not successful.
Please note that some file systems (e.g. SD card) do not allow permission changes
Click to expand...
Click to collapse
Any other thoughts?
niice, works great...i did it through root explorer, i went into lockscreen weather settings which always vibrates, stalls out and fc's..now it instantly fc's no hanging black screen or nothin
---------- Post added at 11:26 PM ---------- Previous post was at 11:19 PM ----------
TheSeanTeam said:
Hmmmm... tried both. I get the following error:
Any other thoughts?
Click to expand...
Click to collapse
yea that happened to me what i did was flashed darkside cache wipe n booted then went into manage apps, root explorer then cleared data/cache for the app (i have a feeling i didnt even need to darkside cache wipe i probably just needed to clear app data but those are the 2 steps i did anyways)
Sorry for the late responses. It seems like others covered the spread, though. You can type those commands into a terminal or with adb using adb shell. I've never done it with Root Explorer (I use ES...it's free and can browse/remount as root), but make sure it has root permissions before continuing. Also make sure that the /system partition has been mounted as read-write; it won't work otherwise.
Can confirm it works with root explorer just make sure you switch to r/w
Sent from my SGH-T989 using xda premium
I posted about this working in Root Explorer, without trying it firsthand, I've tried it now, and it does work. The reason is this, the original post's command simply reads: for all (that's the "a" part) users remove execute (the "-x" part) permissions. You can mimic this functionality in any App with the ability to change file permissions. It's critical to ensure you have "R/W" permissions on the folder before doing this, if it reads "R/O" at the top, make sure you change it.
The best way to push an app to your system/app file with out bricking your phone?
na4hotx said:
The best way to push an app to your system/app file with out bricking your phone?
Click to expand...
Click to collapse
Um that isn't going to brick you. Especially since you're talking about system app. Worst thing to happen would be a reboot if you touched an app which was currently running.
But I've been using root explorer and it works great. Or if the file is on my computer I use adb push. Or even a flashable zip if you really are worried.
Sent from my SGH-T999 using Tapatalk 2
As he said. Nothing else really needed to be said, good answer.
Sent from my SGH-T999 using xda premium
I used a file browser app and installed it over the existing one. Every time after that I was getting an error something .goo not responding. (SecPhone.apk) Trying to restor the call recording feature. I ended up doing a restore back to square one. No if I use root-explorer will it make a difference or should I use dab push? I would not know how to begging with that. could I use terminal and instal like I would if I was using the cwmtr.img install directions. but direct it to system/app?
na4hotx said:
I used a file browser app and installed it over the existing one. Every time after that I was getting an error something .goo not responding. (SecPhone.apk) Trying to restor the call recording feature. I ended up doing a restore back to square one. No if I use root-explorer will it make a difference or should I use dab push? I would not know how to begging with that. could I use terminal and instal like I would if I was using the cwmtr.img install directions. but direct it to system/app?
Click to expand...
Click to collapse
Which file browser app did you use? Did you remember to set the permissions for the newly copied apk? Permissions in /system/app should be rw-r--r
Sent from my SGH-T999 using Tapatalk 2
No I did not set permissions. If I use Root-Explorer will that allow me to set permissions? I used Smanager to move the file.
Ctrl+C then Ctrl+V
Can I use RootExplorer to zip file them flash it? Or just move using RE?
na4hotx said:
No I did not set permissions. If I use Root-Explorer will that allow me to set permissions? I used Smanager to move the file.
Click to expand...
Click to collapse
Yes, Root Explorer will allow you to change permissions as long as you aare rooted.
na4hotx said:
Can I use RootExplorer to zip file them flash it? Or just move using RE?
Click to expand...
Click to collapse
Root Explorer is a file manager, use to move the file to the appropriate folder and set permissions and reboot. I know you can create a zip & tar file, don't know if it would be flashable though.
na4hotx said:
No I did not set permissions. If I use Root-Explorer will that allow me to set permissions? I used Smanager to move the file.
Click to expand...
Click to collapse
Smanager isn't a good file system tool. Try root browser lite tap and hold functioning is perfect. Has options for copy paste and permissions
saldebot said:
Yes, Root Explorer will allow you to change permissions as long as you aare rooted.
Root Explorer is a file manager, use to move the file to the appropriate folder and set permissions and reboot. I know you can create a zip & tar file, don't know if it would be flashable though.
Click to expand...
Click to collapse
Yeah it can't make flashable zips. Just storage zip files
Sent from my SGH-T999 using Tapatalk 2
I am using Frosty JB v6. I asked in the developer thread and I got a reply http://forum.xda-developers.com/showthread.php?t=1874063&page=546
I tried using RootExplorer and I was still getting error messages after be booting. Is there a way to make it flash able? What am I doing wrong or is it just never going to work? Do I need to start looking for a rom that has it functional on the build?
Did you reset permissions to match the rest of the files in the folder?
And you probably need to wipe dalvik and cache in recovery.
Sent from my SGH-T999 using xda app-developers app
na4hotx said:
I am using Frosty JB v6. I asked in the developer thread and I got a reply http://forum.xda-developers.com/showthread.php?t=1874063&page=546
I tried using RootExplorer and I was still getting error messages after be booting. Is there a way to make it flash able? What am I doing wrong or is it just never going to work? Do I need to start looking for a rom that has it functional on the build?
Click to expand...
Click to collapse
Use root browser lite, you can get it from the market it's a freeware then copy the app you want to system/app ....no permission stuff needed
DocHoliday77 said:
Did you reset permissions to match the rest of the files in the folder?
And you probably need to wipe dalvik and cache in recovery.
Sent from my SGH-T999 using xda app-developers app
Click to expand...
Click to collapse
this. Also, you didn't odex your ROM did you?
deziguy420 said:
Use root browser lite, you can get it from the market it's a freeware then copy the app you want to system/app ....no permission stuff needed
Click to expand...
Click to collapse
Please know what you're talking about first before posting suggestions. Especially when it pertains to system directory permissions. System/app directory uses rw-r--r-- as the permissions. Meaning owner has read write permissions while everyone else only has read. Not setting permissions correctly can lead to many many many issues.
Sent from my SGH-T999 using Tapatalk 2
There is application on the market called system application mover
Sent from my SGH-T999 using xda premium
I vote for a rom that has it and works where you don't need to mod stuff, yet. Learn all this stuff with something you don't need, like a sound mod (DSP) or something.
simple video
http://www.youtube.com/watch?v=mJGbiSkom9M
So, I'm trying to customize my camera icon through the res and ect.. I got one of the apks to flash but, then I noticed it was very jagged and not clean at all so I decided to fix it up and now I can't get it to flash. When I do flash it the icon disappears and there is no camera app to be found. I have a feeling that my sizes or resolution of the picture of the (not working icon) are off or something. I will attach the not working and working camera apk below. If someone could tell me where I went wrong I would be very thankful.
Not working apk: https://dl.dropbox.com/u/37484095/(Not_Working)HTCCamera.apk
Working apk: https://dl.dropbox.com/u/37484095/(Working)HTCCamera.apk
Is the Rom odex? If it is, then you have to deodex the HTCCamera.apk
Sent from my PC36100 using xda app-developers app
bennyboy78 said:
Is the Rom odex? If it is, then you have to deodex the HTCCamera.apk
Sent from my PC36100 using xda app-developers app
Click to expand...
Click to collapse
I believe it is considering the file on the side of it is .odex. I apologize for not being the most knowledgeable on the subject. Would I deodex it in a kitchen? Like a rom kitchen of course.
I'm confused why one apk worked and the other didn't though?
EDIT: How would I go about deodexing??? I've been researching and tried using baksmali but, I keep getting error messages. I'm pretty lost right now.
Not really sure as to why it would just disappear like that if you only modified some images in the res folder... Did you mess with baksmali ? Possibly modifying something in there would cause it to dissapear.
As for deodex, get dsixdas kitchen, set it up, then just making a working folder out of the Rom you want to modify. After that's done, go to advanced options and select deodex a file or something. It should give you the option of the whole Rom or just a single apk. It's the long way, but its easier than baksmali, imo.
Sent from my PC36100 using xda app-developers app
I tried baksmali I'm not completely sure if I did it right but it gave me an out folder and then I used smali to make it into a classes.dex I'm not really sure what to do with that file. I assume you're supposed to zip it with the apk...but, when I do that I get a parse error.
My process for changing the images in res is I decompile the apk with apktool. I then go into the res folder switch out the ic launcher icon for the one I made. I then rebuild the apk with apk tool. From there I'm not sure if you're supposed to flash it in a zip or I can just adb push it....
Sent from my PC36100 using xda app-developers app
You need to take META-INF folder, and maybe the Manifest.xml from the original apk and place it in your modified one. Then push via adb or move to system with a root file manager.
Also fix permission, 644 (rw-r-r)
An enviousOG
I'll try once I get home. Thank you.
Sent from my PC36100 using xda app-developers app
Robobob1221 said:
You need to take META-INF folder, and maybe the Manifest.xml from the original apk and place it in your modified one. Then push via adb or move to system with a root file manager.
Also fix permission, 644 (rw-r-r)
An enviousOG
Click to expand...
Click to collapse
Alright, so how do I do the last command "fix permission 644 (rw-r-r)?"
steam374 said:
Alright, so how do I do the last command "fix permission 644 (rw-r-r)?"
Click to expand...
Click to collapse
If you use a root file manager (es explorer etc)
long press the apk and select permissions, then change to look like the image attached
If you're using adb:
Code:
adb shell chmod 644 /system/app/nameofapk.apk
Big thank you to both of you! Especially bennyboy78 I deodexed the apk in the rom kitchen like he said and just threw my customized icon in the apk and it worked! Thank you so much!
“ADMIRAL WILL YOU PLEASE COLOR CODE THAT WALL OF TEXT?” – why yes I will.
GREEN = Informational stuff about what we are doing.
BLUE = Instructions for process
RED = IMPORTANCE, PLEASE DO NOT DISREGARD
BLACK = not too important
PINK = very manly
####################################################################
DISCLAIMER – THIS WILL IMPROVE PERORMANCE (again…lolllll) AND FURTHER AND FARTHER OPTIMIZE YOUR DEVICE, SAVE STORAGE SPACE ON YOUR INTERNAL SD, AND PUT YOUR /SYSTEM/FRAMEWORK DIRECTORY AND ALL CONTENTS ON THE MOST POTENT ANABOLIC STERIODS KNOWN TO MAN. I AM NOT RESPONSIBLE IF/WHEN YOU FINISH READING THIS THREAD YOUR DEVICE RUNS OFF WITH YOUR GIRLFRIEND/WIFE/FAMILY/JOB BECAUSE IT IS NOW MORE “MANLEY” THAN YOU (see wut I did there…manley..rofl…).
####################################################################
Ok on to the serious part….
First, why odex? And what does it mean?
1.Odexing has the following benefits: Saves space in your /data directory, speeds up boot times SLIGHTLY, boosts loading of apps (in this case the apps that compose your framework), zip aligns framework and corresponding .odex files, reduced CPU cycles by optimizing framework.
2.So what is an “odex” file? Android applications similar to zip files. APK stands for “android package” and all of them contain java code, which is the second language in android aside from Linux. This code speaks to the device to execute operations that in turn speak to other system files, then ultimately the kernel, hardware, etc etc etc… we’ll not get into that. Java code is packed into a file within the APK called a “classes.dex” file and this file is parsed (copied) by the dalvik JVM and a cache of the processed classes.dex file is stored in the device’s /data/dalvik-cache directory.
An odex file is basically an already processed version of the classes.dex file that is “execution ready” for Dalvik. When xxxx application is “odexed”, the classes.dex is removed from the APK entirely and the information is converted to an odex file, and stored aside its owner APK (or in this case framework file). So rather than have two copies of the same file, and in different locations, you have one copy of that file, in the same location of the APK, all ready to go, and therefore making it more optimized for access by you – the user.
The benefits of doing this are tremendous! I have been doing this to all of my ROMs since I can remember. This process is detailed, but simple, just read carefully. I outlined the directions as simple and clear as I possibly could
On to the fun part>>>>>
FIRST, BEFORE YOU CONTINUE, BEAR IN MIND I DO NOT CURRENTLY HAVE A SCRIPT MADE TO UNDO THIS MOD, ONCE IT IS DONE, IT IS DONE! IT IS SAFE, HOWEVER, JUST FOLLOW DIRECTIONS CAREFULLY!
ALSO, MAKE SURE YOU ALREADY HAVE YOUR FAVORITE THEME INSTALLED! I WILL NOT BE RESPONSIBLE IF YOU APPLY THIS MOD THEN TRY TO FLASH XXXXX THEME AND GET CAUGHT IN A BOOT LOOP BECAUSE YOU COULDN’T DECIDE IF YOU WANTED GREEN OR BLUE BATTERY ICONS THEN CHANGED YOUR MIND ABOUT IT AFTER DOING THIS…..just don’t waste your time posting in this thread if you do that. But if you MUST bother such a story, here is your answer to the problem… “flash your ROM again, no need to wipe data, your device will boot now”############
Instructions:
1.Download Terminal emulator and FX file explorer and FX root add on from market.
2.Download the zip file at the end of this post named “odex.zip” to your device.
3.Open FX file explorer, find the odex.zip file, long press on it and select “open with” then select “Archive Extractor” then hit “extract here”
4.After it is done, you will then find a folder named “odex” in the same location of the downloaded “zip” version. Llong press on that folder and select copy
5.Navigate to the home screen of the FX file app, and select the red system logo (this is the one that allows you to explore as root.
6.Navigate to /data/local/tmp, when you get to tmp, select the icon at the top right corner of the app that says “clipboard” and paste the folder into /data/local/tmp
You should now have a folder there named “odex”
7.Long press on the folder, select “permissions” and check ALL of the 3 boxes for Read, Write, and Exec(ute)… if you have done this successfully the bottom left of that little popup window for setting permissions should say 0777, hit “ok” to commit the changes.
8.Now go into the odex folder, and inside of it repeat step 7 for ALL 5 files. They should all have FULL permissions.
9.After that is done, hit back until you are at the root directory, seeing “System (Root)” at the top of the FX file window with the red box with a # symbol inside of it. You’ll notice as well, the top right corner there is a yellow lock icon, inside a green box. We need that to be red, with an “unlocked” lock icon. Select it, and disregard built in FX file warning about how the world is going to end etc etc etc if you don’t know what you are doing – you know what you are doing, so no worries. If it is already red and “unlocked” then awesome, skip to step 10.
10.Scroll down a bit, and you will see “system” folder, this is your system directory. Go in there, and again make sure we are “red” and “unlocked” in the top right corner. You are a savage animal at this point, on a mission. Your device needs optimizing, disregard doomsday warnings about the T1000 enslaving the human race and how your brother will likely turn into a cylon if you unlock your /system directory (or make it read/writable… which is all this is doing)
NOW! The really fun part. You got your favorite theme? Sweet. Got your odex files all cocked and ready to rock? Check. Got your kids addicted to Teletubbies in case you mess up your ***t and you need like an hour to fix it?!?! Kidding… that won’t happen…
FIRST BEFORE YOU CONTINUE!!!!! PUT YOUR DEVICE INTO AIRPLANE MODE!!!!!!! You do not want to get a phone call or something while this script is executing. Interruptions will be rude and unkind… Please follow this instruction, please. For the love of the last terrible terminator movie.
11.Open terminal emulator, and type the following commands WITHOUT the quotes, hitting enter after each line:
“su” (if it asks for super user permission, grant it, obviously, if it doesn’t ask, you have already granted it)
“/data/local/tmp/odex/odex”
About 8.7 seconds later, it should be done, and you will see a little message saying “reboot to recovery and wipe cache and dalvik cache one more time” at the very end.
12.Hold power button, select “reboot options” then “recovery” hit ok, boom. If you don’t have that neat little modification to your android.policy.jar file, then power off, and boot into recovery by holding the volume up, home, and power button. In that order, until you see something on your screen. If you are NOT RUNNING EXT2… meaning you are not running Malicious ROM and/or you have not used my ext2 modificaitons…. Then simply type “reboot recovery” in terminal emulator, hit enter, and skip all the previous crap in “12”… “but then y u no say that first admiral?” … “Don’t question me son, it is for the good of the nation and humanity, and noobs who would read “oh ok reboot recovery BOOM” then they corrupt a file somewhere because of an unclean shutdown and are back at step -1 of this entire instruction which is restoring their backup… if they were pansy enough to make a backup. The admiral is manley, he has no use for backups. But he also knows what to do in case he needs one and doesn’t have one, cadet.”
ALSO IMPORTANT!!!!! Before you wipe dalvik cache again from recovery… if you are running my ext2 modification for /system /data/ and /cache…. MAKE SURE YOU VERIFY “THE BOX” is checked in twrp settings… you know which one I am talking about at this point. lol. It is the “format with yadda yadda rm command”
Wipe dalvik cache from recovery once more, then reboot the device.
DONE! Your ROM is now odexed!
-Admiral
http://db.tt/na11Ma9L
Another may mod. I'm not the only one who enjoys odexed. I was actually going to make the next release odexed... or was at least tossing the idea around in my head
Sent from my SGH-T889 using xda app-developers app
kintwofan said:
Another may mod. I'm not the only one who enjoys odexed. I was actually going to make the next release odexed... or was at least tossing the idea around in my head
Sent from my SGH-T889 using xda app-developers app
Click to expand...
Click to collapse
Well now you can.
I'm a firm believer in odexing. Most efficient way to run. I'm all about efficiency
Sent from my SM-N900T
Is tweaked odexed?
Sent from my SGH-T889 using xda premium
Tweaked is not odexed by default. You can find out if the ROM you are running is odexed or not by going to /system/framework with a file explorer. If you see a bunch of files in there with ".odex" tags on the tail end of them, then it is odexed.
If they are not there, then it is not odexed.
Sent from my SM-N900T
AngryDinosaur said:
Is tweaked odexed?
Sent from my SGH-T889 using xda premium
Click to expand...
Click to collapse
Non if the custom ROMs are odexed. It's more of a stock thing
Sent from my SGH-T889 using xda app-developers app
Alright
Sent from my SGH-T889 using xda premium
I keep getting this
Sent from my SGH-T889 using xda premium
Can we Odex our roms with XPosed framework mod installed? Or can we only Odex the apps and not system? Thanks a bunch for sharing.
Noellenchris
noellenchris said:
Can we Odex our roms with XPosed framework mod installed? Or can we only Odex the apps and not system? Thanks a bunch for sharing.
Noellenchris
Click to expand...
Click to collapse
you can odex any framework with this...
Not sure what you mean by the second part of your question, though. This is odexing your framework... which is found in /system ...?
ezsoulja said:
I keep getting this
Sent from my SGH-T889 using xda premium
Click to expand...
Click to collapse
For some reason it is thinking you are trying to execute a folder? And not a file?
Not cutting or flaming you in any way, but this is a user error. You typed the command properly, and everything looks like it SHOULD have executed. Go back to the step where you are moving the odex folder to the /data/local/tmp directory, make sure you did everything correctly, and retry.
Admiral Sir Manley Power said:
you can odex any framework with this...
Not sure what you mean by the second part of your question, though. This is odexing your framework... which is found in /system ...?
For some reason it is thinking you are trying to execute a folder? And not a file?
Not cutting or flaming you in any way, but this is a user error. You typed the command properly, and everything looks like it SHOULD have executed. Go back to the step where you are moving the odex folder to the /data/local/tmp directory, make sure you did everything correctly, and retry.
Click to expand...
Click to collapse
i made sure of it, i extracted the folder to the tmp folder and changed the odex folder 1 and 2 to 777 and all the files inside the 2nd odex folder and had both the root of the system and folder unlocked with the red icon. im not sure what could else be missing. im on tweaked 2.4.1 btw
ezsoulja said:
i made sure of it, i extracted the folder to the tmp folder and changed the odex folder 1 and 2 to 777 and all the files inside the 2nd odex folder and had both the root of the system and folder unlocked with the red icon. im not sure what could else be missing. im on tweaked 2.4.1 btw
Click to expand...
Click to collapse
Why do you have two odex folders?
Sent from my SGH-T889 using Tapatalk 2
Admiral Sir Manley Power said:
you can odex any framework with this...
Not sure what you mean by the second part of your question, though. This is odexing your framework... which is found in /system ...?.
Click to expand...
Click to collapse
With XPosed installed it can modify the framework, I'm afraid if I odex the framework, the xposed add on will crash my system. There is also an application on XDA called "Odex Me" which only Odex's the Applications and not the framework, that's what I was talking about in my second part of the question. I suppose I can do a backup and give it a go and see what xposed does.
Also Xposed also does other system mods other than framework. So it may only disable the framework modding portions after I odex the framewok.
Noellenchris
Admiral Sir Manley Power said:
Why do you have two odex folders?
Sent from my SGH-T889 using Tapatalk 2
Click to expand...
Click to collapse
For some reason when I extracted it, that's the way it came.. So it's basically just like the line says /data/local/tmp/odex/odex
EDIT: just removed one of the odex folders from within the odex folder and transfered the files to the first folder and everything worked from that point on..
Sent from my SGH-T889 using xda premium
noellenchris said:
With XPosed installed it can modify the framework, I'm afraid if I odex the framework, the xposed add on will crash my system. There is also an application on XDA called "Odex Me" which only Odex's the Applications and not the framework, that's what I was talking about in my second part of the question. I suppose I can do a backup and give it a go and see what xposed does.
Also Xposed also does other system mods other than framework. So it may only disable the framework modding portions after I odex the framewok.
Noellenchris
Click to expand...
Click to collapse
You'll be fine.
Go ahead and do it. Just make a backup of your /system if you wanna be safe, that's what they are there for
The DL link isn't working
Edit: Got it downloaded and working thanks for the odex man.
P.S What can be modified without messing up the odex for example will xposed framework modules cause the rom and odex to have complications. Thanks in advance
Sent from my SGH-T889 using xda premium
gonnapushthru06 said:
The DL link isn't working
Edit: Got it downloaded and working thanks for the odex man.
P.S What can be modified without messing up the odex for example will xposed framework modules cause the rom and odex to have complications. Thanks in advance
Sent from my SGH-T889 using xda premium
Click to expand...
Click to collapse
It may or may not. Honestly, either way it will require a little bit of work on your part after you flash it (assuming it actually boots, but it should...)
Just, best thing to do, like I said in the OP... Is flash your themes first, then odex. It will save you from the extra headaches and work trying to do the process in reverse.
Admiral Sir Manley Power said:
You'll be fine.
Go ahead and do it. Just make a backup of your /system if you wanna be safe, that's what they are there for
Click to expand...
Click to collapse
I've odex'd and it seems fine with xposed, after reading info on xposed they say it works on deox and odex roms, and it's running smooth. For some reason the screen appears brighter and sharper, probably some mod is not working but either way it is smooth and placebo maybe but looks great. Thanks again. I've done this in the past, but never to the system, just apps.
Noellenchris