Collect device location information
Last updated January 14th, 2025
You can collect location data from Android and Android Management API devices on a regular basis.
Timestamps of location data are relative to the device’s internal clock. They can vary depending on local conditions, network connectivity, and the device’s current timezone.
The Location Settings policy described in this procedure takes precedence over the Collect current location device command.
To set the location collection policy for devices:
-
Create a new profile or begin editing the profile of the device.
-
Go to the Location policy of the target platform.
-
For Location Settings, set whether device users can enable or disable location services on the device, and whether their consent is required:
Value Result Allow user to configure Allows the device user to toggle location services. Allow user to configure and prompt for location accuracy Allows the device user to toggle location services, and apps will prompt the device user for consent to collect precise location data. Force on Turns on location services without prompting the device user. The user can’t change any location settings. Force off Turns off location services without prompting the device user. The user can’t change any location settings. -
Specify a Device Location Collection method:
Value Result Automatic Collect device location data without user consent. This option is available for a fully-managed device. Upon user consent Location data is collected after user consent. For fully managed devices, location data is collected after the device user provides consent. For devices with a work profile, location data is collected only if the device user turns on location services. -
Specify the Time Between Location Collection to set the frequency of data collection. Available values are 30 mins, 1 hour, 2 hours, 4 hours, 12 hours, and 24 hours.
-
Save and assign the profile to the target devices.
This document was updated for the Knox cloud services 25.01 UAT.
On this tab
You can collect location data from Android devices at regular intervals. Device locations can be seen in an interactive map on the Check Location page in the console (see View location data).
Location data timestamps are based on the device’s internal clock, and therefore may vary depending on network connectivity and other device-specific conditions.
Configuring location data collection
You can use the Location Settings policy to configure how (or if) location data is collected from your devices. To do so:
-
Create a new profile or begin editing the profile applied to your target devices.
-
Open the Location Settings policy.
-
In the Location Settings field, set device or work profile controls for whether device users can enable or disable location services, and whether their consent is required. Available values are:
Value Result Allow user to configure Allows the device user to toggle location services. Allow user to configure and prompt for location accuracy Allows the device user to toggle location services. Apps will prompt the device user for consent to collect precise location data. Force on Turns on location services without prompting the device user. The device user can't change any location settings.
Not available for work profile controls.Force off Turns off location services without prompting the device user. The device user can't change any location settings. -
In Allow Collection of Location Data, specify how location data will be collected. Available values are:
Value Result Automatic Collect device location data without user consent.
This option is only available for fully managed devices.Upon user consent Location data is collected after the device user consents.
- For fully managed devices, location data is collected after the device user provides consent.
- For devices with a work profile, location data is collected only if the device user turns on location services.
-
Specify the Time Between Location Collection to set the data collection interval. Available values are:
- 30 mins
- 1 hour
- 2 hours
- 4 hours
- 12 hours
- 24 hours
-
Save and assign the profile to the target devices.
Device users must give the Knox Manage app permission to always collect location data for the Location Settings policy to take effect. Starting with 25.01, this is a two-step process. Refer to the following section for details.
Granting the Knox Manage app permission to collect location data
For Android devices that have the Knox Manage app installed in the work profile, Knox Manage can’t gather location data to store or visualize in the console. Device users can grant the Knox Manage app permission to collect location data as follows:
- Tap the Agree to Location Collecting and Tracking prompt.
- Temporarily allow Knox Manage access to location data by selecting While using the app or Only this time.
- Tap Allow Location Access.
- On the Location permission screen: a. Select Allow all the time to grant Knox Manage uninterrupted access to location data. b. Ensure Use precise location is selected.
If the user selects Don’t allow in the second screen (step 2) two times in a row, the second screen no longer appears and the third screen (step 3) is shown instead.
Is this page helpful?
Thank you for your feedback!