8
Acknowledged

Location Mode action broken on Android 9

The Location Mode action does not work as expected on Android 9. This is due to the new "Location Accuracy" setting which supersedes the three location modes that were used on previous versions on Android and that are still presupposed by Tasker. Details as per this post:

Location Mode action pre-Android 9:

+ Device Only = enables GPS
+ Battery Saving = enables WiFi + cell towers 
+ High Accuracy = enables GPS + WiFi + cell towers

Location Mode action on Android 9 (with "location accuracy" setting **disabled**):

+ Device Only = enables GPS 
+ Battery Saving = does nothing
+ High Accuracy = enables GPS

Location Mode action on Android 9 (with "location accuracy" setting **enabled**):

+ Device Only = enables GPS + WiFi + cell towers
+ Battery Saving = enables GPS + WiFi + cell towers
+ High Accuracy = enables GPS + WiFi + cell towers

---

Hence, on Android 9, I would expect the Location Mode action to: 

1.  Not show the option for "battery saving" since it's no longer possible to achieve. 
2. Toggle the "location accuracy" setting as needed. 

In other words, assuming location is off to begin with:

+ Device Only = enable location + disable "location accuracy" setting if enabled (equals GPS only)
+ Battery Saving = [don't show this option]
+ High Accuracy = enable location + enable "location accuracy" setting if disabled (equals GPS + WiFi + cell towers)

3 replies

VG

I also support to update this. Can't believe not many people use the accuracy feature!

Edit: also in Android 10 for that matter.

WA

I second this.

I also try with custom setting to enable/disable improve location accuracy but no luck.

Setting is

global, assisted_gps_enabled

Thanks. I'll try fixing it as soon as I can