Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,806,344 Members 53,700 Now Online
XDA Developers Android and Mobile Development Forum

problem with replacing gps.conf

Tip us?
 
aerosmike
Old
(Last edited by aerosmike; 4th March 2014 at 11:24 AM.)
#1  
Junior Member - OP
Thanks Meter 0
Posts: 2
Join Date: Mar 2014
Default problem with replacing gps.conf

Hi,

I hope this is the write location for my post.

I have a HTC ONE rooted, android 4.3
I have a problem with my GPS: it doesn't lock any satellite. Reading on forum, I found that the problem may be the setting of gps.conf file in /system/etc.
In fact, checking it, I found that the NTP_SERVER set was for north.america, while I'm in Europe.
I would like to modify or replace it, but I'm experiencing some problem. Using Root Browser it seems to be able to modify it, but after rebooting the device it is exactly the same before the editing. I tried using other editors as ES File Explorer, but when I try to modify the file, it says "read only file system".

It makes me thing that also the other editor is not able to modify the file, since after reboot it is actually un-edited.

What do you think? how can I actually write in file system and actually modify gps.conf?


Thank you in advance


Let me add another detail: I tried to create a new empty file in the same folder with Root Browser. It seems to be able to create it, but after rebooting the device it desappears..so I guess I actually can't modify/write in the file system..
 
alray
Old
(Last edited by alray; 5th March 2014 at 01:43 AM.)
#2  
alray's Avatar
Senior Member
Thanks Meter 1,094
Posts: 2,832
Join Date: May 2012
Location: Montreal

 
DONATE TO ME
Quote:
Originally Posted by aerosmike View Post
Hi,

I hope this is the write location for my post.

I have a HTC ONE rooted, android 4.3
I have a problem with my GPS: it doesn't lock any satellite. Reading on forum, I found that the problem may be the setting of gps.conf file in /system/etc.
In fact, checking it, I found that the NTP_SERVER set was for north.america, while I'm in Europe.
I would like to modify or replace it, but I'm experiencing some problem. Using Root Browser it seems to be able to modify it, but after rebooting the device it is exactly the same before the editing. I tried using other editors as ES File Explorer, but when I try to modify the file, it says "read only file system".

It makes me thing that also the other editor is not able to modify the file, since after reboot it is actually un-edited.

What do you think? how can I actually write in file system and actually modify gps.conf?


Thank you in advance


Let me add another detail: I tried to create a new empty file in the same folder with Root Browser. It seems to be able to create it, but after rebooting the device it desappears..so I guess I actually can't modify/write in the file system..
You need an unsecured kernel (/system writable) to write to /system partition of the htc one, not only root.. Otherwise, all changes will be reverted at reboot like you are experiencing.

Kernels for htc one here

And note that modifying/deleting files in /system will probably prevent you to install future ota unless you revert the change you have made. There is a md5 checksum of many files in /system before the ota installs. If the md5 cheksum doesn't match then the ota will not install. This might not apply to the .conf file you want to edit but just in case, make a backup of that file before. So if the next ota fail, you'll know why.
If I've helped you, please hit the ''tanks'' button
If you want a reply, quote or mention me using @alray

Useful links for the HTC One:
nkk71's SuperGUIDE to returning 100% back to stock
Flashing requirements chart by nkk71
HTC1Guru.com by crushalot
The Following 2 Users Say Thank You to alray For This Useful Post: [ Click to Expand ]
 
aerosmike
Old
#3  
Junior Member - OP
Thanks Meter 0
Posts: 2
Join Date: Mar 2014
Quote:
Originally Posted by alray View Post
You need an unsecured kernel (/system writable) to write to /system partition of the htc one, not only root.. Otherwise, all changes will be reverted at reboot like you are experiencing.

Kernels for htc one here

And note that modifying/deleting files in /system will probably prevent you to install future ota unless you revert the change you have made. There is a md5 checksum of many files in /system before the ota installs. If the md5 cheksum doesn't match then the ota will not install. This might not apply to the .conf file you want to edit but just in case, make a backup of that file before. So if the next ota fail, you'll know why.

Thank you very much
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes