yashsingh1/xdaforums huggingface dataset:
[EVO 4G Q&A, Help & Troubleshooting] drmacinyasha:
I like SHlFT's Sculpted Beta. http://goo-inside.me/themes/sculpted/
[EVO 4G Q&A, Help & Troubleshooting] t3project:
project bliss hd or metal matte 3d, of course !!! lol ;-)

http://xdaforums.com/showthread.php?t=876304
[EVO 4G Q&A, Help & Troubleshooting] mmegalodon:
Another vote for Scultped (beta - Shift).

:)

SWYPED from my SUPASONIC
[EVO 4G Q&A, Help & Troubleshooting] dills2214:
gingerbread theme by barnacles is amazing :)

http://xdaforums.com/showthread.php?t=867850
[Android Software/Hacking General [Developers Only]] adamal63:
Can anyone tell me how I could reinstall 2.1 from LG's updater?

I've got a rooted GT540 that I think I've deleted a bit too much from. Now I've lost access to Market and Opera's not work correctly either.

I figured I'd just let the LG program reinstall everything for me, I guess I have to somehow trick it into thinking I NEED the update.

Thanks.
[HD2 Android NAND Development] birkoffsjunk:
birkoffsjunk's HD2 IMG2CWM Converter​

A simple windows batch script to convert DAF builds to Clockwork Recovery ZIPs.

Originally designed for MDJ's Gingerbread NAND and posted here. Results may vary!

Instructions​

Download DAF based NAND ROM

Download & Extract this script

Place Boot.img & System.img into the 'in' folder

Double click 'RunMe.cmd' (not as admin)

Manually make any changes you wish (when prompted)

Once done, update.zip will be in the same location as 'RunMe.cmd'

META-INF Info​

How to: Create Clockwork Recovery flash files

How to Create Android Update Zip Package

An updated updater-script (META-INF\com\google\android\updater-script) is required for various other Builds.

Downloads​

v1 >>> here <<<

v1.1 attached (7z changed to 9.20 (ghostkid2010) & renamed out folder to temp)

v1.2 attached (Added error checking & support for system.img only)

v1.2.1 attached (Specified xcopy path & removed old 7z.exe)

v1.2.2 >>> here <<< (arif-ali's linux bash script)

Addons​

arif-ali's NexusHD2-Gingerbread_V2.0 updater-script

TODO​

Add error checking

Add support for system.img only

META-INF Information

Most importantly keep it simple

License​

BSD License for the script not the tools :p

7zip is GNU LGPL

unyaffs is GNU GPL v2
[HD2 Android NAND Development] ghostkid2010:
same post from MDJ

Your script works great extracting the .img file. But it's not able to create zip file. Let me edit your script with the missing file/info.

Download this file and put in folder tools;

http://downloads.sourceforge.net/sevenzip/7za920.zip

change this line;

"%LOC%\tools\7z.exe" a "%LOC%\update.zip" "%LOC%\out\*"

to;

"%LOC%\tools\7za.exe" a "%LOC%\update.zip" "%LOC%\out\*"

and it should work. it will create a zip file.

Enjoy :D
[HD2 Android NAND Development] sathara:
how it works?
[HD2 Android NAND Development] VuNhatVan:
How does it use? What things do I have to put in the folder "IN"?
[HD2 Android NAND Development] ghostkid2010:
let you extract system.img and boot.img from android build, once you extracted all the fill, it will put all the file into a zip file so you can load via CWM
[HD2 Android NAND Development] 10507:
boot.img & system.img
[HD2 Android NAND Development] 10507:
It has a function to edit apk. But how do you use that function and where do you add your own apk?
[HD2 Android NAND Development] ghostkid2010:
:confused:

it does not have a function to edit apk (correct me if i'm wrong). once you extracted all the files, go into app and add your apk there.
[HD2 Android NAND Development] VuNhatVan:
In the Build MDJ_FroYo_Revolution_v._2.2_NAND, there is only system.img, no boot.img. How could I have boot.img?
[HD2 Android NAND Development] ikkon:
what a usefull tool, thank you!!
[HD2 Android NAND Development] ghostkid2010:
If there's no boot.img, it should still work. all the boot file is already in the system.img :)

Let me download that build and I can tell you for sure on how to do it.. I smell that a new version of this script will be out..
[HD2 Android NAND Development] birkoffsjunk:
Yeah it's very much a work in progress, please feel free to attach updated versions... I'll add them to the first post with accreditation :)
[HD2 Android NAND Development] drizztzou:
Is it work if there is only system.img?
[HD2 Android NAND Development] birkoffsjunk:
with a little bit of editing yes ;)
[HD2 Android NAND Development] psuser:
can u more detail about "change this line" location ? u mean u have done it already or i have to do it myself ? which file should i edit ?
[HD2 Android NAND Development] milton007:
YEAH! Your not kidding man...i was stoked while playing with it...Id also like to know from here...Is there a similar script for SD->NAND bc my favbe ROM has always been CORECells builds of EVO/HD based...Gave me the best batttery of all SD except for the now current NAND builds. So i figure maybe itll be even better on NAND! TAHNKS again so much for your pos t BIRKOFF! ANYone know of the SD->NAND question?
[HD2 Android NAND Development] milton007:
YOU have to add an "a" after the z in 7z WITHIN the RUNME script...you have to right click it and open with NOTEPAD on PC and add the "a"
[HD2 Android NAND Development] ghostkid2010:
download the new version on page 1, its fixed :)
[HD2 Android NAND Development] motoman234:
Really cool idea!! I gave it a shot, it just reboots after the MAGLDR screen showing the HTC logo over and over until you boot back into recovery. It flashed fine but just wouldn't boot.
[HD2 Android NAND Development] ghostkid2010:
Use the following "RunMetest.bat"

http://hotfile.com/dl/95408413/0c085bd/RunMetest.rar.html

I tested with different build, system.img only, both boot.img and system.img, it was able to create a zip with all the file.

I'm not uploading the whole folder since this was started by birkoffsjunk, I'm just helping

Test it out :D
[HD2 Android NAND Development] 10507:
I have tried [Jan 2][NAND]-=MDJ Revolution HD v.2.2=-[SQUASH][kernelMDJ S9.1 OC], which doesn't have the boot.img, and [08 JAN] -=MDJ's CyanogenMod 7 v. 1.8a [A2SD+][GRH78][RMNET][Kernel MDJ S9.5 OC], which has both the system and boot img. After running the script:

REvolutionHD : out folder contains bootfolder and systemfolder; however, the

bootfolder is empty.

CyanogenMod7 : out folder contains bootfolder and systemfolder, but this

bootfolder contains zImage and initrd.gz

Since the RevolutionHD's bootfolder doesn't contain the zImage and initrd, will it run in CWM?
[HD2 Android NAND Development] ghostkid2010:
see page 2
[HD2 Android NAND Development] gfurr:
worked like a charm with NexusHD2-Gingerbread V2.0 NAND. Very easy method. No longer have to wait for devs to release CWM or for someone else to have to convert it for us
[HD2 Android NAND Development] milo356:
where do i put the runmetest.bat?
[HD2 Android NAND Development] birkoffsjunk:
same location as runme ;) or wait a couple of mins for 1.2 :D
[HD2 Android NAND Development] santroph:
Very good work guys, I was waiting for something like this to finally install clockworkmod. It was not woth for me since the roms I prefer were all pure flash nand :)

Will give it a try.

Thanks. Santroph
[HD2 Android NAND Development] vista1984:
many thanks~~~~

bump
[HD2 Android NAND Development] rafpigna:
Sure this is something useful but...

please take this warning.

update.zip files cannot be done simply repacking things. Properly META-INF folder must be created. This folder contains all that informations that the CWM must run to let the rom working properly. Infact during the zipping process, all files losts their linux permissions and the symlinks, that so must be recreated by script during the flash.

