Navigation Apps Auto turn on/off GPS
Moderator: Martin
Re: Navigation Apps Auto turn on/off GPS
For a long time I have been using a similar activity written by me and everything is ok except when during the navigation it will be necessary to temporarily close the navigation window, for example Google Maps when you need to enter something in the search engine, Automagica is activated and the location and access to the Internet are disconnected. How to achieve a delay of 10-20 seconds?
Re: Navigation Apps Auto turn on/off GPS
I don't quite understand what you want to achieve. If you need delay, add sleep for 10-20 seconds, before proceeding to disconnect the location and internet.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
-
- Posts: 69
- Joined: 14 Feb 2019 15:04
Re: Navigation Apps Auto turn on/off GPS
Unfortunately, none of these methods work anymore with Android v9, to toggle location services...
- Attachments
-
- IMG_20190227_015603.jpg (129.12 KiB) Viewed 31320 times
-
- IMG_20190227_015618.jpg (101.31 KiB) Viewed 31320 times
Re: Navigation Apps Auto turn on/off GPS
Yes, the non root method seems not working anymore. I have to use Set GPS State on/off to achieve the location mode with high accuracy. Other method is to toggle the quick setting using Control UI, which have some UI distraction.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Re: Navigation Apps Auto turn on/off GPS
Hi. Fortunately I think it is still possible to toggle location on and off without root on pie.
I was testing the premium version (trial) and after playing around a bit and realizing that it wouldn't work on samsung pie not rooted (while it does work on other automation app that I'm migrating from) I decided to read the contextual help. Followed the dev's indications and it worked perfectly!
Purchased premium version instantly!
So, to turn location on, instead of setting "location_providers_allowed" to "gps,network" in one step, do it in two steps: set it to "+gps" first and then to "+network". To turn it off set it to "-gps" and then "-network".
Please check if it works this way on your devices.
I was testing the premium version (trial) and after playing around a bit and realizing that it wouldn't work on samsung pie not rooted (while it does work on other automation app that I'm migrating from) I decided to read the contextual help. Followed the dev's indications and it worked perfectly!
Purchased premium version instantly!
So, to turn location on, instead of setting "location_providers_allowed" to "gps,network" in one step, do it in two steps: set it to "+gps" first and then to "+network". To turn it off set it to "-gps" and then "-network".
Please check if it works this way on your devices.
- Attachments
-
- Screenshot_20190228-164102.jpg (175.98 KiB) Viewed 31276 times
Re: Navigation Apps Auto turn on/off GPS
@pgrilo : Wow, I didn't know that. Many thanks. It works, without root. I should take some time to reread the documentation again. Maybe there are a lot of other system setting also have the same behaviour. I should try them out then.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
-
- Posts: 69
- Joined: 14 Feb 2019 15:04
Re: Navigation Apps Auto turn on/off GPS
Awesome! Thank you, works just fine here as well!
Re: Navigation Apps Auto turn on/off GPS
Wow, a new discovery! Thanks, @pgrilo.
Does it mean now we have to add 2 actions in series: the first is for turning on GPS and another is for turning on network?
Does it mean now we have to add 2 actions in series: the first is for turning on GPS and another is for turning on network?
Re: Navigation Apps Auto turn on/off GPS
@Desmanto you might have forgot it as it was already discussed in page 2 http://automagic4android.com/forum/view ... =10#p18708
Re: Navigation Apps Auto turn on/off GPS
@tphg : yes, two action in series, if you have location completely off before. I always turn on location with battery saving, so network value is there already. I only use -gps and +gps, only single action.
@anuraag: Hahaha, I already forgot that. Last time I test it at old phone, set the value at once, it still works. That's why I don't give it much thought. Didn't know that was the culprit after upgrade my phone.
@anuraag: Hahaha, I already forgot that. Last time I test it at old phone, set the value at once, it still works. That's why I don't give it much thought. Didn't know that was the culprit after upgrade my phone.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.