Enable GPS in a device owner app
问题 According API documentation a device owner app can modify a few "secure settings" and specially the LOCATION_MODE with the following call : devicePolicyManager.setSecureSetting (ComponentName admin, String setting, String value) Called by profile or device owners to update Settings.Secure settings [...] A device owner can additionally update the following settings: LOCATION_MODE According my understanding the value of LOCATION_MODE is an int (resp. 0 for location disabled, 1 for GPS only, 2