{TUT} How to Odex your APKs. - Samsung Epic 4G Touch

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

Related

System/app

So I am trying to copy past browser from frozen rom to urban metamorpisis how ever my computer won't let me does anone have any ideas on how to do this
Sent from my SPH-D700 using xda premium
If you have root you could copy it to your SD card with Root Explorer from the Market. Titanium Backup would let you back it up and restore the backup on another ROM.
Needs to be pushed to system\app with root explorer. Then reboot.
Sent from my SPH-D700 using XDA App
I tried that won't let me push it there for some odd reason
Sent from my SPH-D700 using xda premium
Did you hit the mount r/w button in the upper left hand corner of root explorer?
Sent from my SPH-D700 using xda premium
Yes I did I get to the app folder in system/app and then I clicked paste then I look to the folder and it didn't get placed
Sent from my SPH-D700 using xda premium
Try deleting or renaming the old file first then copy and paste the new one. Are you using Root Explorer?
Sent from my SPH-D700 using XDA App
Yes I am using root explorer I got it placed in current running rom in system/app and then re boot and look in app section and browser still not there try installing apk direct says app not installed
Sent from my SPH-D700 using XDA App
So you paste it,check it, its there, reboot and its gone?
Sent from my SPH-D700 using XDA App
No I reboot check its there but the actually app is not there
Sent from my SPH-D700 using XDA App
kennyglass123 said:
So you paste it,check it, its there, reboot and its gone?
Sent from my SPH-D700 using XDA App
Click to expand...
Click to collapse
thanks dude took me a while but i finally figured it out in a another post i posted and you told me to do it via zip7 or something i got it to stick, deleted old rom, transfered altered rom to sd wiped 3x flahsed new rom boot and walaa browser apears thank you very much sory for being a pain in the ... ya know..
bfitzpatrickd2d said:
thanks dude took me a while but i finally figured it out in a another post i posted and you told me to do it via zip7 or something i got it to stick, deleted old rom, transfered altered rom to sd wiped 3x flahsed new rom boot and walaa browser apears thank you very much sory for being a pain in the ... ya know..
Click to expand...
Click to collapse
No problem. Love a challenge. Glad you got it worked out.
Me too I love learning new things
Sent from my SPH-D700 using XDA App

Can't Delete from /System/Media

I am trying to change my boot animation in /System/Media but when using root explorer with SU permissions, I get an error message saying it can't delete the file. (I do mount as RW). I'm not quite sure what to do. I am on the Mijjz Blend ICS Rom, and am using the FF18 Kernel.
Press it again then try
Sent from my SPH-D710 using xda premium
musikalharmony said:
Press it again then try
Sent from my SPH-D710 using xda premium
Click to expand...
Click to collapse
I've tried mounting and unmounting, trying to delete multiple times, etc... Also re-starting. Nothing has worked.
Try renaming then deleting. if all you are trying to do is install a new bootanimation, then just rename the old to something else, and copy the new one into system/media and rename it bootanimation.zip all lowercase
Sent from my SPH-D710 using xda app-developers app
Try using ES File explorer

Cm10/cmx new boot animation

Here it is guys enjoy https://docs.google.com/file/d/0BzRgfImRwyLRdmVNTHZjcVNpUVE/edit
1. Use a browser in desktop mode
2. Click on file then download.
Mirror http://www.mediafire.com/?534p0gjidqwq9xu
(Push to system/media)
Sent from my SGH-T989 using Tapatalk 2
Which one? Lol
Here's a video:
http://www.youtube.com/watch?v=ogp9f4_yEoU
And here are some mirrors (taken from the description of the video):
https://rapidshare.com/files/3724672388/CM10ZipSaves.zip
http://www.mediafire.com/?534p0gjidqwq9xu
http://www.4shared.com/zip/rR8KTlTH/CM10ZipSaves.html
Sent from my SGH-T989 using xda app-developers app
casonswag said:
Which one? Lol
Click to expand...
Click to collapse
480 is ours vertical
Sent from my SGH-T989 using Tapatalk 2
Our phone is 480...
Can anyone else see the background layer of the animation (the black square)?
Sent from my SGH-T989 using xda app-developers app
We just flash from SD card right?
Sent from my SAMSUNG-SGH-T989 using xda app-developers app
Another Mirror
>>>>>>Download CM10_bootanimation.zip<<<<<<<
BlakeSRT said:
We just flash from SD card right?
Sent from my SAMSUNG-SGH-T989 using xda app-developers app
Click to expand...
Click to collapse
No!! ...move the zip file to system/media and set r-w-r-r permissions.
Sent from my AOKP'd T989
fresherthanU said:
No!! ...move the zip file to system/media and set r-w-r-r permissions.
Sent from my AOKP'd T989
Click to expand...
Click to collapse
OK thank you I've never changed the animation before I appreciate the help
Sent from my SAMSUNG-SGH-T989 using xda app-developers app
Anyone got a flashable zip of this? I removed my current boot animation zip and push this one and changer perms but gives nothing but a Android screen then black. Then I have to pull battery and flash another or restore previous to get phone back on.
Sent from my SAMSUNG-SGH-T989 using xda premium
Mista513 said:
Anyone got a flashable zip of this? I removed my current boot animation zip and push this one and changer perms but gives nothing but a Android screen then black. Then I have to pull battery and flash another or restore previous to get phone back on.
Sent from my SAMSUNG-SGH-T989 using xda premium
Click to expand...
Click to collapse
Do you know how to use adb in recovery? It will give you better results. Go into record dry go to mounts and storage and mount sdcard then go to a command prompt and push it over unmount sdcard then reboot
Still getting nothing from this. Tried different downloads, and checked permissions. Each download either goes black, or just shows the Android logo. Never used ADB.
---------- Post added at 10:26 PM ---------- Previous post was at 10:02 PM ----------
Is there proper permissions holding me back? Check what boxes in each?
Download the CM10SavesZip.zip from OP
Extract the Zip file into a folder in your download directory
Inside the Zip file are 2 folders "Horizontal" and "Vertical"
Choose which orientation you want and open that folder
Go to the 480 folder and copy the bootanimation.zip to /system/media and set permissions to rw-r--r--
Reboot and enjoy new animation
Don't forget to rename the bootanimation.zip that is already in that folder. I used bootanimation1.zip
Sent from my SAMSUNG-SGH-T989 using xda premium

4.2 emoji keyboard

Does anybody have the emoji keyboard 4.2 file? I have searched and downloaded the file at least 5 different times from multiple places but whenever I go to flash the zip the installation is aborted error with the zip and I get the dead android figurine. Has this been happening to anybody else? I want the emoji 4.2 keyboard.
Sent from my SGH-T999 using xda premium
circuit.007 said:
Does anybody have the emoji keyboard 4.2 file? I have searched and downloaded the file at least 5 different times from multiple places but whenever I go to flash the zip the installation is aborted error with the zip and I get the dead android figurine. Has this been happening to anybody else? I want the emoji 4.2 keyboard.
Sent from my SGH-T999 using xda premium
Click to expand...
Click to collapse
Have you checked the zip to seeing there's an apk inside? You may need to manually push it to /system/app and set permissions
Sent from my SGH-T999 using xda premium
Just out of curiosity, do you have to be rooted and running a custom rom to use the Emoji keyboard? Also, Will this allow you to see Emoji everywhere they are use ei Twitter, instagram?
Yes the zip has an apk inside but I didn't push it to system because it also has libs and other files inside that I don't know how to install and where to put.
Sent from my SGH-T999 using xda premium
circuit.007 said:
Yes the zip has an apk inside but I didn't push it to system because it also has libs and other files inside that I don't know how to install and where to put.
Sent from my SGH-T999 using xda premium
Click to expand...
Click to collapse
You can probably push all those too, that's what flashing is... the directories are in the zip
Sent from my SGH-T999 using xda app-developers app
I have pushed all the files in the zip except Idk where the files in the META INF folder go.
Sent from my SGH-T999 using xda premium
Never mind I tried it and it worked without needing to push meta inf. however the keyboard is not what I thought it would be.
Sent from my SGH-T999 using xda premium
I have also tried and it failed
Sent from my SAMSUNG-SGH-t999 using xda app-developers app
circuit.007 said:
I have pushed all the files in the zip except Idk where the files in the META INF folder go.
Sent from my SGH-T999 using xda premium
Click to expand...
Click to collapse
I had it working perfect on my s2.I just flashed it in cwm and it worked.I tried it on my s3 but no luck.
Sent from my SGH-T999 using xda premium
(Out of topic).... does anyone tried the 4.2 camera??? I have install it but it fc everytime im running blazing beast 3
Sent from my SGH-T999 using xda premium
This it?
http://forum.xda-developers.com/showthread.php?p=33673517#post33673517
Let me know if you get it to work! I'd love to use it with instagram and everything
crazexr7 said:
This it?
http://forum.xda-developers.com/showthread.php?p=33673517#post33673517
Let me know if you get it to work! I'd love to use it with instagram and everything
Click to expand...
Click to collapse
I can't get it to work... I tried flashing and it kept aborting... and I extracted the apks and got to install it but it just force closes... I'm running ParanoidKangDroid V1.40... has anyone got it to work?
crazexr7 said:
This it?
http://forum.xda-developers.com/showthread.php?p=33673517#post33673517
Let me know if you get it to work! I'd love to use it with instagram and everything
Click to expand...
Click to collapse
What is the best way to install this on the phone ?
Sent from my SGH-T999 using Tapatalk 2
I installed it from the aroma package no problem. Using stock JB.
Sent from my SGH-T999 using xda app-developers app
Ningcube89 said:
I installed it from the aroma package no problem. Using stock JB.
Sent from my SGH-T999 using xda app-developers app
Click to expand...
Click to collapse
Where did you get the aroma package from ?????
Sent from my SGH-T999 using Tapatalk 2
Still wonky on our device
beyako said:
(Out of topic).... does anyone tried the 4.2 camera??? I have install it but it fc everytime im running blazing beast 3
Sent from my SGH-T999 using xda premium
Click to expand...
Click to collapse
I don't think they've worked all the kinks out of that cam for all roms yet. Current workaround is to tap to focus before each shot, or shoot in action mode. See if that works for ya.
I am still waiting for some one to point me towards the zip file
Sent from my SGH-T999 using Tapatalk 2
Working fine here on my end. Very nice too. I dig it.
For those of you having trouble flashing... just extract the two .apks from the zip with a file explorer, and also the lib file... we'll make this simple and I'll tell you just copy all files to the directories indicated below:
Copy the two apks to /system/app/ directory...
Now copy the lib file to /system/lib/ directory...
Reboot to recovery, wipe cache and dalvik cache, then fix permissions.
Success.
cobraboy85 said:
Working fine here on my end. Very nice too. I dig it.
For those of you having trouble flashing... just extract the two .apks from the zip with a file explorer, and also the lib file... we'll make this simple and I'll tell you just copy all files to the directories indicated below:
Copy the two apks to /system/app/ directory...
Now copy the lib file to /system/lib/ directory...
Reboot to recovery, wipe cache and dalvik cache, then fix permissions.
Success.
Click to expand...
Click to collapse
Did that it seems to have added itself. I assume I need 4.2 keyboard to actually use it though correct?
Sent from my SGH-T999 using Tapatalk 2
Do people read? Lol. A guy posted the link to it. Craze I think. Just download the TW version and you're good to go.
Sent from my SGH-T999 using xda app-developers app

Reformt

I installed cm10. And it messed up my directories. How can I just start over as if my phone exchange is newly rooted.
Sent from my SGH-T999 using xda premium
By messing up, do you mean a "0" folder that appears in your sd card?
Sent from my SGH-T999 using xda premium
Find the stock file which I think Is in one the development sections and extract the zip file and open Odin and select the extracted .tar.md5 file, then it returns to stock
Sent from my SGH-T999 using xda app-developers app
52me52 said:
Find the stock file which I think Is in one the development sections and extract the zip file and open Odin and select the extracted .tar.md5 file, then it returns to stock
Sent from my SGH-T999 using xda app-developers app
Click to expand...
Click to collapse
I did that but nothing shows up on internal sd card when I try to install something. I actually deleted the 0 directory. I odin'd it to stock, but internal sd still looks the same. Is there a way to return it to the way it was before I rooted it????
ScottBroker said:
I did that but nothing shows up on internal sd card when I try to install something. I actually deleted the 0 directory. I odin'd it to stock, but internal sd still looks the same. Is there a way to return it to the way it was before I rooted it????
Click to expand...
Click to collapse
This happens when people don't read before Modding. This has been a known issue since 4.2.1 came around and there are workarounds posted for this
Sent from my SGH-T999 using Tapatalk 2
GalaxyS3Guy said:
This happens when people don't read before Modding. This has been a known issue since 4.2.1 came around and there are workarounds posted for this
Sent from my SGH-T999 using Tapatalk 2
Click to expand...
Click to collapse
Care to share these fixes?
ScottBroker said:
Care to share these fixes?
Click to expand...
Click to collapse
Nah... care to search before posting?
They r in all 3 4.2.1 threads and twrp thread. I'm sure u can find it
And u posted ur question in the wrong section LOL
Sent from my SGH-T999 using Tapatalk 2
GalaxyS3Guy said:
Nah... care to search before posting?
They r in all 3 4.2.1 threads and twrp thread. I'm sure u can find it
And u posted ur question in the wrong section LOL
Sent from my SGH-T999 using Tapatalk 2
Click to expand...
Click to collapse
//ignore db
ScottBroker said:
//ignore db
Click to expand...
Click to collapse
Basically all the 10.1 tons create an emulated ad card and place all your data from your original sdcard into a 0 folder inside that emulated apace. In order to fix it. You copy all the items inside the 0 folder and move them to the outside which would be the root . if you restore back to stock you would still have the 0 folder . so just move them from 0 to internal sdcard and then delete the folder. If you deleted the folder you are actually deleting you actual files and not copies of them. There are other suggestions and that's where people suggested teaching through the forums.
Sent from my SGH-T999 using xda app-developers app
monkeypaws said:
Basically all the 10.1 tons create an emulated ad card and place all your data from your original sdcard into a 0 folder inside that emulated apace. In order to fix it. You copy all the items inside the 0 folder and move them to the outside which would be the root . if you restore back to stock you would still have the 0 folder . so just move them from 0 to internal sdcard and then delete the folder. If you deleted the folder you are actually deleting you actual files and not copies of them. There are other suggestions and that's where people suggested teaching through the forums.
Sent from my SGH-T999 using xda app-developers app
Click to expand...
Click to collapse
Thanks, Ill give that a shot.
ScottBroker said:
Thanks, Ill give that a shot.
Click to expand...
Click to collapse
Just don't delete anything without making sure you have all your files copied. Or even better copy them to your computer.
Sent from my SGH-T999 using xda app-developers app

Categories

Resources