Closed 0xmachos closed 6 years ago
sudo ifconfig awdl0 down
This brings down the Apple Wireless Direct Link (AWDL) interface which is also used for AirDrop.
This doesn't persist over reboots and I'm unsure if the interface can be brought back up by the system.
The key DisableAirDrop
in domain com.apple.NetworkBrowser
does work to disable AirDrop. This only takes effect after sharingd
has been restarted with sudo killall -HUP sharingd
.
This was addressed in c304a79ea39a60143b0158042a68664793f31f0c.
Check command
defaults read com.apple.NetworkBrowser DisableAirDrop | grep 1
returnsThe domain/default pair of (com.apple.NetworkBrowser, DisableAirDrop) does not exist
.defaults read com.apple.NetworkBrowser
returnsDomain com.apple.NetworkBrowser does not exist
.defaults read | grep "AirDrop"
returnsNone of those values look useful for disabling/ enabling AirDrop.