yashsingh1/xdaforums huggingface dataset:
[HD2 Android NAND Development] gauner1986:
Hey guys,

just a quick thread to inform you that i have just fixed GPS on Gingerbread in a nightly coding excess. I tested it on CM7 and it works.

Replace the files in your ROM with the respective ones in this tar archive :)

Download

cheers
[HD2 Android NAND Development] havlaz:
thanks man!!!!
[HD2 Android NAND Development] musy:
I'm Number one, hey.
[HD2 Android NAND Development] Kezzainc:
Short and sweet.... Testing now. :-)

Thank you sir.
[HD2 Android NAND Development] broknindarkagain:
Sorry. You were number two. And I'm number 3.

I'll give this a try tomorrow

EDIT : No I'm number 4....lol.
[HD2 Android NAND Development] W.Feather:
if this works fully i can see myself applying it very soon....now for disk utility fix :D
[HD2 Android NAND Development] shree.cse:
Great! Gingerbread is now fully working on our hd2.
[HD2 Android NAND Development] streetcore78:
hmmmm... just finished with imilka's hd2z nandroid version....

think i will go gingerbread then! with this fix...

well.. at least something keeps me awake.. lol thanks
[HD2 Android NAND Development] fruchtfliege:
awesome news! just flashed and configured cm 6.1, but since i have a problem with calls (sometimes it doesn't ring and opposite is forwarded to mailbox) i will now try mdj's gingerbread nand...

thx gauner :)
[HD2 Android NAND Development] the_scotsman:
I tried copying the files over manually on m-deejays clockworkmod Gingerbread using Root Explorer. Now any GPS test or GPS status app I try just force closes :confused:
[HD2 Android NAND Development] DroidTh3ory:
Specify the directory?
[HD2 Android NAND Development] the_scotsman:
lol...this is just the same as the archive in the OP...:confused:

Anyone had success with the fix yet? Every GPS app force closes after I applied the files and rebooted.
[HD2 Android NAND Development] lincye:
nice！well done。
[HD2 Android NAND Development] tonz22:
I use adb push to /system/lib

now use google map have gps status on task bar..
[HD2 Android NAND Development] RunNgun42:
Tethering and native USB storage still dont work.
[HD2 Android NAND Development] gottley:
tethering is working for me on mdjs ginger bread rom just google wireless tether apk and down load 2_0_6 pre5 works great
[HD2 Android NAND Development] RunNgun42:
Sorry, meant to say USB tethering.
[HD2 Android NAND Development] hefelfury:
could this be pushed with terminal emulator by any chance? I don't know the commands, though.
[HD2 Android NAND Development] gconcepts:
su

cp /sdcard/file_name /system/lib
[HD2 Android NAND Development] gottley:
i tryed that and was denied
[HD2 Android NAND Development] mylove299:
You should use file gps-fix [CWM].zip of Baco ( download in page 14 ), then install it by using WCM.
[HD2 Android NAND Development] LiFE1688:
Sorry, but what satellite information?

Which navigation software?

Probably hard to visualize what you take for normal, when I have not seen it or have enough information about it.

Is it like Tom Tom's which shows SAT=0 until it locks then shows SAT=3 or more?

Or are you talking about after it gets a fix, then shows each individual satellite strength?

Or giving you, your estimated position in google map up to 5000m deviation. The arrow, but has a huge circle around it.

Again, some custom Android builds have AGPS disabled, but GPS enabled. You might want to enable AGPS, because for cellphones, information is usually filled up by AGPS, before the GPS gets a satellite fix.
[HD2 Android NAND Development] barty22:
I'm not talking about navigation software, google maps with my location, or agps.

I don't use tomtom, but I imagine it being similar yes.

I'm not talking about after the fix, the satellite display after the fix is with these Diem drivers 'enabled'. I'm talking about BEFORE the fix, with GPS ON but NO FIX YET.

As said, I am using the app 'gps status plus'. Check the upper left cornor of this screenshot and compare it to your hd2.

http://www.androlib.com/android.screenshot.app.wjnE-ixBF.u.aspx

Red means gps on, yellow means gps on but no fix, green means a position fix.

The screenshow shows a situation with gps on but no fix, evident by the yellow dot, and 0.0 accuracy, but it still shows satellites in view which are constantly updating. Just like on gingerbread on the desire hd, but unlike on the hd2.
[HD2 Android NAND Development] flame10:
Do I need to

" Wipe Cache Partition/Advanced/Wipe Dalvik "

before applying the zip from sdcard, I'm a bit new to CWM
[HD2 Android NAND Development] LiFE1688:
Ah... Yes, before the fix you only get to see yellow and green, I leave GPS always on when needed, so I don't get to see the red button.

Before the new diem fix, I do see the yellow/green button, but even when the button is green, the sat strength is not shown.

The library were not reporting those information in a way where the software can understand, which is probably why we keep losing sat lock after x amount of seconds when the number of tries craps out, and the gps software tries to refresh the lock to get the information.

Now I understand. Thanks!

You are absolutely right sir!
[HD2 Android NAND Development] barty22:
Nope, don't wipe
[HD2 Android NAND Development] the.mono:
Where you can enable AGPS in android, I suppose you don't mean the gps.conf file?
[HD2 Android NAND Development] pawandeep:
I copied files in \system\lib and \system\lib\hw directories but after that auto backlight stoped working :(

does any one know any way to fix it ?

Thanks

Pawandeep
[HD2 Android NAND Development] memin1857:
Step by step gingerbread new real gps fix

1) Download the new files from here:

http://xdaforums.com/showpost.php?p=10636518&postcount=125

2) Get RootExplorer app or any file manager with root access support

3) Copy libgps.so to /system/lib and overwrite the original. Tap and hold it and set the permissions to full 777. Tap R/W on tap if system is R/O (read only)

4) Copy gps.htcleo.so and sensors.bravo.so to /system/lib/hw. Tap and hold those files and set the permissions to full 777. (

IF

you have gps.bravo.so file in your build, rename gps.htcleo.so to match it to your build and overwrite)

5) Reboot, make sure gps is enabled from settings - location OR power control widget before you reboot.

Go outside, launch a gps app. (gps status, google maps or motonav, navigon sygic etc) and wait for gps fix. It would take between 10 to 60 seconds on average. You should see satellite info in gps status app after gps gets a fix. It should update your location every second. It should no longer reset compass to north every few seconds. Your nav software should be working properly now.

This fixes the gps fix loss/no sat info problem of gauner1986 libs and is provided on page 13 and 14. Check posts from Diem and Baco.

Now you get satellite info in gingerbread and location is updated every second without resets to north. Don't forget to check file name and permissions.

Alternative way to update the files via ClockWorkMod (CWM)

http://xdaforums.com/showpost.php?p=10643150&postcount=137

Note: 777 permission means tap and hold the file in root explorer and tap permissions. check all the available permissions. It should say rwxrwxrwx (which is equal to 777)

Some builds have different filenames for the same file, rename accordingly, be sure you overwrite the original. (Remember to always backup any file you replace beforehand)

The only remaining issue is, gps status says agps info will be downloaded as soon as there is data connection. But there IS data connection and it used to say, agps info downloaded.

This fix is already included in mdeejays cm7 gingerbread v2.5

(Gauner1986, can you update the first post?)
[HD2 Android NAND Development] FELON1908:
Where do you set the permission to 777

now my phone don't see gps signal
[HD2 Android NAND Development] cheezusweezel:
After you copied the files you do a long-click on the files itself and choose "permissions" in the popup-window.
[HD2 Android NAND Development] FELON1908:
Thnx the GPS is working awesome
[HD2 Android NAND Development] felipemadox:
What is Faster Fix?
[HD2 Android NAND Development] cheezusweezel:
It is an APP in the market. It does the work for you to change the region-code in the gps.conf ...
[HD2 Android NAND Development] flame10:
Just checked that GPS needs to remain on after reboot. You cannot switch it off ..

First I patched the files on MDJ CWM 7 gingerbread , I rebooted and turned on GPS ( I had a tendency of switching off unnecessary services ) .. I got no satellite fix , wherever I stood position wasn't the problem.

Next I kept the GPS on and rebooted, I got fix within 10 seconds .. I understand Gingerbread automatically turns off GPS when not in use, so hopefully this won't be an hog on the battery ( I use GPS only once in a day ).

For those people who are not getting GPS fix yet, please try switching on GPS and reboot and try getting GPS fix
[HD2 Android NAND Development] undergroundcugir:
worked first time, but now still no fix.
[HD2 Android NAND Development] axaverde:
after reboot files modifications just diseapear...any fix to avoid files to be over writed when reboot ... i m using rc5 ram build

thanks in advance
[HD2 Android NAND Development] memin1857:
That is normal behaviour with ram builds. Check the first post of your roms thread it might be written there how to make changes persistant in ram builds. I remember reading that somewhere, you gotta search it. It was something like a script copied updated files every boot.
[HD2 Android NAND Development] number9dream:
Thanks for this fix, seems to work well for me, although I didn't need to rename the htcleo file.
[HD2 Android NAND Development] axaverde:
thanks Memin, actualy had just to put the 3 files in rep root/system/lib &lib/hw in sd card in android rep where in RC5 ram content... and the next reboot installed them... gps works great, get fix in 15 sec...

