Post Reply

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

OP waydownsouth

5th May 2012, 01:49 PM   |  #1  
OP Senior Member
Thanks Meter: 809
 
263 posts
Join Date:Joined: Dec 2010
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, 2859 views)
Last edited by waydownsouth; 14th May 2012 at 07:01 AM.
The Following 21 Users Say Thank You to waydownsouth For This Useful Post: [ View ]
5th May 2012, 02:13 PM   |  #2  
civato's Avatar
Recognized Contributor
Thanks Meter: 15,480
 
3,792 posts
Join Date:Joined: Apr 2011
Donate to Me
Oh nice I can build in my rom and the kernel before I release it.
5th May 2012, 02:21 PM   |  #3  
strongergravity's Avatar
Senior Member
Flag Earth...for now...
Thanks Meter: 65
 
478 posts
Join Date:Joined: May 2010
More
Thanks in advance! I'll flash it in a bit!
5th May 2012, 02:31 PM   |  #4  
OP Senior Member
Thanks Meter: 809
 
263 posts
Join Date:Joined: Dec 2010
Quote:
Originally Posted by civato

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?
5th May 2012, 03:06 PM   |  #5  
Member
Flag HCM
Thanks Meter: 2
 
61 posts
Join Date:Joined: Mar 2008
Anyone has this working yet? Btw, thank you waydownsouth
5th May 2012, 05:43 PM   |  #6  
civato's Avatar
Recognized Contributor
Thanks Meter: 15,480
 
3,792 posts
Join Date:Joined: Apr 2011
Donate to Me
Quote:
Originally Posted by waydownsouth

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: [ View ]
5th May 2012, 08:18 PM   |  #7  
BakaNeko59's Avatar
Senior Member
Flag Bremerton, WA
Thanks Meter: 62
 
244 posts
Join Date:Joined: Jan 2011
More
Quote:
Originally Posted by waydownsouth

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
5th May 2012, 08:46 PM   |  #8  
azoller1's Avatar
Senior Member
Flag Lenexa
Thanks Meter: 1,637
 
1,767 posts
Join Date:Joined: Aug 2011
Donate to Me
More
would it be possible to port this to another device? nice job by the way
5th May 2012, 09:04 PM   |  #9  
BakaNeko59's Avatar
Senior Member
Flag Bremerton, WA
Thanks Meter: 62
 
244 posts
Join Date:Joined: Jan 2011
More
Quote:
Originally Posted by waydownsouth

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
5th May 2012, 09:59 PM   |  #10  
civato's Avatar
Recognized Contributor
Thanks Meter: 15,480
 
3,792 posts
Join Date:Joined: Apr 2011
Donate to Me
I build in my kernel for RF1

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Top Threads in Iconia A500 Android Development by ThreadRank