Universal Registry Update - Windows Phone 7 Development and Hacking

It looks like there is a universal registry tool somewhere on either the phone or available during update. I extracted this from my logs during the Mango Update:
Code:
**** Starting Registry Update @ 16:47:36 ****
Checking to see if shadow order changed.
Checking to see if any reg files changed.
Shadow order has changed, Registry files have changed. Registry update required.
building new ROM hives
succeeded
copying default.hv (simulation)
copying user.hv (simulation)
copying default.hv
copying user.hv
completed ROM hive file update
importing RAM hive changes
exporting/reimporting RAM hive changes to maintain key enumeration order
RegUpdate succeeded
Update Application - Completed Registry Update @ 16:47:55
I have yet to extract a rom successfully with a full file structure. If someone could prodive me with one or instructions on how to do it I could find out more. I have a feeling we have more access to the phone when you start the phone in update mode by holding down volume down, camera, power. But that is just a thought.

nice try...!!

Well it looks like the *.hv files are the registry files. I just need to get a rom dump from my dell venue pro. I still can't figure out how.

Ok, How would I get a cab file with a provxml file containing
Code:
<wap-provisioningdoc>
<characteristic type="Registry">
<characteristic type="HKLM\Software\Microsoft\DeviceReg\Install">
<parm name="MaxUnsignedApp" value="2147483647" datatype="integer" />
</characteristic>
</characteristic>
</wap-provisioningdoc>
sorta like the one attached. The one attached is supposed to allow you to upgrade to mango (dont try it). If we can inject that code there we could inject any registry update we wanted.

MJCS said:
Ok, How would I get a cab file with a provxml file containing
Code:
<wap-provisioningdoc>
<characteristic type="Registry">
<characteristic type="HKLM\Software\Microsoft\DeviceReg\Install">
<parm name="MaxUnsignedApp" value="2147483647" datatype="integer" />
</characteristic>
</characteristic>
</wap-provisioningdoc>
sorta like the one attached. The one attached is supposed to allow you to upgrade to mango (dont try it). If we can inject that code there we could inject any registry update we wanted.
Click to expand...
Click to collapse
PM xboxmod
may be able to help

Well I pm'ed him...anyone else know how to. I think this could really work. I might also be able to fix the DVP's missing compass driver by adding it to a cab and using a file copy command!

Please keep trying, but as an expectations-management step, I have to tell you: The phone probably requires that update/install packages (orther than XAPs) be signed. This can be worked around on HTC phones because the bootloaders are (or until recently, were) unlocked, but LG/Samsung/Dell don't seem to have this advantage and will only load signed images.
That said, it's possible this installer avenue doesn't have that protection. Good luck!

Yeah I was afraid of that...A certificate chain could not be built to a trusted root authority

Related

Changing or disabling Boot logos/sounds

Since installing Raidroid 1.1 I had the concern of an extremely LOUD boot sound.
I decided to find out how to turn it off and let everybody know how.
It turned out to be much simpler than I thought. The method, I believe, will work with all ROMs.
There is a file in /system/media/bootscreen called boot_animation.xml - this contains the script that runs on startup.
First you need to copy that file off your phone for editing. Use any method you wish, I used adb
adb pull /system/media/bootscreen/boot_animation.xml boot_animation.xml
Now, in your current folder, you will have a copy of that file. You can edit it in notepad.
Here is mine:
<?xml version="1.0" encoding="utf-8"?>
<!--
* Copyright © 2008 HTC Inc.
*
-->
<!-- For new bootup animation
<BootConfiguration>
<BootAnimation
image="/system/media/bootscreen/boot.gif"
audio="/system/media/bootscreen/boot.mp3"
screenX="100" (optional)
screenY="130" (optional)
useAudio="0" // 1: true ; 0:false (optional)
/>
</BootConfiguration>
-->
<!-- For cropped version -->
<BootConfiguration>
<BootAnimation
image="/system/media/bootscreen/boot.gif"
audio="/system/media/bootscreen/boot.mp3"
screenX="40"
screenY="0"
useAudio="0"
/>
</BootConfiguration>
<!-- For full screen version -->
<!--BootConfiguration>
<BootAnimation
image="/system/media/bootscreen/boot.gif"
loopimage="/system/media/bootscreen/boot.gif"
audio="/system/media/bootscreen/boot.mp3"
useAudio="0"
/>
</BootConfiguration-->
Click to expand...
Click to collapse
You will see, I've highlighted the changes I made in bold.
I've disabled the audio completely but I could, for example, change the image or audio to anything I wanted. If you choose to change the image or sound file, be careful. This script runs at startup and I'm guessing that if you configure it wrongly that you may not be able to boot the phone.
Once your phone is edited, you now need to upload the amended file back to the phone. Again, I used adb. (thanks DarthOps for the remount help)
adb remount
adb push boot_animation.xml /system/media/bootscreen/boot_animation.xml
All done, now reboot your phone to test.
Thanks for sharing..works for me..

[Q] [HELP] Deployment error

I am trying to install 3rd party xap file on to my device. but deployment application keeps on giving me following error.
"Installation of the application failed. Run time error has occurred. Fix the Capabilities in WMAppManifest.xml file"
in WMAppManifest.xml file following are only capabilities i am using ...
Code:
<Capabilities>
<Capability Name="ID_CAP_NETWORKING" />
<Capability Name="ID_CAP_SENSORS" />
<Capability Name="ID_CAP_MEDIALIB" />
</Capabilities>
I tried to remove all the capabilities but still having same problem. Does anyone know how to get around this issue?
munna07 said:
I am trying to install 3rd party xap file on to my device. but deployment application keeps on giving me following error.
"Installation of the application failed. Run time error has occurred. Fix the Capabilities in WMAppManifest.xml file"
in WMAppManifest.xml file following are only capabilities i am using ...
Code:
<Capabilities>
<Capability Name="ID_CAP_NETWORKING" />
<Capability Name="ID_CAP_SENSORS" />
<Capability Name="ID_CAP_MEDIALIB" />
</Capabilities>
I tried to remove all the capabilities but still having same problem. Does anyone know how to get around this issue?
Click to expand...
Click to collapse
My guess is you've removed one that is being used (that you're not aware of). The deployment/running procedures won't mind extra caps being listed, but will complain if they're used but not listed.
Try using the capability detection tool in the WP7 Developer Tool October Update.

For everyone with provxml not applying changes

