[XAP - Source] Samsung Registry Editor - Windows Phone 7 Development and Hacking

A lot of you guys have been asking about how to read/write/add values to the registry on Samsung devices, so I wrote a small app showing how to use the Samsung native DLLs to do so.
Please notice that you can use this app called RegistryViewer that works on all WP7 devices [read only for now, but useful to discover the registry] here http://forum.xda-developers.com/showpost.php?p=9716755&postcount=19
This app is limited too compared to the HTC ones, unfortunately a big part of the registry is restricted for read/write.

Nice! I have a samsung
There is no way to list the reg keys right?

tried to read some values, but all i get is gibberish...
how can i build the solution i get a missing reference error for "using Microsoft.Phone.InteropServices;"

eried said:
Nice! I have a samsung
There is no way to list the reg keys right?
Click to expand...
Click to collapse
Yes you can, here is a registry viewer to list the reg keys http://forum.xda-developers.com/showpost.php?p=9716755&postcount=19
tried to read some values, but all i get is gibberish...
how can i build the solution i get a missing reference error for "using Microsoft.Phone.InteropServices;"
Click to expand...
Click to collapse
This is natural when you try to access restricted areas in the registry or you try to read a DWORD while it is a String and vice versa!
For the InteropServices look at the requirements in my blog post here http://www.martani.net/2010/12/reading-imei-on-windows-phone-7-devices.html

Here is a new version of my app that support Samsung device.
XAP: http://bit.ly/eEZ0Uf

Perhaps we can combine this with the registry tweaks to create an on device app limit remover. I am sifting through your code and am gonna combine it if I can figure it out correctly.
This should work.
[HKEY_LOCAL_MACHINE\Software\Microsoft\DeviceReg\Install]
"MaxUnsignedApp"=dword:7fffffff ; Allow max number of unsignd apps
[HKEY_LOCAL_MACHINE\Software\Microsoft\DeviceReg]
"PortalUrlProd"=""
"PortalUrlInt"=""
Click to expand...
Click to collapse

I have finally gotten this working correctly. I will post my results however I will not post the product because I know it will inevidetly support piracy.

I have gotten it compiled, however it is not reading or writing to the registry properly.

FireSokar said:
I have gotten it compiled, however it is not reading or writing to the registry properly.
Click to expand...
Click to collapse
please take a look at the posts above http://forum.xda-developers.com/showpost.php?p=10565219&postcount=4

so what would the format i enter be to get the values i posted above?

FireSokar said:
so what would the format i enter be to get the values i posted above?
Click to expand...
Click to collapse
What values in the registry you are trying to access/modify ?

[HKEY_LOCAL_MACHINE\Software\Microsoft\DeviceReg\In stall]
"MaxUnsignedApp"=dword:7fffffff ; Allow max number of unsignd apps
[HKEY_LOCAL_MACHINE\Software\Microsoft\DeviceReg]
"PortalUrlProd"=""
"PortalUrlInt"=""
I want to set the values to that. This way my phone can install unlimited apps and will not check if it should be allowed to.. I am a developer however have an 3 app limit and chevron still gets reverted after x amount of days. According to what i've read this should prevent the revert.

FireSokar said:
[HKEY_LOCAL_MACHINE\Software\Microsoft\DeviceReg\In stall]
"MaxUnsignedApp"=dword:7fffffff ; Allow max number of unsignd apps
[HKEY_LOCAL_MACHINE\Software\Microsoft\DeviceReg]
"PortalUrlProd"=""
"PortalUrlInt"=""
I want to set the values to that. This way my phone can install unlimited apps and will not check if it should be allowed to.. I am a developer however have an 3 app limit and chevron still gets reverted after x amount of days. According to what i've read this should prevent the revert.
Click to expand...
Click to collapse
Ok, the COMRilClient.dll doesn't seem to change these values, but I just tried the functions in FCRouterProxy.dll and it worked perfectly.
Take a look at this thread, it shows how to use the FCRouterProxy.dll (which is the same method anyways) http://forum.xda-developers.com/showthread.php?t=914055

