How do I disable Google Latitude Service? - AT&T Samsung Galaxy S II SGH-I777

I recently installed Semi V17 and an updated BetterBatteryStats version. With that combination, I noticed that my device was never able to move into deep sleep due to constant location updates, thus causing battery drain. I think I've narrowed down the culprit for my battery drain, however, I'm not sure I know how to resolve it. It appears to be the Latitude support in Google Maps. I'm not enrolled in Latitude, but based on "adb shell dumpsys" output, it appears that it is running and requesting location updates constantly. The following is the registration for location updates from dumpsys. Notice that it is specifying no minimum time or distance, which implies (to me) constant updates.
Code:
Receiver{419e7ad0 Listener [email protected]}mUpdateRecords: {passive=UpdateRecord{421e75a0 mProvider: passive mUid: 10084}}:
passive:
UpdateRecord{421e75a0 mProvider: passive mUid: 10084}
mProvider=passive mReceiver=Receiver{419e7ad0 Listener [email protected]}mUpdateRecords: {passive=UpdateRecord{421e75a0 mProvider: passive mUid: 10084}}
mMinTime=0 mMinDistance=0.0
mSingleShot=false
mUid=10084
Dumpsys identifies the 10084 process as the LocationFriendService:
Code:
*APP* UID 10084 ProcessRecord{41af23e8 13037:com.google.android.apps.maps:LocationFriendService/10084}
class=com.google.googlenav.android.AndroidGmmApplication
Does anyone have any idea how to disable this service without completely freezing/removing the Google Maps application?
Thanks,
Craig

Have you turned off automatic location detection in the Latitude/Maps settings? You can completely disable it or set so it asks you to update it manually.
Also if you have Facebook installed make sure you disable location reporting in your Facebook app settings. That was a big one for me.
One other thing to check is any widgets that use location detection (like weather widgets).

In settings... same place where you enable the GPS.

Strangely, I had to click through to enable Latitude before I could get to the settings to control Latitude and really shut it off. I've now turned off everything I could find related to Latitude and will see if that "sticks". Previously, it would seem to work for some period of time and then all of the sudden start running like crazy, so until I've run like this for at least 24 hours I'm just not going to know if I've truly managed to disable this service.

Next time, check here first.http://www.chucknorrisfacts.com/
Sent from my SAMSUNG-SGH-I777 using Tapatalk 2

csetera said:
Strangely, I had to click through to enable Latitude before I could get to the settings to control Latitude and really shut it off. I've now turned off everything I could find related to Latitude and will see if that "sticks". Previously, it would seem to work for some period of time and then all of the sudden start running like crazy, so until I've run like this for at least 24 hours I'm just not going to know if I've truly managed to disable this service.
Click to expand...
Click to collapse
It appears like disabling all things Latitude has cured my battery drain. If only they hadn't hidden those settings, it would have been way more obvious. Thanks for the tip.

Related

[Q] GPS only in use when the icon displays?

I've always been under the assumption that it's best to turn GPS entirely off when I don't need it to help save on battery life. I was just reading a thread on another site and it gave me the impression that if it's turned on and the icon is not showing on the status bar, like it does when I'm using Maps, then it's not really tying up any CPU time and draining the battery.
Would that be accurate?
Im pretty sure its true, if maps isn't running, GPS doesnt need to fetch data therefore power isn't used by the GPS radio to fetch coodinates
Sent from my LG-P500 using XDA App
Rores said:
Im pretty sure its true, if maps isn't running, GPS doesnt need to fetch data therefore power isn't used by the GPS radio to fetch coodinates
Sent from my LG-P500 using XDA App
Click to expand...
Click to collapse
Yup, although sometimes if GPS is enabled, an app may turn it on when it really doesn't need to, which can sometimes cause battery drain.
Explicitly turning it off prevents this.
Yeah when I think about it, unlike wifi which can always be looking for a connection and BT will also be listening for a device to pair with, GPS doesn't really seem to 'look' for anything, it simply pulls data down upon request.
Do you guys specifically turn it off when it's not in use and by doing it, have you honestly noticed much of a difference?
I'm getting to the point where I'm micromanaging my phone too much and need to step back and just let the phone... be a phone.
i have a tasker profile set up that only turns on the GPS for the apps that i have it configured for, then turns GPS off after the app closes....
So I just noticed in BBS under partial wakelocks that I have 52mins worth of 'NetworkLocationLocator' with a count of 740. I've been having some odd battery drain today and no clue why. I've also noticed that Maps is in 'Running Services' and sometimes there are 2 of them and they can't be stopped.
I've opened Maps only after noticing this and GPS has been off. I run a weather widget but location is turned off. Nothing else I have installed uses any type of location feature (that I know of).
Any ideas what's causing this 52mins of wakelocks?
Kadin said:
So I just noticed in BBS under partial wakelocks that I have 52mins worth of 'NetworkLocationLocator' with a count of 740. I've been having some odd battery drain today and no clue why. I've also noticed that Maps is in 'Running Services' and sometimes there are 2 of them and they can't be stopped.
I've opened Maps only after noticing this and GPS has been off. I run a weather widget but location is turned off. Nothing else I have installed uses any type of location feature (that I know of).
Any ideas what's causing this 52mins of wakelocks?
Click to expand...
Click to collapse
Did you accidentally turned on Latitude?
Nope, never used it. Not even sure what its for. Lol
Sent from my SAMSUNG-SGH-I777 using xda premium
It is in gmaps. Once you sigbed in, it will use network location all the time. And there is no obvious way to sign out until you dig deep into the menus.
What it does is broadcasting your location to your friend 24/7.
Sent from my SAMSUNG-SGH-I777 using XDA App
dig deep into which menus? i dont seem to have any options in google maps itself, besides a couple map cache options, and labs..
Some where in those menu trees, probably related to latitude, there its a button to sign out the latitude. Google made it so difficult to stop latitude to force you keep using it.
Edit: on latitude screen, menu-> settings. On top of the settings screen, trap on the text 'sign out latitude'.
Sent from my SAMSUNG-SGH-I777 using XDA App
oh, i never use latitude..
i did start it up just to verify i was signed out like you said..
i still have a maps service started that when killed, comes right back..
gps is off, all location based stuff is off, i kill maps service, it comes right back..
i thought maybe this was keeping maps service open, must be something else.

NetworkLocationLocator draining battery but Latitude switched off??

Over the last few days my battery has been draining faster than usual. I've just noticed that the NetworkLocationLocator Google service is at the top of the BetterBatteryStats list, registering 196 partial wakelocks in 2:37 minutes - 13m 4s.
The problem is that I have location tracking turned off in Google Maps (location reporting, location sharing, location history, automatic check-ins and check-in notifications).
Why is the NetworkLocationLocator service draining my battery when I have location settings turned off?
check under location services in settings
Skickat från min GT-I9300 via Tapatalk 2
I had the same issue. Just disconnect the use networks WiFi on settings location and it will solve this problem. I was experience this on stock ics with stock kernel.
Sent from my GT-I9300 using Tapatalk 2
Google now wastes a lot of battery using the process you've mentioned too.
Best way would be as suggested above, uncheck all location related boxes under location settings
Sent from my GT-I9300 using xda premium
Is there any other way to get rid of the frequent NetworkLocationLocator wakelocks than disabling Wifi and Network based Location. I belive the culprit might be an app that asks the service for location and disabling that app (or the location function inside the app) could solve the problem.
Google now is disabled and I don't have Maps installed. Altough I'm having ~2.5 wakelocks per minute. Ideed, disabling network based location solves the issue, but obviously this will prevent some apps that rationally use location from providing 100% functionality (eg. weather apps).
having the same wake lock issues myself since JB 4.1.2 update on my S2, fed up of it taking the battery now. why it polls so often is beyond me.
Turn off location using wireless network under location services setting
Sent from my GT-I9300 using xda premium
xcly said:
Turn off location using wireless network under location services setting
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
That's a workaround. One might need Network Location, so there has to be a real fix of the issue.
xcly said:
Turn off location using wireless network under location services setting
Sent from my GT-I9300 using xda premium
Click to expand...
Click to collapse
_polimorph_ said:
That's a workaround. One might need Network Location, so there has to be a real fix of the issue.
Click to expand...
Click to collapse
yep i turned it off and within an hour i used an app that needed it!
Is there likely to be a full fix to this problem? I have the same kind of issue - I turn off the Wifi/Network option in location options so that Google doesnt poll my location every x minutes, but I find this gives me options with Facebook. Instead of Facebook getting its location in a couple of seconds by asking Google to get it, Facebook instead initiates the GPS in the phone and takes a few minutes to get a lock because i'm inside the house. I'm running cm10.1 not stock btw.
Same issue - SGS2
Hi,
I had exactly the same problem on my Galaxy S2 with MIUI official:
NetworkLocationLocator wakelock from Google Services(not maps, its important!) was up at 8-20% of the time.
I did some research.
First of all, I did full wipe. Wakelock arrived on second reboot after adding google account, so installed apps are not the problem.
I found an opinion that mysterious Google Checkin Service was behind that wakelock, so I disabled that stuff completely by modifying corresponding values in GServices DB. Wakelock was still there.
I am stuck completely, at this point I have no idea what might cause this.
On another rom, 4.2 Paranoid Android, it's all fine, I get only 1-3% of NetworkLocationLocator from GMaps, but thats another story.
If anyone has any ideas - you are welcome.
If there are another MIUI users here - check your battery stats please(stock android battery graph is ok). Do you have 'barcode' on awake graph? If yes - than we have really global problem here...
Bump
this is terrible.
_polimorph_ said:
Is there any other way to get rid of the frequent NetworkLocationLocator wakelocks than disabling Wifi and Network based Location. I belive the culprit might be an app that asks the service for location and disabling that app (or the location function inside the app) could solve the problem.
Google now is disabled and I don't have Maps installed. Altough I'm having ~2.5 wakelocks per minute. Ideed, disabling network based location solves the issue, but obviously this will prevent some apps that rationally use location from providing 100% functionality (eg. weather apps).
Click to expand...
Click to collapse
have you tried google settings -> location -> off
I had the google services issue on M1 and M2.
This work around fixes it for me, only had to do it once on M2.
I reboot into recovery (I'm running clockwork recovery) flash gapps (3/1) reboot.
I DO NOT wipe cache or davalink.
Seems like Google services does it after a new flash but I never really saw a reliable pattern myself.
I'm having the best battery life on M2!
Hope it helps? Let me know.
Bump
This is a horrible issue that is still very present on latest nightlies, and has been for around two months, as of this posting.
Completely disabling location services is not a solution, and it is not a work-around.
We need some ability to trace the source of these location requests. There is no useful information in the logcat.
Location services should be providing some of its own statistics on which applications are polling for location.
seems to have dropped 90% since the google maps update!

[Q] Location services on or off?

What's the difference between having location services on or off? I know this might be a dumb question, but the little compass icon seems to always be in the notification bar on my DNA. I can't remember if it was always like that or if it only started after downloading Tasker last week. I tried uninstalling Tasker, but it's still there all the time. I know I can turn it off in settings, but should I? Do I need Verizon, Standalone, and Google location services?
Also- lately Maps has been showing up at the top of the list for battery usage. Every day it shows like 60-70% usage with the next closest in the teens. I haven't used maps a lot, and it hasn't really seemed to affect battery life, but I'm wondering if this is related to location services. Has anyone else seen this? Thanks!
For me personally, when I left Verizon Location Services on my battery drained extremely fast and the little location services icon showed that it was active (three lines coming off the right side). When I turned Verizon services off and disabled location updating in Maps my battery increased enormously and the icon no longer showed activity constantly.
I now leave only Google location services on and manually turn on GPS when I need it. No issues since.
Sent from my HTC6435LVW
Thrillhouse847 said:
For me personally, when I left Verizon Location Services on my battery drained extremely fast and the little location services icon showed that it was active (three lines coming off the right side). When I turned Verizon services off and disabled location updating in Maps my battery increased enormously and the icon no longer showed activity constantly.
I now leave only Google location services on and manually turn on GPS when I need it. No issues since.
Sent from my HTC6435LVW
Click to expand...
Click to collapse
My battery actually hasn't been draining all that fast, it just seems to show that "maps" uses 60-70% of the battery even in a day where I don't open the application once. I leave gps on but as others have mentioned the phone only uses it when it needs to (evidenced by the satellite icon in the notification bar). I have had gps on since I got the phone but in the first few weeks maps showed as using more like 5-10% of the battery. Can anyone explain what I lose by turning off each of Verizon, Google and Standalone location services?
Standalone is for actual GPS navigation I believe. Where as Google location service is used for getting location for weather and whatnot. I leave Google on all the time and only use standalone for navigation. But I may be completely wrong lol
Sent from my HTC6435LVW using Tapatalk 2
DbZ Gokuu said:
Standalone is for actual GPS navigation I believe. Where as Google location service is used for getting location for weather and whatnot. I leave Google on all the time and only use standalone for navigation. But I may be completely wrong lol
Sent from my HTC6435LVW using Tapatalk 2
Click to expand...
Click to collapse
Nope, you're correct.
I had issues with the weather widget showing incorrect location if Verizon Services is enabled. I only use Google services and enable stand alone for navigation use.
qwertpiratej said:
My battery actually hasn't been draining all that fast, it just seems to show that "maps" uses 60-70% of the battery even in a day where I don't open the application once. I leave gps on but as others have mentioned the phone only uses it when it needs to (evidenced by the satellite icon in the notification bar). I have had gps on since I got the phone but in the first few weeks maps showed as using more like 5-10% of the battery. Can anyone explain what I lose by turning off each of Verizon, Google and Standalone location services?
Click to expand...
Click to collapse
I figured it out... leaving NFC enabled all the time for some reason shows up as Maps usage in battery life. I turned NFC off, and the next day Maps was back down to around 5%.
qwertpiratej said:
I figured it out... leaving NFC enabled all the time for some reason shows up as Maps usage in battery life. I turned NFC off, and the next day Maps was back down to around 5%.
Click to expand...
Click to collapse
qwertpiratej said:
My battery actually hasn't been draining all that fast, it just seems to show that "maps" uses 60-70% of the battery even in a day where I don't open the application once. I leave gps on but as others have mentioned the phone only uses it when it needs to (evidenced by the satellite icon in the notification bar). I have had gps on since I got the phone but in the first few weeks maps showed as using more like 5-10% of the battery. Can anyone explain what I lose by turning off each of Verizon, Google and Standalone location services?
Click to expand...
Click to collapse
I do not use NFC at all, It has been disabled since day 1. I have noticed my MAPS taking up 40-50% of the battery and I never use it. The only thing I enable is googles location services. and when I do use maps, I turn GPS on manually and then off when finished.
My FIX:
When I opened up MAPS, I went into settings > location settings and set location reporting to do not update your location.
This knocked MAPS off my battery usage list

[Q] nlpwakelock "Use wireless networks"

Hi,
Whenever the "Use wireless networks" setting is on under "Location services", I get constant "nlpwakelocks" and battery drain.
However, I see that this was supposidely fixed by Google: http://www.androidpolice.com/2013/05/29/download-latest-google-play-store-4-1-10/ (my version is 4.3.11).
Does anyone else have this issue? I've only started looking into wakelocks and have had the phone 5 months and have never had better battery than with this option turned off. Yes the simple answer is "turn it off", but I find I can get location locks quicker with it on, and also my phone can locate me when indoors.
I use Google+ location services so I can locate trusted friends (and they can locate me), and previously Google Latitude, but surely they shouldn't be constantly requesting my location and Android should prevent this in someway?
Cheers.
I too suffered this issue (several times on different roms). Nlpwakelocks appeared in an insanely high abundance (several thousand wakelocks in a single day).
My first fix consisted of uninstalling all updates of google play, google services framework and google play services, clearing caches and deleting the data of the before mentioned in Appmanager, then do a reboot and re-install the updates again. Magically, the number of wakelocks dropped to a quite acceptable level. It still was the major cause of wakelocks, but it didn't drain the battery nearly as much as before. Since then, I had the "Use wireless networks" setting enabled without heavy battery drain. I could happily live with this result.
However, since I updated to 4.3 (CM 10.2), there's no longer a button to uninstall updates of those services in AppManager. Luckily though, clearing caches and data then reboot seems to suffice now.
The only caveeat seems to be google maps. Since the update, you need to be logged in to your google account to see your favorite places in google maps. Unfortunately, maps then begins to poll your location every few minutes, thus raising nlpwakelocks to an alarming level again.
Since I've not found a workaround for this yet, I always logout of google maps after use and login again when needed. Not very comfortable, but this way I'm still able to use Google Now while experiencing an acceptable battery life.
Hope this helps!
Here's the fix, if you're rooted: http://forum.xda-developers.com/xposed/modules/mod-nlpunbounce-reduce-nlp-wakelocks-t2853874

Can anyone help a Tasker noob?

I finally decided that I was missing out by not having Tasker automate my life for me, so bought it as well as the full version of Secure Settings.
I've managed a couple of simple Profiles, but I'm having trouble with other stuff I want to do - most likely because I just don't understand.
A. Aim: When Maps is launched, turn on "WiFi" and "Location Mode High Accuracy"
Profile: Near Work
State: Cell Near (work)
Tasks: (1) WiFi On (2) Secure Settings, Location Mode/High Accuracy
This almost works - opening Maps carries out the expected tasks, and when I exit maps WiFi turns off (desired behaviour). However, Location does not switch off again, it stays on switched on, and I don't understand why.
I'd like Location to switch off again when I exit Maps.
B. Aim: Switch on WiFi and Location Mode/Battery Saving and Location Reporting and Location History once an hour, for one minute, and allow (force?) Google to poll my location for a short period so that if I ever lose my phone and it is switched off, there will be a trail of sorts (without having to leave all these services switched on all the time,which canes my battery).
Profile: Manage Location Services
State: Time - I don't know how I can make the profile active for one minute, every hour
Tasks: (1) WiFi On
Then I get lost - I can't see how to enable Location Reporting which is in Location Services in my phone settings. Also I don't know if doing that would immediately prompt the phone to contact Google and report its location (I assume it would).
C: Aim: Between 10pm-9am, if at home, then silence phone and switch off notification light
State: Cell near (home)
This is as far as I've got. I don't understand how to use time as a defining factor. Nor do I know how to switch off the notification light.
If anyone could help then I'd be very grateful!
Also, after reading a lot of Tasker walkthroughs/userguides (and not understanding a lot of them) I am none the wiser as to how to set up an 'exit task'?
There are a lot of issues regarding Secure Settings, I don't recommend it. The only way to turn on/off gps (and the way I'd do it personally) is use root shell to navigate through the settings or better yet set Status Bar-Open and using a Shell-"input tap x y" Use Root: Yes to tap on the GPS quick setting widget.
To add an exit task simply long press on the action part of your profile (on the main screen) and the options will appear. You can also add additional State, Time or Action matchings to your one profile, by long-pressing on the left part!
<<< Please say thanks if I was of help.
Sent from my SCH-I605 using xda app-developers app

Categories

Resources