├── .gitattributes ├── .travis.yml ├── BrickFix.plist ├── Makefile ├── Tweak.xm └── control /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | os: osx 2 | language: objective-c 3 | osx_image: xcode10.1 4 | sudo: false 5 | env: 6 | global: 7 | - THEOS=~/theos 8 | before_install: 9 | - brew install dpkg ldid 10 | - git clone --recursive git://github.com/theos/theos.git ~/theos 11 | script: 12 | - make clean package FINALPACKAGE=1 13 | before_deploy: 14 | - git config --local user.name "Muirey03" 15 | - git config --local user.email "tommy.muir@btinternet.com" 16 | - export RELEASE_PKG_FILE=$(ls ./packages/*.deb) 17 | - export TRAVIS_TAG=${TRAVIS_TAG:-$(date +'%Y%m%d%H%M%S')-$(git log --format=%h -1)} 18 | - git tag $TRAVIS_TAG 19 | deploy: 20 | provider: releases 21 | skip_cleanup: true 22 | api_key: 23 | secure: GEXG9seh0UVJQL0msgohGMI3j7btAUwEAyEIXFms7G0t3BFjXalRzIT3oN622/q1p03tSi1cPIBcYhgTsgI2XAtrWJTxeqTMN+m1pXmcC1GAYRy6PA9ep8axNdZaAGYm+BghtbqvszNu5u1hQ5MvmRL5sUoo51ALQuECGfUZnujP2C8qi77WrsIUXZboqPUzuGFM0iI2TLTeD80cC9u6/w4B1KjD0J9qnUQgbsAxIOYm9/U4vsYf6lRzD9BaEikfW491Imm9mLGkDyRK3ARSLwx1LbgqcM3ukv8Wek+geWaHpWC0+J7OpdcXfP4it6m6fhXJsrqaESUqnwO97jeTGJtB/p4lVyeaIkuCYwHlZOGxQbwqdXFvi6tBefaksv62i/moEG292CilVIQTklXlYlr4sCCUiGhRmRYl/TEpErsct/RR8L75JllNEMWyW8jfGXmXYuSnddWHi1bJmatqYeBBfBfzZhZ1mz4gmAmJacr73sTcrjBljHbymLKcA/CGrLTdDozu1IbY77dPvD59BDokhfdHiK5ny7tGAFxES9zCzI3D7GKpy8vHixX4wpgw1C2QLwphb22kte1Jt7f4cZDPSkO+lhKqwcByzT3J1giL9eHIyuWp6tuUEW3is5psLI7dWbJPu1QVnGiKd5x2bcYUqnFMiibeJxFmKO9SxPk= 24 | file_glob: true 25 | file: "${RELEASE_PKG_FILE}" 26 | on: 27 | repo: Muirey03/BrickFix 28 | branch: master 29 | -------------------------------------------------------------------------------- /BrickFix.plist: -------------------------------------------------------------------------------- 1 | { Filter = { Bundles = ( "com.apple.imcore" ); }; } 2 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | ARCHS = armv7 arm64 arm64e 2 | 3 | include $(THEOS)/makefiles/common.mk 4 | 5 | TWEAK_NAME = BrickFix 6 | BrickFix_FILES = Tweak.xm 7 | BrickFix_CFLAGS = -fobjc-arc 8 | 9 | include $(THEOS_MAKE_PATH)/tweak.mk 10 | 11 | after-install:: 12 | install.exec "killall -9 backboardd" 13 | -------------------------------------------------------------------------------- /Tweak.xm: -------------------------------------------------------------------------------- 1 | //in reality, only one of these 3 functions should be necessary 2 | //but I want to make sure this is as safe as possible 3 | 4 | %hook IMBalloonPluginDataSource 5 | -(id)_summaryText 6 | { 7 | id ret = %orig; 8 | if (ret && ![ret isKindOfClass:[NSString class]]) 9 | ret = @""; 10 | return ret; 11 | } 12 | 13 | -(id)_replaceHandleWithContactNameInString:(id)arg1 14 | { 15 | if (arg1 && ![arg1 isKindOfClass:[NSString class]]) 16 | arg1 = @""; 17 | return %orig; 18 | } 19 | %end 20 | -------------------------------------------------------------------------------- /control: -------------------------------------------------------------------------------- 1 | Package: com.muirey03.brickfix 2 | Name: BrickFix 3 | Depends: mobilesubstrate 4 | Version: 1.0.1 5 | Architecture: iphoneos-arm 6 | Description: Fix for iMessage bug that can brick your iPhone 7 | Maintainer: Muirey03 8 | Author: Muirey03 9 | Section: Tweaks 10 | --------------------------------------------------------------------------------