Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[XAP][SOURCE] WP8 Registry Tools

OP snickler

6th August 2013, 11:04 PM   |  #1  
snickler's Avatar
OP Forum Moderator / Recognized Developer
Flag Wheeling, WV
Thanks Meter: 538
 
895 posts
Join Date:Joined: Aug 2010
Donate to Me
More
Rebranded to WP8 Registry Tools from Lumia Registry Modifier

This is a basic registry viewer/editor demonstration using Registry dlls pulled from Nokia xaps within the latest FFUs.

First, a few things to note.

1) This only retrieves values from HKEY_LOCAL_MACHINE
2) It CAN read DWORD values now, but can't write. (Hell you probably won't be able to write ANYWHERE, but the code is there)


Instructions are quite simple.

To Read Values:

1) Put the Registry key in the first box (ex. SOFTWARE\Classes\MIME\Database\Codepage\1254
2) Put the Registry Value in the second box (ex. 1254)
3) Press Get Value.

To Set Values:

1) Put the Registry key in the first box (ex. SOFTWARE\Classes\MIME\Database\Codepage\1254
2) Put the Registry Value in the second box (ex. 1254)
3) Put the new registry value result in the Set Value box.
4) Press Set Value.

This is very very basic, but I wanted to just show off something using what Nokia has provided us.

We can't write dword values unfortunately so hopes of using this to change the MaxUnsignedApp value are lost. This MAY be possible with @GoodDayToDie 's WP8NativeAccess library, but with this it isn't.

In case everyone wondered what that key is... SOFTWARE\Microsoft\DeviceReg\Install

Side load away
Attached Files
File Type: xap WP8RegistryToolsv1.1.xap - [Click for QR Code] (201.5 KB, 6112 views)
File Type: rar WP8RegistryToolsv1.1-Source.rar - [Click for QR Code] (397.2 KB, 2738 views)
Last edited by snickler; 19th August 2013 at 12:45 AM.
The Following 20 Users Say Thank You to snickler For This Useful Post: [ View ]
6th August 2013, 11:47 PM   |  #2  
Recognized Developer
Flag Seattle
Thanks Meter: 2,788
 
5,870 posts
Join Date:Joined: Jan 2011
More
Hmm... I get Access Denied in my library on most keys that I've tried to write. If you can write the codepage, that's interesting (generally speaking, HKLM has stronger protections). I'll double-check whether I can write there myself. If not, but you can, then we have an elevated privilege attack vector...

Also, we should see whether the app runs on non-Nokia devices. I suspect that it will, if it works the way I think it does, but in that case it also won't have much in the way of permissions.

Getting DWORDs to work is a good project, I'm sure it's possible (works fine in NativeAccess, incidentally).

EDIT: Any chance you could include the source?
The Following User Says Thank You to GoodDayToDie For This Useful Post: [ View ]
6th August 2013, 11:48 PM   |  #3  
aclegg2011's Avatar
Senior Member
Thanks Meter: 182
 
309 posts
Join Date:Joined: Mar 2011
Quote:
Originally Posted by snickler

This is a basic registry viewer/editor demonstration using Nokia's Native Registry dll pulled from one of their apps.

First, a few things to note.

1) This only retrieves values from HKEY_LOCAL_MACHINE
2) DWord values aren't supported.


Instructions are quite simple.

To Read Values:

1) Put the Registry key in the first box (ex. SOFTWARE\Classes\MIME\Database\Codepage\1254
2) Put the Registry Value in the second box (ex. 1254)
3) Press Get Value.

To Set Values:

1) Put the Registry key in the first box (ex. SOFTWARE\Classes\MIME\Database\Codepage\1254
2) Put the Registry Value in the second box (ex. 1254)
3) Put the new registry value result in the Set Value box.
4) Press Set Value.

This is very very basic, but I wanted to just show off something using what Nokia has provided us.

This doesn't seem to work with dword values unfortunately so hopes of using this to change the MaxUnsignedApp value are lost. This MAY be possible with @GoodDayToDie 's WP8NativeAccess library, but with this it isn't.

In case everyone wondered what that key is... SOFTWARE\Microsoft\DeviceReg\Install

Side load away

atleast its a start.
7th August 2013, 12:28 AM   |  #4  
snickler's Avatar
OP Forum Moderator / Recognized Developer
Flag Wheeling, WV
Thanks Meter: 538
 
895 posts
Join Date:Joined: Aug 2010
Donate to Me
More
Quote:
Originally Posted by GoodDayToDie

Hmm... I get Access Denied in my library on most keys that I've tried to write. If you can write the codepage, that's interesting (generally speaking, HKLM has stronger protections). I'll double-check whether I can write there myself. If not, but you can, then we have an elevated privilege attack vector...

Also, we should see whether the app runs on non-Nokia devices. I suspect that it will, if it works the way I think it does, but in that case it also won't have much in the way of permissions.

Getting DWORDs to work is a good project, I'm sure it's possible (works fine in NativeAccess, incidentally).

EDIT: Any chance you could include the source?

ah yes, sorry about that. Let me load up my laptop

EDIT: Source added.
Last edited by snickler; 7th August 2013 at 12:36 AM.
The Following User Says Thank You to snickler For This Useful Post: [ View ]
7th August 2013, 04:14 AM   |  #5  
vivekkalady's Avatar
Recognized Developer
Flag Trivandrum
Thanks Meter: 1,397
 
1,290 posts
Join Date:Joined: Aug 2009
Donate to Me
More
Hi I found the Registry item
(File path : <ffu>\Windows\Packages\RegistryFiles\SOFTWARE.RE G)

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Explorer\KindMap

where we can set extensions and their types.so is it possible to add a new extension so that it will also be supported and visible in sdcard ?
The Following User Says Thank You to vivekkalady For This Useful Post: [ View ]
7th August 2013, 04:34 AM   |  #6  
snickler's Avatar
OP Forum Moderator / Recognized Developer
Flag Wheeling, WV
Thanks Meter: 538
 
895 posts
Join Date:Joined: Aug 2010
Donate to Me
More
Quote:
Originally Posted by vivekkalady

Hi I found the Registry item
(File path : <ffu>\Windows\Packages\RegistryFiles\SOFTWARE.RE G)

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Explorer\KindMap

where we can set extensions and their types.so is it possible to add a new extension so that it will also be supported and visible in sdcard ?

It doesn't support creating new key values, only modifying existing ones. If the data is within one key value and it's able to be read, then it should be able to have things added to it.

EDIT: From what I've seen, what you're trying to do won't be possible with this. Each extension has a different key value.
The Following User Says Thank You to snickler For This Useful Post: [ View ]
7th August 2013, 08:20 AM   |  #7  
Recognized Developer
Flag Seattle
Thanks Meter: 2,788
 
5,870 posts
Join Date:Joined: Jan 2011
More
We may need to start an "interesting registry values" thread here, similar to the one for WP7. Of course, it'll be more interesting if we can actually change any of them.

Oh, and the app works on my ATIV S, just by the way. Need to find some interesting paths to test it on, though.

EDIT: Have you been able to write to *any* values using this? It fails for me every time, but I haven't tried that many yet.
Last edited by GoodDayToDie; 7th August 2013 at 08:54 AM.
The Following 2 Users Say Thank You to GoodDayToDie For This Useful Post: [ View ]
7th August 2013, 02:07 PM   |  #8  
snickler's Avatar
OP Forum Moderator / Recognized Developer
Flag Wheeling, WV
Thanks Meter: 538
 
895 posts
Join Date:Joined: Aug 2010
Donate to Me
More
Quote:
Originally Posted by GoodDayToDie

We may need to start an "interesting registry values" thread here, similar to the one for WP7. Of course, it'll be more interesting if we can actually change any of them.

Oh, and the app works on my ATIV S, just by the way. Need to find some interesting paths to test it on, though.

EDIT: Have you been able to write to *any* values using this? It fails for me every time, but I haven't tried that many yet.

it has failed for me also. The only values I could write to were the ones that corresponded to Nokia. I'll look through the code again and make another update. I'm going to also rebrand it since it works for non Lumia phones.
7th August 2013, 06:49 PM   |  #9  
Recognized Developer
Flag Seattle
Thanks Meter: 2,788
 
5,870 posts
Join Date:Joined: Jan 2011
More
Interesting about the Nokia paths working. That could be some characteristic of the DLL you use having better permissions or something specific to OEM stuff, but I actually suspect it's just that Nokia didn't bother to lock down the ACLs on their parts of the registry. You can easily adapt the app to my NativeRegistry class to test this, if you want.
7th August 2013, 07:01 PM   |  #10  
snickler's Avatar
OP Forum Moderator / Recognized Developer
Flag Wheeling, WV
Thanks Meter: 538
 
895 posts
Join Date:Joined: Aug 2010
Donate to Me
More
Hmm that's a good idea. I just rebranded it to WP8 Registry Modifier. I'll add in your NativeRegistry class to work along with the RegistryRT class to see what comes about.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes