Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

!!! mobilegestalt deprecated for ios 17.4, all the querries ware no working #1545

Open
jsonlee1688 opened this issue Mar 27, 2024 · 3 comments

Comments

@jsonlee1688
Copy link

jsonlee1688 commented Mar 27, 2024

- (NSString *)readDeviceRegulatoryModelNumber
{
    @autoreleasepool {
        NTBTask *task = [[NTBTask alloc] initWithLaunchPath:KCUtility.KC_IDEVICEDIAGNOSTICS_PATH];
        task.arguments = @[@"-u",self.deviceUDID,@"mobilegestalt",@"97JDvERpVwO+GHtthIh7hA"];
        NSString *opt = [task waitForOutputString];
        NSLog(@"%s opt:%@ deviceUDID:%@",__func__,opt,self.deviceUDID);
        NSLog(@"readDeviceRegulatoryModelNumber Thread:%@",[NSThread currentThread]);
        id regulatoryModelNumber = [self parsexmlstring:opt forKey:@"97JDvERpVwO+GHtthIh7hA"];
        return regulatoryModelNumber?regulatoryModelNumber:@"";
    }
}

This is the response from mobilegestalt:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>MobileGestalt</key>
        <dict>
                <key>Status</key>
                <string>MobileGestaltDeprecated</string>
        </dict>
</dict>
</plist>

I was reading RegulatoryModelNumber just like "A1234", but it returned nothing since upgrade to iOS 17.4. What happend with iOS 17.4? How to fix? Can any one help?

@jsonlee1688
Copy link
Author

is there any body help?

@ekscrypto
Copy link

+1, curious about this

@AiXanadu
Copy link
Contributor

AiXanadu commented Apr 7, 2024

Also looking forward to new progress

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants