Skip to content

Commit

Permalink
tools: Add idevicedevmodectl tool
Browse files Browse the repository at this point in the history
  • Loading branch information
nikias committed Dec 10, 2022
1 parent b314f04 commit da05b68
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ man_MANS = \
idevicecrashreport.1 \
idevicename.1 \
idevicedebug.1 \
idevicedevmodectl.1 \
idevicenotificationproxy.1 \
idevicesetlocation.1

Expand Down
58 changes: 58 additions & 0 deletions docs/idevicedevmodectl.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
.TH "idevicedevmodectl" 1
.SH NAME
idevicedevmodectl \- Enable Developer Mode on iOS 16+ devices or print the current status.
.SH SYNOPSIS
.B idevicedevmodectl
COMMAND
[OPTIONS]

.SH DESCRIPTION

Enable Developer Mode on iOS 16+ devices or print the current status.

.SH NOTE
Passcode-protected devices will NOT allow enabling of Developer Mode from the command line. It has to be enabled on the device itself under Settings -> Privacy & Security -> Developer Mode.
The \f[B]enable\f[] command will try to enable it, and tell you if that's the case.
If the menu is not shown, you may use the \f[B]reveal\f[] command to reveal it.

.SH COMMANDS
.TP
.B list
Prints the Developer Mode status of all connected devices, or for a specific one if \f[B]\-\-udid\f[] is given.
.TP
.B enable
Enable Developer Mode (device will reboot), and confirm it after device booted up again.
.TP
.B arm
Arm the Developer Mode (device will reboot)
.TP
.B confirm
Confirm enabling of Developer Mode
.TP
.B reveal
Reveal the Developer Mode menu on the device under Settings -> Privacy & Security

.SH OPTIONS
.TP
.B \-u, \-\-udid UDID
target specific device by UDID
.TP
.B \-n, \-\-network
connect to network device
.TP
.B \-d, \-\-debug
enable communication debugging
.TP
.B \-h, \-\-help
print usage information
.TP
.B \-v, \-\-version
print version information

.SH AUTHORS
Nikias Bassen

.SH ON THE WEB
https://libimobiledevice.org

https://github.com/libimobiledevice/libimobiledevice
6 changes: 6 additions & 0 deletions tools/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ bin_PROGRAMS = \
idevicedebugserverproxy \
idevicediagnostics \
idevicedebug \
idevicedevmodectl \
idevicenotificationproxy \
idevicecrashreport \
idevicesetlocation
Expand Down Expand Up @@ -111,6 +112,11 @@ idevicedebug_CFLAGS = $(AM_CFLAGS) $(limd_glue_CFLAGS)
idevicedebug_LDFLAGS = $(AM_LDFLAGS) $(limd_glue_LIBS)
idevicedebug_LDADD = $(top_builddir)/src/libimobiledevice-1.0.la $(top_builddir)/common/libinternalcommon.la

idevicedevmodectl_SOURCES = idevicedevmodectl.c
idevicedevmodectl_CFLAGS = $(AM_CFLAGS) $(limd_glue_CFLAGS)
idevicedevmodectl_LDFLAGS = $(AM_LDFLAGS) $(limd_glue_LIBS)
idevicedevmodectl_LDADD = $(top_builddir)/src/libimobiledevice-1.0.la $(top_builddir)/common/libinternalcommon.la

idevicenotificationproxy_SOURCES = idevicenotificationproxy.c
idevicenotificationproxy_CFLAGS = $(AM_CFLAGS)
idevicenotificationproxy_LDFLAGS = $(AM_LDFLAGS)
Expand Down

0 comments on commit da05b68

Please sign in to comment.