I encountered an issue while requesting activation of the lock
Activationlock
Request URI : https://mdmenrollment.apple.com/device/activationlock
Request Method : POST
Request Headers : [Accept:"text/plain, application/json, application/*+json, /*", X-ADM-Auth-Session:"1723449441118O1O649496FAD285FDC77565EC075E770547O90695212BB76419F8E43B2F68BE7A6C6O67033512O11Op1OA0EA85747E70D2D6941C4F6662166CAF22C2193COC298C61ECC7B9E9C14EB2A20305F7E41", X-Server-Protocol-Version:"3", Content-Type:"application/json", Content-Length:"133"]
Request Body : {"device":"K2LP4HQXJ4","escrow_key":"QRV7D-JPPMQ-Z90N-1VN8-L1PN-45Q2","lost_message":"......"}
Response : {"serial_number":"K2LP4HQXJ4","response_status":"SUCCESS"}
Note: “Server-Protocol-Version: ‘3’” was not required by Apple’s documentation; it is a solution I found on the Apple Developer Forum.If I dont include the “Server-Protocol-Version: ‘3’” in the header, I will get a 405 error.
But escrow_key seems not to be working.
escrowKeyUnlock
Request URI : https://deviceservices-external.apple.com/deviceservicesworkers/escrowKeyUnlock?serial=K2LP4HQXJ4&imei=******&meid=******&productType=iPhone14,2
Request Method : POST
Request Headers : [Accept:"text/plain, application/json, application/*+json, /*", Content-Type:"application/x-www-form-urlencoded", Content-Length:"189"]
Request Body : orgName=......&guid=......&escrowKey=QRV7D-JPPMQ-Z90N-1VN8-L1PN-45Q2
Response : 404 : "<?xml version="1.0" encoding="UTF-8"?><ns:escrowKeyDeviceServicesResponse version="1" xmlns:ns="http://www.apple.com/cds/mdmescrowKeyDeviceServices/xml"><error code="1002" message="com.apple.cds.cyclops.mdm.MDMServiceException: No entry found for device K2LP4HQXJ4:357174298879232:35717429887923"/></ns:escrowKeyDeviceServicesResponse>"
On the activation lock screen, this escrow_key is also invalid.
Can someone who has used these two APIs help correct how to call them correctly and make them work properly
Yann.yang is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.