Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,781,073 Members 45,134 Now Online
XDA Developers Android and Mobile Development Forum

[GPS][Fix] Automate long term orbit data download

Tip us?
 
waydownsouth
Old
(Last edited by waydownsouth; 14th May 2012 at 07:01 AM.)
#1  
Senior Member - OP
Thanks Meter 809
Posts: 263
Join Date: Dec 2010
Default [GPS][Fix] Automate long term orbit data download

I have been looking into slow "cold-start" gps locks & in some peoples cases, complete lack of gps.
In testing, everything I've found so far, seems to be pointing at the lack of Broadcom's proprietary long term orbit data (lto.dat) used by the GPS Daemon on our devices...
These chips are in the a500/a200/a100 devices (101 & 501 devices use an ericsson GPS)

For the sake of not regurgitating a whole heap of info, you can read more about the lto.dat file in plenty of places across the web.
pacificwing recently bought this up in crypted's aGPS patch thread, some discussion on the subject starts around page 30.

The attached, recovery flashable zip will patch your system with a *workaround* to automate the download & update of lto.dat...
It is derived from past work in CyanogenMod for the aries (& other) devices.
It should be compatible with most ROM's, but may need adjusting if your busybox wget applet can't resolve dns. (see notes in the script)

What it does:
Installs the script "get-gps-lto" to /system/bin
Creates a service entry in the init.<boardname>.rc file which runs the script on a semi regular basis. (triggered by network connectivity)
The script is tunable by a number of variables, modify as you see fit.
Or, flash & forget... messages are sent to logcat so you can check up on it easily.

This zip has only been tested on a500, cm9, ics bootloader & cwm recovery.
Mileage may vary on other combinations, the zip patches your boot.img so please make a nandroid backup to be safe. (only need to restore /boot if there's a problem)
Installation problem? please let me know & provide a recovery.log so I can make adjustments to the zip if need be.

Standard disclaimers apply, flash at your own risk.
Attached Files
File Type: zip gps_lto_patch-signed.zip - [Click for QR Code] (210.3 KB, 2752 views)
The Following 21 Users Say Thank You to waydownsouth For This Useful Post: [ Click to Expand ]
 
civato
Old
#2  
civato's Avatar
Recognized Contributor
Thanks Meter 14,911
Posts: 3,748
Join Date: Apr 2011

 
DONATE TO ME
Oh nice I can build in my rom and the kernel before I release it.
 
strongergravity
Old
#3  
strongergravity's Avatar
Senior Member
Thanks Meter 65
Posts: 478
Join Date: May 2010
Location: Earth...for now...
Thanks in advance! I'll flash it in a bit!
<insert creative signature here>
 
waydownsouth
Old
#4  
Senior Member - OP
Thanks Meter 809
Posts: 263
Join Date: Dec 2010
Quote:
Originally Posted by civato View Post
Oh nice I can build in my rom and the kernel before I release it.
Not a problem, you'll be sure to test it before releasing the rom I hope?
 
dathero10
Old
#5  
Member
Thanks Meter 2
Posts: 61
Join Date: Mar 2008
Location: HCM
Anyone has this working yet? Btw, thank you waydownsouth
 
civato
Old
#6  
civato's Avatar
Recognized Contributor
Thanks Meter 14,911
Posts: 3,748
Join Date: Apr 2011

 
DONATE TO ME
Quote:
Originally Posted by waydownsouth View Post
Not a problem, you'll be sure to test it before releasing the rom I hope?
No
The Following 2 Users Say Thank You to civato For This Useful Post: [ Click to Expand ]
 
BakaNeko59
Old
#7  
BakaNeko59's Avatar
Senior Member
Thanks Meter 61
Posts: 238
Join Date: Jan 2011
Location: Bremerton, WA
Quote:
Originally Posted by waydownsouth View Post
The attached zip will patch your system with a *workaround* to automate the download & update of lto.dat...
It is derived from past work in CyanogenMod for the aries (& other) devices.
It should be compatible with most ROM's, but may need adjusting if your busybox wget applet can't resolve dns. (see notes in the script)


> Download here <
So that explains why I could never get my wget script to work....

Sent from my A500 using XDA Premium HD app
BakaNeko59
Acer Iconia A500 32gb - CM-10 FLEX
Samsung Galaxy S III (AT&T) - Rooted with S3RX JB
Nook Color (my "backup tab") - CM10 nightlies
And a bunch of other stuff running Android, IOS, Windows 7, Server 2008 R2, Linux, etc.
http://bakarider.net
or, if you're into crafts check out our store at http://www.pnwcrafts.com
 
azoller1
Old
#8  
azoller1's Avatar
Senior Member
Thanks Meter 1,610
Posts: 1,749
Join Date: Aug 2011
Location: Lenexa

 
DONATE TO ME
would it be possible to port this to another device? nice job by the way
DONATIONS WOULD BE NICE!!-- HERE

Device: LG Spectrum 16GB 4G
Rom: Running Beanstalk Builds
Kernel: Running My S-Kernel JB

Device: Asus TF300T 32GB
Rom: Running My Own CyanogenMod Builds
Kernel: Running Stock CM Kernel

MY DEV
GOO.IM FILES/FOLDERS
ANDROID FILE HOST DEVICES
SOURCEFORGE FILES
 
BakaNeko59
Old
#9  
BakaNeko59's Avatar
Senior Member
Thanks Meter 61
Posts: 238
Join Date: Jan 2011
Location: Bremerton, WA
Quote:
Originally Posted by waydownsouth View Post
It should be compatible with most ROM's, but may need adjusting if your busybox wget applet can't resolve dns. (see notes in the script)
Other than hard coding the IP address (which worked for me by the way) is there a better solution to fixing the busybox DNS problem? I've read that putting a resolve.conf file in /system/etc that contains the Google DNS nameservers should work but I tried it and no luck.

Also, any reason you're not using the 30 day file rather than the 7 day? With the 30 day you wouldn't have to run the script all that often... Is the 30 day less accurate or something?

In any event, thanks.

Sent from my A500 using XDA Premium HD app
BakaNeko59
Acer Iconia A500 32gb - CM-10 FLEX
Samsung Galaxy S III (AT&T) - Rooted with S3RX JB
Nook Color (my "backup tab") - CM10 nightlies
And a bunch of other stuff running Android, IOS, Windows 7, Server 2008 R2, Linux, etc.
http://bakarider.net
or, if you're into crafts check out our store at http://www.pnwcrafts.com
 
civato
Old
#10  
civato's Avatar
Recognized Contributor
Thanks Meter 14,911
Posts: 3,748
Join Date: Apr 2011

 
DONATE TO ME
I build in my kernel for RF1

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes