📡Auto GPS On-Off (Root)

by Pete Glass

Version 15 (February 23, 2024)

Download (709 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. 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 * * *

5.0 average rating from 2 reviews

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

Rate and review within the app in the Community section.