Something interesting I found in the Omnia7 firmware cab (USB as mass storage) - Windows Phone 7 Development and Hacking

Hello XDA!
I've found something interesting in the samsung Omnia 7 firmware update CAB file. I opened QC_8x50_OS_TEST.cab.pkg inside the cab and looked at the files, there were these:
SwitchUsbToMassStorage.lnk: 23#usbmgr.exe /M
SwitchUsbToQcComposite.lnk: 23#usbmgr.exe /C
SwitchUsbToSerialClass.lnk: 23#usbmgr.exe /S
SwitchUsbToZune: 23#usbmgr.exe /Z
I find those interesting, now if someone finds a way to run that usbmgr.exe file...
You can grab the cab here: http://www.megaupload.com/?d=RL4LFTAV

tried this back on 7004 days, didn't worked. the usb mode indeed changed, but still no mass storage functionality.

Maybe it s a Silverlight UIX binary with native code (FULL UNLOCK) if sb take a look on it , so if it s an exe for wp7 you can try to execute it but i dont know it too but thois will help (i hope ask cotulla how he started his native demo) http://forum.xda-developers.com/showthread.php?t=1255829

Related

I want to made a custom WM2003SE ROM

Hello, everyone, I hope no piss anyone about this old OS, but I have no choice on my iPAQ Rx3115 'cause HP never releases an OS update for this pda, since it has decent features and mine is in perfect shape and it's a shame that a lot of programs cant be installed in this OS.
So, that's why i want to edit the ROM of this PDA, made a custom one with new programs and delete the old ones and the ones that are obsolete (like the MPG player, since tcmp and coreplayer cant play everything).
This forum is big, i was searching for hour about resources and "how to do that", I use EM2003 and when i try to open the rom file it tells me that enter a password to unlock the ROM.
So pleasse guys, help me out, I want to guive a full new life to this PDA and keep using it, and of course I will release the ROM for everyone to use it as I made stable ROMs.
Thanks and regards.
c'mon guys, help me a little, a need something to start with, a tool, program, anything?
thanks
I know this is old but I'd just like to second this, if anyone has any info on how to upgrade this device that would be great as I just sort of "stumbled upon" one of these and would like to put it to good use.
I've done a lot of searching and can't find any roms for rx3115 IPAC. I have one of these too and would love to fiddle with it again!! I even found on forum that said that it would not support WM 5 or 6 so I don't now if there is much hope. But if there was a program or instructions on how to make our own ROM I would sure like to try!!! I believe it has WM 2003 CE on it now...
Me too!!! I too have one of those...
rx3115
I have an rx3115 also. I am following this thread.
This will be quite difficult and complicated, first of all, what do you want to do with stock ROM? If some apps can't be installed on WM2003SE, then adding them to ROM won't change anything. However, I'm willing to help, send me a PM with stock ROM and changes you want, I'll try to develop somethin' good .
Thanks tomcug!!!
I'll also PM you the links from this post.
I too have an rx3115 and have been searching all over for ways to upgrade it: cooked ROMs, Linux, Unix... SOMEthing. LOL
So far you're the only cook who's wanted to take a swing at this. There are no easy answers for rx3115 that I can find anywhere on the net.
Here's the last official rx3115 update of WM2003 (1.01.11) complete with installer
http://www.mediafire.com/file/i6k0935chhkgzlh/iPAQ rx3115 ROM 1_01_11.exe
I'd hate to lose the Nevo (IrDA universal remote control) from it, but would sacrifice that if I could upgrade the OS...
Better yet - maybe you could work with this WM 6.1 Classic ROM that was cooked for the rx1950. It supports the ARMv4T instruction set used by the rx3115. Here is just the .nbf file
http://www.mediafire.com/file/iu9p815w3yjpy6h/CEOS.nbf
At 27.82mb it would just fit on rx3115. Maybe a slimmed down version??? I would leave it to you to decide what to remove. LOL who am I to tell a cook how to season his offering???
And the WM 6.1 install cab for Mobile Office
http://www.mediafire.com/file/nmz3sbyuxan7c4e/office_wpc_WM6.CAB
Of course - any help would be greatly appreciated by many rx3115 owners.
And here's my thread of what I've been trying to accomplish with my rx3115.
http://forum.xda-developers.com/showthread.php?t=981868
Thanks Again,
RumoredNow
All right, then I'll try to do something good . I don't know if this will work and that's why I need to ask you one more thing. Is it possible to flash this phone when it's not booting? I mean windows hangs.
It's a straight Pocket PC with no Phone capability. Full specs are here:
http://www.pdadb.net/index.php?m=specs&id=122&view=1&c=hewlett-packard_ipaq_rx3115
Short answer: yes, the ROM is user flashable up to 28mb of 32mb total.
Long Answer...
The HP update I sent you will flash the ROM under Win XP with ActiveSync installed. The RUU (ROM Update Utility) needs RAPI.dll from ActiveSync in order to run. It won't function under Win 7 for me - it generates a comm error.
Theoretically it is possible to flash any (size appropriate) ROM to the device with this Universal iPAQ Bootloader:
http://sourceforge.net/projects/ubl/files/ubl/Binaries/
My system flagged the UBL as having a Worm in the Vista Drivers though. I can't tell if it is a false positive (I'm not qualified for that) so I didn't use it under Win 7.
Instead, I stripped out the infected(?) bits and tried it on an XP box. Here's that file:
http://www.mediafire.com/file/7anraar1tkc3lz1/BootLoader.rar
It fails to put rx3115 into bootloader mode even though it connects via USB.
There is a manual way to put rx3115 into Bootloader mode: MultiMedia (button 1) + iTask (button 4) + Power + Reset. But every time I put it in Bootloader mode manually, that seems to kill the rx3115's USB port. It becomes invisible to PC... I don't know if there is another step to manually enable USB mode under Bootloader. I haven't been able to find the right button(s) for that so far...
And manually entering Bootloader mode hasn't allowed me to flash from SD card either. I always get a "Wrong Image" error, even with .nbf file from the last official update!!!
I know it's not the device - I can reflash the last update over USB on a Win XP box if I use the official update package.
LOL - an executable which uses HP's RUU would be preferable for technologically deficient users such as myself.
Feel free to PM me or post back here if you have any more questions.
Thanks again.
Well, no progress at the moment and probably there's won't be any progress at all. I don't know how to extract CEOS.nbf, all tools I've tried can't do it.
By extract, do you mean view and edit???
uedit32 (hex editor???) will open it and allow changes to be saved. It even keeps the original version as a backup...
http://www.mediafire.com/file/6r8ffn1fq3bh9mu/uedit32.exe
Making ROM with hex editor ? That would take hundreds of years or even more . What I need is a tool or set of tools that can extract XIP and IMGFS from CEOS.nbf, that's the way you make ROM's. And tools I've tried doesn't work for this phone, however they work for HTC and i-mate phones I own.
EDIT:
I've also tried rx1950 kitchen, but it's a fail too. There are tools there but only for making CEOS.nbf from XIP and IMGFS images, nothing what I need .
Looking for the 802.11g mod for rx3115
I saw an experimental mod somewhere to enable the rx3115 to use 802.11g. If anyone knows where it is, please share. I lost the link. I was looking up the embedded chips at the time I saw it, so I think it was a forum.
All right, making a little update here. After long time of hard work I need to say that it's impossible to make WM 6.5.3 ROM for this device, drives and OEM stuff from WM 2003 SE simply won't work with any newer OS. Sorry for that but there's nothing we can do .

