EDIT: I apologize for not including this earlier, but I have attached dexopt-wrapper.bin to the bottom of the post. Unzip and push it to system/bin. Then give it the correct permissions which are
Read Write Execute
--x----x------x
--x-----------x
--x-----------x
I haven't seen any tutorials on how to odex an apk sooooo i thought i'd throw one up on here.
Before we begin, of course, a great big thank you to strongsteve, mpcdata and Capp5050.
Well first things first make a nandroid backup in recovery. Once thats done follow these steps.
Apps needed if doing it on the phone:
1. Rom Toolbox (I have the paid version)
(You can also just download a terminal emulator)
2.Get both Root Explorer and Astro File Manager.
3.Use Root Explorer and go to either system/app or data/app (system/app is for system files{most if not ALL of these files are already odexed} data/app is where you can find the apps you've installed from the market{!!!-I'm pretty sure the launchers are in system/app-!!!})
4.Copy the app that you want to odex into a new folder on your internal sdcard named "app"(in case you mess up you don't get problems ;D)
5.I suggest you write down the name of the app so you don't have to go back and forth if you have horrible memory like me =D.
6.Open up your terminal emulator and type
dexopt-wrapper /sdcard/app/insert.name.of.file.here.apk /sdcard/app/insert.name.of.file.here.odex
7.Press enter and check that new folder you made named "app", you should see both the .apk and the .odex file.
8.Next long press the .apk file in Root Explorer and hit Open With and then select Astro File Manager. Astro should pop up with three choices, you're going to click Browse File.
9.In that file you should see "classes.dex". DELETE that file.
(NOTE: you MUST do this from within Astro because if you unzip it will break the signature and file will be usless{unless you can resign it})
10.Once done you exit Astro and head back into Root Explorer, copy the .apk and .odex files and put them back into the folder you got the original .apk from (system/app or data/app)
11.Once you put both of them in there you need to fix the permissions, simply long press on the files (one at a time ;D) and scroll down the pop-up menu to Permissions.
12.You will have three columns Read, Write and Execute along with three rows Owner, Group and Others.
Your Permissions should be (this is for both .apk and .odex)
Read Write Execute
--X----X-----------
--X----------------
--X----------------
(I've attached a picture below of what your permissions should look like)
13.Once your permissions match the above diagram hit OK and restart your phone and your app is officially ODEXED.
If you have any questions feel free to PM me. I'll be glad to help with as much as i can. =D
NOTE:To Everyone: If i forgot something PLEASE let me know.
: To Mods: If this shouldn't be here please move it (if unnecessary, delete it)
Alred hit yo button but just wanted to say thank you in writing.
....um one major thing...your gonna need dexopt-wrapper script in system/bin to be able to odex within the rom
Was actually just wondering about that cause my script was in the rom already. Ill look into that in a few cause I'm going back to bed XD and you're welcome Cole I hope it has clear instructions XD
Sent from my SPH-D710 using xda premium
BigJPNut said:
....um one major thing...your gonna need dexopt-wrapper script in system/bin to be able to odex within the rom
Click to expand...
Click to collapse
Dexopt-wrapper is a binary.. Not a script..
Sent from my SPH-D710 using Tapatalk
strongsteve said:
Dexopt-wrapper is a binary.. Not a script..
Sent from my SPH-D710 using Tapatalk
Click to expand...
Click to collapse
Thats what I meant lol. Thanks for the correction Steve....either way gotta have it.
BigJPNut said:
Thats what I meant lol. Thanks for the correction Steve....either way gotta have it.
Click to expand...
Click to collapse
I updated the thread and it now includes where to put it and what permissions to give it. The file was also attached to the bottom of the thread.
I've tried this a dozen times every which way and it always says no such location exists
Sent from my SPH-D710 using xda premium
Optimal Carnage said:
I've tried this a dozen times every which way and it always says no such location exists
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
You have to create the app folder in sdcard =D
Sent from my SPH-D710 using xda premium
mavd5831 said:
You have to create the app folder in sdcard =D
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
I've done that lol...and to be specific the folder is located at the root of they internal sdcard not external correct?
Sent from my SPH-D710 using xda premium
Optimal Carnage said:
I've done that lol...and to be specific the folder is located at the root of they internal sdcard not external correct?
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
Yeah its on internal sdcard tell me what youre typing lol
Or gimme a screenshot
Sent from my SPH-D710 using xda premium
mavd5831 said:
Yeah its on internal sdcard tell me what youre typing lol
Or gimme a screenshot
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
dexopt-wrapper /sdcard/app/galleries.apk /sdcard/app/galleries.odex
Exactly how you have it posted but with the app I want to odex.
Sent from my SPH-D710 using xda premium
Optimal Carnage said:
dexopt-wrapper /sdcard/app/galleries.apk /sdcard/app/galleries.odex
Exactly how you have it posted but with the app I want to odex.
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
Hmmm have you put dexopt-wrapper.bin in system/bin and gave it permissions?
And did you copy the apk into sdcard/app?
Sent from my SPH-D710 using xda premium
mavd5831 said:
Hmmm have you put dexopt-wrapper.bin in system/bin and gave it permissions?
And did you copy the apk into sdcard/app?
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
Yeah I copied the bin file as well as copied the app to the sdcard location. I'm trying to get scrolling wallpaper back after el29 and somebody posted the old apk but it's deodexed and I'm odex on my phone.
Sent from my SPH-D710 using xda premium
Optimal Carnage said:
Yeah I copied the bin file as well as copied the app to the sdcard location. I'm trying to get scrolling wallpaper back after el29 and somebody posted the old apk but it's deodexed and I'm odex on my phone.
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
Im not sure but check to see if the app folder you created is App or app and try it however it is there
Sent from my SPH-D710 using xda premium
You can also try odexing it from within its originl folder
Ex. dexopt-wrapper /data/app/galleries.apk /data/app/galleries.odex and then copy the apk somewhere outside the data folder and delete the classes.dex file then put it back in the data folder and set permissions.
Sent from my SPH-D710 using xda premium
Let me know if it worked ;o
Sent from my SPH-D710 using xda premium
thanks for posting this.
I second that gravedig
Sent from my SPH-D710 using Tapatalk
Thirded. Lol. I learned how to odex my apps this morning! Worked first try. Great instructions. Thanks
Sent from my SPH-D710 using Xparent Blue Tapatalk 2
Iv been searching around for a stock 4.0.4 (ICS) ROM.zip (not firmware) that i can use to build my rom on it (since its untouched etc.) iv looked on google and xda and cannot seem to find a link
If you could provide that would be great.
Thanks -MrModMan
Make your own from a ftf.
Sent from my CM9'd Arc
Alright but i don't how to and i don't know how long that would take me and seeing as i can just download a .zip their you go.
Use winRAR and flashtool for that.
With the help of winRAR you can extract the .ftf file. Then if you want app you can use system.sin and with flash tool extract .sin file. Search the thread for that in xda it is available.
Hit thanks if I helped you
Sent from my MK16i using xda app-developers app
chiragvagh said:
Use winRAR and flashtool for that.
With the help of winRAR you can extract the .ftf file. Then if you want app you can use system.sin and with flash tool extract .sin file. Search the thread for that in xda it is available.
Hit thanks if I helped you
Sent from my MK16i using xda app-developers app
Click to expand...
Click to collapse
+1 Although there are a couple of threads.
Sent from my CM9'd Arc
Does any one knows how to do this?
Sent from my GT-N7105 using Tapatalk 2
Download the image.
Open it via 7zip.
Take out boot.img
If you haven't downloaded it yet then head onto ketan's thread
He has posted latest stock kernels there.
Sent from my GT-N7100 using xda app-developers app
lqrt said:
Does any one knows how to do this?
Sent from my GT-N7105 using Tapatalk 2
Click to expand...
Click to collapse
Use an archive manager like 7zip. right click on the firmware.tar and go to the 7zip menu and select open archive. find the boot.img and drag it out to your desktop
EDIT: Beaten to the punch ha!!
seems that i can't find the .apk file inside /system/ap using root explorer. i'll be using cm10 file manager so i want to remove it. thnx in advance
dec0der said:
seems that i can't find the .apk file inside /system/ap using root explorer. i'll be using cm10 file manager so i want to remove it. thnx in advance
Click to expand...
Click to collapse
Try uninstall it using titanium backup..
Sent from my GT-I8150 using xda premium
eza azami said:
Try uninstall it using titanium backup..
Sent from my GT-I8150 using xda premium
Click to expand...
Click to collapse
yep, i just thought it has a different filename in /system/app thats why i can't find it there. thnx :good:
Hi everyone,
I downloaded a stock rom from sammobile.
It's a zip containing a .dll file and a .tar.md5 file.
Can anyone tell me how i can flash this?
One tutorial says to check onepackage another one says it has to be selected as pda.
Thanks
Sent from my GT-S5660 using xda app-developers app
DevWithCookies said:
Hi everyone,
I downloaded a stock rom from sammobile.
It's a zip containing a .dll file and a .tar.md5 file.
Can anyone tell me how i can flash this?
One tutorial says to check onepackage another one says it has to be selected as pda.
Thanks
Sent from my GT-S5660 using xda app-developers app
Click to expand...
Click to collapse
If there is one package, you do what seems the most logical - flash the zip as a one-package one as it contains all parts inside.
Ya i thought that at first but a guy on youtube flashed it as pda and he has 50000 views
Sent from my GT-S5660 using xda app-developers app
DevWithCookies said:
Ya i thought that at first but a guy on youtube flashed it as pda and he has 50000 views
Sent from my GT-S5660 using xda app-developers app
Click to expand...
Click to collapse
Download Odin and .ops file.
Open Odin and select .ops file and check One Package, then flash the file tar.md5!