Non-interop Registry Editor? - Windows Phone 7 Q&A, Help & Troubleshooting

Hello, does anyone know about a registry editor I can deploy into my device? I am developer unlock, non-interop.
Thank you

Since the whole point of interop-unlock is to allow you to install apps that can break out of their sandbox to do things like edit the registry, no, nobody knows about such an app.
Interop-unlock itself is a registry edit. If you could edit the registry, you'd probably be IUed already.
That said, browsing (most) of the registry can be done with low privileges. You just can't change anything. It might even work to take Schaps "Registry Editor" app (from TouchXperience.com) and remove ID_CAP_INTEROPSERVICES from its manifest (though whether it will then work depends on how he coded it).

You can remove the interop unlock CAP as mentioned above.
The amount you can access is very limited then.

Related

[Q]Edit Registery

Are we able to set registry values from XAP's on HTC devices?
If you have unlocked your phone, you can sideload one of few available registry editors, and set registry values accordingly. Some branches are restricted, however.
kapanak said:
If you have unlocked your phone, you can sideload one of few available registry editors, and set registry values accordingly. Some branches are restricted, however.
Click to expand...
Click to collapse
Oh, i know that. I have 2. But i mean, im trying to edit the registry from my app. I have NativeLibrary.dll but it gives me errors when i try to read/set from the registry. (C#).

[Q] Cannot access registry anymore after accentcolor change

Hey there,
I got a Samsung Omnia 7 with Telekom Branding and a serious problem. I cannot access the registry of my phone anymore with any tool. WP7 Root tools and the registry editor from TouchXperience keeps crashing.
What I been doing is trying to add a new accent color.
I first went to [HKEY_LOCAL_MACHINE\ControlPanel\Themes] and then in the folder which contains the theme names. I have created there a correct Dword entry and called the name "grau".
Well, then I switched into [HKEY_LOCAL_MACHINE\ControlPanel\Themes\0\Accents] and wanted to add there another accent color with the index number 11. I was looking for the hex values on my PC while my phone screen got locked.
After unlocking it again, I couldnt access any of the tools anymore.
Also when I go into the control panel -> design (where you can choose light/dark background and accent color) it just kicks me out of the menu.
I dont know what I should do, I need something which lets me access the registry somehow or an app which could remove the key...
Any help is greatly appreciated
You can do write-only registry operations in a few ways, but one of the easiest is to use provxml. Download the Interop Unlock XAP from the Dev&Hacking sub-forum and open it in 7-zip (the built-in Windows ZIP explorer won't work for this). There's a .. folder. Navigate it up to ..\..\..\..\.. or so, then there's a provxml folder. Open it, and there's a file inside. Edit that file. It'll have some registry write commands in an xml format (wap-provisioning, you can read about it on MSDN if you want). Put the registry commands you want into the file and save it back into the XAP archive. Then, follow the normal steps for interop-unlock on a Samsung phone, except don't install the original app (deploy your modified version). This will process the provxml and make the registry changes.
Note: provxml can be used to delete registry values as well as create or modify them. This is a great way to undo partial jobs like adding a new theme that isn't supposed to be there.
Thanks a lot for your reply.
It worked out. I removed all those broken keys.
I had done loads of registry changes and a bunch of tweaks for the phone, at the end I did a hard reset.
I'll wait for tools the next time

[Q] Messed up registry

Hello,
I experimented with the WP7 Root Tools and tried to add an own theme by creating a folder called "2" inside the Themes folder in the registry. After I did that I could not open any app anymore. I can't open the Root Tools app or any other marketplace-app. I tried to fix the problem with the MFG menu of my LG e900 but I can't start that either.
Do you have any way to fix my problem? I don't want to reset my phone and loose all my text messages and my dictionary!
If you don't have a recent backup (which you seriously should; why would you go poke the registry without knowing one???) then yeah, hard-reset it pretty much the only option. You could try opening the Theme control panel in Settings and see if it clears things up for you, or you could try writing an app that uses the LG provxml driver to delete the offending registry key *BEFORE THE APP LOADS ITS UI* so that it *might* get run before crashing, but those are my only guesses as to waht might save you.
If you're going to semi-blindly poke the registry, *ALWAYS* have a backup at hand.
GoodDayToDie said:
you could try writing an app that uses the LG provxml driver to delete the offending registry key *BEFORE THE APP LOADS ITS UI* so that it *might* get run before crashing
Click to expand...
Click to collapse
Do you think this is possible? So I might give it a try.
Do you know where I have to read to learn this?
Do you have any WP7 dev experience? The basic concept is pretty straightforward, but it helps if I don't have to explain the basics of app development. I've attached a ZIP archive that contains the source code for a very basic app that uses LG provxml.
Your app will need the following things:
NewSysInfoComDLL.dll (native library that talks to the LG provxml driver).
WPInteropManifest.xml (file that allows your app to talk to native code).
ID_CAP_INTEROPSERVICES in WMAppManifest.xml (to access drivers).
Reference to the InteropServices .NET framework DLL (for the ComBridge API).
In the constructor for the main page, or possibly even in the app initialization code that goes in App.xaml.cs - whichever place gets executed first - you'll need to do the following:
Initialize the COM bridge to the native library (the *Interop*.cs files will help here).
Call the LG provision XML API with a provxml string that deletes the registry ney you created (you can find the provxml reference for Windows Compact 7 on MSDN).
If you're very lucky, this will fix your registry before the app tries to read the registry, goes looking for the additional theme data, doesn't find it, and crashes.
reason adocde
Thank you so far!
I am a very basic programmer, so I don't know very much about it, but I have created a few apps already.
The example looks really interesting, but I think it only shows how to read a registry key. How can I write one instead?
ProvXML reference (I did tell you how to find this yourself...) http://msdn.microsoft.com/en-us/library/gg155017.aspx
You want the registry provider, obviously, and you want to delete a key, so that will be a nocharacteristic element.
Physatty said:
Hello,
I experimented with the WP7 Root Tools and tried to add an own theme by creating a folder called "2" inside the Themes folder in the registry. After I did that I could not open any app anymore. I can't open the Root Tools app or any other marketplace-app. I tried to fix the problem with the MFG menu of my LG e900 but I can't start that either.
Do you have any way to fix my problem? I don't want to reset my phone and loose all my text messages and my dictionary!
Click to expand...
Click to collapse
i had the same issue, but i tried it a few months ago manually, to manage the second folder. but i messed the same thing up, its not the fault of wp7 root tools, its just to the registry. my out was an hard reset. which resets the registry too.
Dinchy87 said:
i had the same issue, but i tried it a few months ago manually, to manage the second folder. but i messed the same thing up, its not the fault of wp7 root tools, its just to the registry. my out was an hard reset. which resets the registry too.
Click to expand...
Click to collapse
And that's what I did now.

[Q] how to make my apps autorun whenever my phone starts

hi,guys
i try to achieve it by using fiinix's dllimport dll,but now i have no idea?whocan give me some advices?
thank you!
This is a mildly scary idea, but an interesting potential hack.
On desktop Windows, you'd either use the registry, the Startup folder of the Start menu, or create an NT Service that ran automatically.
The registry key is
HKCU\Software\Microsoft\Windows\CurrentVersion\Run
or
HKLM\Software\Microsoft\Windows\CurrentVersion\Run
but WP7 only has those registry paths up through CurrentVersion. You could try creating the Run key, and adding entries under it, though.
WP7 doesn't have a "Startup" sub-folder of the Start menu the way that Windows for the PC does, but it does have a Startup folder. The path is \Windows\Startup. You'd probably want to create a shortcut, most likely to "app://<APP_GUID_HERE>/_default" because that's how app paths are described in the registry, although I can't promise that would work.
While WP7 does have Services, I don't think they're how you'd want to do this. For one thing, they may need to be written in native code, which would make it very tricky to run them on a stock ROM.
In any case, any of these changes are going to require at least interop-unlock (root-unlock would make it easier) or full-unlock. Using DllImport doesn't actually give you any extra permissions; it just makes it eaier to call native functions. They still run with your limited permissions (such as no ability to edit the Registry or the \Windows folder), though.
GoodDayToDie said:
This is a mildly scary idea, but an interesting potential hack.
On desktop Windows, you'd either use the registry, the Startup folder of the Start menu, or create an NT Service that ran automatically.
The registry key is
HKCU\Software\Microsoft\Windows\CurrentVersion\Run
or
HKLM\Software\Microsoft\Windows\CurrentVersion\Run
but WP7 only has those registry paths up through CurrentVersion. You could try creating the Run key, and adding entries under it, though.
WP7 doesn't have a "Startup" sub-folder of the Start menu the way that Windows for the PC does, but it does have a Startup folder. The path is \Windows\Startup. You'd probably want to create a shortcut, most likely to "app://<APP_GUID_HERE>/_default" because that's how app paths are described in the registry, although I can't promise that would work.
While WP7 does have Services, I don't think they're how you'd want to do this. For one thing, they may need to be written in native code, which would make it very tricky to run them on a stock ROM.
In any case, any of these changes are going to require at least interop-unlock (root-unlock would make it easier) or full-unlock. Using DllImport doesn't actually give you any extra permissions; it just makes it eaier to call native functions. They still run with your limited permissions (such as no ability to edit the Registry or the \Windows folder), though.
Click to expand...
Click to collapse
good idea!but it is a little difficult to achieve now.and do you know fiinix's screen_capture app use backroundworker to achieve the backround task.however,when i use such method on my htc T9292,nothing happened.do i need any other skill to achieve such goal?

HTC Omega Registry editor not working

Hello!
I've installed the custom ROM on my HTC Radar. I've tried to edit some parameters in the registry using the registry editor got with the ROM, but it doesn't work. I write in the new parameter, I tap on the done button, but when I refresh the registry editor, it resets the oroginal value. I tried to add a new value, but same situation. It appears, and after a refresh, it disappears. I can't edit any values in the registry... I'd like to change the original tile colors, but I simply can't edit the registry. Neither work the tile color changing apps.
Please, give me a link of a working registry editor, or a solution.
Thanks!
I suggest using WP7 Root Tools for now. You don't really need the "root unlock" part of it, but it includes a quite respectable registry editor built in.
It's very possible that custom ROMs are still shipping the old TouchXperience registry editor app for some reason. That thing is obsolete and uses a method of high-privilege access that requires a firmware version older than any HTC Radar ever made.
Thanks!
GoodDayToDie said:
I suggest using WP7 Root Tools for now. You don't really need the "root unlock" part of it, but it includes a quite respectable registry editor built in.
It's very possible that custom ROMs are still shipping the old TouchXperience registry editor app for some reason. That thing is obsolete and uses a method of high-privilege access that requires a firmware version older than any HTC Radar ever made.
Click to expand...
Click to collapse
Big big big big thanks for you, with the WP root tools I can edit the registry finally!

Categories

Resources