0

I have a bootleggers ROM (Android 9 pie) installed on a Motorola Moto E 2015 phone. Can I add a quick settings tile that would toggle the GPS (location) on and off?

I know there is already a "location" tile, built in the rom, that can switch between different location modes (high accuracy, etc.), but I only want to toggle the GPS on and off, not to change the modes. Also, I already solved this by using Tasker and QuickTask app to create a custom tile. And it works, but sometimes it takes some time for it to respond (which is understandable having in mind my phone's specs and the fact that now two additional apps are used to control the tile). I don't know if the delay is caused by QuickTask, by Tasker or by both, and it also depends on how many apps are open at the time that I use the tile.

So, maybe there is a more reliable and quicker solution.

8
  • Just saying, the "location" tile works alright on my devices, though they all have much better HW than your device...
    – Andy Yan
    Jun 18, 2019 at 8:22
  • Are you using a custom rom?
    – mnd
    Jun 18, 2019 at 8:25
  • LineageOS on all my devices.
    – Andy Yan
    Jun 18, 2019 at 10:49
  • And the location tile simply toggles the location between on and off? not switching between "high accuracy", "battery saving" and "sensors only" location modes?
    – mnd
    Jun 18, 2019 at 11:45
  • Advanced location tile was only added recently in LOS, and even then tapping the icon part of the tile would still instantly toggle on/off GPS. This extra question does confuse me a bit though, are you just unsatisfied with the tri-mode behaviour and want to have a tile that just toggles on/off, or does the tile seem to work but GPS isn't actually turned on immediately (as your original question emphasized "delay")?
    – Andy Yan
    Jun 18, 2019 at 14:47

1 Answer 1

0

So an answer to my other similar question helped me find a solution for this one as well.

It is possible to toggle the GPS with an app Automate.

I used the block, called "Location provider set state" from the "Location" category to enable/disable the GPS. And the block, called "Quick Settings tile show" from the "Interface" category to create and control the quick settings tile.

Here's a screenshot of the complete flow I'm using:

Screenshot of an Automate flow for toggling the GPS

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .