Never Flash/tweak again for modifying an Ext ROM - MDA II, XDA II, 2060 ROM Development

A better way (??)
Why would one want to do this?
1. Extended ROM is (as ITSME has pointed out) a Disk on Chip.
1a. It is totally lockable/unlockable -- and can be deleted/added to if one wants to, as long as one understands a few basic things.
2. When the device is hard resetted, after booting is complete, one automatically runs the CAB files in Extended ROM that "localize" the device in accordance with the Carrier's wishes. This is a good thing, and a bad thing... especially if the SW they install is Caller ID, for example, that eats memory and battery performance. But it is a needed thing for the most part in my opinion.
BUT.....
What if you could do the following:
1. Delete your entire extended Rom (ITSME has shown this to be possible)
2. Take the extended ROM files "as is" from all of the carriers out there -- kind of like ala carte menu choices -- and place them somewhere where upon your choosing, could be installed immediately at one's whim (even with the same parameters and running as if they were still came from the Extended ROM)
3. Never have to worry about flashing your device again, unless there is a significant OS reason to do so.
4. Forget using tools one doesn't need to use.
5. Tweaking a config.txt file -- why bother if ya don't have to.
Sound Good????
In my opinion, the only real reason we have many people out there playing around with flashing ROMS is that they want a "perfectly customized device" every time they hard reset. The REAL, Operating System upgrades and Radio stack upgrades are not needed as often and people are willing to wait until their device OEM gets around to the upgrading themselves.
Bottom line: Hard Reset, install your own programs to your liking, and have your device almost as if you never resetted it up and running in a matter of minutes (2 or 3, not 30) with no risk at all to your ROMS.
If this is what people REALLY would rather have, instead of flashing extended ROMS and risking killing their machines....
In a day or two, I will have a (very) little app made that can do this, and show you the "secret" (though I think this is not a secret -- but could be wrong) do doing this.
This post is sent out to "test the water" on this app/solution I will provide.
((no charge))
Feel free to comment, so I can see if people want it or not -- so I will know if to bother making (have made) /telling how to do this.
Plus, also feel free to comment if my thinking here is completely from Mars

Excellent idea. Just a simple list of cab files with location, check box to select and parameters if required is all thats needed inmo. You could then store the cab where you want, SD or Extrom, and then after a hard reset just run the app to execute the select cab's
Can't wait, certainly prevent all those deep despare moments when it doesn't go smoothly and you think you've trashed you device !!!

Victor...
Give us the application then....
Smiles.

got to have it made first....

Ok, here is the deal: I don't have time today to test all of the in's and out's of this -- but by leveraging the power of this forum, I think it will quickly be all figured out and expanded upon.
1. Most people don't know that if you place a directory called "2577" on an SD Card and place in it a file called "Autorun.exe", the file will run when you place the card in the slot of your device. This works for smartphones, XDA2's and Ipaq's (so I am guessing that it is a WIN CE thing).
2. If you could develop an app whose sole purpose was to execute the cab files in the directory (easy to make, for a dev), you could autoload apps at will.
This means that after a hard reset, if your Ext ROM was empty, you could basically mimmick the loading of the stuff when and how you want to -- without cooking an External ROM.
This leaves tons of possibilities
1. using the EXT ROM area for storage that will not go away on Hard Resets and is larger than the normal persistent storage on our devices.
2. using the EXT ROM area for "private storage" that can be hidden with ITSME's tools.
3. using the SD Card to not only load your preferred files, but also (if someone is really clever and can figure this out) your connection settings and what ever other REG settings you feel like.
I HAVE FOUND ONE "CATCH" HERE...
The autorun.exe will execute upon card removal too, so one will have to probably rename the file while in the device or the directory name to "2577XX" so it will not run again.
if you let your mind wander a bit -- the possibilities are endless here
but again, I have not tested out all of the possibilities nor tested it for problem situations -- so that is where the power of the forum comes in. Seems easy to experiment without nuke-ing your device.
I am going to erase my EXT ROM, make my own version of what I want on the SD card, and use the EXT ROM for storing stuff I don't want to lose ever.
By all means... comment, take this idea and run with it.
I am going to have a little app made that will run all cabs in the 2577 directory in a few days -- but I am dependent upon a DEV resource so the delivery time of this "5 minute application" is not 100% known.
Enjoy!!

It's a great idea. I do like it very much. I will try to play with the concept. But, let me ask you where to get 'Autorun.exe' and comand line for this program.
Thanks,
Ah! I think I understand now. "Autorun.exe" can be any executable program, just name it "Autorun.exe". Right?

It work like a charm. I copy a program "Autoconfig.exe" and rename it to "Autorun.exe". Then move it to dir "2577". When I insert SD card into the socket, it stand still, nothing happen. But when I turn off and then on, it execute the said program. Then I Off and On for second time, it won't execute, which is correct. It will execute the program again if I take the SD out from the socket.
I can then play a lot of things with it.
Thanks, Victor

you are right.. any EXE program can be renamed autorunexe. I have not got all the permutations worked out yet as to what can or cannot be done yet, but if time allows I will do more research.
I am expecting my little EXE to be finished today, where it's sole purpose will be to run all CAB files in the directory.
When done, then I will post it here.
If anyone has ideas as to how to re-do the connections / reg settings and place them in a CAB file, like the OEMs do, then you can comletely customize evrything at will, with a power-on.

For portugal here are the configs, in a .cab for each portughese mobile operator.
These were made by www.qtek.com.pt
http://www.enev.pt/ppcforum/index.php?act=ST&f=37&t=1492&s=2a02c5df8d4b65cf66ca27e0aadc4817
(portughese language forum, but if interested in any info send me a PM)

how autorun works
when you insert the sdcard the autorun.exe is copied to \windows, and executed as '\windows\autorun.exe install'
when you remove the sdcard, '\windows\autorun.exe uninstall' is executed, and then autorun.exe is deleted from \windows.

