[QUESTION] app.dat help needed - Windows Mobile

Hi,
I am wrigting an app.dat file so I can transfer files to the storage card when the OS first boots. I am writing this for the HTC HD2 Leo, windows 6.5.5. I can write the file to transfer files to the my documents folder etc. I am unsure what the command is to transfer to a storagecard. Could somebody give me an example on how to do this??
Cheers

GhostXSeries said:
Hi,
I am wrigting an app.dat file so I can transfer files to the storage card when the OS first boots. I am writing this for the HTC HD2 Leo, windows 6.5.5. I can write the file to transfer files to the my documents folder etc. I am unsure what the command is to transfer to a storagecard. Could somebody give me an example on how to do this??
Cheers
Click to expand...
Click to collapse
I am not sûre about app.dat ...but u CAN do with mortscript ...but when u flash a ROM u havé already loss all ur files ...so ...u CAN create a mortscript that u CAN launch manually before flashing a Rom that Will u move ur files to storage card.....

I kind of doubt that the storage card has been loaded by the time that initflashfiles.dat is doing its stuff. Go the mortscript route.

i have heard that, there was a thread that contain programe that can make mortscripts..
can any one have link to that?

Why would one want to copy something contained in a rom to a storagecard?
Just curious.

pkoper said:
Why would one want to copy something contained in a rom to a storagecard?
Just curious.
Click to expand...
Click to collapse
Same question pops in my mind mate!

Related

Can we create the ultimate ROM???

We have the technology we can rebuilt it.
It occured to me that we should be able to build the ultimte "base" rom to use in the kitchen.
I would propose that it be based on the TMO 4.01.16 but make the installation of all the additional apps such as TMO toolbar, myemail, pdf and ppt viewers optional. I would also propose that sample windows media files and be removed.
Such a rom would give us the maximum space into which to add the appilications we chose but still allow us the flexibility to add some of the apps and settings that service providers supply. (much as the old Devlopers ROM did)
Just a thought
maudc
PS 3 cheers for Lumpistefan and Makis!!! :!: :!: :!:
That is a good idea. I think we can do it with mkrom.zip. We will need a linux op. but I think it will do the job under windows with cygwin.
I started to see the txt files, ini files etc, but I am at the beginning.
I want to make a good rom, like you. With no helps, no unneccesarry files, custom files (my ringtones for example) in the rom.
I only need time.
how
can you actually remove files from ROM ?
I couldn`t do it.
It will be great indeed.
Re: how
decebal said:
can you actually remove files from ROM ?
We want to build a ROM without some files. Not to remove files from a working ROM in the devices flash memory.
There is a file in the mkrom/cfg folder:
initobj.txt
It contains a filelist. I think there is a place to delete the files. But I have not tried. I have not time now.
Gabor
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Re: how
decebal said:
can you actually remove files from ROM ?
Click to expand...
Click to collapse
I think this is the big problem.....
Until now it´s not possible to remove Files from the rom....
What should be able is overwriting files from the ROm. But i think this doesn´t make much sense....
Stefan
Re: how
LumpiStefan said:
decebal said:
can you actually remove files from ROM ?
Click to expand...
Click to collapse
I think this is the big problem.....
Until now it´s not possible to remove Files from the rom....
What should be able is overwriting files from the ROm. But i think this doesn´t make much sense....
Stefan
Click to expand...
Click to collapse
So what do we do in that case?
Re: how
Sallala said:
There is a file in the mkrom/cfg folder:
initobj.txt
It contains a filelist. I think there is a place to delete the files. But I have not tried. I have not time now.
Click to expand...
Click to collapse
You're wrong.the initobj.txt file just conatins a list where to copy some files out of the rom. All Files are located in \Windows. The initobj.txt files contains the list, which file should be moved to wihich directory.
90% of this are the files in "Start Menu" and Help ....
So i see now chance to delete files out of the rom....
Stefan
Re: how
LumpiStefan said:
Sallala said:
There is a file in the mkrom/cfg folder:
initobj.txt
It contains a filelist. I think there is a place to delete the files. But I have not tried. I have not time now.
Click to expand...
Click to collapse
You're wrong.the initobj.txt file just conatins a list where to copy some files out of the rom. All Files are located in \Windows. The initobj.txt files contains the list, which file should be moved to wihich directory.
90% of this are the files in "Start Menu" and Help ....
So i see now chance to delete files out of the rom....
Stefan
Click to expand...
Click to collapse
Stefan I can get from you this file is like the Config.txt in the Extended_Rom in Himalaya. I can understand now how you could remove the Msn messenger shortcut into \WINDOWS\START MENU\PROGRAMS\INTERNET\CHAT & IM ????

Guide to Cooking Universal Extended Rom with FILES

Hello,
I have read that some people have been having a bit of trouble with customising their extended rom on the Universal. So here is my attempt at creating a guide, as a way of saying THANKS to all who helped me in these forums to create my own customised ROM's on the blue angel and my current EXEC.
First thanks mainly to Buzz for the Ext Rom Unlocker and also to BeyondTheTech for the Disable Security Cab.
Also thanks to all other members who contributed their trials and files in the thread.
IMPORTANT - DO A BACKUP BEFORE DOING THIS AS A HARD RESET IS REQUIRED!!!!
Here Goes:
This is how i did it:
1. I created a folder on the desktop called Exec, and inside i created 2 folders called Orig Rom and Cooked Rom
2. I then downloaded the following 3 files and placed them into the Exec folder.
3. i copied the unlock policies and the ext rom unlocker onto sd card and copied them to the phone.
4. i ran the unlock policies cab first then the ext rom unlocker cab
5. under programs i clicked on ext rom unlocker to execute the file
6. it then said succesful and reboot to finsh
7. once rebooted install total commander from below.
8. i then ran total commander and typed in /extended_rom (note underscore) and it displayed the contents of the exteneded rom that originally came with the phone.
9. selected it all and copied the contents to SD card.
10. if you connect your phone directly to pc then you can copy the contents directly to the 'orig rom' folder you created earlier, or use card reader to do same.
11. either way you have the contents of the ext rom on the pc. i then deleted the contents of the Extended_Rom on the phone.
12. the next steps are done on the pc.
13. copy the autorun.exe and the config.txt file from the 'orig rom' folder to the 'cooked rom' folder.
14. copy all the CAB files that you want to be installed upon hard reset into the cooked rom folder aswell.
15. copy the disable security.cab file into the 'cooked rom' folder aswell
16. you will need to rename the cab files that you want installing in the following format:
Default_Unsigned_xxxxxx.cab where xxxxxx is the name of the file
17. if the cab files have long names then just rename them!
18. if you wanted to keep some of the original cabs from your extended rom then copy these into the 'cooked' folder aswell but leave their naming system alone ie:
Signed_UNI_Remove_BatteryIcon.sa.CAB
19. once these have been named as above open the config.txt file
20. it needs to be prepared into the following format :
LOCK:Enabled
CAB: \Extended_ROM\Default_Signed_DisableSecurity.CAB
CAB: \Extended_ROM\Default_Unsigned_tcpmp.arm_ce3.cab
CAB: \Extended_ROM\Signed_SSD_BTUR_Patch_For_BT_Cannot_Initial.sa.CAB
CAB: \Extended_ROM\Default_Unsigned_Porta-Pinball.CAB
RST: RESET
this is an extract from my config.txt file
21. i used the existing file and amended the entries, add/deleted some of the entries.
22. note the space between Cab: \ this is important.
23. also note that the first file that i wanted to install was the disablesecurity.cab file, without this the other 'personal' cabs will not install.
24. so once you have edited and saved your config.txt files making sure all spelling is correct (also an important thing otherwise the files dont install) and no warnings are issued either! you will have in your 'cooked rom' folder:
autorun.exe
config.txt
and several cab files
25. select all the files and then 'right click' on properties.
26. select the 'read-only' option and ok
27. i found that after the first install some of the cab files delete themselves! this prevents that from happening.
28. connect your phone to the pc
29. using active-sync Explore device and navigate to the Extended_Rom folder
30. copy all the contents of your 'cooked rom' folder into the Extended_Rom folder
31. once completed, disconnect the phone and perform a hard reset.
32. after you have aligned screen and done the start-up routine it will start installing your personallised cab files.!!
33. You should now have an Exec, customised with your own extended rom and as a bonus a complete back-up on your pc.
34. if ever you upgrade the phone rom/radio etc, all the software you need and the perosnlaised rom is ready to go.
if i have missed a step plz post back and i will edit my posts and put in there.
I cannot stress how important it is that you make a backup first before doing this as you will lose everything on the phone.
Bye for now!!!
Gr8 Work!!!
hi there this is a perfect guide well done m8
only one question as i have the jasjar and i-mate rom on it
i do not have the config.txt file
how do i tell the device to install my personal/third party cab files
thanx in advance
mail attachments
Thanks for the guide, however when i use total commander, extended rom is shown with the same symbol as storage card and I cannot get the mail programme to save attachments to the real storage card as the universal thinks the extended rom is the storage card.
How can the properties of the extended rom be changed so it does not appear to be a storage card ?
Thanks
Steve
Re: Gr8 Work!!!
krassen said:
hi there this is a perfect guide well done m8
only one question as i have the jasjar and i-mate rom on it
i do not have the config.txt file
how do i tell the device to install my personal/third party cab files
thanx in advance
Click to expand...
Click to collapse
i have the same problem, any solution?
the solution to that can be found here:
http://www.buzzdev.net/index.php?option=com_simpleboard&Itemid=59&func=view&catid=40&id=7869#7869
Re: Gr8 Work!!!
majdi said:
krassen said:
hi there this is a perfect guide well done m8
only one question as i have the jasjar and i-mate rom on it
i do not have the config.txt file
how do i tell the device to install my personal/third party cab files
thanx in advance
Click to expand...
Click to collapse
i have the same problem, any solution?
Click to expand...
Click to collapse
I just renamed the required cab file by adding "Default_" to it. That did it.
Thanks
But I have been through the thread numerous time.
The mail programme thinks the extended rom is the storage card.
The thread has a fix to hide the extended rom so the mail programme now saves attachements onto the real storage card.
It just seems a shame to have gone to all the trouble to unlock and make visisble the extended rom, just to hide it again so the mail programme can save onto the real storage card.
Am I missing something. Simple guidance PLEASE.
Steve
hollytree said:
Thanks
But I have been through the thread numerous time.
The mail programme thinks the extended rom is the storage card.
The thread has a fix to hide the extended rom so the mail programme now saves attachements onto the real storage card.
It just seems a shame to have gone to all the trouble to unlock and make visisble the extended rom, just to hide it again so the mail programme can save onto the real storage card.
Am I missing something. Simple guidance PLEASE.
Steve
Click to expand...
Click to collapse
When the hard reset is done the whole point is for the Extended Rom to be hidden again. This ensures that at any point in the future if a hard-reset is required then the phone is setup agian as you want it.
At the moment the Extended_rom partitrion cannot be used as a storage space , and i believe Buzz is working on that.
So my guide illustrates deleting existing rom, and replacing with personalised rom and then hiding it agian.
Above this thread is a link to Buzz's small tutorial to alllow attachemnts to be saved back to storage card instead of the Extended Rom for those who want to leave it Un-Hid.
Regarding those without a config.txt file then renaming everything to Default_xxxxx.cab does the trick.
thanks
This is a GREAT thread. Hats off to you.
Personally, I think I'm going to add the T-Mobile USA Internet Settings cab to "cooked" stuff (I'm in the US).
Does anyone have a cab that will set up the gmail pop settings (w/ generic un/pass of course)? Lazy, yes, but I'm just trying to make any refresh that I would ever need to do that much simpler
i have another question as we have a lot of good registry tweaks....
is it really that hard to create cab files for those registry settings and just throw those in the extRom
regards
krassen
flippy said:
the solution to that can be found here:
http://www.buzzdev.net/index.php?option=com_simpleboard&Itemid=59&func=view&catid=40&id=7869#7869
Click to expand...
Click to collapse
my problem is that in wm5.0 there is no config.txt file to tell the os what to install from the ext rom, i unlocked the ext rom and moved all contents to pc, i also deleted all the existing files from it, and i have all my cabs ready, but the problem is how to tell the installer to take these cabs instead of the origionals?
does it take it automatically, or should i do something to make it install my personalised ext rom?
majdi said:
flippy said:
the solution to that can be found here:
http://www.buzzdev.net/index.php?option=com_simpleboard&Itemid=59&func=view&catid=40&id=7869#7869
Click to expand...
Click to collapse
my problem is that in wm5.0 there is no config.txt file to tell the os what to install from the ext rom, i unlocked the ext rom and moved all contents to pc, i also deleted all the existing files from it, and i have all my cabs ready, but the problem is how to tell the installer to take these cabs instead of the origionals?
does it take it automatically, or should i do something to make it install my personalised ext rom?
Click to expand...
Click to collapse
If you dont have a config.txt file then you need to rename your cab files in the following format:
Default_xxxxxx.cab where xxxxx is the name of your file. this has been found to work in your phone.
thanks
many thanx to u.
this worked just fine.
cheers
disable security cab
Does anyone know where I can download the DisableSecurity.CAB as the links no longer work.
Thanks
Steve
Re: disable security cab
hollytree said:
Does anyone know where I can download the DisableSecurity.CAB as the links no longer work.
Click to expand...
Click to collapse
Did you try the first post in this thread?
You have to register and be logged in to see the files...
links worked for me
l6cum said:
majdi said:
flippy said:
the solution to that can be found here:
http://www.buzzdev.net/index.php?option=com_simpleboard&Itemid=59&func=view&catid=40&id=7869#7869
Click to expand...
Click to collapse
my problem is that in wm5.0 there is no config.txt file to tell the os what to install from the ext rom, i unlocked the ext rom and moved all contents to pc, i also deleted all the existing files from it, and i have all my cabs ready, but the problem is how to tell the installer to take these cabs instead of the origionals?
does it take it automatically, or should i do something to make it install my personalised ext rom?
Click to expand...
Click to collapse
If you dont have a config.txt file then you need to rename your cab files in the following format:
Default_xxxxxx.cab where xxxxx is the name of your file. this has been found to work in your phone.
thanks
Click to expand...
Click to collapse
It's shuld be Default_xxxxxx.cab or Default_Unsigned_xxxxxx.cab / Default_Signed_xxxxxx.cab, now ?

How can I modify a Windows part of firmware?

I need to replace some files in Windows of my magician to make my device read 2 Gb 150x SD cards. How can I modify the nc.nbf file of a firmware?
This isn't sooo easy as far as i know...
Do you know what you want to do? What files want you to change?
Mattez
PS: Pls do not open 2 threads for one issue!
Windows doesn't allow me to replace the drivers of a SD card. I want to replace these files with the files from the previous version of Windows.
smart2003 said:
Windows doesn't allow me to replace the drivers of a SD card. I want to replace these files with the files from the previous version of Windows.
Click to expand...
Click to collapse
The only way I know of would be to edit the ROM files in Hex using a hex editor. This would be very difficult, as I don't know of a reference that would tell you where in the ROM file your particular file is found. But it could be done. If you found the file location you might could remove the file, then paste in your file - all in hex, of course.
Instructions for dumping your ROM can be found with a search of the "upgrading your Magician" board.

-------> Is POSSIBLE to put ADOBE and POWERPOINT in MEMORY CARD to increase space??

-------> Is POSSIBLE to put ADOBE and POWERPOINT in MEMORY CARD to increase space??
Is possible to cut Power Point (2,29 mb) and AdobePDFreader(1,91mb) from the main memory and put them into the memory card??
It would increse a lot main memory space...
Experts, let me know if it's possible....
And what about all the files called "HH_WEATHER...", I have an other program fot meteo forecasts, so I don't use the original one... Is it possible remove all these files?? (I think that they are all images, I only opened a few, and they were all forecast images...)
BYE BYE......
the things you mentioned is probably burned into rom - you won't be able to remove it.
ww2250 said:
the things you mentioned is probably burned into rom - you won't be able to remove it.
Click to expand...
Click to collapse
Yes, I know..
But I lose the warranty if I install a cooked rom....
If my device in future won't work correctly (or don't work at all) I wouldn't be able to put the original rom back??
Alternative Solution
You could compress the two executables with UPX and use Resco Explorer to overwrite them in the ROM. That won't save you as much space as moving them to external memory, but by compressing the files, you will save a decent amount of space.
tyr0ne said:
You could compress the two executables with UPX and use Resco Explorer to overwrite them in the ROM. That won't save you as much space as moving them to external memory, but by compressing the files, you will save a decent amount of space.
Click to expand...
Click to collapse
Actually that will use MORE space. If the files are in ROM they arent using any of you Program RAM. If you overwrite the ROM files like this the new files will be in RAM!!!
flykthewiz said:
Actually that will use MORE space. If the files are in ROM they arent using any of you Program RAM. If you overwrite the ROM files like this the new files will be in RAM!!!
Click to expand...
Click to collapse
Are you sure about that??
Do you mean that, if I compress these files, when I replaced the originale ones with the newest, the pocket pc places them into the ram and not the rom??
How is possible it??
So I can do this operation or not?
I would be happy if only I had 2/3 mb more....
flykthewiz said:
Actually that will use MORE space. If the files are in ROM they arent using any of you Program RAM. If you overwrite the ROM files like this the new files will be in RAM!!!
Click to expand...
Click to collapse
Anyone know this inconveniet??
the only thing is with anything that you add to your ppc after initialization... it stores it to the ram, not the rom, you would have to actually cook a similar rom to your original rom to have the new stuff in there, and all you would have to do is get the official ruu for your device before you call back in, and you are good to go, thats what i do!
MrGalione973 said:
the only thing is with anything that you add to your ppc after initialization... it stores it to the ram, not the rom, you would have to actually cook a similar rom to your original rom to have the new stuff in there, and all you would have to do is get the official ruu for your device before you call back in, and you are good to go, thats what i do!
Click to expand...
Click to collapse
Ok, perfect...
I think that in the future I'll try a cooked rom, I know that it increase the space, a lot!
The only thing that worried me is the following:
If I have to repair the device, I must put the original rom back, but if I can't do it (ex my device doesn't start correctly)?
I had a Nokia N73 brand with my operator Tim, I have unbrand it (knowing to lose the warranty), but some months ago I must bring it to a Nokia Center, to repair.
And they don't see nothing about the difference between the original Imei and the actual one (that are different because you must do that to update yur firmware)....
flykthewiz said:
Actually that will use MORE space. If the files are in ROM they arent using any of you Program RAM. If you overwrite the ROM files like this the new files will be in RAM!!!
Click to expand...
Click to collapse
So u mean it's possible to replace a ROM file in the windows dir with another?
If so, HOW... i want to replace smartdialing.dll in my htc elf with another one that's patched containing another language(greek) but it doesn't seem to work.
Any help on this one?
larryg4 said:
So u mean it's possible to replace a ROM file in the windows dir with another?
If so, HOW... i want to replace smartdialing.dll in my htc elf with another one that's patched containing another language(greek) but it doesn't seem to work.
Any help on this one?
Click to expand...
Click to collapse
He talks about replace the file with resco explorer....
I think that you only have to copy the new file and paste it into the windows directory with resco....
Isnt it possible just to copy the program files to memory card and change the registry settings for those apps to point to new location?
jem777 said:
Isnt it possible just to copy the program files to memory card and change the registry settings for those apps to point to new location?
Click to expand...
Click to collapse
I would want know exactly this thing....
Anyone know??
jem777 said:
Isnt it possible just to copy the program files to memory card and change the registry settings for those apps to point to new location?
Click to expand...
Click to collapse
Some programs are hardcoded with paths in "\windows" directory - by moving stuffs around, things may break. Many programs that are expected to be in ROM fall in this class.
But then even if you are successful in "copying" it elsewhere, you won't be able to delete what's already in ROM. Overwriting it is just an masking action. ROM is ROM - follow me, Read Only Memory. Thus no memory is saved whatsoever.
Unless you flash it somehow.
ww2250 said:
Some programs are hardcoded with paths in "\windows" directory - by moving stuffs around, things may break. Many programs that are expected to be in ROM fall in this class.
But then even if you are successful in "copying" it elsewhere, you won't be able to delete what's already in ROM. Overwriting it is just an masking action. ROM is ROM - follow me, Read Only Memory. Thus no memory is saved whatsoever.
Unless you flash it somehow.
Click to expand...
Click to collapse
Ok, I understand the problem..
Tell me only the last thing....
If I copy the files to the memory card and then I create some shortcuts to these files, and replace them into the windows folder, do you think that they'll work or not??
When the pocket pc try to use them, It'll find the shortcut(and not the program itself) but this will direct the pocket pc to the program itself....
Would it work??
If I copy the files to the memory card and then I create some shortcuts to these files, and replace them into the windows folder, do you think that they'll work or not??
flaviopac said:
If I copy the files to the memory card and then I create some shortcuts to these files, and replace them into the windows folder, do you think that they'll work or not??
Click to expand...
Click to collapse
Noone know if it would run??
re-read my earller post. the answer is there already. if you find it difficult to understand, why don't you try it out yourself? it's incredibly simple.

[Q] Begginer.

Hello, my name is Joe. I need a little help with running the downloaded files directly from the HTC HD2. I have downloaded various applications from the forum, and coppied them to the Micro SD card like asked. When I go onto the file/folder on the HD2, and try to tap on it to start the install, I get redirected to the web browser.
Any suggestions?
Thanks in advance
Sklar said:
Hello, my name is Joe. I need a little help with running the downloaded files directly from the HTC HD2. I have downloaded various applications from the forum, and coppied them to the Micro SD card like asked. When I go onto the file/folder on the HD2, and try to tap on it to start the install, I get redirected to the web browser.
Any suggestions?
Thanks in advance
Click to expand...
Click to collapse
Dude,
Give an example of what you have tried to install and what file format it was when you downloaded it.
Most are .cab files and install just by clicking them in file manager
I have downloaded:
26. 4 column start menu
BsB Tweaks 1.6
cleanRAM
KeypldLedControl_v0.4
Personalizer_2.0
TorchButton_v2.3
I have extracted the files on my PC via WinRAR, Then placed the extracted folders directly onto the MicroSD root. Most of the files appear something a little like this: '0CAB18A7.005' Or something varied like that. On Windows the setup file is recognized as an XML document, and the others end in numbers. Like: '001, 002, 003 etc.
Cheers
You've extracted cab files haven't you?
Don't do that. Just copy the cab files to your phone or SD and run them directly.
Sent from my HD2 using XDA App
If I don't extract, the files will then be in ZIP format. Is this what has to be done?
Sklar said:
If I don't extract, the files will then be in ZIP format. Is this what has to be done?
Click to expand...
Click to collapse
It's a fake zip file. in reality it's a cab file.
Cab files are self installing files.
so conclusion, don't extract them.
I ****ing love you guys!
Sklar said:
I ****ing love you guys!
Click to expand...
Click to collapse
Have fun and welcome on XDA sir.

Categories

Resources