# How to disable users from setting up mock locations on Android devices?

Devices running Android 6.0 and above can spoof its GPS locations to specify a custom location different from their current location. The employees using company-owned devices for work can mislead their administrators by setting up mock locations and giving them false information about their current location. Hexnode UEM enables you to restrict users from setting up mock locations on devices.

 Note:- Supports [Samsung Knox](https://www.samsungknox.com/en/knox-platform/supported-devices), [LG GATE](https://www.lg.com/us/business/enterprise-mobility/products), and [Kyocera business phones](https://kyoceramobile.com/business/) only.

 

To disable users from mocking locations on devices,

[ ![Disable mock location under location settings](https://cdn.hexnode.com/mobile-device-management/help/wp-content/uploads/2023/04/Disable-mock-location.png "Disable mock location")](https://cdn.hexnode.com/mobile-device-management/help/wp-content/uploads/2023/04/Disable-mock-location.png)

1. Log into your Hexnode UEM portal. Navigate to the **Policies** tab. Click on **New Policy** to create a new one or click on any policy name to edit an existing one. Enter the *Policy Name* and *Description* in the provided fields.
2. Select **Android** > **Restrictions** > **Basic**. Click on **Configure** button.
3. Under *Allow Location Settings*, uncheck **Mock location** option to restrict users from turning on mock locations on their devices.
4. Navigate to **Policy Targets** > **+ Add Devices**. Select the required device(s) with which the policy needs to be associated. Click **OK**.
5. Click **Save**.

 Note:- On [Android Enterprise Device Owner](https://www.hexnode.com/mobile-device-management/help/how-to-enroll-a-device-in-android-in-the-enterprise-as-device-owner-using-hexnode-mdm/) mode, unchecking this option will completely disable the Developer options on the device.