[HD2 Android NAND Development] theslam08:
This is the wrong section probably, but ill answer just for the sake of me replying to tell you its the wrong section anyway.

Its not straight forward. You probably should let them do what they do, the builds work right? An sd ext is an inconvience 'if' you are a t-mo owner. Not that its the biggest deal, its really not, make the partition 1GB on your SD, and forget about it. You probably wont even notice it.

WARNING: Moving stuff around in these folders will most likely cause you a bootloop. You can adventure, but just be fore-warned! Deleting wrong files will cause it to not install.

Anyway, if it really bugs you, heres a rough breakdown:

1. Go here: http://developer.android.com/sdk/index.html (you may need java, make sure you have this as well)

2. Get the SDK

3. Extract to a folder that wont get lost, like C:\Android is usually good.

4. Now, open the .zip file of your rom you want to shrink, using winrar or winzip or 7zip

5. Extract the folders/files to your desktop.

6. Go into the sd-ext folder, and move the folders to their respective locations (so apps goes under /system, framework goes under /system, weather under /media, etc.). Once no more files/folders reside in the sd-ext folder, you can delete it.

7. Go into the 'app' folder [now under /system] and delete some of the APK's that you dont want. Be VERY careful though, deleting wrong files WILL cause it to bootloop.

8. You can also find other delete-able files in the media folder under system.

Delete files that you know what they are. Example: VoiceSearch.apk will obviously delete the voice search. FriendsStream.apk, will obviously delete the friends stream app. Just stick to common sense.

Now, last step, the trickiest. MAKE A BACKUP OF THIS FILE (probably the easiest way)

9. Go into META-INF\com\google\android\ and right click updater-script and choose open with notepad.

10. Go through, and delete all sd-ext related entries.

11. Double check all necessary 'unpacking' entries are there. So, typically these:

-package_extract_dir("system", "/system");

-package_extract_dir("boot","/boot");

-package_extract_dir("data", "/data");

12. Some mount stuff for the sd-ext. can be removed, same with mkdir sd-ext. as we dont need anything related to sd-ext. this is the point.

Once done with the files/folders, rezip the files/folders like how you see them in any other roms zip file.

Dont make it a zip like this:

Pyramid_HTC_Europe_v1.x_Tmous.zip>Pyramid_HTC_Europe_v1.x_Tmous/data, system, meta-inf, boot

Make like this:

Pyramid_HTC_Europe_v1.x_Tmous.zip>/data, system, meta-inf, boot

It wont read it unless those 3/4 folders are not in any other folder.

Now that you have the new rom file, LAST step, and I promise, its the last. You have to go to that C:\Android folder, and go to the autosign.bat file. Follow the instructions. For more info on this part, you can search this site. There are a few guides on re-signing files.

But, you are done :)

________

As long as you make sure you did all that, it 'should' work. But please, do the necessary reading! This is not a walk in the park. For the script, you should look at working ROM's file, compare. See how they work. Understand them.

As proof. I actually JUST converted dungs new mytouch 4g rom that required even t-mo us to have an ext, to NO ext. I dropped the whole package by 100MB, did what I just posted, re-worked the script, and resigned. Just flashed fine, its much quicker now :D.

Hope this wasnt confusing. Probably was, but thats why I tried to be as detailed as I could be without going overboard. Anyway, let me know if you have questions.