How to set GPS default settings to device-only ? - Xperia Z1 Compact Q&A, Help & Troubleshooting

I dont want location services to ask Google, to seek Wi-Fi around, just work as GPS should work.
I was seeking ,reading etc but found nothing.
For now everytime when I switch GPS on - it asks if I want have my life easier and I have to click No.
I bet there is somewhere an option like:
set.gps.deviceonly = 1

Related

Most Effective/Easiest Way to Disable GPS?

I just wanted a quick way to be able to do this in order to save battery when i dont need it.
i have read/heard that having gps enabled and active doesnt actually use any more battery until it is fed into a maps program (or something similar) which must then use that info to find a location from the internet.
so:
1) does gps really use extra battery when it is enabled/active but not actually being used at the time?
2) what is the best way to terminate the gps connection?
thx, Jim.
somewhere i read that if u go into settings...phone...services...location settings and turn that off (only 911 will use gps) it saves battery...but i havent even updated my vogue to use gps yet so i've only heard this in another thread...i wonder what happens if say u run googlemaps and try using gps while its off, will it enable or just not lock any satelittes?
t0mmyr said:
somewhere i read that if u go into settings...phone...services...location settings and turn that off (only 911 will use gps) it saves battery...but i havent even updated my vogue to use gps yet so i've only heard this in another thread...i wonder what happens if say u run googlemaps and try using gps while its off, will it enable or just not lock any satelittes?
Click to expand...
Click to collapse
ya i have read that about the location setting too, im just not sure if that really truly shuts gps off/terminates it completely....? anyone?
as for if it will work with the location setting disabled i am testing it now and...looks like it wont so..maybe that does the trick? hmm not sure...
alright well after another 10000 hrs of fooling around with roms and gps i have learned a lot. but the thing relative to this thread that i just checked is that you do not need location enabled to use gps. works just dandy w/o it. though i think that is where the agps comes in and therefore can/will probably help a bit to have it on, though it does drain more battery so i think im going to leave mine off for the time being.

Wifi On/Off with TASKER???

Whats the best easiest way for this?? Ive tried a few from searching on google, directs me to droidforums.com but they seem to not work that well. Plus, some people use variable set, using %HOME = 1 and all that. Others go straight to the point of wifi near - on but somehow it doesnt work right. Can anyone help me? i just need a WiFi Near really, to toggle and connect to my HOME. I use Y5 app in the market, which does it but its not always reliable, doesnt always activate it ON/OFF but its exactly what I want but with TASKER, since it seems a hell of a good app!! Thank you.
can you not set up a "in range of" style thing? Like it goes off your GPS when you are near home and it will then turn on wifi.
I don't have the app and just did a quick skim of the website... sorry if this doesn't help

[Q] Define additional locations for Smart settings

Hi all,
I'm experimenting with the Smart settings feature to see if it's something I would use. So far it's working fine, but what I find annoying is that they are too much oriented towards home. Is there a way to define Work location for example, where the sound will change to vibrate and the wifi will turn on and so on.. Somewhere in the forum I noticed that there might be alternatives to the Smart Settings app, but I would prefer to use the build-in features (for now atleast )
Based on the lack of responses I guess that there's no way to add additional locations to the smart settings... Do you know of alternatives, that can be used to turn on/off different settings/applications based on location?

[Guide] Enable working GPS Change no Rubber banding

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

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