[Q] /system/etc/gps.conf - What does XTRA_SERVER_? do? - Galaxy S I9000 Q&A, Help & Troubleshooting

Pottering around the SGS to-day and came across this file:
/system/etc/gps.conf. I renamed the file and commented out the entries that reference the XTRA_SERVER in the original.
/system/etc # cat gps.conf.20101105
NTP_SERVER=north-america.pool.ntp.org
XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin
XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin
XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin
I have not noticed a lot of difference using the GPS after I removed the XTRA_SERVER_? entries.
Does anyone know what the purpose of these entries are?

Related

Text Editor

Hi,
I need a text editor that can do the following things:
- I have 2 files, let's say file abc.txt and def.txt
cat abc.txt:
[HKEY_CURRENT_USER\ABC]
A=1
B=2
C=3
cat def.txt:
[HKEY_CURRENT_USER\ABC]
A=1
B=2
C=3
[HKEY_LOCAL_MACHINE\DEF]
D=4
E=5
F=6
- def.txt is superset of abc.txt
- I want to make the content of abc.txt as a base search for abc.txt and if there is a similar entries in file def.txt then it prompt and ask if I want to delete the entries in def.txt.
Basically I want to compare abc.txt and def.txt and delete the content inside def.txt that similar to file abc.txt.
I did a searching and so far found nothing on the text editor that can do what I want.
Cheers,
Vibranze
im not aware of anything that does this. The only thing I can suggest is to get a second notepad program so you can open two text files at once, and then do your searching and editing manually.
Hi Neptune,
Yeah, this is what I thought too, no such tools exist and I need to do eye balling
Cheers,
Vibranze
While talking to a friend about dealing with two text files he mentioned this program:
http://www.pdalive.com/seymour.php
Allows you to split your screen into two allowing you to view to applications at once. Maybe this will help speed up the aforementioned process of editing text files.
well the pocketVI which is free have a "c" "compiler" in it
maybe it could be used
might help
http://www.ultraedit.com/index.php?name=Content&pa=showpage&pid=34
I swear by UltraEdit (from the same people as UltraCompare), but I've never gotten on with UltraCompare....for comparing, merging and updating files and folders, I use "Beyond Compare (See HERE) from ScooterSoftware - it's not free, but it's a small price to pay (IMHO!!) for the features it offers....
See what you think...
Mark.
Thanks all for the reply.
Can the comparison software compare two files and show me the line containing same entries and options to delete the line from the superset file (def.txt)?
Or if I sort both files, then I paste content of abc.txt into def.txt and use text editor to search and highligh for duplicate entries within def.txt so I can delete it, is there any text editor that can search for duplication inside the file?
Appreciated the feedback given. Thanks.
Cheers,
Vibranze

Paste clipboard contents in Terminal?

Is there any way to access the clipboard contents from a Terminal? I can't find any file where the copied text is stored, I suppose the phone may just store it in memory?
I had a workaround for this on my iPhone. The iPhone stored it in a file with a bunch of nonprinting characters so, rather than decipher that, I found a multi-clipbard app which stored the contents in plain text and I wrote a script to extract it from that file. I've looked for a similar app for Android and have found a couple, but they store the copied text in sqlite databases and I haven't had any luck getting it out.
So, is there any method to access the clipboard from a terminal, or any way to find it somewhere as plain text?
Ok, I spent some time downloading clipboard apps until I found one to use as a workaround. It's called Clipstore by benishouga and it stores the clipboard contents in a plain text file at /data/data/jp.benishouga.clipstore/files/clip.txt.
It is meant to keep a clipboard history of multiple items and it stores every entry on a single line. It replaces newlines with a "n" tag so even if you have 20 clipboard history items consisting of multiple lines, the most recent will always be on top and it will all be on a single line. So the paste command can simply be:
Code:
sed 's/<n>/\n/g;q' /data/data/jp.benishouga.clipstore/files/clip.txt
Example: I copied this text from a note app
Second test start
Blah blah
Second test end
It appears like this in /data/data/jp.benishouga.clipstore/files/clip.txt
Code:
Second test start<n>Blah blah<n>Second test end
In a terminal:
Code:
bash-4.1# cat /system/bin/clip
#! /system/bin/sh
sed 's/<n>/\n/g;q' /data/data/jp.benishouga.clipstore/files/clip.txt
bash-4.1# clip
Second test start
Blah blah
Second test end
bash-4.1#
Yay!

