Set passcode on IOS Programatically

96 views Asked by At

Is there anyway to set passcode on ios without manual intervention

Ways I have tried

  • Searched for Private APIs to set passcode, but couldn't find any
  • Checked Apple MDM
    • It has a command to Clear passcode but not for setting

Can set passcode through XCUI Automation, but looking for a less time taking solution

1

There are 1 answers

0
user21490250 On

No. It is not possible to do that otherwise apps would set user's passcode and users would be unable to unlock their device because a 3rd party app has changed passcode.