View Single Post
  #2822 (permalink)  
Old 06-12-2010, 08:48 PM
sfhub's Avatar
sfhub
PPCGeeks Regular
Offline
 
Join Date: Jul 2008
Posts: 164
Reputation: 285
sfhub is becoming a PPCGeeks regularsfhub is becoming a PPCGeeks regularsfhub is becoming a PPCGeeks regular
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Linux/Android on CDMA Touch Pro -- Now working on Verizon! And with GPS!

Quote:
Originally Posted by 88fingerslukee View Post
The results are much faster locks. Prior to doing this I was getting 5-10 MINUTE locks...if at all. Now I'm getting 60 second locks.
...
Also, I had to edit the /data/etc/gps.conf file as the /system/etc/gps.conf is read-only.
Glad it helped.

Just be aware that after reboot, the /system/etc/gps.conf will be put back, overwriting your changes.

You can get around this either by using the new ext2 image babijoee put out on the xda thread:

http://htcandroid.xland.cz/XDANDROID...6.2010.ext2.7z

or by running unsquashfs on a linux system for system.sqsh, replacing /system/etc/gps.conf, and then running mksquashfs.

If you went with the first way (ext2 img) which I think is simpler, after you boot into android, open up a terminal

Code:
su
mount -o rw,remount /system
[edit or copy in your proposed /system/etc/gps.conf]
mount -o ro,remount /system
exit
Alternatively, you could also add a command to copy in your proposed gps.conf at the end of /sdcard/[andboot/]conf/eclair.user.conf

Code:
# custom shell commands, these commands run last
custom_shells{
#echo "Hello!!!" # example
#echo "You can create your own commands here" # example
/bin/cp -f /sdcard/andboot/gps.conf /data/etc/gps.conf
/bin/chmod 644 /data/etc/gps.conf
}

Last edited by sfhub; 06-13-2010 at 02:17 AM.
Reply With Quote