About A-GPS Servers (gps.conf)

Hi there,
Galaxy SIII has "XTRA_SERVER_1=http://gllto.glpals.com/4day/latest/lto.dat" server line in gps.conf file, while Galaxy S has "XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin".
What is the difference between those servers? And which is better for faster GPS fix? Or "XTRA_SERVER_1=http://gllto.glpals.com/4day/latest/lto.dat" server is compatible with I9000?
Thanks in advance.
no answers?
They're different servers, that said, they're interchangeable. Why don't you try interchanging them? Remember to back up.
Here's mine, it's the fastest in my country:
NTP_SERVER=0.ca.pool.ntp.org
NTP_SERVER=1.ca.pool.ntp.org
NTP_SERVER=2.ca.pool.ntp.org
NTP_SERVER=3.ca.pool.ntp.org
NTP_SERVER=ca.pool.ntp.org
XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin
XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin
XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin
# DEBUG LEVELS:
# 0 - none, 1 - Error,
# 2 - Warning, 3 - Info
# 4 - Debug, 5 - Verbose
DEBUG_LEVEL =0
ACCURACY_THRES=5
INTERMEDIATE_POS=0
ENABLE_WIPER=1
SUPL_HOST=supl.google.com
SUPL_PORT=7276
REPORT_POSITION_USE_SUPL_REFLOC=1
# blank
xtra.bin is basically used by QUALCOMM , lto.dat is used by Broadcom Chip of BCM47511. Do a whois on glpals.com and gpsonextra.net and you will know which company uses which services. There is no great idea to change the Software of GPS to Qualcomm from broadcom ...
Gps-nitz-ntp
Hi all,
Sorry to post there but after lot of search, i haven't get any information
Does NITZ protocol is used only by GSM network and is it the default protocol used by android system to sync time?
Things I know is that:
- user can't set time without root privileges
- NTP server could be used only with third-party apps
- there is a gps.conf file in /system/etc and inside there is a line NTP_SERVER=... I want to know the meaning of gps.conf file cause my final goal is to try to sync device with NTP server wihout root priviledge but by redirecting NTP request to my own NTP server (changing DNS maybe) I used some packets sniffer and I can't see some NTP packets (over Wi-fi or GSM)
Thanks fo help

[Q] We can parse the Registry Values through the .xml files ?

Code:
<Service Name="NlpmService"
Group="NsgExtA"
DefaultVersion="1.1.0.7"
Version="1.1.1.1"
SrcName="NlpmService_1_1_1_1.upx"
Resolution="WXGA"
Device="RM-892,RM-875"
MinAK="1317.21087"
MaxAK="1317.21087"
MinBSP="3038.0000"
MaxBSP="3038.0000"
SHA1="98c24472b34bec2881c5d0f1810bc38b15fea47a">
<RegDWORD Path="Software\OEM\Nokia\lpm" KeyName="SwipeEnabled" KeyValue="1"/>
<RegString Path="Software\OEM\Nokia\lpm" KeyName="FontFile" KeyValue="\Data\SharedData\OEM\Public\lpmFont_WXGA.bin"/>
<RegDWORD Path="Software\OEM\Nokia\lpm" KeyName="NormalModeElements" KeyValue="63"/>
<File SrcName="lpmFont_WXGA.upx" DstName="lpmFont_WXGA.bin" SHA1="98c24472b34bec2881c5d0f1810bc38b15fea47a" />
</Service>
Mostly, files like this can point us to potentially interesting files or registry values that we may have other uses for rather than being directly usable themselves. Sometimes they reveal registry keys that we can't browse, which is useful; we can then edit them using INTEROPSERVICES tools or modified ROMs. Sometimes they reveal the purpose of things that we could see before, but didn't know what they do.

Bad gps on stock 5.0.1

