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 push gps.conf /system/etc
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.
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.
Guest Message by DevFuse
trying to fix gps - cannot get gps.conf file to copy to stickgps.conf
1 reply to this topic
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.