This means that, could be possible, that META-INF folder is different between the different roms. Using a wrong folder could cause bugs like random ForceCloses on apps, not working wifi/gps/etc.. , and also no booting...

Ayway.. good idea.
[HD2 Android NAND Development] FrAsErTaG:
+1
[HD2 Android NAND Development] VuNhatVan:
After buiding Revolution 2.2 with Runmetest, It doesn't work. The HD2 stops at HTC screen while other builds work well
[HD2 Android NAND Development] 10507:
Yes, I have the same result.:(
[HD2 Android NAND Development] THANHVO31:
You may need update to 1.3 since I got problem with Xcopy command.

'xcopy' is not recognized as an internal or external command, operable program or batch file

I change this xcopy by "%SystemRoot%\system32\xcopy.exe" then everything is OK.
[HD2 Android NAND Development] 10507:
Have you tried this on MDJ Revolution HD v.2.2 and get it to boot up normally?
[HD2 Android NAND Development] milo356:
ok ive tried this 3 times this is not working ...Ive tried the runmebat and the 1.2 version and I have the same result im stuck at bootup with android on skateboard ,I like this ideal but its not working with system img only roms CMYLXGOs.Topia.HD.NAND.Edition.v1.2n.7z.....Any other ideals ????

Ive notice when installing .zip file it reads out gingerbread i wonder if thats causing the issue ?
[HD2 Android NAND Development] THANHVO31:
'xcopy' is not recognized as an internal or external command, operable program or ba

I just got "look like proper" update.zip (with META-INF copy). I plan to wait for MAGLDR 1.12 and not to try CWM at this moment.

Have you got error 'xcopy' is not recognized as an internal or external command, operable program or batch file?

If you got it surely your build will lack off META-INF folder.

(for those system path had been altered)

But I recommended to try Android Kitchen found here
[HD2 Android NAND Development] birkoffsjunk:
You'll need an updated updater-script, so far only MDJ's CyanogenMod 7 & tytung's NexusHD2-Gingerbread V2.0 NAND work (Both Gingerbread builds).
[HD2 Android NAND Development] VuNhatVan:
With v1.2.1, Revolution doesn't still work
[HD2 Android NAND Development] milton007:
I wonder if its bc of the Update to 7z?...Try reverting to older 7z and then another build besides a GINGERbread build...bet it might help!
[HD2 Android NAND Development] motoman234:
You should add the version number to your title. It's hard just by going off the date since your updating a bunch :)
[HD2 Android NAND Development] KillaHurtz:
Wow ! Let me just start off by saying that I am a recovering Dexter addict :) I'm super stoked that you have found your way to android development for HD2.

Welcome to the darkside :) Enough yip yap. Thanx for the app & I hope this is the start of many projects from birkoffsjunk here in the Android NAND dev section.
[HD2 Android NAND Development] kampos20:
hi , i made a update.zip and i installed it , but it came back to the original rom :D weird ,, huh
[HD2 Android NAND Development] Scabes24:
Nice work thanks b :D
[HD2 Android NAND Development] arif-ali:
Linux version

I have a linux version of the unyaffs and the runme script, That i have created.

I have attached it to this post
[HD2 Android NAND Development] arif-ali:
updated the script, wasnt working for boot.img
[HD2 Android NAND Development] premikkoci:
For me doesn´t work. I have Win7. CMD didn´t find system.img but i put it to folder.
[HD2 Android NAND Development] ivandelrosario:
i managed to create an update.zip file from mdj's 1.8a nand a2sd and successfully flashed it to my phone.

however when i checked the allocated internal memory, i only got 150mb. With mdj's original 1.8a release, i get 300mb of internal memory.

Now i flashed v1.9 and im glad to still have 300mb.

I really like to use the CWM (because of the facility to do nand backup), but i am getting only 150mb after flashing it. is there any way to fix it to have 300mb of storage like from the original build?
[HD2 Android NAND Development] pioner14:
Success! You can now do builds in linux for linux-android. My respect!
[HD2 Android NAND Development] arif-ali:
Here's a link to download the 1.2.1 with Linux

http://www.multiupload.com/LRY91O6XVE
[HD2 Android NAND Development] milo356:
i want to make a zip of CMYLXGOs.Topia.HD.NAND.Edition.v1.2n.7z.....Everytime i use this converter its says welcome to mdjgingerbread and stay frozen at android bootup can someone please help
[HD2 Android NAND Development] jhr5474:
You rock man

This is the coolest thing since all the other cool stuff that has happened in the last week for the NAND world! Thanks man.
[HD2 Android NAND Development] bahoiz:
Yay man thanks it is really very appreciated.

P.S. I used it to convert MDJs gingerbread 1.9 NAND to ZIP.
[HD2 Android NAND Development] hamdir:
anyone knows if gauner hd-fi can be zipped with this?

from what i understood meta info will be in trouble
[HD2 Android NAND Development] 10507:
Anyone able to conversion with any of the Desire HD, Desire Z, or Desire Sense?
[HD2 Android NAND Development] ivandelrosario:
on the first post, it says:

so maybe that is why you get that freezing, because you're using a different build. I'm not sure though, but that is the way i understand.
[HD2 Android NAND Development] KillaHurtz:
Raider303 has posted a HD Sense ZIP-ROM some days ago, it works beautifully :)
[HD2 Android NAND Development] 10507:
Did he use this script to convert his build? Because I think some devs do their conversion differently.
[HD2 Android NAND Development] parleyp:
Just got off the plane, downloaded the latest version and have to say it works great. Don't know what the issue was with the first one, but you have it fixed now.

Parley
[HD2 Android NAND Development] 10507:
Any chance of trying the Desire HD version? The CM version convert perfectly without error.
[HD2 Android NAND Development] TheATHEiST:
Tried teh script but I just kept getting reboot after htc logo after converting MDJ 1.8a AP2SD+
[HD2 Android NAND Development] ws6nightcat:
wrong thread, sorry
[HD2 Android NAND Development] ivandelrosario:
internal memory

Am I the only one experiencing this? :confused:
[HD2 Android NAND Development] dharvey4651:
Tried this utility [05 JAN] imilka's HD2Z NAND v0.2 [Data on SD][Deodexed][PPP][Kernel:MDJ S9.2] and I get stuck in an infinite boot loop.

Made the following changes before creating the zip:

Used 400mb CWM partition layout because this ROM is rather large.

1. Changed the kernel to MDJ 10.1 OC

2. T-Mobile MMS Patched the ROM

3. Added T-Mobile US DNS Settings to build.prop

4. Added a free file manager to the System/app folder.

5. Added T-Mobile US's certificate files that are located in etc

These are the only changes I made. ROM boots fine when flashed via DAF installer and MAGLDR.

Nice initiative. Think the app needs quite a bit of work before it will really be a useful tool though for most users though...
[HD2 Android NAND Development] AngelDeath:
Here's something I dont know if its a bug, or if this is the way its suppose to be, I use DFT's rom, when I flashed it, I had about 15-17mb free in the system folder (Dont remember right now), but I took that rom and converted it to a zip, flashed it, and it booted fine, and everything works, but when I went into the system folder, it says I have 5.7mb free, which is the same thing I remember seeing in Raidroid zip as well. How come the space is limited, or at least with DFT's how come I lost 10mb?

Love the work BTW was thrilled when I ran into this post by accident, really keep this up!
[HD2 Android NAND Development] birkoffsjunk:
It's merely the way DAF allocates partition space vs CWM.

DAF repartitions nand every flash (size is dependant on the ROM Chef)

CWM partitions the nand only once to a fixed size (during the initial installation of CWM)
[HD2 Android NAND Development] jase33:
Followed instructions. Used MDJ's ROM. Phone gets stuck at animated splash screen. Had to NAND flash to clear and get running again. Anyone got any ideas?