Anybody experiencing bad gps on 5.0.1 GPE? I hardly get a fix and then I do, I often lost it. I really like playing ingress and it is no good for it.
I have recently bought this phone from another person, which declared it as Developer edition(but it has 32 Gb storage, and it was send to him directly from Czech HTC), it had stock 5.0.1 Lolipop pre-instaled and bootloader locked. I unlocked the bootloader on my phone and rooted it using TWRP 2.8.3.0.
I have also tried to flash htc stock based 4.4.3 rom(Viper 7.2), get fix there and get back to lolipop using nandroid backup, gps was a bit better afterwards, but it has messed the moint points of the internal sd-card and programs could not write to it. So I needed to relock and unlock bootloader again to get internal-sd card formated to the right way.
Do you think, that another radio can help this? I live in Czech republic, do you know which radio can work here?
This is what I have on fastboot screen:
***UNLOCKED***
M7_UL_PVT SHIP S-OFF RH
CID-HTC__032
RADIO-4T.30.3218.21
OpenDSP-v34.128.274.0429
OS-5.11.1700.3
eMMC-boot 2048MB
Dec 2 2014,22:11:20.0
hi!
since upgrade to 5.0.1 my GPS is also not working on my m7 gpe!
I found some reports from nexus owners too, but they wrote that they have disconnects, mine is complety messed up!
maps navigation while driving makes me crazy.
greetz
(Update)
fixed my gps by rooting and editing gps.conf
i used this, maybe you can get something more accurate for your location:
NTP_SERVER=0.de.pool.ntp.org
NTP_SERVER=1.de.pool.ntp.org
NTP_SERVER=2.de.pool.ntp.org
NTP_SERVER=3.de.pool.ntp.org
NTP_SERVER=0.europe.pool.ntp.org
NTP_SERVER=1.europe.pool.ntp.org
NTP_SERVER=2.europe.pool.ntp.org
NTP_SERVER=3.europe.pool.ntp.org
NTP_SERVER=de.pool.ntp.org
XTRA_SERVER_1=http://xtra1.gpsonextra.net/xtra.bin
XTRA_SERVER_2=http://xtra2.gpsonextra.net/xtra.bin
XTRA_SERVER_3=http://xtra3.gpsonextra.net/xtra.bin
# DEBUG LEVELS: 0 - none, 1 - Error, 2 - Warning, 3 - Info
# 4 - Debug, 5 - Verbose
DEBUG_LEVEL =0
# Intermediate position report, 1=enable, 0=disable
INTERMEDIATE_POS=0
# Accuracy threshold for intermediate positions
# less accurate positions are ignored, 0 for passing all positions
ACCURACY_THRES=0
# Report supl ref location as position, 1=enable, 0=disable
REPORT_POSITION_USE_SUPL_REFLOC=1
# Wiper (wifi positioning), 1=enable, 0=disable
ENABLE_WIPER=1
################################
##### AGPS server settings #####
################################
# FOR SUPL SUPPORT, set the following
SUPL_HOST=supl.google.com
SUPL_PORT=7276
SUPL_NO_SECURE_PORT=3425
SUPL_SECURE_PORT=7275
SUPL_TLS_HOST=FQDN
SUPL_TLS_CERT=/etc/SuplRootCert
# FOR C2K PDE SUPPORT, set the following
C2K_HOST=c2k.pde.com
C2K_PORT=1234
CURRENT_CARRIER=common
DEFAULT_AGPS_ENABLE=TRUE
DEFAULT_SSL_ENABLE=FALSE
# TRUE for "User Plane", FALSE for "Control Plane"
DEFAULT_USER_PLANE=TRUE
Click to expand...
Click to collapse
xlokix said:
hi!
since upgrade to 5.0.1 my GPS is also not working on my m7 gpe!
I found some reports from nexus owners too, but they wrote that they have disconnects, mine is complety messed up!
maps navigation while driving makes me crazy.
greetz
(Update)
fixed my gps by rooting and editing gps.conf
i used this, maybe you can get something more accurate for your location:
Click to expand...
Click to collapse
Thanks, I will definitelly try this. I am now sending my phone to the service because of the purple camera issue so I will try it when my phone return.

Categories

Resources