瀏覽代碼

Recompiled for iOS 14

master
gilshahar7 3 年之前
父節點
當前提交
2eb10da3cc
共有 4 個文件被更改,包括 8 次插入8 次删除
  1. +1
    -0
      Makefile
  2. +6
    -7
      Tweak.xm
  3. +1
    -1
      control
  4. 二進制
      packages/com.gilshahar7.pearlretry_1.2_iphoneos-arm.deb

+ 1
- 0
Makefile 查看文件

@@ -1,3 +1,4 @@
FINALPACKAGE = 1
ARCHS = armv7 arm64 arm64e
export TARGET = iphone:clang:11.2:7.0


+ 6
- 7
Tweak.xm 查看文件

@@ -10,25 +10,24 @@
float delay = 0;

static void loadPrefs() {
NSMutableDictionary *prefs = [[NSMutableDictionary alloc] initWithContentsOfFile:PLIST_PATH];
delay = [[prefs objectForKey:@"delay"] floatValue];
NSMutableDictionary *prefs = [[NSMutableDictionary alloc] initWithContentsOfFile:PLIST_PATH];
delay = [[prefs objectForKey:@"delay"] floatValue];
}

%hook SBDashBoardPearlUnlockBehavior
-(void)_handlePearlFailure{
%orig;
%orig;
[[%c(SBUIBiometricResource) sharedInstance] noteScreenDidTurnOff];
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delay * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delay * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[[%c(SBUIBiometricResource) sharedInstance] noteScreenWillTurnOn];
});
}
%end



%ctor{
loadPrefs();
CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), NULL, (CFNotificationCallback)loadPrefs, CFSTR("com.gilshahar7.pearlretryprefs.settingschanged"), NULL, CFNotificationSuspensionBehaviorCoalesce);
loadPrefs();
CFNotificationCenterAddObserver(CFNotificationCenterGetDarwinNotifyCenter(), NULL, (CFNotificationCallback)loadPrefs, CFSTR("com.gilshahar7.pearlretryprefs.settingschanged"), NULL, CFNotificationSuspensionBehaviorCoalesce);


}

+ 1
- 1
control 查看文件

@@ -1,7 +1,7 @@
Package: com.gilshahar7.pearlretry
Name: PearlRetry
Depends: mobilesubstrate
Version: 1.1
Version: 1.2
Architecture: iphoneos-arm
Description: Retry FaceID when failed to recognize.
Maintainer: gilshahar7

二進制
packages/com.gilshahar7.pearlretry_1.2_iphoneos-arm.deb 查看文件


Loading…
取消
儲存