Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
nastyba
Old
(Last edited by haree; 11th December 2010 at 12:09 PM.)
#1  
nastyba's Avatar
Senior Member - OP
Thanks Meter 2
Posts: 207
Join Date: Nov 2010
Default [Q] how to edit GPS.conf in system folder ?

I would like to set my phone to europe.pool.ntp.org becouse it's default northamerica.pool.ntp.org

How can I edit this file ? When I try to type adb shell to terminal it gives me an error message.

Thanks

Not development related moved to General
Samsung Galaxy S
- Juwe 4.3.1 w 2.3.3 -
- LaunecherPro -
- DamianGTO -
 
aantdesign
Old
#2  
aantdesign's Avatar
Senior Member
Thanks Meter 81
Posts: 328
Join Date: Oct 2010
Location: Krusevac

 
DONATE TO ME
At first U must root R phone and then install Root Explorer. After that go to SYSTEM/ETC/
Here u need to edit GPS.CONF file and change NTP Server from northamerica.pool.ntp.org to europe.pool.ntp.org.

I hope that I help U m8.
 
LeoApollo
Old
#3  
Member
Thanks Meter 3
Posts: 30
Join Date: Nov 2010
Location: Haps
Default Get write acces in system folder

I used the post I've quoted down here. After you have gained write acces in the system folder you can edit gps.conf!

Quote:
Originally Posted by octy View Post
By default the /system is mounted in read-only mode.
With 'root' access you can change this.


First 'root' your phone with tutorial 'slumpolo' has provided at
the begining of this thread.

Then open a shell on your phone with adb

Code:
adb shell
Grant 'root' access with 'su' command and have a look of memory partitions

Code:
su
mount
In 'mount' command output, identify the partition on which /system was mounted.
In my phone it was '/dev/block/stl6'

Finally you can remount it to get read-write permissions on it.
But before be sure to be outside /system in the shell (by typing 'cd /' for example).



Code:
mount -o remount,rw /dev/block/stl6 /system
Do the modification you want..... BECAREFUL of want you do, you can damage your phone.

Set read-only mode again

Code:
mount -o remount,ro /dev/block/stl6 /system
Sorry I cannot made any snapshot for the moment, I can't use my phone.
Hope it can help you.
The Following User Says Thank You to LeoApollo For This Useful Post: [ Click to Expand ]
 
LeoApollo
Old
#4  
Member
Thanks Meter 3
Posts: 30
Join Date: Nov 2010
Location: Haps
By the way, for Slovakia I think you can better change to sk.pool.ntp.org

Complete list of European NTP servers:
http://www.pool.ntp.org/zone/europe

Other area's:
http://support.ntp.org/bin/view/Servers/NTPPoolServers
The Following User Says Thank You to LeoApollo For This Useful Post: [ Click to Expand ]
 
nastyba
Old
#5  
nastyba's Avatar
Senior Member - OP
Thanks Meter 2
Posts: 207
Join Date: Nov 2010
Quote:
Originally Posted by LeoApollo View Post
By the way, for Slovakia I think you can better change to sk.pool.ntp.org

Complete list of European NTP servers:
http://www.pool.ntp.org/zone/europe

Other area's:
http://support.ntp.org/bin/view/Servers/NTPPoolServers
I see, probably I can use also CZ, HU, AT, DE or SK or EU .. I've red that the best is with more sites.

"After you have gained write acces " How can I gain write access ? I have rooted - but Adb shell doesn't work, did I missed something ? Thaks
Samsung Galaxy S
- Juwe 4.3.1 w 2.3.3 -
- LaunecherPro -
- DamianGTO -
 
usertotya
Old
#6  
Junior Member
Thanks Meter 3
Posts: 16
Join Date: Nov 2010
Location: Veszprem/Budaors
Quote:
Originally Posted by nastyba View Post
"After you have gained write acces " How can I gain write access ? I have rooted - but Adb shell doesn't work, did I missed something ? Thaks
i think yes adb is for the PC. it is part of the android sdk tools.
The Following User Says Thank You to usertotya For This Useful Post: [ Click to Expand ]
 
Night5talker
Old
#7  
Member
Thanks Meter 1
Posts: 70
Join Date: Jun 2011
i did that on my desire (it should be same) but i have problem i edit and save file and now i cant see it
i can see that backup file but how do i restore it?
i tried create new file it wont work i cant see it (it says file created sucessfuly)
 
arunmcops
Old
#8  
arunmcops's Avatar
Recognized Developer
Thanks Meter 565
Posts: 929
Join Date: Apr 2010
Location: Bareilly
Quote:
Originally Posted by aantdesign View Post
At first U must root R phone and then install Root Explorer. After that go to SYSTEM/ETC/
Here u need to edit GPS.CONF file and change NTP Server from northamerica.pool.ntp.org to europe.pool.ntp.org.

I hope that I help U m8.
U can use adb on Win or linux or qtadb.
Give these commands on adb shell..
su
mount -o remount,rw /dev/block/stl6 /system
exit
exit
adb pull /system/etc/gps.conf

Edit the gps.conf the way u like.
Then mount again in rw mode.
adb push gps.conf /system/etc/gps.conf
adb reboot

Done.


My Devices:
MicroMax Funbook- P300 (DEAD )
Samsung Galaxy 3 (Lost)
Karbonn A9+
Samsung Galaxy Tab 2 GT-P3100 (Stock Samsung JB)
Samsung Galaxy Tab 2 GT-P3110 (CM10.1 RC2 & APSPA 3+)
 
eRPeeX
Old
(Last edited by eRPeeX; 16th June 2011 at 02:12 PM.) Reason: Wrong thread
#9  
eRPeeX's Avatar
Senior Member
Thanks Meter 210
Posts: 924
Join Date: Jun 2011
Default moved

new post @sgs2
 
arunmcops
Old
#10  
arunmcops's Avatar
Recognized Developer
Thanks Meter 565
Posts: 929
Join Date: Apr 2010
Location: Bareilly
Quote:
Originally Posted by nastyba View Post
I would like to set my phone to europe.pool.ntp.org becouse it's default northamerica.pool.ntp.org

How can I edit this file ? When I try to type adb shell to terminal it gives me an error message.

Thanks

Not development related moved to General
U can use the apo "FasterFix" from market.


My Devices:
MicroMax Funbook- P300 (DEAD )
Samsung Galaxy 3 (Lost)
Karbonn A9+
Samsung Galaxy Tab 2 GT-P3100 (Stock Samsung JB)
Samsung Galaxy Tab 2 GT-P3110 (CM10.1 RC2 & APSPA 3+)

The Following User Says Thank You to arunmcops For This Useful Post: [ Click to Expand ]
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...