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

version and device_class return wrong values #6

Open
woelper opened this issue Nov 24, 2022 · 1 comment
Open

version and device_class return wrong values #6

woelper opened this issue Nov 24, 2022 · 1 comment

Comments

@woelper
Copy link

woelper commented Nov 24, 2022

Whenever I try to get version and device class, I receive values which differ from those produced by ideviceinfo.

 let device = idevice::get_first_device().unwrap();
 info!("Got device: {:?}", device);

This returns

Got device: Device { udid: 00008020-001D2CD90128002E, network: false, ip_address: None, device_class: 5, version: 0 }

I believe 5 is Unknown, and version is 0.

ideviceinfo -k ProductVersion returns 13.3.1

Some other metrics:

ProductName: iPhone OS
ProductType: iPhone11,8
ProductVersion: 13.3.1
ProductionSOC: true
ProtocolVersion: 2

In addition, is version the iOS version?

Thanks!

@jkcoxson
Copy link
Owner

jkcoxson commented Nov 24, 2022

So this is just from memory, I’ll be sure to get a definite answer later.

These values are returned by usbmuxd, and are inferred from the data the USB controller detects from it. The device class definitely seems to be wrong, as 5 means Apple Watch. I don’t remember what version means atm, but it’s not the iOS version. You can see how to fetch the iOS version in the ideviceinfo example here in the repo.

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

2 participants