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

Search This thread

Janocha

Member
Dec 13, 2008
36
1
Chorzów
Hi,

I have the same problem as user GerasVille (at 3rd site this thread).

Code:
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

But I'm using CWM-5.2.0.8 on Galaxy Mini device. Ofkoz I'm using CM 7.2.
Can anyone help me ?

Regards.

Edit:
omg.. sorry this fix is for galaxy ace not galaxy mini :(. I can't del this post.
 
Last edited:

nhervitz21

Senior Member
Dec 11, 2011
165
1
35
Iloilo City
Let me try this and flash it in the latest stable version of Lewa. Hope it works fine here in the Philippines.

Sent from my GT-S5830 using xda premium
 

musf

Senior Member
Dec 4, 2011
103
22
lagloose.. would u please make this kind of patch for cm10..? i mean something like err.. replacing hw gps lib with stock lib or something else.. it's because my cm10 gps take very long time to lock, i've check it by using gps status toolbox, i can get 10-11 satellite, but still not locking..
 

Mardon

Inactive Recognized Contributor
Mar 5, 2008
3,995
5,987
Hamburg
markusmenzel.de
lagloose.. would u please make this kind of patch for cm10..? i mean something like err.. replacing hw gps lib with stock lib or something else.. it's because my cm10 gps take very long time to lock, i've check it by using gps status toolbox, i can get 10-11 satellite, but still not locking..

We have no stock cm10 so its impossible to use stock libs.

Gesendet von meinem PASCAL2 mit Tapatalk 2
 

musf

Senior Member
Dec 4, 2011
103
22
We have no stock cm10 so its impossible to use stock libs.

Gesendet von meinem PASCAL2 mit Tapatalk 2

i mean stock jb lib from other device or may be using stock gb lib, is it not possible..?
right now i'm using your mod, yes i can get my position on map, but it's so loooong compared to when i use lewa with this patch..
 

mickael.webmaster

Senior Member
Sep 13, 2013
173
106
44
Paradise
For CM7.2 cooper the path flash is wrong, extract and put manualy :

bin → system / vendor / bin
etc → system / etc
lib → system / lib

And crazy work.. :good:

Thx..
 

pepin12fr

Member
Sep 5, 2016
5
0
location problem

i've tried all issues but nothing works because i can't apply patch .
lot of errors appears when applying.
and when i replace files manually my phone does'nt boot...
cm7.2 nougat s 5830i
 

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