yashsingh1/xdaforums huggingface dataset:
[Defy Android Development] sUpErwHoO:
it worked for almost ten hours, and acurate to maybe a cm :S so i dont know how a simple reboot changed this! the lock time, as said was about 20+ seconds for the first run and reduced to around 5.

ty!
[Defy Android Development] crypted:
Now that I have the gps.conf, I'll review and get back with you on a broadcom option hopefully! Give me a little bit. It's late and the wife wants to go to a movie. Will see what I can knock out in the next few hours.
[Defy Android Development] crypted:
The gps.conf I was provided is not stock for broadcom devices. If someone could get me that, I'd appreciate it.

EDIT: The CM builds are providing you with Qualcomm gps.conf files. While my patch is superior to that, it won't help with me modifying to utilize Broadcom supplied aGPS data files. I need that gps.conf to get you all a fully optimized gps.conf using my patch and those data provisions.
[Defy Android Development] popcorn1122:
As far as I see my stock defy sea15 ... there is no gps.conf file.... instead there is a gpsconfig.xml file

the file contains the following details:

<?xml version="1.0" encoding="utf-8"?>

<glgps xmlns="http://www.glpals.com/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="glconfig.xsd" >

<hal

acPortName="/dev/ttyS0"

lBaudRate="115200"

cLogEnabled="false"

acLogDirectory="/data/location/com.broadcom.gps/logs/"

ltoFileName="lto.dat"

acNvStoDir="/data/location/"

acCmdPipeName="/data/location/gpscmd"

bAllowIgnoreOsc="false"

bUseHalLogger="false"

/>

<!-- GPS configuration with standalone 26 MHz TCXO and 1.625 MHZ CNTIN -->

<gll

LogPriMask="LOG_DEBUG"

LogFacMask="LOG_GLLAPI | LOG_NMEA | LOG_RAWDATA | LOG_INTEGR | LOG_USR1"

FrqPlan="FRQ_PLAN_26MHZ_2PPM_1_625MHZ_300PPB"

RfType="GL_RF_BARRACUDA_EXT_LNA"

/>

<!-- Periodic Position Fix using default settings -->

<job id="Periodic">

<task>

<req_pos/>

</task>

</job>

</glgps>
[Defy Android Development] crypted:
Do the custom ROMs contain this as well? Like CM7 and whatever else?
[Defy Android Development] TJKV:
From CM7

Here you go...
[Defy Android Development] popcorn1122:
@crypted ... CM7.1.0 have such xml file... infact same...

I have motorola defy green lens and I am on stock rom 2.2.2 SEA 15 (Latest build)

Infact I have not seen any gps.conf file on stock roms of defy...

stock roms checked are nordic,UK blur, SEA15 ... non had gps.conf file. It only has that xml file in /system/etc. Without the gps.conf file the gps locks in 1 minute for the first use. There after its preety fast to detect where I am in 10 meter range...

---------- Post added at 12:53 PM ---------- Previous post was at 12:46 PM ----------

The accuracy of stock rom is upto 1 meter if I have wifi on and GPS On.. and the compass calibrated . this is without the gps.conf file.... the out of box defy state.

---------- Post added at 01:13 PM ---------- Previous post was at 12:53 PM ----------

Now check this :

http://www.broadcom.com/collateral/tb/LTO-TB100-R.pdf

I have checked the stock rom for /data/gps/lto.dat .... but I see no files or folders under /data .... so the lto.dat file is missing? That file basically holds an analog to XTRA data; It doesn't quite help picking up satellites, but it makes locking onto them a hell of a lot faster once they're found.

---------- Post added at 01:23 PM ---------- Previous post was at 01:13 PM ----------

adb shell

cd /data/gps

wget http://gllto.glpals.com/7day/latest/lto.dat

chmod 777 lto.dat

If anyone can give the report by downloading that file manually and checking the gps locktime/accuracy.... it would be great.... also this .dat file would be valid for 7 days.. and I have no clue why it is not downloaded automatically... If anyone knows the details please share...
[Defy Android Development] popcorn1122:
The location.cfg is updated with the svstatus.txt. This txt file is taken from the latest glpals.com which shows the last gps fix time. This glpal file is fetched every hour

LAST_SECURE_GPS_TIME = 1010676346 . this 1010676346 is taken from the latest svstatus.txt file of that hour.

http://gllto.glpals.com/2day/latest/svstatus.txt

By default LAST_SECURE_GPS_TIME = 0

Also these two lines are also updated if you are connected to any mobile tower instead of satellites:

IS_VALID_LAST_DRV_TCXO = 1

LAST_DRV_TCXO = (LAST CELL ID you logged)

both values are default set to 0 (ZERO).

learn_store.bin & gpsdata.nvs are also update every 1 hour
[Defy Android Development] crypted:
Allright, so it would seem that having a gps.conf would be irrelevant because your phone doesn't utilize it. The only time it would come into play would be a port using it. That, still, doesn't mean it would help at all.

I would think that some of the gps.conf stuff does help with ported ROM's. It would mean that the xtra.bin would not. Tthe SUPL-driven location could still be useful.
[Defy Android Development] loyukfai:
Thanks for the explanation, that's much better.

Many people also thought clearing battery stats could improve the battery life.

(Ooops, sorry I couldn't post link at the moment, but Dianne's got a rebuttal on Google Plus+ for those who're not sure what I'm talking about.)

You know, many of those would swear that it did help, and maybe Ms. Hackborn was wrong. But I'm in general (very) skeptical about anecdotal experiences reported here, on some of the forums on xda, including Defy, where a lot of 15-year-old babbling and swearing all the time.

(Now, I used a generalization and am not against young people in general, I hope you understand.)

The problem is, there are a lot of variables that affect the test results, and sometimes people's wishful thinking blind them from the reality.

Please understand that I'm not against you and your patch, I would be more than willing to donate if I were a heavy GPS user and if it did really help. I've personally donated to various Android developers voluntarily.

Cheers.

P.S. Perhaps you can list which ROMs do use your patch, BTW.
[Defy Android Development] crypted:
I'm not going to spend the time going through, checking, and re-listing ROM's using this.

Yet, the title here said "Tentative Support" based on results from a handful of users who tried this on their own time. After getting more information from this thread, as it was intended to be used for, I decided to not support it. The title has reflected that for a while now.

Again I challenge you to provide a working solution that is superior than this one for most anyone using Qualcomm chipsets and for a number of people using ROM's ported from Qualcomm-based phones.

It is irrelevant that you would or have donated to any project on XDA or elsewhere. The entire reference to any sort of donation revolves around users who feel that they benefit from using the v3.x trunk versus the v2.x trunk as the 3.x utilizes custom servers. Nothing more, nothing less.

This discussion from you has done nothing to further any development or understanding that many of us seek to ascertain. I'm done with this particular conversation.
[Defy Android Development] crypted:
While I will not support the Motorola Defy, if anyone would like to test two of my rebuilds I worked on for this device please send me a private message.

I'm done with this. Apparently my experience and knowledge is snake oil and not worth the time of anyone who needs legitimate assistance.

I firmly believe from past experience that with modification, this would help Defy users who use custom ROM's because a number of those ROM bases come from phones with supported chipsets.

I appreciate commentary from my foes; however, this belittling and ignoring the underlying matter to opt-in a witch hunt against me is not worth the time spent trying to assist anyone.

Respectfully, I bow out.
[Defy Android Development] NoTyp3:
Tested this on ms2ginger rom and cm7

Device now refused to get GPS lock

Reflashed tested 1.2 world wide

Tested 2.2 and 3

None work on my defy (green lense )
[Defy Android Development] starbright_:
Sorry for long delay of answer. I have been offline for some days.

As described in my post I am using Cyanogenmod 7.1.-11 (stable)

Currently I haven't used your patch. This is not because I want to ignore your research (which is very welcome), but because of the behaviour of my Defy is a bit different from the problems your patch seems to solve. This has been my understanding.

bobo9900 notes has been very interesting:

As this is very much, what I observere. With data downloaded by GPSStatus the fix is very fast - within a few seconds.

In my test is disabled data connection to prevent GPSStatus from reload new AGPS data and start GPSStatus after some time. After 6 hours I can't see any positive effect by the previous loaded data.

Is this a valid test setup?

Question: What is SUPL ? What is waiting long enough?

I asked in other thread about the mechanism of AGPS. The answer was more or less, that downloaded data are directly injected into the GPS chip. So the data are not visible as a file on device. Not sure about this - this is what other people told me.

Most time I use Defy without data connection. GPSStatus often shows a lot of sats, but can't get a fix. BTW: Does someone can explain the different colors of GPS-Altar? I see white, blue, yellow ... I assume this some kind of "progress bar" to achive the final fix.

I need a bit more time to read and understand the full thread. There is a lot of information, that is hard for me to understand.

Anyhow, I want thank all of you quys which try to optimize one of the few handicaps of the Defy. (In fact, beside the locked bootloader this is the only for me).

Other question: I case the patch failed, how can I recover previous status? Complete backup and recover?
[Defy Android Development] Sir Flashalot:
Grey = no data, Blue = have almanach* data, Yellow = have ephemeris* data, Green = used in fix.

*)The navigation message is made up of three major components. The first part contains the GPS date and time, plus the satellite's status and an indication of its health. The second part contains orbital information called ephemeris data and allows the receiver to calculate the position of the satellite. The third part, called the almanac, contains information and status concerning all the satellites; their locations and PRN numbers. http://en.wikipedia.org/wiki/GPS_signals
[Defy Android Development] hailmary:
OP is correct...i use this & it helped a lot on performance of my defy using google specific:

it got my default google maps & lattitude faster locks on my location & is more accurate...

-my location shows more accurate to 3-6 meters in less than 10sec

-my battery consume now is reduced whenever i open my maps/gps things

-its better than no fix at all.
[Defy Android Development] starbright_:
I manually copied the 2 files from patches/Google into /etc. Note that there has been no SuplRootCert on Defy to be replaced (CM7.1-11)

I did a reboot and start GPSStatus with WIFI on.

As described in note #6 nothing happend after download of GPS data for around 25s. Then in 5s I get yellow bars and very soon green bars - a fix.

So from my experience, with default gps.conf fix was quicker than the fix here and behaves different. But the more important question is - how long takes a fix in 6-7h, if I disconnect WIFI now.

I am a bit confused about note 2,4,5.

As AGPS is generally working, there seems to be no problem with #2, but how to check #5?

----------------

After 6-7h of waiting and starting GPSStatus again I get the same result as before the patch: Some 4-6 sats (blue), but not a single yellow one, no fix.

First the stats have been displayed with numbers in the compass, but after a while this numbers disappear. Does it kick out the information if it can't get a fix in a certain period of time?

The number sats droped down to 1-2 later. After some more minutes I reset I the AGPS data. After 10min I still had just 2-3 sats (indoor). Enabled WIFI, GPSstatus load AGPS data and after 11s there was a fix. Few seconds later 8/10 sats (same indoor position)!

My conclusion:

- sensitivity of GPS in Defy is good.

- cold start behaviour is simular to other devices

- works great, if data connection is available for new AGPS data

- AGPS data useless after some (short) time. - help!

Would you confirm this?

BTW: Does one of you knows, where there is located the GPS-antenna?
[Defy Android Development] hailmary:
LOL... who still uses stock ROMs? CyanogenMod users- w/c version? nightly,stable,kang,super kanged? LOL try wearing shades man...

(so u can go out & enjoy the sunshine,w/ the gps on)
[Defy Android Development] popcorn1122:
The questions is to automate that downloading of lto.dat from http://gllto.glpals.com/7day/latest/lto.dat

Someone has tried the automation process in below link:

https://github.com/CyanogenMod/android_device_samsung_vibrantmtd/pull/3

Can someone help how to install it? If someone can give step by step installation process ,,, it would highly be appriaciated. :)

#!/system/xbin/bash

exec &> /dev/null

COUNT=30
while [ -z "getprop net.dns1" -a $COUNT -gt 0 ]; do
sleep 10
let COUNT=$COUNT-1
done

find /data/location -name lto.dat -mtime +5 -exec rm -f {} \;
if [ ! -s /data/location/lto.dat ]; then
wget -O /data/location/lto.dat http://gllto.glpals.com/7day/latest/lto.dat
chmod 664 /data/location/lto.dat
fi

some more source:

https://github.com/CyanogenMod/android_device_samsung_vibrantmtd/blob/gingerbread/init.aries.rc
[Defy Android Development] crypted:
Does this device still have issues with GPS?

If so, please someone provide me with the stock gps.conf and the xml file in /etc/gps/.
[Defy Android Development] crypted:
Official support has is now available for more devices:

Samssung Galaxy S III (AT&T, Rogers, Bell, Telus)

Samsung Galaxy S III I9300, I9305

Asus Transformer TF300T

Motorola Droid X2

Samsung Galaxy S 4G

If you appreciate this growing work, always consider clicking the Thanks.

Remember that I pay monthly hosting fees for the space and bandwidth necessary to keep this patch working on the backend. So, please consider donating a few bucks if you're a user. All donations go directly to the patch provisioning and there is absolutely no overhead to benefit me.
[Motorola Triumph] crypted:
Currently: this is a tentative supporting thread for my aGPS patch. Assuming more report success, I will start officially supporting this device.

Please let me know your success rates. Thus far, a few people have sent me messages and emails stating that this patch works great on this device.

As such, I'm thinking it would be good to provide this officially for this device.

This has been used on over 40 devices successfully. I don't offer official support for all devices. Rather, I offer official support once users convince me to do so for that particular device. That happened here. ;)

Statistically, here is part of my post from mid-December on all official threads:

Enjoy!
[Motorola Triumph] Whyzor:
I'd like to know what differences were noticed & on what ROM. It appears that aGPS doesn't work on the Motorola Triumph in stock or CM7. I've tried this and other various gps.conf tweaks. Initial GPS cold lock always takes about 1-2 minutes, then it's faster right away. After reboot or a long time, it's back to the cold lock times. Enabling/disabling data or network location doesn't make a difference.
[Motorola Triumph] crypted:
Could you provide me with more details of your setup. ROM, etc. Also, if you could send me the default gps.conf provided by the ROM you use, I'll have a look and see if there's something odd-ball necessary.

Your issue with reboots is that your /tmp/, or cache generally, is being wiped. This means that any aGPS data compiled or retrieved is cleared. Definitely a pain in the butt. ROMs should control this aspect.
[Motorola Triumph] Whyzor:
Here's the latest one I used in my CM7 ROM, only difference noticed was if I turn on intermediate_pos=1 will result it in thinking the phone's in africa or thereabouts (as reported by some users), until a true lock is obtained. So I disabled it.

BTW The developer who worked on this before me mentioned that aGPS doesn't work and he tried doing stuff in the source, so that's why I'm guessing these settings won't either on the MT.

NTP_SERVER=north-america.pool.ntp.org
NTP_SERVER=0.north-america.pool.ntp.org
NTP_SERVER=1.north-america.pool.ntp.org
NTP_SERVER=2.north-america.pool.ntp.org
NTP_SERVER=3.north-america.pool.ntp.org
AGPS=http://xtra3.gpsonextra.net/xtra.bin
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

# DEBUG LEVELS: 0 - none, 1 - Error, 2 - Warning, 3 - Info
# 4 - Debug, 5 - Verbose
#Div6-PT1-GPS-LNA_LDO-00*{
#DEBUG_LEVEL = 3
DEBUG_LEVEL = 0
#Div6-PT1-GPS-LNA_LDO-00*}

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

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

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

# FOR SUPL SUPPORT, set the following
# SUPL_HOST=supl.host.com or IP
# SUPL_PORT=1234
# Add Google SUPL server and port for Huawei(FB0.B-3409)
SUPL_HOST=supl.google.com
SUPL_PORT=7276

SUPL_SECURE_PORT=7275
SUPL_NO_SECURE_PORT=3425
SUPL_TLS_HOST=FQDN
SUPL_TLS_CERT=/etc/SuplRootCert

# 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

QOS_ACCURACY=50
QOS_TIME_OUT_AGPS=95
QOS_TIME_OUT_STANDALONE=80
QosHorizontalThreshold=1000
QosVerticalThreshold=500
AssistMethodType=1
AgpsUse=1
AgpsServerType=1
AgpsServerIp=3232235555

# TRUE for "User Plane", FALSE for "Control Plane"
DEFAULT_USER_PLANE=TRUE
[Motorola Triumph] crypted:
Try an "Alternate" build of mine and let know results.

Source can be an issue. A lot of times, we find that ROM's are based on source for other phones. This causes issues for sure and is one reason why I include so many variable tweaks.

If it won't work, it won't work. But I'll try my best to work with you all if it is indeed possible.
[Motorola Triumph] crypted:
All threads have had an overhaul that was way overdue.

High points:

Note discussion of what the patch does and what it replaces.

Note confirming ICS support from various users.

Note section has gotten long, but covers most questions I am repeatedly asked.

A total of 9 officially supported new devices.

Download section reminds people to backup their settings. You only need to backup /system/etc/gps.conf and /system/etc/suplrootcert if you have one. But, I never had to revert!

That being said, welcome to official support. Thank you all who confirmed and worked with me to ensure it was proper to offer official support to this device.

