Guide to GPS works on the improvement of MTK 6575-6577 | All phone / tablet on MTK 6575-6577 Platform
Survey on this topic
Did this article help you?
Yes [ 1294 ] ** [64,83%]
Not [ 429 ] ** [21,49%]
I broke my device [ 272 ] ** [13,63%]
Which method do you think is best for you?
Clean gps [ 641 ] ** [32,11%]
GPS + A-GPS [ 891 ] ** [44,64%]
GPS + EPO [ 335 ] ** [16,78%]
I do not use GPS [ 129 ] ** [6,46%]
Total votes: 1996
 



Rep: (442)
MTK 6575-6577 GPS Improvement Guide


Optimum GPS Tuning Method for MTK6589 Platform Devices

Solution for devices with a weak GPS antenna - Automotive version

About the need for firmware / full wipe

Very interesting info** NEW **

Convenient program for the patch mtkgps.dat

original article on google doc's


GPS Improvement Guide for MTK 6577:

A small preface:
In this section, and indeed in the whole document - the personal opinion of the author is posted. It may differ from reality. Everything written is to be taken as information for reflection, not a step by step guide. The author is not responsible for the damaged device and / or other problems arising after reading this manual.

Terms
[color = "# 000000"]GPS
Global Positioning System (Global Positioning System) provides navigation satellites for measuring time and distance.

A-GPS
The system allows to significantly reduce the time of cold start of the GPS receiver.

In order to reduce the cold start time, the Assisted-GPS system was developed, which allows you to download the necessary data from the server of the operator providing this service. If there is no A-GPS in your cell phone, then the determination of the initial coordinates will take several times longer (0.5 - 2 minutes) than with such a system (10 - 20 seconds).

EPO - (Extended Prediction Orbit)

The analogue [of the functions performed] of the A-GPS technology, developed by MTK, loads data into the device with a satellite position forecast for 30 days.
[A-GPS - downloads each time before use, EPO - loads before use and works for 30 days]

Hot (Hot), Warm (Warm) and Cold (Cold) start.
The “start” time required by the navigation receiver to determine the position after switching on depends on the initial information stored in the memory. The following modes are highlighted:
“Cold” start (“auto search”) - time, position, almanac and ephemeris unknown
“Warm” start - position and ephemeris are unknown, time and almanac are known
“Hot” start (“re-capture”) - almanac, ephemeris are known, time and position are known with some error
MTK chips:

MT6620
combined chip used in the MTK 6575/6577 platform. responsible for the operation of GPS and other interfaces.

MT6628
a chip that performs functions similar to MT6620, has some differences [no data - you need to add]

MTK 6575/6577
SOC platform [2x Cortex A9 CPU + Power SGX 531 GPU]
Usually MT6620 / MT6628 is used in conjunction with it.

Theory
GPS in the MTK 6577 platform :

Implemented in the MTK6620 / 6628 chip, in addition to the GPS function, it performs many other functions — Bluetooth, WIFI, Cellular Network, etc.

The quality of GPS operation is not comparable to garmin / magellan, but for a smartphone it will work - the main thing is properly configured A-GPS - with it the work of GPS becomes quite bearable. Naked GPS without A-GPS or EPO - does not work well [in comparison with other chips]

mtkgps.dat, liblmnp and everything related to them:

mtkgps.dat is a very controversial file, very often it is the cause of poor GPS performance, sometimes until complete lack of satellite signals.

For phones coming from their historic homeland (china) - deleting a file is the easiest and most effective option for restoring GPS.
(file is re-created after the first GPS fix)

infa - personal opinion, I can be very wrong:
the file itself - stores in itself the received almanac and ephemeris - i.e. the next time you turn on - the body takes the data first from there, and then it turns to A-GPS or EPO. because of what problems arise.

