[Guide] Enable working GPS Change no Rubber banding - LG V30 Guides, News, & Discussion

This guide is for fixing a GPS Problem when attempting to use spoofing apps, in particular games that require your actual location.
For Example Pokemon GO among others, over time the original exploit to mock location was patched by certain companies when playing their games so now the only reliable way to do this is with root (for several reasons).
So Even with apps like GPS Joystick I found at times the real location was still getting acquired, I attempted to manually disable location services, using the built in features like "AGPS-Reset" still the actual GPS would lock on (obviously not as much in larger buildings) still I wanted to go outside and only mocking location be seen by the apps/games with no actual location working
I figured it out and thought I would share
First things first, You MUST be rooted. If you do not have root and own a V30 variant their are guides to convert and root.
It doesn't work without it, don't ask
For other phone models your mileage may vary (we are looking for a file "gps.conf")
Second, MAKE A BACKUP of the files that will be changed later, if you do not. Then you will most likely have to re-flash or have non-functional GPS and if you do need it you would be boned.
Third, You will need a few tools Ex. ( Terminal Emulator, Systemize [Masgik Module] , GPS Spoofing app I personally use the GPS Joystick Pokemon GO, Root file Explorer of some sort, the game of choice, and a system app or service disabler, like Titanium backup etc)
Now to the fun stuff
Make a backup of /vendor/etc/gps.conf
Install spoofing app (if equipped generate new name for GPS app and then delete the original)
After backing up gps.conf to SD or through adb, delete the original gps.conf in a root file manager then create a blank file in the same location (/vendor/etc) named gps.conf
In effect you just replaced the original with a blank copy, you could manually delete the contents as well but that's more work.
use the appropriate app disabler and disable anything with GNSS, location services, Qualcomm IZAT, Fused Location and anything else that is location service related
Open Terminal Emulator
type in "su"
grant su permissions if asked, make sure you have a # in the prompt
type in "systemize" (Gotten from magisk module download)
convert GPS spoofing app or generated app to a priv-app in the system (It cant be just /system/app)
then exit the systemize app and type "exit" a few times to close the terminal
Make sure when you do change the GPS settings in the actual android menu that you choose GPS only and that WiFi and Bluetooth settings are unchecked, obviously ensure the main GPS switch is enabled but that the rest aside from GPS only is not checked and or enabled
Then reboot your phone THIS IS A REQUIREMENT, for several reasons, it actually disables the location related services as well as the GPS via the gps.conf file and will also make your new spoofing app a priv-system app and it will appear
By now you should have location services aforementioned disabled, gps.conf blank, settings to GPS only with no other location "extras", a systemized gps spoof app. From here i disabled indirect mocking in the spoofing app, make sure System mode IS enabled AGPS-reset isn't needed and being we disabled location services manually, I suppose you could un-check that too but i left it checked
I modified the walk speed to the limits of the game I play, rebooted one more and its a safe idea to double check everything is set correctly
You DO NOT need to add the said mocking app to Developer Mock locations as it is a system app and some spoofer(s) offer that mode after making it an system app
At the end of the day you will now have a GPS Mocking app running where you can set your location and play without ever having the real location ping and rubber-banding you or otherwise messing up the whole concept of spoofing the GPS
As a disclaimer the GPS is a safety feature but some would rather not be tracked so this can technically work this way too
Some may ask well if you are just turning off GPS can't you just turn off the switch in Location Settings, that does not work as GPS technically has to be on for the spoofing app to function. Deleting gps.conf vs making a blank file causes the spoofing app to state the GPS isn't on (even if the on/off switch is toggled under the Phone Settings)
To reverse simply restore the original gps.conf to "/vendor/etc" (You did make a backup? Right)
re-enable the previously disabled location related services
reboot the phone
and if you'd like you can tick the gps and networks, WiFi, Bluetooth scanning and qualcomm IZAT option
or go with just GPS
either case this should enable the real location, I always test with a weather app
If you play Pokemon GO,Adventure Sync doesn't work (while location services disabled/frozen) I suspect because one of the "Location Services" Google Fit Depends on, however being you can walk as much as you want its a mute point, if you want Adventure sync back you have to reverse the process
Anyway this is what I have come up with, it works for me, after its tested by others, I am planning on writing a app that does this all in one shot. For now here is the manual way
Have Fun, Hope it works
If you have any questions or modifications to the post I am open to suggestions
If their is an easier way or something I missed or could Improve on, again comments are welcome
Last thing This technically violates TOS for some games and is increasingly hard to successfully pull off, so try your best to use every tool available to hide both the GPS spoofer and root from said games, don't teleport to far without waiting the proper amount of time before running the game , read up on the walking limits or how the game works if needed to fine tune everything

Just quick question. Do we still need to downgrade google play service boss? Something like 12.6.85 version.

thank u so much i was having this issue for a long time and i was planning to buy a gps jammer just so i can fix this issue , this is worked very well thank u again ^^

Thanks man you're the best!

I'm about to try this guide on my V30 with Oreo... did you ever make the app you mentioned that would do all this automatically??

teknomedic said:
I'm about to try this guide on my V30 with Oreo... did you ever make the app you mentioned that would do all this automatically??
Click to expand...
Click to collapse
No unfortunatly i got busy with life, for the time still have to do things manually

fxsuprapto said:
Just quick question. Do we still need to downgrade google play service boss? Something like 12.6.85 version.
Click to expand...
Click to collapse
I just tried a month ago and i never downgraded google services, in fact I read the newer updates to pokemon look for that, my origional instructions stated to disable fuse locations etc, now you don't need to do that just two things, well maby 3, make sure your using magisk and hide root from pokrmon go, under gps locations settings set to use gps only and change the gps.conf file as instructed, if poke gives OS incompstable warnings know that it will browse both your sd and internal card looking for files folders and even some other apps thats known to utalize root, i commented on this to another user on the last page of the thread, also someone else make another guide based on my findings, ive commented there as well, you can also look at reddit as i found at least a partial lidt of things the game looks for, being they update all the time like with anything else its a cat and mouse game, the only reason this works is because were changing a file in android that prevents the gps from working without totally disabling it, doing the latter flags in pokemon, the eevs of the game cant patch this as gps comes from android itself and not a app or utility but it would be just as easy for them to look for a 0 k (size) gps file and if thst matched well then it would be game over for this fix, luckly tho this fix isnt super popular so its stayed under their radar

Hey, Doesn't smali patcher achieve the same outcome with a shorter process?

In reguard to the smali patcher, to be honest I have no idea, ive seen several references to it sinse folks started commenting on my idea, things get developed all the time, i dont recall having that as an option when I wrote all this or id have gone for a quick fix myself, if the patcher somehow disables the gps itself then its likely it works in a similar fashion, as the heart of my fix really depends on the gos file, and of course some spoofing app and root, all id say is try and see, if the patch works and its less leg work for you then go for it, I would, i just didnt have anything else when i wrote the steps out

Great, just what i was searching for!
That is really great, i've spent today searching for a way to deactivate the gps, i have a sony xperia z3c which is used just for pokemon. I found that gps.conf file shortly after i started having a nose around the filesystem. The only think i actually tried so far was disable the location service & the fused locations, after which the GPS joystick (as a system app) seemed to stop functioning. Incidentally, my gps.conf is in > system > etc
So thanks for this info, you have saved me from a lot of messing about.
Just to update, the gps.conf was in 2 location on the xperia z3c, the top etc folder and in system/etc. so did both.
Again the gps joystick would not work after i froze the location service and the fused locations, as it turns out they both have to be present for it to work.
Despite that, it looks to be working ok.
No, a while later it did start doing it again, much less though.
Think ive sorted it now though. using an app called System2, i found the other services that are related to the location service, then froze 4 of them. I also deleted this one file that was somewhere within the in the dev folder in another folder called qmux_gps. it wouldnt let me copy it, but i did manage to delete it (wreckless i know). Since then everything is working great, for about 5 hours so far

Related

[Q] Transitioning from Palm Pre to Evo 4G

Posted in androidcentral and went no where this seems to be a better site for this sort of thing. Transitioning from the Palm Pre Sprint to the Evo. Saw some Pre to / Evo4G threads but none have the info I need. Couple of questions hopefully someone can answer. I already rooted the EVO with the AC rom also nandroid with cm6 (the Pre basically comes already rooted just enter konami code and reboot). Hopefully these answers can help others later on too.
It allows to to make/end calls, send sms, open apps, reboot, change wallpaper, turn GPS on and off, get phone coordinates, turn leds/vibrator on. In short basically every function the phone does can be triggered remotely via ssh.
Nothing that will let you mess with people on command line if your phone is lost or stolen but lookout and prey are good apps for locating your phone.
OpenSSH server?
There is an app in the market but the lack of libraries, optware and physicial keyboard really make this a bad phone to use the command line in. Tunneling in or out is also a lost cause a vpn would be the best bet for this.
DDNS?
There is an app which is pretty nice but haven't found a good http server like the Pre so there is really no need for it.
Http server? My pre had a webserver with php. When I went to a page the Pre called its location and displayed a google maps page. I would prefer if theres no app so if I lose my phone theres nothing that can be easily uninstalled or turned off. Also good for hosting files locally.
Haven't found a replacement for this.
You can do Ubuntu chroot on the Evo but with no xserver it lags and is not a good experience.
Is there a third party app for homebrew mods like preware or cydia? Android market is more open than apple or palms so every app you can find there no alternative needed. Although sometimes you can find apks in threads for apps that are not in the market yet just put them in your sd card and browse with a file manager to install these.
Is there a way to download your sms database file like the iphone or pre ? Haven't found out where they are saved but plenty of apps to backup texts to either sd or gmail so no need to go searching for them.
I do have the script that installs optware on the Pre I tried doing the commands manually but failed. Haven't given up yet just havent had time since after midterms it will be on top of the list. Is there anyone with alot of experience with android that might also want to try this. It is a shell (.sh) script but I changed the extension to txt so I could upload it.

Motorola Defy GPS Problem Solved (to use offline LTO-AGPS) (updated 3 Aug 2012)

Firstly thanks popcorn1122 so much for amazing improvement of A/GPS here
For my findings, some parameters in the <hal> paragraph of /system/etc/gpsconfig.xml could also be added to enable the offline LTO-AGPS (Need rooting, and pls backup the file)
(red text for enabling LTO and blue text for optionally enabling logging for the first fix)
<hal
acPortName="/dev/ttyS0"
lBaudRate="115200"
cLogEnabled="true"
acLogDirectory="/data/location/com.broadcom.gps/logs/"
ltoFileName="/data/gps/lto2.dat"
acNvStoDir="/data/location/"
acCmdPipeName="/data/location/gpscmd"
bAllowIgnoreOsc="false"
bUseHalLogger="true"
/>
To get the LTO file, we could either:
(Method 1 using GPS Aids)
1. Create the folder /data/gps which GPS Aids puts the LTO file, and grant rmxrmxr-x permission
2. Install GPS Aids with both Data and GPS ENABLED, otherwise the Download LTO functions will be blocked and need re-configuration
3. Download the LTO file. GPS Aids shows how long since it has been downloaded
(Method 2 manually download)
1. Get lto.dat or lto2.dat from either : (7 days)
http://gllto.glpals.com/7day/latest/lto.dat
or (7 days)
http://gllto.glpals.com/7day/v2/latest/lto2.dat
or (30 days)
http://gllto.glpals.com/30day/v2/latest/lto2.dat
2. Rename and move the file which fits the setting of the modified ltoFileName parameter of gpsconfig.xml, granting sufficient permission for the folder like that in Method 1
(Method 3 auto download)
In the early time I developed a script to download the LTO file while mobile data switched on, and added service and trigger routines from the relevant system properties. Seeking advice by CM7 developer @maniac103, those triggering are not fully functional thus not recommended. Instead, pls try his latest build since June (here) with a marvelous settings UI for this case. Thanks Maniac for his kind concern and efforts on it.
Within the validity of the LTO file, the fix should be done in seconds even in limited open sky. We can download an updated LTO file anytime to keep the performance.
Reference:
http://www.htcmania.com/archive/index.php/t-151202.html
(sorry I cannot understand the language but thinking some param. may help)
http://forum.xda-developers.com/showthread.php?t=789383&page=4
(refer jupiter.xml from a model of SGS)
https://github.com/CyanogenMod/android_device_samsung_vibrantmtd/pull/3
(bash script for auto dowload)
https://github.com/jad3675/android_...283f4a26989dc07d45da8a8af580f51492d45f#L0R373
(init service for auto dowload)
Thanks folks for optimizing Defy for releasing its real performance!
I had tried all that before but had come to a conclusion that lto.dat never used or downloaded. The cellid are stored in learn_store.bin which is stored in /data/location
emphersis is downloaded and stored in gpsdata.nvs.It is used by motorola defy for a specified duration (seems 1 hour as per location.cfg - MIN_NAV_REQ_INTERVAL = 3600000 )which is updated in location.cfg if there is no gprs available.
I see... I also bear no hope originally just I think Defy uses BCM4750 and Broadcom promoted LTO years ago, and I found the params. like acLtoDir and lbsSyncLto from the htcmania.com thread last week, with referring other similar XML, and continue the trial-and-error. Hope this finding makes us feel our experiments worthy
manfifer said:
(Method 2 manually download)
1. Get lto.dat or lto2.dat from either :
http://gllto.glpals.com/7day/latest/lto.dat
or
http://gllto.glpals.com/7day/v2/latest/lto2.dat
2. Allocate the file which fits the setting of acLtoDir and ltoFileName parameter of gpsconfig.xml, granting sufficient permission for the folder like that in Method 1
Click to expand...
Click to collapse
What is the difference of lto.dat and lto2.dat? This files differ in size 65/39 kB.
popcorn1122 said:
I had tried all that before but had come to a conclusion that lto.dat is downloaded by the gpscmd file and converted into learn_store.bin which is stored in /data/location
learn_store.bin file is used by motorola defy for a specified duration which is updated in location.cfg if there is no gprs available.
Click to expand...
Click to collapse
I am confused. What I found is, that (without data connection on a CM7 ROM) learn_store.bin is updated, whenever GPS got a fix.
My assumption is, that this contains data that can help to get a quicker fix next time.
But I assume, that this contains only infos about the sats that has been involved in the last fix (which are only a few). Where else the Defy should now about the other satellites?
A downloaded lto.dat on the other hand probably contains information about all the satellites.
What do you think about my speculations?
PS: I found an interesting document:
The LTO data should be around 30kB and valid for around 4 days.
http://www.broadcom.com/collateral/tb/LTO-TB100-R.pdf
An indeed, the BCM whould support the LTO
http://www.google.de/url?sa=t&rct=j...sg=AFQjCNErL9qjljAhfOKhtIYORo_sn3BzDQ&cad=rja
You could use the LTO file from either URL, just rename it to be the same as the parameter "LtoFileName" and place it in any folder set by another parameter "acLtoDir". Both of them serve the purpose just the V2 version is smaller in size, similar to the one downloaded in GPS Aids. The app. downloads it as lto2.dat in /data/gps/, so I have to build this folder and set the above two parameters in gpsconfig.xml shown in the thread before installing the app.
Sorry I have no idea how LEARN_STORE.bin and gpsdata.nvs is created (thanks popcorn1122), just they would be expired and as you've raised in popcorn1122's thread, after 6 hrs or shorter time from a SUPL fix, apart from the birds with expired ephemeris (but coarse almanac data), there have other new birds visible without AGPS data in the last fix. When we are offline, the chip tends to fix them from scratch again gradually.
Like the Broadcom Technical Brief promoted, offline AGPS is useful while we are standing under dense skyscrapers without network assistance. It also expires after around 4 days, but its sufficient for me to update another LTO file. I keep turning off any data before testing LTO with GPS Status, and delete /data/location if I need restarting the phone. This is stubborn from normal application while I can easily get SUPL fix with my 3G data plan. But I'm eager to find the solution when one day I'd like to get a quick fix while travelling abroad. (time is valuable in the tour )
LTO files contain days of ephemeris data of all the birds, once the position is fixed, even some birds with weaker signals, whatever visible or obstructed, can aid the fixing. But it could not be applied properly in the stock or CM7 gpsconfig.xml settings.
I believe the Broadcom chips in this generation has this technology in their released chips as it has been applied since the era of WM phones. The key is just the implementation of the driver or configuration.
I did what you suggested in your first post, changed/added the red lines.
used "lto.dat" as filename and "/sdcard/download/" as dir.
I added a shortcut to the lto.dat (the bigger one) to my browser, so that is becomes easy to download (it will located that in the dir mentioned above.
But here I get some trouble with permissions. For a unknown reason, the permission is (after download) --xrwx--x .
Even with a terminal an su I can't change the permission to rw-rw-r--. Very strange, but OT here. ls -l show system / sdcard_r as owner.
(Edit: its because of the filesystem FAT: Can you test, whether it works from that folder despite the permissions as well?)
So I copied the file to /tmp and changed the permissions. You are mentioned
"rmxrmxr-x permission". Imho it is sufficient to be readable, at least x is not neccessary, as this is just data, right?
Reboot the phone with all data (WIFI/GPRS/EDGE/3G) DISABLED (for better testing, delete /data/location folder to clear all the GPS cache). Once again it needs some time for TTFF. Then we should notice the birds connected increased dramatically like fixing with SUPL. No need endless waiting of unassisted GPS for 3-4 days until next reboot. Of course we can download an updated LTO file anytime to keep the performance.
Click to expand...
Click to collapse
To clear the AGPS data it should be sufficient to use GPS Status. It can download and clear AGPS data.
Regarding deleting the files in /data/location:
-The gpscmd is an empty file (pipe?) so no need to delete.
-gpsdata.nvs and LEARN_STORE.BIN is recreated with a new call of GPSStatus
But the location.cfg is containing some settings and is not recreated. This is lost now. It will be created some location_tmp.cfg, but it is empty.
Regarding SUPL: Is this a service which runs with or without an DATA connection to the service provider? What I mean, do I have to enable data connection for this? Some data (like which cell, what time,..) are received without a data connection ...
I have come to a conclusion that lto.dat is not used by BCM4750 driver of defy.
Just check my post with updated information.
The driver brcm_guci_drv is the most important file which contains all details what the defy does and only takes port & speed & chip type & chip speed details from gpsconfig.xml at the startup.
The same case with location.cfg... half of the file is not used by defy. Only parts of SUPL in location.cfg are used by defy.
I tried every fix to improve offline GPS performance, but with no "visible" effect so far. But as some poeple like manfifer or popcorn told about improvements I did some test with initial state again - just to be able to make a real comparison.
The results are mixed. I did a initial download of a agps and get a fix in
Then I switched of gps and network. Every hour i enabled gps and checked with gpsstatus th ttff. It varies: 7, 100, 15, 10, 84, 74, 8, 62, 77s.
Than after 1.5h (i missed the 1h ): 758s
Again in 1h rythm: 60, 37, after midnight 445s(!!!).
At night I slept an started after 6.5h again more or less in 2h time distance:
26, 54, 221, 189, 859(!!!!) after 3.5h, 9s (after 1h:20min) ...
It is clear, that delay between GPS tests affects the ttff. But
@popcorn1122:
do we have a chance to get a driver that is compatible and handles lto data?
defy isn't the only phone with this broadcom chip, and froyo-kernel has been used in many devices.
how do you know about the driver brcm_guci_drv. I though this gps.jordan.so is responsible.
starbright_ said:
@popcorn1122:
do we have a chance to get a driver that is compatible and handles lto data?
defy isn't the only phone with this broadcom chip, and froyo-kernel has been used in many devices.
how do you know about the driver brcm_guci_drv. I though this gps.jordan.so is responsible.
Click to expand...
Click to collapse
Motorola Defy uses Broadcom GLCT ver. 2.1.3 79917, 2010/Jul/27, 09:21:25 driver. This is an old driver. Perhaps Motorola never bothered to update the driver to take real potential of the BCM4750 chip. The LTO.dat is not downloaded nor used. Also the settings of SUPL are left with basics and the fallback supl to google is disabled by default. The whole gps is dependent on MSA & MBS & SUPL. The fixes are possible without gprs or wifi or network towers. Hence the ephemeris data is straight downloaded from satellites. The GPS fixes & ephemeris data are stored in LEARN_STORE.BIN.
It is difficult to get the new driver for defy. LG , Iphone & Samsung have used BCM4750, but they have their own custom driver to meet their requirement. I have tried the LG driver called glgps , but the gps did not initialised even with the original defy config file.
gps.jordan.so file is not used by defy. The stock installation has no such file. Similar file was in Milestone and defy+. But not in defy. Hence brcm_guci_drv is the driver file and is the same MD5 as of defy+. Milestone brcm_guci_drv has a different MD5.
starbright, its great to make use of our browser downloading the LTO file instead of installing GPS Aids. Just for my CM7 browser, it won't overwrite the old file but rename the new one as "lto2-1", and I donno why it changes the extension to .txt , resulting lto2-1.txt. Anyway I tested changing the acLtoDir and LtoFileName param. to "/sdcard/download/" and "lto2.txt", the LTO is also effective after reboot and first lock. The permission of the downloaded file is --xrwxr-x, the same as the one in /data/gps from the app. I try bookmarking the whole URL but it won't download but view it, so I can only bookmark the path and download manually. Whether the LTO works is obvious. When 4-5 hrs after a SUPL locking, u need more than 1 min to lock, then the LTO is most probably failed. Normally its just several seconds, even no data for 3 days.
popcorn, I'm now using the 120304 build of CM7, attached my brcm_guci_drv, could u confirm if it has been replaced from the stock one. I tested both gps.jordan.so from CM7 and your thread, both work with SUPL and LTO, but after removing it and reboot, my GPS Status cannot view any birds and no more blinking GPS icon when enabled. If it dosen't exist in stock ROM, there should have some other libraries replaced by CM7, including brcm_guci_drv probably.
I attach the brcm_guci_drv from CM7 and the modified gpsconfig.xml early this thread.
I use Opera Mini and set the download-path as tile in start-page. Just open it an lto.dat will downoaded to the path. It keeps the *dat-extension, but make lto-2.dat, lto-3.dat ... if the old file isn't cleared.
manfifer said:
... the LTO is also effective after reboot and first lock. The permission of the downloaded file is --xrwxr-x, the same as the one in /data/gps from the app. I try bookmarking the whole URL but it won't download but view it, so I can only bookmark the path and download manually. Whether the LTO works is obvious. When 4-5 hrs after a SUPL locking, u need more than 1 min to lock, then the LTO is most probably failed. Normally its just several seconds, even no data for 3 days.
Click to expand...
Click to collapse
Sorry, have difficulties to understand this. You mean, LTO is working? No problems with the location and permission on /sdcard ? What is a SUPL lock? Does this data need a data connection or is it transferred (like clock or name of cell you are logged in without a data connection) just by login to a GSM network. (data connection active or not) Can you explain under wich circumstances the TTFF is so fast?
I couldn't see this helping effect, maybe have to test this again and compare your files.
I used lto.dat and CM 7.2.rc.
Sorry I should use "fix" instead of "lock", just mean "successful positioned"
Yes data (EDGE/GPRS/3G/WIFI) is needed to communicate with the SUPL servers
(supl.google.com, supl.nokia.com, etc.) to get a fast fix, just logon to GSM network does not work. So the use of LTO is to get rid of such network barrier, for several days.
In my testing whatever the file is in the phone (/data/gps/) or SD Card
(/sdcard/download/), it does works under --xrwxr-x , just I have to modify acLtoDir and LtoFileName param.
My TTFF (after restarting the phone) is around 30sec-2min., not fast as I keep data connection OFF for testing. The power of LTO comes with the 2nd fix and so on, whatever in open space or under dense buildings, whatever how long u restart GPS from the previous fix (good to test after we wake up as all fixes and cache should hv been expired.), usually the fix costs less than 5sec. The effect keeps until I restart the phone again (change SIM card, the phone hangs up ) or the LTO file is used more than 4 days around. But, if u move the file away, after say 3 hrs, the fix will take longer gradually, until costing more than a minute. So far, no data is allowed when GPS on.
I am just wondering why smartphones have to use A-GPS for fast fix? I own standalone gps device and hell there is a fix within 30-40sec or less without need of any data connection as on smartphones.
manfifer said:
For my findings, some parameters in the <hal> paragraph of /system/etc/gpsconfig.xml could also be added to enable the offline LTO-AGPS (Need rooting, and pls backup the file)
<hal
acPortName="/dev/ttyS0"
lBaudRate="115200"
cLogEnabled="false"
acLogDirectory="/data/location/com.broadcom.gps/logs/"
acLtoDir="/data/gps/"
ltoFileName="lto2.dat"
acNvStoDir="/data/location/"
acCmdPipeName="/data/location/gpscmd"
bAllowIgnoreOsc="false"
bUseHalLogger="false"
LbsEnable="false"
LbsLocal="true"
LbsSyncLto="true"
LbsSyncCells="true"
/>
Click to expand...
Click to collapse
My general impression is, it really helps.
Before clearing the AGPS data, TTFF takes just a few seconds, althought the last fix has been done >12h before.
But there is one thing, that let me doubt a bit. At least my understanding of lto (that is independend from AGPS) and AGPS seems to be not correct
My observation is the following:
- I start GPSStatus (without GPS and Data connection) and clear AGPS data.
- Close GPS status and wait a minute
- Enable GPSStatus and wait for TTFF - then it takes (lto.dat is around 1 day old) again very very long > 5min .
Do you know when the lto.dat will become active?
To summarize this (this is just what I currently assume):
a) With WLAN on and AGPS the fix is rather fast
b) after disabling WLAN, the once downloaded AGPS data seems to be helpful only for a very short time 1h...6h.
c) with lto-data it seems that the TTFF is fast again, although AGPS data is older than 12h
d) with cleared AGPS data, but with lto it need very long time (700s) for TTFF.
Can you do this test too?
Certainly... thanks for helping me to test this case so far.
I started the test without AGPS for 5 days. I started GPSStatus and cleared AGPS data (I hv to turn GPS ON else it'll be disabled) and turned them off for some minutes. When I start over again, it takes around a minute to have a fix, similar to the 1st fix after restarting the phone. The next fix is done in seconds in the next morning without data i.e. LTO works again.
Before this test, I tried modifying the xml to have the chip generate a log in each first fix after restart (blue words in my 1st post), but it doesn't carry on logging until the next restart. It states "Skip reading lto", imho it just indicates LTO doesn't help in the 1st fix.
Some findings I made...
the /system/bin/location file is responsible to generate LEARN_STORE.BIN
the /system/usr/bin/brcm_guci_drv is the gps driver which gets few parameters mentioned in gpsconfig.xml when the defy starts. Majority of parameters are already mentioned in the driver itself.
the /system/lib/libgps.so file is the run time file which has majority of parameters of location.cfg
location.cfg file has supl server location getting injected to gps for LBS functions. That file also has a fall back sulp server which by default is disabled. The last GPS time of a valid fix is stored in /data/location/location.cfg file
The question still remains unanswered:
Is lto.dat getting downloaded automatically?
Also I tried to get some files from motorola xoom (honeycomb), the driver(dec 2010) and other files mentioned above... but the radio and gps do not initialize with those new versions.
manfifer said:
I started GPSStatus and cleared AGPS data (I hv to turn GPS ON else it'll be disabled) and turned them off for some minutes. When I start over again, it takes around a minute to have a fix, similar to the 1st fix after restarting the phone. The next fix is done in seconds in the next morning without data i.e. LTO works again.
Click to expand...
Click to collapse
You can set GPS Status to be work even with GPS disabled (it just shows a warning than). And so it is possible to clear AGPS data, without enabling GPS.
After that I have problems to get a fix. (Have to test it again, currently heavy rain might influence the test)
This is a bit strange to me. From what I have heard, the AGPS data are injected into the chip. But how can they cleared if the chip is not powered?
It might have some low power standby, but who knows?
manfifer said:
Before this test, I tried modifying the xml to have the chip generate a log in each first fix after restart (blue words in my 1st post), but it doesn't carry on logging until the next restart. It states "Skip reading lto", imho it just indicates LTO doesn't help in the 1st fix.
Click to expand...
Click to collapse
Where does it write a log?
Good information.
Hope the defy can get fast GPS fixed.
starbright_ said:
Where does it write a log?
Click to expand...
Click to collapse
when you edit gpsconfig.xml with following lines, your logs are activated:
cLogEnabled="true"
bPrintToConsole="true"
acLogDirectory="/data/location/logs/"
bUseHalLogger="true"​
I am using this solution now for more than 2 weeks. Never need more than 120s (mostly less than a minute) to get position (without active data connection).
Just once I takes very long - that was the time, as lto.dat was more than 1 week old. Great job!!!!
The download of lto.dat could be optimised. With my fav in browser I need still a view actions:
- open filemanager
- delete old lto (to prevent to get an lto-1.dat, lto-2 dat ...)
- close filemanger
- open browser
- download by push a favorite on startscreen.
Best would be just one button/script, best running automatically every 5 days when WLAN/GPS connection is established.

External BT GPS without Mock Locations

Hi guys,
Since I'm playing Ingress, and the GPS of my One X is getting worse day by day, I've found an old but good BT GPS receiver... I've downloaded some apps for pairing my GPS to the phone, and it actually works! But, I need to allow Mock Locations in the Devs settings... Ingress doesn't start with this option...
Is there a method to bypass the Mock Location setting? I've tried to copy the app in /system/app, but it's the same...
Pipodi93 said:
Hi guys,
Since I'm playing Ingress, and the GPS of my One X is getting worse day by day, I've found an old but good BT GPS receiver... I've downloaded some apps for pairing my GPS to the phone, and it actually works! But, I need to allow Mock Locations in the Devs settings... Ingress doesn't start with this option...
Is there a method to bypass the Mock Location setting? I've tried to copy the app in /system/app, but it's the same...
Click to expand...
Click to collapse
I play ingress as well, and I am pretty sure you are looking to cheat as the newest ingress (1.22.0) balances out the GPS after a few minutes, actually works pretty well on my HTC merge, now GS3. But however since you are rooted, there is no way i have found yet to date that will use a bluetooth GPS without mock locations. My father has a GS3 as well and he doesn't "want google to know where the *heck* he is all the time" so he was using a bluetooth gps. Then the newer update requires Google to know where you are if you want to use google maps (imagine that). So, if you need to, there is a program called "Fake GPS Location". This will have to be moved to your system\app folder with permissions.
I just hope that you are not using this app for cheating as I love the game and enjoy the moving around (hate the fuel consumption) and I know I would not appreciate someone faking their location around my neck of the woods.
FINALLY: It has been noted that google has caught on to this and won't let you move around too fast and can sometimes tell that you are faking. This is done by verifying that your Lat/Long doesn't change frequently/too accurate or is too fast. So keep in mind that it would be best to use your standard GPS until you are at location the "set location" and hope for the best.
Happy Gaming! BTW my Ingress alias is the same as my screen name here. Good luck!
[Galaxy S3 16GB, rooted]
ElectricianMD said:
I play ingress as well, and I am pretty sure you are looking to cheat as the newest ingress (1.22.0) balances out the GPS after a few minutes, actually works pretty well on my HTC merge, now GS3. But however since you are rooted, there is no way i have found yet to date that will use a bluetooth GPS without mock locations. My father has a GS3 as well and he doesn't "want google to know where the *heck* he is all the time" so he was using a bluetooth gps. Then the newer update requires Google to know where you are if you want to use google maps (imagine that). So, if you need to, there is a program called "Fake GPS Location". This will have to be moved to your system\app folder with permissions.
I just hope that you are not using this app for cheating as I love the game and enjoy the moving around (hate the fuel consumption) and I know I would not appreciate someone faking their location around my neck of the woods.
FINALLY: It has been noted that google has caught on to this and won't let you move around too fast and can sometimes tell that you are faking. This is done by verifying that your Lat/Long doesn't change frequently/too accurate or is too fast. So keep in mind that it would be best to use your standard GPS until you are at location the "set location" and hope for the best.
Happy Gaming! BTW my Ingress alias is the same as my screen name here. Good luck!
[Galaxy S3 16GB, rooted]
Click to expand...
Click to collapse
Thanks for the reply mate! I'm not trying to cheat in this game, because I love it soooo much, but my GPS is gettin worse everyday, but now, I tried a dirty fix for the GPS, now it seems to work a little bit better! I don't want to use the Fake GPS app, I'm not a cheater!
Pipodi93 said:
Thanks for the reply mate! I'm not trying to cheat in this game, because I love it soooo much, but my GPS is gettin worse everyday, but now, I tried a dirty fix for the GPS, now it seems to work a little bit better! I don't want to use the Fake GPS app, I'm not a cheater!
Click to expand...
Click to collapse
It works with CM10 (not 10.1):
http://forum.xda-developers.com/showthread.php?t=2137208
I am cheater
I play Ingress as you guys, in my country there are not yet L8 portals and I have little stock of this items, I want to farm some L8 items, I have a Galaxy S4 rooted, I am using Fake GPS, move the file to system/app, grant the permissions, when run ingress(1.25.2) I appear where I want to be but, the is a message Scanner disabled; Location inacurate, any ideas how to fix this?

Modified android.keyboard permissions

So im old fashion...
Basically i believe a keyboard should NOT have power to record audio.. Now i understand some people like this stuff.. But i dont and if i ever need that feature ill download a seperate application.
Anyway, i moved android.keybaord out of /system and modified its permissions to disallow this. I then patched out the error activity that "force closes" since its just a service it comes back no prob.
Is there some kind of altercation this will cause me down the road? I have nandroid backup.
Also how is there a clean way to disable automatic wifi configuration via dhcp when the wifi radio is off? My current solution is messy... Shouldnt wifi radio being disabled stop all wifi communication? Im not to sure how dhcp functions but i see my phone configuring settings to various wifi networks in the logs even when my radio is off. So i did a messy workaround.....
My dear god! Every system apk has godlike permissions... And this might seem obvious to most. But i refuse to accept my wallpaper accessing my camera... And i know this can be used for cool shot! But jees! Im mutilating my phone because of all this!!
Anyway just modded that too... :/
If anyone knows of future problems of this shot please tell me... I have dual boot and on this partition i have near zero bloatware, and zero google apps.
Ok if anyone knows of a complication.
Like extra battery/cpu use or future corruptipn tell me.
Accounts and settings..deleted
Browser....deleted
Keyboard...modded
Bluetooth...deleted
Dialer/everything to do with "cell towers"....deleted (its just a wifi device)
Dsp manager....deleted (autokilling this was a no no)
Android live wallpapers....deleted
All wallpaper stuff...deleted
Calander...modded
Camera....modded
Fingerprint scanner(DONT DELETE)....modded
Gallery....deleted
Everything related to tts and stt....deleted
Btw, when i say ""modded"" i mean i blocked activities or permissions.

Lineage 17 GPS question

Unlike many modern versions of Android, I can find no three-tiered setting for GPS accuracy. I'm looking to set it to "Device Only" but it's either off or on, with a few additional location options but nothing more for GPS.
I'm using lineage 17, the second to last update, on a Samsung Tab 4 and I just want to restrict the device to the system GPS app GPS I've set (but it keeps drifting).
neocortex08 said:
Unlike many modern versions of Android, I can find no three-tiered setting for GPS accuracy. I'm looking to set it to "Device Only" but it's either off or on, with a few additional location options but nothing more for GPS.
I'm using lineage 17, the second to last update, on a Samsung Tab 4 and I just want to restrict the device to the system GPS app GPS I've set (but it keeps drifting).
Click to expand...
Click to collapse
I don't see any android 10 distro with the old settings (high precision/ device only/energy saving)
GApps installed?
kurtn said:
I don't see any android 10 distro with the old settings (high precision/ device only/energy saving)
GApps installed?
Click to expand...
Click to collapse
Yes, Gapps installed and working well (version for Android 10, nano),but I'm not sure google settings would change what would be in the device system settings. I guess I'm just looking for some way to force that missing setting without having to resort to tin foil around the device.
neocortex08 said:
Yes, Gapps installed and working well (version for Android 10, nano),but I'm not sure google settings would change what would be in the device system settings. I guess I'm just looking for some way to force that missing setting without having to reset to tin foil around the device.
Click to expand...
Click to collapse
No matter what settings you change, Google knows your location.
kurtn said:
No matter what settings you change, Google knows your location.
Click to expand...
Click to collapse
I'm not tin-foil-hat-concerned with Google knowing my location; I'm referring to the systemized GPS app I installed to be able to determine the location I set. Which it can currently, and can usually continue to do when I can set the device to take GPS from "device only". In this case it shows me on the map "rubberbanding" between my actual location and the location I've set about 100 feet away. This is because the OS is allowing the device to try and locate its own location.
neocortex08 said:
I'm not tin-foil-hat-concerned with Google knowing my location; I'm referring to the systemized GPS app I installed to be able to determine the location I set. Which it can currently, and can usually continue to do when I can set the device to take GPS from "device only". In this case it shows me on the map "rubberbanding" between my actual location and the location I've set about 100 feet away. This is because the OS is allowing the device to try and locate its own location.
Click to expand...
Click to collapse
Oh, location spoofing
https://f-droid.org/app/com.wesaphzt.privatelocation
GPS drains battery
With previous (before 17) it was possible to set the location service to be switched on, but only use cell data.
When I use the gps device it drains my battery much faster.
Therefore: How can I leave the location service on, but DO NOT USE the gps device in LOS 17 ????
Thanks in advance
Chris
Chris56 said:
How can I leave the location service on, but DO NOT USE the gps device in LOS 17 ????
Click to expand...
Click to collapse
+1
luckysoul777 said:
+1
Click to expand...
Click to collapse
Do you try to spoof your location? And why? What location providers do you have? GApps?
I guess your reply refers to my question.
Maybe I was not clear.
With former LOS versions I was able to explicitly choose whether to use the (battery draining) gps receiver for my location or not.
I have several other sources of location information (gsm cell based and wifi based) usually with less accuracy. But I may prefer theses under certain circumstances because of less power consumption. I Don't use google but microg.
kurtn said:
Do you try to spoof your location? And why? What location providers do you have? GApps?
Click to expand...
Click to collapse
No. I am not trying to spoof anything. I have an automation program called Tasker on my S4. When I was on stock Samsung ROM (5.0.1), I was able to use the "location mode" in Tasker to switch between high accuracy and battery save. If Tasker detected I was running Google Maps, it switched on high accuracy. If not, it switched over to battery save. From what I can tell, high accuracy used GPS + network and battery save used network only.
Now, I'm on LOS 17.1 and battery save would turn on GPS too. It seems the only way to not use GPS is to turn off location mode altogether. This makes me wonder what the differences are between Device Only and Battery Save modes. Since I cannot tell, I am assuming both modes are provided for backward compatibility to Tasker users but the underlining Android 10 doesn't differentiate them.
I am suspecting with Android 10, there are only 3 modes.
* GPS + network
* GPS
* OFF
Thus, if one needs the location service, GPS must be used.
I raised this question elsewhere. Some people actually told me that GPS doesn't consume much power if it's just turned on but not being used, e.g. by Google Maps. I have no way to verify if they are right.
luckysoul777 said:
No. I am not trying to spoof anything. I have an automation program called Tasker on my S4. When I was on stock Samsung ROM (5.0.1), I was able to use the "location mode" in Tasker to switch between high accuracy and battery save. If Tasker detected I was running Google Maps, it switched on high accuracy. If not, it switched over to battery save. From what I can tell, high accuracy used GPS + network and battery save used network only.
Now, I'm on LOS 17.1 and battery save would turn on GPS too. It seems the only way to not use GPS is to turn off location mode altogether. This makes me wonder what the differences are between Device Only and Battery Save modes. Since I cannot tell, I am assuming both modes are provided for backward compatibility to Tasker users but the underlining Android 10 doesn't differentiate them.
I am suspecting with Android 10, there are only 3 modes.
* GPS + network
* GPS
* OFF
Thus, if one needs the location service, GPS must be used.
I raised this question elsewhere. Some people actually told me that GPS doesn't consume much power if it's just turned on but not being used, e.g. by Google Maps. I have no way to verify if they are right.
Click to expand...
Click to collapse
Network location is not part of lineageOS. You can add it with GApps or microG. Have you?
Enabling location does not power the satellite receivers continuously. It really needs battery. The job of your tasker script is done by android 10 automatically. If you suspected apps to drain battery with GPS, disable their location permission!
kurtn said:
Network location is not part of lineageOS. You can add it with GApps or microG. Have you?
!
Click to expand...
Click to collapse
I'm using Gapps, the nano package. Do you know which one comes with network location? I can't tell because this comparison chart doesn't show it for any packages, https://github.com/opengapps/opengapps/wiki/Package-Comparison
kurtn said:
If you suspected apps to drain battery with GPS, disable their location permission!
Click to expand...
Click to collapse
The reason I preferred to keep it on battery save instead of off completely in the old days was that if I ever lost my phone, I wanted to be able to track it. Now with Android 10's mandatory GPS for location service, if I want to disable abusive apps from requesting unnecessary location service, which app should I avoid disabling? Which app is giving out my phone's location if I am tracking it remotely?
Thank you
luckysoul777 said:
I'm using Gapps, the nano package. Do you know which one comes with network location? I can't tell because this comparison chart doesn't show it for any packages, https://github.com/opengapps/opengapps/wiki/Package-Comparison
The reason I preferred to keep it on battery save instead of off completely in the old days was that if I ever lost my phone, I wanted to be able to track it. Now with Android 10's mandatory GPS for location service, if I want to disable abusive apps from requesting unnecessary location service, which app should I avoid disabling? Which app is giving out my phone's location if I am tracking it remotely? Thank you
Click to expand...
Click to collapse
I think the answer to both questions is Google play services. com.google.android.gms It's the mightiest app on your phone. I avoid installing it.
kurtn said:
I think the answer to both questions is Google play services. com.android.google.gms It's the mightiest app on your phone. I avoid installing it.
Click to expand...
Click to collapse
I still see one drawback with very selectively granting apps location service. For example, I do want to grant Chrome location service to facilitate better search. If I'm indoor, wouldn't GPS without a clear view of the sky trying very hard to get a fix and thus burn more power than necessary? With that said, can High Accuracy (GPS + network) actually be more power efficient under Android 10 than Battery Save (GPS only)? This is assuming Chrome would give up on GPS when it can't get a fix and be happy with just network while Battery Save would keep trying to get a fix with GPS. Again, this is just my assumption.

Categories

Resources