Write to ROM - Off-topic

I want to write make my application package a part of existing ROM and wants wheneever set hard set it installed (Dont want to burn ROM for each type of machine)
OR
once my program intsalled in memory, hard reset should not disturb it and will remain at machine startup
any luck?
Thanks,
Khurram

Hi Khurram!
There is a relatively simple solution to keeping your program after hard reset, without adding it to ROM and re flashing the device.
Most devices have either extended ROM, or better yet a file store, which is not erased by hard reset, but can be freely written to. (I think extended ROM needs unlocking before you can write to it).
Here's how to make your program restore it self automatically after hard reset: In the file store create a directory named 2577. In that directory place a file called autorun.exe
The system will launch autorun.exe automatically after hard reset, so you can write one to do what ever you need (install programs, restore settings etc.)
I'm not sure about the extended ROM, but I believe the procedure is similar.
P.S. You should ask technical questions like this in development and hacking forum.
Good luck!

levenum, Thanks a lot for the help , i will try and let you know. one thing the "2577" should be created how (any help will be appreciated) and will that folder and file also store at storage "E ROM" or will have to cook ROM for this.
also , any disadvantage of it as compare to Cooking a ROM
Regards
Khurram

In order:
2577 is an ordinary folder which you create just like any folder. (2577 is the processor type) The system simply knows to look for autorun.exe in that folder.
I don't know about E ROM, sorry.
The disadvantages of using file store (that I can think of) is the fact that the user can easily delete the content if he chooses to. Also most WM5 devices don't have "file store".
But if that is not a problem for you, the great advantage of it, is that you can replace any file, using just the explorer which means you can quickly test and modify your app without cooking ROM and re flashing.

Related

Modded Cappackage.pxp Files

So I thought it would be worthwhile to create a thread focusing on modified "cappackage.pxp" files. These are the files which control the default carrier specific configurations. In my case, I am running the Aussie "Three" WM6 OS, however I wanted some, but not all, of the ATT customizations. For example, I wanted the proxy tool, the logos and the certs . . . Attached is a modified version of the ATT cappackage.pxp file. I had difficulty configuring WindowsMobileLive.cab and the HTC task manager to automatically install as part of this new file so I will post those cab files as well for convenience (for those who may want it).
If you have a customized cappackage.pxp, please post it in this thread and describe how it has been modified so everyone can decide which they may want to use.
Here are the changes I made to the cappackage.pxp file. Note, all of these .cab files should be possible to install directly simply by extracting from original ATT WM6 cappackage.pxp in case you happen to need one of them:
delete getgood.cab
delete getmail.cab
delete realplayer.cab
delete getmobitv.cab
delete cmradio.cab
delete attmallandmusic.cab
delete musicid.cab
delete jarguarrm.cab
delete gettelenav.cab
alter "Att_Settings.prov.xml" to remove messaging and Windows Mobile Live registry customizations
add install of new devstate.dll (exists in 3AUS cappackage.pxp and also in ROW 2.23 cappackage.pxp)
ABS
EDITED 12-30-2007: Note - this altered cappackage.pxp file is based off the "leaked" ATT WM6 ROM.
abs99 said:
So I thought it would be worthwhile to create a thread focusing on modified "cappackage.pxp" files. These are the files which control the default carrier specific configurations. In my case, I am running the Aussie "Three" WM6 OS, however I wanted some, but not all, of the ATT customizations. For example, I wanted the proxy tool, the logos and the certs . . . Attached is a modified version of the ATT cappackage.pxp file. I had difficulty configuring WindowsMobileLive.cab and the HTC task manager to automatically install as part of this new file so I will post those cab files as well for convenience (for those who may want it).
If you have a customized cappackage.pxp, please post it in this thread and describe how it has been modified so everyone can decide which they may want to use.
Here are the changes I made to the cappackage.pxp file. Note, all of these .cab files should be possible to install directly simply by extracting from original ATT WM6 cappackage.pxp in case you happen to need one of them:
delete getgood.cab
delete getmail.cab
delete realplayer.cab
delete getmobitv.cab
delete cmradio.cab
delete attmallandmusic.cab
delete musicid.cab
delete jarguarrm.cab
delete gettelenav.cab
alter "Att_Settings.prov.xml" to remove messaging and Windows Mobile Live registry customizations
add install of new devstate.dll (exists in 3AUS cappackage.pxp and also in ROW 2.23 cappackage.pxp)
ABS
Click to expand...
Click to collapse
Thanks, any idea if we can add another carrier in the carrier_db file that isn't there?
john_99 said:
Thanks, any idea if we can add another carrier in the carrier_db file that isn't there?
Click to expand...
Click to collapse
I honestly do not know. Sorry. You might ask Olipro as he seems to be very knowledgeable.
abs99, what tool did you use to repackage your PXP file. I've tried several archive tools to .ZIP and rename, but no joy. I've looked, but can't find any info on PXP file creation. Surely, I'm missing something simple here.
TIA
I found that "winrar" can handle the files without a problem. I had also noticed that the date stamps were the same for all the files in the original package, so I also use a tool called "stamp it" to set all the dates on all the files in the new package to the same original date.
thanks. I found that 7-zip is working too.
Now, the next step, I'm trying to mod the capdata.xml file and for whatever reason the device will not recognize it after my mods.
Here's my version of an ATT config file:
Code:
<?xml version="1.0" encoding="utf-8" ?>
- <Varnish xmlns="http://www.ephox.com/product/editliveforxml/document/Untitled20062026011007629">
<Version />
<Notes />
<UpgradePath>always|</UpgradePath>
- <PolA>
- <Certificates>
<File>CingularCert.prov.xml</File>
</Certificates>
- <Certificates>
<File>Class3_PCA_G2_v2.xml</File>
</Certificates>
- <Certificates>
<File>entrust_gssl_ca.prov.xml</File>
</Certificates>
- <Certificates>
<File>RSA1024RootCA.prov.xml</File>
</Certificates>
- <Certificates>
<File>RSA2048RootCA.prov.xml</File>
</Certificates>
- <Certificates>
<File>VeriSign_C3_PCA_G3v2.prov.xml</File>
</Certificates>
- <Ringtone>
<File>AT&T Tone.wav</File>
</Ringtone>
- <ProvXML>
<File>ATT_Settings.prov.xml</File>
</ProvXML>
- <ProvXML>
<File>MSFPHeartbeat.prov.xml</File>
</ProvXML>
- <ProvXML>
<File>ResetRequired.prov.xml</File>
</ProvXML>
- <InstallApp>
<File>WindowsLive.CAB</File>
</InstallApp>
- <InstallApp>
<File>ATT_Theme.CAB</File>
</InstallApp>
- <InstallApp>
<File>ProxyManager.CAB</File>
</InstallApp>
- <InstallApp>
<File>ATT_Content.cab</File>
</InstallApp>
- <ExtractZip>
<From>DevState.zip</From>
<To>\Windows</To>
</ExtractZip>
</PolA>
- <Welcome>
<WaitImage>E_PolishImage.bmp</WaitImage>
</Welcome>
- <Sweatshop>
<AccountName>GEN</AccountName>
<VarnishName>ENG</VarnishName>
<BuildName>005</BuildName>
<User>[email protected]</User>
<Environment>Sweatshop QA Staging</Environment>
<CoreVersion>1.9.9</CoreVersion>
<Treo750Version>3.0.0</Treo750Version>
<DateStamp>Wed Aug 22 6:10:15 PDT 2007</DateStamp>
</Sweatshop>
</Varnish>
Any thoughts? This is just a basic mod and plan to get more detailed configs in there once I figure out what I'm doing wrong.
TIA
The issue with this file may be that editor you are using is adding "white space". I found that some editors caused this to occur. I ended up the file in notepad to avoid the problem as it was a real mess to deal with any other way. You should open the original unedited file and your new edited file in notepad and compare both. For whatever reason, the OS does not like to deal with a properly formatted .xml file!
Thanks mate, the white space and file size were the culprit. Was trying to cheat and use MS xmlnotepad - very easy to use, but it added the whitespace as it made it pretty to look at. I also was trying to cram too much into my archive; the extracted archives need to fit in the 8.4mb along with the archive itself.
Attached is a custom CapPackage.PXP with the following (based from ATT 2.25 ROW, CapPackage.PXP):
ATT Theme
Regional Settings: US, - 5 EST
ExtROM mount and rename
Custom ringtone
Custom Sounds Settings
Delete poutlook.lnk from startup
Set Hello to ATT
Disable CAB security policy
Removed all ATT applications (CV, real, win live, etc)
TODO: Incorporate RegHacks of additional settings customization and tweaks (lots of typing...), right now I install and merge the apps I want after initial setup completes.
Cheers
HOW TO
***always a good idea to backup existing files before attempting any modification***
1. mount your extended rom (search for the cabs and instructions on this site)
2. copy the CapPackage.PXP from ExtendedROM\Partition to your PC
3. extract the contents to a folder named CapPackage on your PC (any ZIP compliant archive tool will do)
4. remove/add the *signed* cab files your desire (unsigned cab files simply get passed over)
5. open capdata.xml in epcEDIT or notepad.
6. add/remove the configuration information as desired - this is where some trial and error comes in trying to determine what commands control what function.
7. ZIP (no other archive format seems to work) the CapPackage folder to CapPackage.PXP (or rename .zip to .pxp).
8. copy to ExtendedROM and hardreset.
TODO:
-Hope to be able to post a list of commands for the XML to enable configure of most if not all device "settings"
-Hope to figure out a way to get unsigned cabs to install (present workaround is a zip extract and registry commands if the app isn't too complex (e.g. lots and lots of typing required)
--Not sure yet if reg hack setting "HKLM\Security\Policies\Policies' valuename '0000101a' to dword:1" will resolve this during initial setup
Okay, after getting my questions about how this all works and saves the space on the phone, I took the plunge and upgraded from 2.23ROW to 2.25ATT. Went smooth as butter, and I have a "decrapified" phone with the official, supported ATT release (just in case I have any problems and need support).
Of course, being a hacker, now I'm totally intrigued by this cappackage customization, and want to play with it myself. So, Tim et. al., two questions:
Does the capdata.xml file have to match the contents of the archive? Or, if something's missing, it's just ignored? I'd like to be able to delete some more stuff and remake the PXP file without having to hassle with the XML file and run into the problems you have (workable, but I just don't want to waste time on whitespace issues if I don't have to).
Does the carrierDB file need to stay in the extended ROM for any reason after install and setup? I'd like to archive it on my PC, and delete it from the extrom so I can use that space for general storage.
microsoft word has a wonderful xml file editor. rather than try and keep everything straight in that jumbled up mess you get out of notepad or some other editor, word indents all the xml, and makes it look like it should. it was a snap to edit. I used Winrar and opened the PXP file. I never extracted the contents. Just the capdata file. I edited it, and then put the edited version back into winrar. using winrar I deleted the files I didn't want. saved the archive and moved it back to the device.
dwallersv said:
Does the capdata.xml file have to match the contents of the archive? Or, if something's missing, it's just ignored? I'd like to be able to delete some more stuff and remake the PXP file without having to hassle with the XML file and run into the problems you have (workable, but I just don't want to waste time on whitespace issues if I don't have to).
Does the carrierDB file need to stay in the extended ROM for any reason after install and setup? I'd like to archive it on my PC, and delete it from the extrom so I can use that space for general storage.
Click to expand...
Click to collapse
1. The XML will bypass anything it can't actually do.
2. I have tried it both ways and feel like I've had no issues, but I have seen some reports of strange behavior without it. I currently have it in my ExtROM since I hard reset my device often as I test apps and config settings. If you don't hard reset very often then once the device is hard reset you may delete and gain an additional 1.45mb.
The thing I intend to work on next is creating a provisioning XML to call an external XML (outside of the cappackage). I'm hoping this way I will be able to strip even more out of the cappackage (literally everything but the capdata.xml) and hav an on the fly configuration capability and call installations and configuration from the SD card. Haven't had much time to play with it though.
Can someone help point me in the right direction to get start loading the cappackage. I can't seem to find how to mount the extended ROM. I did a search for it and everything that came up didn't explain it (or at least I didn't understand it if it did).
Hmm, I can't seem to find the original thread either. Really just registry entries, but the cab's make it easier.
See attached...
Run each in order, then soft reset
Cheers
FYI: You can use my cappackage (see pg 1) as a starting/reference point for building the extROM mount into the initial config process after hard reset...
Try this. ...............
sodak said:
Can someone help point me in the right direction to get start loading the cappackage. I can't seem to find how to mount the extended ROM. I did a search for it and everything that came up didn't explain it (or at least I didn't understand it if it did).
Click to expand...
Click to collapse
Thanks to both of you for the quick response
I don't know whether it is because of this or because of something else. But I started modding this CapPackage file, and all of a sudden my treo just started acting weird. I had to hard reset it several times throughout the day. Then I upgraded to the 2.25 WM6. And that is where **** really hit the fan (I upgraded and put my own CapPackage version in it). And after that I've had nothing but trouble. Soft resets didn't work anymore, it just crashed on the boot screen. Hard resets work, but really slow, takes about 20min. So now I'm re-upgrading to 2.25 and just leaving that CapPackage file alone for now .
The tale away message: Don mess with this unless you know what you're doing, which isn't me
-Robert

Run SD Cab with autorun.exe

hello
i need to add a username into the registies for a number of devices i'm flashing. Unfortunatly the usernames all need to be different i.e. PDA001, PDA002 and so on...
I've created a number of different cab files each for a different device that will add the username in.
So is it possible to run the cab file off the storage card as part of the hard reset process. i've updated the SD card with the file Username.cab which is the name of all the cab file, then added "CAB: \Storage Card\Extended_ROM\Username.cab" in to config.txt which is in the Extended ROM. i tested it but it didn't work.
Has anyone got any ideas
Or may be have a shortcut to the cab file added into start up. Would that work?
I'd suggest that you instead edit an existing (or relatively insignificant) CAB file (that you'd probably have no use for anyway) with the registry entries/additions so that its guaranteed to be included when you do the Extended ROM customization.
Did you ensure that you copied all the files from an original extended ROM correctly (before making your modifications)?
The thing is I have around 250+ device which need flashing with the same image and as all the devices will require a different Username adding into the registies I 'll need to run an external cab file, a cab file which will be different for all the devices and it's best to run it from the SD card.
I tried to adding a cab file into the Extended ROM which will install a shortcut into the startup folder the shortcut is to the cab file on the storage card. But for some reason it didn't run.
I have a couple of SD cards with an image of my Extended rom on so if anything goes wrong i have the backups.
Whats wrong with having the 'end-user' maually execute the .CAB file?
Why don't you simply customise one PDA (the way you wan't with your preconfigured settings) (minus the user/device name), then do an entire backup using SPB BACKUP (onto a SD Card). You can then restore this image on all 250+ devices (sounds time-consuming,but it really isn't).
All the end user had to do, is to manually execute your .CAB file when they are issued the units.
This is your true answer (in my opinion):
http://www.spbsoftwarehouse.com/products/backup/?en
RE: Whats wrong with having the 'end-user' maually execute the .CAB file?
Basically the devices are used by Market research interviewers who work for us, most of whom are not familier with the devices and are not computer litterate. I'm responsible for a small support team and also the development of the devices. The software we use is already extremley simple and all they need to do is click a buttom "Connect" if the username is not already inserted they get a box "Logon Failed, please check the following details are correct." and a username and password box is displayed and they simply need to type in the id number from the sticker on the back of the pda (like PDA001).
We have just had a large project in feild and over the period we have around 200+ user. Around 50% of the call we took, at some point they had problems entering the username. As much as SPB backup would be of use, if they can't already do a simply thing like type in PDA123, asking them to do this seem like asking alot and would probabily cause more issues.
We already have all the other information in the registries for this application and the username is the only thing which isn't consistant through out.
Do you know if it would be possible to prompt them to run the cab from the sd card which enters the username into the registires on startup?
Nunwood PDA said:
Do you know if it would be possible to prompt them to run the cab from the sd card which enters the username into the registires on startup?
Click to expand...
Click to collapse
Sure it is possible. Did you already try placing a shortcut to the .CAB in "Windows\StartUp" ?. Likewise, you can easily create another script that deletes that shortcut (to ensure that its only used once).
Please keep us posted, on your developments.
Nokia 3650 said:
Sure it is possible. Did you already try placing a shortcut to the .CAB in "Windows\StartUp" ?.
Click to expand...
Click to collapse
Yeah, it didn't do anything. I had a cab file in the extended ROM which placed the shortcut in the dir. \Windows\startup\. For some reason nothing happened, but when I navigate to the .cab file it ran without any problems.
When you say create another scipt, how would I go about doing that? If i had an .exe it could act as a link to the cab on the SD card. i'm not familier with this kind of method. But I think that would solve the problem.
The location of the .cab is: \Storage Card\Help\UserName.cab
Thanks for the exact location. I'm just compiling something for you in visio Studio 2005, that will execute the .CAB file when run at automatically from startup (it'll do this only once).

HTCAPI.dll goes away after soft reset

Hello!
in current WWE rom file that is needed by many applications (HTCAPI.dll) goes away each time i do soft reset.
can somebody create a small executable that will copy this library from the root of the storage card to \windows folder? than it would be possible to put it to startup folder....
will this problem remain with custom roms?
thank you in advance !
Same here, need that file for Hologram, not essential, but it's funny..

How to reduce windows folder files

Hi,
I'm just testing my cooking skills on sparkienl's kitchen.
Problem is I've noticed that every package I put inside my ROM, even if I redirect it to the program files, puts it files on both program files and windows folder.
now, normally this wouldn't bother me much - but the folder has well over 5000 files (had about double that number before), since I presume it has an impact on performance I'de like to know if I can safely delete the files on the window folder (and how) or not,
thanks in advance and sorry if the question was asked before - I did lots of searching and couldn't find anything helpful
Euch said:
Hi,
I'm just testing my cooking skills on sparkienl's kitchen.
Problem is I've noticed that every package I put inside my ROM, even if I redirect it to the program files, puts it files on both program files and windows folder.
now, normally this wouldn't bother me much - but the folder has well over 5000 files (had about double that number before), since I presume it has an impact on performance I'de like to know if I can safely delete the files on the window folder (and how) or not,
thanks in advance and sorry if the question was asked before - I did lots of searching and couldn't find anything helpful
Click to expand...
Click to collapse
Why not ask this query within kitchen thread?
I wouldnt go about just deleting files from the windows directory. That said, i think the program extendir can be used to move files out of the windows directory whilst still leaving them functional. I think it must be cooked into ROM or something (i never looked into it) or if the project is still on.
Fallen Spartan - because it happend on both Sparkienl's and Juggler's kitchens I've tried, so I presumed its more of a common ROM cooking question then a kitchen specific one - your call on whether to keep the thread open,
Ask - thanks, looks like a great addition to te ROM, but as far as I've read its only for files added after the ROM have been flashed, meaning I will need to create a bare ROM, its not so far from what I want - but there are still those pesky thousends of files

Moving icons to different folders ?

I have ATT Tilt with TPC's stocklike rom, and whenever I go into file explorer and move files in Windows/Start Menu into a different folder, such as a Start Menu subfolder, my phone seems to not understand the change in the filepath, as shortcuts and icons stop working and eventually a hard reset occurs. So I assume in order to organise my icons, I will have to edit the filepaths in registry? Could somebody please point me to where and how to do this, or to a program which will facilitate the changes I desire to make? Im sorry if its a noob question, I have looked around the registry a bit and only managed to become confused and frustrated. Any help will be greatly appreciated.
please describe your intent a bit more precisely...
what i understand is that you simply want to organize the icons/links in your start menu into subfolders...is this a correct understanding?
if so, then you must first understand that files already present in the "\Windows\Start Menu" folder are actually "links", or shortcuts. you can freely move these files into subfolders rooted at "\Windows\Start Menu".
if you are moving the actual program files that these shortcuts point to, then that will cause all sorts of problems, such as what you describe as "shortcuts and icons stop working".
so the idea is to move existing shortcut files as you see fit. if one or more programs/applications don't appear in the start menu, first create a shortcut file to the said applications. leave the application files where they are and place the newly created shortcut in the "\Windows\Start Menu" folder or one of its subfolders to your liking.
i suggest "total commander" to perform advanced file and folder manipulation. it will also allow creating shortcut files as well as editing the paths stored in shortcut files (if i remember correctly).
finally, the device should NEVER hard reset on its own, even for pretty big screw ups with moving files around. most program files will be unmovable with the regular file explorer anyway. so, the operating system effectively protects and prevents major f-ups anyway.
if you are using one of TPC's WM6.5.x ROMs, you will read in the FAQs for nearly all WM6.5.x ROMs that the ONLY known and reported reason for the device to hard reset on its own when using one of these ROMs is if you did not flash a "stock ROM" first before flashing said ROM.
hope this helps...
Thanks a whole bunch!!
Moving my icons into subfolders was exactly what I was talking about. I hahd thought that that rom was the one 6.5 rom that you didnt have to flash stock first, but I was wrong. Flashed stock then flashed back to the rom & radio and it worked like a charm. Cant believe I missed such a simple step, but definitely a big thanks for your help and knowledge!!

Categories

Resources