Skip to content

Commit

Permalink
restore_service: update supported protocol messages for ios18
Browse files Browse the repository at this point in the history
  • Loading branch information
doronz88 committed Jul 1, 2024
1 parent 31d4561 commit 024fd08
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pymobiledevice3/services/restore_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ async def get_nonces(self) -> Mapping:
""" Get ApNonce and SEPNonce """
return await self.service.send_receive_request({'command': 'getnonces'})

async def get_app_parameters(self) -> Mapping:
return await self.validate_command('getappparameters')

async def restore_lang(self, language: str) -> Mapping:
return await self.service.send_receive_request({'command': 'restorelang', 'argument': language})

async def validate_command(self, command: str) -> Mapping:
""" Execute command and validate result is `success` """
response = await self.service.send_receive_request({'command': command})
Expand Down

0 comments on commit 024fd08

Please sign in to comment.