Related
Okay, there a couple of CAB files I install no matter what ROM I use (Total Commander, Today Screen Speed Dial, MortRing [by .exe], Morphy's Call Filter etc), now that I'm getting to grips with the whole ROM building thing I have a question:
How can I add a program installed via a CAB into a ROM so that it is installed into ROM, I've searched on the forum and can't find much. I know it can be done as ROM's such a TuMa's, Logout's and Ivan's have apps in ROM which aren't there by default...
EDIT: In addition, I overwrite some of the default ROM stuff once I've installed (ETEN M600 Dialler in particular), so again, how can I get the 'bits' out the cab and overwrite the default contents of the ROM, this would make my life much easier...
If this has been posted previously then please point me in the right direction
First extract files, shortcuts and registry entries from the .cab using wince cab manager or similar http://www.ocpsoftware.com/, take note on what directory each file/shortcut is in. (often more reg entries will be stored as a file called 'platformxxx.reg' use these too)
Normal rom edit way: add the contents of the exported .reg files to default.rgu, making sure that you leave a blank line on the end, copy all the files to the \dump directory and edit initflashfiles.dat to copy them to the right directory on first boot. (remeber to remove the first two bytes - ff fe with a hex editor). then build your rom!
Bepe's rom edit way: create a folder '[your software name]' in the oem folder and get yourself a guid from here http://kruithof.xs4all.nl/uuid/uuidgen. create a blank file called '[yourguid].dsm and a blank text file called '[yourguid].rgu'. add the contents of the exported .reg files to '[yourguid].rgu' and make sure you save as unicode. then copy all the other files to the folder and create a blank unicode txt file called 'initflashfiles.txt' and use it like initflashfiles.dat in the first method except there is no need to hex edit out the first two bytes. then build your rom!
midget, you're a star, I thought it may be something simple... I'm off out with the family now for the day, but I'll work on this later, cheers!
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
I have tried using several registry apps to successfully export [HKEY_LOCAL_MACHINE\Software\HTC\HTCHome\Launcher] belonging to a previous Hutch 3 ROM.
I now want to re import these keys into my newly installed Duttys 6.1.
How do I do this?
Scuse the newb question (duck for cover) but on a PC you tap the *.reg and it will import into the registry. On my Kaiser running Duttys 6.1 I have PHM_Regedit but Import option is greyed out.
A search did not resolve it so any help would be appreciated.
logger said:
I have tried using several registry apps to successfully export [HKEY_LOCAL_MACHINE\Software\HTC\HTCHome\Launcher] belonging to a previous Hutch 3 ROM.
I now want to re import these keys into my newly installed Duttys 6.1.
How do I do this?
Scuse the newb question (duck for cover) but on a PC you tap the *.reg and it will import into the registry. On my Kaiser running Duttys 6.1 I have PHM_Regedit but Import option is greyed out.
A search did not resolve it so any help would be appreciated.
Click to expand...
Click to collapse
Install FdcSoft's Taskmanager (it has a built in Regedit), by DotFred. In there you can associate .reg files with it. Then just run them to import.
Great I'll grab it. Thanks Dave I really appreciate the help. I know you all get sick to death of our newb questions.
logger said:
Great I'll grab it. Thanks Dave I really appreciate the help. I know you all get sick to death of our newb questions.
Click to expand...
Click to collapse
Dont worry. I spent 10 minutes trying to use PHM before I gave up.
Dot Fred's TaskManager is a kick ass task manager as well as a reg editor (amongst other stuff).
P.S. Easiest way to associate is: Open TaskMgr, tools, options, Create RegEit Shortcut. This will ask do you want to associate.
Cool I can see how to do all that now thanx.
Only hiccup is I can only run it from my Storage card. I cannot work out how to copy it to my \Windows folder. I cannot work out how to delete the existing basic taskmgr.exe that installed with Dutty's. I guess this is because it is a system file. If I try and copy and replace I get error message saying not possible. Whats the trick here?
logger said:
Cool I can see how to do all that now thanx.
Only hiccup is I can only run it from my Storage card. I cannot work out how to copy it to my \Windows folder. I cannot work out how to delete the existing basic taskmgr.exe that installed with Dutty's. I guess this is because it is a system file. If I try and copy and replace I get error message saying not possible. Whats the trick here?
Click to expand...
Click to collapse
Don't know. I just leave the exe in My Docs, and run it from the shortcuts.
Okay. Will do same. thanks..
Resco Explorer will also do it.
To dotfred from your SD Card, do this:
Place the .exe in you \Storage Card\Programs folder. With your desktop PC, navigate to \Windows Mobile Device\My Device\Storage Card\Programs & right click on the exe file. Select create shortcut. Move the shortcut to \Windows\Start Menu\Programs using desktop pc.
Voilla! you are done, go check Programs & it's there.
this is the steps i usually take when entering in a reg file. I use resco explorer for all this. I double click. Then I make sure I close resco through the menu exit and not the X button. Then I continue to play around with my phone for a while opening up menus and stuff. Then I soft reset. Doing these steps, I for sure get my stuff to work. There might be some unnecessary steps I take, but I end up with what I want. Many people have trouble keeping their registry stuff to stick. The steps I take, I never worry about that.
GSLEON3 said:
Resco Explorer will also do it.
To dotfred from your SD Card, do this:
Place the .exe in you \Storage Card\Programs folder. With your desktop PC, navigate to \Windows Mobile Device\My Device\Storage Card\Programs & right click on the exe file. Select create shortcut. Move the shortcut to \Windows\Start Menu\Programs using desktop pc.
Voilla! you are done, go check Programs & it's there.
Click to expand...
Click to collapse
Thanks for the tip. Was not aware you could make shortcuts this way. Running from the card appeals because the .exe will still be there after reflashing a new ROM and I will only need to move/copy the shortcut. Being a newb I have been somewhat reluctant to run apps from the card but I am gathering that is is a quite an acceptable thing to do.
Is there a way to place registry keys inside a CAB so that they will get imported when the CAB is launched? Whilst the above DotFred association method works a treat for me with ".reg" files I would like to find a standalone method to import registry info. So that I can pass a single file to someone else and without any extra config they can import the contents into their registy.
definitely. There are a lot of cab creators where you can just enter in your reg key and will create your cab. Someone recommended me this program. I really like it.
http://www.aperitto.com/content/view/14/159/
thomassster said:
definitely. There are a lot of cab creators where you can just enter in your reg key and will create your cab. Someone recommended me this program. I really like it.
http://www.aperitto.com/content/view/14/159/
Click to expand...
Click to collapse
Thanks for the link thomasster. Does the job well. Probaly an overkill (and therefore overpriced for what I need), but I got it to work OK. Also from using it, I learnt that the process simply converts the registry keys to provxml. So now I am looking to manaully create the "_setup.xml" and then use iexpress.exe in Vista to create the CABs.
Is there a way to undo changes made by import .reg file?
I imported a reg file using DotFredd's Taskmanager. Now I want to undo it? Is it possible? How?
Thanks
How do you add/load Java games to the 8925 tilt which are (jar.) files? Also enabling the to launch through the Java Powered program installed on the device?
I've done it before but not lately and I don't have any .jar files on my phone so I can't test right this minute but try one of the following until it works
(1) Go into explorer and selected the .jar you want to install
(2) Start the Java program/utility and either
A - click on the .jar you want to install (if a list of .jar files is populated)
B - Click Menu > Install > Brower or Local Files
Someone else can chime in if you haven't figured it out yet
Axesion said:
How do you add/load Java games to the 8925 tilt which are (jar.) files? Also enabling the to launch through the Java Powered program installed on the device?
Click to expand...
Click to collapse
I just now ran through it to make sure I remembered what I used to know.
1. Make your self a folder (I call it Temp or the SD card).
2. Move the .jar and .jad (if you have a .jad) to that Temp folder.
3. Find the files with file exploere and tap the .jad or .jar if you have no .jad.
The game will "self install in to the Java folder in the \Windows\ root.
4. Some ROMs have no Java folder (.lnk) on the \Programs\ menu. A Java.lnk will be in the \Windows\ root though. Using Total Commander, copy the Java.lnk to the Windows\Start Menu\Programs\ folder.
Note: You don't need the .jad but it makes for more flawless installs. It contains the "road map" for the Java installer.
Hope that helps.
i tried it today and worked perfectly. dragged the .jar files and put it in my documents then i installed it and opened the java program and it was there.
but now im having a problem lol. i was going to remove one of my installed games, but then i accidentally uninstalled ALL my games, even the ones that came with the phone, i.e brain challenge, ms. pacman, solitare, etc.
i remember reading from somewhere that i can find all of those default games inside one .cab file. but i dont know where to find it in my phone.. or if someone has all the default games, do you mind sharing it with me.. thanks in advance!! need this asap lol
I'm cooking my own ROM and it is going well. But I'm stuck at setting default settings for applications.
I have tried to decompile the apk's, edit the config and other stuff, compile it again, but the apk doesn't want to install. I've tried to sign them and not sign them, it doesn't seem to fix it.
I have tried apk manager 4.9 both in Windows and Linux, and some other tools too. I have also tried to just replace the config.xml or similar file with WinRAR when editing, the apk still installs, but the settings are not there.
I've also tried to add /data/data/app.name/* folders to the update.zip and have it copy to the internal sd just like /data/app, also did not work.
Can someone please explain to me how I can change the default config of an application? Such as AWDLauncher.
Thank you.
Anyone?