[Q] Why is gps.conf not changable? - Android Q&A, Help & Troubleshooting

I live in europe, I have had several android devices (from most of the different Manufacturers).
On almost every phone I've had problems with slow/bad gps locks.. the fix, almost every time editing gps.conf to put in the
european ntp servers... this also meant rooting the phone...
Most of the time I actually don't care about rooting, I'm happy with the stock rom as is...
WHY do we have to root the devices to get them to work like they should?
I mean during first bootup of the phone when locales are chosen, why can't it set the correct ntp servers to where the device is going
to be used?
Am I totally stupid and missing something or are the manufacturers (or Android developers (Google)) stupid?
Anybody have any insight on this, or is it just going to be one of life's big mysteries?
//Christian

xt600crix said:
I live in europe, I have had several android devices (from most of the different Manufacturers).
On almost every phone I've had problems with slow/bad gps locks.. the fix, almost every time editing gps.conf to put in the
european ntp servers... this also meant rooting the phone...
Most of the time I actually don't care about rooting, I'm happy with the stock rom as is...
WHY do we have to root the devices to get them to work like they should?
I mean during first bootup of the phone when locales are chosen, why can't it set the correct ntp servers to where the device is going
to be used?
Am I totally stupid and missing something or are the manufacturers (or Android developers (Google)) stupid?
Anybody have any insight on this, or is it just going to be one of life's big mysteries?
//Christian
Click to expand...
Click to collapse
I used ES File Viewer. Go into the settings and choose Root Settings and check everything. I still wasn't able to save my changes so I copied gps.conf to another folder, made my changes and saved it. Then I copied my edited file back to the etc folder. It allowed me to replace the original file.
It hasn't fixed my GPS problem but at least I got that part done.
Good Luck!
Cynthia

Try the app FasterGPS
https://play.google.com/store/apps/details?id=org.fastergps&hl=en,
it does exactly what you are describing.

Related

[29.10.2009] MarketPlaceRegionSwitch v1.1