Hello xda-developers
I'm not really sure if it's already mentioned here on the forums, but today I found out that provxml-files which where written as .rgu and translated by "rgu-2-xml" don't work for Windows Phone 7. The output file is saved as ANSI file. After updating to Mango I tried a "Developer Unlock.xml" file but it didn't work. Well, all the procedure back and again but now with a UNICODE file After right-clicking the (ANSI) xml-file, "edit" and re-saving it as UNICODE file I noticed that the size of the file increased I tried the provxml-Method again and it worked! Not sure if I'm the only one with this solution and like I already said: not sure if it's already said here Please let me know if it helped you
you unlock your device on Mango build?
hd2leo_fusion said:
you unlock your device on Mango build?
Click to expand...
Click to collapse
The provxml method works on Mango as well.
Yes, I unlocked Mango But for me there are still some unanswered questions about provxml =/ Does a provxml file only work once on Omnia 7?
experience7 said:
Yes, I unlocked Mango But for me there are still some unanswered questions about provxml =/ Does a provxml file only work once on Omnia 7?
Click to expand...
Click to collapse
Ηow you will run provxml on omnia ...
I was under the impression that provxm works only with htc connection setup ...
And yes after the appl (connection setup) finish the 1rst run its deleting the provxml file.
You can also use it on Samsung devices Here is the thread where I found it: http://forum.xda-developers.com/showthread.php?t=1152422
Yes, with Connection Setup on HTC it will be deleted - but what about the GPRS Manager used for Samsung devices? After executing a command (xml-file) in the GPRS Manager, it's still there ^^ Even if I restart the app or the whole phone -> After opening the GPRS Manager again, all the entries seem to stay there
EDIT: Okay, tested it again and it seems like you can apply the xml's as often as you want with GPRS Manager I flashed a older ROM so my phone was on 7004 again I unlocked using ChevronWP7 and installed WP7 root tools. I created a file which switches the Internet Explorer's search provider to Google Well, after execution I first opened IE9, pressed search and yup.. google.com came up - then, just to be sure I opened WP7 root tools and took a look at the SearchScopes in registry. They were changed to Google, so the xml really worked. Then I manually wrote everything back to default. I opened the Internet Explorer, pressed the search button and Bing came up.. so everything's like before. I applied the "Google Search.xml" again and.. yes, it worked: Same effect like above: Registry was changed, IE9 search is now google.com
Well so at the end I can say that this is really useful for switches like in my example. I created several switches like "Enable instant resuming.xml", "Disable instant resuming.xml", "Enable lockscreen never option.xml", "Use Bing (default) search.xml", "Use Google search.xml", ... Wow, Mango with fast resuming apps is wonderful!
experience7
All of my rgu's that I've converted using xboxmods tool rgu2xml have worked just fine on my hd7.
It does kinda suck that HTC connection setup deletes the provxml everytime
Sent from my HD7 using XDA Windows Phone 7 App
Hm.. yes, maybe on HTC (with HTC connection setup) it's enough to convert them. On my Omnia 7 i had to open the provxml files, and resave them as UNICODE ".xml" files It's nice that GPRS Manager on Samsung devices doesn't delete the .xml files
Thank you for this! I was wondering why Connection Setup-applied ProvXML wasn't working. This will hopefully do it.
I've come up with a way to chain provxml files. I don't yet know if it works - it depends on how the deletion after processing the CustClear file is implemented - but it has the potential to allow you to store a "working copy" ProvXML file in My Documents as a txt file (which you can open and edit with Word), and then every time you use Connection Setup, it copies your "working copy" file to \Windows, renaming it as it does. This should make further modifications easier; just copy the XML from a website or app, paste it into Word, and run Connection Setup twice (once to copy your edited file, once to process it).
If it works, I'll post the file.
OK, I couldn't get the chaining to work. It's still in the file, just commented out, in case anybody else wants to experiment.
Oh, and I added some very convenient (if you deal with things like I do all day) registry tweaks. Open .LOG files as though they were .txt (great for attachments) and add an expansion for the , key similar to the one that the . key has.
THis really help me, That's the reason why my unlock.xml didn't worked in 7712 back then. I thought it was the 7712.
minori_aoi said:
THis really help me, That's the reason why my unlock.xml didn't worked in 7712 back then. I thought it was the 7712.
Click to expand...
Click to collapse
I'm trying to keep my HD7 unlock after updating to 7712 but the many times I tried, the Connection Setup will not run after 7712 update. If you can share the file and method with steps you used, that would be appreciated.
I don't know why your HTC connection setup didn't start after the update But maybe you did something wrong.. Okay, let's go through the steps together
Well, for Samsung devices you need a .xml file (GPRS connection manager handles with .xml files).
And on your HD7 you need an .provxml file (HTC connection setup handles with .provxml files).
Okay, first step is to be developer unlocked on NoDo - I think you are, right? [If you want to test it: Just try to sideload an app. If it works your phone is unlocked.. else it's not.]
Now uninstall HTC connection setup and install it again. Do not sideload any app found in the internet - just install the official app from the marketplace.
The next step is to get the right .provxml file. You don't need to do the following steps: I've already attached one which works. But just that you can follow me: Basically the file has to apply the following changes:
1) Developer unlock
Code:
[HKEY_LOCAL_MACHINE\Comm\Security\LVMod]
"DeveloperUnlockState"=dword:1
2) Prevent from relock
Code:
[HKEY_LOCAL_MACHINE\Software\Microsoft\DeviceReg]
"PortalUrlProd"=""
"PortalUrlInt"=""
3) Maximum sideloaded apps
Code:
[HKEY_LOCAL_MACHINE\Software\Microsoft\DeviceReg\Install]
"MaxUnsignedApp"=dword:7fffffff
And to create a this file we need to open Notepad:
Code:
REGEDIT4
[HKEY_LOCAL_MACHINE\Comm\Security\LVMod]
"DeveloperUnlockState"=dword:1
[HKEY_LOCAL_MACHINE\Software\Microsoft\DeviceReg]
"PortalUrlProd"=""
"PortalUrlInt"=""
[HKEY_LOCAL_MACHINE\Software\Microsoft\DeviceReg\Install]
"MaxUnsignedApp"=dword:7fffffff
Simply save this file as a .rgu file.
Then you need the tool "rgu-2-xml.exe" which converts the .rgu to a .provxml file. I've also attached this tool.
Okay, the generated file has now to be in the "Windows" directory of your phone. You can use the "WP7 mass storage" trick to get the file to your device - just search here on xda-developers. After you've copied the file to your device it will be stored in "\My Documents\Zune\Content\0400\...". Now you need a file explorer for HD7. I'm not sure if you're already using a tool but TouchXplorer should do the job. Open your tool on the phone and navigate to the folder above. There should be several folders.. just browse through them and look for a file which has got a short name and another file ending as our file (CustClear.provxml). Check the file size - it has to be the same on PC and your phone. If it's the same file rename it to "CustClear.provxml" again. Then move the file to the "Windows" folder on your HD7. The file has got the right name and is on the right place.. let's go on:
Now don't start the HTC connection setup!
Be sure to update to the highest build available at the moment. It's Mango v7720. There are tutorials here on xda-developers.com on how to update to v7720 Run HTC connection setup only if you can see that your phone is running v7720. You can see this under settings > about > more information.
Then you should be developer unlocked and sideloading apps should work again.
If anyone finds a mistake in those instructions please tell me! Thanks
And please tell me if it worked
Thanks for this but I don't need it now as as I had solved my problem.
After 7403 update, I uninstalled Connection Setup and re-installed again.
Nonetheless, I will PDF your instructions and download the 3 files to try out and learn this. Thank you very much for providing the detailed instructions. I'm sure it might be useful for some others.
experience7 said:
I don't know why your HTC connection setup didn't start after the update But maybe you did something wrong.. Okay, let's go through the steps together
Well, for Samsung devices you need a .xml file (GPRS connection manager handles with .xml files).
And on your HD7 you need an .provxml file (HTC connection setup handles with .provxml files).
Okay, first step is to be developer unlocked on NoDo - I think you are, right? [If you want to test it: Just try to sideload an app. If it works your phone is unlocked.. else it's not.]
Now uninstall HTC connection setup and install it again. Do not sideload any app found in the internet - just install the official app from the marketplace.
The next step is to get the right .provxml file. You don't need to do the following steps: I've already attached one which works. But just that you can follow me: Basically the file has to apply the following changes:
1) Developer unlock
Code:
[HKEY_LOCAL_MACHINE\Comm\Security\LVMod]
"DeveloperUnlockState"=dword:1
2) Prevent from relock
Code:
[HKEY_LOCAL_MACHINE\Software\Microsoft\DeviceReg]
"PortalUrlProd"=""
"PortalUrlInt"=""
3) Maximum sideloaded apps
Code:
[HKEY_LOCAL_MACHINE\Software\Microsoft\DeviceReg\Install]
"MaxUnsignedApp"=dword:7fffffff
And to create a this file we need to open Notepad:
Code:
REGEDIT4
[HKEY_LOCAL_MACHINE\Comm\Security\LVMod]
"DeveloperUnlockState"=dword:1
[HKEY_LOCAL_MACHINE\Software\Microsoft\DeviceReg]
"PortalUrlProd"=""
"PortalUrlInt"=""
[HKEY_LOCAL_MACHINE\Software\Microsoft\DeviceReg\Install]
"MaxUnsignedApp"=dword:7fffffff
Simply save this file as a .rgu file.
Then you need the tool "rgu-2-xml.exe" which converts the .rgu to a .provxml file. I've also attached this tool.
Okay, the generated file has now to be in the "Windows" directory of your phone. You can use the "WP7 mass storage" trick to get the file to your device - just search here on xda-developers. After you've copied the file to your device it will be stored in "\My Documents\Zune\Content\0400\...". Now you need a file explorer for HD7. I'm not sure if you're already using a tool but TouchXplorer should do the job. Open your tool on the phone and navigate to the folder above. There should be several folders.. just browse through them and look for a file which has got a short name and another file ending as our file (CustClear.provxml). Check the file size - it has to be the same on PC and your phone. If it's the same file rename it to "CustClear.provxml" again. Then move the file to the "Windows" folder on your HD7. The file has got the right name and is on the right place.. let's go on:
Now don't start the HTC connection setup!
Be sure to update to the highest build available at the moment. It's Mango v7720. There are tutorials here on xda-developers.com on how to update to v7720 Run HTC connection setup only if you can see that your phone is running v7720. You can see this under settings > about > more information.
Then you should be developer unlocked and sideloading apps should work again.
If anyone finds a mistake in those instructions please tell me! Thanks
And please tell me if it worked
Click to expand...
Click to collapse
Is it possible to enable a custom notification sound via a reg edit in the omnia 7 running 7720 chevron unlocked? Maybe someone can make a prov file and instructions...
Well, maybe it's possible but I'm not really sure what you mean But I'm aware of provxml's capabilities, how to build them and how to set up the phone, so maybe I can help you
Thanks... I read somewhere that with a registry key we can change the path of the notification sound... This way we dont need to overwrite the original .wav... I believe this might be the only way to do it in mango since homebrew is blocked...
Need to check the registry key thread for this one, since i dont really know much about this...
Dehydration Hack
I have used this method to unlock and remove the side load limit on my HD7 and it works great. I am unsure how to create a file to turn the dehydration hack on and then off again after I have updated all the way to 7720. I used the HTC Connection setup once I fully updated, I have touch explorer I just have no clue what to do for the dehydration can anybody help me?
On HTC devices you can't create a simple switch to enable / disable the dehydration hack because once you've ran the HTC connection setup the provxml files will be deleted. But if you don't want to switch that often between on / off you can use this tool:
http://forum.xda-developers.com/showthread.php?t=907971
You'll have to create two .rgu files:
First one contains this:
Code:
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\TaskHost]
"DehydrateOnPause"=dword:0
Second one contains this:
Code:
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\TaskHost]
"DehydrateOnPause"=dword:3
Then you have to convert them to .provxml files. Put the first one in a folder called "Enable dehydration hack" and the second one into a folder called "Disable dehydration hack". This way you can't mess it up
Then use the tool mentioned above to deploy the .provxml which contains the setting you want to have on your phone - then finally run the HTC connection setup
For example you've enabled the dehydration: To disable it again you have to put the CustClear.provxml from "Disable dehydration hack" into the XAP file from xboxmod and deploy this XAP to your device. Then run HTC connection setup again and the changes will be applied - Dehydration hack will be turned off
Please tell me if it worked for you / helped you,
experience7
experience7 said:
On HTC devices you can't create a simple switch to enable / disable the dehydration hack because once you've ran the HTC connection setup the provxml files will be deleted. But if you don't want to switch that often between on / off you can use this tool:
http://forum.xda-developers.com/showthread.php?t=907971
You'll have to create two .rgu files:
First one contains this:
Code:
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\TaskHost]
"DehydrateOnPause"=dword:0
Second one contains this:
Code:
[HKEY_LOCAL_MACHINE\Software\Microsoft\TaskHost]
"DehydrateOnPause"=dword:3
Then you have to convert them to .provxml files. Put the first one in a folder called "Enable dehydration hack" and the second one into a folder called "Disable dehydration hack". This way you can't mess it up
Then use the tool mentioned above to deploy the .provxml which contains the setting you want to have on your phone - then finally run the HTC connection setup
For example you've enabled the dehydration: To disable it again you have to put the CustClear.provxml from "Disable dehydration hack" into the XAP file from xboxmod and deploy this XAP to your device. Then run HTC connection setup again and the changes will be applied - Dehydration hack will be turned off
Please tell me if it worked for you / helped you,
experience7
Click to expand...
Click to collapse
Should be
Code:
[HKEY_LOCAL_MACHINE\Software\Microsoft\TaskHost]
"DehydrateOnPause"=dword:0

