Prechádzať zdrojové kódy

updated it to actually launch on 11.1 without crashing, havent tested running it yet, should work okay. bootstrap is very close, nitotv wont launch but then when reinstlaled via deb it will from same exact version. maybe just install the deb after the bootstrap is installed.

Kevin Bradley 8 rokov pred
rodič
commit
e4505c7839

+ 2 - 1
Meridian/Meridian/views/ViewController.m

@@ -60,11 +60,12 @@ bool jailbreak_has_run = false;
         return;
     }
     
+    /*
     [self writeTextPlain:[NSString stringWithFormat:@"> %s on iOS %@ (Build %@)",
                           [self getDeviceIdentifier],
                           [self getVersionString],
                           [self getBuildString]]];
-    
+    */
     if (jailbreak_has_run) {
         [self writeTextPlain:@"> already jailbroken."];
         

BIN
Meridian/meridian.xcodeproj/project.xcworkspace/xcuserdata/kevinbradley.xcuserdatad/UserInterfaceState.xcuserstate


+ 25 - 1
Meridian/meridianTV/ViewController.m

@@ -13,7 +13,7 @@
 #import <Foundation/Foundation.h>
 #import "PureLayout.h"
 #import "UIColor+Additions.h"
-
+#import <CoreFoundation/CoreFoundation.h>
 //electra
 
 #import "NSTask.h"
@@ -27,6 +27,9 @@
 #include <string.h>
 #include <dlfcn.h>
 
+CF_EXPORT CFDictionaryRef _CFCopySystemVersionDictionary(void);
+CF_EXPORT CFDictionaryRef _CFCopyServerVersionDictionary(void);
+
 static ViewController *currentViewController;
 
 typedef NS_ENUM(NSInteger, BSInstallType) {
@@ -244,11 +247,17 @@ bool jailbreak_has_run = false;
         return;
     }
     */
+    
+    
     [self writeTextPlain:[NSString stringWithFormat:@"> %s on iOS %@ (Build %@)",
                           [self getDeviceIdentifier],
                           [self getVersionString],
                           [self getBuildString]]];
     
+    
+    
+    
+    
     if (jailbreak_has_run) {
         [self writeTextPlain:@"> already jailbroken."];
         
@@ -419,6 +428,21 @@ bool jailbreak_has_run = false;
 }
 
 - (NSString *)getBuildString {
+    
+    
+    NSString *hey = [[NSProcessInfo processInfo] operatingSystemVersionString];
+    CFDictionaryRef dict= NULL;
+    CFStringRef str = NULL;
+    char cstr[256];
+    
+    dict = _CFCopyServerVersionDictionary();
+    if (dict == NULL)
+        dict = _CFCopySystemVersionDictionary();
+    
+    str = CFDictionaryGetValue(dict, CFSTR("ProductBuildVersion"));
+    //NSLog(@"pbv: %@", str);
+    return (__bridge NSString *)str;
+    
     NSString *verString = [[NSProcessInfo processInfo] operatingSystemVersionString];
     // wish there was a better way of doing this (hopefully there is)
     NSRegularExpression *regex = [NSRegularExpression regularExpressionWithPattern:@"14[A-Za-z0-9]{3,5}"

BIN
Meridian/meridianTV/bootstrap.tar.gz


+ 2 - 2
Meridian/meridianTV/electra_extras/libsubstrate/control

@@ -1,9 +1,9 @@
 Package: mobilesubstrate
-Name: libsubstrate
+Name: substrate shim
 Depends: 
 Version: 0.0.1
 Architecture: appletvos-arm64
-Description: An awesome library of some sort!!
+Description: A shim for mobilesubstrate compatibility in substitute
 Maintainer: CoolStar
 Author: CoolStar
 Section: System

+ 7 - 7
Meridian/meridianTV/electra_extras/sbinject/.theos/_/DEBIAN/control

@@ -1,11 +1,11 @@
-Package: com.yourcompany.sbinject
-Name: SBInject
+Package: com.nito.tweakinject
+Name: TweakInject
 Depends: 
 Architecture: appletvos-arm64
-Description: An awesome library of some sort!!
-Maintainer: CoolStar
-Author: CoolStar
+Description: A modified version of Coolstars TweakInject to work on tvOS
+Maintainer: Kevin Bradley
+Author: Kevin Bradley
 Section: System
 Tag: role::developer
-Version: 0.0.1-14
-Installed-Size: 88
+Version: 0.0.1-3
+Installed-Size: 92

+ 1 - 1
Meridian/meridianTV/electra_extras/sbinject/.theos/last_package

@@ -1 +1 @@
-./debs/com.yourcompany.sbinject_0.0.1-14_appletvos-arm64.deb
+./debs/com.nito.tweakinject_0.0.1-3_appletvos-arm64.deb

+ 7 - 0
Meridian/meridianTV/electra_extras/sbinject/Makefile

@@ -10,3 +10,10 @@ TweakInject_FILES = SBInject.x
 #SBInject_USE_SUBSTRATE=0
 
 include $(THEOS_MAKE_PATH)/library.mk
+
+after-stage::
+	cd $(FW_STAGING_DIR)/usr/lib/ ; pwd ; ls -al ; ln -s TweakInject.dylib TweakLoader.dylib
+
+	
+	
+	

+ 5 - 5
Meridian/meridianTV/electra_extras/sbinject/control

@@ -1,10 +1,10 @@
-Package: com.yourcompany.sbinject
-Name: SBInject
+Package: com.nito.tweakinject
+Name: TweakInject
 Depends: 
 Version: 0.0.1
 Architecture: appletvos-arm64
-Description: An awesome library of some sort!!
-Maintainer: CoolStar
-Author: CoolStar
+Description: A modified version of Coolstars TweakInject to work on tvOS
+Maintainer: Kevin Bradley
+Author: Kevin Bradley
 Section: System
 Tag: role::developer