I'm not exactly smart on coding... you wouldn't wanna get this started off would you? After all this is something that most samsung owners would want.

FireSokar said:
I'm not exactly smart on coding... you wouldn't wanna get this started off would you? After all this is something that most samsung owners would want.
Click to expand...
Click to collapse
Lol I can't get it figured out either...i should have paid better attention when I was in school lol....glad someone asked though

FireSokar said:
I'm not exactly smart on coding... you wouldn't wanna get this started off would you? After all this is something that most samsung owners would want.
Click to expand...
Click to collapse
In the same thread actually, there is an app that uses that DLL to edit registry http://forum.xda-developers.com/showpost.php?p=10623201&postcount=19

I'll have a look at it in the morning. Don't feel like getting off the laptop. I'll post if I get anywhere. Thanks for the link.

OMG Getting update on Rogers Samsung Focus
Changed the carrier ID to 000-88 (before I had it debranded blank). Took a few tries but it worked. That VPN to Hungary is hella slow but the update downloaded and I'm now in the backup phase. Will post again with final results.

has anyone had issues getting the samsung registry to run on 7008

cgrizz said:
has anyone had issues getting the samsung registry to run on 7008
Click to expand...
Click to collapse
Wondering this myself. On my ATT Focus, once I got NoDo installed I started getting the following message when trying to run SamsungRegistry, "SamsungRegistry has been revoked by Microsoft. Please uninstall it."
Not a big deal, just wanted to switch my MobileOperator key back.

Related

Remove limit of 10 unsigned app

