Burrit0z 4 роки тому
джерело
коміт
58abfc4a7e
19 змінених файлів з 225 додано та 1 видалено
  1. +10
    -0
      .dragon/_/DEBIAN/control
  2. BIN
      .dragon/_/Library/MobileSubstrate/DynamicLibraries/kai.dylib
  3. +1
    -0
      .dragon/_/Library/MobileSubstrate/DynamicLibraries/kai.plist
  4. BIN
      .dragon/build/.ninja_deps
  5. +12
    -0
      .dragon/build/.ninja_log
  6. BIN
      .dragon/build/arm64/Kai.xm.mm.o
  7. BIN
      .dragon/build/arm64e/Kai.xm.mm.o
  8. BIN
      .dragon/build/armv7/Kai.xm.mm.o
  9. BIN
      .dragon/build/kai.arm64
  10. BIN
      .dragon/build/kai.arm64e
  11. BIN
      .dragon/build/kai.armv7
  12. +179
    -0
      .dragon/build/logos/Kai.xm.mm
  13. +1
    -0
      .dragon/last_package
  14. BIN
      .dragon/sign/.dragon/_/Library/MobileSubstrate/DynamicLibraries/kai.dylib.unsigned
  15. BIN
      .dragon/sign/.dragon/_/Library/MobileSubstrate/DynamicLibraries/kai.dylib.unsym
  16. +20
    -0
      .dragon/sign/.dragon/_/Library/MobileSubstrate/DynamicLibraries/kai.dylib.unsym.dSYM/Contents/Info.plist
  17. BIN
      .dragon/sign/.dragon/_/Library/MobileSubstrate/DynamicLibraries/kai.dylib.unsym.dSYM/Contents/Resources/DWARF/kai.dylib.unsym
  18. +1
    -0
      .gitignore
  19. +1
    -1
      Kai.xm

+ 10
- 0
.dragon/_/DEBIAN/control Переглянути файл

@@ -0,0 +1,10 @@
Package: com.burritoz.kai
Name: Kai
Version: 0.0.1
Architecture: iphoneos-arm
Description: An awesome MobileSubstrate tweak!
Maintainer: burrit0z
Author: burrit0z
Section: Tweaks
Depends: mobilesubstrate (>= 0.9.5000)
Installed-Size: 2056

BIN
.dragon/_/Library/MobileSubstrate/DynamicLibraries/kai.dylib Переглянути файл


+ 1
- 0
.dragon/_/Library/MobileSubstrate/DynamicLibraries/kai.plist Переглянути файл

@@ -0,0 +1 @@
{ Filter = { Bundles = ( "com.apple.springboard" ); }; }

BIN
.dragon/build/.ninja_deps Переглянути файл


+ 12
- 0
.dragon/build/.ninja_log Переглянути файл

@@ -0,0 +1,12 @@
# ninja log v5
0 489 1588095990336505228 .dragon/build/logos/Kai.xm.mm 2ff43d99226043a7
490 3100 1588095992929677755 .dragon/build/arm64e/Kai.xm.mm.o 4598f389cc63d95c
490 3103 1588095992933837787 .dragon/build/arm64/Kai.xm.mm.o 3d92451607ba4d79
489 3122 1588095992949324464 .dragon/build/armv7/Kai.xm.mm.o 4fe1c0d4e01f824e
3103 3581 1588095993423290676 .dragon/build/kai.arm64 4a5a6d812e458df
3100 3584 1588095993427260606 .dragon/build/kai.arm64e 3f60e77356505eb3
3122 3592 1588095993435835646 .dragon/build/kai.armv7 28dc0376c3d0fbcc
3592 3623 1588095993471341918 .dragon/sign/.dragon/_/Library/MobileSubstrate/DynamicLibraries/kai.dylib.unsym 9605f646a2b06131
3623 3818 1588095993666211343 .dragon/sign/.dragon/_/Library/MobileSubstrate/DynamicLibraries/kai.dylib.unsigned 30304c6c682e6c6d
3818 3850 1588095993696183759 .dragon/_/Library/MobileSubstrate/DynamicLibraries/kai.dylib d998911fb5a4bb3c
3850 3867 0 .dragon/build/trash/stage 4e5b61207c82583b

