Skip to content

Commit da05b68

Browse files
committed
tools: Add idevicedevmodectl tool
1 parent b314f04 commit da05b68

File tree

3 files changed

+65
-0
lines changed

3 files changed

+65
-0
lines changed

docs/Makefile.am

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ man_MANS = \
1616
idevicecrashreport.1 \
1717
idevicename.1 \
1818
idevicedebug.1 \
19+
idevicedevmodectl.1 \
1920
idevicenotificationproxy.1 \
2021
idevicesetlocation.1
2122

docs/idevicedevmodectl.1

+58
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
.TH "idevicedevmodectl" 1
2+
.SH NAME
3+
idevicedevmodectl \- Enable Developer Mode on iOS 16+ devices or print the current status.
4+
.SH SYNOPSIS
5+
.B idevicedevmodectl
6+
COMMAND
7+
[OPTIONS]
8+
9+
.SH DESCRIPTION
10+
11+
Enable Developer Mode on iOS 16+ devices or print the current status.
12+
13+
.SH NOTE
14+
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.
15+
The \f[B]enable\f[] command will try to enable it, and tell you if that's the case.
16+
If the menu is not shown, you may use the \f[B]reveal\f[] command to reveal it.
17+
18+
.SH COMMANDS
19+
.TP
20+
.B list
21+
Prints the Developer Mode status of all connected devices, or for a specific one if \f[B]\-\-udid\f[] is given.
22+
.TP
23+
.B enable
24+
Enable Developer Mode (device will reboot), and confirm it after device booted up again.
25+
.TP
26+
.B arm
27+
Arm the Developer Mode (device will reboot)
28+
.TP
29+
.B confirm
30+
Confirm enabling of Developer Mode
31+
.TP
32+
.B reveal
33+
Reveal the Developer Mode menu on the device under Settings -> Privacy & Security
34+
35+
.SH OPTIONS
36+
.TP
37+
.B \-u, \-\-udid UDID
38+
target specific device by UDID
39+
.TP
40+
.B \-n, \-\-network
41+
connect to network device
42+
.TP
43+
.B \-d, \-\-debug
44+
enable communication debugging
45+
.TP
46+
.B \-h, \-\-help
47+
print usage information
48+
.TP
49+
.B \-v, \-\-version
50+
print version information
51+
52+
.SH AUTHORS
53+
Nikias Bassen
54+
55+
.SH ON THE WEB
56+
https://libimobiledevice.org
57+
58+
https://github.com/libimobiledevice/libimobiledevice

tools/Makefile.am

+6
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ bin_PROGRAMS = \
2727
idevicedebugserverproxy \
2828
idevicediagnostics \
2929
idevicedebug \
30+
idevicedevmodectl \
3031
idevicenotificationproxy \
3132
idevicecrashreport \
3233
idevicesetlocation
@@ -111,6 +112,11 @@ idevicedebug_CFLAGS = $(AM_CFLAGS) $(limd_glue_CFLAGS)
111112
idevicedebug_LDFLAGS = $(AM_LDFLAGS) $(limd_glue_LIBS)
112113
idevicedebug_LDADD = $(top_builddir)/src/libimobiledevice-1.0.la $(top_builddir)/common/libinternalcommon.la
113114

115+
idevicedevmodectl_SOURCES = idevicedevmodectl.c
116+
idevicedevmodectl_CFLAGS = $(AM_CFLAGS) $(limd_glue_CFLAGS)
117+
idevicedevmodectl_LDFLAGS = $(AM_LDFLAGS) $(limd_glue_LIBS)
118+
idevicedevmodectl_LDADD = $(top_builddir)/src/libimobiledevice-1.0.la $(top_builddir)/common/libinternalcommon.la
119+
114120
idevicenotificationproxy_SOURCES = idevicenotificationproxy.c
115121
idevicenotificationproxy_CFLAGS = $(AM_CFLAGS)
116122
idevicenotificationproxy_LDFLAGS = $(AM_LDFLAGS)

0 commit comments

Comments
 (0)