doronz88 / pymobiledevice3

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

MDM detection #1073

Open tudorcraciun opened 2 weeks ago

tudorcraciun commented 2 weeks ago

Hello! I have just stumbled upon this tool, and I was wondering if you found any way to detect if an MDM/DEP lock is present on a device without any configuration? A query to com.apple.mobile.chaperone with the key DeviceIsChaperoned returns true only after some setup is made on the device, and I cannot find a way to work around that.

doronz88 commented 1 week ago

I guess you are trying to get the value while in the Setup.app?

tudorcraciun commented 1 week ago

If by Setup.app you mean the configuration wizard where you go through selecting Language, Country, etc, then yes. The ideal scenario would be to check for the MDM/DEP lock on a freshly reset device.

AnNEDoMini commented 2 days ago

You can make activation, then query DeviceIsChaperoned, after that you can reset it to bring to blank state. If I understand you correctly