I've finally reach 10 unsigned app on my phone. Took way longer that I thought...
This is not new for anyone who's not spending time asking for unlock key, but I've made a small app to automate the process of pushing the limit to 100000.
Here it is: http://bit.ly/qpVyR4
Work on my HTC, may work on other device as well (let me know).
Warning: At least one person had problem deploying app on his Samsung after running this app.
Edit: Updated version with rollback button (which already exists but was hidden )
this has been out for like a month now..... but good job of creating one!
http://forum.xda-developers.com/showthread.php?t=875885
Exactly what I said... nothing new but packaged as a XAP
Advanced Configuration Tool for WP7 Beta
http://forum.touchxperience.com/viewtopic.php?f=11&t=590&p=2349
has an option to remove the limit, plus set as many colour schemes as you like, and add single registry keys directly.
Its still beta but works a treat so far on my HD2, and comes with about 50 colours for the theme, or input your own with hex codes.
This tools works only on HTC. Minne should work on Samsung too, maybe on LG.
But if you have an HTC, AdvConfig is probably easier to use.
I'm not spending much time making pretty app
I ran this earlier (along with setting the key manually before), and it doesn't work. I still was limited to 10 apps.
But now, frighteningly, I'm unable to deploy -some- apps from Visual Studio (limit reached). I have a real dev unlock, never messed with Chevron.
Thanks, (nico)! I've removed this (stupid!) limit on my Focus (officially unlocked), everything works fine including deployment/debug from VS 2010. Good job!
davux said:
I ran this earlier (along with setting the key manually before), and it doesn't work. I still was limited to 10 apps.
But now, frighteningly, I'm unable to deploy -some- apps from Visual Studio (limit reached). I have a real dev unlock, never messed with Chevron.
Click to expand...
Click to collapse
I'm also officially unlock.
Like with folks with Chevron, I think the limit will be reseted periodically by Zune.
What do you mean by "some" apps?
You can't install more than 10 apps?
Not sure what do you mean, but I'll try to answer.
Using (official) unlock method, you won't be able to deploy more than 10 unsigned apps. 3 if you have a student account.
Chevron also have the same 10 limit (because they intentionally keep MS limit).
This registry tweak try to remove that limit.
In either way, this don't modify the number of app you can install though Marketplace, which is not limited.
(nico) said:
I'm also officially unlock.
Like with folks with Chevron, I think the limit will be reseted periodically by Zune.
What do you mean by "some" apps?
Click to expand...
Click to collapse
I set the key manually in the code Rusty released for the Samsung devices the other day. I wasn't able to deploy the 11th app via VS. I continued dealing with it until I got your XAP, I ran that yesterday and now sometimes I have trouble deploying in VS, even with <10 apps. Restarting VS and the phone doesn't have any effect.
Not that I'm blaming you or anything - just figured I'd note my experience. Some projects will still deploy, not sure of the pattern yet.
Thanks, that the kind of feedback I'm looking for. I'll add this to the first post to warn people.
If you have more infos, please share so we can have something more stable.
Thanks!
* Works on [Europe] Omnia 7
Ah this is the tool that some XDA user was trying to pass off as his own tool.
The big Athiest said:
Ah this is the tool that some XDA user was trying to pass off as his own tool.
Click to expand...
Click to collapse
What are you talking about?
(nico) said:
What are you talking about?
Click to expand...
Click to collapse
Look up the RRTool in this forum that I wrote, he is basically saying I rebranded the Chevron Tool as my own, even though my Tool runs on the device not from desktop and only prevents relocking, it doesnt actually unlock a device like chevron does. He only has 2 posts and tried to ruin my credability! Not Happy!
He is a lame troll. Don't pay attention. Thank you both guys! Great job!
P.S. Just a small remark: after using your tools (first I've tried (nico)'s tool, later (toady) RRTool. Both works good but behavior of VS 2010 a little bit changed. Now I can't deploy project via Zune - must close it first and use WPConnect.
Did you try to restore the original value (probably 10 for most users) and see what happends?
Nope, I didn't. Just have no time to browse for Samsung's registry editor or reflect back your's or lyriquidperfection app. Could you add an option to restore back an original values? Anyway, it's not a real problem. MS limitation of 10 app (or 3 for student account) it's just stupid and unfair. What, if I have more than 10(3) homebrew projects to debug and run? What, if I want to recreate all apps I need by myself? But of course the "MS greediness sux!" is not a topic for this thread
sensboston said:
Nope, I didn't. Just have no time to browse for Samsung's registry editor or reflect back your's or lyriquidperfection app. Could you add an option to restore back an original values? Anyway, it's not a real problem. MS limitation of 10 app (or 3 for student account) it's just stupid and unfair. What, if I have more than 10(3) homebrew projects to debug and run? What, if I want to recreate all apps I need by myself? But of course the "MS greediness sux!" is not a topic for this thread
Click to expand...
Click to collapse
Sorry I thought I did it but the button was hidden
Here is an updated version with a restore button to 10 apps: http://bit.ly/gKZDgj

Changing Registries

I want to do the following:
xboxmod said:
Google
Code:
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchScopes]
"DefaultScope"="Google"
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchScopes\Google]
"URL"="http://www.google.com/m?hl=en&gl=us&client=ms-hms-tmobile-us&q={searchTerms}"
Click to expand...
Click to collapse
I installed Registry Editor from TouchXperience on my Samsung Omnia 7. I went to:
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchScopes]
And changed DefaultScope's value to "Google" (without the quote obviously). For:
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchScopes\Google]
I need to create a new key and name it Google in SearchScopes, right?
I tried to do that, but Registry Viewer could not create the new key. I tried multiple times, but it wouldn't work. I get the following error:
Unable to create registry key "Google".
I also accidentally created a new value called "a" but when I try deleting it, I get a similar error. I get the following error:
Unable to delete registry value "a".
TouchXperience registry editor uses the COMRilClient.dll from Samsung to get access to the registry on Samsung devices. This dll only allows read/write of dword and string values. It does not allow to create/delete keys and it does not allow to delete values. It is also restricted to keys that have permissions for Elevated Privileges. It has no access to key that need TCB permissions.
At the moment I am working on "WP7 Root Tools" which allows you to read and write to the entire registry. At the moment I am using a little part of the Samsung drivers, so for now it is only suitable for Samsung devices. I will try to make it work for all devices in time. With a work-around I have access to the phone with TCB privileges.
I have been working on it for quite a time now and I am close to releasing an alpha version. It has been delayed, because last month my grandpa died and now my mother is on Intensive Care because she had an aneurism and needed brain surgery. She is recovering in very little steps and I pray she will be fully recovered after rehabilitation.
So I am not fully committed to hacking at this moment, but I promise it won't be very long before I can release a working alpha version.
Thanks for the info, though does that mean I can't even remove the "a" value that I accidentally added?
I'm sorry to hear about your family situation. I hope your mother fully recovers sooner than later.
Chaoticaa said:
Thanks for the info, though does that mean I can't even remove the "a" value that I accidentally added?
Click to expand...
Click to collapse
Yes, that's right. But it probably won't do any harm. So don't bother.
Chaoticaa said:
I'm sorry to hear about your family situation. I hope your mother fully recovers sooner than later.
Click to expand...
Click to collapse
Thanks.
Heathcliff74 said:
But it probably won't do any harm. So don't bother.
Click to expand...
Click to collapse
Yeah, it doesn't even make sense for it to have any affect unless something is looking for that value name in my registry. I'm just a neat-freak that hates that extra accidental value a lot more than the fact that I can't do what I was trying to accomplish.
Chaoticaa said:
Yeah, it doesn't even make sense for it to have any affect unless something is looking for that value name in my registry. I'm just a neat-freak that hates that extra accidental value a lot more than the fact that I can't do what I was trying to accomplish.
Click to expand...
Click to collapse
You could always hard-reset your phone
Hahaha not that bothered by it.