Here it is people, as promised, MarketPlaceRegionSwitch. What does it do? It allows you to switch MarketPlace to USA, Germany, France, Netherlands, etc. Whatever you want - without mucking with regional settings, soft-resetting, etc. "because I can"
I DEMAND you read the entire post before using it, because there are definitely things you should know before using it.
This app actually fools Marketplace into thinking you are from somewhere else. This method is not foolproof, and may be circumvented by Microsoft in the near future. It is not for the faint of heart either.
Why?
Because developers have been left in the cold for manually verifying their apps are in the correct markets. Microsoft have dropped the ball a few times with "published" apps seemingly not being published at all, or incorrectly. While I'm sure Microsoft will fix these issues in due time (and indeed provide the functionality this program offers) for now developers need to check this for themselves. So no, this app is not meant for end-users, but for developers. If you still want to use it, that's fine by me, but it's on your own conscience
Keep in mind this is a developer tool, for verification of Marketplace presence. I would strongly advise against using this to download apps from market regions that are not your own, and especially not buying them through this app. In fact it is likely the Marketplace will not allow you to purchase from another country than your CC's billing address in either case.
How to use
Now here come the important bits. When you start the application, you will see two text boxes in front of you. MCC (mobile country code), and Lang (language ID). By default they have settings for the USA entered.
You will want to fill these values with the correct values for the market you want to visit. You should have matching country codes and language ID's, but see the note below about that. In 1.1 I have also added a select box with presets that mostly work.
Now, how to find the values you need to enter here:
MCC Go to this page: http://en.wikipedia.org/wiki/Mobile_Country_Code. You want to enter the numeric, 3-digit code.
Lang Go to this page: http://msdn.microsoft.com/en-us/goglobal/bb964664.aspx. You want the values from the LCID hex column.
Hit go, wait a few seconds, and you should be in the market of your choice.
Please note that unlike the other region switching tricks, this one is supposed to work through your CELLULAR connection specifically! Please make sure you do NOT have USB/ActiveSync or Wi-Fi connected!
Notes about the "preset" selection box
While many of these presets work, I have noticed some strange behavior. Often the 'expected' codes do not work if a region is combined with a language, but that language is not from that region.
Take for example, Luxembourg. The preset uses the correct LangID and MCC for French/Luxembourg, but it usually wont work. If you keep the Lang from French/Luxembourg but use the code for France in the MCC box, it usually will work and you will end up in the Marketplace for Luxembourg, not the one for France. You will have to play with it if you want to test for these less common markets. If you have specific notes about which codes work for which specific Markets, please do post them here.
If you are having trouble connecting to the USA marketplace, try using 311, 312, 313 or 314 instead of 310 in the MCC box.
How it was done
The entire thing is done by runtime patching. Functions used to figure out which locale you are in are patched by the app, returning the value you entered in Lang. Accompanied with that, the IMSI is patched and the MCC part is replaced by the value you entered in MCC. This all is a lot more complicated than it sounds
Obviously the app does it's best to restore original behaviour on exit, though I would still advise soft-resetting when you're done with it.
Random notes
The UI sucks, deal with it. I spent less than 5 minutes on it. I did spend many hours on the actual functionality, though.
The app should remain running while running Marketplace! It will (should) automatically exit once you exit Marketplace. Be sure to use the menu->exit function, instead of the X (the latter will usually just hide Marketplace, not close it).
The method used to patch may cause issues that will not disappear until you soft-reset, chances are slim but things can go wrong.
Changelog
29.10.2009 - v1.1
Presets added
Having to restart Marketplace twice without this app to get back to your "home" market should be fixed
If you are a developer for Marketplace and you make use of this app, it would be much appreciated if you would DONATE to me for my time (the link to donate is at the bottom of my signature)
Download: (+24)
--Reserved--
Great job bro!
Thanks for the great util. Much appreciated bro!
nice, thx, finally a marketplace with more then 5 items and in a language i understand
Nice work!
Now to find me some US applications!
Figures, trying to add presets to this, and just as I want to start testing the whole data network craps out... *taps foot and waits for T-Mobile to fix things*
Chainfire said:
Figures, trying to add presets to this, and just as I want to start testing the whole data network craps out... *taps foot and waits for T-Mobile to fix things*
Click to expand...
Click to collapse
I'll test it if you want.
(Drop me a PM or something if you want)
Kudos, Chainfire.
1.1 released... most importantly it adds presets. Not all of them work right, see the notes.
Also, some mod please add an empty post at the top please (I always forget to do that, hah!)
sweeeeet.. going to try it straight away
Update : Cold beer coming your way
Great work, wish I had a data plan...
Chainfire said:
Also, some mod please add an empty post at the top please (I always forget to do that, hah!)
Click to expand...
Click to collapse
Nice one, post #2 is your's .
Dave
Hi,
Great tool, but it doesn't work for me. After hitting the go button the app closes completely down.
Chainfire, you are a god!
I have to say, a great app, but it doesn't work for me.
I applied the standard settings (being the US one) but after this when I start Windows Marketplace I still get the dutch one.
I have Wi-Fi turned off, so what am I doing wrong? (I have the Marketplace version where you can select the location to save your app)
For those of you it doesn't work for, I'm not sure what the cause of this is. I actually had the same problem on one of my phones, it wouldn't switch away from Dutch (my "home" marketplace), and then suddenly it did - and I have been unable to reproduce the problem since.
All I can say is try uninstalling Marketplace, deleting HKCU\Security\Software\Microsoft\Marketplace, soft-reset, reinstall Marketplace. That might do the trick - or it might not.
@Sanderjohan: device/rom ?
Chainfire said:
For those of you it doesn't work for, I'm not sure what the cause of this is. I actually had the same problem on one of my phones, it wouldn't switch away from Dutch (my "home" marketplace), and then suddenly it did - and I have been unable to reproduce the problem since.
All I can say is try uninstalling Marketplace, deleting HKCU\Security\Software\Microsoft\Marketplace, soft-reset, reinstall Marketplace. That might do the trick - or it might not.
@Sanderjohan: device/rom ?
Click to expand...
Click to collapse
I'll try it when I get home!
Congrats on your thread at Tweakers.net
Also, it seems to work more reliable if you make sure you have a cellular connection before you run the app.. Also make sure you are NOT signed in with your LiveID
Thanks for this great app, it works flawlessly.
I have already tried to buy a product but it did not accept my credit card information at the last step. May be there could be a work around for this also.
Regards,
Chainfire said:
For those of you it doesn't work for, I'm not sure what the cause of this is. I actually had the same problem on one of my phones, it wouldn't switch away from Dutch (my "home" marketplace), and then suddenly it did - and I have been unable to reproduce the problem since.
All I can say is try uninstalling Marketplace, deleting HKCU\Security\Software\Microsoft\Marketplace, soft-reset, reinstall Marketplace. That might do the trick - or it might not.
@Sanderjohan: device/rom ?
Click to expand...
Click to collapse
Hi Chainfire,
My device is a HTC Tytn II with the following ROM Kaiser_HyperDragon_IV_Mega_6.5_WWE.
I already had Marketplace installed so I will try the thing you suggested by uninstalling and reinstalling Marketplace. I let you know if this works.

