CyanogenMod Location mystery - Android Q&A, Help & Troubleshooting

I recently installed Cyanogenmod (cm-13.0-20160820-SNAPSHOT-ZNH5YAO0J0-bullhead.zip) and deactivate Location.
Installing OSMand~ from F-droid and wanted to load some maps. I discovered that OSMand known my phone location even if "Location" is out.
How it is possible?
Of course wifi is "on" to load the maps, but the android location service should not return anything.
Where am I wrong?

After several days of test I also noticed looking at the battery consumption that OsmAnd~ (v2.4.6 installed from F-droid) has automatically started and GPS is used even if location is deactivated.
I manually stopped OsmAnd, and it started alone again few hours later

Related

How do I disable Google Latitude Service?

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.

Maps using a lot of battery, and you have location services turned off? Try this

When i first got my S4, the battery life was great. Then, all of the sudden, the battery started taking a hit. Maps was easily the #1 culprit every time.
I went in and turned off all of the services in Maps settings thinking that would do it, but it didn't. I started digging into it and noticed Maps was using a service called "Maps FriendService". I thought I wasn't sharing anything with friends, and i was signed out of Latitude.
Luckily, I went into the Layers options on Maps and noticed Latitude was checked. I didn't understand why it would be, since 'share your location with friends' was turned off in options.
I unchecked Latitude from the Layers options, and now my battery is back to normal.
Great tip - thanks for sharing

[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

Location not updating

Running stock rezound ics w/root. For a year or so everything has been working awesome. For the past 2 weeks suddenly I've noticed after about 2-3 days the location stops updating on my device. By this I mean:
- Tasker network location is incorrect (shows the same spot even though I'm 30+ miles away) and will not update
- Weatherbug shows the same location as tasker and never updates
- Google maps works just fine still
I have gps off, google location on, verizon location off. As I've said, everything works find for 2-3 days, then it just stops and never starts updating until I reboot. Any ideas?
This seems to have stopped now for some reason (at least for 2 weeks). The only thing I changed was to uninstall the weather channel app. Weird.

[Q] Location service error and Google dashboard not showing location data.

I have a Huawei Honor X1 (503L version B007) and live in northern Europe.
I noticed that, although I have turned on the settings to share my location, I can't see my device in Google Dashboard.
In the past weeks there is one moment An hour or so at 03:00 AM that my phone shows up in Google dashboard, but that's all.
Also my weather apps do not seem to find the location I am at or take a long time to switch to the correct location (time to check is set to a low interval).
GPS works fine. Internet through WIFI and data connection work fine and calling or receiving calls is no problem either.
I have tried reinstalling some Google play services with a GPS spoofer installed and all that but it doesn't seem to help.
I read about the 503L, because it's meant for the Asian market, has a different frequency for cell towers. Could this be the problem for the apps not being able to locate my device?
Are there Google services I should have installed for this service to work? (I have Playstore, Google now, mail and sync).
Is there a ROM (being) developed that i could use to 'Europeanize' my phone? (base language English, Google apps installed, frequency correction etc.)
I think there are various issues with this phone. I have the 7D-501U and I note that it too does not properly keep the location up to date. It also fails to run various services at startup, despite them being marked as "allow to run at startup". They can also get shut down if started manually. Basically, I think Huawei has been too aggressive with their power saving tricks.

Categories

Resources