EDIT** NEVERMIND. I GOT IT.
[HD2 Android NAND Development] af974:
Got the same problem when i add some apk to App folder, didnt try it yet but maybe they need to be signed?
[HD2 Android NAND Development] cbanbury:
Thanks for the linux version. Since having android I don't touch windows anymore so getting android on my HD2 full stop has been a nitemare
[HD2 Android NAND Development] jack_d12:
hello,

Does anyone know how to or have a script to write the updater-script file? I think that is what needs to be updated between builds. for this tool it is using the same updater-script file for all.

Another question is I tried updating the updater-script file to also write in the data.img/data folder and it doesn't work.

Is this normal?

I was trying to take the data.img file from a superRam darkstone ram build and use it on one of the gingerbread cwm roms but did not work.

it wrote it in but it booted up with no user data?!?!?!

THanks,
[HD2 Android NAND Development] AngelDeath:
If I understood right, being that I installed CWM with a 250mb partition, the rom uses that size and whats left is whats left? If true, then would using a 400mb file work and give more space, or would it just put the rom into an infinite loop because of the predetermined size of the rom the dev made?

I would rather use the 400mb partition, but I dont know what impact it would have on the zip roms, since obviously they arent stated there sizes.
[HD2 Android NAND Development] birkoffsjunk:
That's for the system partition, 400MB is only advisable for TMO users running one of the massive roms... Basically the larger the system partition the smaller the userdata partition, meaning less space on nand to install apps.
[HD2 Android NAND Development] AngelDeath:
Thanks for the answer, so instead of having near 700 mb of free space I would have 550 approx. And I am going to assume your going to tell me that even if I made the partition 400mb the system folder is still going to be berween 5-15mb right?

And if your going to ask why am I so hung up on this, is cause when you do updates or push files thru adb shell, sometimes they fail because there is very little space to manuver to drop files in there, or to add files. (Example: Updating kernel, changing boot animation screen, or adding boot audio)
[HD2 Android NAND Development] birkoffsjunk:
Actually no, if you make your system partition 400, but flash a rom that's only 350 you'll get 50MB free on the system partition ;)

Also remember you can customize the values by editing flash.cfg in notepad ;)
[HD2 Android NAND Development] AngelDeath:
Really? So since I converted DFT's NAND and use a 400mb partition and say it uses 250mb (just saying for the moment) I would gain 150 in the system folder? Okay, last "PITA" question, does this apply to zip roms too? and if so how do you go about it. And thank you for all the info its helping tremendously.
[HD2 Android NAND Development] birkoffsjunk:
It applies more to zip than flashing with DAF ;) This is because it changes the partition layout every time you flash, cwm on the other hand doesn't... hope it helps ;)
[HD2 Android NAND Development] AngelDeath:
Okay but I read in a rom thread that using a 400mb system partition didnt work, cause the person used a 250mb partition to build the rom, which then made the rom hang, and yes it was a zip rom, frankinstine's 1.1 build, wouldnt load with a 400mb file but would with a 250mb file.

file = partition.
[HD2 Android NAND Development] birkoffsjunk:
As far as I'm aware that would be true only if you didn't clear the cache & dalvik-cache prior to installing the new CWM ROM
[HD2 Android NAND Development] Strop:
Is there a way to use this script on the new "darkstone_SuperNAND_FroYo_RC1" that contains a Ramfiles.img file?

Thank you
[HD2 Android NAND Development] AngelDeath:
Okay, I'm going to hold to that when it doesnt work and come back and haunt you LOL :D
[HD2 Android NAND Development] BlackPit666:
i will also try to build a [Jan 2][NAND]-=MDJ Revolution HD v.2.2=-[SQUASH][kernelMDJ S9.1 OC] for clockworkmod :)

with 1.2.2 i got at least a zip-file with zImage and initrd.gz in it.

i will test it today and try to get it booting and also try to get the newest kernel in it

EDIT: it didnt boot, so i tried some different zimage and initrd files from old revolutionhd and from nonhd revolution and so on, but i couldnt get it.

EDIT2: ok i tried every combination and possibility i could think of, but nothing worked :/

