Created
April 17, 2020 15:01
-
-
Save Esquilli/f8e759d03a2ca466a8e01a21ffbd480e to your computer and use it in GitHub Desktop.
Toggle iOS biometrics
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@try { | |
SBLockScreenManager *man = [%c(SBLockScreenManager) sharedInstance]; | |
toggleBiometric = <value from prefs>; | |
if ([man respondsToSelector:@selector(setBiometricAutoUnlockingDisabled:forReason:)]) { | |
[man setBiometricAutoUnlockingDisabled:toggleBiometric forReason:@"com.esquilli.lisa"]; | |
} | |
} @catch (NSException *e) { | |
// wut. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment