Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Stop Remote/Bluetooth media buttons from opening iTunes / trying to open iTunes.
# This will work *only* on build 13F1911 OS X 10.9.5, aka the last version of Mavericks Apple ever released. (If you haven't installed all available security updates, you are not on build 13F1911 even if the version number is 10.9.5). It will also not work in later versions of OS X. (Nothing bad will happen if you use this on the wrong OS, it just won't do anything!)
if [ $(shasum /System/Library/CoreServices/rcd.app/Contents/MacOS/rcd | awk '$0=$1') = "fffb4d6ec495a1382364f73c6a0f45ca4f42c563" ]; then
RCDPATCH=`mktemp -t rcd-patch`
echo QlNESUZGNDBcAAAAAAAAAKUDAAAAAAAAQCUBAAAAAABCWmg5MUFZJlNZYDMG+AAAJv9D+FGCAABABAAAEEBAIABACAACQAAAAyAAIZNUyPQJibUKBpoZGTE4qJ7vbGHhqkkDl99EjLDUq6+7Qk1EhER+LuSKcKEgwGYN8EJaaDkxQVkmU1kWxGS8AAA8////3eLFYmBbiGzXbb5APARSwf////B2d//Cxn/9yudf78ADDNDLgl26iJqNEyjIeUNDTQAAAANAaNBoBoA0GnqNAaNAAAAAAeoyDag1DUpsoGQGgA0AaGmgAAAAAABkaAAADIAAAPUPUGgEiiTRMmUeoGTQGgDRppoANNDQaANAGmjTQA0aAAAAGmQAPQmgklEap6ntRPyk9I8ptT1GRoZPSZNAA0MIwgGRkZGEABoMgMTTTRk0YRkwCPwd9ZYipTAJcujCuaSYdXpf3T6/r3vHiYNdTNwGAMYOdyEopjwEJFiiji4FzAyg/PMLTl0MVywhma8oQ4USDaaLNgFkwItAfloSSIsQvXIgCiwSsGKGNr48ZmCyQcwt8IJnMOB4QDu16hJBQHRatY58ZJrma4loXO1dligFuBJJXzVVVWh6VMx37gCQBIkXmL9d7urGprq0noSVFgri2hx2aVovNrD+ZyCP8xXb1oxUXxGK6esZSYpjQGoYjQOe0hAF7escEECygTmpDpzBsjPd1WQEkkxsPvfQIqg1BoAptISQdti4M2AkLsdbC7UlRysWXuURxMk5SrOcPlNVogsvQNBsruBpc5wQi9t0lnhZ0SPw8hly4xvJmv4FCm3aL7+O0R4btNBMpSmpM3qQEMEFd13IlAO8HavsBA0CdhAAp54IIir7BYJ8Qjq2O9ExDPRGdK5mCQ4sKYi+qpb9UUH5yo1SlHYYB+cYjoGSUAg9b5I9+TA8KFB/SkQQIIqk4bL2nDITXBkiDQFJoDZMhM6SlA6QoUWfBwPq9GdfEElInSWTEM/EMiYINgEhzPYaWSUDA7NMwW1DDQMiMpu9njcV85CTzaaDSJQgiCpRZ6CQIjZpPqKMERjL2L5QQBMgKEcNsMOAZwMOMREGDoWJTGVzq6SEpcmVuJCdQTabN3fttYEybua2Owdr8p6CKy9xb1yCTX2YEUGhyWVyzhCQmuauBBBV/00v5gdZ430edL2XmPJRGZhqnqXunCA8kSpuUA6QAMAJeGbJFmohZhVkGDv0IJ5CDRoaGPYmAIyhzCPlaeiMAREAtoRbbbY22gz0mQiR2UCwlnWc9VjLVqoyDKX0/VGUFhPamU4shIBE2T8bFwcR8JAnxykjAYIDDmmrilK0HDFyoHfiTZsEhAGRu4HqqQkGYmHNigrMOBPatKUsVVDQQFjAAKpjBLPeI8P8XckU4UJAWxGS8EJaaDkxQVkmU1lvweEyAAAg/P/OGCgpYEQqEEIAJQqAoAkAAAgEwIACgAJAACAIIABBWoAAABk0YmjxQw0MmQMjEGJk0NMGgAlhBAAhwtXTYuZKRxSwm6jvwrlnYuI+3m0X/GZYKI2IAPxdyRThQkG/B4TI | base64 --decode > $RCDPATCH
sudo mv /System/Library/CoreServices/rcd.app/Contents/MacOS/rcd /System/Library/CoreServices/rcd.app/Contents/MacOS/rcd-bk
sudo bspatch /System/Library/CoreServices/rcd.app/Contents/MacOS/rcd-bk /System/Library/CoreServices/rcd.app/Contents/MacOS/rcd $RCDPATCH
sudo chmod +x /System/Library/CoreServices/rcd.app/Contents/MacOS/rcd
fi
if [ $(shasum /System/Library/CoreServices/AVRCPAgent.app/Contents/MacOS/AVRCPAgent | awk '$0=$1') = "798f7271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pRo9fpZYGZshrLfhmymZmZERERERERERGu+2aurq6utVqa/J+5GoavHtBFqD8IwRBK0Ccn9VIhchCOi+2pGr/mDQAAAAAAAAAAAAACAAAAAACUpQlKSYf4u5IpwoSEL6kJ2QlpoOTFBWSZTWVbXm+cAAAnBAMAAAIAACCAAIKU0GY1GwTxdyRThQkFbXm+c | base64 --decode > $AVRCPPATCH
sudo mv /System/Library/CoreServices/AVRCPAgent.app/Contents/MacOS/AVRCPAgent /System/Library/CoreServices/AVRCPAgent.app/Contents/MacOS/AVRCPAgent-bk
sudo bspatch /System/Library/CoreServices/AVRCPAgent.app/Contents/MacOS/AVRCPAgent-bk /System/Library/CoreServices/AVRCPAgent.app/Contents/MacOS/AVRCPAgent $AVRCPPATCH
sudo chmod +x /System/Library/CoreServices/AVRCPAgent.app/Contents/MacOS/AVRCPAgent
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.