What are PortalUrlProd and PortalUrlInt values on Mango - Windows Phone 7 Development and Hacking

Hi,
I used Heathcliff74's WP7 Root Tools on my Mango so I used the tool to interop-unlock my device which set the number of sideloaded apps to MaxUnsignedApp=2147483647 and cleared PortalUrlProd and PortalUrlInt.
However for testing purposes, I set back those values back to the original values (extracted from NoDo version) and locked the device again.
Code:
https://developerservices.windowsphone.com/Services/WindowsPhoneRegistration.svc/01/2010
https://developerservices.windowsphone-int.com/Services/WindowsPhoneRegistration.svc/01/2010
However, when I tried to unlock again with the official unlocking tool, it indicated an error about the date and time, but I believe on Mango, the values of PortalUrlProd and PortalUrlInt are not the same as the ones I set.
So if anyone had a way to access these values, I'll be grateful for posting them here.
Thanx

According to a registry dump taken from a Mango device (not sure how official or which build, though I think it was 7720):
<parm name="PortalUrlProd" value="https://developerservices.windowsphone.com/Services/WindowsPhoneRegistration.svc/01/2010" datatype="string" />
<parm name="PortalUrlInt" value="https://developerservices.windowsphone-int.com/Services/WindowsPhoneRegistration.svc/01/2010" datatype="string" />

Now this is starting to looks more and more, as a huge problem.
Not for the regular user, i guess, only for developers, but as far as my research (and after short brainstorming with this cool guy magisterrivus
I'm coming to the conclusion that even with the interop unlock, one will have to choose to either save the NoLimit for sideload, DeviceUnlock, and preventrelock, or either sacrifice them for the sole purpose of Debugging and deploying apps and code as a whole for testing through Visual Studio.
I've described the problem here, http://forum.xda-developers.com/showpost.php?p=18352332&postcount=30
and i really hope, guys like Heatcliff and Ansar to give some explanation or workaround to "save the best of both worlds".

Hi, just for your information.
I managed to relock my Samsung device right now. You're right when you say, thats not possible to change back the reg keys back to its initial URL. At the time beeing its not possible.
But with the good old provxml method, you can reload whatever you want to.
Let me explain a bit what I did or wanted to do:
I purchased the new official chevron unlocker and wanted to apply the patch to my unlocked/jailbreaked Samsung device but unfortunately, it seemes, that chevron NEEDS this Url's.
So finaly, I joint a 2nd XML with the Url data and installed it as discribed all around here.
So then with the Diagnosis Tool I was able to load the new settings and thereafter Chevron worked fine. I've left 2 files in the provxml folder - lock and unlock - and now I can do whatever I want to. Lucky, that I left max app and dev unlock flags in the xml file.
The funny thing was, that after Chevon unlock, the max app capacity was limited. None of the regeditors or whatever homebrew software pointing on root setting wanted to run. So I've loaded the old unlock.xml again and everything worked fine as previously.
Cheers,
Jo

Related

Mango: How to edit registry

This is a trick to edit registry values στο mango update
Pre-requests:
1. Pre Mango - unlocked NODO with TouchExlorer side loaded
2. Last Connection Setup from marketplace
3. Update to Mango Beta unlocked
4. Backup ( Backup Phone before try )
HowTo:
1. Send file CustClear.provxml.txt from PC to some email so you can read it from the phone
2. From the phone open the Email, click to the attached file and it opens with Word,
click ... and choose save as... CustClear.provxml ( save to phone)
3. From TouchExplorer navigate to My Documents, there is the file CustClear.provxml.txt, rename to
CustClear.provxml ( C capital as here ), copy the file to Windows and replace if suggests
4. Reboot
5. Boot Phone and run ConnectionSetup at first
6. Reboot
if everything goes ok the registry values will have changed,
The attached file i give has the basic changes for unlock, 32bt fix, max unsigned apps
You can change what ever registry value you want.. i have changed Light Themes color to Grey
Who ever try post results and share your changes
Well done m8
Well done m8...and thanks for the info...
I test it and its working fine ...
and i have to add some more registry values to the pack
Code:
<characteristic type="HKLM\ControlPanel\Themes\0">
<parm name="PageBackgroundColor" value="#FF212121" datatype="string" />
<parm name="SysTrayBackgroundColor" value="#FF212121" datatype="string" />
</characteristic>
This one will change the white background in light theme to a dark grey
Code:
<characteristic type="HKLM\ControlPanel\Lock">
<parm name="DisableNever" value="0" datatype="integer" />
</characteristic>
and this one wiil add the never option in screen timeout (if its not allready there)
or you can just use schaps windows device manager and transfer the file into windows folder directly via the WDM(schaps app) while your currently on NODO, and then load mango onto phone.
When finished installing mango, goto market place download "connection setup" thats first thing you do, run connection setup follow on screen instructions (the connection setup looks for the CustClear.provxml file) and your done all your homebrew apps will work.
edit: add any reg keys you want into the CustClear.provxml and transfer it over using the app provided by schaps while in NODO.
iky10 said:
or you can just use schaps windows device manager and transfer the file into windows folder via the WDM(schaps app) while your currently on NODO, and then load mango, goto market place download connection setup thats first thing you do, run setup and your done all your homebrew apps wil work.
Click to expand...
Click to collapse
Thats correct ..but the above method from viel will work and after mango update
Hi there, great solution, but, one question:
What to do if My market doesn´t find the Connection setup on Market ?
I have found it on Zune, but I don´t have an install button like in other apps.
Maybe is not avaiable for all the countries :S?
PD: Sorry for my bad English
serach connection setup not htc connection setup
You must have an HTC device for this. HTC Connection Setup is only on HTC devices. There was a hack somewhere that was a registry edit to change which OEM's market to show. You'll have to search for it though. Maybe if you're lucky, you can get it on Non-HTC device. No telling if it'd even work though.
[HOW TO] Get any OEM's Apps direct from the Marketplace on your Phone
So if I own an Omnia7 phone, I´m not able to test this ?
And what about it I try the Samsung "Network profile" app? Won´t be the same ?
3gox said:
So if I own an Omnia7 phone, I´m not able to test this ?
And what about it I try the Samsung "Network profile" app? Won´t be the same ?
Click to expand...
Click to collapse
Don't know if it uses the same file. The link I posted above shows how to edit the registry to make the Market think your device is an HTC device. No clue though if HTC's CS app will work on your device though. I'd test it first. make a tes CustClear.provxml with a registry value you can verified is being written like changing one of the accent colors say.
3gox said:
So if I own an Omnia7 phone, I´m not able to test this ?
And what about it I try the Samsung "Network profile" app? Won´t be the same ?
Click to expand...
Click to collapse
I dont know that ....but i think that samsung app its not reading provxml files ...
the trick here is that connection setup from htc can read and deploy any commands inside a provxml file.
Yeah, tanks for the link, I saw it, but since I´m in Mango I can not modify the registry for that too .
I´m not having time until Saturday or Sunday (Tuesday today here) to rollback and test that things .
3gox said:
Yeah, tanks for the link, I saw it, but since I´m in Mango I can not modify the registry for that too .
I´m not having time until Saturday or Sunday (Tuesday today here) to rollback and test that things .
Click to expand...
Click to collapse
If it works, let us know so other LG/Samsung users can do this too.
I was going to try a fast test but for now it´s impossible cuz when I try to open "Touchexplorer" an alert gets fired telling Microsoft has revoqued that app :S.
Umm...I would have to try in another way :\, hope I would have some time shortly
3gox said:
I was going to try a fast test but for now it´s impossible cuz when I try to open "Touchexplorer" an alert gets fired telling Microsoft has revoqued that app :S.
Umm...I would have to try in another way :\, hope I would have some time shortly
Click to expand...
Click to collapse
Your device is locked, that's why your getting that error.
drkfngthdragnlrd said:
Your device is locked, that's why your getting that error.
Click to expand...
Click to collapse
That´s it.
That´s why I need some time in the weekend to rollback to 7004 and make the whole process to pass the unlock to nodo and mango.
What a hard life...jaja
I'm sure samsung can do this using the GPRS settings trick some of us used to keep dev unlock post mango.
There is a diag screen that gets you a GPRS settings screen that will display and execute an XML (not provxml) in a drop down list that is placed in the root of the phone in a folder called provxml.
I would have to hunt down my other post on how I kept dev unlock post mango to get all the info.
Custclear.provxml
Does anyone know how to put a custclear.provxml in the Windows directory of an already-Mangoed and unlocked phone? Can anyone tell me if it's even possible?
piaqt said:
Does anyone know how to put a custclear.provxml in the Windows directory of an already-Mangoed and unlocked phone? Can anyone tell me if it's even possible?
Click to expand...
Click to collapse
if you have an unlocked mango update thats what we are discussing here
ViEL said:
if you have an unlocked mango update thats what we are discussing here
Click to expand...
Click to collapse
I do, and I've tried everything mentioned in this thread, and still no joy.
piaqt said:
I do, and I've tried everything mentioned in this thread, and still no joy.
Click to expand...
Click to collapse
is your device htc? it works on htc devices

[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!

Directions Please - Unlock/Backups/ROM/FLASH/MANGO/NODO/7004/Zune versions

Can someone please simplify all this for me?
The information on this site is so convoluded in terms of methods, some expired , some still valid, and guesses that are plain wrong, and irrelevancies.
I have been reading, installing, and uninstalling for hours into days.
Samsung Focus
1. Can Mango unlock be achieved with unlock from 7004?
2.I was on NoDo unlock and followed some instructions for the Focus that did not work. It went right to Mango LOCKED (as many others have reported).
I made a nice little back up of my NoDo unlock but can't get back to it using any version of Zune or any method, they all result in restore errors.
My back up might as well be on the north pole because I can't get to it.
3.I flashed back to 7004 and couldn't get chevron to unlock again like I used to be able to on XP or WIN 7 with various zune versions back to 4.7.
I'm wondering if the newer Zunes corrupted that somehow because last time it worked was on a fresh zune install on windows 7.
And besides that, they all ask to be upgraded before they do a back up, usually.
4.But even if it is unlocked at ROM 7004, zune updates (if chosen) will send it back to mango and locks it agian right? That's what happened last time , it just kept updating the phone for hours and then it was back to mango.
5.It appears my only option now is Mango locked or 7004 flash Rom with possible unlock.
Hopefully answers here will help others as well.
A few answers, though not compreheensive:
1) You don't have to let WP7 install each update, if you wanted to stop at, for example, NoDo 7392, you could. Just wait untilt he update gets that far, then pull the plug and/or hit Ccancel in Zune. Left to itsself, it will install all available updates.
2) The phone automatically dev-relocks whenever a major update is installed - this happens even to people with legitimate develop-unlock (and it's annoying!) For Samsung, I believe the technique for preserving unlock is the same one used to get interop-unlock on Mango: place an unlock provxml file in \provxml\ on the phone's filesystem (you can either use Heathcliff74's WP7 Root Tools to do this, or you can just install his interop-unlock XAP) and make sure you have a working version of the Samsung Diag app (should allow you to process provxml files). Once you have that, you can install all the way up to the Mango update safely, I think (I don't have a Samsung, but it should work) and use the Diag app to process your provxml file, which will both dev-unlock and interop-unlock the phone.
Not sure what's up with your backups; I can't really help you there without more information. What error do you get? What version of Zune are you using (you probably should use the latest version, 4.8.whatever)? How big is the backup (it's in %localappdata%\Microsoft\Windows Phone Update\)?
As for what guides to follow, starting with the stickies is always a good idea.
Hello,
I have a HTC Mozart device wich is momentarily running on unlocked NoDo.
I have followed various guides from xda but I end up running a locked Mango (most of the guides require after Mango update to run HTC Connection Setup to unlock... which I am unable to run (black scren) and all other apps tell me revoked by Microsoft).
is there any latest guide a little more foolproof?
It seems that after 18th October something happened with Zune which prevents Mango unlock...
Gyuritzy said:
Hello,
I have a HTC Mozart device wich is momentarily running on unlocked NoDo.
I have followed various guides from xda but I end up running a locked Mango (most of the guides require after Mango update to run HTC Connection Setup to unlock... which I am unable to run (black scren) and all other apps tell me revoked by Microsoft).
is there any latest guide a little more foolproof?
It seems that after 18th October something happened with Zune which prevents Mango unlock...
Click to expand...
Click to collapse
After you install the interop-unlock xap while on nodo then goto mango you reinstall the diag app and in the Diagnosis app dial: *#9908#.. Select "Heathcliff74 Interop Unlock"
then tap Save, tap Close and exit the Diagnosis app
@lucasryan: Those are the instructions for a Samsung phone. They don't work at all on an HTC phone.
@Gyuritzy: Currently, Microsoft is pushing the Mango update and an HTC update together. The HTC update blocks the unlock path used with Mango. If your phone gets that update - which means if it gets Mango through the retail update path - there's no current way to interop-unlock it.
If you can get Mango through an atypical upgrade path (I came from the beta, which worked), or if you use a custom ROM (be *very careful* of the bootloader version if you try this!!), you can get interoop-unlocked Mango on HTC. It's not easy, though.
Ahh i see that i quoted his post now. as alan93 has focus
What solution do I have to load Mango without HTC update? Should I try with RCT2RTM type of packagge?
@GoodDayToDie
#1 - ahh ok, but I'm sure watching the update tentativley is required right? For like an hour and a half.
#2 - now see, there you go again, this is only for dev-unlock people which , i'm not even sure what that is..what? you pay $100 to MS to get it? It needs to be stated more clearly where ever that solution is posted AT THE VERY TOP like this "IF YOU ALREADY HAVE A DEV UNLOCK ....
@ lucasryan - That can't be right, -->"installing interop unlock on NoDo then go to Mango"...STOP RIGHT THERE. when you go to Mango it wipes everything out and you have no more access...unless of course ..YOU ALREADY HAVE A DEV UNLOCK...what ever that is.
I did try the diagnosis trick on update to mango after putting that file on there but the diagnosis version would not go higher than 908 or what ever. Couldn't get 1112 or what ever the one that is needed.
Please, just say there is no way to unlock Mango unless you have a dev unlock and that is low percentage as it is...then I won't expect so much.
Thanks for the replies.
Here is the zune error I get on trying to restore to my NoDo unlock.
http://answers.microsoft.com/en-us/...-restore/3ec7091d-d79d-422c-9995-cfe186e0155b
As you can see nobody is dying to answer it.
I think the code number means "this goon is trying to restore to an unlocked version, don't answer him".
@alan93: Developer Unlock is the term used for the change to your phone made by the Windows Phone Registration Tool (if you have a marketplace developer account), ChevronWP7 Unlocker (possible on pre-NoDo), ChevronWP7 Labs (coming soon), or changing the DeveloperUnlockState registry value located at HKLM\Comm\Security\LVMod to 1 (possible with the LG registry editor, or by using the Samsung diag app or HTC Connection Setup app to process to provxml file). The registry change is actually what matters; the other methods are simply ways to achieve it.
Dev unlock allows you to install XAP files - a renamed ZIP file with some manifest XML files, one or more managed (.NET-based) DLL files, and possibly other files needed by the application. Due to a bug in the application installer, you can also use a XAP to put arbitrary files almost anywhere in the filesystem (the installer can't write to the \Windows\ directory).
One of those manifst files specifies capabilities that the app has, which controls permissions of the app (for example, ID_CAP_ISV_CAMERA allows access to the public camera APIs). As of Mango, including beta versions, it is no longer possible to install apps with the ID_CAP_INTEROPSERVICES capability unless the MaxUnsignedApp registry value (located in HKLM\Software\Microsoft\DeviceReg\Install) is set to at least 300 (the default value is either 10 or 3, depending on the unlock method used). ID_CAP_INTEROPSERVICES is required for interfacing with drivers, a way for applications to run at high permissions (for example, to write to the registry). Each time you install a major upgrade, such as Mango, this value is reset to its default. An app with ID_CAP_INTEROPSERVICES therefore can't be installed (or run, if it was installed before upgrading to Mango) until this MaxUnsignedApp registry value is changed, a process referred to as Interop-unlock (term coined by Heathcliff74 on this forum). Marketplace-installed apps are exempt from this restriction, which is why things like Connection Setup (which has ID_CAP_INTEROPSERVICES) can be used.
For what it's worth, I got my dev-unlock by purchasing a marketplace developer account ($100 from MS). One day I may even submit an app to the marketplace, but so far all the apps I've written use homebrew and wouldn't be acceptable for the marketplace, so I just publish them here.
Thanks great explanation.
I intend to write my own too, I wrote one and have a few more great ideas but didn't want to pay until i made sure I was able to write them completely and testing on the simulator sux. And last I heard, the media player doesn't work with it.
I just think the fee and lockout just hurts development thereby limiting the success of WP7.
If it was $50 or less I would probably pay it.
I mean for crying out loud I'm a certified MCP/MCAD, they should give me a break here.

[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.

[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