- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2023 03:09 PM
I want a json implementation of a policy that will disable wifi for the device
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2023 11:43 PM - edited 09-05-2023 11:45 PM
What do you mean with "i want"?
I mean you can do it via vendors OEM config app (if available) or if you use an MDM look at it'S settings or look at this documentation: https://developers.google.com/android/management/reference/rest/v1/enterprises.policies?hl=en#device...
DeviceConnectivityManagement
Covers controls for device connectivity such as Wi-Fi, USB data access, keyboard/mouse connections, and more.
{ "usbDataAccess": enum (UsbDataAccess), |
usbDataAccess | enum (UsbDataAccess) Controls what files and/or data can be transferred via USB. Supported only on company-owned devices. |
configureWifi | enum (ConfigureWifi) Controls Wi-Fi configuring privileges. Based on the option set, user will have either full or limited or no control in configuring Wi-Fi networks. |
wifiDirectSettings | enum (WifiDirectSettings) Controls configuring and using Wi-Fi direct settings. Supported on company-owned devices running Android 13 and above. |
tetheringSettings | enum (TetheringSettings) Controls tethering settings. Based on the value set, the user is partially or fully disallowed from using different forms of tethering. |
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2023 11:54 PM
If you're completely unfamiliar with building policies in AMAPI, the quickstart is a good place to begin
You're looking to set wifiState:
https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#wifistate
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2023 02:06 PM
wificonfigdisabled prevents configuring wifi, state turns WiFi off. Both have their uses but config disabled is useful if you wish to push down WiFi networks for employees to use without allowing them to connect to their own networks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2023 11:43 PM - edited 09-05-2023 11:45 PM
What do you mean with "i want"?
I mean you can do it via vendors OEM config app (if available) or if you use an MDM look at it'S settings or look at this documentation: https://developers.google.com/android/management/reference/rest/v1/enterprises.policies?hl=en#device...
DeviceConnectivityManagement
Covers controls for device connectivity such as Wi-Fi, USB data access, keyboard/mouse connections, and more.
{ "usbDataAccess": enum (UsbDataAccess), |
usbDataAccess | enum (UsbDataAccess) Controls what files and/or data can be transferred via USB. Supported only on company-owned devices. |
configureWifi | enum (ConfigureWifi) Controls Wi-Fi configuring privileges. Based on the option set, user will have either full or limited or no control in configuring Wi-Fi networks. |
wifiDirectSettings | enum (WifiDirectSettings) Controls configuring and using Wi-Fi direct settings. Supported on company-owned devices running Android 13 and above. |
tetheringSettings | enum (TetheringSettings) Controls tethering settings. Based on the value set, the user is partially or fully disallowed from using different forms of tethering. |
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-05-2023 11:54 PM
If you're completely unfamiliar with building policies in AMAPI, the quickstart is a good place to begin
You're looking to set wifiState:
https://developers.google.com/android/management/reference/rest/v1/enterprises.policies#wifistate
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2023 12:51 AM
Hm with disable i thought maybe more like he really want to disable it and not turning it off but now he has both possibilitys linked 😉
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2023 01:38 PM
Thankyou for linking me to the REST Resource. I wanted to create a policy for disabling WIFI permanently for my organizations devices and I achieved it by setting wifiConfigDisabled to true
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2023 02:06 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2023 09:21 AM - edited 09-07-2023 09:21 AM
Indeed ! I'm implementing this policy for security reasons so that sensitive data on the devices is not deliberately or inadvertantly leaked through an internet connection.
However, a loophole is that data can also be transferred via USB connection. Is there a way to enable USB data transfer only for a set of allowed MAC address (i.e company servers) rather than it being universal ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2023 09:36 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-06-2023 07:04 AM
Hey @ashjaymohsin, just @ mentioning you here in case you missed the replies from @Moombas and @jasonbayton. 😀 Thanks
- Android device management - Unable to enroll: DEVICE_MODE_QUARANTINED in Admin discussions
- Smart watch notifications for work profile are being blocked by Android Management Policy in Admin discussions
- The open platform advantage: understanding Android open source in Admin resources
- Application assignment in Admin discussions
- [Video Guide] Manage Android apps for work with Managed Google Play in Admin resources