for some reason (and not found) - the file deteriorates - after which the GPS starts to work poorly:
catches 4-6 satellites, loses them, very poor positioning accuracy, etc.
if mtkgps.dat is completely corrupted (or was created in another country) - then it contains a completely wrong almanac - as a result, the GPS does not work at all (1 satellite appears within an hour and that's it ...)
liblmnp patch :
usersavagemessiahzine.com - overtek- found a way - disable the creation of the mtkgps.dat file, this method corrects the effect - but not the cause, but this is already an achievement!

result :
the MT6620 chip is as good as possible - but only with A-GPS technology.
when A-GPS is turned off - a cold start always happens - due to the lack of the mtkgps.dat file (a crutch - but for many people - completely solves the problem with GPS)


Nuances for manually deleting the mtkgps.dat file:
after removal:

first launch (with A-GPS enabled) - instant finding of satellites, fast fix and the best possible GPS operation.

The second launch - A-GPS is not forcibly used by the system - a cold start occurs. Lasts from 3-5 to 15-60 minutes

the third and subsequent start - mtkgps.dat is used when working, for this reason - starting without A-GPS is faster, but with A-GPS turned on - data is not always taken fresh - for this reason, GPS can get a fix not after 15-60 seconds (which is the norm for A-GPS) - and in 1-15 minutes. is solved by the liblmnp patch.
[/ color]

GPS Techniques Description, Pros & Cons
1 - clean GPS
pros:
does not require internet = works anywhere.
minuses:
The longest speed is 1-10 minutes. catches about ~ 8 satellites.

I recommend using this method - if the GPS + A-GPS method is not suitable - for any reason.

2 - GPS + A-GPS Method

pros:
with the GPS + A-GPS method and the patched libmnlp file [read in detail in the method itself]:
1 - the best detection rate - 5-60 seconds. mostly 5-15s.
2 - the maximum number of used satellites - 9-12
minuses:
To work, you need a mobile Internet [a single request occurs ~ 5-7kb when the GPS starts]. without the Internet, there is a cold start.
I recommend this method as the most effective. GPS in MTK works 100% only in this method.

3 - GPS + EPO method
EPO - MTK chip, in fact, should replace A-GPS
pros:
Accelerates the finding of satellites - 20-60s to fix. does not require constant access to the Internet (the Internet is needed once a month)
minuses:
For unknown reasons, 4-6 satellites are catching, no more. Accuracy is worse than other methods.I do not recommend this method to use


Instructions on how to properly configure GPS, EPO, A-GPS

The section contains a sample guide - you need to understand the meaning of what was written, and then proceed to specific actions.
to perform the following actions - you must haveROOT.
All screenshots are made on android 4.1.2, smartphone model [Jiayu-G3] - on other devices everything may be a little different

pure GPS {without EPO and A-GPS}
1 - check for files - if there is a file - delete it. Is requiredROOT !

/data/misc/mtkgps.dat
/data/misc/epo.dat
/system/etc/gps.conf

Instruction in pictures - for beginners in android [program - root explorer]:

1.1 - set write permissions to system folders.
root explorer rights
1.2 - go to the / data / misc folder and delete the EPO.dat and mtkgps.dat files
deleting mtkgps.dat and EPO.dat files
1.3 - go to the / system / etc folder and delete the gps.conf file
delete gps.conf file

2 - GPS Setup:
2.1 go to settings - Location data
settings - location data
2.2 - turn on 'access to my location data' and set ON 'By GPS satellites'.
set up settings
2.3 - click on the caption 'On GPS satellites' [on the caption - not on the button]
click!
2.4 there in the menu off EPO and A-GPS.
we expose the settings!

3 - Go to YGPS
3.1 - dialing - * # * # 54298 # * # * - Location - YGPS
Location Point - YGPS
3.2 - we go out into the street [to the place - where GPS should be well caught]
3.3 - go to the Information item in YGPS, press the full button
press the full button
3.4.1 - go to the satellites tab and wait for:
green bars will appear first
green bars
3.4.2 - if there are no green bars, go to the section:
'Problems and methods for solving them & Nuances'

3.4.3 - the number of columns will increase from 1 to 8-12
green bars 2
3.4.4 - on the blue circle - red dots will appear.
red dots
3.4.5 - red dots turn green
green dots
3.4.6 - over time their number will be 8-12
complete sky map
primary calibration is finished - takes from 5 to 30 minutes ..
3.5 - go to the item Information, press the cold button and repeat
3.4.x points (take no more than 5 minutes)
3.6 - go to the item Information, press the warm button and repeat
3.4.x points (take no more than 5 minutes)
3.7 - go to the item Information, press the hot button and repeat
3.4.x points (takes no more than 2 minutes)

4 - GPS setup is finished. The libmnlp file in this method should be unpatched, for more details see the Theory section, if you are a Jiayu-G3 user
You can get the unpatched file in the 'GPS + A-GPS' section - point 4,
There are files for 4.0.4 off. 11/29/2012 and 4.1.2 beta 1 off.


When using the GPS + A-GPS method, it is strongly recommended to use the new method, for the following reasons:
GPS + A-GPS - Advantages of the new method over the old
1 - easy installation:
Requires only ROOT and Android Terminal Emulator
2 - versatility:
Works on all devices with MTK 65xx (6589 has not yet been tested), regardless of the version of android.
3 - security:
In this method it is much harder to break your device.BUT! This is all the same console with ROOT! Rm -rfand things like that will kill your system. therefore, we first think - after doing.

NEW! Software for forced update of A-GPS data, Authorhartec
Guidelines for improving GPS performance on MTK 6575-6577 (Post # 21928481)
Important information for GPS + A-GPS methods. Especially for users of Jiayu G3
such an interesting bug was noticed on my Jiayu G3. Perhaps your device has a similar problem:
JIAYU-G3 - Power Consumption (Post # 21245041)
I personally, this thing helped to eliminate the error "ERR: Expect message back in specific time interval" - appearing periodically (A-GPS does not come to the phone sometimes. for me it was an annoying moment in the GPS + A-GSP method.)
to do this instruction or not to do is your own business. she is optional


Utility to freeze / defrost the mtkgps.dat file
GPS + A-GPS -New method"Patch mtkgps.dat"
A little theory:
vitalyvbfound a more efficient method based on the mtkgps.dat patch (libmnlp remains unpatched!)
the essence of the method is that we create an empty mtkgps.dat file and "freeze" it in such a state, thanks to which A-GPSs regularly arrive at the phone.
the effect of the action is no different from the libmnlp patch.
ROOT is required to take action! + installed busybox! You can get busybox here:
Google play
savagemessiahzine.com
after installation, do install and reboot the phone.
# - comments

Performed actions:

0 - turn off the GPS for the duration of the action!
1 - Install Android Terminal Emulator:
can be found directly on Google Play (Market) - we are looking for Android Terminal Emulator. or install the program on the links below:
пїЅпїЅGoogle play
пїЅпїЅsavagemessiahzine.com
пїЅпїЅDropbox
if you install a program not from the market, you need to allow "unknown sources" in the settings - security - check the box "unknown sources"
2 - Perform actions in the program "Android Terminal Emulator"
2.1 - run the program "Android Terminal Emulator", this black screen will open with the words -http://savepic.org/3261241.png
2.2 - we write the command:
su
and pushEnteron keyboard.
# action description: with this command we get ROOT privileges in the console
## the result should be something like this -obtained ROOT privileges
### depending on the settings of super_su / super_user - after pressing the Enter key, a request will be sent to obtain Root rights. will need to give a positive response to the request.
2.3 - use the command:
cd / data / misc

# description of the action: go to the folder / data / misc ## the result should be suchfolder / data / misc
2.4 - use the command:
rm mtkgps.dat
# action description: delete the mtkgps.dat file ## system response options:
пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ1 - ... v1 ...- All is well, the file mtkgps.dat is deleted.
пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ2 - ... v2 ...- the mtkgps.dat file was not found (perhaps it was deleted earlier or was absent in the system) - everything is fine.
пїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅпїЅ3 - ... V3 ...- the file is not deleted. it was probably frozen earlier - we are looking for a way to defrost in the section "defrost mtkgps.dat"
2.5 - use the command:
touch mtkgps.dat
# action description: create an empty file mtkgps.dat ## the result should be suchtouch mtkgps.dat
2.6 - use the command:
chattr + i mtkgps.dat
# action description: freeze the mtkgps.dat file ## the result should be suchchattr + i mtkgps.dat
2.7 - exit the program -Output- press this button and in the window "close this window?" click "OK"

3 - GPS Setup:
3.1 go to settings - Location data
пїЅпїЅпїЅпїЅsettings - location data
3.2 - enable 'access to my location data' and set ON 'By GPS satellites'.
пїЅпїЅпїЅпїЅset up settings
3.3 - click on the caption 'On GPS satellites' [on the caption - not on the button]
пїЅпїЅпїЅпїЅclick!
3.4 - turn on in A-GPS settings, turn off EPO.
пїЅпїЅпїЅпїЅsetting - screenshot
3.5 - go to the A-GPS settings.
пїЅпїЅпїЅпїЅenter A-GPS settings
3.6 - we set up A-GPS, turn on the network request, set Google as the A-GPS server.
пїЅпїЅпїЅпїЅA-GPS settings

4 - testing and launching GPS
4.1 - go to the engineering menu - detail in the section “General tips” - for JY-G3 with 4.1.2 JB - * # * # 54298 # * # * in the dialer.
4.2 - Engineering menu - Location - YGPS
пїЅпїЅпїЅпїЅLocation Point - YGPS
4.3 - go to the item Information, press the cold button.
пїЅпїЅпїЅпїЅButtons Cold and A-GPS Restart
go to the satellites tab - red dots should appear (satellites received via A-GPS)
пїЅпїЅпїЅпїЅSatellites received via A-GPS
if red satellites do not appear - we are doing paragraph 4.4
if red satellites appear - perform clause 4.5
4.4 - go to the section:
пїЅпїЅпїЅпїЅ'Problems and methods for solving them & Nuances'
4.5 - we go outside [to the place - where GPS should be well caught]
4.6 - in YGPS - click until red satellites appear - as in this screenshot:
пїЅпїЅпїЅпїЅSatellites received via A-GPS
4.7 - after 15-60 seconds, some points should turn green, we need to wait until the maximum points are green (the more, the better)
but without fanaticism - no more than 5 minutes.
after two minutes should be something like this:
пїЅпїЅпїЅпїЅFix 11 of 12 satellites in YGPS
4.8 - make 3 fixes in a row via the cold button (to green satellites)

5 - GPS setting using the 'GPS + A-GPS' method -is finished. Consider that:

GPS in this method works correctly only with A-GPS:
Fix occurs in 15-60 seconds, 8-12 satellites in operation, the accuracy is as high as possible under these conditions.

Without A-GPS - a cold start always happens - it means that:
Fix occurs in 5-30 minutes 6-8 satellites in operation, with an extension to 12. Accuracy is the same with 7+ satellites.

P.S. Method GPS + A-GPS - gives the best results in work, but you need the Internet to work (only at the start - 5-7kb, then you can turn it off)
I recommend using this method. Since it is the most effective and no problem.
Jiayu G3, after applying this method, the antenna is standard:
Satellites in Navitel
Satellites in GPS Test

defrost the mtkgps.dat file - enter into the console:
su
cd / data / misc /
chattr -i mtkgps.dat

GPS + A-GPS -Old method"Patch libmnlp"
Attention:

This method requires the Internet to start GPS:
Preferred internet with a sim card! Without a sim card via WIFI - A-GPS does not work!


For owners of Jiayu G3 with 4.1.2 [or custom based on it] and custom recovery [CWM, TWRP, Lewa Recovery] - go to step 6 !!!

1 - check for files - if there is a file - delete it. Is requiredROOT !

/data/misc/mtkgps.dat
/data/misc/epo.dat
/system/etc/gps.conf

Instruction in pictures - for beginners in android:
[program - root explorer]
1.1 - set write permissions to system folders.
root explorer rights
1.2 - go to the / data / misc folder and delete the EPO.dat and mtkgps.dat files
deleting mtkgps.dat and EPO.dat files
1.3 - go to the / system / etc folder and delete the gps.conf file
delete gps.conf file
2 - GPS Setup:
2.1 go to settings - Location data
settings - location data
2.2 - turn on 'access to my location data' and set ON 'By GPS satellites'.
set up settings
2.3 - click on the caption 'On GPS satellites' [on the caption - not on the button]
click!
2.4 - turn on in A-GPS settings, turn off EPO.
setting - screenshot
2.5 - go to the A-GPS settings.
enter A-GPS settings
2.6 - we set up A-GPS, turn on the network request, set Google as the A-GPS server.
A-GPS settings
3 - Reboot the phone



4 - Patch libmnlp (requires the ability to use the hex editor)

Details on libmnlp, mtkgps.dat and the reasons for editing it are described in the 'Theory' section. Here is a description of how to edit and replace the file in the system. This procedure should work on any phone with MTK 6577 and Android 4.0 and above (4.1.2 - works, tested)
for users of Jiayu-G3 I post archives with libmnlp files
inside there are two folders - in one there is a patched file, in which the mtkgps.dat file is not created, in the other - a file without a patch - just in case.

Dropbox 7z- archive 7z, for off. 4.1.2 beta 1, with and without patch.
Dropbox zip- zip archive, for off. 4.1.2 beta 1, with and without patch.

Dropbox 7z- zip archive, for off. 4.0.4 [29.31.12] with and without a patch.
Dropbox zip- zip archive, for off. 4.0.4 [29.31.12] with and without a patch.

users of other phones need to patch the file themselves, also you can take the file from the Jiayu-G3 phone and try to apply it in your phone, it should potentially work:
but all at your own risk, libmnlp is the main library for GPS operation!
Instructions for self-editing the file below:
4.1 - copy the file / system / xbin / libmnlp to your computer
(the instruction is not for beginners - there are no screenshots of simple actions)
4.2 - you need to edit the file in the hex editor, the instruction is only for windows.
For windows I recommend Hex workshop.
For linux, I recommend the Bless hex editor.

We need to find the line in the libmnlp file:
/data/misc/mtkgps.dat
2F 64 61 74 61 2F 6D 69 73 63 2F 6D 74 6B 67 70 73 2E 64 61 74
screenshot 1- the string to be replaced with zeros is highlighted:
пїЅ..................
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
screenshot 2- string replaced by zeros
after replacing the string with zeros - save the file libmnlp (do not forget to backup the file - in case of replacement)

4.3 - replace libmnlp file
patched libmnlp file - copy from computer to sd card and replace system / system / xbin / libmnlp with it
replacing the file in root explorer
after replacement - you need to set permissions on the file with the letter P
***
*-*
*-*
Permissions
4.4. - reboot the phone

5 - testing and launching GPS
5.1 - go to the engineering menu - detail in the section “General tips”

for JY-G3 with 4.1.2 JB - * # * # 54298 # * # * in the dialer.

5.2 - Engineering menu - Location - YGPS
Location Point - YGPS
5.3 - go to the item Information, press the cold button.
Buttons Cold and A-GPS Restart
go to the satellites tab - red dots should appear (satellites received via A-GPS)
Satellites received via A-GPS
if red satellites do not appear - we perform paragraph 5.4
if red satellites appear - we carry out point 5.5
5.4 - go to the section:
'Problems and methods for solving them & Nuances'
5.5 - we go out to the street [to the place - where GPS should be well caught]
5.6 - in YGPS - click until red satellites appear - as in this screenshot:
Satellites received via A-GPS
5.7 - after 15-60 seconds, some points should turn green, we need to wait until the maximum points are green (the more, the better)
but without fanaticism - no more than 5 minutes.
after two minutes should be something like this:
Fix 11 of 12 satellites in YGPS
5.8 - make 3 fixes in a row via the cold button (to green satellites)
if at 2-3 start-up there are no red dots, check for the presence of the mtkgps.dat file - if it exists, it means you didn’t replace the libmnlp file, or you did it incorrectly.

If the GPS does not work or does not work correctly - go to the section:
'Problems and methods for solving them & Nuances'

6 - CWM version of the liblmnlp patch [JIAYU G3 ONLY]:

for the method are required:
1 - CWM / TWRP / LEWA RECOVERY - or any other custom recovery
2 - 4.1.2 beta 1 or a custom based on it - [custom from roky_rs and other romodels should be supported]

Dear roky_rs has made an archive for cwm with a liblmnp patch for Jiayu G3 for off-firmware. 4.1.2 JB

Installation Instructions:

1 - download the archive with the patch:

Dropbox___Jiayu_G3_4.1.2_GPS_path.zip- CWM patch for JY-G3 with 4.1.2
Dropbox___Jiayu_G3_4.1.2_GPS_old.zip- CWM patch for return

2 - patch application:
go to CWM / TWRP / LEWA Recovery and apply the patch.
2.1 - reboot the device

3 - GPS Setup:
3.1 go to settings - Location data
settings - location data
3.2 - enable 'access to my location data' and set ON 'By GPS satellites'.
set up settings
3.3 - click on the caption 'On GPS satellites' [on the caption - not on the button]
click!
3.4 - turn on in A-GPS settings, turn off EPO.
setting - screenshot
3.5 - go to the A-GPS settings.
enter A-GPS settings
3.6 - we set up A-GPS, turn on the network request, set Google as the A-GPS server.
A-GPS settings
3.7 - Reboot the phone

4 - testing and launching GPS
4.1 - go to the engineering menu - detail in the section “General tips” - for JY-G3 with 4.1.2 JB - * # * # 54298 # * # * in the dialer.
4.2 - Engineering menu - Location - YGPS
Location Point - YGPS
4.3 - go to the item Information, press the cold button.
Buttons Cold and A-GPS Restart
go to the satellites tab - red dots should appear (satellites received via A-GPS)
Satellites received via A-GPS
if red satellites do not appear - we are doing paragraph 4.4
if red satellites appear - perform clause 4.5
4.4 - go to the section:
'Problems and methods for solving them & Nuances'
4.5 - we go outside [to the place - where GPS should be well caught]
4.6 - in YGPS - click cold and wait until red satellites appear - as in this screenshot:
Satellites received via A-GPS
4.7 - after 15-60 seconds, some points should turn green, we need to wait until the maximum points are green (the more, the better)
but without fanaticism - no more than 5 minutes. after two minutes should be something like this:
Fix 11 of 12 satellites in YGPS
4.8 - make 3 fixes in a row via the cold button (to green satellites)
if at 2-3 start-up there are no red dots, check for the presence of the mtkgps.dat file - if it exists, it means you didn’t replace the libmnlp file, or you did it incorrectly.

If the GPS does not work or does not work correctly - go to the section:
'Problems and methods for solving them & Nuances'

Return unlatched libmnlp:
if suddenly a situation arises in which you need to return the file to its place - use the CWM archive Jiayu_G3_4.1.2_GPS_old.zip
The unpatched file is needed with the methods of "pure GPS" and "GPS + EPO"
p.s.
file returns unpatched library for 4.1.2 firmware.
On 4.0.4 both archives are not guaranteed and are not recommended for use.

7 - GPS setting using the 'GPS + A-GPS' method -is finished. Consider that:

GPS in this method works correctly only with A-GPS:
Fix occurs in 15-60 seconds, 8-12 satellites in operation, the accuracy is as high as possible under these conditions.

Without A-GPS - a cold start always happens - it means that:
Fix occurs in 5-30 minutes 6-8 satellites in operation, with an extension to 12. Accuracy is the same with 7+ satellites.

P.S. Method GPS + A-GPS - gives the best results in work, but you need the Internet to work (only at the start - 5-7kb, then you can turn it off)
I recommend using this method. Since it is the most effective and no problem.
Jiayu G3, after applying this method, the antenna is standard:
Satellites in Navitel
Satellites in GPS Test


GPS + EPO
1 - check for files - if there is a file - delete it. Is requiredROOT !

/data/misc/mtkgps.dat
/data/misc/epo.dat
/system/etc/gps.conf

Instruction in pictures - for beginners in android [program - root explorer]:
1.1 - set write permissions to system folders.
root explorer rights
1.2 - go to the / data / misc folder and delete the EPO.dat and mtkgps.dat files
deleting mtkgps.dat and EPO.dat files
1.3 - go to the / system / etc folder and delete the gps.conf file
delete gps.conf file

2 - GPS Setup:
2.1 go to settings - Location data
settings - location data
2.2 - enable 'access to my location data' and set ON 'By GPS satellites'.
set up settings
2.3 - click on the caption 'On GPS satellites' [on the caption - not on the button]
click!
2.4 - there in the menu we turn on EPO and turn off A-GPS
we expose the settings!
2.5 - go to the EPO parameters
EPO parameters
2.6 - in the EPO parameters, load the EPO databases, and optionally set autoload
EPO download
if everything is ok, go to step 3
Nuances:
if the EPO has downloaded - everything is OK, but if it hangs at 0%, it means that the MTK server does not work, wait 3-10 days - it happens like that. At this time will have to do with clean GPS.

3 - Go to YGPS
3.1 - dialing - * # * # 54298 # * # * - Location - YGPS
Location Point - YGPS
3.2 - we go out into the street [to the place - where GPS should be well caught]
3.3 - go to the Information item in YGPS, press the full button
press the full button
3.4.1 - go to the satellites tab and wait for:
green bars will appear first
green bars
3.4.2 - if there are no green bars, go to the section:
'Problems and methods for solving them & Nuances'
3.4.3 - the number of columns will increase from 1 to 8-12
green bars 2
3.4.4 - on the blue circle - red dots will appear.
red dots
3.4.5 - red dots turn green
green dots
3.4.6 - over time their number will be 8-12
complete sky map
primary calibration is finished - takes from 5 to 30 minutes ..
3.5 - go to the item Information, press the cold button and repeat
3.4.x points (take no more than 5 minutes)
3.6 - go to the item Information, press the warm button and repeat
3.4.x points (take no more than 5 minutes)
3.7 - go to the item Information, press the hot button and repeat
3.4.x points (takes no more than 2 minutes)
Calibration is finished - you can use GPS by the method of GPS + EPO.

P.S. In this case, red satellites will start to appear after the start of 1-2 GPS fixes, this is an EPO chip, very similar to A-GPS, but for some unknown reason, A-GPS works worse, perhaps in China - this chip works better, but still with EPO, the first fix appears much faster than with pure GPS.

If the red satellites do not appear after 1-2 fixes, go to the section:
'Problems and methods for solving them & Nuances'

Nuances:
requires the replacement of databases every 30 days (you can update at least every day)
speeds up the first GPS fix
Requires NOT patched libmnlp to work.

Sometimes it starts to work much worse - there is an opinion due to damage to mtkgps.dat - for more details see the Theory section.

It works either EPO or A-GPS - DO NOT need to include both

it is strictly desirable to have - less accurate time on the smartphone - can be updated through the clocksync program.

If you set up GPS using one of the methods above, but you have / still have problems, read the next section.
Problems and methods for solving them & Nuances
Situation one :
GPS does not work at all, that is:

There are no satellites in any navigation program, there are none at all. even after 15+ minutes of waiting at the place where the GPS should be 100% caught.

to make sure that the variant is as written
launch YGPS or GPS Test

GPS Test - can be downloaded from the market

YGPS - runs through the engineering menu MTK, you can go either by code - for each phone it has its own, or through the program Mobileuncle MTK Tools

Before working with YGPS / GPS Test, it is recommended:

delete files

/data/misc/mtkgps.dat
/data/misc/epo.dat
/system/etc/gps.conf

restart the phone

and also it is desirable to turn on A-GPS [and also turn on the Internet from a sim card]

After going out to the street [to the place - where GPS is good caught] and run the YGPS / GPS Test:

In YGPS - on the information tab - click the full button, go to the sattelites tab
and wait for the green bars - if at least one appears - everything is fine
In GPS Test - just turn on the program and wait for the columns with satellites

if satellites do not appear - there are several options for events:

1 option
The libmnlp file does not work for you [there may be a modified file in the custom firmware] - if you did the libmnlp patch - check the file permissions - must be set to the letter P
You can exclude this option using the stock firmware of your device.

***
*-*
*-*
everyone is allowed to read
everyone is allowed to perform
Record allowed - owner only

Option 2

you have no physical contact with the GPS antenna, this option is quite rare, it occurs in ~ 2-5% of users. it is only possible to find it yourself - by disassembling the device. There is no description in this manual - only software repair

Situation two :

GPS is not working! sees one satellite for an hour and that's it

in this case, it’s a software problem; it’s recommended to customize using any method from the topic:

"3 GPS operation methods - their advantages and disadvantages"

I recommend the “GPS + A-GPS” method as the most effective one.

if the methods did not help, and the problem is the same as it is written - there is a chance for poor antenna contact, the chance is less than in the first situation [GPS doesn’t work completely] - the advice in this case is similar - disassemble and look for the cause. but keep in mind that this is a very rare case (99.5% that the problem is software)


Situation three :

GPS catches 4-6 satellites - no more, constantly losing them, positioning accuracy is very low [- / + 50 meters]

Option 2:

1 - poor quality of a regular antenna - a frequent occurrence on the Chinese phone of any company

2 - corrupted mtkgps.dat file - a very common bug in MTK6575 / 6577 devices

in the first case, the antenna modification helps a lot at home, read on the forums of your device — you will often find instructions with photos.

in the second case - a very, very common bug on the MTK 6575/6577 platform - try deleting the /data/misc/mtkgps.dat file and enabling A-GPS - if after these actions the GPS works perfectly - deal with mtkgps.dat, consider that 2 - 3 start after removal will be long - read in the section “Theory”

To solve this problem, configure the GPS using any method from the topic:

"3 GPS operation methods - their advantages and disadvantages"

Again, I recommend the “GPS + A-GPS” method, which completely solves the problem of the mtkgps.dat file [the file is not used] - but there are nuances, read in detail in the appropriate section.

Fourth situation :

I set up GPS using the GPS + EPO method, after 2-3 fixes - GPS catches the same way - without red satellites, what should I do?

tips might seem silly but ...:

Check if EPO databases are downloaded:

1 - way:
go to settings - location data - by GPS satellites - EPO parameters and see if the databases are downloaded.
2 - check the presence of the file /data/misc/epo.dat - if it does not exist or its size is 0 bytes or there are incorrect permissions on it - correct these problems.

if this doesn't help either - most likely it's about the firmware (we are trying to flash the stock firmware - it should work)

Situation five :

"ERR: Expect message back in specific time interval"

Everything is very simple - when requesting A-GPS - the device did not receive a response from the Internet - why? look for the reason (99% something with the Internet on the device - helps A-GPS request or closing / opening the navigation program
JIAYU-G3 - Power Consumption (Post # 21245041)- maybe it will help to solve the problem (it helped me. it doesn't seem to appear)
Situation sixth :

Did the GPS using the GPS + A-GPS method, after all the actions - the GPS disappeared altogether! what am I doing wrong?

90% - something happened to the liblmnp file, check the permissions, if it didn’t help - try to return the version without a patch to its place - if the GPS starts to show signs of life - this means liblmnp - look for the cause. if it fails, below are my contacts, I will help - do not hesitate.

Situation seven :

I did everything, and the device was reflashed and tried all the methods, even I made the antenna here! Does not help! what to do?

Well, well - and it happens, do not despair - we write here:

Skype - light.vik
Mail.ru - [email protected] is better in the agent (I rarely read mail)
Qip - [email protected]
savagemessiahzine.com- lightvik (write to qms!)
china-iphone.ru (less often, but still - write in a personal)

I live there - where the time zone is +6, please consider.


some general tuning tips
General tips
how to enter the engineering menu in the phone with the MTK 6577 platform :

1 - either via Mobileuncle MTK Tools - the easiest option
2 - or entering the code of the engineering menu through the dialer - possible options:

*#*#54298#*#*
*#3646633#

If the options do not fit - google how to enter the engineering menu - specifically in your phone model.

if you have changed A-GPS settings many times and it does not work :

go to the engineering menu:

then go to the location - location based service - a-gps, and do the following

Click the Reset to Default button.
put ticks in points:
enable network enabled and enable A-GPS
click the Save profile button

reboot the phone

instructions on how to properly restart the phone :

after following the many instructions, there is a need to restart the phone, here it is described how to do it correctly:

1 - turn off fast boot

go to the settings - special. features - quick download item - remove the check mark.

2 - turn off the phone

3 - remove the battery for 15-30 seconds

4 - insert the battery

5 - turn on the phone

This method allows you to 100% make sure that the phone is rebooted correctly - at least three users helped!


A small afterword.
post scriptum
People who helped make this guide:

savagemessiahzine.com:
ma-min- general support
YanDyN- help in creating a method of work through [script + tasker]
(the method is not described due to the exceptional complexity of the implementation - replacement: libmnlp patch)
Method through tasker - maybe it will be useful to someone!
alex1287- a lot of information about the work of GPS
overtek- the author of the patch libmnlp
AtlantisGate- Technical information
dans82- help and testing [Star b92], distribution of the article.
Cat_man- idea.
Roky_RS- CWM patch libmnlp for Jiayu G3
vitalyvb- patch mtkgps.dat
The author endorses and supports any copying, distribution and publication of this article.
modification is not prohibited, but the modified version should clearly state that it differs from the original article. also a link to the original article is obligatory.

Lightvik savagemessiahzine.com



For any questions, write to the topic, if you need urgent help - we write in qms.those who voted to break the device - describe the problem in the subject. I'll try to help
In the extreme case, if the GPS after setup does not work at all - you can simply flash the stock dump of the firmware via the USB flash drive - everything should work.



The most cardinal and most effective method of repairing GPS in a device on MTK6577


Post has been editedlightvik - 21.06.15, 18:24



Rep: (2497)
Yuri W @ 10/05/2013, 1:18*
And the reception, with pripaenoy antenna?


Became a little better, the bars in YGPS higher steel. The apartment is on the window sill to reach 38.



Rep: (1383)
sasvlad @ 10.05.2013, 16:17*
Became a little better, the bars in YGPS higher steel. The apartment is on the window sill to reach 38.

And the street was more?
I have a home antenna same.

Post has been editedYuri Z - 10.05.13, 16:44
Reason for editing: I ....



Rep: (1383)
lightvik @ 10.05.2013, 06:45*
as described above - it remembers data channels - shows satellite signals. but super precise location it is written (oldest data A-GPS) - and shalt seek them in a completely different location / time.

YES. I tried the balcony again. Fix 66 seconds, half yellow satellites. After bask reset button, fixed for at least 6 seconds and 9 out of 12 of all green.
PS. This is not starting after 14-15 hours. After a day would be normal soon. As the check.

Post has been editedYuri Z - 10.05.13, 16:43
Reason for editing: PS



Rep: (442)
Yuri W @ 05/10/2013, 19:34*
PS. This is not starting after 14-15 hours. After a day would be normal soon. As the check.

and I after two hours after the last Fix - about 7 minutes in this state, the trailer could not.



Rep: (1383)
lightvik @ 10.05.2013, 16:53*
and I after two hours after the last Fix - about 7 minutes in this state, the trailer could not.

So if you do not force a restart, then too long. Not 7 minutes, but it is 3-3.5 minutes.



Rep: (1257)
I wrote a program. It does:
1. Check whether the Internet is, pinging the primary server agps - supl.google.com.
2. If the ping passes, only then comes the cache cleansing agps (actually I do not know where it is, but file mtkgps.dat remains in place).
3. Writes gps settings that the next time you run gps you need from the Internet to get the time and agps data.

While not pretty and it needs some work, but try it and you can even enjoy.

I as tested:
1. Launch YGPS, nothing pressing.
2. YGPS can load the old data or AGPS - it does not matter. I do not wait for a fix.
3. I close YGPS - he prescribes curves data mtkgps.dat, because I did not wait for a fix.
4. Re-open YGPS - I see that there is no red moons. All this has come a time when we swear that there is no automatic update agps.
5. I close YGPS.
6. Launch your prog AGPS restart. I close immediately.
7. Again open YGPS - see that agps data to load, and there were red moons.

How I use:
- either because:
1. Launch your prog AGPS restart. I close immediately.
2. Run Navitel, turn in the "Satellites" window - see that the gps got fresh agps data.

- either because:
1. Start Navitel, turn to the "Satellites" - seeing that there are no satellites on the globe, and agps itself does not want to be updated (our case).
2. I turn Navitel.
3. Launch your prog AGPS restart. I close immediately.
4. I turn the Navitel - wait a bit and see what agps updated, there were companions on the globe.

I checked with wi-fi and gprs. There's no reference to the type of the Internet, so, probably, with the 3g will work.
Compiled for android versions 4.0.3-4.1.2. I checked on the G2S.
Try. Like, that's what we needed =)

Post has been editedhartec - 13.05.13, 09:44
Reason for editing: It was the first trial. Current in the post # 242



Rep: (1257)
The same program, but in the case of successful update agps closes itself, and launches Navitel.
It turned out that it is like a shortcut to start Navitel, but with agps = fresh data)

Post has been editedhartec - 13.05.13, 09:45
Reason for editing: The current version in the post # 242



Rep: (1383)
hartec @ 10.05.2013, 20:19*
1. Launch your prog AGPS restart. I close immediately.
2. Run Navitel, turn in the "Satellites" window - see that the gps got fresh agps data.

I Tried. Only instead of Navitel, used YGPS. I got a very long time.
But I tried in your own version of the principle. In general the same.
In any case, the body overloaded. I went into YGPS (see long thought) and came out of him. And then he went again. Fix after 9 seconds. 9 out of 11 possible green. This is from the balcony, in front of which are already in full blossomed trees.
But these methods, we have not yet achieved the automation. I.e. I am including GPS and entered into any navigation program and get a quick fix. We'll keep thinking.



Rep: (1257)
Agps in settings tick cost? A long time - I do not understand. Satellites red appear at once?
Gps must already be included agps restart at startup.

Post has been editedhartec - 11.05.13, 01:05



Rep: (1383)
hartec @ 11.05.2013, 00:49*
Agps in settings tick cost? A long time - I do not understand. Satellites red appear at once?
Gps must already be included agps restart at startup.

This, needless to say.

Posted 05/11/2013, 1:18:

hartec @ 11.05.2013, 00:49*
Satellites red appear immediately

Is always.



Rep: (1383)
To further simplify the movements, tried with tips hartec, following. I went into Google maps and left. I went again. Fix occurred after 18 seconds (felt approximately) It was 1.5 hours after the previous fixation. I try afternoon.



Rep: (442)
Yuri W @ 11/05/2013 03:36*
I am including GPS and entered into any navigation program and get a quick fix. We'll keep thinking.

Tasker script to write, which is turned on when GPS is launching the utility.
But the guys. it's all crutches. here for good you need to find how to change this system.



Rep: (1257)
Yuri Z,
A library is not a patch you have? I have it sink and red satellites without restarting agps not.

lightvik,
Script - yes, a crutch. You can even try pasting the code into settings.apk or inside navitel.apk for even greater automation ...
In my code, there is nothing strange for the system. For example, mtkgps.dat removal - this is not normal, though, and work. But my code initiates agps functions using the most of its feature, home, for this purpose. If these few lines inserted in type Navitela program developers at once - there were no problems at all. A feeling that mtk-Schnick it is left to the mercy of application developers, and they are in their usual nothing specifically for mtk devices did not change, which is logical.



Rep: (442)
whereas in this case it is possible to make a bp which will monitor system event (GPS startup for instance) and forcibly send the A-GPS request. Only do so quietly that he was included. and add a button (on / off) in settings.apk



Rep: (1257)
I can make that data agps unnoticed (and better communication with Toast) are updated when GPS exception (in the settings).
It seems to be more comfortable so. And to catch the type of event "is activated gps module" can not find as apparently does not.



Rep: (1383)
hartec @ 11.05.2013, 14:00*
I can make that data agps unnoticed (and better communication with Toast) are updated when GPS exception (in the settings).
It seems to be more comfortable so. And to catch the type of event "is activated gps module" can not find as apparently does not.

That is compulsorily and immediately? It would be logical. That's when GPS is turned on. If not turned off, then a hot start when turned off and then turned on the button, then warm.



Rep: (442)
hartec @ 11.05.2013, 17:00*
I can make that data agps unnoticed (and better communication with Toast) are updated when GPS exception (in the settings).

so it is signified. and check to create a "forced inclusion of A-GPS" in settings.apk



Rep: (1257)
lightvik,
Implement in settings.apk not worth it, because have different phones (and in firmware) is a unique file. Do not touch it.



Rep: (1257)
ProgramAGPS Utility . To force a warm start GPS.
Post updated. In its latest version.

Benefits on options with the patch libmnlp library or freezing mtkgps.dat:
1. It does not require Root.
2. Data is not lost for the hot start. With the GPS data from the last Fix - Starts quickly without further action.
3. Easy installation and removal without the need to go into rekaveri - like a regular apk.
4. It is possible to turn on / off.

The program works like this:
1. When GPS is turned on in the settings of android (in the menu, or in the quick menu, or in some special programs - does not matter) clears the AGPS data.
2. If the navigation program is working, and we should get fresh AGPS data, it is possible to make OFF / ON GPS in android settings without leaving the navigation program.
3. If the Internet connection is not available, then the program will write about it. This would mean that the update AGPS is not possible. The old data will not remove.
4. If the Internet is, the program will reset the cache AGPS data and write about it. navigation program will receive fresh data.

Program management:
1. This is not a system application, but this application is invisible. It reacts to the inclusion of the event the GPS module.
2. The program does not need to run in advance or keep open, sufficient to establish the normal way.
3. The program can be shut down without having to remove it. To do this, you need to run it a shortcut from the program list and press the switch.
4. OFF / ON switch, but the default is OFF, and after installation it should be included.
5. Do not remove from startup and is retained in memory.

Compiled for 4.0.3-4.1.2 androids. Tested on the G2S Jiayu with version 4.1.2 of the library drain libmnlp not frozen mtkgps.dat, "network location" off, EPO Off, AGPS incl.
Tested on a variety of smartphones with different chips and different firmware, including miui and lewa. Included in some of the modified firmware as the default set.

If you have questions, write to the QMS, or via e-mail.
Please do not perezalivat to other resources.

Current version:
Attached fileAGPSUtility.apk(164.91 KB)


Post has been editedhartec - 11.07.13, 22:39



Rep: (442)
hartec @ 12.05.2013, 01:14*
AGPSUtility.apk

my thoughts:
the program works. the effect is. but looking at it, I see that it is possible to solve the problem until the end. it needs to solve the 3 objectives:
1 - Organize data cleaning A-GPS on the event "the inclusion of GPS" and the event "GPS Off" - this is the most important point. if so do this PO fundamentally solve the problem with A-GPS. if not solve, stay crutch.
2 - correct some bugs (describe later)
3 - if they performed 1 and 2 points - write on the button integration manual "forced on A-GPS" in the settings of A-GPS. The instructions in this case need to be a pure Android 4.0 and 4.1

thank you for your help in solving this problem. write, I'll try to help you.

in the decision of the first paragraph may help Tasker program (find out how it takes this data)

Post has been editedlightvik - 11.05.13, 22:35


Full version    

Help     rules

Time is now: 27/09/20, 18:19