[Guide] Debugging with VS2010 on a custom Mango ROM... (Workaround on HTC devices) - Windows Phone 7 Development and Hacking

As a smartphone fan I always wanted to be able to do whatever I wanted to do with my device, so a custom rom is one of the best choices for me. As a developer, I always wanted to be able to debug my applications on the device. With Mango, debugging and full interop unlock on a custom rom was not possible... till now!
The concept is quite simple: I create a fully locked (yes, it’s not a typo) ROM that fits my needs, I register it (and let the registration process do the magic trick and enable debugging for me) and after that I interop unlock and prevent the device from relocking.
The solution: In many cases we used the “engine” of the Connection Setup to deploy our provxml’s on the device, so why not now??? The Connection Setup (which is already deployed to our devices) uses the package “CSConn_DB” as a source (all those dbz files) to initialize MMS, APN, etc settings. The dbz’s are just password protected zip files with the extension changed.
So... I created two of those files (one for full unlock and one for lock), removed the Relock “time bomb” (969eb155-55ff-4884-9ecb-241c8a4b6e09.exe) I added them to my ROM, I deployed it to my phone and voila! One fully unlocked ROM with debugging capability!
The steps I followed:
1. Cooked and deployed a locked custom Schubert ROM (In this point, I need to thank Cotulla, DFT and everybody else who made custom WP7 roms possible).
2. I registered (as usual) the phone.
3. I opened connection setup and selected “Manual Selection”.
4. In the countries list I selected “Phone Customization” (What a nice country name don’t you think?)
5. I selected “Dev and Interop Unlock” from the available providers and tapped ok (the other one is for locking it back... in case I change my mind ).
That’s all! Now I have a full unlocked ROM and I can debug in the same time!
I have attached all the files I changed for my Schubert, but I think that for the other models the procedure remains the same.
So... Happy debugging (for me and anyone interested)!
EDIT: Password for dbz's on Schubert is 030D681B-1DFC-4bd0-A72A-A9B3CCCDA653

Good workaround, my friend, congrats!

how to get the passwd of the dbz?

ted973 said:
how to get the passwd of the dbz?
Click to expand...
Click to collapse
I just updated the post with the password...

kounadisk said:
As a smartphone fan I always wanted to be able to do whatever I wanted to do with my device, so a custom rom is one of the best choices for me. As a developer, I always wanted to be able to debug my applications on the device. With Mango, debugging and full interop unlock on a custom rom was not possible... till now!
The concept is quite simple: I create a fully locked (yes, it’s not a typo) ROM that fits my needs, I register it (and let the registration process do the magic trick and enable debugging for me) and after that I interop unlock and prevent the device from relocking.
The solution: In many cases we used the “engine” of the Connection Setup to deploy our provxml’s on the device, so why not now??? The Connection Setup (which is already deployed to our devices) uses the package “CSConn_DB” as a source (all those dbz files) to initialize MMS, APN, etc settings. The dbz’s are just password protected zip files with the extension changed.
Click to expand...
Click to collapse
Interesting idea But how do you want to debug? and what do you want to debug? C# code with source code can be debugged with VS2010, Native C++ and COM DLL can't be debugged, afaik?

rudelm said:
Interesting idea But how do you want to debug? and what do you want to debug? C# code with source code can be debugged with VS2010, Native C++ and COM DLL can't be debugged, afaik?
Click to expand...
Click to collapse
I mostly debug .net apps. Haven't tried unmanaged with this solution, but I'll give it a try!
Sent from my HD7 T9292 using Board Express

All those .DBZ files are only in \Windows\, right? Is there any way to point Connection Setup at a DBZ (or similar) stored elsewhere on the phone? This could potentially be used for interop-unlock on retail ROMs too. We can write to almost anywhere on the filesystem even with an interop-locked phone... except for the \Windows\ folder.

well, ... I don't understand what can I do with these files.
can u please write more 'n00b'-ish tutorial ?
kthx

if you dont understand odds are you dont need it
Sent from my GT-S5830 using XDA App

yeah.. gfy

Related

WP7 Hacking for Beginners - Chevron, Theming, Ringtones, Registry, MMS/Data

Thought I would write a thread showing how to simply complete an unlock with Chevron WP7 and some common homebrew apps/tweaks for all platforms. The information is scattered and varied, but I will edit this post to be as useful as possible for beginners as a one stop source. Thanks to the following threads for info:
http://forum.xda-developers.com/showthread.php?t=857127
http://forum.xda-developers.com/showthread.php?t=907971
http://forum.xda-developers.com/showthread.php?t=924497
Unlocking with Chevron WP7
The first step to "sideloading" applications to your phone (applications not approved by Microsoft) is to developer unlock your device.
Downloads needed:
Windows Phone 7 Developer Tools (annoyingly large, but necessary)
Chevron WP7 Application, Chevron Security Certificate, Chevron Registry Entry
TCPView for Windows (don't neglect this, it saves a lot of time and is a useful utility!)
Steps for unlocking:
Install Windows Phone 7 Developer tools. This will require a reboot at the end.
Email the "ChevronWP7.cer" file to your Windows Phone 7 device.
Open the email, tap on the attachment to download it. The icon will turn into a shield, tap again to get a new dialog. Press "Install" then OK.
Put your WP7 Phone into airplane mode (Settings>Airplane mode>Slide the toggle to ON)
Double click the ChevronWP7.reg file on your computer. A prompt will open up asking if you want to write this to your registry. Press Yes to continue, then OK at the end.
Open TCPView. (tcpview.exe inside of the downloaded archive) Click on the heading marked "Local Port" until the arrow next to it is pointing up.
Look on the Local Port column for any entries labeled "HTTPS". These programs MUST be closed for Chevron to work properly. Common culprits are Skype, and XAMPP. Use Task Manager (CTRL+ALT+Delete) to ensure they are closed if you run into issues.
Connect your phone to your PC via USB cable. Open the Zune software if it is not already open, and wait for it to finish syncing.
Open your Zune software and go to the Phone page, and make SURE you don't see anything that denotes that you are in a "Guest Sync" relationship with the device. It needs to be the primary computer the phone is synced with.
Unlock your phone and leave it at the home screen. Make sure the phone does not go to sleep after this.
Open ChevronWP7.exe. It should be running as administrator. Check both boxes, and press Unlock.
Cross your fingers, and you should be up and running on a developer unlocked device! (The Unlock button will change to Relock in Chevron if this is successful)
If you receive the error "Phone is locked with a PIN", it means your phone was locked when the fix was being applied. Make sure to unlock your phone (so you can see the live tiles) BEFORE pressing the unlock button.
If the program crashes, navigate to C:\Windows\system32\Drivers\etc and right click the file named hosts and press properties. Uncheck read only and press OK, then try again.
Homebrew Applications
All homebrew applications are installed as follows:
Go to Start>Programs>Windows Phone Developer Tools> and run Application Deployment
Ensure the target is "Windows Phone 7 Device"
Browse to the .XAP that you are loading.
Connect your phone, wait for Zune sync to finish. Ensure it is not guest.
Unlock phone and keep it awake. Press "Deploy" and the application should load (not extremely fast, and will appear in your app list without a reboot when done)
If the above doesn't work, then try resetting your phone and retrying. Also, restart your computer if the problem persists.
Registry Editor
DO NOT MESS WITH THE REGISTRY UNLESS YOU KNOW WHAT YOU ARE DOING!!!
Registry Editor for all devices (also has a download for TouchXplorer - a file manager for HTC phones only): http://forum.touchxperience.com/viewtopic.php?f=20&t=593 thanks to TouchXperience user schaps for this download.
Great thread on what registry tweaks are currently known: http://forum.xda-developers.com/showthread.php?t=907971
Ringtone Installer
Instructions and XAP downloads at the following link: http://www.chevronwp7.com/post/2054291102/chevronwp7-custom-ringtone-manager
Thanks to the Chevron WP7 team for this app.
Theme Color Changer
Instructions and XAP downloads at the following link:
http://www.daveamenta.com/2011-01/change-accent-colors-on-windows-phone-7-samsung-devices/
Thanks to Dave Amenta for this great app!
Prevent Phone from Relocking
The phone is unlocked, but will relock every time it syncs to Zune unless one of these hacks are done.
Samsung Devices (also removes sideload limit, fixes MMS/data on unlocked phones!):http://forum.xda-developers.com/attachment.php?attachmentid=498084&d=1295825731 from this great thread by lyriquidperfection
All other devices:
In an installed registry editor, navigate to the following key and change these values.
Code:
[HKEY_LOCAL_MACHINE\Software\Microsoft\DeviceReg]
"PortalUrlProd"=""
"PortalUrlInt"=""
Let me know if anything should be added or if you need any help!
I just wanted to thank you again for making this. The only thing that I think would be useful would be to add links to extremely useful Registry hacks, like the power management ones for the Focus.
I try everthing but still can't unlock it again....
please make sure it is connected using usb
please start zune application
Try to reset your phone.
paullu said:
I try everthing but still can't unlock it again....
please make sure it is connected using usb
please start zune application
Click to expand...
Click to collapse
Did you already turn off your firewall during the procedure? Was a problem of mine and of a friend.
Sebo1985 said:
Did you already turn off your firewall during the procedure? Was a problem of mine and of a friend.
Click to expand...
Click to collapse
firewall off.still got the error msg
paullu said:
I try everthing but still can't unlock it again....
please make sure it is connected using usb
please start zune application
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=918710
or
http://forum.xda-developers.com/showpost.php?p=10463609&postcount=1
Sebo1985 said:
Did you already turn off your firewall during the procedure? Was a problem of mine and of a friend.
Click to expand...
Click to collapse
yes I did turn off firewall alreday.still no luck.
I unlock once and when i connect the pc again it lock again
How about MMS and Data for other non-samsung phones?
paullu said:
yes I did turn off firewall alreday.still no luck.
I unlock once and when i connect the pc again it lock again
Click to expand...
Click to collapse
did you see my post?
duhhh said:
did you see my post?
Click to expand...
Click to collapse
yes,thanks I am trying now
works for me,hope to works for you 2
HTC and LG offer utilities in their section of the marketplace for MMS/data, so just grab one of those! Samsung's utility is faulty by design to keep people from unlocking, thus the hack.
What does this mean? Is ig that samsung phones have trouble unlocking because I bought my wife a focus and I had the same error message. But I haven't tried the way posted here. So I will be trying this way and replying. Thanks!
pls help me with this: I have HTC Surround and can not sync with zune, it doesn´t start when connect the phone and if start manually it doesn´t connect and sync neither
thank you for this one. it works exactly it was described on the first page. samsung omnia 7 portugal bought phone. but using it in Turkey.
Win Phone 7 MMS settings XML
So I dont know if this helps, or if anyone a little more knowledgable than I can attack this with me but I have the XML and registry settings for MMS from my LG quantum. I have a focus and LG Quantum. My LG has the XML viewer and reg editor built right in, which I friggen love.
So I took pix of the whole xml file that should be enough info to change the profile to the right settings, with the reg keys.
At first glance here it looks like just changing a couple string values... of the key at HKCU\Software\Microsoft\ShortMsg\MMS in the ADDR string value to your MMS server would be a start. I will look further into it after work tonight. If anyone beats me to it... so be it. Just thought I would toss this out there just in case it helps.
wm.andrew.wilson said:
Thought I would write a thread showing how to simply complete an unlock with Chevron WP7 and some common homebrew apps/tweaks for all platforms. The information is scattered and varied, but I will edit this post to be as useful as possible for beginners as a one stop source. Thanks to the following threads for info:
http://forum.xda-developers.com/showthread.php?t=857127
http://forum.xda-developers.com/showthread.php?t=907971
http://forum.xda-developers.com/showthread.php?t=924497
Unlocking with Chevron WP7
The first step to "sideloading" applications to your phone (applications not approved by Microsoft) is to developer unlock your device.
Downloads needed:
Windows Phone 7 Developer Tools (annoyingly large, but necessary)
Chevron WP7 Application, Chevron Security Certificate, Chevron Registry Entry
TCPView for Windows (don't neglect this, it saves a lot of time and is a useful utility!)
Steps for unlocking:
Install Windows Phone 7 Developer tools. This will require a reboot at the end.
Email the "ChevronWP7.cer" file to your Windows Phone 7 device.
Open the email, tap on the attachment to download it. The icon will turn into a shield, tap again to get a new dialog. Press "Install" then OK.
Put your WP7 Phone into airplane mode (Settings>Airplane mode>Slide the toggle to ON)
Double click the ChevronWP7.reg file on your computer. A prompt will open up asking if you want to write this to your registry. Press Yes to continue, then OK at the end.
Open TCPView. (tcpview.exe inside of the downloaded archive) Click on the heading marked "Local Port" until the arrow next to it is pointing up.
Look on the Local Port column for any entries labeled "HTTPS". These programs MUST be closed for Chevron to work properly. Common culprits are Skype, and XAMPP. Use Task Manager (CTRL+ALT+Delete) to ensure they are closed if you run into issues.
Connect your phone to your PC via USB cable. Open the Zune software if it is not already open, and wait for it to finish syncing.
Open your Zune software and go to the Phone page, and make SURE you don't see anything that denotes that you are in a "Guest Sync" relationship with the device. It needs to be the primary computer the phone is synced with.
Unlock your phone and leave it at the home screen. Make sure the phone does not go to sleep after this.
Open ChevronWP7.exe. It should be running as administrator. Check both boxes, and press Unlock.
Cross your fingers, and you should be up and running on a developer unlocked device! (The Unlock button will change to Relock in Chevron if this is successful)
Homebrew Applications
All homebrew applications are installed as follows:
Go to Start>Programs>Windows Phone Developer Tools> and run Application Deployment
Ensure the target is "Windows Phone 7 Device"
Browse to the .XAP that you are loading.
Connect your phone, wait for Zune sync to finish. Ensure it is not guest.
Unlock phone and keep it awake. Press "Deploy" and the application should load (not extremely fast, and will appear in your app list without a reboot when done)
If the above doesn't work, then try resetting your phone and retrying. Also, restart your computer if the problem persists.
Registry Editor
DO NOT MESS WITH THE REGISTRY UNLESS YOU KNOW WHAT YOU ARE DOING!!!
Registry Editor for all devices (also has a download for TouchXplorer - a file manager for HTC phones only): http://forum.touchxperience.com/viewtopic.php?f=20&t=593 thanks to TouchXperience user schaps for this download.
Great thread on what registry tweaks are currently known: http://forum.xda-developers.com/showthread.php?t=907971
Ringtone Installer
Instructions and XAP downloads at the following link: http://www.chevronwp7.com/post/2054291102/chevronwp7-custom-ringtone-manager
Thanks to the Chevron WP7 team for this app.
Theme Color Changer
Instructions and XAP downloads at the following link:
http://www.daveamenta.com/2011-01/change-accent-colors-on-windows-phone-7-samsung-devices/
Thanks to Dave Amenta for this great app!
Prevent Phone from Relocking
The phone is unlocked, but will relock every time it syncs to Zune unless one of these hacks are done.
Samsung Devices (also removes sideload limit, fixes MMS/data on unlocked phones!):http://forum.xda-developers.com/attachment.php?attachmentid=498084&d=1295825731 from this great thread by lyriquidperfection
All other devices:
In an installed registry editor, navigate to the following key and change these values.
Code:
[HKEY_LOCAL_MACHINE\Software\Microsoft\DeviceReg]
"PortalUrlProd"=""
"PortalUrlInt"=""
Let me know if anything should be added or if you need any help!
Click to expand...
Click to collapse
Hi every memeber's and Thx for wm.andrew.wilson ; )
-I reply for your message because i still do every steps but nothing happened !!!!!
Because i relocked my WP7 .
After along nights unlocked was success ))
wm.andrew.wilson=>
- I think you miss this before doing evry thinks you must disable Lan card or Ethenet connection ...
- Then follow wm.andrew.wilson steps
- Don't worry your WP7 will not unlocked why ???
- For unlocked it you must close chevron wp7 notification
- Then enable internet connection (wlan or ethernet...)
- Reclick on chevronWP7.....and miracle
Your WP7 is UNLOCKED ENJOY .
THks for :>>>>>>>>>>> wm.andrew.wilson
Hi, I'm new here.
So I followed each step thoroughly, and when I execute 'ChevronWP7' and check off each box and click 'unlock', the program says it has stopped working.
What could be the issue?
Also:
I have the phone on the main menu
I do have all necessary programs running
Samsung re-lock prevention hack doesn't work for me
After deploying the xap it seems to take, but, my Focus is always relocked after syncing. Not a huge deal to unlock before deploying, but, thought it was worth a mention...
Edit: Nevermind. Didn't realize they're was an app on the phone to run as well... Should have read the original thread first. Sorry...

[XAP][Source] DeployProvXMLv2.1 - Fixes self-chaining, adds diagnostics

Hi hackers,
Version 2.1 of DeployProvXML is here, and should be more robust than the previous version:
1: The CustClear.provxml file is now copied both using the filesystem DLL (like v1) and using XML provisioning (hopefully works aroudn the HTC update blocking filesystem access.
2: The CustClear.provxml file is now self-chaining. Really, this time - so long as you run the program *once*, you can even change the included CustClear.provxml, re-deploy, and run Connection Setup; your new version will then be copied to \Windows. (Re-run CS to actually process your new version). No more need to re-run DeployProvXML after each use of Connection Setup!
3. The program now contains more diagnostics. It sets a registry value at launch (using ComRegRW.DLL), changes that registry value (using provxml) when deploying the file, and changes it again when the deployed file is processed by Connection Setup (as part of the CustClear.provxml). It also checks that the value is as expected avter deploying.
REQUEST:
Anybody who has an interop-unlocked HTC phone with the latest official HTC update (meaning you can't use TouchXplorer anymore), please run this app, then run Connection Setup, then use a registry editor to check the key HKCU\Software\DeployProvXML. It should have a value, LastOperation. Please include the data in the value (or the fact that it doesn't exist) with your reports. Thank you!
Description:
Another handy little utility for people with HTC phones, this app simply copies a CustClear.provxml file from its install directory to \Windows, then exits. The idea is to make sure that you're never without at least a basic file that can be used by Connection Setup to unlock your phone. New in v2, every time you run Connection Setup, the file will automatically restore itself to the Windows directory. This ensures you'll never accidentally get caught with a locked phone after an upgrade or something!
The included Provxml has three parts. However, you can customize it however you like by opening the XAP file and editing the embedded provxml. The parts are:
1: Applies the registry settings to unlock the phone, including Interop-Unlock.
2: Applies a test value in the registry, at HKCU\Software\DeployProvXML. This value is harmless but can be used to test if the app is working.
3: Chain-copies itself from DeployProvXML's install folder into Windows again, replacing the copy that Connection Setup consumes.
Note that this program does not actaully apply the provxml, merely copies it to where Connection Setup expects to find it. It should close immediately after starting; this is not a bug. If you see a dialog box instead, something went wrong and you should report it below!
This program is only going to work on HTC phones, since it uses the HTC DLLs for provxml, file access, and registry. It is a 7.0 app but is compatible with Mango if you have Interop Unlock already.
XAP is in DeployProvxml\bin\debug. Source included for those interested.
Do you think a deployer for OMNIA 7 is possible ?
Maybe with a .dll of WP7 Root Tools ?
So users who didn´t prepare their device for our OnDevice provxml app under NoDo could also enable this feature...
contable said:
Do you think a deployer for OMNIA 7 is possible ?
Maybe with a .dll of WP7 Root Tools ?
So users who didn´t prepare their device for our OnDevice provxml app under NoDo could also enable this feature...
Click to expand...
Click to collapse
This has been solved I can finally test the app myself now. I changed the path to copy the provxml from the iso storage of the app instead of the provxml folder.
Interop.Services
Just read this http://translate.google.com/transla...oducing-windows-phone-7-5-native-programming/
Any joy?
Looks cool, but I'll need to investigate further. It has definitley been reproted that Homebrew apps without ID_CAP_INTEROPSERVICES don't work even in Mango. It sounds like this guy is maybe using a marketplace signed DLL, though? Not sure - the translation isn't great. He's working from an app that I've never explored, and that appears to be specific to the Japanese Mango phone.
how do we use it. will it permanently unlock when we update to official Mango?
Ttblondey said:
how do we use it. will it permanently unlock when we update to official Mango?
Click to expand...
Click to collapse
Install app in NoDo.
Run in once.
Upgrade to Mango.
Run the Connection Setup app (from Marketplace).
Hit "OK" in Connection Setup.
Your phone is now dev-unlocked and will not automatically relock. Additionally, you can now install Mango homebrew.
I suggest you then run DeployProXml again, since installing an update, even something like a HTC firmware update, may re-lock the phone. So long as you've run DeployProvXml since the last time you ran Connection Setup, though, you can unlock again.
If this helps, please hit Thanks!
piaqt said:
Just read this http://translate.google.com/transla...oducing-windows-phone-7-5-native-programming/
Any joy?
Click to expand...
Click to collapse
he does pretty much the same from what I read. You just use oem dll's and have some native functions to work with. f/e htc has file operations + regoperations + provxml, samsung has regoperations + provxml (trough which you can do regops). This manufacturer dll probably contains fileops as well, which is nice since there might also be a chance that there will be a working provxml method and with the fileops you can copy the provxml files to the desired location. In theory ofcourse.
Marvin_S said:
he does pretty much the same from what I read. You just use oem dll's and have some native functions to work with. f/e htc has file operations + regoperations + provxml, samsung has regoperations + provxml (trough which you can do regops). This manufacturer dll probably contains fileops as well, which is nice since there might also be a chance that there will be a working provxml method and with the fileops you can copy the provxml files to the desired location. In theory ofcourse.
Click to expand...
Click to collapse
There are two differences that are worth noting, though.
A) This is a phone that came with Mango. There was never any chance to unlock it for Mango homebrew. It blocks apps with ID_CAP_INTEROPSERVICES - something we had to work around with registry edits.
B) Related to A, he can call native code without having ID_CAP_INTEROPSERVICES. This isn't supposed to be possible at all. Makes me wonder if he's actually calling anything in the DLL or if he's just loading the COM object but not using it and calling that success.
GoodDayToDie said:
There are two differences that are worth noting, though.
A) This is a phone that came with Mango. There was never any chance to unlock it for Mango homebrew. It blocks apps with ID_CAP_INTEROPSERVICES - something we had to work around with registry edits.
B) Related to A, he can call native code without having ID_CAP_INTEROPSERVICES. This isn't supposed to be possible at all. Makes me wonder if he's actually calling anything in the DLL or if he's just loading the COM object but not using it and calling that success.
Click to expand...
Click to collapse
Ahh yeah your right. Yeah I realy wonder what the trick behind it is and if he manages to install it.
Something else I have not tried yet, but what happens if you deploy it without the id_cap and than run it. It will not work obviously, but what happens if you redeploy with the tag in? Will it still get rejected? Because the phone rejects the app I think.
Hey, the ZIP contains a folder, which, if I package into a XAP, fails on deployment. What's the best way to get this packaged into a usable XAP?
trying to figure out how to install this app.
@thesecondsfade:
Bottom line of the first post:
"XAP is in DeployProvxml\bin\debug. Source included for those interested."
I distribute most of my apps this way, unless the source is really big and the XAP alone is a significantly smaller download for some reason.
@Ttblondey:
Is your phone dev-unlocked?
Is your phone either pre-Mango, or interop-unlocked?
Do you have a XAP deployment program and the Zune software?
GoodDayToDie said:
@thesecondsfade:
Bottom line of the first post:
"XAP is in DeployProvxml\bin\debug. Source included for those interested."
I distribute most of my apps this way, unless the source is really big and the XAP alone is a significantly smaller download for some reason.
@Ttblondey:
Is your phone dev-unlocked?
Is your phone either pre-Mango, or interop-unlocked?
Do you have a XAP deployment program and the Zune software?
Click to expand...
Click to collapse
My TouchXplorer does not work anymore after updating to the official Mango, though my phone is still unlocked. This XAP will definitely helps if new firmware/updates come along to deploy Provxml to /windows.
I've installed it but how can I verify if this is being installed/copied to /windows?
GoingInside said:
My TouchXplorer does not work anymore after updating to the official Mango, though my phone is still unlocked. This XAP will definitely helps if new firmware/updates come along to deploy Provxml to /windows.
I've installed it but how can I verify if this is being installed/copied to /windows?
Click to expand...
Click to collapse
This app uses the same DLL as TouchXplorer, which means it doesn't work either (I wrote a number of apps using that DLL, including a backup tool, and none of them can see any files anymore). I'm not sure exactly what was changed, but yeah, they broke it. My hope is that Heathcliff74's WP7 Root Tools will restore file browsing on HTC soon.
As soon as I finish restoring my phone, I'll try writing a version of the app that uses ProvXML to copy the file, instead of ComFileRW.dll (which no longer works if you get the final HTC update). Using ProvXML is limited in some ways - you can't browse the filesystem, for example - but it works great for this type of operation.
i'm on force unlock from Ansar's thread with Pedbe way final mango.Been trying to use advancedconfig 1.3,1.4 battery meter it don't work anymore.Good thing I can sideload(that's important)
GoodDayToDie said:
This app uses the same DLL as TouchXplorer, which means it doesn't work either (I wrote a number of apps using that DLL, including a backup tool, and none of them can see any files anymore). I'm not sure exactly what was changed, but yeah, they broke it. My hope is that Heathcliff74's WP7 Root Tools will restore file browsing on HTC soon.
As soon as I finish restoring my phone, I'll try writing a version of the app that uses ProvXML to copy the file, instead of ComFileRW.dll (which no longer works if you get the final HTC update). Using ProvXML is limited in some ways - you can't browse the filesystem, for example - but it works great for this type of operation.
Click to expand...
Click to collapse
Ok, guess I'll have to wait for the experts (Heathcliff74 and you etc) to solve this HTC drive update issue. Thank you!
GoingInside said:
Ok, guess I'll have to wait for the experts (Heathcliff74 and you etc) to solve this HTC drive update issue. Thank you!
Click to expand...
Click to collapse
@GoingInside, and anybody else in the same boat (latest HTC update installed, filesystem browsing broken), please try the latest version (v2, now on the initial post)! After running the app once, run Connection Setup and hit OK. After you do that, use a Registry Editor to check for the presence of the following registry key: HKCU\Software\DeployProvXML.
Please report whether that key is present. If it is, that means the app is fully functional even with the latest update!
I only have a NoDo Backup (my phone came with nodo) - can I get the interop unlock trough dev unlocking the phone and then running our app?
nvm, I am now downgrading to NoDo and Will then update to the HTC RTM (the one that Comes via zune). As soon as I am there I will tell you if i had luck with it or not (I hope I can interopunlock on NoDo as the 3 apps sideloadlimit is crap)
Update 1: I am on NoDo and I started your app. It cloesd, i went to Connection Setup and ran it. Will check if the registry value is there as soon as some XAPs are deployed (first time that I can deploy more than 3 XAPs )
Update 2: Now going trough the Beta - RTM - HTC Update Update marathon. Will Report back as soon as I am on HTC's RTM
GoodDayToDie said:
@GoingInside, and anybody else in the same boat (latest HTC update installed, filesystem browsing broken), please try the latest version (v2, now on the initial post)! After running the app once, run Connection Setup and hit OK. After you do that, use a Registry Editor to check for the presence of the following registry key: HKCU\Software\DeployProvXML.
Please report whether that key is present. If it is, that means the app is fully functional even with the latest update!
Click to expand...
Click to collapse
Unfortunately, it seems that the new XAP (v2) doesn't work as well. Copy and deploy the latest DeployProvXML.xap (dated 5/10/2011) to my HTC trophy. After running Connection Setup, I can't find the registry key: HKCU\Software\DeployProvXML. I only found MICROSOFT under HKCU/Software/.
But please continue your research into this. THANKS!

[Q] Limitations of INTEROP-UNLOCK

I have used the INTEROP-UNLOCK and sorted the GRPS connection....
My question is what are the limitations of this unlock?
I have not been able to get MMS working even after reloading the network profile, I have a locked phone to 3UK network.
I believe that when a phone is carrier unlocked MMS does not function, isn't is the INTEROP-UNLOCK similar?
I cant use the official Samsung Network profile app in the market place as I am locked to 3UK, but if I carrier unlock the phone, will I be able to use this official app to reconfigure (as a new phone) the 3G settings and the MMS settings to work as a stock phone.
Also, for carrier unlocked phones, via a 3rd party when we get an unofficial update from Microsoft, does it re configure the settings to work with the official Samsung network app.
I have posted a couple of times to find info on one of the above items, and have been told to to look at the forums, I have spent a lot of time reviewing them and I dont think the above points have been answered concisely....
Your help would be greatly appreciated.
http://www.wpxap.com/thread-171460-1-1.html
here you can see
Even when the page was translated from simplified Chinese, the link didn't explain any of the questions raised above...
Search for Samsung Tools in this forum. Install it and run it. Checkmark the prevent device from relocking, unlock, and run adc checkmarks. Press ok, after it reboots it will fix your mms issue
Sent from my SGH-i917 using XDA Windows Phone 7 App
W99DEY said:
I have used the INTEROP-UNLOCK and sorted the GRPS connection....
My question is what are the limitations of this unlock?
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1265321
A Quote from it... Dont forget to hit thanks !
Heathcliff74 said:
On WP7 there are already a lot of different unlocks:
Developer-uplock/ChevronWP7 unlock: This will allow you to side-load apps from your desktop to your phone. A legit developer-unlock costs $99 per year (this will also allow you to deploy your apps in the Marketplace). ChevronWP7 made an unlock tool, which allows you to dev-unlock your phone for free. This method only works on WP7 version 7.0.7004.0 and 7.0.7008.0. It does not work anymore since version 7.0.7355.0 (pre NoDo). But it is possible to unlock your phone on version 7.0.7008.0 and then use some tricks to upgrade your phone and keep the unlock. You can even upgrade to Mango RTM and still have the unlock. Look in this thead to get full instructions. Also the ChevronWP7 team will release an unlock-method that will only cost a few bucks and will apply an official dev-unlock on any version of WP7, but it won't allow you to release apps to the Marketplace.
Interop-unlock: On RTM and NoDo versions of WP7 it was possible to run apps with native code. These apps would use a COM-Interop-Bridge to transit between managed and native code. These apps need to be tagged with the Interop-capability called "ID_CAP_INTEROPSERVICES". These apps don't seem to run on Mango. Not even when you have a legit Developer Unlock. There are two reasons for that. The first reason is that most native libraries need some modifications to run on Mango. I found out how to do this and modified WP7 Root Tools so that it is compatible with Mango. The other reason is a deployment-restriction. That is the Interop-Lock that needs to be Unlocked. If you have a normal Dev-unlock on Mango and you try to deploy an app with that uses COM interop, the deployment will fail with error 0x81030120. contable and Marvin_S found out that the MaxUnsignedApp registry-value is responsible for the Interop-Lock. I did more research and I identified the code that checks this value. In fact, if you have the MaxUnsignedApp value set to 300 or higher, your interop will be unlocked. The value of MaxUnsignedApp is determined by the type of developer-unlock you have. A normal AppHub account will have it set to 10 and a student account will have it set to 3. So a value of 300 or higher is not a realistic value for a normal developer account. It is probably only set to this value for Microsoft employees and OEM developers. Until now, the only way to do an INTEROP-UNLOCK for MANGO meant that you have to downgrade to NoDo first, then prepare your device by loading provxml files to your device, upgrade to MANGO and then use OEM tools to execute the provxml files and do the necessary unlocks. But that is a lot of work and for some devices not even possible, because there are simply no ROM's available. But I have found an exploit that works on Samsung and HTC devices, which allows you to UNLOCK INTEROP your MANGO device. For it to work, it must already be developer-unlocked! Read this guide for instructions.
FullUnlock: This a type of unlock which allows you to run Native Executables. Normally you can only compile Silverlight apps, which will be run in a sandbox. The app is compiled as a DLL, which will be run in TaskHost.exe. I you would like to compile Test.exe, you won't be able to run it, because there is a policy-system and certificate-system that prevent you from running it. Cotulla already cooked a ROM with FullUnlock, but unfortunately this is not yet working as expected. I also did research on this together with fiinix. Thanks go out to him for working with me on that matter. We did not get it working back then, but I think I now have enough exploits to get this working. I will do some more testing on this later on. WP7 Root Tools does not need FullUnlock to be able to run.
Full Root Access: As stated previously, Silverlight apps and system executables have their own sandbox, which is defined by a Least Privilege based policy system. Even when you break into native code, you are still running in your sandbox. For example, you can try to copy a file in managed code. You will only have access in Isolated Store. If you use COM interop to call native code and you try to use the FileCopy() API, you can still only copy files in your Isolated Store. To break out of the sandbox, there are a couple of possible exploits. But they are still limited in their possibilities. To get unrestricted access to the API's and Resources on your device you will need to completely bypass the policies that the system has defined for your app. YukiXDA and I have in close contact with eachother for a period of time and we learned a lot from eachother. I found some of the exploits, thanks to him! YukiXDA unfortunately has left the community. A very big thanks to YukiXDA for working with me on this matter. Before he left he cooked a ROM for HTC HD2 which has Full Root Access cooked into it. The way he did it was to effectively shut down the policy-sytem. Although this opens up a lot of possibilities for homebrew, this is also kind of risky, because the system is also open to malware. And this technique only works on devices which have an unlocked bootloader (currently HTC HD2 and most HTC WP7 devices have unlocked bootloaders). I developed another type of Full Root Access. I can enable Full Root Access for the entire device (differt than what YukiXDA did, but effectively the same). But I can also enable/disable this per app. So the user can decide which app is trusted enough to get Full Root Access. Other apps will still run in their predefined sandbox. I am currently developing a new version of WP7 Root Tools which will support Full Root Access. To do this I will apply Full Root Access for WP7 Root Tools first. A user can use WP7 Root Tools to enable Full Root Access for another app. So if a developer wants to create an app that needs Full Root Access (for example some type of backup-app), the user of the app must use a ROM which has Full Root Access cooked into it, or the user must run WP7 Root Tools to allow Full Root Access for the app. There are two disadvantages. WP7 Root Tools must first install Full Root Access for itself. Obviously WP7 Root Tools does not have Full Root Access at that moment yet. So there are other exploits necessary to apply this. Currently I have exploits for this, but they use some device-specific features. I have exploits for Samsung, HTC and LG. Other brands, or possibly a device-independent exploit, may follow later. This means that WP7 Root Tools only works on these devices, and with that also the apps that need Full Root Access will only work on these devices. The other disadvantage is that, with the current state of Interop-unlocking, all users of WP7 Root Tools, and with that also all users of the apps that need Full Root Access, will need to be on dev-unlocked-NoDo first, in order to apply an Interop-Unlock for Mango. Because WP7 Root Tools and all apps that use Full Root Access need Interop Unlock. When I have the version of WP7 Root Tools with Full Root Access finished I will release an SDK, which will make access to the system a lot easier. The SDK will consist of a native library and a managed wrapper library. Developers will be able to access the Registry and Filesystem using only managed code and the libraries from the SDK. The app will of course need to be unlocked, using WP7 Root Tools on the device. But using the SDK is mandatory. You can also write your own native code. I will write a guide on how to do that later on. An app that has Full Root Access (provided by ROM or by WP7 Root Tools does not need any device-specific libraries. All API's can be used. For API's that are not in the SDK libraries you need to write your own COM wrapper.
Click to expand...
Click to collapse
Hi W99DEY
I had the same problem as you - I am on the three uk network, with a samsung omnia 7, updated to mango, interop unlocked, reset mms/internet settings and the mms does not work.
I spent a while trying to figure this out, but I found a solution as to how to get mms working after interop unlock.
Here's how you do it:
1. Revert to your last back up of your phone - this needs to be pre interop unlock and your mms should be working at this point. Do this by connecting to zune, going to update and clicking backup.
2. Install mango updates.
3. Once zune says you can unplug your phone after the updates, unplug it and use heathcliffs method of interop unlock: http://forum.xda-developers.com/showthread.php?t=1271963
But stop at stage 10 - don't try and repair your mms yet.
4. Deploy any other provxml you may want. May I suggest this one, to enable tethering:
http://forum.xda-developers.com/showthread.php?t=1238519
Don't try to repair the mms yet.
5. ***This is the important bit*** Currently your mms won't work, and there is only one method which will get it to work:
Run the Diagnosis app and dial this to enable auto configure sim setting: *#94765#
It will ask you to restart the device. Confirm that.
Other methods like - setting apn, using samsung tools, etc. do not work so don't try them.
6. Plug your phone back into zune, it should want to update again (mine did) Saying it needed to install Samsung updates. Install them.
7. You're done and your mms should now work - make sure you're not connected to the wifi when trying to send a mms as it may not work.
------
***Important*** After you've applied the fix and got the mms to work do not run any more provxml files as that will screw your settings again, and this method only works once for some reason.
Also don't run any other methods of fixing mms settings like using samsung tools etc. as this will not work, and if you try these before using the diagnosis method, then the diagnosis method will not work. And the diagnosis method will only work once.
If anyone has any ideas as to how to make this fix work more than once for 3uk samsung omnia 7's please let me know.
If this was helpful please say thanks
Cheers Parsl for the response.... More or less did what you did, think I tried Samsung Tools 1st.... ;-)
Yeah, I used Samsung tools and that didn't work. I found the only thing that worked was the diagnosis method. But only once - as the first time round I then applied the tethering provxml and then the diagnosis method didn't work a second time, so rebooted and then did it all in the order I mentioned.
Have you got your mms working now?
Sent from my OMNIA7 using XDA Windows Phone 7 App

