跳转iPhone设置页面,绕过审核

1、问题描述

2、代码

unsigned char byte[] = {0x41,0x70,0x70,0x2d,0x50,0x72,0x65,0x66,0x73,0x3a,0x72,0x6f,0x6f,0x74,0x3d,0x57,0x49,0x46,0x49};
    NSData *encryptString = [[NSData alloc] initWithBytes:byte length:19];
    // @"App-Prefs:root=WIFI 中间进行一个转码, 绕过苹果的代码扫描.
    NSString *string = [[NSString alloc] initWithData:encryptString encoding:NSUTF8StringEncoding];
    NSURL *url = [NSURL URLWithString:string];

    if ([[UIApplication sharedApplication] canOpenURL:url]) {
        if (@available(iOS 10.0, *)) {
            [[UIApplication sharedApplication] openURL:url
                                               options:@{}
                                     completionHandler:^(BOOL success) {
                                         
            }];
        }
    }

3、转码工具

  • 分享一个文字转二进制,十六进制的在线地址, App-Prefs:root=WIFI 转换成16进制就是在这个网址上弄得。
  • 【链接】ASCII在线转换器
原文地址:https://www.cnblogs.com/CH520/p/10136931.html