[Galaxy Ace S5830 Android Development] itasoulas:
A few words

Most (if not all) GPS patches for Galaxy ACE I came across here on XDA were created to provide faster GPS Lock. Others tried to replace CM7.x hw libraries (sensors) with ones from stock roms. That example is lagloose's patch which actually works really nice and a great idea indeed to have stock sensor libraries in a CM7.x rom. As a perfectionist, I wanted to take that idea and push it further. You see, the thing is not only having a fast GPS lock but have better reception and accuracy, i.e strong signal even when weather conditions are bad, or a gps lock indoors and close to a window. I did lot's of searching, mostly on Samsung Galaxy S2 threads here and elsewhere. Some configurations worked, others didn't and one worked really nice for our beloved ACE. I present to you, probably the best GPS patch for ACE (so far)!

What is F&A GPS+Sensors patch?

F&A refers to "Fast" and "Accurate". So not only you'll get a very fast lock but also better reception and accuracy. The GPS part can be used on both CM7.x and STOCK ROMS. The sensors part targets only CM7.x roms and replaces all hw libraries (sensors) in system\lib\hw with the ones from Samsung XXKPT Stock Rom. Most credits for all this should probably go to lagloose as he is the one that actually posted a patch like this in the first place. I just took the opportunity to take that patch to another level, if you allow me to say so, by changing completely the gps.conf file. The zip attached below is actually lagloose's zip which has been modified by me. Kept his signature and all. :) I am just the modder ;)

How the patch works?

-- it installs 'gpsd' in system\bin (just like stock roms)

-- it installs a modded gps.conf in system\etc, different than the one lagloose provided, that needs to be edited by you

-- it wipes your data\gps directory to remove old xtra.bin files

-- it completely replaces the libs in system\lib\hw with libs from Samsung XXKPT Stock Rom. Sources updated by me.

Notice

Always backup your system before flashing anything, including this patch. Let me know how it work out for you! This patch was tested both with GPSTest Plus + Ndrive, Mireo Navigators and worked perfect!

Installation procedure for CM7.x users

-- Place the attached zip file on your sd-card

-- Reboot into CWM5, mount system then flash it

-- Reboot phone

-- Finalize procedure as described in 2nd post

-- Done!

Installation procedure for STOCK ROM users

-- You must be rooted

-- Place gps.conf file on your sd-card

-- Open root explorer, copy that file and paste it to system\etc. It will overwrite old file and create a backup for that.

-- Do procedure as described in 2nd post

-- Set permissions to new file to rw-r--r-- and reboot

-- Once all above completed use GPS Test to clear AGPS and update AGPS

-- Done!

Installation procedure for MIRACLE V3 users

Either of two procedures above should work the same. Choose what is easier for you. The only thing changed from patch already included in MIRACLE V3 is the gps.conf file in system\etc

Credits

lagloose for firstly having this wonderul idea

GeoX at Samsung Galaxy S2 forums at myphone.gr

Screenshots using GPSTest Plus and NDrive