📡Auto GPS On-Off

by Pete Glass

Version 1 (June 6, 2017)

Download (32 downloads)

Requires root. Automatically makes sure the GPS is enabled on your device any time apps that use the gps are open in the foreground. If the GPS is disabled on your device, the flow will automatically enable it then disable the GPS 30 seconds after the app is no longer in the foreground. Device also logs any apps in the foreground immediately after the GPS is enabled by the flow, auto dismisses a Google Maps notification on launch telling you to enable the location service, and checks the GPS daily at around 4:45 AM to see if the GPS is enabled and disables it if it is enabled but is not in use. Unfortunately this flow will not auto enable the location service for most Automate flows that require the location service to be enabled since they are not active in the foreground when requesting location data so make sure you modify any flows you have that require location data to enable and disable the location service as needed within the flows.

Modify the AppList variable block (block 73), adding the package names you need to the block. Several apps that require GPS, like Google Maps, have already been added. For any additional apps being added, make sure to follow the format that currently exists in this block.

The new version of Google Play Services displays a dialog each time the location service is turned off but you can disable this dialog by disabling the com.google.android.location.util.PreferenceService service in Google Play Services using an app that can disable services.

Try my "Package & Activity Class Logger" linked below if you have difficulty determining the name of a particular package.
http://llamalab.com/automate/community/flows/4713

* * * Created by Pete Glass * * *

4.5 average rating from 2 reviews

5 stars
1
4 stars
1
3 stars
0
2 stars
0
1 star
0
Warnings
0

Reviews and ratings can be submitted in the app.