go-ios icon indicating copy to clipboard operation
go-ios copied to clipboard

Pair devices without manual tapping on a popup

Open man4567890 opened this issue 2 years ago • 5 comments

Describe the bug Not sure if it is a bug

To Reproduce Plug in device and run ./go-ios pair

Expected behavior The device is paired with the host no manual intervention required

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Ubuntu

Smartphone (please complete the following information): ProductName: iPhone OS ProductType: iPhone9,3 ProductVersion: 15.4.1

Additional context How would you run the ./go-ios pair command, I do not have physical access to the device and would like to pair the device using command line only, IE bypass the "tapping the trust message on the device", Is this possible, if so, could you please give me a procedure on how to do this?

man4567890 avatar May 24 '22 09:05 man4567890

There are two steps you need to do to be able to pair devices without manually interacting:

  1. Supervise your devices. You can find the steps needed to do it here. After you finish the supervision setup you should have a *.p12 file and its password.
  2. Then you pair your supervised devices using the file and password from step 1 like this:
    ios pair --p12file="supervision.p12" --password="${SUPERVISION_PASSWORD}"

shamanec avatar May 25 '22 10:05 shamanec

Thanks so much, so you have to do this for every device that you plug in? IE you have to make it a manage device 1st?

man4567890 avatar May 26 '22 07:05 man4567890

Yes, you need to manage all the devices under the same profile to be able to pair them without the Trust popup. But I think it will keep working until you hard reset the devices(might even work after hard reset but I haven't tried)

shamanec avatar May 26 '22 10:05 shamanec

Thanks

On Thu, 26 May 2022, 12:25 Nikola Shabanov, @.***> wrote:

Yes, you need to manage all the devices under the same profile to be able to pair them without the Trust popup. But I think it will keep working until you hard reset the devices(might even work after hard reset but I haven't tried)

— Reply to this email directly, view it on GitHub https://github.com/danielpaulus/go-ios/issues/139#issuecomment-1138385577, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMXKWZKXTHSRNL4JMKDYWOLVL5GQBANCNFSM5WY4CBBA . You are receiving this because you authored the thread.Message ID: @.***>

man4567890 avatar May 26 '22 10:05 man4567890

Make really really sure to backup the credentials when setting up supervision. If you lose those you can, for the most part, never "unsupervise" them.

nanoscopic avatar Nov 30 '22 06:11 nanoscopic