BIN
.dragon/build/arm64/Kai.xm.mm.o Переглянути файл


BIN
.dragon/build/arm64e/Kai.xm.mm.o Переглянути файл


BIN
.dragon/build/armv7/Kai.xm.mm.o Переглянути файл


BIN
.dragon/build/kai.arm64 Переглянути файл


BIN
.dragon/build/kai.arm64e Переглянути файл


BIN
.dragon/build/kai.armv7 Переглянути файл


+ 179
- 0
.dragon/build/logos/Kai.xm.mm Переглянути файл

@@ -0,0 +1,179 @@
#line 1 "Kai.xm"
#include <CoreFoundation/CoreFoundation.h>
#import <Foundation/Foundation.h>
#include <stdio.h>
#import <objc/runtime.h>
#import <UIKit/UIKit.h>

#import "KAIBattery.mm"
BOOL setFrame = NO;
KAIBattery *batteryWidget;
CGRect original;








@interface UIApplication (Kai)
+(id)sharedApplication;
-(BOOL)launchApplicationWithIdentifier:(id)arg1 suspended:(BOOL)arg2;
@end

@interface CSMainPageView : UIView
@property (nonatomic, strong) KAIBattery *battery;
-(void)updateForPresentation:(id)arg1;
@end




















#include <substrate.h>
#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 CSMainPageView; @class SBCoverSheetPrimarySlidingViewController;
static void (*_logos_orig$_ungrouped$SBCoverSheetPrimarySlidingViewController$viewWillAppear$)(_LOGOS_SELF_TYPE_NORMAL SBCoverSheetPrimarySlidingViewController* _LOGOS_SELF_CONST, SEL, BOOL); static void _logos_method$_ungrouped$SBCoverSheetPrimarySlidingViewController$viewWillAppear$(_LOGOS_SELF_TYPE_NORMAL SBCoverSheetPrimarySlidingViewController* _LOGOS_SELF_CONST, SEL, BOOL); static void (*_logos_orig$_ungrouped$CSMainPageView$updateForPresentation$)(_LOGOS_SELF_TYPE_NORMAL CSMainPageView* _LOGOS_SELF_CONST, SEL, id); static void _logos_method$_ungrouped$CSMainPageView$updateForPresentation$(_LOGOS_SELF_TYPE_NORMAL CSMainPageView* _LOGOS_SELF_CONST, SEL, id);

#line 47 "Kai.xm"

static void _logos_method$_ungrouped$SBCoverSheetPrimarySlidingViewController$viewWillAppear$(_LOGOS_SELF_TYPE_NORMAL SBCoverSheetPrimarySlidingViewController* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, BOOL arg1) {
_logos_orig$_ungrouped$SBCoverSheetPrimarySlidingViewController$viewWillAppear$(self, _cmd, arg1);
[batteryWidget updateBattery];
}





__attribute__((used)) static KAIBattery * _logos_method$_ungrouped$CSMainPageView$battery(CSMainPageView * __unused self, SEL __unused _cmd) { return (KAIBattery *)objc_getAssociatedObject(self, (void *)_logos_method$_ungrouped$CSMainPageView$battery); }; __attribute__((used)) static void _logos_method$_ungrouped$CSMainPageView$setBattery(CSMainPageView * __unused self, SEL __unused _cmd, KAIBattery * rawValue) { objc_setAssociatedObject(self, (void *)_logos_method$_ungrouped$CSMainPageView$battery, rawValue, OBJC_ASSOCIATION_RETAIN_NONATOMIC); }

