[Q] Default accept “Improve Location Accuracy” popup with GooglePlayServices update - Android Q&A, Help & Troubleshooting

I have an application which is installed in the phones cab drivers use to track the location and distance traveled by the cab. (The phone is rooted and we have all privileges on the phone). In the first implementation of our application we used LocationManager.requestLocationUpdates to get location updates from GPS and Network providers. Since we need to capture every kilometer traveled by the cab we enabled "High Accuracy" mode in location settings.
For two reasons we are willing to move to Fused-location-provider
For some reason (a known bug in android: https://code.google.com/p/android/issues/detail?id=57707) NETWORK_PROVIDER is not providing location updates.
For some reason the devices are suddenly loses GPS fix and are not gaining again until the device reboots.
We observed that FusedLocationProvider is giving better results and are planning to change our application to use FusedLocationProvider. Now the problem is - our devices have an older version of GooglePlayServices which does not have LocationServices. Two options we have are
Use older version of FusedLocationProvider using LocationRequest and LocationClient. Though it is giving good results outdoors(which is our primary requirement), we are not getting location updates(not-at-all) indoors even with wifi enable and with good network signal (This also seems to be a known issue (Location updates not working indoors as claimed by Fusion Location Provider APIs). So, i suspect there could be some bugs in older version of GooglePlayServices and/or FusedLocationProvider which would have been fixed in later versions.
Update GooglePlayServices on all phones (by installing apk over the air) and use LocationServices to get location updates with high accuracy as priority. This implementation is giving location updates even indoors which is what we expect -- Here the problem is when I update GooglePlayServices with an apk when I request location updates in my application it is opening 2 popups one asking for confirmation to improve location accuracy and the other is to turn on ability for google apps to use my location. It is working fine even if I don't accept second popup but if I don't accept the first popup it is changing the location setting to "Device Only" mode (which means only GPS provider is used).
Improve Location Accuracy https://40.media.tumblr.com/53af918884f8ab444ec6352e3e710007/tumblr_npfjbwwnKV1uxztu6o1_540.jpg
Permission to enable google apps to use location
https://40.media.tumblr.com/0eb9a64f55032fe2250a18dd6e0755cc/tumblr_npfjbwwnKV1uxztu6o2_540.jpg
We can not expect all our drivers to accept the popup when it is shown. I would like to know if there is any way I can do "default accept" kind of thing for the first popup so that my devices remain in "High Accuracy" mode.
I found a solution to disable location consent which comes when high accuracy mode is enabled manually in Location Settings as suggested in http://forum.xda-developers.com/galaxy-s2/themes-apps/mod-disable-google-location-consent-t2791431 That solution was working with our old application but with updated GooglePlayServices it is not working. I saw some google-play-services-MOD-apks out there on net so I thought it would be possible to modify the apk, sign it and install it., but when I try to modify the Google play services apk and signit with one click signer and install it is failing with inconsistent certificates error.
Any way of achieving this - like executing a command in device shell , issuing an intent or modifying the GooglePlayServices apk itself is fine with me.
Device Type : MotoE - XT1022
Android Version : 4.4.4
Build Number : KXC21.5-40

Related

GPS apps weren't working - utility that fixed it.

"GPS Status & Toolbox" from the Market is a great little tool. They have an ad supported version and of course you can buy a license.
Every app I have that uses GPS was either sluggish or non-functional.
I ran this and set it to download GPS assistance data and they all work now.
Went from one satelite to six.
I really like this app.
Installed. GPS assistance data can be downloaded on app launch if older than XXhours (enabled in settings). I have mine set to 1 day. A-GPS assistance data can also be manually downloaded from menu - tools.
Thanks for the heads up.
If you use tasker here is how to create a profile that will load GPS Status periodically at a time you specify so that the agps data is always up to date. Profile created by Radimus.

[Q] [Help]FakeGPS, how to get real gps data back?

Hi everyone, I used to have Fake GPS on my Asus Eee Pad TF-201 to fake my gps position, but now after removing it, my tablet's gps doesnt work anymore... it doesn't find any satellite even if I let it search for hours (with GPS Fix, GPS Status and apps like that).
the developer of the app wrote this as solution:
You have two options to do:
1st way:
Enable "Wireless/Network location provider" back
Install "GPS status" app from Google Play
Get a fresh GPS fix
Wait for 24 hours (may be less) until google updates your Wi-Fi access point's location (don't use Fake GPS during this time)
When you've got it and wish to continue using Fake GPS remember to DISABLE "Wireless/Network location provider" to avoid this issue in future
or
2nd way:
Add "_nomap" suffix at the end of your Wi-Fi access point name. E.g.: "JohnSmith" => "JohnSmith_nomap"
After that you can enable "Wireless/Network location provider" back without any future issues
This force google not to use your Wi-Fi access point to determine your location. But you may find that GPS stop working in your premises. So don't use this method unless you understand what you are doing clearly.
But it doesnt seems to work, since I can't get a "fresh GPS fix".
Any solutions? Thank you so much in advance
Fix
This happened to me as well after playing around with fake GPS apps
Simply restarting my phone seemed to solve the problem
Try downloading a GPS app called "Fake GPS Pro". Set a fake location and then click the red stop button.
Setting a location and clicking stop should remove the mock mode and enable your GPS

[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.

Will android collect info about wifi routers even if Google Play Service is disabled?

Hi,
If I'm the wrong forum I apologize and would be happy if directed to the proper one.
Androids newer versions have changed the 'GPS' button into a 'Location' button which now offers 3 options for determining your position (recording wifi router information and comparing it to a google database, using the devices GPS, and doing both) each of those options prompt a disturing and annotying popup each time you turn the GPS on, "advising"/badgering the user into sharing his information with Google.
The only solution which I found to this popup problem (without installing any 3rd party apps or rooting the phone) involves disabling the Google Play Service- that however created something strange which I'm not sure about... If previously the user could choose which way of locating he wants and the device remembered it- now every time the GPS is turned on it is automaticlly goes into "local device&wifi tracking" mode (the first option).
I want to know if a)Does the device indeed monitors that information (even if it can't send it anywhere with google services being disabled)? b) any way to stop it? c)can this default be changed so that only the local GPS chip will be used?
Thank you very much!
up
up
and
away...
really? nobody knows?

Location Reporting option missing - can it be turned off manually?

Hi. I hope I am posting this in the right place. So I have an LG Nexus 4 which has Kitkat 4.4.* and an updated google service apparently. The location reporting option is no longer available, only the history one. Now my problem is that I accidentally agreed to let google report location data in exchange for higher location accuracy. However I cannot revert this agreement anywhere. Each time I turn off/on the Location service, it resets to the highest accuracy, thus also reporting the location. It doesn't use my last setting as default. Is there a way to force default (device only) setting on it somehow? Or revert this option back to "always ask" or something? I can't find almost anything about this on the web. I'm afraid that it sets this into the google account itself, so my only option could be forcing the phone to default to the desired one. Is it even possible?:/
Any help is appreciated!

Categories

Resources