Windows Phone Power Tools released - Windows Phone 7 Software Development

http://wptools.codeplex.com/
The Windows Phone Power Tools are a natural extension to the developer tools that come with the Windows Phone SDK. Instead of allowing you to only install developer xaps the Power Tools let you test update scenarios by allowing you to update an existing developer app. Instead of having to step through the IsolatedStorage file browser on the command line, the Power Tools provide a GUI to allow you to interact with your applications.

Looks like a useful tool. Thanks for the heads up.

On my LG Optimus 7, V7392, tha app crashes when accessing file explorer.
Deploying XAPs results with a crash to.
Thanks anyway

Yeah had a couple of crashes myself.
When adding files, it always ends up at the root folder of the isolatedstorage and it doesn't refresh the treeview so u can see the new files either.

Can somebody explain how to properly install this application?h
When I clicked on .application file it just installed
.appref-ms file in Start menu with this content:
http://wptools.codeplex.com/release...pplication#WindowsPhonePowerTools.application, Culture=neutral, PublicKeyToken=89698295f69f556b, processorArchitecture=x86
Clicking on it does not do anything.

If you have bug reports, I would suggest using codeplex as it has better tools to actually track that sort of thing in the issues section. Discussions are useful for any questions not related to specific bug/feature requests.
@sergoreg
A .application is usually a ClickOnce file and when you double click it should install the app. The .appref-ms extension is basically a pointer to the internally stored app location and it's quite easy to break this relationship. You could try uninstalling the app via the Control Panel and reinstalling via the .application file. It's rare but possible that you got a corrupted install.
If you're really savvy, you could locate where the app is stored in IsolatedStorage and double click on the .exe directly but it's a lot of work when this should just work for you.

Related

[REQ] Wake On Lan

