[Streak 5 Android Development] lordmorphous:
Deodex instructions

Be gentle....this is my first tutorial and I am no expert. This is for those who want a deodexed version of the rom. I don't know how deodexing affects performance, I simply did it so I could replace the email.apk. Without deodexing, the patched email.apk wouldn't open. There may have been a simpler way to make that work, but I tried this, it worked, and I learned something in the process. Hopefully you can too.

What is deodex and why would I want to do it? Deodexing is the taking of the corresponding .odex file and repackaging it back into the app. Any explanation further that that will have to come elsewhere because that's my extent of knowledge on the subject. Why would you want to do it? I don't know. I wanted to deodex Simple Streak 1.2 so I could use the patched email apk from here:

http://xdaforums.com/showthread.php?t=655649

On a side note, this email.apk bypasses Exchange security requirements. No more 8-digit password or pin every single damn time the phone screen goes dark.

I found the HTC Kitchen here, http://xdaforums.com/showthread.php?t=633246 and noticed it said it worked for the Dell Streak 7 so figured what the hell, why not? I followed the instructions and installed it on my Windows 7 laptop without issue. Please, if you follow this tutorial and have problems installing the Kitchen, seek help on that forum. While I would be happy to help you out however I can, I know nothing of how cygwin works. In the end, I have installed it one more time than you have.

Now I'm assuming your Kitchen is installed and running. Take the ROM you want to deodex and place it in the original_update folder. You place the whole update.zip in here, the Kitchen will take care of the rest. By the way, I installed cygwin to the root of my C: drive, so the folder path to the Kitchen is c:/cygwin/home/user/Kitchen.

In the Kitchen, I choose option 1, create working folder from ROM. I gives you some information and asks you to press Enter to continue, go ahead. Now it should give you a menu with you ROM in it, go ahead and choose it. It wants to give a name for the working folder. I just accept the default and hit Enter.

The next thing it wants to do is give you some information about the ROM. I always accept the default here and view it, even if I already know it. After reading the ROM's info, hit Enter to move to the next screen

Choose option 0 (this is a zero) for Advanced Options and then option 11 for Deodex. The deodex options give you an opportunity to back up the folders, however I don't do this. I just choose option b for both folders and hit Enter. This process will take 10-15 minutes or more depending on your hardware. When it gets to the system/framework file it will tell you it’s encountered an error. Don't panic, it will now try that file in 'brute force' mode and it will work this time. (At least it has for me everytime)

When this is done, you can go into the working folder directory and start replacing/removing apps in the system/app folder. I can’t tell you exactly what is safe to remove and what isn’t, but I’ve had no problems removing gmail.apk, anything with dell in the name, magicsmokewallpaper.apk, and talk.apk. I’ve also replaced email.apk with the patched version that can be found on xda-developers. On a side note, the patched version removes the security requirements pushed from exchange servers to your device such as requiring passwords to lock your device, etc.

Now use the final option to build a rom from the working folder. I choose the interactive mode and accept the defaults, such as zip-aligning, etc. When it is done, it will have created a installable zip file in the output_folder of the kitchen. Copy it over to your device and use streakmod recovery to install it. Clockworkmod may work too, I don’t see why not, however I’ve only used streakmod.

As always, make sure you have a recent nandroid backup in case something goes wrong. Feel free to ask me questions, I’ll try to answer them the best I can, but I am no expert. I just tried something and it worked for me….you mileage may vary.