doronz88 / pymobiledevice3

Pure python3 implementation for working with iDevices (iPhone, etc...).
https://discord.gg/52mZGC3JXJ
GNU General Public License v3.0
1.49k stars 206 forks source link

RAM and parts info #1263

Open E3lleyyaa opened 2 weeks ago

E3lleyyaa commented 2 weeks ago

Hi! Is it possible to obtain information about the amount of RAM installed on a device? Additionally, can information be gathered on specific components, such as the camera or display, including their factory IDs and current IDs, to check if they have been replaced? I am looking for something similar to an OEM Check, like what many apps offer. image

doronz88 commented 2 weeks ago

I'm not sure which of these values can be obtained. I guess most of them are available via IORegistry. Try to locate them in the DeviceTree and query using pymobiledevice3 diagnostics ioregistry

E3lleyyaa commented 2 weeks ago

Ok,will try

E3lleyyaa commented 2 weeks ago

@doronz88 Other commands work as expected. image

E3lleyyaa commented 2 weeks ago

Do you have the list of avaliable ioclasses?

doronz88 commented 2 weeks ago

You need to supply with the correct options to get an output. You can dump the available values via sysdiagnose on-device

RoscoP commented 2 weeks ago

@E3lleyyaa curious to know if you found a way to collect this information? I'm looking for installed ram specifically.

E3lleyyaa commented 2 weeks ago

@E3lleyyaa curious to know if you found a way to collect this information? I'm looking for installed ram specifically.

I have found some fields like DRAM in certain ioreg classes, but their values are not comparable to the amount of installed memory, as they mostly represent memory cell indices. <class IORegistryEntry:IOService, id 0x100000101, !registered, !matched, active, busy 0, retain 18> | | { | | "development-cert" = <00000000> | | "disable-transport-rm" = <00000000> | | "amfi-only-platform-code" = <00000000> | | "consistent-debug-root" = <0000000000000000> | | "root-matching" = <3c646963743e3c6b65793e494f50726f7669646572436c6173733c2f6b65793e3c737472696e673e494f4d656469613c2f737472696e673e3c6b65793e494f50726f70657274794d617463683c2f6b65793e3c646963743e3c6b65793e506172746974696f6e2049443c2f6b65793e3c696e74656765723e313c2f696e74656765723e3c2f646963743e3c2f646963743e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000> | | "boot-type" = <6c6f63616c00000000000000> | | "board-id" = <0e000000> | | "coverglass-color" = <01000000000000000000000001000000> | | "dram-vendor" = <53616d73756e67000000000000000000> | | "dram-vendor-id" = <01000000> | | "mac-address-bluetooth0" = <"�+4c)C"> | | "nvram-bank-size" = <00200000> | | "unique-chip-id" = <2ec00b3891540600> | | "security-mode-change-enable" = <00000000> | | "breadcrumbs" = <"<BOOT> 1c002b(2007e00) 20012 f0005(61766566) f0006 3000f(61766566) 3000c(61766566) 3000d 30010 f0200 f0007(61766566) f0005(69737066) f0006 3000f(69737066) 3000c(69737066) 3000d 30010 f0200 f0007(69737066) 3000f(64747265) 3000c(64747265) 40029 3000d 30010 3000f(69737973) 3000c(69737973) 3000d 30010 3000f(74727374) 3000c(74727374) 3000d 30010 3000f(6b726e6c) 3000c(6b726e6c) 40029 3000d 30010 "> | | "software-behavior" = <01000000000000000000000000000000> | | "root-snapshot-name" = <"com.apple.os.update-A3F0D8A1C9A42C79541D8697C8A6E7785BBC777C3071C74EC1821D850BC834DDAD9D8FA9648A90C9EFA7B8EF5642B72D"> | | "amfi-allows-trust-cache-load" = <00000000> | | "dram-base" = <0000000008000000> | | "iboot-handoff" = <00c0ffbf080000000040000000000000> | | "mix-n-match-prevention-status" = <01000000> | | "max-env-var-name-size" = <00000000> | | "certificate-security-mode" = <01000000> | | "display-rotation" = <00000000> | | "unique-device-id" = <2ec00b38915406001580000000000000> | | "syscfg-erly-kbgs-data-class" = <"ADDA"> | | "crypto-hash-method" = <"sha2-384"> | | "boot-command" = <01000000> | | "secure-boot" = <01000000> | | "trusted-boot-policy-measurement" = <000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000> | | "gid-aes-key" = <01000000> | | "disable-av-content-protection" = <00000000> | | "image4-supported" = <> | | "isp-horizon" = <00000000> | | "boot-nonce" = <abf4e2b698670bd2> | | "display-corner-radius" = <00000000> | | "nvram-bank-count" = <01000000> | | "nvram-current-bank" = <00000000> | | "firmware-version" = <69426f6f742d383432322e3134322e322e3730302e31000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000> | | "uid-aes-key" = <01000000> | | "boot-manifest-hash" = <a3f0d8a1c9a42c79541d8697c8a6e7785bbc777c3071c74ec1821d850bc834ddad9d8fa9648a90c9efa7b8ef5642b72d> | | "housing-color" = <01000000000000000000000002000000> | | "max-env-var-data-size" = <00000000> | | "display-boot-rotation" = <00000000> | | "syscfg-erly-kbgs-allow-unsealed" = <01000000> | | "random-seed" = <00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000> | | "max-env-partition" = <00000000> | | "chip-id" = <15800000> | | "name" = <"chosen"> | | "ephemeral-storage" = <00000000> | | "osenvironment" = <0000000000000000000000000000000000000000000000000000000000000000> | | "debug-enabled" = <00000000> | | "system-trusted" = <01000000> | | "AAPL,phandle" = <02000000> | | "chip-epoch" = <01000000> | | "nvram-proxy-data" = <5a8202006e7672616d000000000000008e84b36ccd0400000000000000000000717d8000636f6d6d6f6e0000000000006261636b6c696768742d6c6576656c3d373430006f626c697465726174696f6e3d68616e646c655f6d6573736167653a204f626c697465726174696f6e20436f6d706c6574650a006f626c69742d626567696e733d4f626c6974547970653a204f626c6974657261746544617461506172746974696f6e2e20526561736f6e3a20454143532d53657474696e677300636f6d2e6170706c652e53797374656d2e747a302d73697a653d30784245303030303000636f6d2e6170706c652e53797374656d2e66702d73746174653dff0440ff0f006261636b6c696768742d6e6974733d30783030396230303030006f74612d636f6e74726f6c6c657256657273696f6e3d5355532d322e3000666d2d73707374617475733d59455300666d2d61637469766174696f6e2d6c6f636b65643d59455300666d2d6163636f756e742d6d61736b65643d68e280a2e280a2e280a2e280a2e280a240676d61696c2e636f6d00666d2d73706b6579733d62706c6973743030d60102030405060708090a0b0c516251705169516c517351763341c3bd938d3362bf4f10390480bcdf47d91bff8165745b15cc762877933931a806c1e7f3231f13aaedf4751e7e23842547231eea907fdb0bdc978d5fc6d8b303307a31632e10014f1010f18e73bdecf54e39a962a066f1a61ee74f1020843b69bb29b56e186b6cf49a4c564c5c20f054a773cb84da6c3cc664fa056480d20d0e0f1451315132d210111213516c517310ff011060d210111213081517191b1d1f212a66687b9ea3a5a7acaeb0b2b4ff060101ff0715ff0fb9006e6f6e63652d73656564733d02ff0930ff07a3f0d8a1c9a42c79541d8697c8a6e7785bbc777c3071c74ec1821d850bc834ddad9d8fa9648a90c9efa7b8ef5642b72d010bff0f24b880b115144ec89ebb4ca3cc0fef8eff182e8d66ad276c973529e2e4fe14591066ff18740eed9aaa53f38499a08797a276f7efff186e27196bddab1b1473c76d491ca6f8afff18a39abdfd041c6b22339949fa2a97e461ff1824c9155c365e7c172f3b0d96c234925fff1889424668081012338abb50a682e3cc9fff183897d0c568b53a4c4089586576966e92ff188329c58153303ef9ab3b02cfd2df01a6ff18d715191d3f4dd79cf023a44599c7d0ecff18db0294cfd625703a7fdb24fb7b38d55eff1000757362636677666c6173686572526573756c743d4e6f206572726f727300626f6f7464656c61793d3000537461727475704d7574653d31006175746f2d626f6f743d74727565000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007f987e01777777777777777777777777000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000> | | "effective-production-status-sep" = 1 | | "system-volume-auth-blob" = <02000000000000000100000020000000f188a6e778c56c203fa63045c3dc3b814dfec2ad28c33178ccadb4013c197a5e000000000000000000000000000000000000000000000000000000000000000006dd969090c5e8e02773541d5ce69d15264dc30f42e645a17d6fcf470a2029f40000000000000000000000000000000000000000000000000000000000000000f933f1eeb20f78995e429b0b5fbc83486f746703b51b2dc3c2a11215da9202fb0000000000000000000000000000000000000000000000000000000000000000> | | "protected-data-access" = <01000000> | | "syscfg-erly-kbgs-allow-load" = <01000000> | | "effective-security-mode-ap" = <01000000> | | "effective-production-status-ap" = <01000000> | | "embedded-panic-log-size" = <c8bf0c00> | | "bootp-response" = <020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000> | | "syscfg-erly-kbgs-storage" = <01000000> | | "software-bundle-version" = <00000000000000000000000000000000> | | "use-recovery-securityd" = <00000000> | | "die-id" = <2ec00b3891540600> | | "allow-ap-nonce-retrieval" = <> | | "mac-address-wifi0" = <e42b34632908> | | "disable-accessory-firmware" = <00000000> | | "certificate-production-status" = <01000000> | | "syscfg-keybag-ids" = <"ADDA"> | | "dram-size" = <000000c000000000> | | "production-cert" = <01000000> | | "#address-cells" = <02000000> | | "effective-security-mode-sep" = 1 | | "sepfw-load-at-boot" = <01000000> | | "mac-address-ethernet0" = <"�+4c)D"> | | "syscfg-erly-kbgs-format" = <01000000> | | "display-scale" = <03000000> | | "syscfg-keybag-ids-providers" = <01000000> | | "security-domain" = <01000000> | | }