Cooking a Wizard Rom: What files can be deleted from the Rom? - Windows Mobile Development and Hacking General

I want to test some stuff before I want to cook a new Rom (that will be released to the community).
I'm gonna add some files to the Rom, but I also want to delete some files from the Rom. I already have some ideas of the files I am going to delete, but I want to delete as much as possible from the Rom that is not needed.
So I want to create a list here with files that can permenantly be deleted from a Rom (in my opinion).
For starters:
- Pictures in \My Documents\My Pictures
- Music in \My Documents\My Music
- Video in \My Documents\ My Videos
- Wifi_Init.lnk
- Init_Tray.lnk
- IA_Zip.exe
- Zip.lnk
- Help_Zip.lnk
- Zip_(ht).html
- Flower.jpg
- Waterfall.jpg
- Downloadagent.exe
- dlagent.exe
- Download Agent.lnk
- HTCABOUTLOGO.bmp
- PowerPoint + shortcut (Who uses it anyway? )
Who will make this list complete....
Molski
p.s. This is a cross-post, I also posted this right here (but this forum is a bit better for this post I think): http://forum.xda-developers.com/showthread.php?t=281624

Related

How to set 'Storage Card\My Documents' as default Save dir?

Sorry for posting my problem here but in other fora there were no answer so far :-(
I'd like to save my new docs into the 'My Documents' folder of Storage Card automatically in order to save space in main (RAM) memory. I know it seems to be easy, just go to 'Options' and set 'Save to' Storage Card. I've done it in case of every frequently used program.
Camera and Excel works well, they place the new file into 'Storage Card\My Documents\My Pictures' and 'Storage Card\My Documents'. But Pocket Word and Notes place the new file just into Storage Card root dir.
Any hint how to solve it? Maybe some registry settings?
Thanks in advance
Tibor
(MDA Compact with T-Mobile ROM
ROM ver. 1.13.00 WWE
Radio 1.13.00
ExtROM ver. 1.13.131. WWE)
Solution
As it was my first request for assistance I thought the community was more helpful...
But no problem, finally I found the solution. (source: support.microsoft. com, article ID: 319616)
Let ME help if somebody has similar problem: you should delete the zero-byte-long 'ignore_my_docs' file from the root dir of Storage Card. This file prevents the built-in applications from using 'My Documents' dir as default/root folder while listing the files in 'Open File' window.
(If you need further explanation, refer to the above-mentioned Knowledge Base article.)
Cheers,
Tibor
Article ID 319616 is "How to create a resource-only DLL to host an Outlook Today page". Can you post a link?
Sorry, I mistyped the Article reference. The right ID no.: 319516.
Tibor
u mean somthing like this? 8)
That looks pretty cool, and very useful - but only if your ActiveSync will sync the docs (Files) from your PC to that \Storage Card\My Documents folder.
Does it?
Thanks.
i wouldn't want that... i have like 800mb of mp3s and files on my 1gb sd card, it'll take ages to synchronize that... afterall, it is not necessary, cos if your pda crashed, it won't affect ur sd card..

sUC - suiller UC way [9 Feb 2010]

ABOUT
The purpose of this CAB is to reach a sort of UC way but with a very easy & friendly approach
HISTORY
I come from Diamond world, so because this CAB can be adapted for other platform/devices why not preparing a separate sUC.cab to use for enabling ALL the stuff (ramdisk, pimbackup,ram recovery,etc...) included in Dia Duit rom series?
what have I to do with this cab?? simply it will apply these features:
Latest stable MortScript is inscluded & ready to go, so no more needs to install as separate cab
Choose between 3 speed profiles: 1. fast (takes more ram & battery), 2. balanced (not heavy tweaked but not funny) & 3. untouched (default WM6 settings)
GPS profile: TomTom, iGO, Navigator or default WM6
Everyday auto recover RAM feature (at 4.30AM) + automatic sms/contacts/calls backup/fav manila people (trough pre-configured pimbackup app, PimBackup included)
Ramdisk (2Mb) feature (optional)
A new way for a fully automated CAB/REG/EXE/CPY installation/copy after every hard-reset/rom upgrade
UPX executable, compress (fully automated) exe files from fresh installed cabs, this saves space & gives faster app load times
Easy & fast tweaking method without 3rd part software: tweak registry scripts (with comments)
Tips enabled by default to preserve a bit more battery life (for ex 3 secs of led blinking instead 5, increased battery life counter,etc) + increased speaker sound volume + many example for setting automatic alarms, rings, etc...
Moved MAIL + Attachments folders from main memory (My Device) to external one (Storage Card)
3 / 4 rows configuration
This should work on every WM based rom, also because I added the auto recognition of "Storage" name... so should work without troubles also on NON WWE roms (except for CABi installation)
DOWNLOAD sUC.cab HERE
DOWNLOAD sUC_source.zip HERE
BEFORE INSTALL (mandatory)
create in your "Storage" (the BIG one) a folder called "Backup and Restore", then inside it a folder CAB (inside this another folder called CABi), then at the same level of CAB folder create a folder called CPY, then REG, then EXE
so practically your basic structure should be like:
Code:
Storage Card (or whatever name)
=> Backup and Restore (folder)
=> CAB (folder, put here all the cabs you want install on main memory)
=> CABi (folder inside CAB folder, specific for "must go into Storage", see notes)
=> REG (if present all reg files here will be joined to default WM registry)
=> CPY (if present all files here will be copied under their correspondent folders)
=> EXE (if present all .exe & .mscr files will be launched)
all files in the CAB folder will be installed (automatically) into "device", the ones in the CABi folder will be installed into "Internal Storage" (or whatever you have, always automatically), from REG folder all *.reg/*.rgu files will be loaded on the fly, from CPY all files will be copied (with overwrite) into correspondent folders (for ex useful for copying personal dlls, wav/wma/mp3 files or background, etc...), for finish from EXE folder will be launched your executables (personally never needed, but who knows?) & if present all *.mscr scripts... pay attention to exe files that needs user interaction
INSIDE THE CAB (a deeper explanation)
when your sUC cab is installed it simply creates a registry entry under [HKLM\init\]"Launch69"="2ndboot.exe", this permits the script 2ndboot.mscr (launched by 2ndboot.exe) to be loaded upon system reboot (just one time)
this script, if the structure mentioned above isn't found, it will create automatically all the folder & default reg files needed under your storage card, the name isn't important because it should guess itself its correct name, so don't care if your storage is called something like "MyBigStorageCard"
then it will ask you some questions... such as if you use ActiveSync, which GPS performance adopt, etc... all this info, which at 1st you'll pay high attention, will be stored under your storage card in a file called config.txt ...why?? simple... because next time you will flash or hard-reset your phone you wont have to push a button the script will found that previous stored config file & it will take all the info needed for final rom configuration to skip all annoying questions after every upgrade/HR
note: there is also an hidden option that should be used only by experts, to enable this option simply add by hand to your config.txt file the line: FastInstall=1
this will skip all countdown menu & messages... personally I use this option because flashing a lot this saves much time more
next it will look in the CAB folder for installing your CABs into "device" or main memory
next in the CABi folder for installing CABs into your storage card (you need to do this just 1st time, I'll explain later...)
next it will look at a file called upxlist.txt (must filled before), where simply you will specify all the *.exe file you want to compress after every cab installation... for example your upxlist.txt could look like:
Code:
\Program Files\Navigator\TomTom Navigator.exe
\Program Files\9.5 Beta\Opera9.exe
\Internal Storage\Program Files\Binaryfish\All Mobile Mines\All Mobile Mines.exe
note: every line for every EXE file, pay attention that you can compress just EXE files coming from extra CABs, because EXE files present in the rom are read-only
next it will copy a set of basic reg files with many tips/tricks/examples inside, useful for making many customizations
note: of course if you have previously prepared the folder structure & you have copied your REGs files under the REG folder they will be processed together the files above
next it will look in the CPY folder and will replicate the found folder structure (with files too), for example create inside it a folder \windows with some file inside & it will copy all found files under \windows on your device, or create \program files\myapp & it will create that folder structure in your device, of course it works also for Internal Storage even if it has no sense, anyway just a note it doesn't create empty folder, to create an empty folder just use a single .mscr script (something like: MkDir("\mydir") ) & copy it in your EXE folder
next it will look in the EXE folder & will launch all the exe files inside it, if found it will launch also all *.mscr scripts
next if found (you'll understand better upon an HR), it will ask you to restore your backed-up start menu, so you don't have to re-arrange your icons again
next if found, it will ask you to restore your last PIM backup & will reboot
notes:
right now CABi procedure works only on WWE roms (due to translations work to be finished), anyway there is a trick to skip CABi installation, or better make by hand just once (read few lines below)
installing cabs into Storage Card sometimes will fail, this simply because some cabs need confirmation/accept license & so on, so don't expect will work 100%, also many cabs require to be installed into main memory so NOT into Storage Card, for ex I use to install into Storage Card simple cabs such as games
sometimes pim backup restore can fail, try to restore by hand after installation; backup are divided into week days (monday, sunday, etc... "Last" is the last saved backup)
if you put sUC.cab in your CAB folder wont re-processed of course, useful if using sUC together with UC/UC2 installation method (see at bottom)
if you still use the 1st sUC release way your personal scripts still work like before, simply move them under EXE folder, or transport as reg entries directly into your personal reg file & copy it under REG folder, you can find on the same folder some examples (to clean all your old stuff simply empty the REG folder, modded REG files wont be touched on future upgrades)
you don't need to re-install every time your CABi, just install them once, then on next upgrade answer No or simply edit your config.txt & change the correspondent value; after CABi installation on a clean boot go with your explorer under "\windows\start menu" folder & re-organize your start menu structure (cut/past links, create/delete folders, etc...), remember to don't delete "Settings" folder even if empty, then go under sUC menu & backup your StartMenu, on next upgrade sUC will detect start menu backup & it will reinstall automatically... because the content of your storage card isn't erased after a rom upgrade/hard-reset your installed CABs will stay there untouched, so backed-up start menu has inside correct links
is possible to move TomTom, iGO, Navigon, etc... definitively into your storage card, so you don't need to install them every time: copy entire nav software folders from \program files to \internal storage\program folders, re-create icon shortcuts (copy/past as shortcut in your start menu), for iGO you have to edit sys.txt (under iGO folder) & change the path of base installation
in the same way is possible to skip for example FingerKeyboard installation from related cab, simply take a look at this short guide
INSTALLATION
note: to migrate in every new sUC version simply move your reg mods in your Personal.reg file, erase all the rest of reg files because they will be re-generated with the new ones, remember that on upgrades reg files wont be touched so pay attention on what you mod
if the rom is UC compliant simply create a called SDConfig.txt file in the root folder of your Storage Card, for example your SDConfig.txt could look like (pay attention to upper-lower case & no empty lines):
Code:
LOCK:Enabled
CAB :\Internal Storage\Backup and Restore\CAB\sUC.cab
LOCK:Disabled
RST: Reset
in this way at reboot will start standard sUC procedure (remember MortScript is included & also that sUC cab wont be re-processed even if present in CAB folder), instead if the rom isn't UC compliant simply install sUC as any normal cab, then it will ask to restart (or restart manually) & automated procedure will begin on reboot[/b]
bye,
davide
OK, that's all very nice, but WTF is it?
Wouldn't hurt to have an "about" section in the post for ppl who see this thing the first time in their life.
GENIAL !!!!!!
aiiro said:
OK, that's all very nice, but WTF is it?
Wouldn't hurt to have an "about" section in the post for ppl who see this thing the first time in their life.
Click to expand...
Click to collapse
yep... you right sorry, I'll correct soon...
suiller
OMG~ You finally made it available!!! I'm going to test it with my HD and will report back once everything is organised
I didn't mean to sound rude, sorry... Anyway, thanks for the addition, but still - what is UC? User Configuration? Could You post some screenshots too to make it more comprehensible for dumbusers like me?
jackkkkk said:
suiller
OMG~ You finally made it available!!! I'm going to test it with my HD and will report back once everything is organised
Click to expand...
Click to collapse
oh FRIEND! I found you
yep, I'm looking here around to see if my mad projects can be useful
the cab isn't still perfect but should work, of course I haven't a different device from diamond so all you will be a sort of beta tester
I've removed all specific diamond stuff, so it should work
Of course this is just a starting point, I'm dedicating much time to develop this small piece of "software", thx also to many other friends
You know as it works, so you should feel a bit like at home
aiiro said:
I didn't mean to sound rude, sorry... Anyway, thanks for the addition, but still - what is UC? User Configuration? Could You post some screenshots too to make it more comprehensible for dumbusers like me?
Click to expand...
Click to collapse
yep you are right... UserConfiguration, the only difference is that you don't need to write any config file, at least not as "normal" user, it's enough to copy under correct folders the CAB plus other stuff you want installed/loaded after every flash/hard-reset
I'll porvide soon a video-guide, so it will be for sure more clear
OK, OK, nuff with making fun of me Or were You seriuous with video guide?
Cos I just had a brilliant idea - I'll install the damn thing and look for myself
I think I should have done that in the first place. But still, I believe screenshots would save some time understanding what's it really about.
Yeah Screwed Up Click for life
no no I'm serious friend... but I'll suggest to wait a couple of days because I'm working on a new version where is possible to cut-off all the specific HTC/manila stuff & above all I'm re-commenting all the registry entries that interact with OS
no no I'm serious friend... but I'll suggest to wait a couple of days because I'm working on a new version where is possible to cut-off all the specific HTC/manila stuff & above all I'm re-commenting all the registry entries that interact with OS
Hi,
really don't want to be rude or offence, but ... isn't this something like SASHIMI????
If so ... where are sUC's pros?
kind regards
fwt
almost... but it's very very simple... I'm testing an heavy modified version able to run on almost every WM6.x base device
OK the CAB is ready for testing purposes... please re-read 1st post because I'm making a better, I hope easier, description of features... thx
bye,
davide
Mate, this piece of software is plain GENIUS!
So much easier than the UC thing, with all the boring scripting. This way you just place in folders, and you are (mostly) done! Amazing stuff!
I have some questions/requests for you though...
Is there a way to repeat the procedure (restore at 1/2 start up), at a later time? This could be useful, for example, if some files get corrupted, or you just want to revert back to default cabs/settings, etc. So I guess what is needed is a way to manually activate the procedure.
Second thing is regarding mail settings. Is there a way to back this up? My hotmail settings get destroyed after every HR.
Cheers.
Forgot to mention, a manual activation of this procedure would also help if (for example) you want to make multiple program installations. This way you could just use the folder CAB, without wasting time on every single program you are installing/testing...
Cheers
krale said:
Forgot to mention, a manual activation of this procedure would also help if (for example) you want to make multiple program installations. This way you could just use the folder CAB, without wasting time on every single program you are installing/testing...
Cheers
Click to expand...
Click to collapse
hmm... it could be a good idea... even if some phases can't be reverted, or better it's very complicated to "go back"... such as for ramdisk
anyway many phases are yet accessible as indipendant scripts just take a look under "\Backup and Restore\scripts" folder, of course other script could be extrapolated but I'll do probably on next version... let's say this is a testing purpose version because I have to "think" that this app must work on many (almost all I hope) wm6.x based devices
As one of the end (l)users who first saw this in Suiller's Dia Duit rom series, I can attest to this resolving one of the major grievances of Windows Mobile rom-upgrades. With some "smart" planning ahead, getting everything back can now be mostly scripted by simply placing the install file in the correct directory. Same with restoring data from your pimbackup, or adding registry settings. Once again we have a case where the xda-developers have surpassed the "offficial" roms in user friendliness.
I have since moved on to WM6.5 (still on my Diamond), but I sorely miss sUC from my later roms.
//Svein
updated sUC, corrected some small issues
I corrected some default/samples reg files, so I suggest to erase all default *.reg files under REG folder to update correctly
move your personalization to something like "MyRegPers.reg"
please reports here bugs/issues/suggestions or whatever... thx

Need URGENT HELP with HD2's registry

Guys, I need help please...one of my nephew get a hold of my HD2 and accidentally renamed a registry's folder (Using Total Commander) . And he can't remember the actual renamed folder was.
The folder is located in : HKLM\Software\HTC\(name of the renamed folder). And now my HD2 cannot load my Sense 2.5
Here's some info, inside the renamed folder you got :
-. Folders :
Configuration
Home
HTCService
InternetPush
Music
Update
-. Registry key :
HTCScroll.Enable
ISWM6.5
Version
TriggerTreshold
TextureCompress
Style
And some other keys
Any of you please, I need your help to see what folder name inside HKLM\Software\HTC\ that has the above's registry keys and folders...
Urgent....Thanks before and after guys....
might be
HKLM\Software\htc\Manila
same folders and keys u listed plus homeLSK and homeRSK settings
It's the Manila folder.
Yup, its Manila folder
Wow...truly a remarkable forum and outstanding helpers....thx guys (and girls). Problem SOLVED...it is the Manila folder...Once again Thanks You sooooo muuuchhhhhhh
incidentally, that folder is the one you most often get to handle to change stuff, so you got kinda lucky because that's what everyone (me included) went to check first
ephestione said:
incidentally, that folder is the one you most often get to handle to change stuff, so you got kinda lucky because that's what everyone (me included) went to check first
Click to expand...
Click to collapse
maybe people just did a registry search?

Custom EXT's

This is a thread to post up random custom EXT's (not stuff dumped from roms, but stuff put together by users). Here's one I put together today. It creates 13 shoutcast .pls files (in \application data\shoutcast) and also creates shortcuts in the start menu for the .pls files (in Playlists, which needs a folder icon if you use it). The app.reg file creates a .pls file association for tcpmp-it may need editting for the path (I have tcpmp in \windows). The package requires mortscript; all it is is a mortscript that creates the files during customizations. It is fully edittable-you'll need to dump the .pls file for any station you want from shoutcast, and then edit the script. I kind of doubt anyone's gonna want all the .pls files I use. The nice thing about using these files is that you don't need a middle-man app to get the shoutcast stream going (e.g. PIE). The script looks like this:
Code:
WriteFile("\Application Data\Shoutcast\Twang City.pls","[COLOR="Red"][playlist]^NL^numberofentries=1^NL^File1=http://67.218.97.133:8888^NL^Title1=(#1 - 12/32) TwangCity - Alt-Country and American Roots Music^NL^Length1=-1^NL^Version=2^NL^[/COLOR]")
Just change the .pls name to whatever you want, and cut-and-paste the contents of the file in between the second set of ""s. The little squares for line-breaks need to be replaced by ^NL^. Some of the .pls files are longer than others (check the 'boot liquor' one). I'll post some more later.
Edit: Lol!!! It oughta be named 'Streaming Package'.
Added tcpmp package.
I know; it's so funny, I gotta leave it that way.
I added a tcpmp package to the first post. It needs mortscript to unzip the skin files and also to create the start shortcut. Edit the mortscript to change the location in the start menu that it goes to. The skin is the one on the bottom left of the first post from the thread. I guess it's by listopad-it's really sweet.
Here are three more. The first is the new dotfred task manager 3.3. It's set up to run the cpu usage monitor; to remove it, delete the .dll and the certificates and whatnot in the app.reg file.
The second is PE Info (free from s-k-tools.com). It lets you look inside PE files (kind of like PE Explorer).
The third is the newest version of the google youtube app. It needs mortscript to run, and the start link is in the mortscript.
This is a package with the latest Bing with turn-by-turn navigation. You need mortscript for it to run, and the shortcut is created in the mortscript in the package; edit the second line to put the shortcut wherever you wish.
I've had issues with the XAML files becoming corrupt if I locate this straight into \windows. Whenever I soft reset, all the files in \windows\xaml become corrupt (task 29 doesn't help). Anyway, it works fine for me in \program files, so that's why the package is put together that way.
Edit: Here is a combo EXT of TCPMP/Uzard Web browser. The browser's media player is tcpmp with a crappy skin. I've combined the browser with TCPMP-0.72RC2-ARM-WM6, and the two media players use the same plugins (saves memory). They also use the same custom skin, so now you can make all the same tweaks to the uzmp media player as you can with tcpmp. You need mortscript for this to install properly, and the start menu shortcuts are created in the mortscript.
Hi, great idea but just to let you know there already exist a thread like this with custom packages thanks to Starbase64.
You can find it in the sticky here:
{{Chef Central}} Guides | Tutorials | Tips & Tricks | Fixes | Stickies [READ FIRST!!]
http://forum.xda-developers.com/showpost.php?p=6293850&postcount=6
http://forum.xda-developers.com/showthread.php?t=611007
Custom Dummy CoPilot package
Description:
This is a dummy CoPilot, used in order to enable NaviPanel's buttons and point to your GPS software.
Requirements:
You must have MortScript included in your rom:
For getting the package installed!
(It has an archive which has to be unzipped with MortScript during 1st or 2nd boot - check app.mscr and add its content to your script that runs while customization)
For running the dummy CoPilot after installation!
(A *.mscr is used to run your GPS Software)
Tested:
Working well on a LEO with Destinator 7 in Storage Card!
Best Regards!
PS1: If another solution like this has already been posted, you may ignore all these and delete the post
PS2: Bumping the thread! This could be a good repository!
Here are a few of the ones I cook in regularly
Black Dialer Skin - Nils
HTC Calculator - Gray
Black Samsung Lite Keyboard - Nils
Black TaskBar - Nils
LiveSearch-Bing
M2D TodayPage 3.1 with Messaging on home page
Google Maps 4.1 with Voice
Spb Screenshot
Here's a few as well from my collection.
Custom_EXTs

'View on Map', Footprints, Compass and Googlemaps on the sd card

Googlemaps, footprints, compass and the sd card.
In response to a PM request, I made a cab for someone to allow googlemaps to run from the sd card yet keep the system integration, and not need to be reinstalled every hard reset, thus keeping starred places, saved journeys and such like.
The attached cab loads pre configured vjbrisk (all credit goes to vjbrisk) files into your phones \program files\googlemaps\ folder, which redirects the system to \storage card\program files\googlemaps\
It also sets the registry entries for file associations (.kmz files and what-not)
After a quick restart of the phone you should find that 'show address on map' in contacts works, the compass app should have a 'set destination' option (this may be dependant on your compass app version, not sure) and you can open up locations from footprint image pages.
To install googlemaps the first time, just install as normal, but choose sd card.
Next time you hard reset / flash a new rom, you do not need to reinstall googlemaps, just the fakegooglemaps2sd.cab
On the sd card, in \Storage Card\application data\googlemaps\ there are some files (and the cache folder, ignore that.) which hold your googlemaps favourites / starred places and such.
If those files are disturbed, googlemaps will crash and not load. You can fix it easily by simply installing googlemaps again.
If you want to put googlemaps somewhere other than \storage card\program files\googemaps, edit the cab, edit the content of googlemapsLNK.lnk, and edit the paths in the registry entries.
(Note for cooked rom users, theres a good chance your rom already allows this so you don't need this, have a read of your rom description)
I only tested it briefly, and it works for the person I made it for, so I didn't test further.

Categories

Resources