iOS subsystems¶
Subsystems available only on iOS clients.
MobileGestalt¶
rpcclient.clients.ios.subsystems.mobile_gestalt ¶
MobileGestalt ¶
Bases: ClientBound['IosClient[DarwinSymbolT_co]'], Generic[DarwinSymbolT_co]
Thin wrapper around MobileGestalt MGCopyAnswer/MGSetAnswer keys.
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/mobile_gestalt.py
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 | |
get_answer
async
¶
get_answer(key: str, typ: type[CfSerializableT] | tuple[type[CfSerializableT], ...] = CfSerializableAny) -> CfSerializableT
Return the MGCopyAnswer value for a given key.
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/mobile_gestalt.py
set_answer
async
¶
Set the MGSetAnswer value for a given key.
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/mobile_gestalt.py
SpringBoard¶
rpcclient.clients.ios.subsystems.springboard ¶
SpringBoard ¶
Bases: ClientBound['IosClient[DarwinSymbolT_co]'], Generic[DarwinSymbolT_co]
SpringBoardServices helpers.
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/springboard.py
get_spring_board_server_port
async
¶
launch_application
async
¶
Launch an app via SpringBoardServices.
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/springboard.py
get_screen_lock_status
async
¶
Return lockscreen and passcode status via SpringBoardServices.
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/springboard.py
open_sensitive_url_and_unlock
async
¶
Open a URL with the system handler, optionally unlocking.
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/springboard.py
Lockdown¶
rpcclient.clients.ios.subsystems.lockdown ¶
PairRecord ¶
Bases: ClientBound['IosClient[DarwinSymbolT_co]'], Generic[DarwinSymbolT_co]
Represents a Lockdown pairing record for a host.
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/lockdown.py
Lockdown ¶
Bases: ClientBound['IosClient[DarwinSymbolT_co]'], Generic[DarwinSymbolT_co]
Access and manage Lockdown pairing records and data ark.
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/lockdown.py
get_host_id
staticmethod
¶
Return the uppercase host ID for a hostname (default: local hostname).
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/lockdown.py
pair_records
async
¶
Return the list of existing pairing records.
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/lockdown.py
pair_dates
async
¶
Return a mapping of host_id -> pairing date.
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/lockdown.py
data_ark
async
¶
Return the data_ark plist as an SCPreference handle.
set_pair_date
async
¶
Set the pairing date for a given host ID.
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/lockdown.py
get_pair_record_by_host_id
async
¶
Return the PairRecord for a specific host ID.
get_pair_record_by_hostname
async
¶
Return the PairRecord for a hostname.
get_self_pair_record
async
¶
Return the PairRecord for the current host.
add_pair_record
async
¶
Add a new pairing record and set its pairing date.
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/lockdown.py
disable_expiration_for_all_existing_pair_records
async
¶
Disable expiration for all existing pairing records.
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/lockdown.py
Backlight¶
rpcclient.clients.ios.subsystems.backlight ¶
Backlight ¶
Bases: ClientBound['IosClient[DarwinSymbolT_co]'], Generic[DarwinSymbolT_co]
Display brightness controls.
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/backlight.py
get_brightness
async
¶
Return the display brightness in the range 0.0-1.0.
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/backlight.py
set_brightness
async
¶
Set the display brightness in the range 0.0-1.0.
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/backlight.py
AMFI¶
rpcclient.clients.ios.subsystems.amfi ¶
Amfi ¶
Bases: ClientBound['IosClient[DarwinSymbolT_co]'], Generic[DarwinSymbolT_co]
AMFI utilities (AppleMobileFileIntegrity).
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/amfi.py
set_developer_mode_status
async
¶
Enable or disable Developer Mode via the AMFI XPC service.
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/amfi.py
developer_mode_status
async
¶
Wi-Fi¶
rpcclient.clients.ios.subsystems.wifi ¶
WifiSavedNetwork ¶
Bases: ClientBound['IosClient[DarwinSymbolT_co]'], Generic[DarwinSymbolT_co]
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/wifi.py
ssid
async
¶
bssid
async
¶
get_property
async
¶
get_property(name: str, typ: type[CfSerializableT] | tuple[type[CfSerializableT], ...] = CfSerializableAny) -> CfSerializableT
Return a WiFiNetwork property by name from the underlying CF object.
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/wifi.py
forget
async
¶
Remove this network from the saved networks list.
WifiScannedNetwork ¶
Bases: ClientBound['IosClient[DarwinSymbolT_co]'], Generic[DarwinSymbolT_co]
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/wifi.py
connect
async
¶
Associate to this network, optionally providing a password.
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/wifi.py
disconnect
async
¶
Disassociate from the current network.
WifiInterface ¶
Bases: Allocated['IosClient[DarwinSymbolT_co]'], Generic[DarwinSymbolT_co]
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/wifi.py
scan
async
¶
Scan for nearby networks and return a list of WifiScannedNetwork.
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/wifi.py
disconnect
async
¶
Disconnect from the currently associated Wi-Fi network.
IosWifi ¶
Bases: ClientBound['IosClient[DarwinSymbolT_co]'], Generic[DarwinSymbolT_co]
iOS Wi-Fi utilities backed by WiFiKit and Apple80211.
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/wifi.py
134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 | |
saved_networks
async
¶
Return saved Wi-Fi networks known to the device.
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/wifi.py
interfaces
async
¶
Return a list of available Wi-Fi interface names.
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/wifi.py
turn_on
async
¶
turn_off
async
¶
is_on
async
¶
Return True if Wi-Fi is enabled.
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/wifi.py
get_interface
async
¶
Return a bound interface handle for scanning and associating.
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/wifi.py
Telephony¶
rpcclient.clients.ios.subsystems.telephony ¶
Call ¶
Bases: ClientBound['IosClient[DarwinSymbolT_co]'], Generic[DarwinSymbolT_co]
Represents a single ongoing call.
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/telephony.py
disconnect
async
¶
Telephony ¶
Bases: ClientBound['IosClient[DarwinSymbolT_co]'], Generic[DarwinSymbolT_co]
Telephony utilities backed by CallKit and CoreTelephony.
Accessing real telephony requires the entitlement "application-identifier" to be set to "com.apple.coretelephony".
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/telephony.py
dial
async
¶
Start a call to a number.
Use current_call to access the created call.
send_sms
async
¶
Send an SMS message.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
to_address
|
str
|
Destination phone address. |
required |
text
|
str
|
Message text. |
required |
smsc
|
str
|
Originator short message service center address. |
'1111'
|
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/telephony.py
current_call
async
¶
Return an object representing the current active call, if any.
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/telephony.py
Accessibility¶
rpcclient.clients.ios.subsystems.accessibility ¶
AXElement ¶
Bases: AbstractSymbol, ClientBound['IosClient[DarwinSymbolT_co]'], Generic[DarwinSymbolT_co]
Wrapper around the device AXElement Objective-C object.
Built from reversed XADInspectorManager methods.
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/accessibility.py
128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 | |
peek_str
async
¶
objc_call
async
¶
objc_call(selector: str, *params: RemoteCallArg, va_list_index: int | None = None) -> DarwinSymbolT_co
call an objc method on a given object and return a symbol
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/accessibility.py
first_element
async
¶
Return the first element in the accessibility hierarchy.
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/accessibility.py
last_element
async
¶
Return the last element in the accessibility hierarchy.
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/accessibility.py
identifier
async
¶
url
async
¶
path
async
¶
frame
async
¶
Return the element frame as a CGRect.
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/accessibility.py
label
async
¶
value
async
¶
bundle_identifier
async
¶
pid
async
¶
process_name
async
¶
screen_locked
async
¶
is_accessibility_opaque_element_provider
async
¶
Return True if the element provides its own accessibility hierarchy.
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/accessibility.py
parent
async
¶
Return the parent element if available.
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/accessibility.py
ui_element
async
¶
traits
async
¶
elements
async
¶
Return the list of currently displayed elements.
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/accessibility.py
insert_text
async
¶
Insert text into the focused editable element.
delete_text
async
¶
highlight
async
¶
Draw a frame around the element, replacing any existing frame.
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/accessibility.py
scroll_to_visible
async
¶
press
async
¶
long_press
async
¶
next
async
¶
next(direction: AXDirection = AXDirection.Next, cyclic: bool = False) -> AXElement[DarwinSymbolT_co] | None
Return and scroll to the next element in the current view.
This method was created by reversing [XADInspectorManager _nextElementNavigationInDirection:forElement:] so we don't really know much about the used consts.
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/accessibility.py
compare_label
async
¶
Compare a label against this element's label.
Optionally, scroll to the element and draw a highlight frame.
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/accessibility.py
Accessibility ¶
Bases: ClientBound['IosClient[DarwinSymbolT_co]'], Generic[DarwinSymbolT_co]
Accessibility utilities and UI element discovery.
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/accessibility.py
426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 | |
primary_app
async
¶
get_enabled
async
¶
Return True if accessibility automation is enabled.
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/accessibility.py
set_enabled
async
¶
hide_frame
async
¶
set_frame_style
async
¶
Set the highlight frame style.
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/accessibility.py
draw_frame
async
¶
Draw a highlight frame at the given coordinates.
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/accessibility.py
wait_for_element_by_label
async
¶
wait_for_element_by_label(label: str, auto_scroll: bool = True, draw_frame: bool = True, timeout: float = 5, direction: AXDirection = AXDirection.Next, displayed_only: bool = False) -> AXElement
Wait for an element with the given label to appear.
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/accessibility.py
press_elements_by_labels
async
¶
press_elements_by_labels(labels: list[str], auto_scroll: bool = True, draw_frame: bool = True, timeout: float = 5, direction: AXDirection = AXDirection.Next, displayed_only: bool = False) -> None
Press a sequence of labels in order.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
labels
|
list[str]
|
Label list to press. |
required |
auto_scroll
|
bool
|
Scroll to each chosen element. |
True
|
draw_frame
|
bool
|
Draw a frame over the current element. |
True
|
timeout
|
float
|
Timeout to wait for each element to appear. |
5
|
direction
|
AXDirection
|
Direction to search. |
Next
|
displayed_only
|
bool
|
Search only displayed elements. |
False
|
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/accessibility.py
axelement ¶
Screen capture¶
rpcclient.clients.ios.subsystems.screen_capture ¶
ScreenCapture ¶
Bases: ClientBound['IosClient[DarwinSymbolT_co]'], Generic[DarwinSymbolT_co]
Screen capture utilities.
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/screen_capture.py
main_display
async
¶
Return the main CADisplay instance.
bounds
async
¶
Return the main display bounds.
Source code in src/rpcclient/rpcclient/clients/ios/subsystems/screen_capture.py
screenshot
async
¶
Return a PNG screenshot of the current screen.