So then, in theory, if you manually delete this file before removing the SD card -- it would not run again then, right?
Trying to think of ways to automate the entire Hard Reset issue -- select your Extended ROM programs / settings you want -- and then plug and play. Changing EXT ROMS made to be as simple as selecting which SD card to install after Hard Reset.
Plus, if the last thing you did before the Hard Reset was to perform a backup to a secure area (like the now empty EXT ROM area), you could also have the autorun program look for the back up and do a restore. May be easier than trying to place all settings into CABS and you benefit from having your data again after a Hard Reset -- all in a few sinple steps.
That is the whole purpose of my activities / efforts here. I hard reset at least 2 times a week (I have special reasons for this).
obviously -- some of the ideas presented up to now are simply brainstorming the possibilities. hope to come up with the right and complete idea soon and have it made here. Then post it here for all.

Related

remove pre installed program on atom from the rom

hey,
i want to remove the pre installed programs (like O2 Media plus...)
how to i "edit" the rom? so after HR, it wont be installed automatically?
actually, cab must be located in the "hidden" partition
how do i enter to hidden partition?
i entered the hidden storage,
buy i dont see there all the o2 programs... where are they?
again, i am searching for the installation files,
so when i will delete them,
a HR wont installed them..
If possible, I would suggest a hardreset. After the hardreset, you will came to small window saying that some software will be installed in 3...2...1 seconds (e.g. the screen you see just after the security option setup after the hardreset). When you see this screen (you have 3 seconds to re-act), soft reset the unit. Now, your unit will be customization free (e.g no customized software installed).
As you said you have already entered the EXT Rom, you can now choose which software you would like to install. If you don't know what they heck they are, just install it and see if there is any difference. Worse case, hardreset your unit again, take a bit of trial and error.
i dont see the 3 2 1 window
are you sure it is on the atom? i hear it on the jam, akaWM2003... and in WM5 it isn't...
The Software in the O2 Atom is in the ROM itself.
therefore you can not remote all of the O2 software....
Nadavi. 8)
Hi brothers
Its not good to enter hidden partetion,
I did all these things too... I also wanted to install some programs to main memory, but main memory is very small in atom it just 43 mb storage.
so i unlocked hidden partetion and delete all inside hidden part...
the result is camera and media plus, fm radio skins are corupted.
then i tried without delete anything, there left some space about 9mb,
And also camera getting problems....
So its better to leaave all in main memory, if you dont want see preinstall programs, enter windows directory start menu througj file explora and delete shortcuts.
Its good idea to by 2gb mini sd and have fun with free space
thank you. hope these information helps you.
hey,
i agree with you 100%,
but the reason i want to uninstall them, is not to save space (i already have the 2gb card). i simply dont want the progams on my device... each of the programs adds a little something to the registry, and god know where else..

System files moving not permitted

Hi to everyone.
Before this HTC device I had others and also had a Motorola Mpx220 (WM2003 SE).
I was used to move the files within "\Windows\Start Menu" (mostly .lnk files to installed programs) into newly created subfolders, to be able to use and/or access the function I needed in a faster way.
I've tried doing the same on this WM5 device, but everytime I try I get an error message reporting it is not possible (File Explorer has greyed out options to cut and/or copy, while TotalCommander just reports it's not possible to "overwrite" ???).
Does anyone have an idea of how this can be done (registry ???) ?
Thank you.
Ciao
Here is the solution...
Hi Mix, it's Mix answering (yes, I'm the same person...)...
First of all I would like to thank you ALL the people which knew the solution and were fighting to answer to my doubt...
You were so many, I wonder why the message has been read times and so many answers arrived: 0 (yes, ZERO).
Anyway, I came across the solution myself, by chance...
The problems seems being the smartphone versions of WM5 being protected against file modifications. This protection extends also to some files execution and to certificate installations (hence some problems may arise when connecting to an Exchange Server for syncronization).
Some tools are needed to remove this protection, and some experience of registry modification is required too (I will not help anyone beside what is in this message and I take no responsability for any mistakes and/or troubles you may produce or face).
First of all you need a special version of RegEdit (the tool from PHM): you should find an HTC digitally signed copy of it called RegEditSTG.exe.
Look around for it: there are many forums around which do hold a copy of it.
Place it in your phone's memory, not on the MicroSD card...
With this tool you should change the following values:
HKLM\Security\Policies\Policies\00001001 = 2 => 1 (RAPI)
HKLM\Security\Policies\Policies\00001005 = 16 => 40 (Cert)
HKLM\Security\Policies\Policies\00001017 = 128 => 144 (?)
The first is the value you will find, the second is the value you should enter. The third line has a question mark because someone says it should be made, someone not... It's up to you. I made it.
Then you should find another tool (with the same above method) called SDA_ApplicationUnlock.exe which has to be run on your desktop PC with the phone already connected with USB (and possibly with ActiveSync not in the middle of a sync...).
Once you run this, you will get a message that the unlock took place (if not, it may be the first operations did not complete well).
Disconnect your phone from the USB cable and power cycle it (switch it off and then on again).
Opla'... the phone is not APPLICATION UNLOCKED and you will be able to move file around the directories as I was looking to when I first posted my message.
Now I have a very quick Start Menu, as I wanted.
Please, be aware that this operation hacks the security policies of WM5 and then any other application which may be dangerous can now run on your phone.
If you wish to stay on the safe side, it could be useful to restore the registry settings to their original values, but I do not know if this could cause other problems, since I didn't on my phone.
I actually double check every single file by myself before launching it and I do not run anything which I'm not sure it is safe.
So, pay attention... (you have been warned...).
Hope this helps someone else out there.
Ciao
Thanks for the tips mate! I was searching around for the same problem.
Can a hard reset put all the files back as in the old WM2003? I'm asking that 'cause if you look at the windows directory, many exe and dll files are repeated, with a different code. I guessed they are for the many different languages the phone support and the code is the country code. Maybe when you switch from one language to another those files are renamed so you have the correct exe and dll for the language you need...
If I can erase all the files I don't need (I will never change the language or maybe have only italian and english) I can save lot of space.
Am I wrong? Was that ever tried before?
vbi said:
Thanks for the tips mate! I was searching around for the same problem.
Click to expand...
Click to collapse
;-) I knew...
Can a hard reset put all the files back as in the old WM2003? I'm asking that 'cause if you look at the windows directory, many exe and dll files are repeated, with a different code. I guessed they are for the many different languages the phone support and the code is the country code. Maybe when you switch from one language to another those files are renamed so you have the correct exe and dll for the language you need...
If I can erase all the files I don't need (I will never change the language or maybe have only italian and english) I can save lot of space.
Am I wrong? Was that ever tried before?
Click to expand...
Click to collapse
In order:
- Yes, I suppose a hard reset of the device completely restores the original factory settings, hence, the device will appear as "brand new".
- You're right: all the localized files present there are just to be able to swithc to other languages (maybe following user's settings and maybe also following user's SIM settings too...).
- Erasing the unused files may appear as a "space saving" job. It is not. First of all you will not be able to remove ROM resident files, but provided you could be able to do this, you will not be able to use ROM space as you intend...
Finally then, it's completely unuseful to try to remove them, just a waste of time trying...
Ciao
Thanks Michele.
Are you sure the windows directory is in ROM?
I always tought ROM was only to store the "disk" image when you hard reset the device. I was so for the Qtek S100.
vbi said:
Are you sure the windows directory is in ROM?
Click to expand...
Click to collapse
Yes it is. On the fact that it is then copied into RAM, well, this is a tecnique which was used up to WM2003 SE devices.
Starting from WM5 devices MS somewhat changed the behaviour of the whole system, hence I'm not then so sure.
Indeed, I have never been sure of anything, beside death, so you can imagine...
I'm not really so "expert".
Having used an MPx220 for over one year (with all its limitations, but exploiting it very much), using a WM5 device now is a much more relaxed experience (faster, more realiable and less troubly in terms of memory).
Just MHO
Thanks Mix - i followed your directions and it worked.
Got my QTEK (running i-Mate ROM) Application Unlocked

[REF]Noonski's Little SPC-MORT-COOKING OEM Packages repository

Since i'm not going to cook just yet for the Pro, nor am i helping out any specific crew Over At the Pro (SPC crew will come over to Pro someday anyway).
I have decided to make a OEMMORT Packages Repository.
For those that want to cook with the utmost optimized packages for their Pro.
OEM PACKS
To use these Optimized Packages to Cook (specifically with Touch Pro In Mind), you always need the the MortScript Base.
So if you use more or less packages the RFO.mscr & CLASC.mscr need to be adjusted appropriately to correspond with the correct File Operations.
Mort Script 4.112.b7
AdobePDF_2_5_103401_01
IA_ZIP_1_21_18171328_1
More coming eventually.
Explanations
If you do see the Logic and and improvements this adds to cooking control and performance enhancement, then don't forget to mention the SPC-MORT-COOKING Style, Wax in Wax Out
Any Comments, Opinions, Ideas or Questions welcome.
TNX to the rest of the bengalih for some pointers & SPC crew for testing and helping out.
And thanx of course to MORT.
Don't Know MortScript? Shame on you. (neither do i)
Donny Bahama's easy to carry Mortscript Manual in HTML:
http://forum.xda-developers.com/atta...9&d=1214102654​
excellent stuff
Hi Noonski... Very interesting concept.. Great Works! Cheerz..
would it be possible to put the cab files from UC all into 1 zip file to save space ?
da_jojo said:
would it be possible to put the cab files from UC all into 1 zip file to save space ?
Click to expand...
Click to collapse
ExactMundo.
If you'd make the cab files into OEM packages first.
I have a WNDWS.zip
PRGF.ZIP
and a MYDOCS.zip
But even that would not be needed as one zip file should be able to do it.
As long as the Makedir command is used in a Mortscript before the Zip is extracted for folders that do not exist unless you have the complete folder structure in the zip files.
Unless you mean the Cabs from the UC on your SD card.
But even then you could also only extract just a cab at a time.
So i'm not sure you meant the ROM Autorun Cabs or the SD UC cabs?
Also unzipping the files instead of having them in Rom, or making the links with a script removes that darned ROM Read File Protection.
yes yes yes that is what i mean exactly my friend
i mean both ... it would save space on the storagecard as well as remove this freaking writeprotect on the dirs. dir structure in the zip file would be the best option i think as it copies 1 on 1 without setting userrights.
this writeprotect option is set on a hidden part of the systemflashdrive. in the mft i think. strange thing is that i got acces to my windows folder through activesync and it doesnt work on vista mobile device center.. frankly i have no idea what i did but it seems something in the pc as it works on my xp machine and not on vista. i didnt change anything yet on the phone itself relating to this.
pocketcommander www.totalcommander.com is able to ignore or overwrite the writeprotected files in windows dir so there must be a sollution to this.
i dont have the proper tools to do all this stuff but it would be the fastest way to extract all files from all cabs one need into one zip file and let mortscript handle the unpacking and settings of the registry. this way theres no need for autorun cabs merely the UC SD installer. maybe someone can make an nice logo for the custom uc installer.
da_jojo said:
yes yes yes that is what i mean exactly my friend
i mean both ... it would save space on the storagecard as well as remove this freaking writeprotect on the dirs. dir structure in the zip file would be the best option i think as it copies 1 on 1 without setting userrights.
this writeprotect option is set on a hidden part of the systemflashdrive. in the mft i think. strange thing is that i got acces to my windows folder through activesync and it doesnt work on vista mobile device center.. frankly i have no idea what i did but it seems something in the pc as it works on my xp machine and not on vista. i didnt change anything yet on the phone itself relating to this.
pocketcommander www.totalcommander.com is able to ignore or overwrite the writeprotected files in windows dir so there must be a sollution to this.
i dont have the proper tools to do all this stuff but it would be the fastest way to extract all files from all cabs one need into one zip file and let mortscript handle the unpacking and settings of the registry. this way theres no need for autorun cabs merely the UC SD installer. maybe someone can make an nice logo for the custom uc installer.
Click to expand...
Click to collapse
I think for that for the SD Autorun UC solutions there are already a few good solutions around some even supporting Mortscript.
And they all are pretty user friendly to.
Depending on what a user wants and knows, using mortscript being cooked in just gives them more freedom to play around customizing a cooked rom.
But it would need more hand work using your method, but it is possible of course.
It boils down to, do you like making Mortscripts to change registry settings or do you prefer making PROVXML files?
And not everyone is into decompiling cab files to make them fit their exact requirements.
But there's only one rule, Copy the Script to device memory and a folder name tat does not contain a space in it's path. And then run the script.
As the Exec: command from autorun doesn't like that.
But mostly the main way i use it is for the Cooked Autorun part.
I control when the Welcome wizard is run, Before Autorun or after the boot.
I can remove the extra parts of the Networkwizardauto.exe files and also run the networkwizard when i want during the process.
All i need to ad to my process is to open the Locale Preferences dialog during this process and then finish it of with Syncrotime. (or asking for the choice if you want threaded SMS on or not, the possibilities are plenty)
Put all the Setting up your device options after each other for those users that don't have the know how of how to use UC to setup their personal settings.
I even delete the back up files for the one App that i only get installed correctly through a cab file
DelTree( "\Windows\AppMgr\SRS Labs SRS WOW HD" )
So i hope that those that cook or customize and want even more control and detail into what happens can appreciate this.
I know i'll keep using this, and adjusting all my OEM packages to it. Because i have experienced the overall speed improvements in the Rom because of it.
I'm not a Pro in Mortscript and myself i only use the fairly simple commands.
i see.. thnx for explaning
it would be far simpeler using the xmlprov
unless one requires the extra functionality of mort script
the SRS wow HD is a driver enhancement so it needs the system to detach the driver which is only possible with the installer . hence cab files work good cause the're installed by the windowsinstaller which can temp disable the driver.
Instead of MortScript, there is a Yonsm's CeleCmd that perform roughly the same thing.
Check it out!
http://www.yonsm.net/read.php?329
V
vibranze said:
Instead of MortScript, there is a Yonsm's CeleCmd that perform roughly the same thing.
Check it out!
http://www.yonsm.net/read.php?329
V
Click to expand...
Click to collapse
Hey Vibranze, Long time no See.
Would you mind translating
Mort has a bigger fanbase here on XDA.
Yeah, long time no see How are you?
I really not used to your new avatar, without the cigarette it's not like you at all hehe
Actually you can try to download it and check out the sample, it's very easy to understand. I attached here for you
Anyway, here is the translated page by Google.
V
Noonski said:
Hey Vibranze, Long time no See.
Would you mind translating
Mort has a bigger fanbase here on XDA.
Click to expand...
Click to collapse
Explanations
What Does RFO.mscr do?
What Does CLASC.mscr do?
Which Packages Contain Modules and Why?
There's Files Missing from the Packages?
What Does RFO.mscr Do?
Well this script is copied to the regular Start up Folder in Windows.
I use short file names because as much as possible for anything that goes into Windows folder and have no other use being in the Windows folder then being copied by initflashfiles to another folder.
RFO.mscr basicly is the only file i use an initflasfiles.txt for (goes to \Windows\StartUp\ReplaceFileOperations.mscr)
Because after that it takes over the File Operations of the Default build in initflashfiles method.
Why?
Well You don't need actual shortcut files present in ROM to make them.
Code:
CreateShortcut("\Windows\StartUpDisabled\btdwake.lnk","\Windows\btdwake.exe")
in the RFO i don't put that much actual File Operations.
Only the ones that might be useful.
(Why start up WiFiInit.exe during autorun, if it's only useful after the Autorun reBoot?)
Code:
CreateShortcut("\Windows\StartUp\WiFiInit.lnk","\Windows\WiFiInit.exe")
I basicly set up the Second mortscript that will run after the Autorun reboot.
And i make sure the script is not to short. A script that is to short might actually copy the second script so fast into the autorun folder that it will actually be run immediately at during Autorun.
And i make sure the script deletes itself
Code:
RegDeleteKey( "HKLM" , "Services\SqmUpload" , TRUE , TRUE )
RegDelete( "HKLM" , "init" , "Launch99" )
SetFileAttribute("\Windows\StartUp\ReplaceFileOperations.mscr", "readonly", FALSE)
SetFileAttribute("\Windows\StartUp\ReplaceFileOperations.mscr", "system", FALSE)
CreateShortcut("\Windows\StartUp\WiFiInit.lnk","\Windows\WiFiInit.exe")
Copy( "\Windows\CLASC.mscr", "\Windows\StartUp\Clean AutoShortCutStartUp.mscr" )
Delete( "\Windows\StartUp\ReplaceFileOperations.mscr" )
So you can choose during which Boot you want to do what.
But it's better to do it after the first Reboot in case there is no Autorun installation and the phone reboots before finishing the RFO script.
So the Yummy goes to the CLASC.mscr.
What Does CLASC.mscr Do?
Well this does the actuall JuJu...
It takes over the Job of AutoAttribute.exe, so that can be kicked out of the Rom.
Code:
SetFileAttribute("\Windows\StartUp\Clean AutoShortCutStartUp.mscr", "readonly", FALSE)
SetFileAttribute("\Windows\StartUp\Clean AutoShortCutStartUp.mscr", "system", FALSE)
It Takes over the Job of AutoShortcut.exe and initflashfiles.
(less autoshortcut.provxml files in the final rom for the people to lazy to put these into a .rgu file for correct cleanliness)
Also Autoshortcut.exe is set up to run and check the regsitry at every Boot up, so out with this nonsense.
Code:
MkDir("\Windows\Start Menu\Programs\Office")
CreateShortcut("\Windows\Start Menu\Programs\Office\Adobe Reader.lnk","\Windows\AdobeReaderLE.exe")
And eventually it run some Post Stuff to make setting up the device easier at first boot.
Code:
Run("\Windows\ConnectionSetup.exe")
Delete( "\Windows\StartUp\Clean AutoShortCutStartUp.mscr" )
Message("Thank you for installing A SPC Optimized Rom. ","Installation Finished")
Also sometimes people encounter a registry setting that does not get applied directly because of .rgu or .provxml conflict.
So instead of making a new EXTRA .provxml file to fix this.
The registry setting can be added to a file that is already there.
Code:
RegWriteString ("HKLM", "Software\Microsoft\MediaPlayer\Skins", "DefaultPortraitSkin", "\Storage Card\My Documents\Windows Media Skins\Mono SPC\portrait-htc-touch.skn")
RegWriteString ("HKLM", "Software\Microsoft\MediaPlayer\Skins", "DefaultLandscapeSkin", "\Storage Card\My Documents\Windows Media Skins\Mono SPC\landscape-htc-touch.skn")
Or create a new start up script that runs at every start up when you have these annoying Registry settings that for some reason like to reset to a specific default value.
Code:
WriteFile("\Windows\StartUp\FixRightSFTKey.mscr", 'RegWriteString("HKCU", "Software\Microsoft\Today\Keys\113", "Open", "\Windows\Submenus\Contacts.mbi")^NL^RegWriteString("HKCU", "Software\Microsoft\Today\Keys\113", "Default", "Contacts")')
Less headaches going trough all the files finding the conflicts, as you now have a sure fire hit to get the registry right.
And we all know that eventually you will stumble upon the rgu or provxml file that is causing Havoc. But at least you don't have to stay awake pounding your head to find them.
Which Packages Contain Modules and Why?
Well the ones that do have Modules instead of regular files most propalby..
Work as a Module.
Show improved starting up of the application
Can be made into a module to start with (not all files like this)
Show improved handling speed or usage performance.
So when you do find Modulated files in the packages, these have been tested and found worth modulating.
These days most of the kitchen's have G'Reloc.exe build into the cooking process.
So the chance of Modules overlapping a specific memory allocation/space is fixed.
Some kitchens also offer this functionality to Make Modules of files.
But in some Junior Cheffs cases, that usually will result in (nice term coming) OverModulating.
If the kitchen you are using does not run G'Reloc.exe automatically please do so manually when cooking packages with modules.​

DevPrep (Device Prep)

This is my first contribution to xda-developers.com, and hope that someone finds it useful.
DevPrep (Device Prep) is intended to be a replacement for user customisation using autorun.exe or runcc.exe. It has more options than these tools, and supports the following commands: -
CAB - CAB file installation
CFG - Include another config file for processing
CPY1 - The first part of the copy command, specifying the source file name
CPY2 - The second part of the copy command, specifying the destination file name
DEBUG - (Enable/Disable) Turns debugging on or off, which creates a .log file in the same path as your config file
DELE - Deletes a specified file
ERR - (Enable/Disable) Turns error reporting on or off, so that errors are either displayed in the interface, or ignored
EXEC - Allows an executable to be run, or a CAB file to be installed interactively when used with the HIDE or LOCK commands
HIDE - (Enable/Disable) Allows other applications to take the focus away from the DevPrep tool, to allow user interaction to take place (e.g. interactive CAB installs)
LOCK - (Enable/Disable) The same as the HIDE command, but in reverse (i.e. LOCK: Enable is the same as HIDE: Disable)
RST - Resets the device (should be the last command specified, as DevPrep will not continue processing after this)
XML - Processes XML configuration and provisioning files
The commands are used in the same way as autorun.exe and runcc.exe, (for example "CAB: \Storage Card\myfile.cab") however the spaces between the command and the parameter aren't important.
Rather than cooking DevPrep directly in to the ROM, there is a DevPrepLauncher utility that can be cooked in and launches DevPrep.exe from the storage card. If DevPrep doesn't exist, it just ignores it.
This way if there are updates to DevPrep, the new version can just be copied to the storage card without needing to re-flash.
Both the OEM package for DevPrepLaunch and the CAB file for DevPrep are attached. Install the CAB file to the Storage Card.
http://rapidshare.com/files/363384988/DevPrep.cab
http://rapidshare.com/files/363385916/DevPrepLaunch.zip
Wow!
I was just looking for something like this. I have never used a tool like this before. But the Imagio (my phone) just got HSPL'd. So I am thinking about using something like this. Do you mind a noob question? So- if I set this up, after I flash a ROM or do a hard reset- I could set this up to auto install all my .cabs? Do I need both "DevPrep.cab" and "DevPrepLaunch.zip" what is the difference?
maisonpulaski said:
I was just looking for something like this. I have never used a tool like this before. But the Imagio (my phone) just got HSPL'd. So I am thinking about using something like this. Do you mind a noob question? So- if I set this up, after I flash a ROM or do a hard reset- I could set this up to auto install all my .cabs? Do I need both "DevPrep.cab" and "DevPrepLaunch.zip" what is the difference?
Click to expand...
Click to collapse
Yep, you can use it to re-install your .cabs. You can also use RunCC.exe or autorun.exe, but I wrote this tool because I had issues with the interactive installations.
You need DevPrepLaunch if you are cooking your own ROM and you want it to start automatically when you do a hard reset.
If you aren't cooking your own ROM, you can just install DevPrep.cab and then run it manually.
Thanks
Thanks for the reply. I am still waiting to flash a ROM. Nothing out yet I am interested in. But when I do I might try this. Is it very complicated to set up? And- what do I do if I set it up on my phone, then flash a new ROM- wouldn't it be wiped off the phone?
maisonpulaski said:
Thanks for the reply. I am still waiting to flash a ROM. Nothing out yet I am interested in. But when I do I might try this. Is it very complicated to set up? And- what do I do if I set it up on my phone, then flash a new ROM- wouldn't it be wiped off the phone?
Click to expand...
Click to collapse
Yeah, that's right, it would get wiped after every new flash so you would need to cook the DevPrepLauncher in to your ROM that way it is kept there.
Another option is to just run it manually off the storage card after you hard reset.
matm said:
Yeah, that's right, it would get wiped after every new flash so you would need to cook the DevPrepLauncher in to your ROM that way it is kept there.
Another option is to just run it manually off the storage card after you hard reset.
Click to expand...
Click to collapse
Duh to me! It will be on the storage card. Not the device memory. So all of the settings are safe? I mean- after I flash- I would just install it again and run it? I wouldn't have to set it all up all over again?
maisonpulaski said:
Duh to me! It will be on the storage card. Not the device memory. So all of the settings are safe? I mean- after I flash- I would just install it again and run it? I wouldn't have to set it all up all over again?
Click to expand...
Click to collapse
Yep, that's right. So, for example, the directory structure might look like this: -
\Storage Card\DevPrep\Application\DevPrep.exe <-- The application
\Storage Card\DevPrep\Config.txt <-- The config file with the commands (installing cabs, settings preferences, etc...)
\Storage Card\DevPrep\Installs\myApplication.cab <-- An application you want to install
\Storage Card\DevPrep\Settings\mySettings.xml <-- Some preferences you want to apply
Awesome!!
I just fell off my chair reading your thread. Just after finishing these threads ;
First read this to understand User Customization and filling SDConfig.txt;
ROM Chefs: SDAutoRun gives customziation to everybody!
While reading, in a way, I replaced 'SDAutoRun' with 'DevPrepLauncher' and 'AutoRun' in \Windows\ with 'DevPrep' on \Storage Card\
[GUIDE] 60 Universal Tutorials for Customizing any Device and Cooking
[App] ROM Flashing Junkies: User Customization is here!
Within this thread there is an application called SDConfig.txt creator which was created by DoeDoe's. Currently it is replaced by;
[Release] UC ROM SDConfig.txt Builder (reborn) [Prikolchik Ed.]
and ofcourse;
SDConfig.txt Builder Mobile by l3v5y
http://forum.xda-developers.com/show....php?p=2114491
I'm adding your application too! What a contribution
Thanks a lot matm,
Senax
Thanks Senax!
tried it...
Hello- I had some time the other day so I sat down to try and figure out the app. I installed on my storage card. Did a soft reset. Ran the app. It went to the "Preparing Device" screen and stayed there for about 30 minutes. Does it take longer than that? I gave up.
I have the HTC Imagio (Whitestone) WinMo 6.5. Custom Rom. But it is very near stock -only removed Sense and Verizon Wireless needless software.
Thanks for any pointers.
Will someone just attach the files to a post here. I hate spending half a day trying to get an 85 kb cab file since rapidshare always thinks I'm downloading another file (probably because of the network I'm on). Thanks.
maisonpulaski said:
Hello- I had some time the other day so I sat down to try and figure out the app. I installed on my storage card. Did a soft reset. Ran the app. It went to the "Preparing Device" screen and stayed there for about 30 minutes. Does it take longer than that? I gave up.
I have the HTC Imagio (Whitestone) WinMo 6.5. Custom Rom. But it is very near stock -only removed Sense and Verizon Wireless needless software.
Thanks for any pointers.
Click to expand...
Click to collapse
Hi maisonpulaski,
Can you please post your config file?
matm said:
Hi maisonpulaski,
Can you please post your config file?
Click to expand...
Click to collapse
So after reading your reply it suddenly dawned on me -I have no idea what I am doing. So it is not your app it is me (pretty sure). I thought I would open it and then it would walk me through setting it all up. Now I am thinking that I need to write up a "Config file". No idea how to do that. So I am probably a lost cause. I am guessing you use notepad or something? Anyways -sorry.

[Q] WANTED: Need someone in San Diego to install awesome build of Android on my HD2

Is there anyone in San Diego that could install a fast, smooth and reliable version of Android on my HD2? If so, please let me know when you can do it and for how much $.
I spend my time between coastal North County and Chula Vista.
Thanks
Steve
It's so simple. Why on Earth would you pay someone to do it?
You download the one that looks best to you from HD2 Android Development, unzip it, and put the Android folder onto your sd card.
Not inside any folders on your card, just on the card.
Then in Windows Mobile, you go to your file explorer, go into the Android folder on your sd card, tap CLRCAD (nothing will happen, thats ok just tap it each time you start Android) and then tap Haret.
It really is as simple as putting a folder onto your sd card.
Just do it yourself. If you manage to screw it up, it won't mess up your phone and somebody on this forum will take pity on you and show you where you messed up
don't forget to flash a newer radio!
kypeth said:
don't forget to flash a newer radio!
Click to expand...
Click to collapse
good point, forgot about radio.
as long as it's a XX.XX.50.XXX radio, its good
I started this thread because I had just discovered that I can't do the install on my mac with an emulator. I really need to do it myself just so I know how to do it so I don't have to hassle finding someone to do updates. Sooooo, I'm doing a clean install on an old Windows machine just to get this done.
Are there simple non-developer instructions anywhere on how to do this? I've had two people tell me how simple this is but the instructions on this forum don't seem that simple with terms like "flash, etc. What does the term "flash" mean?
magentawave said:
I started this thread because I had just discovered that I can't do the install on my mac with an emulator. I really need to do it myself just so I know how to do it so I don't have to hassle finding someone to do updates. Sooooo, I'm doing a clean install on an old Windows machine just to get this done.
Are there simple non-developer instructions anywhere on how to do this? I've had two people tell me how simple this is but the instructions on this forum don't seem that simple with terms like "flash, etc. What does the term "flash" mean?
Click to expand...
Click to collapse
It's called that because of the type of memory. Anyway, it basically means install. "Flashing" a new radio means you're installing a different version while overwriting the existing one.
HOW TO FLASH:
Use "CustomRUU.exe" to flash the file (.nbh file extension). Phone must be connected and have >50% battery. If the CustomRUU.exe isn't included, download here:
http://forum.xda-developers.com/attachment.php?attachmentid=239860&d=1256298258
Step 1 - HSPL3 must be installed.
http://forum.xda-developers.com/showpost.php?p=6891358&postcount=1893
The .zip attached to this must be extracted and installed. Simple enough, no?
Step 2 - Flash a new Radio ROM.
I recommend the newest one (2.15.50.14)
http://forum.xda-developers.com/showthread.php?t=611787
Step 3 (OPTIONAL) - New Windows Mobile ROM
I put optional because Android will run without a different one, it just might not be as well. Download the "RELOADED 3" one in red. I use this one. Flash the same way.
http://forum.xda-developers.com/showthread.php?t=776971
Step 4 - Download Android flavor of your choice and copy it onto your SD card. I recommend http://forum.xda-developers.com/showthread.php?t=870518
Step 5 - Go into WM, navigate to the Android folder on the root of your SD, and click CLDCAD.exe (nothing will happen, this is normal) then click haret.exe
Step 6 - Celebrate.
If you need any help, feel free to message me.
No can do with any Virtual Machine on Macintosh?
Just use the newest official.They come with a newer radio.
If you cant flash with your mac extract the file and copy the nbh file as leoimg.nbh in the root of your SD.
Start the phone with vol down and let it flash.
sthEn said:
No can do with any Virtual Machine on Macintosh?
Click to expand...
Click to collapse
Instead of a virtual machine (is it Parallels?) why not use BootCamp, then you have a full Windows os on your mac - and you can flash.
I'll see if I can borrow a mac again and test flashing via Parallels.
I would love to help you for free - you just have to spend a plane ticket from Denmark (with lots of snow and freezing temperature) ;-)
fred_up said:
Instead of a virtual machine (is it Parallels?) why not use BootCamp, then you have a full Windows os on your mac - and you can flash.
I'll see if I can borrow a mac again and test flashing via Parallels.
Click to expand...
Click to collapse
I am a mac user and i used both Parallels and boot camp and i did it successfully without any issues.
I am a mac user and i used both Parallels and boot camp and i did it successfully without any issues.
Click to expand...
Click to collapse
I'm utterly stunned... I thought a Mac could do everything... and do it better than Windows, faster than Windows, more stylishly than Windows and made the user more intelligent, more likable and better looking at the same time...
Oh well...
I'm in South Orange County...If you don't get it figured out, and you are willing to come to me, I will do it for free. Just let me know.
mm0
Airborne Aircrew said:
I'm utterly stunned... I thought a Mac could do everything... and do it better than Windows, faster than Windows, more stylishly than Windows and made the user more intelligent, more likable and better looking at the same time...
Oh well...
Click to expand...
Click to collapse
On the few times I have run Windows on a Mac (via Parallels and Bootcamp), it runs really well. It just goes to show that the main problems with Windows is that of the sloppy drivers for the hardware that the hardware manufacturors provide. Since Apple only have a couple of computers, therefore they can afford to take time to develop device drivers for Windows.
Just to clarify please and sorry to be asking lame questions...
1) Is this true? "The best most reliable Froyo ROM for the HD2 is the 2.2.1 Custom Nexus HD2-FRG83D V1.8 Froyo ROM. Very stable and everything works perfectly." Is that accurate?
2) Are you saying that I can do the entire install of everything on my Mac with an emulator (VMWare Fusion) as long as I do it the way you describe?
3) Are you saying that I should change the name of the nbh file to leoimg.nbh and then drop it into my SD card?
4) My HD2 came with Android on it but it runs slow and clunky and won't make calls, etc. Its basically unusable so I'm assuming it wasn't installed correctly. There is nothing on the SD card that I care about. Should I format the SD card before starting the new build? And is there anything on the Windows side that I should delete first before starting too?
Thanks again.
Steve
Ultimaex said:
Just use the newest official.They come with a newer radio.
If you cant flash with your mac extract the file and copy the nbh file as leoimg.nbh in the root of your SD.
Start the phone with vol down and let it flash.
Click to expand...
Click to collapse
I would be willing to pay somebody for simple step by step clear non-nerdy instructions on how to install this stuff (Android, reformat SD card to FAT32, radio, etc., etc.) Seriously! You know, Step 1: Do this ya moron. Step 2: Now put this file named this in here idiot. Step 3: Now do this retard, etc.
Here are some more questions please...
1) What is the difference between a "sense" build and a "non-sense" build? Advantages, disadvantages?
2) When I plug the usb from my hd2 into my computer I don't see or recognize what is the SD card folder and I don't know where to install what I'm supposed to install. Here is what I see...
Removable Disk (E) > Application Data folder > HTC folder > databases folder > DocExp folder (with all this stuff in the DocExp folder: flintlock, postlist, postlist.baseB, record.baseA, termlist, termlist.baseB, iamflint, post.baseA, record, record.baseB, termlist.baseA)
...and next to the Application Data folder above there is also this: EncFiltLog.menc
and this is also in the HTC folder too...
ImageCache folder > DocExp folder (which is empty)​
Thanks again.
Steve
magentawave said:
I would be willing to pay somebody for simple step by step clear non-nerdy instructions on how to install this stuff (Android, reformat SD card to FAT32, radio, etc., etc.) Seriously! You know, Step 1: Do this ya moron. Step 2: Now put this file named this in here idiot. Step 3: Now do this retard, etc.
Here are some more questions please...
1) What is the difference between a "sense" build and a "non-sense" build? Advantages, disadvantages?
2) When I plug the usb from my hd2 into my computer I don't see or recognize what is the SD card folder and I don't know where to install what I'm supposed to install. Here is what I see...Removable Disk (E) > Application Data folder > HTC folder > databases folder > DocExp folder (with all this stuff in the DocExp folder: flintlock, postlist, postlist.baseB, record.baseA, termlist, termlist.baseB, iamflint, post.baseA, record, record.baseB, termlist.baseA)
...and next to the Application Data folder above there is also this: EncFiltLog.menc
and this is also in the HTC folder too...
ImageCache folder > DocExp folder (which is empty)​Thanks again.
Steve
Click to expand...
Click to collapse
OK, when you first start up your phone, and there are little red numbers and stuff down it the corner, look next to the letter 'R'
If it is X.XX.50.XXXX, then you're OK and don't need to change radio's and the process is very simple. (The X's can be any number, doesn't matter, as long as the 3rd set as shown are 50, not 51 or anything else.) So if it's 50, don't worry about the signed_ruu.nbh file or leoimg.nbh or flashing a radio. If it's not 50, you will need to change radio.
Next, when you plug the phone to your computer, the place where you find the 'Application Data' folder and the file 'EncFiltLog.menc', that is the root of your sd card. That is where the Android folder that you download and unzip will go.
So you will download the nicest looking build that you like the best, it will be in a .zip or .7z archive. You open the archive and take the 'Android' folder out and place it on your desktop. Then you drag it and drop it right next to your 'Application Data' folder. Don't put it in the 'Application Data' folder, just in the same place where that folder is at.
Removeable Disk E is your memory card, the root of the card simply means just on the card, not within any folders on the card, just on the card. That's where the Android folder goes, on the root of the card.
As far as Sense vs. No-Sense builds, Sense is maybe a little more user(noob) friendly, but it uses more of your phone's resources, so sometimes tends to lag (slow down, run slow) more than a no-sense build. For you, I would say try a Sense build first. Once you have installed one build, you will become more confident and really see how easy it is. Then you can experiment with different builds and see what is best for you.
After you have put the Android folder on the root of your sd card, alls there is left to do is to use the File Explorer on your phone to find the Android folder on your sd card, go inside that folder, first tap CLRCAD (it won't appear to do anything, but it actually enables sound in Android) (if your phone says the application is not from a trusted source,and asks do you want to continue, just click 'yes') and then tap Haret, a box will appear with a progress bar, and then Android will boot up (start).
The first time you run an Android build, it can take up to 15 minutes to start up. This is normal, just give it a while.
Then when it starts up, enter all the data it asks for (GMail, email addresses, etc. nothin major) and then when you have finished with that, and you end up at the phone's Android homescreen, hold the 'End Call' button, and choose 'reboot' and if there's no reboot option, just choose 'shut down' and then restart Android the same way as before. For some reason, rebooting after the first time like that actually helps Android to run more stable over the long term.
If you follow these instructions exactly as I have written them, you cannot fail. Now go, and enjoy Android
No need to pay me, just remember the 'thanks' button
On the few times I have run Windows on a Mac (via Parallels and Bootcamp), it runs really well. It just goes to show that the main problems with Windows is that of the sloppy drivers for the hardware that the hardware manufacturors provide. Since Apple only have a couple of computers, therefore they can afford to take time to develop device drivers for Windows.
Click to expand...
Click to collapse
I think you prove my point quite well... Macs are pretty much a single entity unto themselves. What Apple says, goes. Nothing else is acceptable. If you are prepared to be so limited then go ahead and stay with Apple products - they are for those who think they have imagination but are actually fooled into a "groupthink".
Huggs! Thank you very much for taking the time to explain that to me.
I installed Android and added my info (email address, etc.) and then restarted it like you said to do. Of course Windows loads first and when I tap the Android icon to launch Android it says: "The file Android cannot be opened. Either is not signed with a trusted certificate, or one of its components cannot be found. If the problem persists, try reinstalling or restoring this file." Since this phone had Android on it when I bought it last week (but it didn't work properly), I'm assuming that is the old Android launcher?? I did reformat the SD card via the Windows side of the phone before I installeded Android just now. Can you or anyone please tell me how I can get Android to launch now?
Thanks again.
Steve
UPDATE: I opened the Android folder and tapped CLRCAD and then HARET again and got the same error message as I explained above when I tap the Android icon. Also, and maybe this is normal since I'm still in Windows, but when I try to open any of the other files in the same folder (like INITRD, ROOTFS, etc., I get an error message that says: "There is no application associated with XXXXX. Run the application first, then open this file from within the application."
Another question please: The guy I bought this phone from was using T-Mobile but I'm going to use Simple Mobile. Does doing all the stuff I just did unlock this phone or do I still need to use an unlock code when I insert the sim card? (I will need to call Simple Mobile to activate the new Simple Mobile sim card in order to transfer my existing number over to this HD2)
Install this .cab in WinMo (install to device not sd)
Soft reset device (just fully off n then on, not factory reset)
try running Android again
Sounds like your phone just doesn't trust Haret, this should make it relax a little
let me know how it goes, it should work for ya

Categories

Resources