[XAP] LG Test App (provxml query) 1

Hi folks,
I need a few testers with LG devices to try something for me. This app is a test app to see if it might be possible to write a registry browser using no homebrew native DLLs (and therefore it would work on Mango).
The test app does not require Mango, but will run on Mango if your device is unlocked for Mango homebrew ("full unlock", not just "dev unlock"). Don't remove ID_CAP_INTEROPSERVICES; the app almost certainly work without it.
Please run the three tests and report the results. You can then uninstall the app. It will make no changes to your phone. Whether successful or unsuccessful, I have more tests that I'll want to run later. Thanks for helping out; I don't have an LG device so you're really just helping yourselves!
Note: I'm aware that Heathclif74 is bringing his Root Tools app to LG and to Mango, so in the long run this won't be needed. However, it may still be useful - as an interim solution or as an easy way to get interesting results.
EDIT 1: Thanks folks! Due to the third testing returning wayyyyy too many results, I suggest you don't run this anymore - I've got the data I need to create another version. I'll post test 2 later (and I'll have a better way to handle anything expected to return lots of data).
Ok, I will testing after ~5 hours.
I was thinking of the same thing although i tried to copy the repsonse xml files on samsungs to query, but unfortunately they were empty and querying did not work for me. I remember that LG indeed has a query api (it will probably only work on the registry and not on the file system itself).
Good luck with it, if you need help let me know
LG Optimus 7, V7392
Test 1= 1
Test 2= Sub.key contained 1 values: Version
Test 3= a whole bunch of results, maybe 150 !!!!!
If i have more time would report it all.
Thanks
LG Quantum: 7720.68
Test 1:
Success
the value was 1
Test 2:
Sub-key contained 1 values:
Version
Test 3:
attached 1st page as image.
all following pages as jpeg package (images 1168 through 1187)
it should be straight forward to OCR these if necessary.... (btw. it's not possible to create txt file and email this within your app? )
btw. Marvin_S and GoodDayToDie, some of this looks like a set of the config.xml that I can call up with the MFG tool on the phone.
the entire config.xml is here:
http://daytonacs.org/files/wp7/
image IMG_1160 (600x800).jpg through IMG_1167 (600x800).jpg
You say we need to full unlock our LG devices if we are on Mango. How can we do this if we can only unlock HTC devices? Did I miss something here?
airwa1kin7 said:
You say we need to full unlock our LG devices if we are on Mango. How can we do this if we can only unlock HTC devices? Did I miss something here?
Click to expand...
Click to collapse
I think dev unlock here is meant to be a legit developer unlocked device via an AppHub account etc.
Not the way LG users use the MFG tool to unlock their phones. I consider this as fully unlocked because I can sideload ID_CAP_INTEROPSERVICES xaps perfectly fine, whereas a user with a legit dev unlocked device cannot. They just get the dreaded E: 0x81030120 error.
Here is what the expert says.
The current status with LG devices on Mango is that registry changes are possible via DiagProvXML (MFG tool aside) but file ops are restricted.
1 and 2 tests - same.
What you need from 3th test? I don't understand.
minep said:
1 and 2 tests - same.
What you need from 3th test? I don't understand.
Click to expand...
Click to collapse
he needs the entire query result for research into LG on-device file operations and registry changes. Since it's many pages of code and no way to export to txt the best way is to take pics of your device for each page you can scroll through (see my post above).
That need change to TextBox.
Whoa, thanks guys!!
Not sure what test 3 is doing - it should be only retrieving results one level deep (recursive=false). This will need to be explored more.
However, the actual result is fantastic! Please stop running the app for now until I come up witha new version that doesn't throw pages and pages of results at you.
@derausgewanderte: I opened up Visual Studio to start that app less than 30 minutes before posting it. Total hack, no frills. I was only expecting maybe 20 results max for the third test, and not recursive ones either!
GoodDayToDie said:
Whoa, thanks guys!!
Not sure what test 3 is doing - it should be only retrieving results one level deep (recursive=false). This will need to be explored more.
However, the actual result is fantastic! Please stop running the app for now until I come up witha new version that doesn't throw pages and pages of results at you.
@derausgewanderte: I opened up Visual Studio to start that app less than 30 minutes before posting it. Total hack, no frills. I was only expecting maybe 20 results max for the third test, and not recursive ones either!
Click to expand...
Click to collapse
either way, there seems to be tons of interesting information in there

Samsung Call Blocking XAP

Hi guys
Ive got my hands on the new Samsung call blocking app, ive installed it to my HTC Titan. It does fire up but cant do much with it.....
http://wmpoweruser.com/samsung-releases-call-blocking-app-for-its-devices/
Hopefully someone here can make it work for the rest of us.
Kev
Update..... Ive now uploaded the unchanged xap with the INTEROPSERVICES unchanged
Sutt359 , thanks!
yes, I too tried installing it on my Mozart. Deploying worked, actually, but it throws an error when I try to add a number to the blocklist. Hope someone can make this work
Localhorst86 said:
yes, I too tried installing it on my Mozart. Deploying worked, actually, but it throws an error when I try to add a number to the blocklist. Hope someone can make this work
Click to expand...
Click to collapse
Same error on my OMNIA 7. It looks like that it´s only for the OMNIA W or the new Focus devices...
Localhorst86 said:
yes, I too tried installing it on my Mozart. Deploying worked, actually, but it throws an error when I try to add a number to the blocklist. Hope someone can make this work
Click to expand...
Click to collapse
tried on Hd7, the same result. any idea how to uninstall the app from system?
thanx!
Redeploy the app but Change the HubType from "268435456" to anything else or delete it from the WMAppManifest.xml inside the XAP
I have the same problem , Error when put number in the field and save on Omnia 7
wait, I can't even get the app to work on my samsung focus, it says, this app is not available for your device...help?
I installed this just now, with the mod from above, and it starts up, has it's own listing in the programs list, but doesn't actually do anything. When you try to add a number it just returns to the app list (aka crashes). On next start the numbers list is empty. Omnia 7
Maybe somebody removed ID_CAP_INTEROPSERVICES from the app's manifest? This app uses a native DLL called SecProxyClient.dll. My guess is that this app needs to call into a driver found on Samsung phones. In order to do that, it'll need ID_CAP_INTEROPSERVICES specified in its manifest. Maybe try that?
I'm going to see if I can figure out what the app is doing. With luck, it's something I can duplicate on other phones, like a registry edit or some such. If it requires a function that only the Samsung driver has, though, the odds aren't good this side of a custom ROM.
Dammit, I've wanted this feature, too...
Deploy Works in Lg optimus 7 but the App not. I don´t have error messages but don´t save the numbers.
Thanks
Well, pasting "ID_CAP_INTEROPSERVICES" into WPInteropManifest.xml doesn't seem to make any difference.
Wrong manifest. It's a capability. It goes in WMAppManifest.xml.
These are pretty basic elements of homebrew or even official WP7 app development, but just to make life easier for people, I'll attach a version with the modification.
Remember that I can't test this app; I have no idea if this will help at all or not. It's a reasonable guess, though. There's also a weird file, just called "_" and containing a string of Hax values. I don't know what it's used for or how important it is.
GoodDayToDie said:
Wrong manifest. It's a capability. It goes in WMAppManifest.xml.
These are pretty basic elements of homebrew or even official WP7 app development, but just to make life easier for people, I'll attach a version with the modification.
Remember that I can't test this app; I have no idea if this will help at all or not. It's a reasonable guess, though. There's also a weird file, just called "_" and containing a string of Hax values. I don't know what it's used for or how important it is.
Click to expand...
Click to collapse
Samsung Focus 1st gen, still get error " Failed to save. Application may not work properly."
Here is the site where it talks about it, and when you goto the site to download it says app not found, so they may be having problems with it in general.
http://wmpoweruser.com/samsung-releases-call-blocking-app-for-its-devices/
GoodDayToDie :
I tried it on Focus and it gave me an error when I tried saving a contact with message as
"Failed to Save. Application may not work properly"
Interesting that GoodDayToDie's mod does change something though. Instead of just exiting it does give that error message now.
I vote we add more things to manifest files!
Seems like it's removed from marketplace; may be 'cause of bugs. Let's check app update later...
It's also using a DLL I've not actually seen before. It might be targeting a driver that's only found in the Focus S or some such silliness.
GoodDayToDie said:
It's also using a DLL I've not actually seen before. It might be targeting a driver that's only found in the Focus S or some such silliness.
Click to expand...
Click to collapse
Here's the xap I been used and worked for my Focus S. I deployed it with resumable xap deployer.
ManelScout4Life said:
Here's the xap I been used and worked for my Focus S. I deployed it with resumable xap deployer.
Click to expand...
Click to collapse
It is throwing an error while deploying asking to Re-sign will valid signature and fix manifest file. Can you fix that ?

[XAP] Orientation Lock: self-explanatory

Tada. Here's a little stupid-simple something I made to cure my frustrations.
Whooo. New version, basically wiped up the whole post. Oops.
Anyway, here's orientation lock, an application that, well, locks your orientation. It does this by setting the accelerometer to power state D4, then back to D0 to revive it.
Using DllImport:
Code:
DllImportCaller.lib.StringIntIntCall("coredll", "SetDevicePower", "ACC1:", 1, (int)Phone.Network.WiFi.PowerState.D0);
Simple. Worked on my HD7, Lumia, and Focus. Lmk if you have any issues.
Oh, and known problem: HTC devices detect the accel sensor as active, even when it isn't. Weird. Toggling the button back and forth works, though.
Download: http://windowsphonehacker.com/articles/orientation_lock_release-02-06-12
Cheers!
DeactivateDevice() ACC1: on HTC device will make phone reboot.
ted973 said:
DeactivateDevice() ACC1: on HTC device will make phone reboot.
Click to expand...
Click to collapse
Is that from this application or when you do it using native APIs?
Jaxbot said:
Is that from this application or when you do it using native APIs?
Click to expand...
Click to collapse
oh, i try this before and your app is same result.
DeactivateDevice()
change registry "Dll"
ActivateDeviceEx()
Process above, sometimes works on HTC Device, but it is real "sometimes"!
ted973 said:
oh, i try this before and your app is same result.
DeactivateDevice()
change registry "Dll"
ActivateDeviceEx()
Process above, sometimes works on HTC Device, but it is real "sometimes"!
Click to expand...
Click to collapse
I know you can change it in the registry, but I was hoping for something a little more integrated. I wonder what the deal with HTC is.
Jaxbot said:
I know you can change it in the registry, but I was hoping for something a little more integrated. I wonder what the deal with HTC is.
Click to expand...
Click to collapse
does samsung & lg device have this in registry:
[HKLM\Drivers\BuiltIn\Accelerometer]
"ForegoundModule"="\Windows\TaskHost.exe"
ted973 said:
does samsung & lg device have this in registry:
[HKLM\Drivers\BuiltIn\Accelerometer]
"ForegoundModule"="\Windows\TaskHost.exe"
Click to expand...
Click to collapse
Samsung doesn't, nor does it have all the X Y Z values.
works on focus s, surprisingly....
ManelScout4Life said:
works on focus s, surprisingly....
Click to expand...
Click to collapse
Why wouldn't it? And I saw your comment on Wpcentral, thanks for that. I don't blame anyone, even I get confused with all these different devices and driver versions. Seems only the end consumer has a consistent experience
Jaxbot said:
Why wouldn't it? And I saw your comment on Wpcentral, thanks for that. I don't blame anyone, even I get confused with all these different devices and driver versions. Seems only the end consumer has a consistent experience
Click to expand...
Click to collapse
With all the changes in the gen2 software, I figured it wouldn't work. Just like none of the interop apps work so far I figured this would be on the same boat.
ManelScout4Life said:
With all the changes in the gen2 software, I figured it wouldn't work. Just like none of the interop apps work so far I figured this would be on the same boat.
Click to expand...
Click to collapse
Nah, they don't work because of other changes, but it's a good thought, and I was worried myself. Glad to see it does, though
More specifically, most homebrew interop apps don't work on Samsung Gen2 because they use OEM drivers that are specifically designed to allow apps to do high-privilege things their sandbox normally prevents. In gen2 firmware, Samsung crippled those drivers somehow, locking them down to their own apps only (bears more investigating, but that's the best explanation I've found so far).
This, on the other hand, is simply opening a driver that's built into the phone - all phones, apparently - and is an actual device driver, not a software driver intended forleaving the sandbox. Samsung can't cripple that, or it wouldn't be possible for any app to use the accelerometer. Interop unlock is still required, though - in simple terms, what ID_CAP_INTEROPSERVICES regulates is "Can the app open a direct handle to a driver?" and this app needs to do this.
Update for everyone:
No more interop unlock, now allows toggling. You're welcome =D
http://windowsphonehacker.com/articles/orientation_lock_release-02-06-12
Also a video with my sexy new phone (Lumia 800) in it ^^
http://www.youtube.com/watch?feature=player_embedded&v=7tNiDn-7Szw
Too bad that this can't be put in the Marketplace; it's the kind of app a lot of people have been asking for. All the more reason for Microosft to provide more Chevron Labs unlock tokens, I guess...
EDIT: I guess that having the Sensors capability gives enough permissions to call SetDevicePower on it? I would have expected ERROR_ACCESS_DENIED. In any case, well done. Works on my HD7. One minor bug is that it doesn't remember or detect when disabled, so to re-enable it I have to first toggle to Disabled, then back to Enabled, because when the app is launched it *always* says Enabled. Might be an HTC firmware oddity.
GoodDayToDie said:
Too bad that this can't be put in the Marketplace; it's the kind of app a lot of people have been asking for. All the more reason for Microosft to provide more Chevron Labs unlock tokens, I guess...
Click to expand...
Click to collapse
Exactly. It's harmless, stays at LPC level. Wish Microsoft would let in some more /dangerous/ applications.
Awesome, good job. I've been looking for this. Works well on optimus 7
SetDevicePower really nice solution!!!
One simple fix for HTC, if they always report the accelerometer as available: can you use GetDevicePower? The method signature is the same, except the third parameter is a pointer (which .NET will see as an "out" parameter, if you declare it as such). I'm not sure if DllImport supports those, but it could be done very easily using COM.
Actually, turns out the problem is more universal than I thought. I'll find a fix for it soon, should be simple enough.
Liking this update very much Looking forward to the toggle fix.

Categories

Resources