was the last thing to make this great ram build the daily use one

thanks guys for the outstanding job !
[HD2 Android NAND Development] nenepyg:
thanks, great job! worked for me in mdjs cm7 2.4!
[HD2 Android NAND Development] carlino64:
I have tried what it has mailed FELON1908 now I see the satellites wherever. Thanks many

I ask excuse are new and I do not understand very l' English. How it makes yourself in order to answer or to make to see the post to which reference is wanted to be made?

Thanks
[HD2 Android NAND Development] memin1857:
Click QUOTE.
[HD2 Android NAND Development] Henkspitsen:
I try to check my GPS status with 'GPS status' and 'GPS Test Plus' but I couldn't open the apps. I get some errors in dutch.

Also with google Maps the fix doesn't show any sign of a GPS signal.
[HD2 Android NAND Development] hk2:
What is permission 777? I copied the 3 files to the system lib and lib hw, but GPS still does not work...
[HD2 Android NAND Development] memin1857:
Man this was explained a lot of times.

777 means ALL PERMISSIONS are enabled.

Meaning:

TAP and HOLD the files you copied and tap permissions. TICK every option available. That is equal to 777. It should look like this: rwxrwxrwx (Read Write eXecute) depending on what file manager you are using.

Make sure gps is enabled in Android and reboot once.

Do as stated above. Make sure your permissions are all enabled.
[HD2 Android NAND Development] carlino64:
Thanks memin1857
[HD2 Android NAND Development] Jimmersd:
I found this post in the Cyanogen 2.5 Gingerbread thread. I am running iamgpc's [16 JAN] Pure Gingerbread gpc_hd2_gingerbread_v6 rom I have applied your fix and have the same issue.

iamgpc's version uses sensors.goldfish.so instead of bravo. I think that Cyanogen uses bravo.

Any ideas?
[HD2 Android NAND Development] Diem:
If using the original files (which the unstable fix) show an more realistic value, you can try to only use the libgps.so. Leave the files in "/system/lib/hw" untouched. Do all iamgpc users have this problem?

Please remember to rename or backup your original files before using the new ones.

regards,

diem
[HD2 Android NAND Development] Jimmersd:
Okay. I'll give this a try and let you know. So far I haven't heard from any other iamgpc users with this problem. But the thing I have noticed is that there are very few consistant problems here. Some have no problem at all and GPS seems to work without your patch. Others, the patch fixes your problem. And then there are those like me who GPS never worked (even with your patch) on certain builds and does what I just showed you on others. I have tried Cyanogen, iamgpc and tytungs builds to varying degrees of success. Cyanogen never worked, tytung was intermittent (more off than on) and iamgcp was the most stable using GPS.

I am curious whether there are multiple builds of the actual HD2 phone that might be causing compatibility problems with the firmware. It might be something that we could figure out by comparing serial or run number of the phones that are having the problems vs the ones that aren't. It might be an issue with different receiver chips.
[HD2 Android NAND Development] makaaaa:
does this also works on the wildfire 2.3.1. gingerbread?
[HD2 Android NAND Development] Jimmersd:
I made the changes that you recommend and there is no change. The altitude is still astronomical. LOL.
[HD2 Android NAND Development] mknewman:
Since I posted this message I have been using the GPS more and have found that sometimes I do get a reasonable altitude. It seems like this may occur after I've moved around some, so that it can do some differential calculations possibly.
[HD2 Android NAND Development] Jimmersd:
Hmmmm..... so what you are saying is that there is a learning curve? Really? Can someone confirm this?
[HD2 Android NAND Development] memin1857:
Of course, gps accuracy gets better in time even after the initial fix is made.

A gps fix is the minimum amount of satellites (usually 4, sometimes 3 since earth is also a sphere) locked to get at least some location. The more time passes, more satellites are found and locked so you get better accuracy. (Usually in the best case you would be locked onto about 9 satellites out of 12 visible) Most gps chips have 20 simultaneous channels. In most crowded places in car you may expect to get about 5 satellites.

Discovered satellite info is saved and reused. It changes over time so the less often you use your gps the more time it will need to get more accurate.

Normally A-GPS does help with the sat info by days but in HD2 Android it isn't implemented properly, that is why your gps chip needs to find out by itself and it takes time. AGPS works like this: A gps receiver in a clear sky (on top of a building maybe) gathers sat info and shares this info over the internet. An Assisted-GPS equipped phone uses this information to get by without discovering same satellites again (by waiting at least a minute)

Google location is a little different, it gives you a rough location based on your ip or cell base station. But it is very quick, usually 1-2 seconds is enough. You will get between a few hundred meters to maybe 5km accuracy. With real GPS you would get between 1 meter to 30 meters accuracy. Usually 6-10m.

You WILL get a SLOWER FIX IF:

- You are moving

- You are in a car

- You have tall buildings near you

- Weather is cloudy

- You don't have AGPS capability or internet connection

- You did a cold start

You WILL get a FASTER FIX IF:

- You are outside in very open air

- You are standing still

- You had a lock a small time ago (warm start)

- You have proper AGPS

You can expect in about 1-2 seconds a very rough location based on google servers. (doesn't apply to navigation software)

You can expect in about 15 seconds with proper working agps or a relock.

You can expect in about 60 seconds with no agps, from a cold start.

You may expect in about a few minutes if you are deep into city with a lot of buildings + trees + bad weather + cold start + no a-gps.

Subsequent locks will be faster since gps does a warm start

Most navigation software has compensation algorithm so you feel low accuracy less of a problem. (It auto adjusts to place you inside a road and does not fluctuate rapidly to impossible car movements)
[HD2 Android NAND Development] Jimmersd:
Thanks for that. I didn't realize that the phone kept a record, in addition to the agps of active sattelites. I assumed that everytime GPS was started whether the phone had been rebooted or not, was like the first time.

Your response needs to be cut from here and reposted on every thread that is having gps problems. Or made a sticky called GPS basics, To get everyone on the same page as it were.
[HD2 Android NAND Development] memin1857:
I have actually written similar post numerous times over the months but since people don't search it is pointless to do that.

But I am glad it helped you.
[HD2 Android NAND Development] Jimmersd:
It's not that people don't search. The problem lies in search terms and the totally inadaquate search function on this site. Also there are so many hits on simple terms like GPS/ Problem /repair/ fix you can wind up with a glut of posts that are harder to wade through than to just read the thread from the begining. Then to make matters worse XDA limits you to one search every 30 seconds. It becomes easier to just ask. Yes you can Google on this site but it is still a hastle.

Again thanks for taking the time.
[HD2 Android NAND Development] supernaturelee:
Replace the files in your ROM
[HD2 Android NAND Development] Spacegoogie:
Hey guys im running CM7-EX ver.9 and have tried everthing you guys have said with no luck. I will lock on to 8 to 12 sats but right after that gps never updates again and the gps icon will disaper. Every rom other than a GB rom updates my gps every sec. Im looking in my folders and im seeing 4 files. (no mods to the folders) this is in system/lib/hw sensors.supersonic.so, sensors.goldfish.so, gps.supersonic.so, and gps.goldfish.so. Should all these files be here? I thought I would ask because I read that cm uses .bravo.? I have no bravo files and was thinking that maybe not all those files belong there? Im on an evo, hardware 003. Like I said I have tried everything I have read with no luck. So if someone maybe knows something about the files I listed and could help me out I couldent thank you enough.
[HD2 Android NAND Development] Cubiceye:
Hi

Download link not working

Cheers
[HD2 Android NAND Development] Cubiceye:
This link has stopped working.
[HD2 Android NAND Development] NessD:
Is this fix already incorporated in mdj's Gingerbread 2.6?
[HD2 Android NAND Development] zippoz76:
GPS screen off disconnected

I have serched everywere but whitout answer.

GPS fix fastly an work perfectly till I screen off. When I turn on again screen GPS isn't fix and icon is blinking. Wait any seconds and gps fix again but for example if I am using MY TRAK in that time not record position. I have tried also to install again WM and then android again, change radio and everything in my mind but still have problem.

Please help me.

I can't use GPS apps with screen off.

Excuseme my bad english.

Regards

I am using mdj 2.6 but 2.4 with fix have same problem
[HD2 Android NAND Development] Rees1267:
Please let me know in steps how to set the permissions on 777?????

I have the 2.6 release and rootexporer, but from now on the steps to do this????

Thanks!!!

Rees (please by mail rees.software@gmail.com)
[HD2 Android NAND Development] liamski:
Running MDJ 2.5, never got a GPS fix, causing much frustration. Installed GPS FIX from the Marketplace, let it run for a few minutes. Since then I get a strong fix EVERY time within 10 seconds....
[HD2 Android NAND Development] Spacegoogie:
Thanks for the info, I did try and I do get a good fix but as soon as I use gps I lose the signal and if the signal sticks it does not update making gps on GB worthless.
[HD2 Android NAND Development] Boxxerace:
Yes there is. Use the *free* Android Mate app that's in the market. It's easy, compatible with root access on the HD2 and it took me one minute or less to do this fix.

Note: Use the check mark next to the folder to access copy and paste functions (and others). Copy one file at a time as described by others into the root of the phone (not the SD card). I think I had to enable root and a checkbox that popped up under superuser settings, but then I could gain access to root by clicking the little curled green arrow in the Android Mate app.

Just copied, the files apparently were never there and the GPS works Fantastic, even just shoved up between the window and blinds. Found my location within about five feet in 30 seconds, no other editing.

Thank you for the fix!
[HD2 Android NAND Development] sidelait:
oh yeah... this works for me!!!

Thank you very much :D
[HD2 Android NAND Development] Spacegoogie:
For those that are having GPS issues and nothing else seems to work try this. It worked for me!

After all the stuff I tried and nothing else worked this did:

You will need:

1. A 'sense' ROM currently running on your phone (I had Fresh 3.5.1)

2. MSL reader installed (get it from the market)

2. Have CM7 (EX9,EX10 etc.) and the latest gapps (I used the ones from 2011-01-15) downloaded to your SD card

Steps:

1. Open MSL reader and get your MSL (jot it down)

2. Launch phone dialer and dial ##GPSCLRX#

3. It will ask you for your MSL, enter it.

4. Upon hitting OK, your phone will just say reboot in 10 secs, let it reboot.

Phew!

5. After it has rebooted, boot to recovery (i used clockworkmod 2.6.0.1)

6. Nandroid backup (if you are so inclined)

7. Wipe cache, Dalvik and then wipe data/factory reset

4. Flash CM7 from your sd-card

9. Flash gapps

10. Reboot and walk through set-up. Your gapps will be downloaded from the market. Wait for all the downloads to complete.

11. Use GPS as normal and enjoy the GPS goodness

Hope this helps, Please let us know if this worked for you. :D

Note: I did not write this. Just helping to spread the good stuff.
[HD2 Android NAND Development] Mafioso:
I installed the fix on Coredroid v1.1 and phone doesn't start after that...its stuck on the green android logo :o ... Is there any way to undo it? or do I have to install the ROM again :confused:
[HD2 Android NAND Development] crisisinthecity:
MDJ's is great! I ran it for over a week with no problems. I needed wifi hot spot for a business trip I'm about to go on so I just flashed CMYLXGO's Desire HD nand.
[HD2 Android NAND Development] zippoz76:
UP UP

Anybody can help me please.

Thank you
[HD2 Android NAND Development] Synoptex:
Here is a GPS conf that should enable assisted gps and might be worth trying?

Originally by: crunchie-uk

NTP_SERVER=xtra1.gpsonextra.net
XTRA_SERVER_1=hxxp://xtra1.gpsonextra.net/xtra.bin
XTRA_SERVER_2=hxxp://xtra2.gpsonextra.net/xtra.bin
XTRA_SERVER_3=hxxp://xtra3.gpsonextra.net/xtra.bin

# DEBUG LEVELS: 0 - none, 1 - Error, 2 - Warning, 3 - Info
# 4 - Debug, 5 - Verbose
DEBUG_LEVEL = 5

# Intermediate position report, 1=enable, 0=disable
INTERMEDIATE_POS=1

# Accuracy threshold for intermediate positions
# less accurate positions are ignored, 0 for passing all positions
ACCURACY_THRES=2500

################################
##### AGPS server settings #####
################################

# FOR SUPL SUPPORT, set the following
# SUPL_HOST=supl.host.com or IP
# SUPL_PORT=1234
SUPL_HOST=supl.google.com
SUPL_PORT=7276

# FOR C2K PDE SUPPORT, set the following
# C2K_HOST=c2k.pde.com or IP
# C2K_PORT=1234

################################
# EXTRA SETTINGS
################################

# Wiper (wifi positioning), 1=enable, 0=disable
ENABLE_WIPER=1

#################################
##### AGPS Carrier settings #####
#################################
CURRENT_CARRIER=common
DEFAULT_AGPS_ENABLE=TRUE
DEFAULT_SSL_ENABLE=FALSE

# TRUE for "User Plane", FALSE for "Control Plane"
DEFAULT_USER_PLANE=TRUE

I mean all this can be added to gps.conf