I'm not a developer or someone who understand what he is doing
nore do i speak flawless English, so u'll have to excuse me
But i was trying to get my GPS configuration working on Android
So i googled here and there and this is what i'v got:
On my NAND Android after initial flash, configuration where set to US
And i'm from Israel so it took me ages to get a GPS lock.
So thats what i did:
use adb to pull gps.conf from /system/etc and change it according to your country
Code:
adb pull /system/etc/gps.conf
you can find full list here
If you are from Israel you can use the file i'v attached
and just use this line to push it back
Code:
adb push gps.conf/system/etc
it shouled look like that:
Code:
server 0.asia.pool.ntp.org
server 1.asia.pool.ntp.org
server 2.asia.pool.ntp.org
server 3.asia.pool.ntp.org
SUPL_HOST=supl.google.com
SUPL_PORT=7276
Good Luck
I am also from israel.
Will that file work for all devices, android versions and roms?
going to test this out when i get home
Going to the NTP Server Pool site this is what they recommend for Israel to do and add in the gps.conf file as one of the primary servers:
il.pool.ntp.org
NTP also recommends using these and NOT the Europe server files:
server 0.asia.pool.ntp.org
server 1.asia.pool.ntp.org
server 2.asia.pool.ntp.org
server 3.asia.pool.ntp.org
Hope this give you all in Israel a faster lock.
Sorry, could you tell me how to edit gps.conf file?
I need to edit it to Spain GPS, but I dont know how to open and edit it.
Sorry for the inconvenience, and thank you in advance.
DarkHawkESP said:
Sorry, could you tell me how to edit gps.conf file?
I need to edit it to Spain GPS, but I dont know how to open and edit it.
Sorry for the inconvenience, and thank you in advance.
Click to expand...
Click to collapse
There is a text editor (free) in Android market called 'Ted' text editor. Install that. Then, using Root Explorer, navigate to your gps.conf file (system/etc). Then long-press on the gps.conf and in the pop-up list that appears, choose 'Open in Text Editor'. Don't forget to save your changes when you're finished (before exiting the gps.conf/text editor) by pressing the menu button and choosing 'Save Changes'. Your old gps.conf will automatically be backed up and saved as gps.conf.bak in the same location. If you don't have Root Explorer, try a couple different file managers from the Market until you find one that allows R/W access to root/system files. But Root Explorer is well worth buying, this won't be the only time you use it
Sent from my HTC HD2 using XDA App
DarkHawkESP said:
Sorry, could you tell me how to edit gps.conf file?
I need to edit it to Spain GPS, but I dont know how to open and edit it.
Sorry for the inconvenience, and thank you in advance.
Click to expand...
Click to collapse
Another way to edit for free is Google for DroidExplorer and install it onto your computer. That way you can use your computer to edit the gps.conf file and save it if you want. I have saved my highly customized gps.conf file for my area. This way whenever I update or change my ROM, I insert my custom gps.conf file into the ROM before loading it.
DarkHawkESP said:
Sorry, could you tell me how to edit gps.conf file?
I need to edit it to Spain GPS, but I dont know how to open and edit it.
Sorry for the inconvenience, and thank you in advance.
Click to expand...
Click to collapse
Try this, I'm sure it will solve your problem.
http://forum.xda-developers.com/showthread.php?t=953630
Related
I updated the firmware to newest blabla5 comming from the original blabla3 (sorry I just keep forgetting those codes) and I noticed that the file gps.conf in the folder system/etc contained the following data:
Code:
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 setted the NTP_SERVER to europe.pool.ntp.org did a reboot, walked outside and had a gps-fix in a sec.
I don't know if this fixed the issue. Have to do some more experiments but at least it looks promissing.
I'm very curious about which server is defined in the official blabla3 firmware
The NTP server is vital for getting the correct time. The time is necessary to get a fix.
Update: as of now, users report different result with this fix. For me the fix works like a charm. But reading the results of other users in this thread, I would say that the results are not conclusive at the moment. Nevertheless they strongly indicate that it is worthwhile to apply the fix. Anyway, you should decide for yourself if you want to go through all the hassle of applying the fix. Just read through the thread and see for yourself.
To change the ntp server you have first to root your device (see faq in dev. section). To change gps.conf after rooting there are several options: you can use root-explorer, astro or the pc-based adb tool (for instructions, see here)
hmmm, interesting...
What did you use to edit? I can open the file when browsing to it with root-explorer but can not edit it...
dagrim1 said:
hmmm, interesting...
What did you use to edit? I can open the file when browsing to it with root-explorer but can not edit it...
Click to expand...
Click to collapse
I used astro, selected the gps file and opened it with file editor from the list.
Saved it, reboot and all done!
This definitely fixes my gps problems. Never had such a fast fix with a device.
I'm on the GF3 firmware and I have the north america setting.
I've rooted my phone but cant edit gps.conf. I've tried with astro but it can't save the changed file.
dagrim1 said:
hmmm, interesting...
What did you use to edit? I can open the file when browsing to it with root-explorer but can not edit it...
Click to expand...
Click to collapse
In root explorer: Click-and-hold on the file and choose to open it in the texteditor
Do you need to be root to edit and save this file, I've tried but it will not save changes. I don't have root access... yet
appelflap said:
In root explorer: Click-and-hold on the file and choose to open it in the texteditor
Click to expand...
Click to collapse
lol, how can I have missed this one... cheers!
Changed and saved the file, will try when I go home from work
gadjet0 said:
Do you need to be root to edit and save this file, I've tried but it will not save changes. I don't have root access... yet
Click to expand...
Click to collapse
Yes, the phone has to be rooted. But if I were you I'll wait till this fix can be confirmed by others. For me it surely fixes the issue )
dagrim1 said:
lol, how can I have missed this one... cheers!
Changed and saved the file, will try when I go home from work
Click to expand...
Click to collapse
Don't forget to reboot
galthop said:
I'm on the GF3 firmware and I have the north america setting.
I've rooted my phone but cant edit gps.conf. I've tried with astro but it can't save the changed file.
Click to expand...
Click to collapse
I have exactly the same problem. Cant save the file via Astro.
Thanks for the TIP.
Do you need to enable WIFIfor this to work?
What if you travel?
I have no idea about the effect of these changes?
The NTP-Servers at "north-america.pool.ntp.org" are up and working.
Code:
ntpdate -q north-america.pool.ntp.org
server 192.43.244.18, stratum 1, offset 0.002809, delay 0.19720
server 66.96.30.35, stratum 2, offset 0.001382, delay 0.14970
server 74.207.249.60, stratum 2, offset 0.003128, delay 0.20895
21 Jul 15:55:07 ntpdate[7934]: adjust time server 192.43.244.18 offset 0.002809 sec
darksideHELL said:
I have no idea about the effect of these changes?
The NTP-Servers at "north-america.pool.ntp.org" are up and working.
Code:
ntpdate -q north-america.pool.ntp.org
server 192.43.244.18, stratum 1, offset 0.002809, delay 0.19720
server 66.96.30.35, stratum 2, offset 0.001382, delay 0.14970
server 74.207.249.60, stratum 2, offset 0.003128, delay 0.20895
21 Jul 15:55:07 ntpdate[7934]: adjust time server 192.43.244.18 offset 0.002809 sec
Click to expand...
Click to collapse
Look at this: http://www.google.nl/search?hl=nl&safe=off&client=firefox-a&rls=org.mozilla%3Anl%3Aofficial&q=north-america.pool.ntp.org+gps.conf&aq=f&aqi=&aql=&oq=&gs_rfai=
It seems that this trick has been succesful on many other devices. I think we have a winner here
I can't manage to save with root explorer.
I've mounted the system file as r/w of course and when I choose save, the notepad says "file saved, old is backup as .bak", but my file is not modified and there is no bak file.
Someone has an idea ?
Thanks =
worked fine for me, get almost instant fix
Instant fix is not the problem-
Anyone tried to do a 1 hour drive or so with it to see if it doesn' spazz?
Also, can anyone post GPStest results after the fix?
Pika007 said:
Instant fix is not the problem-
Anyone tried to do a 1 hour drive or so with it to see if it doesn' spazz?
Also, can anyone post GPStest results after the fix?
Click to expand...
Click to collapse
Yep 1.5 hour drive with the great new Google Navigation app (awesome!). Constant fix, great accuracy.
GPS Test results (just walked outside ran the test for 20 secs)
Accuracy: 30m
Nr of sats 6:
dbHz range from 32 to 18, a fix on three
(much clouds here and I didn't move around)
30m if it's very cloudy is decent, i presume.
I usually get 5m within half a minute, but it's not even close to be cloudy around here...
There are more local NTP servers if you care to try these:
http://www.pool.ntp.org/en/
Here are the European ones:
http://www.pool.ntp.org/zone/europe
Hi!
I've been trying to upload an .apk to my webhost (through ftp) and when I try to download it through the given url, the file doesn't download. Instead I only get text, just as if my host don't understand the file.
Any idea how I can fix this? Is it though .htaccess or what? /:
(I've tried to search this but with no luck)
First off I don't know too much about ftp but from what I do know I would imagine what you want to do would involve the .htaccess file in the apk's directory
My guess would be in the .htaccess file you'd have to edit/add the FilesMatch line
(if that doesn't work it may me just "Files" instead of "FilesMatch" - not sure)
Code:
<FilesMatch "\.(apk)$">
ForceType application/octet-stream
Header set Content-Disposition attachment
</FilesMatch>
Other alternatives I can think of are either:
Change the link from [B]ftp[/B]://your.ftp.org/blah/android.apk to [B]http[/B]://your.ftp.org/blah/android.apk when you give it out - but I realize this kinda defeats the purpose of using a FTP in the first place
Upload the .apk into a zip. That should force the 'save as' dialog
Hopefully this does the trick for you
**I hope this post looks correct - adding the html myself I may have messed up somewhere along the line, if it you see /LIST] or anything like that I'll fix it when I have access to a computer **
Sent from my Android using Tapatalk
kyouko said:
First off I don't know too much about ftp but from what I do know I would imagine what you want to do would involve the .htaccess file in the apk's directory
My guess would be in the .htaccess file you'd have to edit/add the FilesMatch line
(if that doesn't work it may me just "Files" instead of "FilesMatch" - not sure)
Code:
<FilesMatch "\.(apk)$">
ForceType application/octet-stream
Header set Content-Disposition attachment
</FilesMatch>
Other alternatives I can think of are either:
Change the link from [B]ftp[/B]://your.ftp.org/blah/android.apk to [B]http[/B]://your.ftp.org/blah/android.apk when you give it out - but I realize this kinda defeats the purpose of using a FTP in the first place
Upload the .apk into a zip. That should force the 'save as' dialog
Hopefully this does the trick for you
**I hope this post looks correct - adding the html myself I may have messed up somewhere along the line, if it you see /LIST] or anything like that I'll fix it when I have access to a computer **
Sent from my Android using Tapatalk
Click to expand...
Click to collapse
Geniuous! Worked like clockwork!
(I used the http://-link from the start, that's where it failed.. but the .htaccess content did it's job!)
1+Thanks! ^^
I read in the SD-development thread about editing the
"GPS1_CLEANUP_ENABLED=1
HD2 have high current drainage(60mA) in the 0812 build. I noticed in /etc/gps.conf GPS1_CLEANUP_ENABLED was set to 0. After changing the value to 1. Current usage was back to normal 8mA"
I'm currently running the AmericanAndroid SD build and would like to change this value to 1. How do I access this? Using the phone, I went into file manager/etc and found the gps.conf file but how do I edit it? When I plug the phone to my laptop I can only view files from my SD card.
Thanks in advance, and sorry if this is a noob question.
Can anyone help?
During standy the battery drain is a consistent 60-70mA. Nothing is running, background data turned off, no wi-fi, no GPS, no sync.
rice-CHRISpies said:
I read in the SD-development thread about editing the
"GPS1_CLEANUP_ENABLED=1
HD2 have high current drainage(60mA) in the 0812 build. I noticed in /etc/gps.conf GPS1_CLEANUP_ENABLED was set to 0. After changing the value to 1. Current usage was back to normal 8mA"
I'm currently running the AmericanAndroid SD build and would like to change this value to 1. How do I access this? Using the phone, I went into file manager/etc and found the gps.conf file but how do I edit it? When I plug the phone to my laptop I can only view files from my SD card.
Thanks in advance, and sorry if this is a noob question.
Click to expand...
Click to collapse
You need to use a file explorer with root privileges. You can d/l ES File Explorer (or something like it) from the market for free.
When you run it, you'll be prompted to give it root (SU, or superuser) permissions. There's a checkbox in the menu, for you to do this anyway.
Most importantly - since the file system is read only - you'll have to also check the box directly underneath it in the root settings section of the menu to 'Mount File System'. This will make the files writable, so you can save your edits.
In general, you can keep the 'Root Explorer' box checked at all times, but it's not a bad practice to uncheck the Mount File System box when you're done so as to ensure against file changes.
gps.conf is located in the etc directory of the system. The line you want to edit is at the end of the file. When you make your change... don't forget to press the menu button and then press SAVE.
another user had similar problems - so you can take a quick look here...
http://forum.xda-developers.com/showpost.php?p=16735406&postcount=15225
Rob
thanx.works for me.
ke2v85 said:
thanx.works for me.
Click to expand...
Click to collapse
"Speaking of thanks, use the thanks button. Use it every time you get an answer, even if it's a one you don't like"
http://www.youtube.com/watch?v=JmvCpR45LKA&t=1m33s
I pressed it for you this time, next time you do it.
Hello,
As mentioned in the subject I am trying to install an application without success, and need some help understanding how to carry out some of the necessary steps...
The app in question is the S5 accuweather application (with the transparency option for the widget), which I have downloaded from these forums (link below)... in the same post as the link to download, the following is stated:
Delete ChnUnifiedDaemon and CMAWeatherPhone2013 from System/app
Click to expand...
Click to collapse
...this might as well be written in Chinese... I did give it a shot though, but didn't get very far - I found the relevant directory with the current weather app installed (i.e. in the system/app directory), but if I try to delete the app which is there it tells me I don't have the permission... ditto for copying in the downloaded app into that directory - I don't have the necessary write permission in the directory...
also, there is an option for activating Full Screen Settings... for this I have to do the change the following value:
SEC_FLOATING_FEATURE_SETTINGS_SUPPORT_FULL_SCREEN --> To TRUE
...where do I find this string, and how can I edit it??? do I need a specific app for it?
Thanks in advance for your help
________________________
S5 accuweather thread: http://forum.xda-developers.com/showpost.php?p=58370203&postcount=27
You need to be rooted.
Lennyz1988 said:
You need to be rooted.
Click to expand...
Click to collapse
I am rooted, and have flashed a custom ROM (imperium )... and thats about the limit of my capabilities. ...
You need to mount r/w. Any decent file browser can do that.
Lennyz1988 said:
You need to mount r/w. Any decent file browser can do that.
Click to expand...
Click to collapse
Well i have es file browser which im sure will do the trick, but i dont know what mounting r/w means... how do i do that?
platypus78 said:
Well i have es file browser which im sure will do the trick, but i dont know what mounting r/w means... how do i do that?
Click to expand...
Click to collapse
Mounting r/w gives you the permission to write or modify the system files.
You will have to enable the Root Explorer feature of ES.
Press the menu key to bring up the left panel and then scroll down. You should find the option "Root Explorer". It's off by default. Turn it on. It will ask you for root permission. Grant it and you should be good to go.
Now you should be able to delete and copy the specified files.
But you will have to set the right permission for the copied files.
To change the permission, long press on the apk, press "More" and select "Properties"
There should be a line called "Permission" and next to it something like "rw- r-- r--". This varies, depending on what you selected. "r" means read, "w" is write and some have "x" which means execute.
Those vary depending on the app.
Change the permission of the S5 weather app to the same as the other apps have on the /system/app folder. Most of them have "rwx r-x r-x". So that's probably what you want to change them to.
Then you have to reboot. If everything is set correctly you should have the app installed on your phone. Good luck
As for that string, I don't know where it is. Maybe ask in the thread.
Thanks Reaper.. that was just the answer I was looking for!
...can anyone help me find the string? or at least give me an idea as to where I should be looking and what app I can use to edit whatever file it is I will need to edit?
platypus78 said:
Thanks Reaper.. that was just the answer I was looking for!
...can anyone help me find the string? or at least give me an idea as to where I should be looking and what app I can use to edit whatever file it is I will need to edit?
Click to expand...
Click to collapse
http://forum.xda-developers.com/galaxy-s4/themes-apps/mod-extra-s5-features-s4-lollipop-t3033812
Hello fellows XDA, after updating my G928T to marshmallow, I can't seem to find setting.db under sqlite or even searching the file doesn't come up in /data/data/com.android.providers.setting/databases. Does anyone know where I could find this file or what may happen to it? Thanks all!
Sent from my SM-G928T using XDA-Developers mobile app
I found some details here: http://stackoverflow.com/questions/...e-settings-how-to-toggle-ringtone-vibration-i
from that page:
"move system settings from db to xml
/data/data/com.android.providers.settings/../settings.db --> /data/system/users/userid/settings_[system|global|secure].xml"
For me it was "/data/system/users/0/settings_system.xml" and I was able to use Root Browser to find and edit it. The file is very long and hard to navigate (i was just using root browsers editor which has no search function) but I was able to add hotspot toggle on my S5 by editing it, just like I used to with the old settings.db
fredknex said:
I found some details here: http://stackoverflow.com/questions/...e-settings-how-to-toggle-ringtone-vibration-i
from that page:
"move system settings from db to xml
/data/data/com.android.providers.settings/../settings.db --> /data/system/users/userid/settings_[system|global|secure].xml"
For me it was "/data/system/users/0/settings_system.xml" and I was able to use Root Browser to find and edit it. The file is very long and hard to navigate (i was just using root browsers editor which has no search function) but I was able to add hotspot toggle on my S5 by editing it, just like I used to with the old settings.db
Click to expand...
Click to collapse
I was able to find it, but after editing and given the right permission also restarted, the setting reset to default and the new changes didn't stick in the new file.
fredknex said:
I found some details here: http://stackoverflow.com/questions/...e-settings-how-to-toggle-ringtone-vibration-i
from that page:
"move system settings from db to xml
/data/data/com.android.providers.settings/../settings.db --> /data/system/users/userid/settings_[system|global|secure].xml"
For me it was "/data/system/users/0/settings_system.xml" and I was able to use Root Browser to find and edit it. The file is very long and hard to navigate (i was just using root browsers editor which has no search function) but I was able to add hotspot toggle on my S5 by editing it, just like I used to with the old settings.db
Click to expand...
Click to collapse
I dont get this, what do you mean with move setting from db to xml do you mean rename or what could you be more detalied ? Thnx
Sry for asking
astrit1 said:
I dont get this, what do you mean with move setting from db to xml do you mean rename or what could you be more detalied ? Thnx
Sry for asking
Click to expand...
Click to collapse
I mean the setting used to be stored in a .db file, but (because samsung changed it i guess) it is now stored in a .xml file. no need to rename anything, just edit the xml.
I was able to find it, but after editing and given the right permission also restarted, the setting reset to default and the new changes didn't stick in the new file.
Click to expand...
Click to collapse
If i recall correctly there are 2 entries pertaining to the toggles and one seems to overwrite the other on boot. Make sure to change both if anyone is still trying to do this. If that doesn't work then I don't know what I did to make it stick.
If i recall correctly there are 2 entries pertaining to the toggles and one seems to overwrite the other on boot. Make sure to change both if anyone is still trying to do this. If that doesn't work then I don't know what I did to make it stick.
Click to expand...
Click to collapse
if he uses only the xxx_reset one they are going to be overwritten by the normal one when he reboots ,it did this to me
fredknex said:
I found some details here: http://stackoverflow.com/questions/...e-settings-how-to-toggle-ringtone-vibration-i
from that page:
"move system settings from db to xml
/data/data/com.android.providers.settings/../settings.db --> /data/system/users/userid/settings_[system|global|secure].xml"
For me it was "/data/system/users/0/settings_system.xml" and I was able to use Root Browser to find and edit it. The file is very long and hard to navigate (i was just using root browsers editor which has no search function) but I was able to add hotspot toggle on my S5 by editing it, just like I used to with the old settings.db
Click to expand...
Click to collapse
I found that xml, I copied it on my pc, opened in browser but in that xml I couldn't find anything related to mobile data toggling, or notification toggling like this: notification_panel_default_active_app_list. Could you pls tell me how did you manage to add mobbile data toggle using this method? I'm on Sprint N920P. Thanks in advance