commit bba0e18b69a920e7039da8d73e01302ea82cdd2d Author: Burrit0z <57574731+Burrit0z@users.noreply.github.com> Date: Mon Dec 30 19:45:54 2019 -0500 Initial commit diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..5952503 Binary files /dev/null and b/.DS_Store differ diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..dfe0770 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +# Auto detect text files and perform LF normalization +* text=auto diff --git a/.theos/_/DEBIAN/control b/.theos/_/DEBIAN/control new file mode 100644 index 0000000..736efda --- /dev/null +++ b/.theos/_/DEBIAN/control @@ -0,0 +1,10 @@ +Package: com.burritoz.audiomessagebegone +Name: AudioMessageBeGone +Depends: mobilesubstrate +Architecture: iphoneos-arm +Description: An awesome MobileSubstrate tweak! +Maintainer: burrit0z +Author: burrit0z +Section: Tweaks +Version: 1.0 +Installed-Size: 200 diff --git a/.theos/_/Library/MobileSubstrate/DynamicLibraries/AudioMessageBeGone.dylib b/.theos/_/Library/MobileSubstrate/DynamicLibraries/AudioMessageBeGone.dylib new file mode 100755 index 0000000..6fde1e6 Binary files /dev/null and b/.theos/_/Library/MobileSubstrate/DynamicLibraries/AudioMessageBeGone.dylib differ diff --git a/.theos/_/Library/MobileSubstrate/DynamicLibraries/AudioMessageBeGone.plist b/.theos/_/Library/MobileSubstrate/DynamicLibraries/AudioMessageBeGone.plist new file mode 100644 index 0000000..f2f3a52 Binary files /dev/null and b/.theos/_/Library/MobileSubstrate/DynamicLibraries/AudioMessageBeGone.plist differ diff --git a/.theos/build_session b/.theos/build_session new file mode 100644 index 0000000..e69de29 diff --git a/.theos/fakeroot b/.theos/fakeroot new file mode 100644 index 0000000..e69de29 diff --git a/.theos/last_package b/.theos/last_package new file mode 100644 index 0000000..711aecf --- /dev/null +++ b/.theos/last_package @@ -0,0 +1 @@ +./packages/com.burritoz.audiomessagebegone_1.0_iphoneos-arm.deb diff --git a/.theos/obj/.stamp b/.theos/obj/.stamp new file mode 100644 index 0000000..e69de29 diff --git a/.theos/obj/AudioMessageBeGone.dylib b/.theos/obj/AudioMessageBeGone.dylib new file mode 100755 index 0000000..6fde1e6 Binary files /dev/null and b/.theos/obj/AudioMessageBeGone.dylib differ diff --git a/.theos/obj/arm64/AudioMessageBeGone.dylib b/.theos/obj/arm64/AudioMessageBeGone.dylib new file mode 100755 index 0000000..9ceed9e Binary files /dev/null and b/.theos/obj/arm64/AudioMessageBeGone.dylib differ diff --git a/.theos/obj/arm64/AudioMessageBeGone.dylib.dSYM/Contents/Info.plist b/.theos/obj/arm64/AudioMessageBeGone.dylib.dSYM/Contents/Info.plist new file mode 100644 index 0000000..b290b9f --- /dev/null +++ b/.theos/obj/arm64/AudioMessageBeGone.dylib.dSYM/Contents/Info.plist @@ -0,0 +1,20 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleIdentifier + com.apple.xcode.dsym.AudioMessageBeGone.dylib + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + dSYM + CFBundleSignature + ???? + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/.theos/obj/arm64/AudioMessageBeGone.dylib.dSYM/Contents/Resources/DWARF/AudioMessageBeGone.dylib b/.theos/obj/arm64/AudioMessageBeGone.dylib.dSYM/Contents/Resources/DWARF/AudioMessageBeGone.dylib new file mode 100644 index 0000000..4f562f1 Binary files /dev/null and b/.theos/obj/arm64/AudioMessageBeGone.dylib.dSYM/Contents/Resources/DWARF/AudioMessageBeGone.dylib differ diff --git a/.theos/obj/arm64/Tweak.x.17bb9aab.Td b/.theos/obj/arm64/Tweak.x.17bb9aab.Td new file mode 100644 index 0000000..acf78b9 --- /dev/null +++ b/.theos/obj/arm64/Tweak.x.17bb9aab.Td @@ -0,0 +1,20 @@ +/Users/carsonzielinski/Documents/audiomessagebegone/.theos/obj/arm64/Tweak.x.17bb9aab.o: \ + /Users/carsonzielinski/Documents/audiomessagebegone/.theos/obj/arm64/Tweak.x.m \ + /Users/carsonzielinski/Documents/theos/Prefix.pch \ + /Users/carsonzielinski/Documents/theos/include/_Prefix/BackwardsCompat.h \ + /Users/carsonzielinski/Documents/theos/include/_Prefix/IOSMacros.h \ + /Users/carsonzielinski/Documents/theos/include/HBLog.h \ + /Users/carsonzielinski/Documents/theos/include/CoreFoundation/CFLogUtilities.h \ + /Users/carsonzielinski/Documents/theos/include/substrate.h + +/Users/carsonzielinski/Documents/theos/Prefix.pch: + +/Users/carsonzielinski/Documents/theos/include/_Prefix/BackwardsCompat.h: + +/Users/carsonzielinski/Documents/theos/include/_Prefix/IOSMacros.h: + +/Users/carsonzielinski/Documents/theos/include/HBLog.h: + +/Users/carsonzielinski/Documents/theos/include/CoreFoundation/CFLogUtilities.h: + +/Users/carsonzielinski/Documents/theos/include/substrate.h: diff --git a/.theos/obj/arm64/Tweak.x.17bb9aab.o b/.theos/obj/arm64/Tweak.x.17bb9aab.o new file mode 100644 index 0000000..2910a7d Binary files /dev/null and b/.theos/obj/arm64/Tweak.x.17bb9aab.o differ diff --git a/.theos/obj/arm64e/AudioMessageBeGone.dylib b/.theos/obj/arm64e/AudioMessageBeGone.dylib new file mode 100755 index 0000000..6dfb978 Binary files /dev/null and b/.theos/obj/arm64e/AudioMessageBeGone.dylib differ diff --git a/.theos/obj/arm64e/AudioMessageBeGone.dylib.dSYM/Contents/Info.plist b/.theos/obj/arm64e/AudioMessageBeGone.dylib.dSYM/Contents/Info.plist new file mode 100644 index 0000000..b290b9f --- /dev/null +++ b/.theos/obj/arm64e/AudioMessageBeGone.dylib.dSYM/Contents/Info.plist @@ -0,0 +1,20 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleIdentifier + com.apple.xcode.dsym.AudioMessageBeGone.dylib + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + dSYM + CFBundleSignature + ???? + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/.theos/obj/arm64e/AudioMessageBeGone.dylib.dSYM/Contents/Resources/DWARF/AudioMessageBeGone.dylib b/.theos/obj/arm64e/AudioMessageBeGone.dylib.dSYM/Contents/Resources/DWARF/AudioMessageBeGone.dylib new file mode 100644 index 0000000..7421903 Binary files /dev/null and b/.theos/obj/arm64e/AudioMessageBeGone.dylib.dSYM/Contents/Resources/DWARF/AudioMessageBeGone.dylib differ diff --git a/.theos/obj/arm64e/Tweak.x.061f0908.Td b/.theos/obj/arm64e/Tweak.x.061f0908.Td new file mode 100644 index 0000000..33d4975 --- /dev/null +++ b/.theos/obj/arm64e/Tweak.x.061f0908.Td @@ -0,0 +1,20 @@ +/Users/carsonzielinski/Documents/audiomessagebegone/.theos/obj/arm64e/Tweak.x.061f0908.o: \ + /Users/carsonzielinski/Documents/audiomessagebegone/.theos/obj/arm64e/Tweak.x.m \ + /Users/carsonzielinski/Documents/theos/Prefix.pch \ + /Users/carsonzielinski/Documents/theos/include/_Prefix/BackwardsCompat.h \ + /Users/carsonzielinski/Documents/theos/include/_Prefix/IOSMacros.h \ + /Users/carsonzielinski/Documents/theos/include/HBLog.h \ + /Users/carsonzielinski/Documents/theos/include/CoreFoundation/CFLogUtilities.h \ + /Users/carsonzielinski/Documents/theos/include/substrate.h + +/Users/carsonzielinski/Documents/theos/Prefix.pch: + +/Users/carsonzielinski/Documents/theos/include/_Prefix/BackwardsCompat.h: + +/Users/carsonzielinski/Documents/theos/include/_Prefix/IOSMacros.h: + +/Users/carsonzielinski/Documents/theos/include/HBLog.h: + +/Users/carsonzielinski/Documents/theos/include/CoreFoundation/CFLogUtilities.h: + +/Users/carsonzielinski/Documents/theos/include/substrate.h: diff --git a/.theos/obj/arm64e/Tweak.x.061f0908.o b/.theos/obj/arm64e/Tweak.x.061f0908.o new file mode 100644 index 0000000..622f724 Binary files /dev/null and b/.theos/obj/arm64e/Tweak.x.061f0908.o differ diff --git a/.theos/obj/armv7/AudioMessageBeGone.dylib b/.theos/obj/armv7/AudioMessageBeGone.dylib new file mode 100755 index 0000000..e6eaa9f Binary files /dev/null and b/.theos/obj/armv7/AudioMessageBeGone.dylib differ diff --git a/.theos/obj/armv7/AudioMessageBeGone.dylib.dSYM/Contents/Info.plist b/.theos/obj/armv7/AudioMessageBeGone.dylib.dSYM/Contents/Info.plist new file mode 100644 index 0000000..b290b9f --- /dev/null +++ b/.theos/obj/armv7/AudioMessageBeGone.dylib.dSYM/Contents/Info.plist @@ -0,0 +1,20 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleIdentifier + com.apple.xcode.dsym.AudioMessageBeGone.dylib + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + dSYM + CFBundleSignature + ???? + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/.theos/obj/armv7/AudioMessageBeGone.dylib.dSYM/Contents/Resources/DWARF/AudioMessageBeGone.dylib b/.theos/obj/armv7/AudioMessageBeGone.dylib.dSYM/Contents/Resources/DWARF/AudioMessageBeGone.dylib new file mode 100644 index 0000000..6351c18 Binary files /dev/null and b/.theos/obj/armv7/AudioMessageBeGone.dylib.dSYM/Contents/Resources/DWARF/AudioMessageBeGone.dylib differ diff --git a/.theos/obj/armv7/Tweak.x.37864d8b.Td b/.theos/obj/armv7/Tweak.x.37864d8b.Td new file mode 100644 index 0000000..98833a9 --- /dev/null +++ b/.theos/obj/armv7/Tweak.x.37864d8b.Td @@ -0,0 +1,20 @@ +/Users/carsonzielinski/Documents/audiomessagebegone/.theos/obj/armv7/Tweak.x.37864d8b.o: \ + /Users/carsonzielinski/Documents/audiomessagebegone/.theos/obj/armv7/Tweak.x.m \ + /Users/carsonzielinski/Documents/theos/Prefix.pch \ + /Users/carsonzielinski/Documents/theos/include/_Prefix/BackwardsCompat.h \ + /Users/carsonzielinski/Documents/theos/include/_Prefix/IOSMacros.h \ + /Users/carsonzielinski/Documents/theos/include/HBLog.h \ + /Users/carsonzielinski/Documents/theos/include/CoreFoundation/CFLogUtilities.h \ + /Users/carsonzielinski/Documents/theos/include/substrate.h + +/Users/carsonzielinski/Documents/theos/Prefix.pch: + +/Users/carsonzielinski/Documents/theos/include/_Prefix/BackwardsCompat.h: + +/Users/carsonzielinski/Documents/theos/include/_Prefix/IOSMacros.h: + +/Users/carsonzielinski/Documents/theos/include/HBLog.h: + +/Users/carsonzielinski/Documents/theos/include/CoreFoundation/CFLogUtilities.h: + +/Users/carsonzielinski/Documents/theos/include/substrate.h: diff --git a/.theos/obj/armv7/Tweak.x.37864d8b.o b/.theos/obj/armv7/Tweak.x.37864d8b.o new file mode 100644 index 0000000..ee73d82 Binary files /dev/null and b/.theos/obj/armv7/Tweak.x.37864d8b.o differ diff --git a/.theos/obj/debug/.stamp b/.theos/obj/debug/.stamp new file mode 100644 index 0000000..e69de29 diff --git a/.theos/obj/debug/AudioMessageBeGone.dylib b/.theos/obj/debug/AudioMessageBeGone.dylib new file mode 100755 index 0000000..56903e5 Binary files /dev/null and b/.theos/obj/debug/AudioMessageBeGone.dylib differ diff --git a/.theos/obj/debug/arm64/AudioMessageBeGone.dylib b/.theos/obj/debug/arm64/AudioMessageBeGone.dylib new file mode 100755 index 0000000..22c8618 Binary files /dev/null and b/.theos/obj/debug/arm64/AudioMessageBeGone.dylib differ diff --git a/.theos/obj/debug/arm64/AudioMessageBeGone.dylib.dSYM/Contents/Info.plist b/.theos/obj/debug/arm64/AudioMessageBeGone.dylib.dSYM/Contents/Info.plist new file mode 100644 index 0000000..b290b9f --- /dev/null +++ b/.theos/obj/debug/arm64/AudioMessageBeGone.dylib.dSYM/Contents/Info.plist @@ -0,0 +1,20 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleIdentifier + com.apple.xcode.dsym.AudioMessageBeGone.dylib + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + dSYM + CFBundleSignature + ???? + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/.theos/obj/debug/arm64/AudioMessageBeGone.dylib.dSYM/Contents/Resources/DWARF/AudioMessageBeGone.dylib b/.theos/obj/debug/arm64/AudioMessageBeGone.dylib.dSYM/Contents/Resources/DWARF/AudioMessageBeGone.dylib new file mode 100644 index 0000000..ec12c6a Binary files /dev/null and b/.theos/obj/debug/arm64/AudioMessageBeGone.dylib.dSYM/Contents/Resources/DWARF/AudioMessageBeGone.dylib differ diff --git a/.theos/obj/debug/arm64/Tweak.x.b06dce54.Td b/.theos/obj/debug/arm64/Tweak.x.b06dce54.Td new file mode 100644 index 0000000..2bd10b6 --- /dev/null +++ b/.theos/obj/debug/arm64/Tweak.x.b06dce54.Td @@ -0,0 +1,20 @@ +/Users/carsonzielinski/Documents/audiomessagebegone/.theos/obj/debug/arm64/Tweak.x.b06dce54.o: \ + /Users/carsonzielinski/Documents/audiomessagebegone/.theos/obj/debug/arm64/Tweak.x.m \ + /Users/carsonzielinski/Documents/theos/Prefix.pch \ + /Users/carsonzielinski/Documents/theos/include/_Prefix/BackwardsCompat.h \ + /Users/carsonzielinski/Documents/theos/include/_Prefix/IOSMacros.h \ + /Users/carsonzielinski/Documents/theos/include/HBLog.h \ + /Users/carsonzielinski/Documents/theos/include/CoreFoundation/CFLogUtilities.h \ + /Users/carsonzielinski/Documents/theos/include/substrate.h + +/Users/carsonzielinski/Documents/theos/Prefix.pch: + +/Users/carsonzielinski/Documents/theos/include/_Prefix/BackwardsCompat.h: + +/Users/carsonzielinski/Documents/theos/include/_Prefix/IOSMacros.h: + +/Users/carsonzielinski/Documents/theos/include/HBLog.h: + +/Users/carsonzielinski/Documents/theos/include/CoreFoundation/CFLogUtilities.h: + +/Users/carsonzielinski/Documents/theos/include/substrate.h: diff --git a/.theos/obj/debug/arm64/Tweak.x.b06dce54.o b/.theos/obj/debug/arm64/Tweak.x.b06dce54.o new file mode 100644 index 0000000..8e23977 Binary files /dev/null and b/.theos/obj/debug/arm64/Tweak.x.b06dce54.o differ diff --git a/.theos/obj/debug/arm64/Tweak.x.m b/.theos/obj/debug/arm64/Tweak.x.m new file mode 100644 index 0000000..dab5078 --- /dev/null +++ b/.theos/obj/debug/arm64/Tweak.x.m @@ -0,0 +1,46 @@ +#line 1 "Tweak.x" + +#include +#if defined(__clang__) +#if __has_feature(objc_arc) +#define _LOGOS_SELF_TYPE_NORMAL __unsafe_unretained +#define _LOGOS_SELF_TYPE_INIT __attribute__((ns_consumed)) +#define _LOGOS_SELF_CONST const +#define _LOGOS_RETURN_RETAINED __attribute__((ns_returns_retained)) +#else +#define _LOGOS_SELF_TYPE_NORMAL +#define _LOGOS_SELF_TYPE_INIT +#define _LOGOS_SELF_CONST +#define _LOGOS_RETURN_RETAINED +#endif +#else +#define _LOGOS_SELF_TYPE_NORMAL +#define _LOGOS_SELF_TYPE_INIT +#define _LOGOS_SELF_CONST +#define _LOGOS_RETURN_RETAINED +#endif + +@class CKAudioRecorder; @class CKMessageEntryAudioHintView; @class CKRecordActionMenuItem; +static void (*_logos_orig$_ungrouped$CKAudioRecorder$setCancelled$)(_LOGOS_SELF_TYPE_NORMAL CKAudioRecorder* _LOGOS_SELF_CONST, SEL, BOOL); static void _logos_method$_ungrouped$CKAudioRecorder$setCancelled$(_LOGOS_SELF_TYPE_NORMAL CKAudioRecorder* _LOGOS_SELF_CONST, SEL, BOOL); static void (*_logos_orig$_ungrouped$CKRecordActionMenuItem$setSelected$animated$)(_LOGOS_SELF_TYPE_NORMAL CKRecordActionMenuItem* _LOGOS_SELF_CONST, SEL, BOOL, BOOL); static void _logos_method$_ungrouped$CKRecordActionMenuItem$setSelected$animated$(_LOGOS_SELF_TYPE_NORMAL CKRecordActionMenuItem* _LOGOS_SELF_CONST, SEL, BOOL, BOOL); static void (*_logos_orig$_ungrouped$CKMessageEntryAudioHintView$setHidden$animated$completion$)(_LOGOS_SELF_TYPE_NORMAL CKMessageEntryAudioHintView* _LOGOS_SELF_CONST, SEL, BOOL, BOOL, id); static void _logos_method$_ungrouped$CKMessageEntryAudioHintView$setHidden$animated$completion$(_LOGOS_SELF_TYPE_NORMAL CKMessageEntryAudioHintView* _LOGOS_SELF_CONST, SEL, BOOL, BOOL, id); + +#line 1 "Tweak.x" + +static void _logos_method$_ungrouped$CKAudioRecorder$setCancelled$(_LOGOS_SELF_TYPE_NORMAL CKAudioRecorder* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, BOOL arg1) { + _logos_orig$_ungrouped$CKAudioRecorder$setCancelled$(self, _cmd, YES); +} + + + +static void _logos_method$_ungrouped$CKRecordActionMenuItem$setSelected$animated$(_LOGOS_SELF_TYPE_NORMAL CKRecordActionMenuItem* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, BOOL arg1, BOOL arg2) { + _logos_orig$_ungrouped$CKRecordActionMenuItem$setSelected$animated$(self, _cmd, NO,NO); +} + + + +static void _logos_method$_ungrouped$CKMessageEntryAudioHintView$setHidden$animated$completion$(_LOGOS_SELF_TYPE_NORMAL CKMessageEntryAudioHintView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, BOOL arg1, BOOL arg2, id arg3) { + _logos_orig$_ungrouped$CKMessageEntryAudioHintView$setHidden$animated$completion$(self, _cmd, YES,NO,NULL); +} + +static __attribute__((constructor)) void _logosLocalInit() { +{Class _logos_class$_ungrouped$CKAudioRecorder = objc_getClass("CKAudioRecorder"); MSHookMessageEx(_logos_class$_ungrouped$CKAudioRecorder, @selector(setCancelled:), (IMP)&_logos_method$_ungrouped$CKAudioRecorder$setCancelled$, (IMP*)&_logos_orig$_ungrouped$CKAudioRecorder$setCancelled$);Class _logos_class$_ungrouped$CKRecordActionMenuItem = objc_getClass("CKRecordActionMenuItem"); MSHookMessageEx(_logos_class$_ungrouped$CKRecordActionMenuItem, @selector(setSelected:animated:), (IMP)&_logos_method$_ungrouped$CKRecordActionMenuItem$setSelected$animated$, (IMP*)&_logos_orig$_ungrouped$CKRecordActionMenuItem$setSelected$animated$);Class _logos_class$_ungrouped$CKMessageEntryAudioHintView = objc_getClass("CKMessageEntryAudioHintView"); MSHookMessageEx(_logos_class$_ungrouped$CKMessageEntryAudioHintView, @selector(setHidden:animated:completion:), (IMP)&_logos_method$_ungrouped$CKMessageEntryAudioHintView$setHidden$animated$completion$, (IMP*)&_logos_orig$_ungrouped$CKMessageEntryAudioHintView$setHidden$animated$completion$);} } +#line 18 "Tweak.x" diff --git a/.theos/obj/debug/arm64e/AudioMessageBeGone.dylib b/.theos/obj/debug/arm64e/AudioMessageBeGone.dylib new file mode 100755 index 0000000..12689c6 Binary files /dev/null and b/.theos/obj/debug/arm64e/AudioMessageBeGone.dylib differ diff --git a/.theos/obj/debug/arm64e/AudioMessageBeGone.dylib.dSYM/Contents/Info.plist b/.theos/obj/debug/arm64e/AudioMessageBeGone.dylib.dSYM/Contents/Info.plist new file mode 100644 index 0000000..b290b9f --- /dev/null +++ b/.theos/obj/debug/arm64e/AudioMessageBeGone.dylib.dSYM/Contents/Info.plist @@ -0,0 +1,20 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleIdentifier + com.apple.xcode.dsym.AudioMessageBeGone.dylib + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + dSYM + CFBundleSignature + ???? + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/.theos/obj/debug/arm64e/AudioMessageBeGone.dylib.dSYM/Contents/Resources/DWARF/AudioMessageBeGone.dylib b/.theos/obj/debug/arm64e/AudioMessageBeGone.dylib.dSYM/Contents/Resources/DWARF/AudioMessageBeGone.dylib new file mode 100644 index 0000000..f84b9be Binary files /dev/null and b/.theos/obj/debug/arm64e/AudioMessageBeGone.dylib.dSYM/Contents/Resources/DWARF/AudioMessageBeGone.dylib differ diff --git a/.theos/obj/debug/arm64e/Tweak.x.ad61d018.Td b/.theos/obj/debug/arm64e/Tweak.x.ad61d018.Td new file mode 100644 index 0000000..2db7bc0 --- /dev/null +++ b/.theos/obj/debug/arm64e/Tweak.x.ad61d018.Td @@ -0,0 +1,20 @@ +/Users/carsonzielinski/Documents/audiomessagebegone/.theos/obj/debug/arm64e/Tweak.x.ad61d018.o: \ + /Users/carsonzielinski/Documents/audiomessagebegone/.theos/obj/debug/arm64e/Tweak.x.m \ + /Users/carsonzielinski/Documents/theos/Prefix.pch \ + /Users/carsonzielinski/Documents/theos/include/_Prefix/BackwardsCompat.h \ + /Users/carsonzielinski/Documents/theos/include/_Prefix/IOSMacros.h \ + /Users/carsonzielinski/Documents/theos/include/HBLog.h \ + /Users/carsonzielinski/Documents/theos/include/CoreFoundation/CFLogUtilities.h \ + /Users/carsonzielinski/Documents/theos/include/substrate.h + +/Users/carsonzielinski/Documents/theos/Prefix.pch: + +/Users/carsonzielinski/Documents/theos/include/_Prefix/BackwardsCompat.h: + +/Users/carsonzielinski/Documents/theos/include/_Prefix/IOSMacros.h: + +/Users/carsonzielinski/Documents/theos/include/HBLog.h: + +/Users/carsonzielinski/Documents/theos/include/CoreFoundation/CFLogUtilities.h: + +/Users/carsonzielinski/Documents/theos/include/substrate.h: diff --git a/.theos/obj/debug/arm64e/Tweak.x.ad61d018.o b/.theos/obj/debug/arm64e/Tweak.x.ad61d018.o new file mode 100644 index 0000000..9070a54 Binary files /dev/null and b/.theos/obj/debug/arm64e/Tweak.x.ad61d018.o differ diff --git a/.theos/obj/debug/arm64e/Tweak.x.m b/.theos/obj/debug/arm64e/Tweak.x.m new file mode 100644 index 0000000..7bf8f9d --- /dev/null +++ b/.theos/obj/debug/arm64e/Tweak.x.m @@ -0,0 +1,46 @@ +#line 1 "Tweak.x" + +#include +#if defined(__clang__) +#if __has_feature(objc_arc) +#define _LOGOS_SELF_TYPE_NORMAL __unsafe_unretained +#define _LOGOS_SELF_TYPE_INIT __attribute__((ns_consumed)) +#define _LOGOS_SELF_CONST const +#define _LOGOS_RETURN_RETAINED __attribute__((ns_returns_retained)) +#else +#define _LOGOS_SELF_TYPE_NORMAL +#define _LOGOS_SELF_TYPE_INIT +#define _LOGOS_SELF_CONST +#define _LOGOS_RETURN_RETAINED +#endif +#else +#define _LOGOS_SELF_TYPE_NORMAL +#define _LOGOS_SELF_TYPE_INIT +#define _LOGOS_SELF_CONST +#define _LOGOS_RETURN_RETAINED +#endif + +@class CKRecordActionMenuItem; @class CKAudioRecorder; @class CKMessageEntryAudioHintView; +static void (*_logos_orig$_ungrouped$CKAudioRecorder$setCancelled$)(_LOGOS_SELF_TYPE_NORMAL CKAudioRecorder* _LOGOS_SELF_CONST, SEL, BOOL); static void _logos_method$_ungrouped$CKAudioRecorder$setCancelled$(_LOGOS_SELF_TYPE_NORMAL CKAudioRecorder* _LOGOS_SELF_CONST, SEL, BOOL); static void (*_logos_orig$_ungrouped$CKRecordActionMenuItem$setSelected$animated$)(_LOGOS_SELF_TYPE_NORMAL CKRecordActionMenuItem* _LOGOS_SELF_CONST, SEL, BOOL, BOOL); static void _logos_method$_ungrouped$CKRecordActionMenuItem$setSelected$animated$(_LOGOS_SELF_TYPE_NORMAL CKRecordActionMenuItem* _LOGOS_SELF_CONST, SEL, BOOL, BOOL); static void (*_logos_orig$_ungrouped$CKMessageEntryAudioHintView$setHidden$animated$completion$)(_LOGOS_SELF_TYPE_NORMAL CKMessageEntryAudioHintView* _LOGOS_SELF_CONST, SEL, BOOL, BOOL, id); static void _logos_method$_ungrouped$CKMessageEntryAudioHintView$setHidden$animated$completion$(_LOGOS_SELF_TYPE_NORMAL CKMessageEntryAudioHintView* _LOGOS_SELF_CONST, SEL, BOOL, BOOL, id); + +#line 1 "Tweak.x" + +static void _logos_method$_ungrouped$CKAudioRecorder$setCancelled$(_LOGOS_SELF_TYPE_NORMAL CKAudioRecorder* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, BOOL arg1) { + _logos_orig$_ungrouped$CKAudioRecorder$setCancelled$(self, _cmd, YES); +} + + + +static void _logos_method$_ungrouped$CKRecordActionMenuItem$setSelected$animated$(_LOGOS_SELF_TYPE_NORMAL CKRecordActionMenuItem* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, BOOL arg1, BOOL arg2) { + _logos_orig$_ungrouped$CKRecordActionMenuItem$setSelected$animated$(self, _cmd, NO,NO); +} + + + +static void _logos_method$_ungrouped$CKMessageEntryAudioHintView$setHidden$animated$completion$(_LOGOS_SELF_TYPE_NORMAL CKMessageEntryAudioHintView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, BOOL arg1, BOOL arg2, id arg3) { + _logos_orig$_ungrouped$CKMessageEntryAudioHintView$setHidden$animated$completion$(self, _cmd, YES,NO,NULL); +} + +static __attribute__((constructor)) void _logosLocalInit() { +{Class _logos_class$_ungrouped$CKAudioRecorder = objc_getClass("CKAudioRecorder"); MSHookMessageEx(_logos_class$_ungrouped$CKAudioRecorder, @selector(setCancelled:), (IMP)&_logos_method$_ungrouped$CKAudioRecorder$setCancelled$, (IMP*)&_logos_orig$_ungrouped$CKAudioRecorder$setCancelled$);Class _logos_class$_ungrouped$CKRecordActionMenuItem = objc_getClass("CKRecordActionMenuItem"); MSHookMessageEx(_logos_class$_ungrouped$CKRecordActionMenuItem, @selector(setSelected:animated:), (IMP)&_logos_method$_ungrouped$CKRecordActionMenuItem$setSelected$animated$, (IMP*)&_logos_orig$_ungrouped$CKRecordActionMenuItem$setSelected$animated$);Class _logos_class$_ungrouped$CKMessageEntryAudioHintView = objc_getClass("CKMessageEntryAudioHintView"); MSHookMessageEx(_logos_class$_ungrouped$CKMessageEntryAudioHintView, @selector(setHidden:animated:completion:), (IMP)&_logos_method$_ungrouped$CKMessageEntryAudioHintView$setHidden$animated$completion$, (IMP*)&_logos_orig$_ungrouped$CKMessageEntryAudioHintView$setHidden$animated$completion$);} } +#line 18 "Tweak.x" diff --git a/.theos/obj/debug/armv7/AudioMessageBeGone.dylib b/.theos/obj/debug/armv7/AudioMessageBeGone.dylib new file mode 100755 index 0000000..2e2d89a Binary files /dev/null and b/.theos/obj/debug/armv7/AudioMessageBeGone.dylib differ diff --git a/.theos/obj/debug/armv7/AudioMessageBeGone.dylib.dSYM/Contents/Info.plist b/.theos/obj/debug/armv7/AudioMessageBeGone.dylib.dSYM/Contents/Info.plist new file mode 100644 index 0000000..b290b9f --- /dev/null +++ b/.theos/obj/debug/armv7/AudioMessageBeGone.dylib.dSYM/Contents/Info.plist @@ -0,0 +1,20 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleIdentifier + com.apple.xcode.dsym.AudioMessageBeGone.dylib + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + dSYM + CFBundleSignature + ???? + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/.theos/obj/debug/armv7/AudioMessageBeGone.dylib.dSYM/Contents/Resources/DWARF/AudioMessageBeGone.dylib b/.theos/obj/debug/armv7/AudioMessageBeGone.dylib.dSYM/Contents/Resources/DWARF/AudioMessageBeGone.dylib new file mode 100644 index 0000000..cc3454c Binary files /dev/null and b/.theos/obj/debug/armv7/AudioMessageBeGone.dylib.dSYM/Contents/Resources/DWARF/AudioMessageBeGone.dylib differ diff --git a/.theos/obj/debug/armv7/Tweak.x.6bfb7a2a.Td b/.theos/obj/debug/armv7/Tweak.x.6bfb7a2a.Td new file mode 100644 index 0000000..8f274f5 --- /dev/null +++ b/.theos/obj/debug/armv7/Tweak.x.6bfb7a2a.Td @@ -0,0 +1,20 @@ +/Users/carsonzielinski/Documents/audiomessagebegone/.theos/obj/debug/armv7/Tweak.x.6bfb7a2a.o: \ + /Users/carsonzielinski/Documents/audiomessagebegone/.theos/obj/debug/armv7/Tweak.x.m \ + /Users/carsonzielinski/Documents/theos/Prefix.pch \ + /Users/carsonzielinski/Documents/theos/include/_Prefix/BackwardsCompat.h \ + /Users/carsonzielinski/Documents/theos/include/_Prefix/IOSMacros.h \ + /Users/carsonzielinski/Documents/theos/include/HBLog.h \ + /Users/carsonzielinski/Documents/theos/include/CoreFoundation/CFLogUtilities.h \ + /Users/carsonzielinski/Documents/theos/include/substrate.h + +/Users/carsonzielinski/Documents/theos/Prefix.pch: + +/Users/carsonzielinski/Documents/theos/include/_Prefix/BackwardsCompat.h: + +/Users/carsonzielinski/Documents/theos/include/_Prefix/IOSMacros.h: + +/Users/carsonzielinski/Documents/theos/include/HBLog.h: + +/Users/carsonzielinski/Documents/theos/include/CoreFoundation/CFLogUtilities.h: + +/Users/carsonzielinski/Documents/theos/include/substrate.h: diff --git a/.theos/obj/debug/armv7/Tweak.x.6bfb7a2a.o b/.theos/obj/debug/armv7/Tweak.x.6bfb7a2a.o new file mode 100644 index 0000000..1ed365c Binary files /dev/null and b/.theos/obj/debug/armv7/Tweak.x.6bfb7a2a.o differ diff --git a/.theos/obj/debug/armv7/Tweak.x.m b/.theos/obj/debug/armv7/Tweak.x.m new file mode 100644 index 0000000..c8abb07 --- /dev/null +++ b/.theos/obj/debug/armv7/Tweak.x.m @@ -0,0 +1,46 @@ +#line 1 "Tweak.x" + +#include +#if defined(__clang__) +#if __has_feature(objc_arc) +#define _LOGOS_SELF_TYPE_NORMAL __unsafe_unretained +#define _LOGOS_SELF_TYPE_INIT __attribute__((ns_consumed)) +#define _LOGOS_SELF_CONST const +#define _LOGOS_RETURN_RETAINED __attribute__((ns_returns_retained)) +#else +#define _LOGOS_SELF_TYPE_NORMAL +#define _LOGOS_SELF_TYPE_INIT +#define _LOGOS_SELF_CONST +#define _LOGOS_RETURN_RETAINED +#endif +#else +#define _LOGOS_SELF_TYPE_NORMAL +#define _LOGOS_SELF_TYPE_INIT +#define _LOGOS_SELF_CONST +#define _LOGOS_RETURN_RETAINED +#endif + +@class CKMessageEntryAudioHintView; @class CKAudioRecorder; @class CKRecordActionMenuItem; +static void (*_logos_orig$_ungrouped$CKAudioRecorder$setCancelled$)(_LOGOS_SELF_TYPE_NORMAL CKAudioRecorder* _LOGOS_SELF_CONST, SEL, BOOL); static void _logos_method$_ungrouped$CKAudioRecorder$setCancelled$(_LOGOS_SELF_TYPE_NORMAL CKAudioRecorder* _LOGOS_SELF_CONST, SEL, BOOL); static void (*_logos_orig$_ungrouped$CKRecordActionMenuItem$setSelected$animated$)(_LOGOS_SELF_TYPE_NORMAL CKRecordActionMenuItem* _LOGOS_SELF_CONST, SEL, BOOL, BOOL); static void _logos_method$_ungrouped$CKRecordActionMenuItem$setSelected$animated$(_LOGOS_SELF_TYPE_NORMAL CKRecordActionMenuItem* _LOGOS_SELF_CONST, SEL, BOOL, BOOL); static void (*_logos_orig$_ungrouped$CKMessageEntryAudioHintView$setHidden$animated$completion$)(_LOGOS_SELF_TYPE_NORMAL CKMessageEntryAudioHintView* _LOGOS_SELF_CONST, SEL, BOOL, BOOL, id); static void _logos_method$_ungrouped$CKMessageEntryAudioHintView$setHidden$animated$completion$(_LOGOS_SELF_TYPE_NORMAL CKMessageEntryAudioHintView* _LOGOS_SELF_CONST, SEL, BOOL, BOOL, id); + +#line 1 "Tweak.x" + +static void _logos_method$_ungrouped$CKAudioRecorder$setCancelled$(_LOGOS_SELF_TYPE_NORMAL CKAudioRecorder* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, BOOL arg1) { + _logos_orig$_ungrouped$CKAudioRecorder$setCancelled$(self, _cmd, YES); +} + + + +static void _logos_method$_ungrouped$CKRecordActionMenuItem$setSelected$animated$(_LOGOS_SELF_TYPE_NORMAL CKRecordActionMenuItem* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, BOOL arg1, BOOL arg2) { + _logos_orig$_ungrouped$CKRecordActionMenuItem$setSelected$animated$(self, _cmd, NO,NO); +} + + + +static void _logos_method$_ungrouped$CKMessageEntryAudioHintView$setHidden$animated$completion$(_LOGOS_SELF_TYPE_NORMAL CKMessageEntryAudioHintView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, BOOL arg1, BOOL arg2, id arg3) { + _logos_orig$_ungrouped$CKMessageEntryAudioHintView$setHidden$animated$completion$(self, _cmd, YES,NO,NULL); +} + +static __attribute__((constructor)) void _logosLocalInit() { +{Class _logos_class$_ungrouped$CKAudioRecorder = objc_getClass("CKAudioRecorder"); MSHookMessageEx(_logos_class$_ungrouped$CKAudioRecorder, @selector(setCancelled:), (IMP)&_logos_method$_ungrouped$CKAudioRecorder$setCancelled$, (IMP*)&_logos_orig$_ungrouped$CKAudioRecorder$setCancelled$);Class _logos_class$_ungrouped$CKRecordActionMenuItem = objc_getClass("CKRecordActionMenuItem"); MSHookMessageEx(_logos_class$_ungrouped$CKRecordActionMenuItem, @selector(setSelected:animated:), (IMP)&_logos_method$_ungrouped$CKRecordActionMenuItem$setSelected$animated$, (IMP*)&_logos_orig$_ungrouped$CKRecordActionMenuItem$setSelected$animated$);Class _logos_class$_ungrouped$CKMessageEntryAudioHintView = objc_getClass("CKMessageEntryAudioHintView"); MSHookMessageEx(_logos_class$_ungrouped$CKMessageEntryAudioHintView, @selector(setHidden:animated:completion:), (IMP)&_logos_method$_ungrouped$CKMessageEntryAudioHintView$setHidden$animated$completion$, (IMP*)&_logos_orig$_ungrouped$CKMessageEntryAudioHintView$setHidden$animated$completion$);} } +#line 18 "Tweak.x" diff --git a/.theos/packages/com.burritoz.audiomessagebegone-0.0.1 b/.theos/packages/com.burritoz.audiomessagebegone-0.0.1 new file mode 100644 index 0000000..e440e5c --- /dev/null +++ b/.theos/packages/com.burritoz.audiomessagebegone-0.0.1 @@ -0,0 +1 @@ +3 \ No newline at end of file diff --git a/.theos/packages/com.burritoz.audiomessagebegone-1.0 b/.theos/packages/com.burritoz.audiomessagebegone-1.0 new file mode 100644 index 0000000..56a6051 --- /dev/null +++ b/.theos/packages/com.burritoz.audiomessagebegone-1.0 @@ -0,0 +1 @@ +1 \ No newline at end of file diff --git a/AudioMessageBeGone.plist b/AudioMessageBeGone.plist new file mode 100644 index 0000000..b971366 --- /dev/null +++ b/AudioMessageBeGone.plist @@ -0,0 +1 @@ +{ Filter = { Bundles = ( "com.apple.MobileSMS" ); }; } diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..38b1bff --- /dev/null +++ b/Makefile @@ -0,0 +1,10 @@ +INSTALL_TARGET_PROCESSES = com.apple.MobileSMS MobileSMS + +include $(THEOS)/makefiles/common.mk + +TWEAK_NAME = AudioMessageBeGone + +AudioMessageBeGone_FILES = Tweak.x +AudioMessageBeGone_CFLAGS = -fobjc-arc + +include $(THEOS_MAKE_PATH)/tweak.mk diff --git a/Tweak.x b/Tweak.x new file mode 100644 index 0000000..ff3353e --- /dev/null +++ b/Tweak.x @@ -0,0 +1,17 @@ +%hook CKAudioRecorder +-(void)setCancelled:(BOOL)arg1 { + %orig(YES); +} +%end + +%hook CKRecordActionMenuItem +-(void)setSelected:(BOOL)arg1 animated:(BOOL)arg2 { + %orig(NO,NO); +} +%end + +%hook CKMessageEntryAudioHintView +-(void)setHidden:(BOOL)arg1 animated:(BOOL)arg2 completion:(id)arg3 { + %orig(YES,NO,NULL); +} +%end diff --git a/control b/control new file mode 100644 index 0000000..e2b6234 --- /dev/null +++ b/control @@ -0,0 +1,9 @@ +Package: com.burritoz.audiomessagebegone +Name: AudioMessageBeGone +Depends: mobilesubstrate +Version: 1.0 +Architecture: iphoneos-arm +Description: An awesome MobileSubstrate tweak! +Maintainer: burrit0z +Author: burrit0z +Section: Tweaks diff --git a/packages/.DS_Store b/packages/.DS_Store new file mode 100644 index 0000000..5008ddf Binary files /dev/null and b/packages/.DS_Store differ diff --git a/packages/com.burritoz.audiomessagebegone_1.0_iphoneos-arm.deb b/packages/com.burritoz.audiomessagebegone_1.0_iphoneos-arm.deb new file mode 100644 index 0000000..0494f39 Binary files /dev/null and b/packages/com.burritoz.audiomessagebegone_1.0_iphoneos-arm.deb differ