Skip to content

Instantly share code, notes, and snippets.

@dlevi309
Last active May 6, 2022 01:32
Show Gist options
  • Save dlevi309/f858012ac73651400a4057f9991ecaef to your computer and use it in GitHub Desktop.
Save dlevi309/f858012ac73651400a4057f9991ecaef to your computer and use it in GitHub Desktop.
All the values that iOS grants when using the ‘com.apple.private.MobileGestalt.AllowedProtectedKeys‘ entitlement
<?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>com.apple.private.MobileGestalt.AllowedProtectedKeys</key>
<array>
<string>AWDID</string>
<string>AmbientLightSensorSerialNumber</string>
<string>ArcModuleSerialNumber</string>
<string>ArrowChipID</string>
<string>ArrowUniqueChipID</string>
<string>BasebandBoardSnum</string>
<string>BasebandChipId</string>
<string>BasebandSerialNumber</string>
<string>BasebandUniqueId</string>
<string>BatterySerialNumber</string>
<string>BluetoothAddress</string>
<string>BluetoothAddressData</string>
<string>BootManifestHash</string>
<string>CarrierBundleInfoArray</string>
<string>CompassCalibration</string>
<string>CompassCalibrationDictionary</string>
<string>ConfigNumber</string>
<string>CoverglassSerialNumber</string>
<string>DiagData</string>
<string>DieId</string>
<string>DisplayDriverICChipID</string>
<string>EUICCChipID</string>
<string>EthernetMacAddress</string>
<string>EthernetMacAddressData</string>
<string>FrontFacingCameraModuleSerialNumber</string>
<string>FrontFacingIRCameraModuleSerialNumber</string>
<string>FrontFacingIRStructuredLightProjectorModuleSerialNumber</string>
<string>IceFallID</string>
<string>IntegratedCircuitCardIdentifier</string>
<string>IntegratedCircuitCardIdentifier2</string>
<string>InternationalMobileEquipmentIdentity</string>
<string>InternationalMobileEquipmentIdentity2</string>
<string>InverseDeviceID</string>
<string>JasperSerialNumber</string>
<string>LunaFlexSerialNumber</string>
<string>LynxPublicKey</string>
<string>LynxSerialNumber</string>
<string>MLBSerialNumber</string>
<string>MesaSerialNumber</string>
<string>MobileEquipmentIdentifier</string>
<string>MobileEquipmentInfoBaseId</string>
<string>MobileEquipmentInfoBaseProfile</string>
<string>MobileEquipmentInfoBaseVersion</string>
<string>MobileEquipmentInfoCSN</string>
<string>MobileEquipmentInfoDisplayCSN</string>
<string>MultiLynxPublicKeyArray</string>
<string>MultiLynxSerialNumberArray</string>
<string>NandControllerUID</string>
<string>PanelSerialNumber</string>
<string>PhoneNumber</string>
<string>PhoneNumber2</string>
<string>PintoMacAddress</string>
<string>PintoMacAddressData</string>
<string>ProximitySensorCalibration</string>
<string>ProximitySensorCalibrationDictionary</string>
<string>RawPanelSerialNumber</string>
<string>RearFacingCameraModuleSerialNumber</string>
<string>RearFacingSuperWideCameraModuleSerialNumber</string>
<string>RearFacingTelephotoCameraModuleSerialNumber</string>
<string>RemoteBluetoothAddress</string>
<string>RemoteBluetoothAddressData</string>
<string>RosalineSerialNumber</string>
<string>RoswellChipID</string>
<string>SavageChipID</string>
<string>SavageInfo</string>
<string>SavageSerialNumber</string>
<string>SavageUID</string>
<string>ScreenSerialNumber</string>
<string>SecondaryBluetoothMacAddress</string>
<string>SecondaryBluetoothMacAddressData</string>
<string>SecondaryEthernetMacAddress</string>
<string>SecondaryEthernetMacAddressData</string>
<string>SecondaryWifiMacAddress</string>
<string>SecondaryWifiMacAddressData</string>
<string>SecureElementID</string>
<string>SerialNumber</string>
<string>SysCfg</string>
<string>SysCfgDict</string>
<string>TopModuleAuthChipID</string>
<string>TristarID</string>
<string>UniqueChipID</string>
<string>UniqueDeviceID</string>
<string>UniqueDeviceIDData</string>
<string>WifiAddress</string>
<string>WifiAddressData</string>
<string>WirelessBoardSnum</string>
<string>YonkersChipID</string>
<string>YonkersSerialNumber</string>
<string>YonkersUID</string>
</array>
</dict>
</plist>
<?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>com.apple.CommCenter.fine-grained</key>
<array>
<string>spi</string>
<string>identity</string>
</array>
<key>com.apple.private.MobileGestalt.AllowedProtectedKeys</key>
<true/>
</dict>
</plist>
@rickmark
Copy link

rickmark commented Feb 4, 2022

EID is different from IMEI/MEID - its a special ICCID for enrollment - did you try those values obfuscated or?

@dlevi309
Copy link
Author

dlevi309 commented Feb 5, 2022

@rickmark this was to answer his question of getting the values MobileEquipmentInfoCSN + MobileEquipmentInfoDisplayCSN, and I just don’t think that MobileGestalt supports fetching the EID, and I tried them both (obfuscated / english — they both return the same values for those keys) I’m using my own lightly updated version of guesstalt, if you want, I could send it to you? You can play around with it, it still uses the depreciated CC_MD5 to calculate values but works well enough.

@rickmark
Copy link

rickmark commented Feb 6, 2022

Oh it must be possible somehow, prob a separate entitlement - look into T-Mobile’s prepaid app, it can do eSIM provisioning

@truonggiang0710
Copy link

truonggiang0710 commented Feb 7, 2022

Finally, we still don't have any way to get EID/CSN, @rickmark, @dlevi309

@dlevi309
Copy link
Author

dlevi309 commented Feb 8, 2022

@rickmark Think I found it.

FirmwarePreflightInfo is a dictionary that produces a bunch of items (one of them being EUICCCSN which is the EID and the other is BasebandFirmwareUpdateInfo which produces a dictionary of 21 items, with kVinylFwUpdateCsn being the EID.

@rickmark
Copy link

oh awesome - mind if i add that to https://github.com/hack-different/apple-knowledge/blob/main/_data/mobile_gestalt.yaml or would you like to so that it's credited?

@dlevi309
Copy link
Author

@rickmark not a problem- and thank you for asking, but you go on ahead :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment