Skip to content

Commit

Permalink
Merge pull request #939 from doronz88/bugfix/dvt-oslog
Browse files Browse the repository at this point in the history
Bugfix/dvt oslog
  • Loading branch information
doronz88 committed Apr 15, 2024
2 parents b43c199 + 255889f commit 6d2275c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions pymobiledevice3/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@
'PyMobileDevice3Exception', 'DeviceVersionNotSupportedError', 'IncorrectModeError',
'NotTrustedError', 'PairingError', 'NotPairedError', 'CannotStopSessionError',
'PasswordRequiredError', 'StartServiceError', 'FatalPairingError', 'NoDeviceConnectedError', 'DeviceNotFoundError',
'TunneldConnectionError', 'ConnectionFailedToUsbmuxdError', 'MuxException',
'TunneldConnectionError', 'ConnectionFailedToUsbmuxdError', 'MuxException', 'InvalidConnectionError',
'MuxVersionError', 'ArgumentError', 'AfcException', 'AfcFileNotFoundError', 'DvtException', 'DvtDirListError',
'NotMountedError', 'AlreadyMountedError', 'UnsupportedCommandError', 'ExtractingStackshotError',
'ConnectionTerminatedError', 'WirError', 'WebInspectorNotEnabledError', 'RemoteAutomationNotEnabledError',
'ArbitrationError', 'InternalError', 'DeveloperModeIsNotEnabledError', 'DeviceAlreadyInUseError', 'LockdownError',
'PairingDialogResponsePendingError', 'UserDeniedPairingError', 'InvalidHostIDError', 'SetProhibitedError',
'MissingValueError', 'PasscodeRequiredError', 'AmfiError', 'DeviceHasPasscodeSetError', 'NotificationTimeoutError',
'DeveloperModeError', 'ProfileError', 'IRecvError', 'IRecvNoDeviceConnectedError',
'DeveloperModeError', 'ProfileError', 'IRecvError', 'IRecvNoDeviceConnectedError', 'UnrecognizedSelectorError',
'NoDeviceSelectedError', 'MessageNotSupportedError', 'InvalidServiceError', 'InspectorEvaluateError',
'LaunchingApplicationError', 'BadCommandError', 'BadDevError', 'ConnectionFailedError', 'CoreDeviceError',
'AccessDeniedError', 'RSDRequiredError', 'SysdiagnoseTimeoutError', 'GetProhibitedError',
'FeatureNotSupportedError', 'OSNotSupportedError'
'FeatureNotSupportedError', 'OSNotSupportedError', 'DeprecationError', 'NotEnoughDiskSpaceError'
]

from typing import List, Optional
Expand Down
2 changes: 1 addition & 1 deletion pymobiledevice3/lockdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,7 @@ def create_using_remote(service: ServiceConnection, identifier: str = None, labe
"""
Create a TcpLockdownClient instance over RSD
:param hostname: The target device hostname
:param service: service connection to use
:param identifier: Used as an identifier to look for the device pair record
:param label: lockdownd user-agent
:param autopair: Attempt to pair with device (blocking) if not already paired
Expand Down
2 changes: 1 addition & 1 deletion pymobiledevice3/services/accessibilityaudit.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@


class SerializedObject:
def __init__(self, fields: typing.Mapping):
def __init__(self, fields: typing.MutableMapping):
self._fields = fields


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def ignored_null(s: bytes) -> bytes:
def decode_message_format(message) -> str:
s = ''
for type_, data in message:
if data:
if data and isinstance(data, bytes):
data = ignored_null(data)
type_ = decode_str(type_)

Expand All @@ -53,6 +53,8 @@ def decode_message_format(message) -> str:
s += '<None>'
else:
s += data.decode()
elif type_ == 'private':
s += '<private>'
elif type_.startswith('uint64'):
uint64 = struct.unpack('<Q', data.ljust(8, b'\x00'))[0]
if 'hex' in type_:
Expand Down

0 comments on commit 6d2275c

Please sign in to comment.