static void _logos_method$_ungrouped$CSMainPageView$updateForPresentation$(_LOGOS_SELF_TYPE_NORMAL CSMainPageView* _LOGOS_SELF_CONST __unused self, SEL __unused _cmd, id arg1) {
_logos_orig$_ungrouped$CSMainPageView$updateForPresentation$(self, _cmd, arg1);
UIView *object = self;
if(!setFrame) {
original = self.frame;

self.battery = [[KAIBattery alloc] initWithFrame:CGRectMake(8, 155, object.frame.size.width - 16, object.frame.size.height)];
[self addSubview:self.battery];
setFrame = YES;
batteryWidget = self.battery;
}

object.frame = CGRectMake(
original.origin.x,
original.origin.y - (self.battery.number * 90),
original.size.width,
original.size.height + (self.battery.number * 90)
);






































































}

static __attribute__((constructor)) void _logosLocalInit() {
{Class _logos_class$_ungrouped$SBCoverSheetPrimarySlidingViewController = objc_getClass("SBCoverSheetPrimarySlidingViewController"); MSHookMessageEx(_logos_class$_ungrouped$SBCoverSheetPrimarySlidingViewController, @selector(viewWillAppear:), (IMP)&_logos_method$_ungrouped$SBCoverSheetPrimarySlidingViewController$viewWillAppear$, (IMP*)&_logos_orig$_ungrouped$SBCoverSheetPrimarySlidingViewController$viewWillAppear$);Class _logos_class$_ungrouped$CSMainPageView = objc_getClass("CSMainPageView"); MSHookMessageEx(_logos_class$_ungrouped$CSMainPageView, @selector(updateForPresentation:), (IMP)&_logos_method$_ungrouped$CSMainPageView$updateForPresentation$, (IMP*)&_logos_orig$_ungrouped$CSMainPageView$updateForPresentation$);{ char _typeEncoding[1024]; sprintf(_typeEncoding, "%s@:", @encode(KAIBattery *)); class_addMethod(_logos_class$_ungrouped$CSMainPageView, @selector(battery), (IMP)&_logos_method$_ungrouped$CSMainPageView$battery, _typeEncoding); sprintf(_typeEncoding, "v@:%s", @encode(KAIBattery *)); class_addMethod(_logos_class$_ungrouped$CSMainPageView, @selector(setBattery:), (IMP)&_logos_method$_ungrouped$CSMainPageView$setBattery, _typeEncoding); } } }
#line 151 "Kai.xm"

+ 1
- 0
.dragon/last_package Переглянути файл

@@ -0,0 +1 @@
com.burritoz.kai_0.0.1_iphoneos-arm.deb

BIN
.dragon/sign/.dragon/_/Library/MobileSubstrate/DynamicLibraries/kai.dylib.unsigned Переглянути файл


BIN
.dragon/sign/.dragon/_/Library/MobileSubstrate/DynamicLibraries/kai.dylib.unsym Переглянути файл


+ 20
- 0
.dragon/sign/.dragon/_/Library/MobileSubstrate/DynamicLibraries/kai.dylib.unsym.dSYM/Contents/Info.plist Переглянути файл

@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleIdentifier</key>
<string>com.apple.xcode.dsym.kai.dylib.unsym</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundlePackageType</key>
<string>dSYM</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
<string>1</string>
</dict>
</plist>

BIN
.dragon/sign/.dragon/_/Library/MobileSubstrate/DynamicLibraries/kai.dylib.unsym.dSYM/Contents/Resources/DWARF/kai.dylib.unsym Переглянути файл


+ 1
- 0
.gitignore Переглянути файл

@@ -1,3 +1,4 @@

*.deb
.DS_Store
./.*

+ 1
- 1
Kai.xm Переглянути файл

@@ -71,7 +71,7 @@ CGRect original;

object.frame = CGRectMake(
original.origin.x,
original.origin.y - (self.battery.number * 90),
original.origin.y + (self.battery.number * 90),
original.size.width,
original.size.height + (self.battery.number * 90)
);

Завантаження…
Відмінити
Зберегти