pymobiledevice3 4.21.5__py3-none-any.whl → 4.21.6__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pymobiledevice3 might be problematic. Click here for more details.

@@ -17,5 +17,5 @@ __version__: str
17
17
  __version_tuple__: VERSION_TUPLE
18
18
  version_tuple: VERSION_TUPLE
19
19
 
20
- __version__ = version = '4.21.5'
21
- __version_tuple__ = version_tuple = (4, 21, 5)
20
+ __version__ = version = '4.21.6'
21
+ __version_tuple__ = version_tuple = (4, 21, 6)
@@ -21,7 +21,6 @@ from socket import create_connection
21
21
  from ssl import VerifyMode
22
22
  from typing import Optional, TextIO, cast
23
23
 
24
- import aiofiles
25
24
  from construct import Const, Container
26
25
  from construct import Enum as ConstructEnum
27
26
  from construct import GreedyBytes, GreedyRange, Int8ul, Int16ub, Int64ul, Prefixed, Struct
@@ -161,12 +160,11 @@ class RemotePairingTunnel(ABC):
161
160
  read_size = self.tun.mtu + len(LOOPBACK_HEADER)
162
161
  try:
163
162
  if sys.platform != 'win32':
164
- async with aiofiles.open(self.tun.fileno(), 'rb', opener=lambda path, flags: path, buffering=0) as f:
165
- while True:
166
- packet = await f.read(read_size)
167
- assert packet.startswith(LOOPBACK_HEADER)
168
- packet = packet[len(LOOPBACK_HEADER):]
169
- await self.send_packet_to_device(packet)
163
+ while True:
164
+ packet = await asyncio.to_thread(self.tun.read, read_size)
165
+ assert packet.startswith(LOOPBACK_HEADER)
166
+ packet = packet[len(LOOPBACK_HEADER):]
167
+ await self.send_packet_to_device(packet)
170
168
  else:
171
169
  while True:
172
170
  packet = await self.tun.async_read()
@@ -311,13 +309,13 @@ class RemotePairingTcpTunnel(RemotePairingTunnel):
311
309
  self._sock_read_task.cancel()
312
310
  with suppress(CancelledError):
313
311
  await self._sock_read_task
312
+ await super().stop_tunnel()
314
313
  if not self._writer.is_closing():
315
314
  self._writer.close()
316
315
  try:
317
316
  await self._writer.wait_closed()
318
317
  except OSError:
319
318
  pass
320
- await super().stop_tunnel()
321
319
 
322
320
 
323
321
  @dataclasses.dataclass
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pymobiledevice3
3
- Version: 4.21.5
3
+ Version: 4.21.6
4
4
  Summary: Pure python3 implementation for working with iDevices (iPhone, etc...)
5
5
  Author-email: doronz88 <doron88@gmail.com>, matan <matan1008@gmail.com>
6
6
  Maintainer-email: doronz88 <doron88@gmail.com>, matan <matan1008@gmail.com>
@@ -59,7 +59,6 @@ Requires-Dist: developer_disk_image>=0.0.2
59
59
  Requires-Dist: opack2
60
60
  Requires-Dist: psutil
61
61
  Requires-Dist: pytun-pmd3>=2.1.0
62
- Requires-Dist: aiofiles
63
62
  Requires-Dist: prompt_toolkit
64
63
  Requires-Dist: sslpsk-pmd3>=1.0.3; python_version < "3.13"
65
64
  Requires-Dist: python-pcapng>=2.1.1
@@ -8,7 +8,7 @@ misc/understanding_idevice_protocol_layers.md,sha256=8tEqRXWOUPoxOJLZVh7C7H9JGCh
8
8
  misc/usbmux_sniff.sh,sha256=iWtbucOEQ9_UEFXk9x-2VNt48Jg5zrPsnUbZ_LfZxwA,212
9
9
  pymobiledevice3/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
10
  pymobiledevice3/__main__.py,sha256=nwUgfXBMii2MSXLUls2uMTG88uC13s4haPBM4LuGcaU,11530
11
- pymobiledevice3/_version.py,sha256=2ypGgANS8HaAICkcU7N8oU7jRJfq7P3G_Ujg6WJFe78,513
11
+ pymobiledevice3/_version.py,sha256=WjwQTI6LRzwsShpVvMPvi_IUxnnCUPhIGoX94CHWQTY,513
12
12
  pymobiledevice3/bonjour.py,sha256=FXa_x0Zdo6ims7N7F61hnnZEyn1tc2it3mQpHRMY0Kk,5560
13
13
  pymobiledevice3/ca.py,sha256=Ho0NaOtATe5hdruUSlVDRpfR9ltEYXjL3MoKwEvEJjw,2296
14
14
  pymobiledevice3/common.py,sha256=-PG6oaUkNFlB3jb7E0finMrX8wqhkS-cuTAfmLvZUmc,329
@@ -60,7 +60,7 @@ pymobiledevice3/remote/module_imports.py,sha256=DwExSL1r4kkFIWmXiQpqPo-cGl4duYd3
60
60
  pymobiledevice3/remote/remote_service.py,sha256=fCyzm4oT_WEorAXVHVLYnIOyTOuMGhX69Co3HkUdRYY,867
61
61
  pymobiledevice3/remote/remote_service_discovery.py,sha256=iqPE1PiDDB2ISK-ThuUPEiSU9ETZ-FGTcANhb6MrWmo,7156
62
62
  pymobiledevice3/remote/remotexpc.py,sha256=KbFHaH4D3RnaATve6kaIpJMHNF8H-kdhbRbEbxFmO6w,8082
63
- pymobiledevice3/remote/tunnel_service.py,sha256=IyEfVj-6qWD3Tmt3-7IHAN0Tg81_GxS61T9HB1IxsRc,46579
63
+ pymobiledevice3/remote/tunnel_service.py,sha256=zVg9t7Z_zzK4Rav8Xn_UEanIXTzBvcjEsd_-bBYs1CE,46451
64
64
  pymobiledevice3/remote/utils.py,sha256=BgUODRwkET5lyloZxJ-PrVZqTvyOlBuJ-MM7OCSqZ9g,2506
65
65
  pymobiledevice3/remote/xpc_message.py,sha256=-nVbf88ZN4ZNxLg6cOq4FfeKXYAoVRKnwGdfe7s-sZE,9336
66
66
  pymobiledevice3/remote/core_device/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -164,9 +164,9 @@ pymobiledevice3/services/web_protocol/switch_to.py,sha256=hDddJUEePbRN-8xlllOeGh
164
164
  pymobiledevice3/tunneld/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
165
165
  pymobiledevice3/tunneld/api.py,sha256=EfGKXEWhsMSB__menPmRmL9R6dpazVJDUy7B3pn05MM,2357
166
166
  pymobiledevice3/tunneld/server.py,sha256=SvC57AV_R8YQhA0fCwGNUdhfy8TKMFWwL_fp_FmXrBI,22715
167
- pymobiledevice3-4.21.5.dist-info/licenses/LICENSE,sha256=jOtLnuWt7d5Hsx6XXB2QxzrSe2sWWh3NgMfFRetluQM,35147
168
- pymobiledevice3-4.21.5.dist-info/METADATA,sha256=xH7mdSkWJILYJw9FmAkabVh26rgZ3wyctEqo9OMpUck,17500
169
- pymobiledevice3-4.21.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
170
- pymobiledevice3-4.21.5.dist-info/entry_points.txt,sha256=jJMlOanHlVwUxcY__JwvKeWPrvBJr_wJyEq4oHIZNKE,66
171
- pymobiledevice3-4.21.5.dist-info/top_level.txt,sha256=MjZoRqcWPOh5banG-BbDOnKEfsS3kCxqV9cv-nzyg2Q,21
172
- pymobiledevice3-4.21.5.dist-info/RECORD,,
167
+ pymobiledevice3-4.21.6.dist-info/licenses/LICENSE,sha256=jOtLnuWt7d5Hsx6XXB2QxzrSe2sWWh3NgMfFRetluQM,35147
168
+ pymobiledevice3-4.21.6.dist-info/METADATA,sha256=lTExHG3NlhqzhJvwJ-C0w30OI2gNGI3dxWtohrWRRUE,17476
169
+ pymobiledevice3-4.21.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
170
+ pymobiledevice3-4.21.6.dist-info/entry_points.txt,sha256=jJMlOanHlVwUxcY__JwvKeWPrvBJr_wJyEq4oHIZNKE,66
171
+ pymobiledevice3-4.21.6.dist-info/top_level.txt,sha256=MjZoRqcWPOh5banG-BbDOnKEfsS3kCxqV9cv-nzyg2Q,21
172
+ pymobiledevice3-4.21.6.dist-info/RECORD,,