📅  最后修改于: 2022-03-11 14:55:59.409000             🧑  作者: Mango
DevicePolicyManagerdpm = (DevicePolicyManager) context.getSystemService(Context.DEVICE_POLICY_SERVICE);
dpm.setSecureSetting(mDeviceAdmin, Settings.Secure.LOCATION_MODE, String.valueOf(Settings.Secure.LOCATION_MODE_HIGH_ACCURACY));