yashsingh1/xdaforums huggingface dataset:
[HD2 Android NAND Development] gsic:
w00000t!!!

spent last night reading through this thread and trying a few of the methods out...never really worked, ended up using the gps-fix solution and it works perfectly!!!

Took about 20 seconds to lock on to sat signal and then it just plain worked...

Had to make a journey by car, 60 mile round trip, was using Google navigation and all was fine for about the first 15 miles....then phone reset itself, rebooted, froze on cyanogen boot screen...took battery out, restarted and phone had reset itself too 15:20 on December 11th...weird...soon autosynced again and put Google Navigation back on an carried on with journey with no more issues apart from complete battery drain lol

Thanks again for all the help and info, excellent work!

G
[HD2 Android NAND Development] Six6Sicks:
Not Found

The requested URL /gauner1986/gauner1986_gingerbread_gps_fix.tar.bz2 was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
[HD2 Android NAND Development] dlsniper:
I get this everytime I start the gps: E/GpsLocationProvider( 120): no AGPS interface in agps_data_conn_open

Hope it helps.

See signature for details.
[HD2 Android NAND Development] Necuacuam:
Thank you!!!!!!!!!!!!!!
[HD2 Android NAND Development] caduzera:
The Link doesn´t work.
[HD2 Android NAND Development] defvayne:
http://www.mediafire.com/?bb7sf0dorot70vv
[HD2 Android NAND Development] zippoz76:
Hi,

how I can edit libgps.so or where work to change power GPS management policy at screen off, to allow at GPS apps working on stand-by. My problem is that whit screen off and gps apps running GPS is disabled and on screen on is ok. This issue there is in gingerbrad roms but not whit sense roms.

Thank you.
[HD2 Android NAND Development] chungkai:
Gingerbread rom use gps very very show...
[HD2 Android NAND Development] vahsisalata:
Baco and Diem, thanks!!
[HD2 Android NAND Development] arne182:
Where is the source code? We want to improve the GPS on the Gingerbread roms.
[HD2 Android NAND Development] tyween:
I second this motion. Thank you and the others who are contributing on the AGPS thread.
[HD2 Android NAND Development] marco-1:
:)

Hi everybody that still seems to have the GPS Problem.

I had the Gingerbread 2.7 nand installed and followed the replacement of the system / hw files as outlined at the beginning of this thread; all to no avail :mad:

I was looking in a different thread about a possible remedy for this problem.

http://xdaforums.com/showthread.php?t=917694

I read IMS1407 's suggestions and just followed them.

as to my phone,

I have an HTC HD2 / Leo that I purchased a year ago. I started playing with Android about a month ago and have successfully installed several nand's from Froyo and Gingerbread. I finally reverted to a FROYO 2.2 (DFT_LEO_NAND_Android). With all of them I had the GPS problem not being able to see any satelites. I purchased GPS Doctor and tried some other so called GPS Fixes, but NONE of them worked. I finally tried the editing of the gps.conf file. I got me Root Explorer and edited the gps.conf file by simply adding below the line

NTP_SERVER=europe.pool.ntp.org

NTP_SERVER=0.asia.pool.ntp.org

NTP_SERVER=1.asia.pool.ntp.org

NTP_SERVER=2.asia.pool.ntp.org

NTP_SERVER=3.asia.pool.ntp.org

(I work in Asia at the moment)

I saved the file and God and Behold I had a Fix within seconds verified by GPS Aids and GPS Status APP. :D

again thanks alot IMS1407 .....

Marco
[HD2 Android NAND Development] brainmaster:
Have you seen this thread?
[HD2 Android NAND Development] hefelfury:
I am not receiving a fix when replacing these files. Am I missing something? I used root explorer and copied to system/lib and /hw.
[HD2 Android NAND Development] the_scotsman:
Yea, it's not working on m-deejays gingerbread build..a few of us have the same problem...
[HD2 Android NAND Development] gconcepts:
No Fix here as well. Are you using clockwork?
[HD2 Android NAND Development] FlawlesStyle:
Worked on MDJ's 1.4 GB for me, (I edited gps.conf right after flashing it to switch europe.pool.ntp.org to 0.us.pool.ntp.org), but it took a few minutes for gps to lock in. All I did was adb push the files to the directories and reboot. (I didn't use the clockworkmod zip, I just used usb flasher in magldr)

Thank you so much gauner1986!
[HD2 Android NAND Development] hefelfury:
I am using the standard NAND version of Mdj Gingerbread 1.4. I tried to edit the gps zone in gps.conf and that also didn't work. So, all I can do is wait for a solution from someone more capable. :)
[HD2 Android NAND Development] mknewman:
I did this too but found that the perms were 075 so I changed them to 775 but still doesn't seem to be working but it's not crashing on me. Make sure and reboot after doing this also.

Marc
[HD2 Android NAND Development] DroidTh3ory:
What directory is the gps.conf?

Thanks
[HD2 Android NAND Development] the_scotsman:
What app are you using to test the GPS signal?

It's in /etc you change it to your nearest reagion, although this just changes the time server for GPS, to get a faster fix...it won't fix any GPS issues.
[HD2 Android NAND Development] AngelDeath:
I know this is going to be a dumb response, but did anyone try using the libgps.so alone and not use the gps.bravo.so? or try adding the gps.bravo.so into the lib also and not in the HW folder?

Again just trying to help, Only thing at the moment thats keeping me from trying MDJ's ginger build.
[HD2 Android NAND Development] the_scotsman:
Ok, I have GPS working...

I did 2 things, not sure which change fixed it.

I changed the file permissions to 777, and I edited my time server to my local one in gps.conf.
[HD2 Android NAND Development] hefelfury:
I edited libgps.so and in the /hw folder gps.bravo.so file permissions to chmod 777 (i think.) I am trying again with my country time set as 0.us.pool.ntp.org

Update: using terminal to chmod 777 the two files, setting my gps zone to "0.us" and the GPS test app is no longer crashing and my GPS icon is flashing! time to go outside and test for a lock.

Update 2: I am still not getting a GPS lock despite the new, blinking GPS icon in the notification tray. I keep getting an error pop up of "Your location is temporarily unavailable."

Update 3: GPS is working perfectly now. Location fix to 2 meters.
[HD2 Android NAND Development] the_scotsman:
I changed mine to 0.au.pool.ntp.org as I'm in Australia.

Find all the servers here: http://www.pool.ntp.org/en/ (click on your continent in the top right).
[HD2 Android NAND Development] DroidTh3ory:
How do you change the file permissions

?
[HD2 Android NAND Development] Pens and DreamS:
how to chmod 777?
[HD2 Android NAND Development] the_scotsman:
I use Root Explorer to change file permissions (hold and choose Permissions). 777 is all ticked boxes.

777 may be overkill, but in this case it won't do any harm.
[HD2 Android NAND Development] DroidTh3ory:
Now so we are clear.. Is that on ALL files? The 2 new ones and the gps.conf?
[HD2 Android NAND Development] the_scotsman:
Just the 2 new files.
[HD2 Android NAND Development] Pens and DreamS:
yeah. do a 777 on all downloaded files and gps.config?
[HD2 Android NAND Development] DroidTh3ory:
Got it.. Great work everyone!!

Well now... GPS on HD2 GingerBread. :)

Grabbed my location and running Nav in about 20 secs.... Very nice.
[HD2 Android NAND Development] shendan:
thx，man,you are so cool
[HD2 Android NAND Development] NYGraFFit1:
Seeing as I'm a noob at this can you post up the updated files and a quick how to. =] I'd appreiate it. I'm in Brooklyn, NY. TMO US
[HD2 Android NAND Development] hefelfury:
Everything is working nicely now! Thanks scotsman and others to help get this working!

Just to clarify, I will nicely display the steps.

1) Take the two files from the gps fix and put them on the root of your sd card (or wherever is easier to locate for you).

2) use Root Explorer to copy these files to their respective destinations

2.5) libgps.so goes to system/lib/ and gps.bravo.so goes to system/lib/hw/

3) go into your system/etc folder and edit the gps.conf file to whatever your gps zone that is closest to you is.

4) chmod 777 the two files by long pressing the files, selecting permissions and ticking all boxes.

5) I rebooted and voila, it works!
[HD2 Android NAND Development] mmduluth:
Can you change permissions before moving them to their respective folders? Just sounds like it might be a little easier to me.
[HD2 Android NAND Development] hefelfury:
I don't see why not. The files should keep their permissions when you move them. Also, the MDJ gingerbread thread has a copy of the_scotsman's instructions posted and it seems to be working for everyone.
[HD2 Android NAND Development] NYGraFFit1:
i see something named "XTRA_SERVER_" so i place the remaining servers in their place or leave them as is?

Which to use? "0.north-america.pool.ntp.org" or "us.pool.ntp.org"
[HD2 Android NAND Development] NYGraFFit1:
forget it, got it working =] wow even the compass on the Google GPS works FLAWLESS. I'm impressed
[HD2 Android NAND Development] Pens and DreamS:
Nooo i was waiting for the answer lol. I to wanna know if i have to get rid of those lines or just put the info above it.
[HD2 Android NAND Development] hefelfury:
The only line I edited was for NTP server, which was set for Europe and I changed it to "0.us.pool.ntp.org" for United States. Hope that answered your question.
[HD2 Android NAND Development] NYGraFFit1:
lol sorry bro, i used "0.north-america.pool.ntp.org" if it helps. it took me a reset and waiting about 5 mins for GPS to kick in after pressing the GPS button in Google Maps for it to find me. Hope i helped bro.

EDIT: i left the rest "XTRA" lines untouched.
[HD2 Android NAND Development] NYGraFFit1:
Someone should place this in the OP.
[HD2 Android NAND Development] Pens and DreamS:
Lol i added o.us 1.us 2.us 3.us. thank u
[HD2 Android NAND Development] 2000impreza:
Changing the permissions (step 4) isn't needed for the gps files. I'm not sure why people are doing this.
[HD2 Android NAND Development] markmarkr:
For what it's worth, I think the problem is that when you adb push the files they end up owned by root, while all the other files in those dirs are owned by system. So chowning them to system will probably work instead of chmodding them 777.
[HD2 Android NAND Development] the_scotsman:
The 777 came about when we were trying to figure out why the fix wasnt working.

I tried changing the permissions and modifying gps.conf at the same time, which fixed it...I posted this but stated I wasn't sure if both were needed.
[HD2 Android NAND Development] NYGraFFit1:
^^Better safe than sorry =]
[HD2 Android NAND Development] pack21:
Woooooow

I can't talk, because I'm crying...

Thanks
[HD2 Android NAND Development] olde_shrimp:
Is there an alternative to root explorer? Market wont let me buy the app.

Thanks.
[HD2 Android NAND Development] david.k91:
I think you need root. Do you have root of your phone...?
[HD2 Android NAND Development] NYGraFFit1:
Per his info on his sig i believe so.

Astro File Explorer & I/O File Manager
[HD2 Android NAND Development] david.k91:
Hi,

but in Astro I can´t see directory system :(
[HD2 Android NAND Development] jayr415:
Its wonderful that GPS is working now but I'm curious did this break Network Locations for anyone?

Nevermind, I guess some apps just have trouble using Network Locations, by the way I know this is the wrong place to ask but does anyone know what App to use for Fancy Widget to load weather info? Since Genie Widget doesn't seem to work for Android
[HD2 Android NAND Development] cfonseca1:
would anybody mind posting exactly what is in their gps.conf .

including the XTRA lines .

not having luck ... in EST US.
[HD2 Android NAND Development] NYGraFFit1:
NTP_SERVER=0.us.pool.ntp.org

XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin

XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin

XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin

SUPL_HOST=supl.google.com

SUPL_PORT=7276

It works just just give it a while, it'll work
[HD2 Android NAND Development] jayr415:
NTP_SERVER=0.north-america.pool.ntp.org

XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin

XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin

XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin

SUPL_HOST=supl.google.com

SUPL_PORT=7276

Thats what I have.. At first when I was trying to load inside the house (Use to have network locations radius first atleast but I just kept getting the Location can't be found or whatever) So I took the phone outside, tried to get my location again, it locked on within seconds =) So try getting location in an open area outside or something too =x

DOH someone beat me to it too lol
[HD2 Android NAND Development] touchee:
Works a treat for me - thanks.

uk.pool.ntp.org

had to do chmod 777 as it didn't work prior to that (am using an old MDJ RAM build)

for those on SD cards and with *NIX systems it's easy to modify the system files by simply using a loopback mount to access everything in the system.img
[HD2 Android NAND Development] jorisvdende:
This works great on MDJ's NAND Gingerbread (fyi: I'm still on 1.3, for now)! Thanks a lot man! You tha man! :D
[HD2 Android NAND Development] cfonseca1:
thanks . i appreciate the information guys . took 2-3 minutes for gps to locate within 2 meters . left google maps open and tapped location btn a few .

i can see mdj implementing this in ginger NAND v1.5 ?

gingerbread seems to be earning its stripes quite quickly . now its improving battery life and boosting speeds IMO .

i hope somehow the bare gingerbread UI finds its way back to the surface in future 2.3 builds.

live wallpapers run with a less than desirable frame-rate on HD2 from SD to NAND ( some builds better than others ) . Im guessing this due to gpu bottle-necking its ability ?

0.us. worked for me . on gps.conf for region
[HD2 Android NAND Development] FELON1908:
I have this in GPS config

NTP_SERVER=europe.pool.ntp.org

XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin

XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin

XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin

SUPL_HOST=supl.google.com

SUPL_PORT=7276

must there be a 0. for europe because i see 0.north-america for accepble

sorry for my bad englisch ;)
[HD2 Android NAND Development] FerretAD:
I'm getting a FC on any GPS app too.

Using MDJ Gingerbread v1.4 NAND.
[HD2 Android NAND Development] xcooling:
MDJ Ginger 1.5 released. Has the gps fixes integrated.
[HD2 Android NAND Development] yerger425:
Didnt work for me gps blinks in status bar but says location cannot be found

Edit: let it sit for about an hour still no gps any ideas
[HD2 Android NAND Development] cmillens:
Freaking beautiful! Works great on MDJ's GB v1.0 RC5 (SD)!

In fact, now that I've solved the data disconnects combined with this bad boy the only thing that's not working is tethering and I never use that. 4GB data, 2GB system - I'm golden and it boots in under 1 minute 45 seconds!
[HD2 Android NAND Development] lms1407:
Try downloading GPS Status from market to reset the gps

restart and try again

might help
[HD2 Android NAND Development] evagundan:
It's great! Thank you for your hard work on this!
[HD2 Android NAND Development] vytas654321:
Hey, some one can help me with this GPS fix. I can't fix it.

My skype: Vytas654321

Thanks
[HD2 Android NAND Development] wheeliemonster:
I struggled with this for a while but then checked the permissions on gps.bravo.so

They were set differently to the other files in the same location (/system/lib/hw/), so I changed them to match the rest, rebooted and now it works.... it takes a while to get a fix but it works!

Commands in terminal as follows:

cd /system/lib/hw

su

chmod 644 gps.bravo.so
[HD2 Android NAND Development] a1vinn:
Can someone upload their gps.conf file. For some reason mine went blank.

