diff --git a/Tweak.xm b/Tweak.xm index cfdf786..f3a81b0 100644 --- a/Tweak.xm +++ b/Tweak.xm @@ -446,7 +446,7 @@ BOOL isTouchIDAvailable() { LAContext *myContext = [[LAContext alloc] init]; NSError *authError = nil; - if (![myContext canEvaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics error:&authError]) { + if (![myContext canEvaluatePolicy:LAPolicyDeviceOwnerAuthentication error:&authError]) { NSLog(@"%@", [authError localizedDescription]); return NO; } @@ -495,8 +495,8 @@ BOOL isTouchIDAvailable() { reason = @"Are you the device owner?"; NSError *error = nil; - if ([context canEvaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics error:&error]) { - [context evaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics localizedReason:reason reply:^(BOOL success, NSError *error) { + if ([context canEvaluatePolicy:LAPolicyDeviceOwnerAuthentication error:&error]) { + [context evaluatePolicy:LAPolicyDeviceOwnerAuthentication localizedReason:reason reply:^(BOOL success, NSError *error) { dispatch_async(dispatch_get_main_queue(), ^{ if (error) { if (intruderKey) { @@ -876,8 +876,8 @@ BOOL isTouchIDAvailable() { reason = @"Are you the device owner?"; NSError *error = nil; - if ([context canEvaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics error:&error]) { - [context evaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics localizedReason:reason reply:^(BOOL success, NSError *error) { + if ([context canEvaluatePolicy:LAPolicyDeviceOwnerAuthentication error:&error]) { + [context evaluatePolicy:LAPolicyDeviceOwnerAuthentication localizedReason:reason reply:^(BOOL success, NSError *error) { dispatch_async(dispatch_get_main_queue(), ^{ if (error) { if (intruderKey) { @@ -987,8 +987,8 @@ BOOL isTouchIDAvailable() { reason = @"Are you the device owner?"; NSError *error = nil; - if ([context canEvaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics error:&error]) { - [context evaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics localizedReason:reason reply:^(BOOL success, NSError *error) { + if ([context canEvaluatePolicy:LAPolicyDeviceOwnerAuthentication error:&error]) { + [context evaluatePolicy:LAPolicyDeviceOwnerAuthentication localizedReason:reason reply:^(BOOL success, NSError *error) { dispatch_async(dispatch_get_main_queue(), ^{ if (error) { if (intruderKey) { @@ -1137,8 +1137,8 @@ BOOL isTouchIDAvailable() { reason = @"Are you the device owner?"; NSError *error = nil; - if ([context canEvaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics error:&error]) { - [context evaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics localizedReason:reason reply:^(BOOL success, NSError *error) { + if ([context canEvaluatePolicy:LAPolicyDeviceOwnerAuthentication error:&error]) { + [context evaluatePolicy:LAPolicyDeviceOwnerAuthentication localizedReason:reason reply:^(BOOL success, NSError *error) { dispatch_async(dispatch_get_main_queue(), ^{ if (error) { if (intruderKey) { diff --git a/shieldxiprefs/SXIRootListController.m b/shieldxiprefs/SXIRootListController.m index bcf1311..e9326f7 100644 --- a/shieldxiprefs/SXIRootListController.m +++ b/shieldxiprefs/SXIRootListController.m @@ -94,7 +94,7 @@ BOOL isTouchIDAvailable() { LAContext *myContext = [[LAContext alloc] init]; NSError *authError = nil; - if (![myContext canEvaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics error:&authError]) { + if (![myContext canEvaluatePolicy:LAPolicyDeviceOwnerAuthentication error:&authError]) { NSLog(@"%@", [authError localizedDescription]); return NO; } @@ -431,8 +431,8 @@ - (void)askForLogin { context.localizedFallbackTitle = @"Greasy Fingers?\nEnter Password."; NSError *error = nil; - if ([context canEvaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics error:&error]) { - [context evaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics localizedReason:@"Are you the device owner?" reply:^(BOOL success, NSError *error) { + if ([context canEvaluatePolicy:LAPolicyDeviceOwnerAuthentication error:&error]) { + [context evaluatePolicy:LAPolicyDeviceOwnerAuthentication localizedReason:@"Are you the device owner?" reply:^(BOOL success, NSError *error) { dispatch_async(dispatch_get_main_queue(), ^{ if (error) { AudioServicesPlaySystemSound(kSystemSoundID_Vibrate); @@ -581,4 +581,4 @@ - (void)respring { // - (CGFloat)preferredHeightForWidth:(CGFloat)arg1 { // return 150.0f; // } -// @end \ No newline at end of file +// @end