Zune HD ROM Dump

Here we go!
3 Relevant partitions on the Zune HD:
ZBoot
NK
EXT
(there's actually a 4th partition, but it's a recovery partition for NK to facilitate fail-safe updating)
Enjoy
(a note: some files appear to be damaged, its my first time dumping a CE 7/Zune HD ROM )
(another note: thanks to nd4spd for getting the rom update to me, i don't have a zune hd )
wow I'll take a look.
Anything usable?
These executables are designed for CE 7 and more than likely will not work at all on CE 5 (although things coded for .NET might)
Really, you tell me, though, I haven't actually tried
Awesome! Subscribed...
Wait...so you're telling me it might be possible to create custom roms on the zune hd?!?! i need them to come out with a 128 gb model asap then...
WOW....they were trying to dump a zune rom for years.... so this means the protection on the zune HD is not nearly as strong as the regular zune...this is good news indeed...Mine is on backorder still =x
Another quick Q, did you dump that yourself or find it somewhere?
been trying to find this for a few weeks
looking forward to see what can be done!
are the keyboard files in a format that we can use on windows mobile phones?
votum said:
Another quick Q, did you dump that yourself or find it somewhere?
Click to expand...
Click to collapse
Actually, all I did was reset my Zune HD in recovery mode and plugged it in. When the Zune Software detected it, it downloaded the ROM from MS. When I was defragging my computer a few days earlier, I happened to find the folder where it saved all of the Firmware Updates. So I just looked in that folder and found the FirmwareUpdate.cab that had the .bin files in it.
after messing around with it, looks like nothing can really be recmoded to make dll files. it may need another way to rec mod than in the vk.
So does this mean that the Zune HD will be unlocked shortly?!
Blackwheel said:
So does this mean that the Zune HD will be unlocked shortly?!
Click to expand...
Click to collapse
and does this mean that we will have Zune GUI on winmo devices ?
benko286 said:
and does this mean that we will have Zune GUI on winmo devices ?
Click to expand...
Click to collapse
That could take some time, but once we are able to read the files, i will try to work on a keyboard
setix said:
That could take some time, but once we are able to read the files, i will try to work on a keyboard
Click to expand...
Click to collapse
How about unlocking the Zune HD? Or is that a completely different animal?
Somebody please sticky this thread immediately. This can only lead to great things!
Blackwheel said:
How about unlocking the Zune HD? Or is that a completely different animal?
Somebody please sticky this thread immediately. This can only lead to great things!
Click to expand...
Click to collapse
Err.. forgive my ignorance.. but is Zune HD locked?
In what way?
I think what he means by unlocking is to unlock for ROM modification and development.
ND4SPD said:
When I was defragging my computer a few days earlier, I happened to find the folder where it saved all of the Firmware Updates. So I just looked in that folder and found the FirmwareUpdate.cab that had the .bin files in it.
Click to expand...
Click to collapse
The ROM is saved in a .cab file to %HOMEPATH%\AppData\Local\Microsoft\Zune\Firmware Updates
7-Zip or another unzipping software can extract it out into the 4 .bin files, ext.bin, nk.bin, recovery.bin, and zboot.bin.
I have not yet succeeded to breaking it down into DLLs, it seems like there are multiple DLLs compiled into one .bin file.
Interestingly enough, some of the plaintext I saw in the recovery file was associated with camera/photography code (do a ctrl-f for "autofocus" or "lens" in the recovery.bin file in wordpad). However, I'm guessing it is the remnants of WinCE code, not for the Zune HD (or a successor?). It still begs the question of why it would be included in the recovery code though...
Hope that someone can use this for something...
hairchrm said:
The ROM is saved in a .cab file to %HOMEPATH%\AppData\Local\Microsoft\Zune\Firmware Updates
7-Zip or another unzipping software can extract it out into the 4 .bin files, ext.bin, nk.bin, recovery.bin, and zboot.bin.
I have not yet succeeded to breaking it down into DLLs, it seems like there are multiple DLLs compiled into one .bin file.
Interestingly enough, some of the plaintext I saw in the recovery file was associated with camera/photography code (do a ctrl-f for "autofocus" or "lens" in the recovery.bin file in wordpad). However, I'm guessing it is the remnants of WinCE code, not for the Zune HD (or a successor?). It still begs the question of why it would be included in the recovery code though...
Hope that someone can use this for something...
Click to expand...
Click to collapse
To break it down, you need to use cvrtbin.exe to convert it to the .nb0 format. Once you have that, as Da_G pointed out to me, you can use Xipport.exe's dump xip function to dump whichever converted file. Unfortunately, xipport has an error on the last file, so I'm going to try to fix that this evening.
You can also view the files in Da_G's first post
ND4SPD said:
To break it down, you need to use cvrtbin.exe to convert it to the .nb0 format. Once you have that, as Da_G pointed out to me, you can use Xipport.exe's dump xip function to dump whichever converted file. Unfortunately, xipport has an error on the last file, so I'm going to try to fix that this evening.
You can also view the files in Da_G's first post
Click to expand...
Click to collapse
Ahh... haha, I thought he linked to the raw .bin files and I figured that it would be easier to grab them from your own computer than download them. Whoooops!
I am curious, has anyone disected the Zune HD Hardware? I wonder what extra hardware got left behind that is not currently activated (and possilby not licensed). The core chipset can handle all of the common peripherals that you might find in a WM7 class phone chasis.
At the very least you should be able to see the sort of antenna and amps in there.
the Imageupdate system clearly works, so one approach to updating it (unlocking and or removing security) is to use the imageupdate system (on device or from your desktop, or possibly OTA). Although you would need to know a good bit about the NK and zloader for wm7. WM7 is a more streamlined, efficifient design, but - unfortunatey - there is a lot more in the kernel which makes updating individual bits more difficult without a full link.
It is a little bit more like the X360 design in this sense.
I believe that imageupdate is only known the to the end users as the engine for Windows Phone Update or -previously - FOTA (firmware over the air)
As Da_g mentioned, this is the first commercial device (to my knowledge) to use WCE7/WM7 (in general, WM is just a big OAK on WCE)
What certs are in the full CAB?

[Q] Does anyone have a good method for turning an install shield file into a .cab?

Does anyone have a good reliable means of turning a 32-bit Windows setup.exe based installer system into a .cab that is usable with WinMo? I do know I'm gonna have to either write in either .XML and include the subfiles in the cab or find a converter. I have a work program that would valuable on the TP2 (diagnostic code translator), but it was written only for PC machines.
I'm trying to cut the cord as much as possible since I don't have immediate access to my work laptop.

[HOW TO]Omnia 7 mango jailbreak(work on 7712)

Original Post(Chinese):http://www.wpxap.com/thread-82265-1-1.html
Ddeveloped by GLB in C-reader developing team(a ebook reader app made in china)
EDIT: If you updated to 7712 with 7661 unlocked, you can enter diagnosis->gprs settings then choose the unlock.xml to unlock 7712.
Not working properly on focus right now. The Diagnosis app in Focus is different from the Omnia7's . So the methods below are not recommended for Focus users.
See the "Problems and Solutions" part for detail.
Please post your Diagnosis version and ROM if you succeed.
Simple translation(I'm chinese, so the translation is not very good,sorry for that)
REQUIRES
IF you have updated to mango, roll back to 7392 or earlier. make sure it's unlocked.
Then you needs these files(1-4 are contained in the Omnia7 mango JB.zip)
1)Wp7UsbStorageEnabler
2)WP7RootTools 0.5 alpha.xap
3)language.xml (this is for chinese languages,can be omitted)
4)unlock.xml
5) Diagnosis app(ver 1xxx)
Note: If your Diagnosis version is 0929 or earlier, you should uninstall it and dial ##634# under 7932. By doing this you can update your Diagnosis app.
Before updating to mango
1)copy language.xml and unlock.xml to rootfolder/picture/ via Wp7UsbStorageEnabler
2)deploy WP7RootTools 0.5 alpha.xap and copy the xml file(s) to provxml/ in the root folder(create one if provxml folder doesn't exist)
note:
the file name will change after being copied to phone. Look for it under /My Documents/Zune/Content, including sub-folders.(size is the clue)
You can look through /My Documents/Zune/Content/0400 first.
Don't forget to rename the xml files to original one.
3)exit WP7RootTools and enter diagnosis(##634#),open GPRS settings (*#9908#). click "Select GPRS" and you will see the xml file(s). dont choose any of them. Just click Save.
note: Don't update to mango if you can't find unlock.xml in GPRS settings! You can't jailbreak mango without unlock.xml.
If you want chinese,you should choose language.xml then save. the Unlock.xml is used after updating to mango.
After Updating to Mango
after updating to mango,enter diagnosis->gprs settings,and choose the unlock.xml then save.
No rebooting needed.
All done.Enjoy
Problems and solutions
--->Focus<---
It's confirmed that Diagnosis(ver 0929 or earlier) can't find the xml file in the GPRS settings.
The Diagnosis version is different according to which rom you are using.
Rogers -> 0929
Att -> 1122
If your Diagnosis version is 0929 or earlier, uninstall and dial ##634# to reinstall it again (in 7392). It will update the Diagnosis app.
If it still not work:
Reflash to AT&T 7004 > Open Diagnose > Unlock > 7008 > 7390 > Open Diagnose (still 929) > Uninstall Diagnose > Open ##634# again, and it's already updated.(Thanks to minori_aoi,http://forum.xda-developers.com/showpost.php?p=15368673&postcount=55)
Note:
If your phone is updated to 7392 with the OEM registry information (ATT-US) deleted, the Diagnosis won't be updated.
If the unlock.xml is still missing in the GPRS settings, here is a solution:
Copy&paste unlock.xml in another way:
1)In 7392, download and deploy New_SMS_Unlock.xap.
2)Browse with WP7 Root Tools to Applications\Install
3)Search for a folder which starts with D19A80F2-1717.....Then you will find the unlock.xml
Then do as above.
I don't know what's the difference between the unlock.xml in New_SMS_Unlock.xap and the normal one. Both size and content are the same. But it just worked on hx4700 Killer's focus.
See http://forum.xda-developers.com/showpost.php?p=15329491&postcount=5 for detail
Thanks to contable and hx4700 Killer.
--->Wp7UsbStorageEnabler<---
Zune will start automatically when the phone is connected. Then you will see nothing in WP7 phone's folder in the Explorer.
Here's the solution:
When the phone s connected,open phone's folder in Explorer as fast as you can.
This make Wp7UsbStorageEnabler connect with your phone before Zune.
You can also close Zune when it appears.
About C-Reader
C-Reader is a fascinating ebook reading app and the developers are working hard to make it optimized for mango.A beta release will soon be published including some "mango features" like extremely fast resuming and background downloading.I hope you guys could have try~~
App link:http://wp7applist.com/en-US/app/16650/creader
That's great!! I have jailbreaked!
Thank to GLB in C-reader.
very very nice tweak !!!!
we can now execute all registry tweak we want in mango, just edit xml file !!!
What make this hack can't be used on Focus ??? As far as the Unlock.xml goes, it's only contain Dev Unlock, Prevent Re-lock, and Max Sideloaded Application limit.
I also can access *#9908# from diag tools. So what's missing from Focus compared to Omnia 7 ?
It seems that some focus succeeded. It depends on the ROM and diagnose app you are using.
diagnoise v1122 works
rogers seems not working.
Have a try and good luck!
Mine is AT&T Focus with Diagnose v 0.929 and running Rogers ROM.
Out of topic :
Regarding Diagnose Tools, can we change the Diagnose tools with another version ???
Edit : Tried this, but I can't see the xml file from *#9908#.
There're 3 options :
- Gumi Test Bed
- Suwon2G Test Bed
- Suwon3G Test Bed
Damn ... I thought it would also worked on my Focus
i updated my post . see the last part "Problems and solutions" . But the xap file is still downloading...
EDIT: the Diagnosis.xap in attachment did't work, deleted.
I have a problem, i don't see any file under /My Documents/Zune/Content after i loaded unlock.xml in Pictures folder via USBenabler. I have only seven folders in Content folder, no files. Any clue?
Here an easier way to copy the unlock.xml to the OMNIA 7:
1. if you are still on build 7392 deploy the attached xap to your device
2. Browse with WP7 Root Tools to Applications\Install
3. Search for a folder which starts with D19A80F2-1717.....
=> there you will find the unlock.xml
4. copy the unlock.xml as described with WP7 Root Tools to the before created provxml\ folder
So you don´t need to copy the unlock.xml via USBStorageEnabler.
Cheers
contable
svarog84 said:
I have a problem, i don't see any file under /My Documents/Zune/Content after i loaded unlock.xml in Pictures folder via USBenabler. I have only seven folders in Content folder, no files. Any clue?
Click to expand...
Click to collapse
You should look through every folder and sub-folder to find those 2 xml files.
The diagnose (v.1027) crashed as soon as I open GPRS screen.
What's SMS Unlock used for ?
Edit : It's just for copying the unlock.xml, lol
@contable
i don't have folder that starts with D19A80F2
I am trying now to find it with first method. If file is renamed it will keep .xml extension, right?
Tnx for replying so quickly everyone
After 1 hour's hard work, finally get my O7 mangoed and jailbreaked!
svarog84 said:
@contable
i don't have folder that starts with D19A80F2
I am trying now to find it with first method. If file is renamed it will keep .xml extension, right?
Tnx for replying so quickly everyone
Click to expand...
Click to collapse
That is the folder I found it on my OMNIA 7. The file isn´t renamed after deploying the xap. If you don´t have such a folder just search in Applications\Install folder for unlock.xml.
svarog84 said:
@contable
i don't have folder that starts with D19A80F2
I am trying now to find it with first method. If file is renamed it will keep .xml extension, right?
Tnx for replying so quickly everyone
Click to expand...
Click to collapse
No, the file name is totally changed.
mine is 7a.3z and 7c.3z
they are in the same folder and the folder has no other files in it.
Tested, it work on omnia7. I has more than 20 xap deployed on phone before mango and I can deploy other xap after upgrade to mango.
thank you !
yhd4711499 said:
No, the file name is totally changed.
mine is 7a.3z and 7c.3z
they are in the same folder and the folder has no other files in it.
Click to expand...
Click to collapse
I have seen them but didn't pay attention, i was trying to find .xml extension.
EDIT
Found it, i have unlock option under gprs settings. Updating to Mango now, hope it will work. Thanks a lot
Thanks for this. Worked on my WP7 Omnia 7
htc support?
will there be support for htc hd7 coming? or can i use these instructions with my hd7?
Gateau Noël said:
will there be support for htc hd7 coming? or can i use these instructions with my hd7?
Click to expand...
Click to collapse
Please read the title of this thread. For HD7 you can find another thread...

[GUIDE]How To make your HTC Mango Rom suits Old System Apps.

HTC new drivers Mango Rom will not allow old system apps to get root access, like TouchXplorer does not work on 4.xx above roms.So these days i found a way to make my custom rom based on htc 5.10 rom work perfect with old system apps.
Step 1
get an old htc offical rom, like 1.xx, get a htc offical 4.0x rom.dump them.copy HTCFileUtility.dll and HTCRegUtility.dll from 1.xx rom dump, and HTCProvisionDrv.dll from 4.0x rom dump.(they are both in OEM\HTC_AppDrivers)
Step 2
use the three files(modules) copied above to replace your custom rom, if u are using 4.0x rom as your base skip step 3.
Step 3
replace the ApprovedlistDB.db(in OEM\CSConn_DB) by my uploaded one.
Step 4
use OSBuilder to relloc your modules, or relloc them by yourself(just like me, cause OSBuilder is hard for me to understand how to use it)
Step 5
package your custom rom, and flash it, then you will get a new rom that TouchXplorer and RegistryEditor(this works much faster than before) can work like charm
Step 6
thx DFT bring us HSPL & Julien Schapman bring us magic system tools!
remarkable,thx 4 sharing
Would be awesome if there was a way to restore the old versions in-place without re-flashing the whole phone. CAB maybe? I don't think you can overwrite ROM modules any other way. I've avoided installing the latest HTC updates because I've written a couple apps that rely on the File and Reg DLLs, but that also means I don't have things like the Connected Media app working.
GoodDayToDie said:
Would be awesome if there was a way to restore the old versions in-place without re-flashing the whole phone. CAB maybe? I don't think you can overwrite ROM modules any other way. I've avoided installing the latest HTC updates because I've written a couple apps that rely on the File and Reg DLLs, but that also means I don't have things like the Connected Media app working.
Click to expand...
Click to collapse
if you can put files in \windows folder, and change reg key under HKLM\Drivers\BuiltIn\, you can make it works without flash a rom.
cause we could get drivers from htc orginal update cabs then rename them to put into \windows folder and change reg key to make these drivers load, no need to replace.
Well, if you care about this at all, you're already interop-unlocked.
If you're interop-unlocked, then you can set registry values and move files (using provxml).
So... yes, this sounds pretty exciting. Having the official HTC updates but still being able to use TouchXplorer would be awesome.
So, would it just be a matter of copying the old files under new names to the Windows folder and changing the "Dll" value of "HKLM\Drivers\BuiltIn\HTCFileUtility" and such? Or would something need to be done with the DB as well? I'm not sure if that can be changed on a running device.
Tell me what needs to be done and I'll create a tool to do it.
GoodDayToDie said:
Well, if you care about this at all, you're already interop-unlocked.
If you're interop-unlocked, then you can set registry values and move files (using provxml).
So... yes, this sounds pretty exciting. Having the official HTC updates but still being able to use TouchXplorer would be awesome.
So, would it just be a matter of copying the old files under new names to the Windows folder and changing the "Dll" value of "HKLM\Drivers\BuiltIn\HTCFileUtility" and such? Or would something need to be done with the DB as well? I'm not sure if that can be changed on a running device.
Tell me what needs to be done and I'll create a tool to do it.
Click to expand...
Click to collapse
you are on the way, m8.
get drivers from htc update cab, then u'll get files not modules
Code:
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\HTCFileUtility]
"Dll"="HTCFileUtility_new.dll"
if you make new HTCFileUtility.dll work, you will have enough power to replace files.
then make your new reg drivers work.
Code:
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\HTCRegUtility]
"Dll"="HTCRegUtility_new.dll"
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\HTCProvisionDrv]
"Dll"="HTCProvisionDrv_new.dll"
thanks for sharing, waiting for this method for along time.
Thanks ted. I'll update my backup (so I can roll back to working version if I need to) and go hunt down those files.
I don't think I'll need to overwrite HTCProvisionDrv, the current version seems to work just fine. In fact, if it doesn't, there won't be any way to do the overwrite. It's just the registry and filesystem drivers that were broken.
Now I'm wondering what the other HTC drivers do. There's a specific one for Connection Setup and for HTC YouTube, plus drivers for "HTCBgService" (a way to run tasks in the background, I assume) and "HTCVersionUtility" (probably not useful, but maybe?). It would be interesting to examine the APIs of those.
For that matter, it would be interesting to examine the API of things like the provision driver. It appears to have full permissions, but the DMXMLCOM.DLL library used to interface with it has a fairly limited API (no way to get the result of a provxml query, for example). Talking directly to the driver may work better.
Anyhow, off to find the correct CAB!
Sounds pretty awesome! New drivers in Mango with support for old apps - cool! Really hoping for a tool to do this, i've never cooked my own ROM, I solely rely on the experts for this
Hi Ted (or anybody), do you knwo where I can get the pre-Mango HTC cabs? All the cabs I've been able to find are for the Mango HTC updates, and have the wrong versions of the files.
EDIT: Found some that might work. They aren't labeled but the datestamp is from January.
Pretty sure xboxmod has a thread with all the official cabs linked somewhere on xda.
Sent from my HD7 T9292 using XDA Windows Phone 7 App
Thanks. I'll see if the files I found work. They're old enough, and are supposedly from an official update, but it's hard to be sure. Their file sizes are different from the ones in the latest update, but not by much.
The real trick, of course, is seeing whether I can install my own drivers at all or not. I know I can place files and change registry values, we just have to see if the phone will use them.
ted973 said:
HTC new drivers Mango Rom will not allow old system apps to get root access, like TouchXplorer does not work on 4.xx above roms.So these days i found a way to make my custom rom based on htc 5.10 rom work perfect with old system apps.
...
Click to expand...
Click to collapse
Any chance you would release your custom ROM? Can you make one for Trophy, only one using 5.10 version are Ansar's, your's sounds nicer!
Well, I didn't find Xboxmod's cabs, so I'm using the ones linked in Heathcliff74's thread. Unfortunately all the reliable ones are pretty recent, so I don't think they'll work. Last resort I'll try pulling them off my phone's filesystem, but that gets weird with modules.
I've successfully broken TouchXplorer and Connection Setup, and then fixed them again. I think this constitutes progress. Next step: try some older drivers, and see if I can install them without breaking anything. If so, then I'll try updating my phone with the official HTC update, and see if it's still working. If so, I'll clean up the XAP a little and publish.
EDIT: Additional discovery: Connection Setup relies on HTCFileUtility.dll. Installing the broken FileUtility driver causes Connection Setup to complain that there's no database installed on the phone, and then quit. Now I *really* wonder what HTCConnectionSetUp.dll is used for. Also, I'm not gonna touch the Provision driver unless I have to; this testing takes long enough when every step requires a reboot. If I mess up the provision driver I'll probably need to restore the phone backup.
EDIT2: The new HTCConnectionSetUp.dll driver is several times the size of the old one, but it doesn't seem to change how Connection Setup works when I use it. In particular, it still processes CustClear.provxml.
EDIT3: Still not working, even with very old drivers (January). I have a few possible ideas as to why, but it looks like I may need to run this with drivers from my "working" phone instead of from a CAB.
OK, I haven't been able to get this working with any of the DLLs I've been able to pull from CABs, and the DLL modules on the filesystem can't be moved, renamed, or read (ERROR_ACCESS_DENIED when I try to read one using ComFileRW.dll).
I either need the right CAB, the special sauce to make it work with the wrong CAB, or a way to extract those modules as files. I suspect it's at least partially a "special sauce" situation - the errors I get when I try using different drivers are not the same as the errors I get with the official update that breaks third-party apps trying to use those drivers.
I would *REALLY* appreciate some assistance with this. It has the potential to provide an easier interop-unlock (if the official update doesn't reset the driver DLL paths) and even if that doesn't work, it would be a big step forward for HTC homebrew. However, I know nothing about ROM assembly - not even how to extract a file from a shipped ROM. I'm trying to learn, but if somebody wants to point me in the right direction that would be a big help.
EDIT: I managed to extract the ROM module (took some doing; HTCRIE will crash at the drop of a hat if you aren't careful). I can't rebuild the file though - recmod doesn't seem to like it.
if you can use Provxml i have some way to replace module in \Windows dir
1.
<wap-provisioningdoc>
<characteristic type="Registry">
<characteristic type="HKLM\System\Explorer\Shell Folders">
<parm name="My Ringtones" value="\Windows" datatype="string" />
</characteristic>
</characteristic>
</wap-provisioningdoc>
Click to expand...
Click to collapse
copy this to notepad and save as File.Provxml file
2.Install DiagProvXMLv0.91
3.Use Chevron Ringtone Installer to copy .Provxml to your phone
4.Run DiagProvXML and go to " File Operations" tab , select Copy (to isoStore)
in Source Path use
\My Documents\My Ringtones\
Click to expand...
Click to collapse
and Source File use
File.Provxml
Click to expand...
Click to collapse
,,
Press (+) to save ,,
and now go to provxml tab and Press Publish (disk icon) ,,
go to iso store tab and Hold press at File and select Excute ,,
restart your phone and now you can use Chevron Ringtone installer to Add File you need to \Windows\ (sure as module , and defaultcert.dat for cab sender)
Best Regard
PPJD
@peeks20: Thanks (sort of) but your method is both overly complicated and doesn't solve the actual problem. If you're already interop-unlocked (and you have to be, to use DiagProvXML), then it's trivial to write a small app that just uses DMXMLCOM.dll to process whatever provxml commands you want. That includes copying files to the Windows directory.
The problem is that I'm not sure what file to copy, and I'm not sure it'll work even if I have the right file (I've tried multiple official files from various update CABs, and none of them have worked). There's probably either a version-matching function that's getting in the way, or a database somewhere that needs to register the new drivers (beyind just changing the path in the Dll value in the registry). Heck, maybe it's both. The point is, it doesn't work.
Now, if there's something about deploying the files using the Chevron ringtone installer instead of using pvroxml that will make all the difference, that would be cool. I really doubt it, though. The files copy just fine, and can be accessed and opened. They jut don't actually work. I get the same errors as if I point the Dll path in the registry to completely bogus paths ("Dll"="ThisFileDoesNotExist.dll").
GoodDayToDie said:
@peeks20: Thanks (sort of) but your method is both overly complicated and doesn't solve the actual problem. If you're already interop-unlocked (and you have to be, to use DiagProvXML), then it's trivial to write a small app that just uses DMXMLCOM.dll to process whatever provxml commands you want. That includes copying files to the Windows directory.
The problem is that I'm not sure what file to copy, and I'm not sure it'll work even if I have the right file (I've tried multiple official files from various update CABs, and none of them have worked). There's probably either a version-matching function that's getting in the way, or a database somewhere that needs to register the new drivers (beyind just changing the path in the Dll value in the registry). Heck, maybe it's both. The point is, it doesn't work.
Now, if there's something about deploying the files using the Chevron ringtone installer instead of using pvroxml that will make all the difference, that would be cool. I really doubt it, though. The files copy just fine, and can be accessed and opened. They jut don't actually work. I get the same errors as if I point the Dll path in the registry to completely bogus paths ("Dll"="ThisFileDoesNotExist.dll").
Click to expand...
Click to collapse
i uploaded HTC Appdrivers from Mozart 1.32 & 4.06 update cabs, maybe you can continue your test
Thanks, I'll give them a try. However, I've got to ask - what is Approvedlist.db, and if you have to modify it for a custom ROM, would I also need to modify it for this app? I can't shake the feeling that there's more to installing a driver than just changing a registry value.
GoodDayToDie said:
Thanks, I'll give them a try. However, I've got to ask - what is Approvedlist.db, and if you have to modify it for a custom ROM, would I also need to modify it for this app? I can't shake the feeling that there's more to installing a driver than just changing a registry value.
Click to expand...
Click to collapse
hard for me to explain this in english, this file decides which Registry keys allow apps to change.its format changed in 5.xx rom, so RegistryEditor v1.2.0.0 didn't work on these roms, we need to use old version HTCRegUtility & HTCProvisionDrv and old format ApprovedlistDB.db to make htc apps and 3rd Registry tools works perfect, that's why you need to replace ApprovedlistDB.db.

Categories

Resources