summaryrefslogtreecommitdiffstats
path: root/src/common.c
AgeCommit message (Collapse)AuthorFilesLines
2024-06-29Remove debug printfGravatar Nikias Bassen1-1/+0
2024-06-24Add support for iOS 18 restore processGravatar Nikias Bassen1-7/+29
2024-05-05Updated to use libplist 2.5.0 APIGravatar Nikias Bassen1-139/+0
2024-03-23Add support for Port DFU device restoreGravatar Nikias Bassen1-0/+1
2023-11-15Change path_get_basename arg to const tooGravatar Nikias Bassen1-1/+1
2023-11-15Change path_get_basename()'s return type to const char*Gravatar tihmstar1-3/+3
This makes it clear that the return value is immutable and moreover suggests that the return vale is not allocated and thus should be treated carefully.
2023-11-09Print progress for large components (e.g. Cryptex)Gravatar Nikias Bassen1-1/+1
2023-11-02Extract OS component when using older ipsw archivesGravatar Nikias Bassen1-0/+17
Older ipsw archives have the root filesystem stored in compressed format rather than just "stored". The "Verifying Filesystem" step would then fail as compressed files are not seekable in ZIP files. This commit introduces a detection for this and has the filesystem extracted should it be required. If not using a cache path, the temp file used for extraction will be deleted after the procedure is completed.
2022-04-27Fix restore for devices that don't have eUICCGravatar Nikias Bassen1-1/+1
Because of a default value of (uint64_t)-1LL returned when _plist_dict_get_uint doesn't find the dictionary entry for the given key, a later comparison of that unsigned value against something like >= 5 will result in the condition being true even though it was not supposed to. _plist_dict_get_uint will now return a default value of 0 if the key is not found. Code paths that deal with actual values of 0 vs. non-existent values need to test the existence of the key deal with that; I am currently not aware of anything that would be affected.
2022-04-07tss/restore: Improve code readability with plist helpers and removal of ↵Gravatar Nikias Bassen1-0/+50
unneeded comments
2021-06-29Make device mode specific code more consistentGravatar Nikias Bassen1-6/+6
2020-06-08Remove trailing whitespace errors from all filesGravatar Martin Szulecki1-1/+1
2020-04-12fix newly introduced format errors under 64-bitGravatar Rosen Penev1-1/+0
uint64_t should be used. Signed-off-by: Rosen Penev <rosenp@gmail.com>
2020-04-12Fix unnecessary double promotionGravatar Rosen Penev1-2/+2
Found with -Wdouble-promotion and -Wfloat-equal
2020-04-12Fix format compiler warningsGravatar Rosen Penev1-2/+3
This also allows the compiler to check these at compile time.
2020-04-12Replace strncpy with memcpyGravatar Rosen Penev1-1/+1
Fixes compiler warnings.
2019-10-11win32: Use signal on win32 but make sure user input can be cancelled with ctrl+cGravatar Nikias Bassen1-1/+9
also added ESC key as a fallback cancel method.
2019-09-25common: Extend _plist_dict_get_uint/bool helper to allow get values from ↵Gravatar Nikias Bassen1-2/+70
data/string/integer nodes
2019-08-28Add plist dictionary helperGravatar Nikias Bassen1-0/+22
2019-03-22Make sure user input can be cancelled properlyGravatar Nikias Bassen1-1/+4
2019-02-14Allow .ipsw files or extracted IPSW as sourceGravatar Nikias Bassen1-2/+19
2019-02-02Common: included <unistd.h> for fix compiling on macOSGravatar s0uthwest1-0/+1
error: use of undeclared identifier 'STDIN_FILENO' tcgetattr(STDIN_FILENO, &oldt);
2019-02-02Use ipsw.me API to allow selection and download of any signed firmware ↵Gravatar Nikias Bassen1-0/+45
version when using --latest
2019-01-23Replace tempnam() with mkstemp() and provide reference implementation for ↵Gravatar Nikias Bassen1-0/+177
systems lacking it
2019-01-21common: Use fstat() instead of fseeko() and ftello()Gravatar Nikias Bassen1-4/+9
2017-02-24common: Add strsep() implementation for platforms lacking itGravatar Nikias Bassen1-0/+17
2016-06-26restore: Fix restore mode status/progress messagesGravatar Nikias Bassen1-1/+1
2015-09-24common: Remove plist_dict_merge() as it's already provided by libplistGravatar Nikias Bassen1-26/+0
Also, set libplist requirement to 1.12
2015-09-24Replace () with (void) for proper function prototypesGravatar Martin Szulecki1-2/+2
2015-05-05Fix some warningsGravatar BALATON Zoltan1-0/+9
2014-10-28Rename restore step to indicate flashing of firmware instead of NORGravatar Martin Szulecki1-1/+1
2014-10-22common: Use ftello(), fseeko() variants for large file supportGravatar Martin Szulecki1-2/+2
2014-10-21Fixed a typo in an error messageGravatar BALATON Zoltan1-1/+1
2014-10-21Supress printing very long plists and too verbose messages in debug outputGravatar BALATON Zoltan1-1/+6
2014-09-21common: Fix possible crash in mkdir_with_parents()Gravatar Nikias Bassen1-5/+11
2014-03-22Use "plist_dict_set_item" instead of deprecated "plist_dict_insert_item"Gravatar Martin Szulecki1-1/+1
2013-11-19common: Add plist_dict_merge() helper to merge dictionariesGravatar Martin Szulecki1-0/+26
2013-10-02common: supress more compiler warningsGravatar Nikias Bassen1-1/+2
2013-09-23Update AUTHORS and file copyrights accordinglyGravatar Martin Szulecki1-0/+2
2013-07-04common: do not recurse mkdir_with_parents if dirname(dir) == dirGravatar Nikias Bassen1-1/+1
2012-11-07Fix possible crash in error()Gravatar Nikias Bassen1-3/+5
2012-11-07Add error buffer and getter function to get the last error messageGravatar Martin Szulecki1-2/+20
2012-11-07update progress bar function to use info_stream (if enabled)Gravatar Nikias Bassen1-1/+2
2012-11-07change info(), error(), and debug() into functions and allow redirecting the ↵Gravatar Martin Szulecki1-0/+68
output
2012-11-07libidevicerecovery: implemented progress callback logicGravatar Martin Szulecki1-0/+12
2012-07-17common: silence warning by adding missing includeGravatar Nikias Bassen1-0/+1
2012-07-17main: add --cache-path parameter and use it for version.xml and wtf imageGravatar Nikias Bassen1-0/+25
2012-07-17common: Disable progress bar on WIN32 as it slows down the process a lotGravatar Martin Szulecki1-0/+2
2012-02-13common: fix progress bar percentage value paddingGravatar Nikias Bassen1-1/+1
2012-02-02common: add missing include and type castGravatar Nikias Bassen1-1/+2