[IDEA] Possible interop unlock for HTC Phones

I have found a theoric solution so far for interop-unlocking an HTC Phone. Disassembling HTC Connection Setup (since it the HTC.Shell.Registry.dll) and modifying it using IL Spy for example and include the line of code to modify the register (the dll stated before is capable of doing this).
Windows Marketplace App is capable of installing apps with Interop Services (you can install HTC Connection in fact) so we could sniff (i.e. via Wireless) the app traffic to detect when it dowloads the xap. Then by using the router settings (or a proxy or something like that) we could divert the traffic to a modified xap so the Market will download the modified xap instead (or we could even totally use another app ).
This will work only if the market hasn't those characteristics:
* It uses HTTPS to download the xaps (by the analysis I have done so far it seems not)
* It checks in any way the downloaded xap.
Do you think it could be a good idea?
I am not an expert in those things but by discussing with a colleague he stated that could be possible (difficult however in his opinion).
Microsoft?
Do you think Microsoft guys wouldn't have thought about this before and have taken preventive measures?
Never doubt HTC's ability to compromise an OS. lol I'm not all that familiar with xaps yet but I would think they have some sort of checksum or key that it can check the app with to make sure it's not corrupt.
xHausx said:
Never doubt HTC's ability to compromise an OS. lol I'm not all that familiar with xaps yet but I would think they have some sort of checksum or key that it can check the app with to make sure it's not corrupt.
Click to expand...
Click to collapse
Indeed... plus this. A similar methodology could be used to prevent what the OP suggests. I'm certainly not trying to rain on the OP's parade... in fact I hope that siomething similar can be achieved.
ATM it looks like that the only problem is that the market xaps are digitally signed. By the way the MultipleXAPInstaller program lets you sign the package when sideloading it.
i found the latest Registry Editor can run on my hd7, so maybe the interop-unlock will happen soon.
so,is it possible to interop unlock mango HTCs ?
it will run, but it wont write the values
It runs. We have also found the DLL capable of accessing the registry (they are in HTC Hub and HTC setup) but they require interop-unlock .
the only way to interop unlock is the DFT free ROM ?
Currently DFT rom is the only way for HTC WP7 device
Well XAP files are no way tampering the interop and HTC have custom build into the OS the Interop utilities as shell dll's. e.g HTCRegistryUtility.dll which we can find in any HTC ROM.
All other COMRw or COMReg dll files what we find in HTC xap files are all wrappers to trigger the typeinfo from InprocSrvr ID's predefined for HTC Interops.
Thats the reason all phones (HTC,Samsung,LG) cannot use same Unlock methods.
Best way is to somehow poke a custom certificate to spctrustroot and sign the xap files you download with that again and install.
Or somebody has to hackdown the pacmaninstaller.dll file inside the ROM and create a updatecab for that.
http://forum.xda-developers.com/showthread.php?t=1354706&page=6
this thread provides a new way to unlock
but it doesn't wok on my hd7(if it's related to my SPL version --5.0)

[XAP] HTC Interop Unlock test 2 - courtesy of Heathcliff74

UPDATE 2: Heathcliff74 has taken a look into the reason that this method wasn't working on phones with the HTC updates for Mango, and appears to have found a work-around! I strongly suggest that people try his version instead of mine. The instructions are similar but not identical. Scroll down to the bottom of this first post and use the HTC Interop Unlock XAP located there:
http://forum.xda-developers.com/showthread.php?t=1271963
If you want to post your results in this thread, please specify which XAP you are using, mine or Heathcliff74's. There are known limitations with mine. There still seem to be some limits with his, be we aren't sure exactly what they are yet.
UPDATE: This is disappointing, but apparently HTC has put yet another roadblock in our way. I'm working on a way around the next one. I can't say how long it will take, but I beat the last one (process arbitrary provxml on an interop-locked phone) and I'll beat this one (allow Connection Setup to modify the registry again, after the HTC updates).
I'll update this thread again when I have a new version to test. Guesses as to the problem's root cause, suggestions for fixing it, and anything else you've found are all welcome.
I'm not taking the initial release of the app down, but unless you have an HTC phone which somehow is on Mango, doesn't have the HTC updates, and isn't already interop-unlocked, this isn't going to do anything for you. If you are in that situation, have at it - for now though, I'm just leaving it up so people can download it and pull it apart.
What it does: Modifies your HTC phone to allow maximum unsigned apps, which will also allow you to deploy and run apps with ID_CAP_INTEROPSERVICES. This does not require rolling back to pre-Mango. It is designed for use on stock ROMs. It is expected to work on all GSM HTC Windows Phone 7 devices. It might even work on the Arrive (can't hurt to try). You can read more about Interop Unlock here: http://forum.xda-developers.com/showthread.php?t=1271963
What it needs:
HTC Windows Phone (in theory, any of them)
Developer-unlock (AppHub account or ChevronWP7 Labs should be fine)
Connection Setup app (it's in Marketplace under HTC Apps)
What you do:
0) Install Connection Setup, if you haven't already.
1) Start Connection Setup, just to make sure it works. You don't have to do anything, just start it.
2) Exit Connection Setup using the Back button (so it's not running or suspended).
3) Install HtcInteropUnlock.xap. You don't need to run it.
4) Run Connection Setup again.
5) Expand the AppBar menu (... at the bottom) and choose "manual select".
5.a) The Country and Carrier list-picker boxes should become enabled.
5.b) If they don't, hit "manual select" again, it takes two taps on my phone.
6) Tap on Country and select "Phone Customization" (you can use the jump list to get to P quickly).
7) Carrier should automatically change to "Dev and Interop Unlock" (make sure this happens).
8) Hit the check mark at the bottom (AppBar "ok").
9) Make sure it reports success, then hit Done.
10) Try to install / run an interop app (or just install an 11th unsigned app).
Please report what happens, including the following info:
Your phone model (mine is HTC HD7, T-Mobile US branded).
Your version info (mine is 7720, no HTC Mango updates).
Success or failure of the whole operation.
If failure, indicate the exact step that went wrong, and what happened instead.
Be aware: This method does not damage your data connection in any way, but it will probably prevent Connection Setup from working normally. This can be undone. However, I didn't want to put the effort into making it reversible until I knew whether it worked on other phones, so if you need Connection Setup for its official purpose, don't install the initial release of this app.
This app builds on the work of multiple members of our community. Special thanks go to:
Heathcliff74, for researching interop-unlock and discovering the xap-deployer hack.
kounadisk, for researching how to add custom entries to Connection Setup.
I am already interop-unlocked but
OMG I am tempted to roll back to nodo, update the official way then unlock this way!
Watching this thread Kudos!
For what it's worth, I'm interop-unlocked already too, so I haven't actually tested this app on a non-IU phone. However, it should work just fine, provided that Connection setup was installed from the Marketplace.
On the plus side, by using this method you can restore your interop-unlock if you ever lose it (if you IUed the way I did, then an update might cause you to lose IU without being able to get it back the same way - but this method should still work).
that's worked
W00t! Can you please tell me your phone model and software version too? Thanks!
Radar 7740: The option shows up, I can "apply" it but it does nothing.
Surround 7740: I can apply Phone Customization but when I open HTCInteropUnlock app, nothing happens
TeNsTrKe15 said:
Surround 7740: I can apply Phone Customization but when I open HTCInteropUnlock app, nothing happens
Click to expand...
Click to collapse
Read the instructions...You just install the app and the follow the other steps. No need to open it.
Nothing special is supposed to happen. The change is invisible. As for the Interop Unlock app itself, it's just a stub - all of the "what it does" is entirely in the install process. Once it's installed, you can even remove the app.
Try installing this app: http://forum.xda-developers.com/showthread.php?t=1238519
If you can install it (without modifying the XAP file) then your interop-unlock worked!
Alternatively, try installing Registry Editor 1.2.0.0 from TouchXperience: http://forum.touchxperience.com/viewtopic.php?f=20&t=593. It goes in the Settings hub, but if you can install and run that, then there was great success!
MJCS said:
Read the instructions...You just install the app and the follow the other steps. No need to open it.
Click to expand...
Click to collapse
even so, i still cant install interop apps. error 0x81030120
TeNsTrKe15 said:
Surround 7740: I can apply Phone Customization but when I open HTCInteropUnlock app, nothing happens
Click to expand...
Click to collapse
I suspect this might not work if you have the HTC updates installed.... the OP indicated he has not installed any HTC updates
Ok, tried this on my HTC Titan.
I selected "Phone Customization" as country and "Dev and Interop Unlock" as carrier and applied these settings. The Connection Setup app reported that it successfully configured the phone.
But ... it does not seem to have any effect (yet, I hope!). I still can't sideload more than 10 apps.
My Titan is on WP7 version 7.10.7740.16.
Connection Setup app is version 1.12 (build 2119.18323)/
I'm hoping it works anyhow, but it's possible it wouldn't. It really depends what's in those updates.
For example, we know they modified the HTCFileUtility driver in some way, but we don't know exactly how. TouchXplorer stopped working, but Connection Setup (which also uses ComFileRW.dll) still works. I know it works because if it didn't, you wouldn't be able to see the Phone Customization option.
It's possible that the update made some other change that made it impossible to change the MaxUnsignedApp value from within Connection Setup or something unfortunate like that.
I can modify the app to make some more obvious change when Connection Setup does its thing. For example, forcibly change your phone's accent color or some such. Really, though, I'm hoping that won't be needed.
One thing to try is rebooting the phone. I don't think it's required, but it can't hurt and might help.
Can you make it write to a specific registry path and then tell us what that path is. I would like to see if it can at least write to the registry.
Dev/Interop applies from Connection Setup but can't install an app with interop (ansar's USBModeSwitch XAP) enabled (in my case 3rd unsigned app since i have a student account).
Mozart 7720, with latest HTC updates installed.
update: rebooted. not installing still. it auto-starts Connection Setup, ran it again, doesnt work still.
cheers.
GoodDayToDie said:
One thing to try is rebooting the phone. I don't think it's required, but it can't hurt and might help.
Click to expand...
Click to collapse
Rebooting does not help... Still can't sideload more than 10 apps.
I think it would be a good idea to try and edit some other registry setting in the provxml, that has visible consequences. Then at least we can verify if changing that setting works.
Didnt work for me. Unbranded HD7, HTC Updates 7720.
Sounds promising though
@MJCS: It already writes a test value to the registry:
KEY: HKCU\Software\DeployProvXml
VALUE: InteropUnlock
DATA: "Success" (String)
Can somebody who was already interop-unlocked but has installed the HTC updates use this app, then check if that value exists? It does on my phone, but of course I don't have the HTC updates.
What are the passwords for the dbz files?
Nevermind its 030D681B-1DFC-4bd0-A72A-A9B3CCCDA653
Yeah there must be some sort of time-bomb that clears out the interop setting.
http://forum.xda-developers.com/showthread.php?p=18916888#post18916888
GoodDayToDie said:
@MJCS: It already writes a test value to the registry:
KEY: HKCU\Software\DeployProvXml
VALUE: InteropUnlock
DATA: "Success" (String)
Can somebody who was already interop-unlocked but has installed the HTC updates use this app, then check if that value exists? It does on my phone, but of course I don't have the HTC updates.
Click to expand...
Click to collapse
My HD7S has all the latest updates, and is already interop-unlocked.
I tried the app out, and checked the registry and found no such entry.
I hope you get this figured out today before I pick up my Titan. Haha.

Categories

Resources