Jump to content

Welcome to CyanogenMod

Welcome to our forum. Like most online communities you must register to post, but don't worry this is a simple free process that requires minimal information for you to signup. Be a part of the CyanogenMod Forum by signing in or creating an account. You can even sign in with your Facebook or Twitter account.
  • Start new topics and reply to others
  • Subscribe to topics and forums to get automatic updates
  • Get your own profile and make new friends
  • Download files attached to the forum.
  • Customize your experience here
  • Share your CyanogenMod experience!
Guest Message by DevFuse
 

trying to fix gps - cannot get gps.conf file to copy to stick

gps.conf

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1 danns23

danns23
  • Members
  • 2 posts

Posted 20 October 2011 - 02:59 AM

Ever since mod 6 I've been having gps issues because by gps.conf file keeps getting overwritten.  I want to restore a good copy but I am having problems getting the file to stick after a reboot.

I've tried many different methods:

adb remount
adb push gps.conf /system/etc
adb reboot

adb shell
mount -o rw,remount -t yaffs2 /dev/block/mtdblock3
cat /sdcard/gps.conf > /system/etc/gps.conf

and a few other ways.

After performing this I do see that the gps.conf file has changed when I cat it or look at it in a text editor on the phone.  But when I reboot the gps.conf file is back to what it was before I attempted to change it.  

To me this seems like the changes I am making are being written to memory and not the actual file.  Thus, when  a reboot happens what is in memory is wiped out and the original returns.

What am I missing here.

#2 danns23

danns23
  • Members
  • 2 posts

Posted 22 October 2011 - 01:55 AM

Ok with some help from a friend I found the problem.  HTC has some kind off security turned on - S-ON that prevents writing to the filesystem; so the file was reverting when it rebooted or getting munged when it sat for a bit.  Anyway, I had to use http://alpharev.nl/ to turn S-OFF.