Hi Guys & Gals,
Quick question.....
Has anybody come across a Wake On Lan app for WM6. I have a small home network that I start up from a central PC using Wake On LAN function in the system BIOS. I would like to be able to start my PC's from the Blackstone over my WLAN.
Everything within the LAN & WLAN is running reserved DHCP from the router side so all IP's are constant including the Blackstone.
Cheers for any replies.........
Gilgamesh.......
I don't know if any solution exists but I've read a tutorial (in french sorry) on how to make a wake on line application for wm
http://blogs.msdn.com/pierreca/archive/2009/03/19/wake-on-lan-depuis-votre-t-l-phone.aspx
Hope that could help you
Try this..
jpl69 cheers.........The app works like a charm but is a little basic. Needs the full MAC to be entered manually each time.
What would be really nice is some way of associating the MAC to a short meaningful name that could then be listed so it could just be selected from a list rather than enter the full MAC each time. In this way multiple PC's coud be listed.
While we're at it would also be nice to have a standby button as well so PC's within the LAN could be started and shut down form the app.
I've never written an app before and would either like a few pointers to see if I could do it or see if anyone out there would consider building on the app already posted.
Any suggestion welcome.......
Besides developing an app to that (no time) i could sugest make several shortcuts using resco and parsing the mac as parameter. At least you only had to make it once.
Thanks jpl69 for your continued replies...much appreciated.
I have seen Resco but not realy sure which component to download to edit the exe. I have used PEG (parsing) in other apps at work but just need something to get me started on WM6. I could the replicate the exe per MAC and create a single file or each PC
Might be worth looking at vxUtil: http://www.cambridgevx.com.
This has Wake-On-LAN (among other things), and I think it remembers previously entered values. You can't give things memorable names but it might help.
Gilgamesh1066 said:
Thanks jpl69 for your continued replies...much appreciated.
I have seen Resco but not realy sure which component to download to edit the exe. I have used PEG (parsing) in other apps at work but just need something to get me started on WM6. I could the replicate the exe per MAC and create a single file or each PC
Click to expand...
Click to collapse
i think he means, like, create new shortcut with parameters. Just for example the same as on pc creating a shortcut to c:\quake\quake.exe and use the string "c:\quake\quake.exe" +bind mouse1 shoot +set mode opengl blablabla
Again thanks for the continued replies.....
Downloaded vxUtil and had a play and it does have a working WOL option but again it's messy and not really the simple solution I was looking for. It does have some other features (ping/sweep, tracert & DNS lookup) but I don't really have a use for these.
Still really after a single icon to start each PC as per the shortcut suggestion above.
All suggestions still welcome and appreciated.
I will just try to clarify what was the idea of jpl69.
Please read the README file included in the attached archive (posted by jpl69).
It says:
"Command Line:
===============
Please use as following:
WakeOnLan.exe [MACAddress]
MacAddress can be either 01E4523AEE22 or 01:E4:52:3A:EE:22 "
Now with Resco Explorer (or with Total Commander, which is freeware) one can make several different shortcuts to WakeOnLan.exe, each ending with the specific MAC.
In Total Commander, after creating the shortcut, one must select it, choose "properties", then "shortcut" tab, then manually add the MAC at the end of the "target" line.
Copy the ready shortcut several times, name the new copies whatever you want and place those shortcuts in a folder. Dont forget to change the MAC for each machine.
Hope it helps.
Now I get it......Sorry for the slow uptake but been a busy boy and head has been fried by other things. Will have a play tomorrow and post back results.
Many thanks..........
I dont know if you still looking to do this but I got this working & figured I would reply here for future reference.
First i have a linksys DD-WRT router, so I followed these steps:
http://www.dd-wrt.com/wiki/index.php/WOL
Then I downloaded the attached cab & its one click & works great!
RichTJ99 said:
I dont know if you still looking to do this but I got this working & figured I would reply here for future reference.
First i have a linksys DD-WRT router, so I followed these steps:
http://www.dd-wrt.com/wiki/index.php/WOL
Then I downloaded the attached cab & its one click & works great!
Click to expand...
Click to collapse
I have been using the WakeOnPocketPC from Depicus happilly with WM 6.1. Now, after upgrade to WM 6.5 (Dutty ROM Leo Holy Grail), the cab fails to install ("...installation was unsuccessful.")
Any other program with capability to send WOL packets to a particular IP address (and not just broadcast over LAN)?
Although this thread is about one year old, before I developed my WoL everywhere program, I searched for programs like mine here and came to this thread... None of the programs I've found fit my requirements, so I made a program myself...
So I hope your search is over and you've found what you need with my little WoL everywhere... you can download it here:
http://forum.xda-developers.com/showthread.php?t=695524
Greetings @ all!
LichtiMC
Create a shortcut to WakeOnLan with a MAC address
Hi,
I'm pasting to this old thread since I found the WakeOnLan tool here and want to share my tips with others.
If you want to create a shortcut so that you have a separate executable (say in your Start Menu) then follow these steps:
Install WakeOnLan from the above link. I put it in "\Program Files\WakeOnLan\WakeOnLan.exe"
Browse to this location with explorer on your PPC. Select the WakeOnLan executable and click "copy"
Browse to where you want the shortcut to appear:
"\Windows\Start Menu" will show in your start menu
"\Windows\Startup" will be run when you reset or power cycle the device
"\Windows\Programs" will apear in your Start Menu > Programs folder
"\Windows\Settings" will appear in your system settings
Select on some empty space (not an existing file) in your chosen folder and choose "Paste shortcut"
Use a text editor on Windows / Linux to edit this new file, or one on your device (I didn't have any that would open on my device so I copied it to Linux, edited in emacs, then copied it back)
Edit the line that looks like:
Code:
40#"\Program Files\WakeOnLan\WakeOnLan.exe"
essentially this is a character count, a "#", the location the shortcut points to, and arguments. Add your MAC address like this and take note of the quotes:
Code:
58#"\Program Files\WakeOnLan\WakeOnLan.exe" AA:BB:CC:DD:EE:FF
count the characters of the shortcut, mac address, and space, then add one. This is your new number (in my case, 58).
An easy way to do this is to use "wc" on Linux:
Code:
echo "\Program Files\WakeOnLan\WakeOnLan.exe AA:BB:CC:DD:EE:FF" | wc -c
57
(remember to add 1!)
Now you can repeat the process and paste as many different WoL shortcuts as you like! I've made just one and called it "WoL MythTv" to wake up my media centre at home. Neat
I'll post my sources in the next post since new users aren't allowed to post links...

Starting custom executables in phone

One way to start custom executabled in windows phone 7 is following method:
1) create a exe file that runs in phone
2) create a zip file and put exe inside
3) upload zip file to some internetpage and create .html page for it with <a href.. link for it.
4) navigate to the page with phone IE.
5) when clicking the link the phone can open the zip file and display its contents (tap to open the file ...zip)
6) when clicking the .exe file the phone asks are you sure you want to run
(The program ...exe is from an unknown publisher. Running it could harm your phone. Do you want to continue?)
7)enjoy your homebrews
will this also work on a phone that isn't developer unlocked ?
if that is right than this is the ultimate way to jailbreak a wp7 phone
Never-mind
Nope, he isn't, and described above method works (I guess because of MS ZipView executable bug). But I can't get my apps running, probably because they are not compatible with CE 7.0 and WP7 .Net (I've tried CE 6.0 native code and .NET code).
sensboston said:
Nope, he isn't, and described above method works (I guess because of MS ZipView executable bug). But I can't get my apps running, probably because they are not compatible with CE 7.0 and WP7 .Net (I've tried CE 6.0 native code and .NET code).
Click to expand...
Click to collapse
is your phone developer unlocked ?
Yes, unlocked.
sensboston said:
Yes, unlocked.
Click to expand...
Click to collapse
**** bummer , do you have a web link to that test file of yours then I can try it my phone is locked
xttp://home.comcast.net/~sergsv/
There are two links to zip archives at the left top corner of the page. I can't run these files but MS zip archiver open these zips and asked to run
yes man this is working on a locked phone
now we need some code that works to test this
lets say an .exe that run the file explorer
yes. right now we don't know whether the apps are opened at all. Are the managed Apps in VS compiled into an exe? Maybe we could extract one from an xap for testing purposes...
Silverlight XAPs use XAMLs and DLLs, no EXEs involved I'm afraid.
Hmm yes you're right. Are there extracted executables from the leaked Mondrian ROM?
There are, but they are not GUI apps, they look mainly like command line executables provided by Qualcomm, and some of them look like they could mess up your phone if you don't know what you're doing.
There are some GUI apps, but they come disassembled. I've been trying to assemble them but haven't had much luck yet.
Neat. I shall put together a sample application to test this. (I have Visual Studio 2010 configured to pump out CE7 native executables.)
I think the executable run is blocked. They left typical MS (say - stupid) dialog box but, I believe, ignore the user input...
However the Word and Excel documents can be opened this way.
I tried a few things -- rebooting the phone, crashing the program with invalid pointers, and launching some known executables. Nothing. I even signed my executable with a valid certificate; It still claims unknown publisher.
Wonder if this is some left over dialog as mentioned by sensboston
WithinRafael said:
I tried a few things -- rebooting the phone, crashing the program with invalid pointers, and launching some known executables. Nothing. I even signed my executable with a valid certificate; It still claims unknown publisher.
Wonder if this is some left over dialog as mentioned by sensboston
Click to expand...
Click to collapse
The dialog will be hidden by the shell. You need to add your cert into the phone, email it, resign your app and try it again.
It's possible it'll work.
this will only work with MSFT signed exe's.
walshieau said:
this will only work with MSFT signed exe's.
Click to expand...
Click to collapse
I tried with both my signed executable (with Root CA cert installed) and a Microsoft executable. Neither show signs of execution.

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!

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

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

Categories

Resources