Ios网页越狱:在越狱的iOS设备上禁用TouchID

关于Ios网页越狱的问题,在how to remove touch id on iphone中经常遇到, 我正在尝试暂时禁用 TouchID 身份验证,以便即使手指匹配,手机也不会解锁。我该怎么做?有没有办法通过 com.apple.springboard.plist 以编程方式更新 Settings 中的开关,就像我对振动所做的那样?

我正在尝试暂时禁用 TouchID 身份验证,以便即使手指匹配,手机也不会解锁。我该怎么做?有没有办法通过 com.apple.springboard.plist 以编程方式更新 Settings 中的开关,就像我对振动所做的那样?

1

检查设备是否越狱的最简单方法是检查canOpenURL(例如 cydia,mobileCydia URL)。您也可以尝试写入保留路径 (例如~/ private)。还有与 fork () 和运行进程相关的方法,您可以在逆向工程博客上阅读。

您应该在运行的代码之前检查它:

if context.canEvaluatePolicy(LAPolicy.DeviceOwnerAuthenticationWithBiometrics, error: &error) {}

---编辑---

在评论中回答你的问题(据我理解这个问题):

- (void)performTouchIdLogin {
    LAContext *context = [[LAContext alloc] init];
    LAPolicy policy = LAPolicyDeviceOwnerAuthenticationWithBiometrics;
    NSError *error = nil;
    BOOL isJailbroken = ([[NSFileManager defaultManager] fileExistsAtPath: @"/bin/bash"]); // TODO: handle simulator
    BOOL canUseTouchID = ([context canEvaluatePolicy:policy error:&error]);
    if (!isJailbroken && canUseTouchID) {
        [context evaluatePolicy:policy localizedReason:@"Please log in using TouchID" reply:^(BOOL success, NSError *error) {
            // do something
        }];
    };
}

本站系公益性非盈利分享网址,本文来自用户投稿,不代表码文网立场,如若转载,请注明出处

(33)
Arcgis地图:arcGIS到 google地图
上一篇
“计算机系统”的定义(computer system is made up of)
下一篇

相关推荐

发表评论

登录 后才能评论

评论列表(20条)