[Q] Problems with developing a custom GS2 rom for medicinal purposes.

Hello to you all people of XDA, firstly I must state that I've scoured the forums far and wide and have yet to find some valuable info regarding my problem.
So what we're doing is developing (or trying to, as is obvious from this post) a custom rom for the Galaxy S2 which would be used for a single medical application for sensor tracking and the processing and displaying of said data on the SGS2, while at the same time sending it to his/her doctor.
What we need to be able to achieve with this rom is to put it into the hands of the end-user (a chronical patient which will in turn be able to stay at home instead of being hospitalized) and be able to completely lock down the phone for his use (I know, it sounds terrible) so that he loses the phone/sms/games/youtube/internet functionality as we need the phone to run as stable and for as long as possible without any additional battery stress (the constant sending, processing and processing of data seems enough of a problem for now).
I've searched into some custom roms but we eventually came up with the need for a stock Samsung rom which could be modified as we want to.
See this is where the problem begins, we can't seem to get the phone rooted, the ROM customized and then unrooted again so that the phone can't be fiddled with anymore, except when it's completely dead and we need to fix it.
So to cap it all up:
It needs to allow for a custom load and bootscreen (I almost got this to work)
It needs to be completely locked down for the end user.
It has to have full BT, NFC and WiFi functionality
It has to be able to call out and reciev calls, but only to/from specific numbers (911, doctor, etc..)
It has to basically allow for 2-3 programs to be running, while the others simply don't exist on the phone.
I am terribly sorry if anything like this has been asked about before, I swear I put 2 days of me life into researching already.
Any help, any help at all, ideas and solutions, but mostly links are welcome.
Thank you and good day to all.
Just a detail, but the SGS2 doesn't have the NFC functionality. Project seems to be possible, I would look into CyanogenMod sources if I was you.
Sent from my GT-I9100 using XDA App
Why are you afraid of leaving the phone rooted and in hands of the patient?
Is he so uncritical that he can search the web and find means of unrooting a mobile phone and then get around to actually doing it?
LucLucLuc said:
Hello to you all people of XDA, firstly I must state that I've scoured the forums far and wide and have yet to find some valuable info regarding my problem.
So what we're doing is developing (or trying to, as is obvious from this post) a custom rom for the Galaxy S2 which would be used for a single medical application for sensor tracking and the processing and displaying of said data on the SGS2, while at the same time sending it to his/her doctor.
What we need to be able to achieve with this rom is to put it into the hands of the end-user (a chronical patient which will in turn be able to stay at home instead of being hospitalized) and be able to completely lock down the phone for his use (I know, it sounds terrible) so that he loses the phone/sms/games/youtube/internet functionality as we need the phone to run as stable and for as long as possible without any additional battery stress (the constant sending, processing and processing of data seems enough of a problem for now).
I've searched into some custom roms but we eventually came up with the need for a stock Samsung rom which could be modified as we want to.
See this is where the problem begins, we can't seem to get the phone rooted, the ROM customized and then unrooted again so that the phone can't be fiddled with anymore, except when it's completely dead and we need to fix it.
So to cap it all up:
It needs to allow for a custom load and bootscreen (I almost got this to work)
It needs to be completely locked down for the end user.
It has to have full BT, NFC and WiFi functionality
It has to be able to call out and reciev calls, but only to/from specific numbers (911, doctor, etc..)
It has to basically allow for 2-3 programs to be running, while the others simply don't exist on the phone.
I am terribly sorry if anything like this has been asked about before, I swear I put 2 days of me life into researching already.
Any help, any help at all, ideas and solutions, but mostly links are welcome.
Thank you and good day to all.
Click to expand...
Click to collapse
Block all internet access apart from ones you want or you can just setup iptables rules, shouldnt need root apart from when setting it up
As far as removing programs, just delete the apks from the zip, or before you remove root. My sig has a list of all apks in a upto date rom and what they do.
You can use gemini app manager to control autoruns (stop them etc) also to block (hide and disable apps)
As far removing root, your best bet is to once you are done, use adb (from the android sdk) to remove the superuser.apk then flash the stock kernel back, as far as I know without superuser apps cant grain root permisions.
OR
This app will allow you to block any app behind a password
This app will block incoming and outgoing sms and calls on white and blacklists
Custom boot logo (the first screen before the animation)
Custom boot animation need to go into system/media, I am not sure about the format but there are loads around, like this thread has loads, stock kernel should support them.
I hope that helps
Most of that is easily possible.
If you listed the apps needing removed, the apk files just need deleted.
To control calls, you can use a third party app from market for that.
It's possible to have the custom rom unrooted, and easily flashed, regardless of how badly the phone gets rooted
Boot animation is easy anyway... If you can provide it in a zip like other ones (zip containing numbered png's) then it's a piece of cake.
A little bit of clever firewall stuff would prevent any web traffic, in or out, except to your defined server, which is obviously a concern when a phone is handling sensitive medical info.
genieass said:
Why are you afraid of leaving the phone rooted and in hands of the patient?
The phones are going to be used by around 500.000 people in a year, it's not that we want to take anything away from the user, it's more about not having any problems with the firmware - like ever.
Thanks for all the help!
Click to expand...
Click to collapse
genieass said:
Why are you afraid of leaving the phone rooted and in hands of the patient?
The phones are going to be used by around 500.000 people in a year, it's not that we want to take anything away from the user, it's more about not having any problems with the firmware - like ever.
Thanks for all the help!
Click to expand...
Click to collapse
LucLucLuc, not sure where you live, but you're entering the patient confidentiality minefield with big, big boots.
Apart from the legal considerations, your question is definitely OS related and not device related.
I see what you want, but legally - where I live anyway - it's too much of a grey area to get involved with.
I use call recording a lot for referrals and info from other doctors, but I've always asked the other party if they're OK with it. I won't record patient conversations, and I won't accept any files whatsoever that have seen RIS or PACS first - not worth it.
Can't see it's worth your while, but I'd appreciate it if you keep me informed should you decide to work on it.
Big boots indeed
We are from Slovenia, Europe.
I'm actually just a student doing the research and some basic Android programming, thank god I wasn't let into the bigger of the projects
But yes, this project is a colaboration of several european firms and you can read more about it at chiron-project.eu - it's a very very interesting project afaic.
I don't think we'll be swimming with lawyer piranhas soon though, the project uses sensor data (which sorta is a privacy issue) which will be monitored on a tablet running Android (currently testing the Galaxy tab 10.1 - we were lucky to order one before Steve had another one of his fits), proccessed in real time and then stored on the central server, from where it will only be accessible by the patients doctor.
Patient consents are dealt with before we even start talking about mobile hospitalizations.
It's very encouraging to see some actual interest, if anyone wants to know more about anything related to this project contact me at [email protected]
Thanks again for all the help.

[sugestion]-simple way to change rom.

at my own experience, htc phones are really hard to root, especially the legend, scince it's a mid-end device, and the effort put into hacking it isn't even half of the effort put into high-end devices such as sensation or dhd.
i came across a simple idea that may able to hack most android phones, not only the legend, in a relatively easy way, but i need expert help to make the concept functional.
part one: softroot.
the "universal androot" worked fine for a softroot, and it gave me full access to all system files and folders.
second part: finding and changing the update domain.
here is the first time i need help.
i need someone to tell me whitch file contains the update domain address, so it can be changed to a personal server address in the network we work on, so that the phone serches for a new rom in a server we decide.
third part:server preparation.
i guess this is the most difficult part, scince i first have to find out what protocol is used to make OTA updates and find a server program that works with android.
then it's simply the matter of transferring the rom file (.ruu) to the server.
the idea is still a concept, scince i am not an android developer nor windows developer, but i guess that the idea is posible and can help people change roms in a safer and faster way.
if anyone can make the idea usable, i would really like to know about it.
Dont want to spoil your enthusiasm but something like this already exist.
Its called ROM Manager...
Sent from my Legend using xda premium

file, i.e., text editor that monitors/detects file changes (locally)

Hello @all,<br>I'm kinda new to "asking a question on a forum" hence I kindly ask you in advance to be a bit apologetic for any blunder I'm going to 'produce' .. thx
The reason me being 'new' is because usually I find my way around—not that I consider myself almighty but a simple Google-search does it's magic .. usually. This time I ran out of luck, which surprised me (even a search-string-overhaul was to no avail).
I'm looking for a neat text/script editor that is capable of monitoring file-changes that may happen in the background while a file is open .. a standard for any given IDE on a PC-environment (in fact, the simplest notepad replacement would cover such basics). Or a precocious check upon file-saving would be sufficient. As of now every App I tried so far failed to notice when I "sneak into my own phone and 'secretly' modify a file" currently open by this very App (of course, there are different scenarios conceivable why a file might have changed, though). QuickEdit looked promising but .. alas .. and why the heck is no there UltraEdit available for Android .. but I reckon this would be an entirely different topic and too much to ask.
ps: chose the 'post'-icon because it seemed fit .. although in a slightly different way than probably intended
pps: for the non-working line-break .. just use your imagination

Does anyone have LG cliptray packaged up?

I'm moving from my V30 unfortunately and one thing I'm really missing is LG's cliptray feature. I've spent a long time browsing the filesystem on the V30 to try to find where it's located but haven't had much luck.. So far I've found the cache for things stored in it, the 'permissions' xml for it (and know that the package is named com.lge.software.cliptray but... I am not finding that *anywhere*. Would also be curious to know if it's even possible to port to a non-LG (but rooted) phone.
Thanks!
I used the Cliptray when my V30 mas my operational phone. I have moved onto a Pixel 4a5G and was looking for same function. If you use the Google Keyboard (Gboard) you can turn on the "Clipboard" which lets you save text you have copied (optionally for a period of time) and also allows you to "pin" favourite clips.
Yeah I use Swiftkey which also has something of a clipboard but I find it lacking compared to LGs...
falkon114 said:
I'm moving from my V30 unfortunately and one thing I'm really missing is LG's cliptray feature. I've spent a long time browsing the filesystem on the V30 to try to find where it's located but haven't had much luck.. So far I've found the cache for things stored in it, the 'permissions' xml for it (and know that the package is named com.lge.software.cliptray but... I am not finding that *anywhere*. Would also be curious to know if it's even possible to port to a non-LG (but rooted) phone.
Thanks!
Click to expand...
Click to collapse
LG Cliptray realized by proprietary LG System Server service/application. U cannot copy any data from it.

Categories

Resources