Skip to content

Instantly share code, notes, and snippets.

@ngencokamin
Last active January 20, 2024 15:52
Show Gist options
  • Save ngencokamin/6643b0253c49817ff20b7d9458fcfe06 to your computer and use it in GitHub Desktop.
Save ngencokamin/6643b0253c49817ff20b7d9458fcfe06 to your computer and use it in GitHub Desktop.
Fix iMessage OCLP (Regen Serial Method)

Fix iMessage OCLP (Regen Serial Method)

Quick guide to fix issues with iMessage due to banned serial with OCLP See official documentation here, that's where I got most of this

Clean out old attempts

This is important for those who've tried setting up iMessage but failed Open a new terminal window and run the following code

bash
sudo rm -rf ~/Library/Caches/com.apple.iCloudHelper*
sudo rm -rf ~/Library/Caches/com.apple.Messages*
sudo rm -rf ~/Library/Caches/com.apple.imfoundation.IMRemoteURLConnectionAgent*
sudo rm -rf ~/Library/Preferences/com.apple.iChat*
sudo rm -rf ~/Library/Preferences/com.apple.icloud*
sudo rm -rf ~/Library/Preferences/com.apple.imagent*
sudo rm -rf ~/Library/Preferences/com.apple.imessage*
sudo rm -rf ~/Library/Preferences/com.apple.imservice*
sudo rm -rf ~/Library/Preferences/com.apple.ids.service*
sudo rm -rf ~/Library/Preferences/com.apple.madrid.plist*
sudo rm -rf ~/Library/Preferences/com.apple.imessage.bag.plist*
sudo rm -rf ~/Library/Preferences/com.apple.identityserviced*
sudo rm -rf ~/Library/Preferences/com.apple.ids.service*
sudo rm -rf ~/Library/Preferences/com.apple.security*
sudo rm -rf ~/Library/Messages

Running commands with sudo will request you input your sudo password. Use the password for your user account.

Clean up your AppleID

  1. Remove all devices from your AppleID: Manage your devices
  2. Enable 2 Factor-Auth
  3. Remove all iServices from Keychain, some examples:
ids: identity-rsa-key-pair-signature-v1
ids: identity-rsa-private-key
ids: identity-rsa-public-key
ids: message-protection-key
ids: message-protection-public-data-registered
ids: personal-public-key-cache
iMessage Encryption Key
iMessage Signing Key
com.apple.facetime: registrationV1
etc ...

See this guide

Regenerate your Serial and Board Serial in OCLP

  1. Open Opencore-Legacy application menu
  2. Open settings and go to the smbios tab settings1
  3. Change spoofing level to 'Advanced and click Generate S/N <your mac model> settings2
  4. Check your serial number's validity at https://checkcoverage.apple.com. Don't worry if it says Please enter a valid serial number. You want the serial to be invalid. If it says it's a valid serial number then you need to generate again because some Mac out there has it Check Validity
  5. Go back to the Opencode-Legacy application and click Build and Install OpenCore Build and Install
  6. Once that is complete, reboot your Mac while praying to Hephaestus, God of Technology, that he might bless this device
  7. Sign back into your AppleID and try sending an iMessage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment