summaryrefslogtreecommitdiffstats
path: root/src/normal.c
AgeCommit message (Collapse)AuthorFilesLines
2024-05-05Updated to use libplist 2.5.0 APIGravatar Nikias Bassen1-6/+6
2024-03-23Fix some variable types for more consistencyGravatar Nikias Bassen1-4/+4
2023-09-13normal: Don't do unpair before entering recovery mode, remove pairing record ↵Gravatar Nikias Bassen1-6/+4
afterwards instead
2022-06-20Remove more serial number checks, and get ECID early on in all modesGravatar Nikias Bassen1-14/+6
Some devices seem to not have a serial number, usually in restore mode, which will cause the restore operation to fail since we specifically check for it. An earlier commit already removed the actual comparison in favor of comparing the ECID, but some checks would still result in restore failures as it can't retrieve the serial number on said devices at all. This commit also makes sure to get the ECID in all modes as early as possible and removes all the helper functions for it since they are not needed anymore.
2022-04-08normal: Skip fetching FirmwarePreflightInfo for non-baseband devicesGravatar Nikias Bassen1-6/+17
This will prevent the otherwise confusing (but harmless) error messages ERROR: Unable to get (null)-FirmwarePreflightInfo from lockdownd ERROR: Unable to get FirmwarePreflightInfo during restore.
2021-09-01Remove common code in favor of libimobiledevice-glueGravatar Nikias Bassen1-1/+0
2021-06-29Make device mode specific code more consistentGravatar Nikias Bassen1-3/+4
2021-05-26normal: Fix incorrect return code in normal_enter_recovery()Gravatar Sami Kortelainen1-1/+1
2021-03-05Fix entering recovery mode on iOS 14.5+ which now requires a pairingGravatar Nikias Bassen1-2/+12
2020-06-08Remove trailing whitespace errors from all filesGravatar Martin Szulecki1-1/+1
2019-10-20Allow cancelling the 'waiting for trust' loop, and don't spam console in ↵Gravatar Nikias Bassen1-1/+10
debug mode while waiting for it
2019-10-11Use condition variable instead of active waiting for device event handlingGravatar Nikias Bassen1-2/+7
With some devices and USB hardware the reconnect of a device might actually be faster than the check interval of the active waiting loop. With mutexes and a condition variable we will not miss the moment of reconnect anymore, even if it is really quick (like 7ms, right DanyL?)
2019-09-26Add more cancellation points to handle CTRL+CGravatar Nikias Bassen1-3/+3
2019-09-26Make sure CTRL+C is working at specific stages of the processGravatar Nikias Bassen1-2/+2
2019-09-25normal: Unpair device before entering recovery modeGravatar Nikias Bassen1-0/+6
2019-09-25Use global event handlers for normale/restore and recovery/dfu mode devicesGravatar Nikias Bassen1-94/+39
2019-08-29Add support to "preboard" a device on update restore to prevent 'Attempting ↵Gravatar Nikias Bassen1-2/+228
data recovery'
2019-08-20Reduce code duplication in normal.c with helper functionGravatar Nikias Bassen1-113/+32
2017-11-13Change check_hardware_model() to get_irecv_device()Gravatar BALATON Zoltan1-2/+2
The check_hardware_model() function has a misleading name. It returns a string with the hardware model but this is not used. Instead, this function is only called for its side effect to initialise an irecv device in the passed client struct which it creates from the hardware model name returned by mode specific implementations. But these mode specific implementations already create an irecv device to get the hardware model name so instead of going through this unnecessary complication just return the irecv device directly and rename the function accordingly to make this clear. (This may also prevent leaking an irecv device in the mode specific functions.)
2017-02-07Remove some unneded variables and conditionals and plug some potential ↵Gravatar BALATON Zoltan1-8/+8
memory leaks
2016-06-26normal: Removed unused variableGravatar Nikias Bassen1-1/+0
2015-10-09Use hardware model instead of product type to identify device correctlyGravatar Nikias Bassen1-43/+3
2015-09-24normal: Make sure to select correct device by ecid OR udidGravatar Nikias Bassen1-19/+29
2015-09-24normal: Use correct error code values for lockdownd_error_tGravatar Nikias Bassen1-5/+5
2014-03-29Add newline at end of some info and error messages where it's missingGravatar Martin Szulecki1-2/+2
2014-02-09normal: remove "ERROR:" prefix from SEPNonce error messageGravatar Nikias Bassen1-2/+2
Some devices don't have an SEPNonce so this message just sounds fatal while it isn't.
2014-01-07normal: removed unused variableGravatar Nikias Bassen1-2/+0
2013-12-01normal: removed unused variablesGravatar Nikias Bassen1-6/+0
2013-11-20normal: add normal_get_preflight_info helper functionGravatar Nikias Bassen1-0/+42
2013-11-20normal: fix normal_get_sep_nonce/normal_get_ap_nonceGravatar Nikias Bassen1-2/+2
2013-11-19Add helper function to check if device supports image4 formatGravatar Nikias Bassen1-0/+45
2013-11-19removed unused get_cpid/get_bdid and adapted for latest libirecovery changesGravatar Nikias Bassen1-8/+0
2013-11-19normal: fix missing return typeGravatar Nikias Bassen1-1/+1
2013-11-18normal: Split normal_get_nonce() into ApNonce and SEPNonce gettersGravatar Martin Szulecki1-4/+13
2013-11-18normal: always try a non-handshake connection if handshake failsGravatar Nikias Bassen1-11/+1
2013-10-02silence implicit declaration compiler warningsGravatar Nikias Bassen1-0/+3
2013-09-27Require libirecovery >= 0.2.0 and port code to it's new APIGravatar Martin Szulecki1-15/+21
2013-09-23normal: Fix pair record removal due to changed libimobiledevice APIGravatar Martin Szulecki1-1/+1
2013-09-23Update AUTHORS and file copyrights accordinglyGravatar Martin Szulecki1-0/+2
2013-01-11fix possible memory corruption due to bad cast from int to uint64_tGravatar Nikias Bassen1-1/+3
2012-11-07normal: Fix compiler warningsGravatar Martin Szulecki1-1/+2
2012-11-07normal: Implement normal_get_nonce()Gravatar Martin Szulecki1-0/+43
2012-07-17Support restoring passcode locked devices from normal modeGravatar Martin Szulecki1-13/+47
2012-07-16mass replace uuid->udid and raise libimobiledevice requirement to >= 1.1.4Gravatar Nikias Bassen1-5/+5
2012-02-14remove duplicate CPID/BDID and devices structsGravatar Nikias Bassen1-3/+3
and use the ones from libirecovery.h instead
2012-02-09add support for targeting a device by ECIDGravatar Nikias Bassen1-58/+89
2012-02-02recovery: merge recovery_open_with_timeout into recovery_client_newGravatar Nikias Bassen1-1/+1
2012-02-02normal: do not set autoboot env after entering restore modeGravatar Nikias Bassen1-17/+3
this needs to be done in recovery.c since it is generic and not specific to the recovery mode entered from normal mode
2010-06-21Fixed a few more compile errors, everything should compile fine now, but i'm ↵Gravatar Joshua Hill1-3/+3
not sure if it will run yet
2010-06-21Finally fixed the out of control problemGravatar Joshua Hill1-12/+88