New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Tip us?
 
daniel981
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 12
Join Date: Mar 2008
Default switching from aGPS -> Standalone, and back again

Hello, I've searched up and down trying to find a way to switch from aGPS mode to Standalone GPS mode without doing it all manually in the registry. Is there a way to create a program that will make the regedits? Or is there a program or something out there that does this already?

Around town aGPS is great, but I often go out to the desert to go riding and 9 time out of 10 there is no cell signal out there. When I get to these dead zones, I'd love to be able to switch back to standalone GPS for tracking purposes. And then once, on my way home, it would be great to be able to switch back to the aGPS mode...

Anything out there for this? Is is possible?
 
drewcam888
Old
#2  
drewcam888's Avatar
Senior Member
Thanks Meter 5
Posts: 1,156
Join Date: Dec 2008
Disabling agps is done by changing one key in the registry. It takes like 15 seconds.
Verizon - Touch Pro 2, Nexus, and DNA
 
daniel981
Old
#3  
Junior Member - OP
Thanks Meter 0
Posts: 12
Join Date: Mar 2008
Quote:
Originally Posted by drewcam888 View Post
Disabling agps is done by changing one key in the registry. It takes like 15 seconds.

HKEY_LOCAL_MACHINE\SOFTWARE\HTC\SUPL AGPS\"EnableAGPS"=00000001(1)

change to

[HKEY_LOCAL_MACHINE\SOFTWARE\HTC\SUPL AGPS\"EnableAGPS"=00000000(0)

Is that the key that needs to be changed? Thanks!
 
daniel981
Old
#4  
Junior Member - OP
Thanks Meter 0
Posts: 12
Join Date: Mar 2008
These are the options I have:

[HKEY_LOCAL_MACHINE\SOFTWARE\HTC\SUPL AGPS\"EnableAGPS"=dword:00000000]
"ServerIP"="66.174.95.132"
"ServerPort"=dword:000022b8
"EnableGPSSmartMode"=dword:00000001
"QosPerformance"=dword:00000059
"QoSAccuracy"=dword:00000032
"TimeBetweenFixes"=dword:00000001
"NumberFixes"=dword:3b9ac9ff
"GPSMode"=dword:00000002
"EnableAGPS"=dword:00000000

What would I change to go to Standard GPS mode, disabling aGPS mode?
 
drewcam888
Old
#5  
drewcam888's Avatar
Senior Member
Thanks Meter 5
Posts: 1,156
Join Date: Dec 2008
You already have it disabled if EnableAGPS is 0. If you want it on then you need that to be 1.
Verizon - Touch Pro 2, Nexus, and DNA
 
daniel981
Old
#6  
Junior Member - OP
Thanks Meter 0
Posts: 12
Join Date: Mar 2008
Is that all I need to to do make it go in stand alone gps mode?
 
drewcam888
Old
#7  
drewcam888's Avatar
Senior Member
Thanks Meter 5
Posts: 1,156
Join Date: Dec 2008
You should be go to go with that being 0. Just try it out and let me know.
Verizon - Touch Pro 2, Nexus, and DNA
 
RyanMogul
Old
(Last edited by RyanMogul; 6th July 2009 at 11:38 PM.)
#8  
RyanMogul's Avatar
Recognized Developer
Thanks Meter 3
Posts: 980
Join Date: Dec 2008
Location: Pittsburgh, Pennsylvania

 
DONATE TO ME
Quote:
Originally Posted by daniel981 View Post
Is that all I need to to do make it go in stand alone gps mode?
Here let me fix someones botched attempt to help. And this is not a "hunch" or speculation, its because I KNOW!

These 3 values need changed to be in Standalone mode. I bet the reason he keeps posting back is because he already tried changing your 1 value and the data connection keeps popping up anyways...

So here are the three keys and their values. This puts the GPS on the phone in Standalone mode. To go back to Agps just restore the 3 settings to the settings underneath. I put those there for you also for reference.

[HKEY_LOCAL_MACHINE\SOFTWARE\HTC\SUPL AGPS\

Standalone
"EnableGPSSmartMode"=dword:00000000
"GPSMode"=dword:00000001
"EnableAGPS"=dword:00000000

AGPS
"EnableGPSSmartMode"=dword:00000001
"GPSMode"=dword:00000002
"EnableAGPS"=dword:00000001

Please no bantering as this is the exact answer. Enjoy, good luck, and take care.

Edit: And to answer your original question.. There is not a program that can switch back and forth but, a Mortscript can be written to perform such functions.. Search for and Post in the Mortscipt examples accumulation in the Development and Hacking section.


PayPal Account not required to Donate.

Donaters please include your Forum Member Name for appreciation.

RM Contributions:
 
daniel981
Old
#9  
Junior Member - OP
Thanks Meter 0
Posts: 12
Join Date: Mar 2008
Quote:
Originally Posted by RyanMogul6800 View Post
Here let me fix someones botched attempt to help. And this is not a "hunch" or speculation, its because I KNOW!

These 3 values need changed to be in Standalone mode. I bet the reason he keeps posting back is because he already tried changing your 1 value and the data connection keeps popping up anyways...

So here are the three keys and their values. This puts the GPS on the phone in Standalone mode. To go back to Agps just restore the 3 settings to the settings underneath. I put those there for you also for reference.

[HKEY_LOCAL_MACHINE\SOFTWARE\HTC\SUPL AGPS\

Standalone
"EnableGPSSmartMode"=dword:00000000
"GPSMode"=dword:00000001
"EnableAGPS"=dword:00000000

AGPS
"EnableGPSSmartMode"=dword:00000001
"GPSMode"=dword:00000002
"EnableAGPS"=dword:00000001

Please no bantering as this is the exact answer. Enjoy, good luck, and take care.

Edit: And to answer your original question.. There is not a program that can switch back and forth but, a Mortscript can be written to perform such functions.. Search for and Post in the Mortscipt examples accumulation in the Development and Hacking section.
Perfect! Thank you very much for the info. I will be sure to post back on the progress of a program or script if I get that adventurous.
 
TheBundo
Old
#10  
TheBundo's Avatar
Senior Member
Thanks Meter 2
Posts: 259
Join Date: Sep 2007
Does going to standalone turn of the 911 ability to locate you?

Tags
agps, registry, software, standalone, switch

XDA PORTAL POSTS

Avoid Framework Bootloops on Xperias Running Jelly Bean

If you’re a Sony device owner running a stock Android Jelly Bean firmware and … more

Forum Added for the Samsung Galaxy Mega

What do you do when the Galaxy Note line is simply not big enough? You get theSamsung Galaxy Mega. … more

Voice Control Your Phone with Tasker and AutoVoice – XDA Developer TV

XDA Developer TV Producer Kevin set up his phone to respond to … more

Guide to Take Better Control of Your Volume Levels

Would you like to know one of the things that really annoys me on a daily basis? Tough, … more