From ed1e428fba75b03eae532ef46e33d1bff6b94788 Mon Sep 17 00:00:00 2001 From: FivePixels Date: Sun, 14 Jun 2020 13:16:31 -0500 Subject: 1.0 --- .../arm64/INPRootListController.m.bedc12ed.Td | 22 +++++ .../debug/arm64/INPRootListController.m.bedc12ed.o | Bin 0 -> 35944 bytes .../arm64/IntemperatePrefs.bundle/IntemperatePrefs | Bin 0 -> 35956 bytes .../IntemperatePrefs.dSYM/Contents/Info.plist | 20 +++++ .../Contents/Resources/DWARF/IntemperatePrefs | Bin 0 -> 42858 bytes .theos/obj/debug/arm64/Tweak.x.be724e48.Td | 20 +++++ .theos/obj/debug/arm64/Tweak.x.be724e48.o | Bin 0 -> 14740 bytes .theos/obj/debug/arm64/Tweak.x.m | 98 +++++++++++++++++++++ .theos/obj/debug/arm64/intemperate.dylib | Bin 0 -> 37900 bytes .../intemperate.dylib.dSYM/Contents/Info.plist | 20 +++++ .../Contents/Resources/DWARF/intemperate.dylib | Bin 0 -> 15591 bytes 11 files changed, 180 insertions(+) create mode 100644 .theos/obj/debug/arm64/INPRootListController.m.bedc12ed.Td create mode 100644 .theos/obj/debug/arm64/INPRootListController.m.bedc12ed.o create mode 100755 .theos/obj/debug/arm64/IntemperatePrefs.bundle/IntemperatePrefs create mode 100644 .theos/obj/debug/arm64/IntemperatePrefs.bundle/IntemperatePrefs.dSYM/Contents/Info.plist create mode 100644 .theos/obj/debug/arm64/IntemperatePrefs.bundle/IntemperatePrefs.dSYM/Contents/Resources/DWARF/IntemperatePrefs create mode 100644 .theos/obj/debug/arm64/Tweak.x.be724e48.Td create mode 100644 .theos/obj/debug/arm64/Tweak.x.be724e48.o create mode 100644 .theos/obj/debug/arm64/Tweak.x.m create mode 100755 .theos/obj/debug/arm64/intemperate.dylib create mode 100644 .theos/obj/debug/arm64/intemperate.dylib.dSYM/Contents/Info.plist create mode 100644 .theos/obj/debug/arm64/intemperate.dylib.dSYM/Contents/Resources/DWARF/intemperate.dylib (limited to '.theos/obj/debug/arm64') diff --git a/.theos/obj/debug/arm64/INPRootListController.m.bedc12ed.Td b/.theos/obj/debug/arm64/INPRootListController.m.bedc12ed.Td new file mode 100644 index 0000000..0e2cbf3 --- /dev/null +++ b/.theos/obj/debug/arm64/INPRootListController.m.bedc12ed.Td @@ -0,0 +1,22 @@ +/Users/dylanbolger/Development/iOS/Tweaks/intemperate/.theos/obj/debug/arm64/INPRootListController.m.bedc12ed.o: \ + INPRootListController.m /Users/dylanbolger/theos/Prefix.pch \ + /Users/dylanbolger/theos/vendor/include/_Prefix/BackwardsCompat.h \ + /Users/dylanbolger/theos/vendor/include/_Prefix/IOSMacros.h \ + /Users/dylanbolger/theos/vendor/include/HBLog.h \ + /Users/dylanbolger/theos/vendor/include/CoreFoundation/CFLogUtilities.h \ + /Users/dylanbolger/theos/vendor/include/Preferences/PSListController.h \ + /Users/dylanbolger/theos/vendor/include/Preferences/PSViewController.h + +/Users/dylanbolger/theos/Prefix.pch: + +/Users/dylanbolger/theos/vendor/include/_Prefix/BackwardsCompat.h: + +/Users/dylanbolger/theos/vendor/include/_Prefix/IOSMacros.h: + +/Users/dylanbolger/theos/vendor/include/HBLog.h: + +/Users/dylanbolger/theos/vendor/include/CoreFoundation/CFLogUtilities.h: + +/Users/dylanbolger/theos/vendor/include/Preferences/PSListController.h: + +/Users/dylanbolger/theos/vendor/include/Preferences/PSViewController.h: diff --git a/.theos/obj/debug/arm64/INPRootListController.m.bedc12ed.o b/.theos/obj/debug/arm64/INPRootListController.m.bedc12ed.o new file mode 100644 index 0000000..89af949 Binary files /dev/null and b/.theos/obj/debug/arm64/INPRootListController.m.bedc12ed.o differ diff --git a/.theos/obj/debug/arm64/IntemperatePrefs.bundle/IntemperatePrefs b/.theos/obj/debug/arm64/IntemperatePrefs.bundle/IntemperatePrefs new file mode 100755 index 0000000..5f22e6f Binary files /dev/null and b/.theos/obj/debug/arm64/IntemperatePrefs.bundle/IntemperatePrefs differ diff --git a/.theos/obj/debug/arm64/IntemperatePrefs.bundle/IntemperatePrefs.dSYM/Contents/Info.plist b/.theos/obj/debug/arm64/IntemperatePrefs.bundle/IntemperatePrefs.dSYM/Contents/Info.plist new file mode 100644 index 0000000..ad590d0 --- /dev/null +++ b/.theos/obj/debug/arm64/IntemperatePrefs.bundle/IntemperatePrefs.dSYM/Contents/Info.plist @@ -0,0 +1,20 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleIdentifier + com.apple.xcode.dsym.IntemperatePrefs + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + dSYM + CFBundleSignature + ???? + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/.theos/obj/debug/arm64/IntemperatePrefs.bundle/IntemperatePrefs.dSYM/Contents/Resources/DWARF/IntemperatePrefs b/.theos/obj/debug/arm64/IntemperatePrefs.bundle/IntemperatePrefs.dSYM/Contents/Resources/DWARF/IntemperatePrefs new file mode 100644 index 0000000..ef82dbe Binary files /dev/null and b/.theos/obj/debug/arm64/IntemperatePrefs.bundle/IntemperatePrefs.dSYM/Contents/Resources/DWARF/IntemperatePrefs differ diff --git a/.theos/obj/debug/arm64/Tweak.x.be724e48.Td b/.theos/obj/debug/arm64/Tweak.x.be724e48.Td new file mode 100644 index 0000000..5970d3c --- /dev/null +++ b/.theos/obj/debug/arm64/Tweak.x.be724e48.Td @@ -0,0 +1,20 @@ +/Users/dylanbolger/Development/iOS/Tweaks/intemperate/.theos/obj/debug/arm64/Tweak.x.be724e48.o: \ + /Users/dylanbolger/Development/iOS/Tweaks/intemperate/.theos/obj/debug/arm64/Tweak.x.m \ + /Users/dylanbolger/theos/Prefix.pch \ + /Users/dylanbolger/theos/vendor/include/_Prefix/BackwardsCompat.h \ + /Users/dylanbolger/theos/vendor/include/_Prefix/IOSMacros.h \ + /Users/dylanbolger/theos/vendor/include/HBLog.h \ + /Users/dylanbolger/theos/vendor/include/CoreFoundation/CFLogUtilities.h \ + /Users/dylanbolger/theos/vendor/include/substrate.h + +/Users/dylanbolger/theos/Prefix.pch: + +/Users/dylanbolger/theos/vendor/include/_Prefix/BackwardsCompat.h: + +/Users/dylanbolger/theos/vendor/include/_Prefix/IOSMacros.h: + +/Users/dylanbolger/theos/vendor/include/HBLog.h: + +/Users/dylanbolger/theos/vendor/include/CoreFoundation/CFLogUtilities.h: + +/Users/dylanbolger/theos/vendor/include/substrate.h: diff --git a/.theos/obj/debug/arm64/Tweak.x.be724e48.o b/.theos/obj/debug/arm64/Tweak.x.be724e48.o new file mode 100644 index 0000000..7edf76e Binary files /dev/null and b/.theos/obj/debug/arm64/Tweak.x.be724e48.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..63fecca --- /dev/null +++ b/.theos/obj/debug/arm64/Tweak.x.m @@ -0,0 +1,98 @@ +#line 1 "Tweak.x" +static BOOL isEnabled; + +@interface SBThermalController : NSObject { +} +@property (nonatomic,readonly) long long level; +@property (getter=isInSunlight,nonatomic,readonly) BOOL inSunlight; ++(id)sharedInstance; +-(BOOL)_isBlocked; +-(BOOL)isThermalBlocked; +@end + +static void updatePrefs() { + NSMutableDictionary *prefs = [[NSMutableDictionary alloc] initWithContentsOfFile:@"/var/mobile/Library/Preferences/com.5px.intemperate.plist"]; + if (prefs) { + isEnabled = [prefs objectForKey:@"isEnabled"] ? [[prefs objectForKey:@"isEnabled"] intValue] : isEnabled; + } +} + + +#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 SBThermalController; + + +#line 19 "Tweak.x" +static void (*_logos_orig$latestSyntax$SBThermalController$startListeningForThermalEvents)(_LOGOS_SELF_TYPE_NORMAL SBThermalController* _LOGOS_SELF_CONST, SEL); static void _logos_method$latestSyntax$SBThermalController$startListeningForThermalEvents(_LOGOS_SELF_TYPE_NORMAL SBThermalController* _LOGOS_SELF_CONST, SEL); static void (*_logos_orig$latestSyntax$SBThermalController$_setBlocked$)(_LOGOS_SELF_TYPE_NORMAL SBThermalController* _LOGOS_SELF_CONST, SEL, BOOL); static void _logos_method$latestSyntax$SBThermalController$_setBlocked$(_LOGOS_SELF_TYPE_NORMAL SBThermalController* _LOGOS_SELF_CONST, SEL, BOOL); static BOOL (*_logos_orig$latestSyntax$SBThermalController$isThermalBlocked)(_LOGOS_SELF_TYPE_NORMAL SBThermalController* _LOGOS_SELF_CONST, SEL); static BOOL _logos_method$latestSyntax$SBThermalController$isThermalBlocked(_LOGOS_SELF_TYPE_NORMAL SBThermalController* _LOGOS_SELF_CONST, SEL); static BOOL (*_logos_orig$latestSyntax$SBThermalController$_isBlocked)(_LOGOS_SELF_TYPE_NORMAL SBThermalController* _LOGOS_SELF_CONST, SEL); static BOOL _logos_method$latestSyntax$SBThermalController$_isBlocked(_LOGOS_SELF_TYPE_NORMAL SBThermalController* _LOGOS_SELF_CONST, SEL); static BOOL (*_logos_orig$latestSyntax$SBThermalController$isInSunlight)(_LOGOS_SELF_TYPE_NORMAL SBThermalController* _LOGOS_SELF_CONST, SEL); static BOOL _logos_method$latestSyntax$SBThermalController$isInSunlight(_LOGOS_SELF_TYPE_NORMAL SBThermalController* _LOGOS_SELF_CONST, SEL); static int (*_logos_orig$latestSyntax$SBThermalController$level)(_LOGOS_SELF_TYPE_NORMAL SBThermalController* _LOGOS_SELF_CONST, SEL); static int _logos_method$latestSyntax$SBThermalController$level(_LOGOS_SELF_TYPE_NORMAL SBThermalController* _LOGOS_SELF_CONST, SEL); + +static void _logos_method$latestSyntax$SBThermalController$startListeningForThermalEvents(_LOGOS_SELF_TYPE_NORMAL SBThermalController* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) { +} +static void _logos_method$latestSyntax$SBThermalController$_setBlocked$(_LOGOS_SELF_TYPE_NORMAL SBThermalController* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, BOOL arg1) { + arg1 = NO; + _logos_orig$latestSyntax$SBThermalController$_setBlocked$(self, _cmd, arg1); +} +static BOOL _logos_method$latestSyntax$SBThermalController$isThermalBlocked(_LOGOS_SELF_TYPE_NORMAL SBThermalController* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) { + return NO; +} +static BOOL _logos_method$latestSyntax$SBThermalController$_isBlocked(_LOGOS_SELF_TYPE_NORMAL SBThermalController* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) { + return NO; +} +static BOOL _logos_method$latestSyntax$SBThermalController$isInSunlight(_LOGOS_SELF_TYPE_NORMAL SBThermalController* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) { + return NO; +} +static int _logos_method$latestSyntax$SBThermalController$level(_LOGOS_SELF_TYPE_NORMAL SBThermalController* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) { + return 0; +} + + + +static void (*_logos_orig$previousSyntax$SBThermalController$respondToCurrentThermalCondition)(_LOGOS_SELF_TYPE_NORMAL SBThermalController* _LOGOS_SELF_CONST, SEL); static void _logos_method$previousSyntax$SBThermalController$respondToCurrentThermalCondition(_LOGOS_SELF_TYPE_NORMAL SBThermalController* _LOGOS_SELF_CONST, SEL); static void (*_logos_orig$previousSyntax$SBThermalController$showThermalAlertIfNecessary)(_LOGOS_SELF_TYPE_NORMAL SBThermalController* _LOGOS_SELF_CONST, SEL); static void _logos_method$previousSyntax$SBThermalController$showThermalAlertIfNecessary(_LOGOS_SELF_TYPE_NORMAL SBThermalController* _LOGOS_SELF_CONST, SEL); static BOOL (*_logos_orig$previousSyntax$SBThermalController$isInSunlight)(_LOGOS_SELF_TYPE_NORMAL SBThermalController* _LOGOS_SELF_CONST, SEL); static BOOL _logos_method$previousSyntax$SBThermalController$isInSunlight(_LOGOS_SELF_TYPE_NORMAL SBThermalController* _LOGOS_SELF_CONST, SEL); static int (*_logos_orig$previousSyntax$SBThermalController$level)(_LOGOS_SELF_TYPE_NORMAL SBThermalController* _LOGOS_SELF_CONST, SEL); static int _logos_method$previousSyntax$SBThermalController$level(_LOGOS_SELF_TYPE_NORMAL SBThermalController* _LOGOS_SELF_CONST, SEL); + +static void _logos_method$previousSyntax$SBThermalController$respondToCurrentThermalCondition(_LOGOS_SELF_TYPE_NORMAL SBThermalController* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) { +} +static void _logos_method$previousSyntax$SBThermalController$showThermalAlertIfNecessary(_LOGOS_SELF_TYPE_NORMAL SBThermalController* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) { +} +static BOOL _logos_method$previousSyntax$SBThermalController$isInSunlight(_LOGOS_SELF_TYPE_NORMAL SBThermalController* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) { + _logos_orig$previousSyntax$SBThermalController$isInSunlight(self, _cmd); + return NO; +} +static int _logos_method$previousSyntax$SBThermalController$level(_LOGOS_SELF_TYPE_NORMAL SBThermalController* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd) { + _logos_orig$previousSyntax$SBThermalController$level(self, _cmd); + return 0; +} + + + +static __attribute__((constructor)) void _logosLocalCtor_f1ee81aa(int __unused argc, char __unused **argv, char __unused **envp) { + updatePrefs(); + if (isEnabled) { + float version = [[[UIDevice currentDevice] systemVersion] floatValue]; + if (version >= 10) { + NSLog(@"Intemperate - iOS 10+"); + {Class _logos_class$latestSyntax$SBThermalController = objc_getClass("SBThermalController"); MSHookMessageEx(_logos_class$latestSyntax$SBThermalController, @selector(startListeningForThermalEvents), (IMP)&_logos_method$latestSyntax$SBThermalController$startListeningForThermalEvents, (IMP*)&_logos_orig$latestSyntax$SBThermalController$startListeningForThermalEvents);MSHookMessageEx(_logos_class$latestSyntax$SBThermalController, @selector(_setBlocked:), (IMP)&_logos_method$latestSyntax$SBThermalController$_setBlocked$, (IMP*)&_logos_orig$latestSyntax$SBThermalController$_setBlocked$);MSHookMessageEx(_logos_class$latestSyntax$SBThermalController, @selector(isThermalBlocked), (IMP)&_logos_method$latestSyntax$SBThermalController$isThermalBlocked, (IMP*)&_logos_orig$latestSyntax$SBThermalController$isThermalBlocked);MSHookMessageEx(_logos_class$latestSyntax$SBThermalController, @selector(_isBlocked), (IMP)&_logos_method$latestSyntax$SBThermalController$_isBlocked, (IMP*)&_logos_orig$latestSyntax$SBThermalController$_isBlocked);MSHookMessageEx(_logos_class$latestSyntax$SBThermalController, @selector(isInSunlight), (IMP)&_logos_method$latestSyntax$SBThermalController$isInSunlight, (IMP*)&_logos_orig$latestSyntax$SBThermalController$isInSunlight);MSHookMessageEx(_logos_class$latestSyntax$SBThermalController, @selector(level), (IMP)&_logos_method$latestSyntax$SBThermalController$level, (IMP*)&_logos_orig$latestSyntax$SBThermalController$level);} + } else if (version >= 8 && version < 10) { + NSLog(@"Intemperate - iOS 8/9"); + {Class _logos_class$previousSyntax$SBThermalController = objc_getClass("SBThermalController"); MSHookMessageEx(_logos_class$previousSyntax$SBThermalController, @selector(respondToCurrentThermalCondition), (IMP)&_logos_method$previousSyntax$SBThermalController$respondToCurrentThermalCondition, (IMP*)&_logos_orig$previousSyntax$SBThermalController$respondToCurrentThermalCondition);MSHookMessageEx(_logos_class$previousSyntax$SBThermalController, @selector(showThermalAlertIfNecessary), (IMP)&_logos_method$previousSyntax$SBThermalController$showThermalAlertIfNecessary, (IMP*)&_logos_orig$previousSyntax$SBThermalController$showThermalAlertIfNecessary);MSHookMessageEx(_logos_class$previousSyntax$SBThermalController, @selector(isInSunlight), (IMP)&_logos_method$previousSyntax$SBThermalController$isInSunlight, (IMP*)&_logos_orig$previousSyntax$SBThermalController$isInSunlight);MSHookMessageEx(_logos_class$previousSyntax$SBThermalController, @selector(level), (IMP)&_logos_method$previousSyntax$SBThermalController$level, (IMP*)&_logos_orig$previousSyntax$SBThermalController$level);} + } + } + +} diff --git a/.theos/obj/debug/arm64/intemperate.dylib b/.theos/obj/debug/arm64/intemperate.dylib new file mode 100755 index 0000000..0da5f67 Binary files /dev/null and b/.theos/obj/debug/arm64/intemperate.dylib differ diff --git a/.theos/obj/debug/arm64/intemperate.dylib.dSYM/Contents/Info.plist b/.theos/obj/debug/arm64/intemperate.dylib.dSYM/Contents/Info.plist new file mode 100644 index 0000000..4459c43 --- /dev/null +++ b/.theos/obj/debug/arm64/intemperate.dylib.dSYM/Contents/Info.plist @@ -0,0 +1,20 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleIdentifier + com.apple.xcode.dsym.intemperate.dylib + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + dSYM + CFBundleSignature + ???? + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/.theos/obj/debug/arm64/intemperate.dylib.dSYM/Contents/Resources/DWARF/intemperate.dylib b/.theos/obj/debug/arm64/intemperate.dylib.dSYM/Contents/Resources/DWARF/intemperate.dylib new file mode 100644 index 0000000..8075baf Binary files /dev/null and b/.theos/obj/debug/arm64/intemperate.dylib.dSYM/Contents/Resources/DWARF/intemperate.dylib differ -- cgit v1.2.3