freedomtan / iOS-device-tree-dump

Dump non-encrypted iOS device tree extracted from im4p

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Data format in jailbreak device-tree

oschanger opened this issue · comments

commented

When i dumped device-tree info on my jailbreak device.I got something like this:
memory-frequency Data <0008af2f 00000000>
I wonder what is this 'Data' format.It's a raw data or memory address.

commented

Some of the raw data is Base64 encoded

I have no idea. It seems to me that there is no way to tell/detect the data format of things in device tree nodes. If you know how to do it, please let me know. I'll update code to make data more human readable. For memory-frequency, you probably wanna check https://opensource.apple.com/source/xnu/xnu-4570.1.46/pexpert/arm/pe_identify_machine.c.auto.html

commented

Em..Can i call DTGetProperty() in some way to get the value or other IOKit api.

I think we are talking about different things. The device tree information my little program examining is what used by boot loader and passed to the XNU kernel. And you are probably talking about what you get from ioreg. To see how data printed by ioreg are formatted, check its source code. Basically, there are all kinds of guesses. And DTGetProperty() is kernel function provided by Platform Expert. If you can write kernel modules or something like that, you can call it.