android - Default accept "Improve Location Accuracy" popup when Google play services is updated [ROOT] -


i have application installed in phones cab drivers use track location , distance traveled cab. (the phone rooted , have privileges on phone). in first implementation of our application used locationmanager.requestlocationupdates location updates gps , network providers. since need capture every kilometer traveled cab enabled "high accuracy" mode in location settings.

for 2 reasons willing move fused-location-provider

  1. for reason (a known bug in android: https://code.google.com/p/android/issues/detail?id=57707) network_provider not providing location updates.
  2. for reason devices loses gps fix , not gaining again until device reboots.

we observed fusedlocationprovider giving better results , planning change our application use fusedlocationprovider. problem - our devices have older version of googleplayservices not have locationservices. 2 options have are

  1. use older version of fusedlocationprovider using locationrequest , locationclient. though giving results outdoors(which our primary requirement), not getting location updates(not-at-all) indoors wifi enable , network signal (this seems known issue (location updates not working indoors claimed fusion location provider apis). so, suspect there bugs in older version of googleplayservices and/or fusedlocationprovider have been fixed in later versions.

  2. update googleplayservices on phones (by installing apk on air) , use locationservices location updates high accuracy priority. implementation giving location updates indoors expect -- here problem when update googleplayservices apk when request location updates in application opening 2 popups 1 asking confirmation improve location accuracy , other turn on ability google apps use location. working fine if don't accept second popup if don't accept first popup changing location setting "device only" mode (which means gps provider used).

improve location accuracy

permission enable google apps use location

we can not expect our drivers accept popup when shown. know if there way can "default accept" kind of thing first popup devices remain in "high accuracy" mode.

i found solution disable location consent comes when high accuracy mode enabled manually in location settings. solution working our old application updated googleplayservices not working.

any way of achieving - executing command in device shell , issuing intent or modifying googleplayservices apk fine me.


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -