Skip to content

Commit

Permalink
Update b2
Browse files Browse the repository at this point in the history
Removed unused assets, fixed UI bug with text log, removed unused functions, fixed uicache issues where it would always run after re-jailbreak, clean up + formatting.
  • Loading branch information
staturnzz committed Feb 26, 2023
1 parent 9776e08 commit a419077
Show file tree
Hide file tree
Showing 24 changed files with 19 additions and 101 deletions.
4 changes: 2 additions & 2 deletions socket.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_INJECT_BASE_ENTITLEMENTS = YES;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1.0b1;
CURRENT_PROJECT_VERSION = 1.0b2;
DEVELOPMENT_TEAM = "";
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = socket/Info.plist;
Expand Down Expand Up @@ -437,7 +437,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_INJECT_BASE_ENTITLEMENTS = YES;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1.0b1;
CURRENT_PROJECT_VERSION = 1.0b2;
DEVELOPMENT_TEAM = "";
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = socket/Info.plist;
Expand Down
Binary file not shown.
8 changes: 4 additions & 4 deletions socket/jailbreak.m
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@
#define filter(a) filteredArrayUsingPredicate:[NSPredicate predicateWithFormat:@a]
#define concat(a,b) [NSString stringWithFormat:a, b]

extern int (*dsystem)(const char *);
extern char* const* environ;
bool run_uicache = false;
mach_port_t tfp0_port;
uint32_t k_base;
uint32_t kernel_slide;
Expand Down Expand Up @@ -99,7 +97,6 @@ void install_zebra(void) {
}

void install_bootstrap(void) {
run_uicache = true;
status(@"[*] moving files\n");
copyfile(bundle("tar").path.UTF8String, "/bin/tar", NULL, COPYFILE_ALL);
copyfile(bundle("launchctl").path.UTF8String, "/bin/launchctl", NULL, COPYFILE_ALL);
Expand Down Expand Up @@ -130,6 +127,10 @@ void install_bootstrap(void) {

status(@"[*] installing zebra\n");
install_zebra();

status(@"[*] running uicache\n");
p_spawn(@"/usr/bin/uicache", @[]);

}


Expand Down Expand Up @@ -326,7 +327,6 @@ int start_jailbreak(void) {

status(@"[*] loading daemons\n");
if ([tweaks isEqual:@"yes"]) load_daemons();
if (run_uicache) status(@"[*] running uicache\n"); p_spawn(@"/usr/bin/uicache", @[]);

cleanup();
status(@"[*] all done!\n\n");
Expand Down

This file was deleted.

Binary file not shown.

This file was deleted.

Binary file not shown.

This file was deleted.

Binary file not shown.

This file was deleted.

Binary file not shown.
12 changes: 6 additions & 6 deletions socket/supporting files/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
<fontDescription key="fontDescription" name="Futura-Medium" family="Futura" pointSize="13"/>
<color key="tintColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" image="icons8-engineering-30()">
<state key="normal" image="cog">
<preferredSymbolConfiguration key="preferredSymbolConfiguration" configurationType="pointSize" pointSize="14" scale="small"/>
</state>
<userDefinedRuntimeAttributes>
Expand Down Expand Up @@ -90,7 +90,7 @@
<fontDescription key="fontDescription" name="Futura-Medium" family="Futura" pointSize="13"/>
<color key="tintColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" image="icons8-newspaper-30">
<state key="normal" image="news">
<preferredSymbolConfiguration key="preferredSymbolConfiguration" configurationType="pointSize" pointSize="15" scale="default"/>
</state>
<userDefinedRuntimeAttributes>
Expand Down Expand Up @@ -568,7 +568,7 @@
<rect key="frame" x="0.0" y="0.0" width="320" height="43.5"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" insetsLayoutMarginsFromSafeArea="NO" text="Timhstar" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="txS-9U-G1j">
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" ambiguous="YES" insetsLayoutMarginsFromSafeArea="NO" text="Timhstar" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="txS-9U-G1j">
<rect key="frame" x="16" y="0.0" width="154" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<color key="tintColor" systemColor="tintColor"/>
Expand All @@ -588,7 +588,7 @@
<rect key="frame" x="0.0" y="0.0" width="320" height="43.5"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" insetsLayoutMarginsFromSafeArea="NO" text="Zebra Team" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="x6r-qg-th0">
<label opaque="NO" multipleTouchEnabled="YES" contentMode="left" ambiguous="YES" insetsLayoutMarginsFromSafeArea="NO" text="Zebra Team" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="x6r-qg-th0">
<rect key="frame" x="16" y="0.0" width="154" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<color key="tintColor" systemColor="tintColor"/>
Expand Down Expand Up @@ -1336,9 +1336,9 @@ Public License instead of this License. But first, please read
</scenes>
<color key="tintColor" systemColor="systemRedColor"/>
<resources>
<image name="cog" width="30" height="30"/>
<image name="geometric" width="1000" height="2000"/>
<image name="icons8-engineering-30()" width="30" height="30"/>
<image name="icons8-newspaper-30" width="30" height="30"/>
<image name="news" width="30" height="30"/>
<systemColor name="systemRedColor">
<color red="1" green="0.23137254901960785" blue="0.18823529411764706" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</systemColor>
Expand Down
2 changes: 2 additions & 0 deletions socket/supporting files/Credits.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
#import <Foundation/Foundation.h>
#import "Credits.h"

// news icons by Icons8 https://icons8.com/icons/ios-glyphs

@interface Credits ()
@end

Expand Down
2 changes: 2 additions & 0 deletions socket/supporting files/Settings.m
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// Created by staturnz on 1/24/23.
//

// cog icons by Icons8 https://icons8.com/icons/ios-glyphs

#import <Foundation/Foundation.h>
#import "Settings.h"
#include <pthread.h>
Expand Down
5 changes: 3 additions & 2 deletions socket/supporting files/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ - (void) viewWillAppear:(BOOL)animated {

#pragma mark - [*]-- Theme Stuff --[*]


NSString *theme = [[NSUserDefaults standardUserDefaults] stringForKey:@"theme"];
if ([theme isEqual:@"aurora"]) {
[[UIView appearance] setTintColor:UIColorFromRGB(0x92B4A7)];
Expand Down Expand Up @@ -73,7 +74,7 @@ - (void)logText:(NSNotification *)noti {
NSString *str = [NSString stringWithFormat: @"%@%@", self.log.text, noti.userInfo[@"msg"][0]];
dispatch_async(dispatch_get_main_queue(), ^{
self.log.text = str;
NSRange lastLine = NSMakeRange(self.log.text.length - 1, 1);
NSRange lastLine = NSMakeRange(self.log.text.length - 2, 1);
[self.log scrollRangeToVisible:lastLine];
});
}
Expand Down Expand Up @@ -130,7 +131,7 @@ - (void)viewDidLoad {

UIAlertController *alertController = [UIAlertController alertControllerWithTitle:@"Welcome"
message:@"It seems this is your first time using Socket.\
Please note this this is currently in beta, so there may be issues.\
Please note that this is currently in beta, so there may be issues.\
If you need help or want to report an issue, feel free to message me\
on twitter @0x7FF7 or github @staturnzz. Enjoy!"
preferredStyle:UIAlertControllerStyleAlert];
Expand Down
3 changes: 0 additions & 3 deletions socket/supporting files/main.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@

#import <UIKit/UIKit.h>
#import "AppDelegate.h"
#include <dlfcn.h>
int (*dsystem)(const char *) = 0;

int main(int argc, char * argv[]) {
dsystem = dlsym(RTLD_DEFAULT,"system");
NSString * appDelegateClassName;
@autoreleasepool {
appDelegateClassName = NSStringFromClass([AppDelegate class]);
Expand Down

0 comments on commit a419077

Please sign in to comment.