[CM7.x][Patch] improve GPS and Sensors

Search This thread

artifex21

Senior Member
Mar 3, 2011
584
167
Belgrade
Xiaomi Poco F3
Installing update...
assert failed getprop("ro.product.device") == "cooper" | | getprop("ro.build.product") == "cooper" | |
getprop("ro.product.board") == "cooper" | |
getprop("ro.product.device") == "cooper"
== "GT-S5830" getprop("ro.product.board") == "GT-S5830"
E:Error in /sdcard/cm7.x_gpspatch.zip (Status 7)
Installation aborted

Can't install the zip :)
I have samsung galaxy 3 with CM 7.2
CWM is 5.0.2.7
 

DaBigFreak

Senior Member
Dec 7, 2010
518
83
Kassel
Installing update...
assert failed getprop("ro.product.device") == "cooper" | | getprop("ro.build.product") == "cooper" | |
getprop("ro.product.board") == "cooper" | |
getprop("ro.product.device") == "cooper"
== "GT-S5830" getprop("ro.product.board") == "GT-S5830"
E:Error in /sdcard/cm7.x_gpspatch.zip (Status 7)
Installation aborted

Can't install the zip :)
I have samsung galaxy 3 with CM 7.2
CWM is 5.0.2.7

So there is the answer, you have a different phone!
 

calav3ra_de

Senior Member
Jan 22, 2012
320
132
LOL this guy didnt recognize he is in the ACE forums

PS: Speed is great. Thanks, works good as far as i could test. Let you know if anything goes wrong.

Tested on [ROM][Gingerbread] 2.3.7 | Clean Android | AOSP|Beta1
 
Last edited:

Jalfrezi

Senior Member
Dec 6, 2008
428
42
Woodshires Green, Coventry
since i installed this tweak ive just had major success the phone is the best it can be at last

i use gps status still to test it out and my best so far is 2's secure lock on endomondo every time

keep it up great effort who needs a pricey phone when these work awesome
 
  • Like
Reactions: jagroshan

lagloose

Senior Member
Feb 11, 2008
728
2,969
Some people posted that compass is not working correct. could you please all check it out and post here, if it works for you or not...
 

itasoulas

Senior Member
Nov 3, 2011
2,215
4,502
Athens
www.youtube.com
@lagloose

Hey dude, may I ask from which stock did you get HW libraries or gps files? And once we've got two very good roms, one Asian DDKQ8 and a European XXKPT (BEST SO FAR - FASTER GB EVER!), should you consider update your patch with those sources if changed?
 
Last edited:

itasoulas

Senior Member
Nov 3, 2011
2,215
4,502
Athens
www.youtube.com
GPS & Sensors Patch Updated by itasoulas (April 2nd, 2012)

:: Updated system\bin\gpsd from XXKPT
:: Updated system\etc\gps.conf from XXKPT
:: Updated system\lib\hw from XXKPT
:: I think now with updated files locks faster


+ All credits go to lagloose, I just updated the files on his original zip with latest sources from XXKPT
+ If you have original patch, just boot in recovery, mount system and install this. It will overwrite old files and wipe your /data/gps directory to remove old xtra.bin files as original file. So if you start your GPS is like using it for the first time.
+ Please backup your current rom before flashing this. It is highly unlikely that this will do any harm to your phone but you never know, sometimes sh*t happens!

NOTE: The updated gps.conf file does not specify a pool server, e.g. Europe, Asia, etc.. in contrast with lagloose's file that has been edited to specify Europe server. That's good for European users cause even at first use they'll get a faster lock. But users in other continents won't! But after first use all users should lock fast (or faster) as with lagloose's patch. I could have done different versions for each pool server but just would be a pain in the a*s. The bottom line is that after first use you get fast lock as with stock

In order for you to get fastest gps lock ever, do this:
1. Go to my zip, system\etc and open the gps.conf with notepad or wordpad
2. Before the following
SUPL_HOST=supl.google.com
SUPL_PORT=7276

