macOS-Defaults icon indicating copy to clipboard operation
macOS-Defaults copied to clipboard

Handoff (aka Continuity)

Open kevinSuttle opened this issue 10 years ago • 2 comments

general

The one thing I've found is that you can at least see if it's supported on your Mac. system_profiler SPBluetoothDataType | grep LMP (via LifeHacker)

kevinSuttle avatar Oct 07 '15 03:10 kevinSuttle

I took the approch from here and simplified it.

uuid=$(/usr/sbin/system_profiler SPHardwareDataType | grep "Hardware UUID" | cut -c22-57)
defaults write ~/Library/Preferences/ByHost/com.apple.coreservices.useractivityd.$uuid.plist ActivityReceivingAllowed 0
defaults write ~/Library/Preferences/ByHost/com.apple.coreservices.useractivityd.$uuid.plist ActivityAdvertisingAllowed 0

However, the cut hack isn't really robust, we should find a more flexible solution.

derhuerst avatar Oct 09 '15 15:10 derhuerst

A more robust solution, taken from here.

uuid=$(system_profiler SPHardwareDataType | awk '/UUID/ { print $3; }')

derhuerst avatar Oct 09 '15 15:10 derhuerst