As always, please don't forget to click Thanks if you use or like this patch -AND- don't forget to Rate the thread.

Donations

are always welcome.
[Motorola Triumph] Whyzor:
I don't think the Motorola Triumph should be listed as officially supported when I haven't heard anyone CONFIRM it makes a difference on the device (maybe a lot of placebo effects and coincidences). Especially when a developer (Tickerguy) who's looked in the GPS code and said that it doesn't work. Here's another thread discussing it where more MT users hang out:

http://androidforums.com/triumph-all-things-root/483710-agps-patch.html#post3808449
[Motorola Triumph] crypted:
I appreciate your input. Yes, some of the older GPS hardware can find issue with the intermediate POS variable. That is why there is an Alternate build.

I had others confirm elsewhere and in private message that it works. I will remove support if it becomes to evident that I can no longer maintain it as such.

Will review that link, though.

Thanks!

EDIT: And I never recommend using CM7 as a ROM, especially nightlies, as my Notes section discusses. Sorry for not responding to your post a while back in more detail, either. Life plus XDA...
[Motorola Triumph] Whyzor:
Agentc13, a guide from the other forum wanted me to pass along this since not everyone can post in these forums here:

"The aGPS isn't enabled in the stock ROM (or any other ROM). So how are you making it work? Does your patch change any of the Triumph base code for aGPS? "

If you want to continue the discussion there I bet more people are able to comment. FYI, both Tickerguy & Agentc13 have had the MT for a long time and if it came down to it, I would believe what they say than "a few random reports" of it working for the MT.
[Motorola Triumph] crypted:
FYI: Method 1, the easiest of the methods for those unfamiliar with file managers or recovery, has been updated. Some people required that the script also mount the partition. I have added that line to all options available and updated the ZIP file. Thanks

enigmaamit

for confirming that the new PUSH script works.
[Motorola Triumph] crypted:
Definitely on my list to research and determine if these reports are false positives. I'm not one to just keep going with something that simply cannot work.

First I need to arm myself with some more knowledge on the phone, ROMs for it, and other commentary. Then, I need to devise a couple test builds for placebo fun.

I'm with you, not against your commentary at all. I just don't want to drop something that was confirmed to be working. :o
[Motorola Triumph] zailer:
Am using a spice CSl MI410 , a GSM version of Triumph.This patch worked for me ,when I was static ,with clear sky ,on the latest sharp rom . This got me locked to 8 plus (cell towers I guess) in less than one minute . Where repeted tries with stock gps.cnfg files n patches from other thread took nearly 8 plus minutes. I am surrounded by 4 to 5 cell towers less than50 meters .... still gave me accuracy of 30mtrs before and this one gave upto 6mtrs . I will switch roms n switch places n try to get back here now give feedback.

Sent from my FIH-FB0
[Motorola Triumph] crypted:
Thanks for that info! Glad it works for you! Let me know about other ROM's as you have time...
[Motorola Triumph] crypted:
Just a friendly notice that the thread has been updated.

There is a new build which I recommend. Before questioning or inquiring why I removed the use of SSL, review the NOTE on the matter. This has proven to be a faster operation by tests in various regions and numerous devices. ;)

Lastly, I added a section for asking questions. Review that before communicating here. It gets really old seeing that people refuse to read what I've worked hard to write especially when it usually answers the questions asked.

Don't forget to consider donating if you appreciate the work and find it useful. :D
[Motorola Triumph] BroadVoice:
I'm using the 3.x

Motorola Triumph with cm7

I tried to install with the AD Push Installer and did not work..

It worked with the CMW Installer,

I went outside right after the flash and it locked with less than 5 seconds onto 8-11 sats...

I rebooted the phone and tried again and it also locked very fast less, than 15 seconds...

The next morning I tried again and now is taking more than 3 minutes to find the correct location, it locks close to Africa and stays there until it finds the correct location. It's locking on 0*0.002'N & 0*0.0'E

How this can be fixes or how to pevent it to lock at that location??...

I'm using "Gps Stats & Toolbox" to check location and sat lock status
[Motorola Triumph] crypted:
Please review the thread. Provide answers to the questionnaire and we can go from there. However, this doesn't sound patch-related but something else. Try disabling all "location" options in Android Settings aside from GPS.
[Motorola Triumph] hungrymr2:
3.x cWM patch doesn't work. Running Miui 1125. Now i'm stuck on "searching for gps." It zooms to africa then to the correct location then it just sits there "searching for gps."