Thanks in advance.
[HD2 Android NAND Development] Samdeath:
Hey, to use this do you have to reflash your ROM? or just drag and drop the files over?
[HD2 Android NAND Development] ATomCZ:
Will be also A-GPS working on Android? Now I can pre-download satellite data only in WM and the GPS in Android start in few second (like 10) without it start maybe 1 minute or more, for example in card much more.
[HD2 Android NAND Development] AirwolfUK:
no GPS lock

I have tried everything i know but i still cannot get a GPS lock.

GPS icon flashes in the status bar but no lock

Running MDJ 1.5 NAND

GPS Status installed

gps.conf tried UK and europe settings

permissions set correctly on the two .so files (I assume permissions are correct from the install)

anyone got any ideas?

Thanks -
[HD2 Android NAND Development] lms1407:
NTP_SERVER=bg.pool.ntp.org

XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin

XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin

XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin

SUPL_HOST=supl.google.com

SUPL_PORT=7276

change the black text to your country prefix or go to pool.ntp.org and check your nearest server
[HD2 Android NAND Development] windroidHD:
how long does the GPS fix take?. CM6.1 NAND has working GPS, but GPS fix takes forever.

I guess there is issue with android not being able to use A-GPS correctly in all builds?, any chance that Gingerbread GPS works better?.
[HD2 Android NAND Development] gauner1986:
GPS fix will take a while. The LEO GPS lib lacks AGPS and XTRA implementations, so even if you configured the gps.conf it will probably not help.
[HD2 Android NAND Development] cfonseca1:
is there anyway to turn on mobile network locations ?

i've noticed some other builds pulling up a rough location via net location before

locking GPS pos. not extremely important but its nice to open MAPS and pull up a rough of your location with 2-3 seconds. not sure if these were settings we could edit somewhere in lib .

thanks in advance.
[HD2 Android NAND Development] yesucan:
One noob question if enable the gps i can't see the icon on taskbar :confused: i did something wrong here :confused:
[HD2 Android NAND Development] Delano.888:
Hmm, using this on http://xdaforums.com/showthread.php?t=877777

which should come with working GPS anyway. Copied the files, rebooted my phone, still nothing?

BTW the files weren't there to start with, so I didn't have to replace anything.
[HD2 Android NAND Development] lukesan:
Thx gauner1986 for confirming my thoughts on that.

I just tried MDJ's latest build outside (sch**be kalt) and I couldn't get a lock.

The funny thing that I saw in GPS status a sort of fix with longitute and latitude but no sat bars at all. To make sure afterwards I copied your files and gave them the right permissions but the result was the same.
[HD2 Android NAND Development] agentfazexx:
Using Androzip I can unbzip the archive, but when I attempt to untar, it says "TAR operation failed." How do I untar this?
[HD2 Android NAND Development] agentfazexx:
Hooked to PC and untared.

Can't copy the system folder though, seems like a rights issue.
[HD2 Android NAND Development] basst85:
Thanks, works fine after chmod 777 and reboot!

The first GPS lock takes some minutes, after that a few seconds! (in Google Maps) Nice!
[HD2 Android NAND Development] paalkr:
Is this valid for the driver ues by non gingerbread builds as well, the driver that cotulla wrote back in June / July? Anybody working on AGPS and XTRA implementation?
[HD2 Android NAND Development] windroidHD:
he was replying to my question which was about Froyo builds. I believe the GPS driver is same for ALL android builds (NAND/RAM/SD), all of them lack AGPS.

I see you have HD2, you never noticed that it takes lot longer than a minute to get a fix?. If you have correctly working AGPS it should take around 15sec.

my iphone 2g which just uses cell towers locks into 2 mile raidus within 10 sec.
[HD2 Android NAND Development] jake-a-lake:
How do you edit gps.conf? I feel like such a noob asking this, but....
[HD2 Android NAND Development] NYGraFFit1:
just click your way to where the file is n root explorer and press and hold it, a menu will pop up, next select "edit in text editor/notepad"
[HD2 Android NAND Development] jake-a-lake:
gotcha...thought that might be it, so downloaded root explorer, but it's complaining I don't have ROOT permissions on the device. How do I get that? I saw a mention somewhere earlier about a download link for SU FE? but couldn't find it. -thx
[HD2 Android NAND Development] syzkk:
true, only way for me to get a quicker fix is to download GPS Status app from market
[HD2 Android NAND Development] ATomCZ:
Use QuickGPS in WM and then run Android is much faster than GPS Status in Android itself. I personally think that GPS Status doens't have any influence to time to fix because of lack AGPS a XTRA.
[HD2 Android NAND Development] vicso86:
Does this fix only workfor NAND builds..?
[HD2 Android NAND Development] gauner1986:
Yes, it's valid for all builds. I'm looking at it atm, but i don't have that much time left this month.
[HD2 Android NAND Development] Six6Sicks:
Can someone please attach the files from the op in a .zip file. Not a .tar file. I can't untar on my phone. Thank you.
[HD2 Android NAND Development] lezink:
I must say thés is a major improvment for GB.

But (there is always but) if i now Can get a fix, the nav app keeps loosing the signal and fix again : 12 times in a 30 min trip (30km) under GB 1.5. And about 6 or 7 times on thé same trip ( reversed) this evening under GB 1.6

A clue anyone ??
[HD2 Android NAND Development] paalkr:
Thanks for the clarification, and all the hard work you and the other devs put into Android and kernel development.
[HD2 Android NAND Development] paalkr:
Yes, I have a HD2 and a Desire and the GPS fix on Desire is a lot quicker than on the HD2 under the same circumstances. The only thing that seems to improve the fix time is to run QuickGPS in winmo, and I think that's because QuickGPS stores the AGPS info inside the GPS chip.
[HD2 Android NAND Development] lukesan:
Here you go. You should check or use 7-zip, does these files too.
[HD2 Android NAND Development] Six6Sicks:
Thanks. I don't have 7zip on my phone though. That was the issue. I'm trying to do this on my phone. It'll be easy now. Thanks.
[HD2 Android NAND Development] gauner1986:
I noticed the fix loss problems.. I will check what's wrong.. Difficult to test, because i have to be driving to reproduce it..
[HD2 Android NAND Development] lukesan:
Hi gauner1986, can you tell me if you actually see the sat bars in gps status or the chartcross tool?

Me and others have tried to use the fix for Sygic, iGO etc but it doesn't seem to work.

When checking google maps there seems to be a working gps fix but that tool doesn't actually show how many sats are visible or locked onto.
[HD2 Android NAND Development] lms1407:
I think GPS Status from market can update/reset/help A-GPS servers.

I read in other posts that it actualy helps. I tied it and it works great, but i had already fixed the gps to work.
[HD2 Android NAND Development] moshekri:
gps problem

hi guys

i am using a nav soft called WAZE its free and includes community traffic reports,

after applying the fix i get the sat locked after 1-2 minutes .

now lets say i am driving north after 20 seconds or so the direction flips to south than signal is lost and when it comes back the heading is north again.

this repeats it self all the time. also the gps sat quality is about 70% .

this happens only in 2.3.1 (GB) i used the same software in desire bulids with no problems.

tryed mdj 1.5 1.6 1.7 1.8 1.9 and 2.0

please if someone knows the solusion help!!!!!!!!!!!!
[HD2 Android NAND Development] thomas_pieps:
Is there a way we can help to reproduce the fault? Send in a log or etc?
[HD2 Android NAND Development] thomas_pieps:
second that, tried the fix on MD Gingerbread 2.1 without result
[HD2 Android NAND Development] lukesan:
I've already mentioned that on page 9 and in MDJ's gingerbread thread but no one responded.

Might be that GPS status, the chartcross tool or Sygic is not 100% Gingerbread compatible but I'm not sure.
[HD2 Android NAND Development] thomas_pieps:
Idd that could be a compability issue, but I've tested over 10 programs for the moment form GPS test tools to full NAV programs and all have the GPS bug.