Hp 10 plus tablet 2201 root!!

Im sorry if this is the wrong place, I tried to comment on a root conversation where it would apply most, but I couldn't post. Anyway...this device has just been left in the dark, little to nothing about a solid root. I tried Kingroot....and then again and again....im not sure whats going on with a one button root, but my idea was it was doing something over and over making it weaker....I ran it about 10 times and I was suprised it rooted!!! But soon I realided it didnt matter much, cause there are no custom roms or Kernels...so...I don't know, just wanted to let a few guy know, maybe repetition of Kingroot will help them and they can go on to build roms and things! Thanks everyone, this site is the only source I hit for everything android! I have a screen shot...just unsure how to post...on a virgin! My first post!!
Thanks!! Rooted my HP 10 Plus (Australian version) after 3.5 years of trying unsuccessfully.
Rooting wiped all data from the tablet!
It took many restarts of both programming and tablet (forced). I even reinstalled Kingroot several times to get it out of loops.
Your next steps are:
Use EsExplorer to change the root folder (/) permissions from RO to RW.
Navigate to /system/etc/permissions
Here there is a file called "platform.xml"
Open platform.xml
Find the permission block below. It will not have the last line in it. ADD this line
<group gid="media_rw" />
The block will now look like this:
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
<group gid="media_rw" />
</permission>
CHECK AND DOUBLE CHECK THAT YOU HAVE ALTERED THE CORRECT BLOCK EXACTLY AS ABOVE!!
Save the file.
Restart your tablet.
You will now have full write access to your microSD card.
Thanks again.
br, John
Process?
Hi KingRat! Can you share the process you used to Root the HP 10 Plus after adding this file permission?
I would like to install a Linux Distro on mine (Aussie Model as well)
King Rat said:
Thanks!! Rooted my HP 10 Plus (Australian version) after 3.5 years of trying unsuccessfully.
Rooting wiped all data from the tablet!
It took many restarts of both programming and tablet (forced). I even reinstalled Kingroot several times to get it out of loops.
Your next steps are:
Use EsExplorer to change the root folder (/) permissions from RO to RW.
Navigate to /system/etc/permissions
Here there is a file called "platform.xml"
Open platform.xml
Find the permission block below. It will not have the last line in it. ADD this line
<group gid="media_rw" />
The block will now look like this:
<permission name="android.permission.WRITE_EXTERNAL_STORAGE" >
<group gid="sdcard_r" />
<group gid="sdcard_rw" />
<group gid="media_rw" />
</permission>
CHECK AND DOUBLE CHECK THAT YOU HAVE ALTERED THE CORRECT BLOCK EXACTLY AS ABOVE!!
Save the file.
Restart your tablet.
You will now have full write access to your microSD card.
Thanks again.
br, John
Click to expand...
Click to collapse

Provxml files

<!--
Copyright (c) Microsoft Corporation. All rights reserved.
-->
<wap-provisioningdoc>
<characteristic type="AppMetadata">
<nocharacteristic type="{F725010E-455D-4C09-AC48-BCDEF0D4B626}"/>
</characteristic>
</wap-provisioningdoc>
How to revert that? How to install provxml custom files?
I got an idea: reflash phone with WPinternals, switch to massmode immediately after reflash, erase provxml file inside windows/migators/dumigrationprovisionermicrosoft.
I forgot about updates,

Categories

Resources