add
NTP_SERVER=YOURCOUNTRY.pool.ntp.org (if you don't know how exactly your country must be written visit this http://www.pool.ntp.org/zone/@)
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

3. Save file
4. Now your gps is locked to your country.
5. Flash, reboot and enjoy!!! Updated sources from XXKPT with your configuration=SPEED!

Example
 
Last edited:

spicediablo

Senior Member
Oct 26, 2011
1,665
243
Malaysia
OnePlus 11
How do i install this if I don't have the old patch? What files are changed besides gps.conf?


GPS & Sensors Patch Updated by itasoulas (April 2nd, 2012)

:: Updated system\bin\gpsd from XXKPT
:: Updated system\etc\gps.conf from XXKPT
:: Updated system\lib\hw from XXKPT
:: I think now with updated files locks faster


+ All credits go to lagloose, I just updated the files on his original zip with latest sources from XXKPT
+ If you have original patch, just boot in recovery, mount system and install this. It will overwrite old files and wipe your /data/gps directory to remove old xtra.bin files as original file. So if you start your GPS is like using it for the first time.
+ Please backup your current rom before flashing this. It is highly unlikely that this will do any harm to your phone but you never know, sometimes sh*t happens!

NOTE: The updated gps.conf file does not specify a pool server, e.g. Europe, Asia, etc.. in contrast with lagloose's file that has been edited to specify Europe server. That's good for European users cause even at first use they'll get a faster lock. But users in other continents won't! But after first use all users should lock fast (or faster) as with lagloose's patch. I could have done different versions for each pool server but just would be a pain in the a*s. The bottom line is that after first use you get fast lock as with stock

In order for you to get fastest gps lock ever, do this:
1. Go to my zip, system\etc and open the gps.conf with notepad or wordpad
2. Before the following
SUPL_HOST=supl.google.com
SUPL_PORT=7276

add
NTP_SERVER=YOURCOUNTRY.pool.ntp.org (if you don't know how exactly your country must be written visit this http://www.pool.ntp.org/zone/@)
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

3. Save file
4. Now your gps is locked to your country.
5. Flash, reboot and enjoy!!! Updated sources from XXKPT with your configuration=SPEED!

Example



Sent from ace on the end 4.0
 

iandol

Senior Member
Jan 23, 2012
428
184
London
Just flash the ZIP in CWM, you don't need the old patch. Exactly the same files as the original lagloose patch are changed.

I've tested this, works perfectly, edited gps.conf for the UK and got lock in about 10 seconds in Maps 6.5 and in central London, very good accuracy...
 

Top Liked Posts

  • There are no posts matching your filters.
  • 93
    Here's a patch for CM7.X to improve GPS and Sensors.

    The 'new' CM7.2 from vo-1 is IMHO the best CM7 we have. Only thing which disturbed me was the slow GPS. The PFGPS Tweaks by PFittech didn't really work for me. So i took a look at the GPS functions of Stock Samsung ROM to see what i can do. CM7 and Samsung use different ways to provide GPS funtions. While CM7 'directly' accesses the hardware, Samsung does it via a running daemon (/system/bin/gpsd'). Obviously this works much better than GPS functions provided by CM7. So i decided to try the Samsung GPS functions in CM7 which worked very well out of the box. I always have a GPS-Fix now in less than a minute. This required a complete replacement of HW libs provided by CM7. This worked without any problems. All Sensors (at least for me) are working. More than that, i personally have the feeling that everything is a little bit smoother and faster. But that maybe a 'Placebo'...

    Anyway, here's the patch for those who want to try. What does it do ?

    - it completely replaces the libs in /system/lib/hw with libs from Samsung STOCK ROM
    - it installs 'gpsd' in /system/bin
    - it installs a stock gps.conf in /etc
    - it wipes your /data/gps directory to remove old xtra.bin files

    Note: PFGPS doesn't work with this patch So if you've already flashed PFIttech's PFGPS tweaks, they will be uninstalled by my patch.

    All necessary entries to start the daemon and prepare directories were already found in 'init.gt-s5830.rc' (..which is very strange because there isn't any /system/bin/gpsd in a standard CM7.X installation). I've tested my patch on a clean CM7.2 (vo-1) installation. But it should work on all CM7 variants.

    Before flashing don't forget to create a CWM backup.

    No need to wipe anything. Just flash via CWM 5.0.2.6

    DOWNLOAD: http://www.4shared.com/zip/G6mCEPDh/cm7X_gpspatch.html

    Please report here if it worked for you or if you find any problems...

    ENJOY
    6
    GPS & Sensors Patch Updated by itasoulas (April 2nd, 2012)

    :: Updated system\bin\gpsd from XXKPT
    :: Updated system\etc\gps.conf from XXKPT
    :: Updated system\lib\hw from XXKPT
    :: I think now with updated files locks faster


    + All credits go to lagloose, I just updated the files on his original zip with latest sources from XXKPT
    + If you have original patch, just boot in recovery, mount system and install this. It will overwrite old files and wipe your /data/gps directory to remove old xtra.bin files as original file. So if you start your GPS is like using it for the first time.
    + Please backup your current rom before flashing this. It is highly unlikely that this will do any harm to your phone but you never know, sometimes sh*t happens!

    NOTE: The updated gps.conf file does not specify a pool server, e.g. Europe, Asia, etc.. in contrast with lagloose's file that has been edited to specify Europe server. That's good for European users cause even at first use they'll get a faster lock. But users in other continents won't! But after first use all users should lock fast (or faster) as with lagloose's patch. I could have done different versions for each pool server but just would be a pain in the a*s. The bottom line is that after first use you get fast lock as with stock

    In order for you to get fastest gps lock ever, do this:
    1. Go to my zip, system\etc and open the gps.conf with notepad or wordpad
    2. Before the following
    SUPL_HOST=supl.google.com
    SUPL_PORT=7276

    add
    NTP_SERVER=YOURCOUNTRY.pool.ntp.org (if you don't know how exactly your country must be written visit this http://www.pool.ntp.org/zone/@)
    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

    3. Save file
    4. Now your gps is locked to your country.
    5. Flash, reboot and enjoy!!! Updated sources from XXKPT with your configuration=SPEED!

    Example
    3
    Hey lagloose. Heard your patch worked on CyanogenMod 9 by Maclaw. Can you work a bit more on it as the GPS doesn't seem to lock for many users?

    Thanks in Advance.

    cm9 patch on Monday...

    Sent from my GT-S5830 using XDA
    2
    Could someone please uploud the fix on mediafire? I just can't download it from 4shared :'(

    Not mediafire, but it should work just like it no wait times or anything, directly from bropbox.

    http://db.tt/PaKw0LmD