anybody any idea?
[HD2 Android NAND Development] Metastable:
I did a little hackery and manage to make one but it doesn't really matter because CWM doesn't look for the ramfiles folder and does not flash it onto the partition so you can't even do the, flash with DAF backup with CWM trick because CWM wont look for the ramfiles. So my point is, until someone mods CWM to flash and backup ramfiles it doesn't matter if you can make a zip-rom.
[HD2 Android NAND Development] h@wk3y3:
A little miffed!?!?!

I created a update.zip for

I followed the instructions and changed a some settings in build.prop (LCD settings, locale to AU, etc) and also added a number of apk's to the app folder.

The update.zip was created, I copied it to the root of my sd card, went to Boot AD SD, entered clockwork, went to the install update.zip option, selected it. Seemed to work but when my phone rebooted it was sitting on the green HTC logo for some 20+ minutes, before I decided to shut the phone down and use the restore option.

Is it normal for the reboot process to take over 20 minutes?

Or have I missed something in the process? :confused::confused:
[HD2 Android NAND Development] milton007:
Does anyone know if there is a similar method to convert SD ROMS to NAND...to then be able to convert that created NAND rom to an update.zip. I WANT CORE CELL DROID on my NAND more than anything and i thought he would have created a NAND version but still hasnt. Any help would e appreciated bc i searched for it and couldnt get anything except for this-which ive alreeady used and posted on. BTW-it has worked perfectly the 2 times ive used it!
[HD2 Android NAND Development] arif-ali:
NexusHD2 gingerbread

I have create a updater-script for NexusHD2 gingerbread. This is the one I am using now, and have attached to this post for anyone who wants it

The file needs to go into the following folder after unzipped

tools/META-INF/com/google/android

Here's the build from these script, I have not added anything to the build

NexusHD2-Gingerbread_V2.0_NAND_CWM.zip
[HD2 Android NAND Development] birkoffsjunk:
Cheers! Added to the first post ;)
[HD2 Android NAND Development] DannyBiker:
What should we do when we don't have a boot.img in the package ?

Thanks !
[HD2 Android NAND Development] arif-ali:
You only need to add the system.img. the script will automatically detect that the boot.img is not there
[HD2 Android NAND Development] DannyBiker:
Nope. I always get that error after flashing : Nand kernel open failed.

Beside, flashing the ROM is strangely quick : 20 seconds instead of 2 minutes...
[HD2 Android NAND Development] jahmezis45:
why cant i delete this
[HD2 Android NAND Development] birkoffsjunk:
I don't know, why can't you delete this?
[HD2 Android NAND Development] BlackPit666:
http://xdaforums.com/showthread.php?p=10634592 someone finally made it :)
[HD2 Android NAND Development] jahmezis45:
I tried converting three different roms to zip they all zip correctly but not one has booted so far anyone know why?
[HD2 Android NAND Development] mynamesteve:
hi birkoffsjunk!

Just used your script to convert g.lewarne's CleanDROID and it worked perfectly

!

Thanks alot for this usefull tool :D
[HD2 Android NAND Development] gallant_suri:
+1, even I tried with two different Roms. no luck.
[HD2 Android NAND Development] arif-ali:
Which ROMs are you converting and what are your errors?
[HD2 Android NAND Development] gallant_suri:
Roms I tried:

MarkinuX HD Extra Clean V1.2

CMYLXGOs.Stock.Desire.HD.v1.0.5.1n.NAND.RMNET.NO-SQUASH-MDJ.S10.4OC

CWM Installation was successful with bothe roms, but where in the screen hangs at HTC logo while loading android. I kept the device idle for half an hour but no luck.
[HD2 Android NAND Development] arif-ali:
Have you done a adb logcat, and check to see what is happening in the logs?

nevertheless I will have a look and see what you need to do to get it working
[HD2 Android NAND Development] mardurhack:
Since there's no Linux version of this script I decided to create one. Very dirty, very easy to use. A simple "get the fuc***g job done and disappear!" script. No questions to the user, no "echoes" so

BE SURE OF WHAT YOU'RE DOING!

You can find it as attachment ;)