Skip to content

Instantly share code, notes, and snippets.

@Picallo-svg
Picallo-svg / disable.sh
Created January 24, 2020 02:32
Disable bunch of #$!@ in Catalina
#!/bin/bash
# IMPORTANT: Don't forget to logout from your Apple ID in the settings before running it!
# IMPORTANT: You will need to run this script from Recovery. In fact, macOS Catalina brings read-only filesystem which prevent this script from working from the main OS.
# This script needs to be run from the volume you wish to use.
# E.g. run it like this: cd /Volumes/Macintosh\ HD && sh /Volumes/Macintosh\ HD/Users/sabri/Desktop/disable.sh
# WARNING: It might disable things that you may not like. Please double check the services in the TODISABLE vars.
# Get active services: launchctl list | grep -v "\-\t0"
# Find a service: grep -lR [service] /System/Library/Launch* /Library/Launch* ~/Library/LaunchAgents
5c5
< File: /Users/anton/Documents/ifun/firmware/binary_unedited/mobileactivationd
---
> File: /Users/anton/Documents/ifun/firmware/mobileactivationd_2.bin
20960,20961c20960
< 0000000100013708 tbz w24, 0x0, loc_100013818
<
---
> 0000000100013708 nop
21032,21035c21031,21032