[Windows Phone 7 Development and Hacking] ofir54321:
Hi All,

As many of you, i've also had an "accident" with DFRouter app while trying to enable Tethering, which led to the unfortunat WP7 issue that the device won't get recognized by the PC as it is on diagnose mode and not sync mode.

This issue caused us not to update our devices and nor unlock them for side-loading apps.

But now that the DFT team succeed with replacing the OSPL with their own customized HSPL - we can finally flash rom's onto our device (while the device is on bootloaded mode, it uses a different driver which the PC recognize - so we still can flash roms)

Link to DFT HSPL release:

http://xdaforums.com/showthread.php?t=1195647

Until now, Ansar (Thanks again!) was the first one who released a custom ROM for WP7 devices, so we should all enjoy it soon.

http://xdaforums.com/showthread.php?t=1200662

The problem is, that even if we flash Ansar new ROM's, we still couldn't side-load unofficial app to the device, and we won't be able to install DFRouter to fix our problem.

WP7 OS cannot execute XAP files directly of course, so sending the XAP file to your email won't do any good.

I don't know if Ansar can install the app on to a device and then "export" a ROM with pre-installed DFRouter app - i guess we will know soon when he will publish he's second custom ROM that should be with Mango.

When wiping the device or flashing a new rom on a device (which wipes the device), first time it loads the OS installs some OEM apps automatically - I have TMOUS stock ROM, so it installes Flixter, TMobile Telenav, MobiTV, FamilyPlace, SlackerRadio and HTC Hub apps.

Using xda2_haseeb post's (http://xdaforums.com/showthread.php?t=952979), I downloaded the tools he provided and a TMOUS ROM and start to look into it.

While looking into the ROM, i've found the folder where these app's stored (XAP files), and the installation script that tells the OS which app's to install automatically while loading for the first time.

(I've attached an image of the folder's content)

Now, the XML that tell's the OS what to install looks like that:

<wap-provisioningdoc>
<characteristic type="AppInstall">

<characteristic type="{1A0EE8C2-48B1-DF11-8A2F-00237DE2DB9E}">
<parm name="InstallInfo" value="/windows/HTCHub.xap;/windows/HTCHub_License.xml;{AC07CBCF-48B1-DF11-8A2F-00237DE2DB9E};{6D7E8610-DBE1-4610-BC63-9DBB8DE68C4A}"/>
</characteristic>

<characteristic type="{4D30394E-CBC5-DF11-9EAE-00237DE2DB9E}">
<parm name="InstallInfo" value="\windows\TMobileNetFlix.xap;\windows\TMobileNetFlix_License.xml;{DD235761-CBC5-DF11-9EAE-00237DE2DB9E};{F49E63A0-2C6C-47CD-B280-74C126932325}"/>
</characteristic>

<characteristic type="{7D868DCD-D0C5-DF11-9EAE-00237DE2DB9E}">
<parm name="InstallInfo" value="\windows\TMobileMobiTV.xap;\windows\TMobileMobiTV_License.xml;{1D364FDA-D0C5-DF11-9EAE-00237DE2DB9E};{D542BE56-9F63-4EF3-9503-BA6BDB248F0A}"/>
</characteristic>

<characteristic type="{94F11DCD-65C6-DF11-9EAE-00237DE2DB9E}">
<parm name="InstallInfo" value="\windows\TMobileTelenav.xap;\windows\TMobileTelenav_License.xml;{95F11DCD-65C6-DF11-9EAE-00237DE2DB9E};{5BA09B54-948E-4B29-8C30-3178D5E18842}"/>
</characteristic>

<characteristic type="{D43B0937-A4C6-DF11-9EAE-00237DE2DB9E}">
<parm name="InstallInfo" value="\windows\TMobileFamilyPlace.xap;\windows\TMobileFamilyPlace_License.xml;{D53B0937-A4C6-DF11-9EAE-00237DE2DB9E};{0C1A95D5-B352-4C12-AD9D-84B214DCAFF0}"/>
</characteristic>

<characteristic type="{9D411123-CCC5-DF11-9EAE-00237DE2DB9E}">
<parm name="InstallInfo" value="\windows\30319AKU7003_SlackerRadio.xap;\windows\30319AKU7003_SlackerRadio_License.xml;{EDF31035-CCC5-DF11-9EAE-00237DE2DB9E};{049FC08D-C2FD-4E6A-A539-174BE77472BC}"/>
</characteristic>
</characteristic>
</wap-provisioningdoc>

If we can add the DFRouter XAP file to that folder, and edit that XML to point to it, I think we're good. the automatic installation will probably try to install it.

The thing is, I don't know exactly what are these GUID's - i.e {EDF31035-CCC5-DF11-9EAE-00237DE2DB9E}.

I'm guessing it is a Hash code for the XAP file, and the second one is for the license file - but I guess that the OS will check that GUID's prior to installing that XAP file.

This is where i'm asking you for help :)

I can't seem to extract the other files from the ROM, so I didn't looked into them to find maybe that GUID inside something.

Do any of you have an idea where did these GUID's came from? or where can I find/generate the right ones for them?

I don't currently have the DFRouter app, but maybe it's something in the manifest file or somewhere else.

Thanks guys, let's hope to get a solution soon - I'm still on 7004 version and I want Mango so bad! :)

Ofir.