summaryrefslogtreecommitdiffstats
path: root/src/normal.c
AgeCommit message (Collapse)AuthorFilesLines
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
2010-06-21Archived for historical reasonsGravatar Joshua Hill1-4/+44
2010-06-05Changed the device type to a structure array for cleaner code and cross ↵Gravatar Joshua Hill1-15/+11
state access
2010-06-04Even more major cleanups and refactoring, this branch is still broken but ↵Gravatar Joshua Hill1-6/+7
starting to mature really well
2010-06-04Refactoring continued, lots of bug fixes, probably about half way throughGravatar Joshua Hill1-1/+29
2010-06-01Began major refactoring, not quite finished yet, this branch is probably brokeGravatar Joshua Hill1-1/+168
2010-06-01Began refactoring of code to simplify and seperate device state logicGravatar Joshua Hill1-0/+28