index
:
anonymous/android_bootable_recovery
android-11
android-14.0
android-4.3
android-4.4
android-5.0
android-5.1
android-6.0
android-7.0
android-7.1
android-8.0
android-8.1
android-9.0
Team Win Recovery Project (TWRP)
mirror
summary
refs
log
tree
commit
diff
stats
log msg
author
committer
range
path:
root
/
updater
/
blockimg.cpp
(
unfollow
)
Commit message (
Expand
)
Author
Files
Lines
2019-05-22
Some clean ups to the updater
Tianjie Xu
1
-4
/
+8
2019-05-21
Add UpdaterRuntime class
Tianjie Xu
1
-24
/
+50
2019-05-09
Skip hashtree computation during block image verify
Tianjie Xu
1
-1
/
+1
2019-05-09
Add Updater class and remove UpdaterInfo
Tianjie Xu
1
-19
/
+21
2019-05-06
Track libziparchive API change.
Elliott Hughes
1
-2
/
+2
2019-01-17
Fix potential size overflow in blockimg.cpp
xunchang
1
-3
/
+5
2019-01-14
updater: add functions to modify dynamic partition metadata
Yifan Hong
1
-9
/
+52
2019-01-12
Create stash dir recursively.
Yifan Hong
1
-1
/
+2
2019-01-05
updater: erase ignores EOPNOTSUPP for BLKDISCARD
Yifan Hong
1
-11
/
+10
2018-11-05
updater: Error out on underrun during patching.
Tao Bao
1
-1
/
+4
2018-10-05
Use only signed/unsigned numbers with ParseInt/ParseUint respectively
Tom Cherry
1
-1
/
+1
2018-08-28
Enable c++17 in recovery_defaults.
Tao Bao
1
-23
/
+23
2018-08-28
Remove otafault
Tianjie Xu
1
-70
/
+46
2018-08-06
Add an updater function to compute hash tree
Tianjie Xu
1
-18
/
+123
2018-07-13
applypatch: Consolidate CacheSizeCheck() and MakeFreeSpaceOnCache().
Tao Bao
1
-3
/
+3
2018-07-10
edify: Remove VAL_INVALID and move ValueType into Value class.
Tao Bao
1
-10
/
+11
2018-07-07
updater: Add ABORT command.
Tao Bao
1
-0
/
+7
2018-07-03
No longer print hash for stashed blocks during verification of retry
Tianjie Xu
1
-1
/
+3
2018-06-18
updater: Defer the creation of the new data writer.
Tao Bao
1
-24
/
+24
2018-06-08
updater: Drop the 'overlap' parameter in LoadSrcTgtVersion3().
Tao Bao
1
-12
/
+10
2018-06-07
updater: Remove the redundant check on line count.
Tao Bao
1
-9
/
+3
2018-06-05
updater: Replace the reference arguments with pointers.
Tao Bao
1
-102
/
+101
2018-06-04
tests: Add ResumableUpdaterTest.
Tao Bao
1
-0
/
+1
2018-05-31
updater: Drop the 'blocks' parameter in LoadStash().
Tao Bao
1
-15
/
+8
2018-05-26
updater: Add Commmand class to manage BBOTA commands.
Tao Bao
1
-63
/
+54
2018-05-22
updater: Use a bool to indicate if allowed to skip a command.
Tao Bao
1
-22
/
+17
2018-05-21
updater: Clean up the header lines computation.
Tao Bao
1
-6
/
+4
2018-05-16
Last command file should be updated after a command finishes
Tianjie Xu
1
-11
/
+7
2018-05-08
updater: Fix an issue when resuming an update.
Tao Bao
1
-3
/
+6
2018-05-08
updater: Skip an updated partition on retry.
Tao Bao
1
-39
/
+77
2018-04-26
Rename CacheLocation to Paths.
Tao Bao
1
-16
/
+12
2018-04-25
updater: Remove an unneeded strdup().
Tao Bao
1
-1
/
+1
2018-04-20
applypatch: Drop the SHA_CTX parameter in Apply{BSDiff,Image}Patch.
Tao Bao
1
-3
/
+2
2018-02-28
Add a singleton CacheLocation to replace the hard coded locations
Tianjie Xu
1
-4
/
+5
2018-02-28
Fix the behavior of undefined commands in BlockImageVerify
Tianjie Xu
1
-2
/
+4
2018-02-07
Log the last command to cache
Tianjie Xu
1
-9
/
+172
2018-01-29
Avoid overwrite of the error message in AbortFn
Tianjie Xu
1
-9
/
+9
2017-11-10
applypatch: Change the patch parameter to const Value& in Apply{BSDiff,Image}Patch.
Tao Bao
1
-2
/
+2
2017-11-07
otautil: Remove the aborts in RangeSet::Parse().
Tao Bao
1
-1
/
+19
2017-10-20
Finish the new data receiver when update fails
Tianjie Xu
1
-16
/
+41
2017-10-11
Move rangeset.h and print_sha1.h into otautil.
Tao Bao
1
-2
/
+2
2017-10-09
Revert "Revert "Move error_code.h into otautil.""
Tao Bao
1
-1
/
+1
2017-10-05
Revert "Move error_code.h into otautil."
Tao Bao
1
-1
/
+1
2017-10-04
Move error_code.h into otautil.
Tao Bao
1
-1
/
+1
2017-09-29
otafault: Move headers under otafault/.
Tao Bao
1
-1
/
+1
2017-08-19
Move Image/ImageChunk/PatchChunk declaration into header files
Tianjie Xu
1
-1
/
+1
2017-07-22
Fix a case when brotli writer fails to write last few blocks of data
Tianjie Xu
1
-94
/
+81
2017-07-21
Fix a case when brotli writer fails to write last few blocks of data
Tianjie Xu
1
-94
/
+81
2017-07-08
Add support to decompress brotli compressed new data
Tianjie Xu
1
-32
/
+143
2017-05-24
Retry the update if ApplyBSDiffPatch | ApplyImagePatch fails
Tianjie Xu
1
-0
/
+2
2017-04-08
Abort the update if there's not enough new data
Tianjie Xu
1
-4
/
+26
2017-04-03
Change the internal representation in RangeSet.
Tao Bao
1
-205
/
+187
2017-03-31
updater: Keep the parsed parameters in std::unique_ptr.
Tao Bao
1
-160
/
+157
2017-03-31
Move parse_range() and range_overlaps() into RangeSet.
Tao Bao
1
-110
/
+18
2017-03-30
updater: Don't append newline when calling uiPrint().
Tao Bao
1
-1
/
+2
2017-03-29
updater: Move RangeSinkWrite into RangeSinkState.
Tao Bao
1
-164
/
+146
2017-03-28
applypatch: Let Apply{BSDiff,Image}Patch accept std::function.
Tao Bao
1
-75
/
+76
2017-03-28
applypatch: Change the ssize_t length parameters to size_t.
Tao Bao
1
-41
/
+40
2017-03-28
updater: Clean up LoadSrcTgtVersion2().
Tao Bao
1
-146
/
+143
2017-03-24
updater: Remove some redundant arguments.
Tao Bao
1
-78
/
+65
2017-03-24
updater: Drop the support for BBOTA v1 and v2.
Tao Bao
1
-398
/
+330
2017-03-23
Removed C-style casts
Mikhail Lappo
1
-1
/
+1
2017-03-23
Redundant checking of STL container element
Mikhail Lappo
1
-3
/
+1
2017-03-22
Remove malloc in edify functions
Tianjie Xu
1
-13
/
+41
2017-03-22
Fix the permission of stashed blocks created by updater
Tianjie Xu
1
-0
/
+12
2017-03-17
Revert "Revert "Print SHA-1 in hex for corrupted blocks""
Tianjie Xu
1
-6
/
+140
2017-03-16
updater: Minor clean up to EnumerateStash().
Tao Bao
1
-73
/
+50
2017-03-15
Revert "Print SHA-1 in hex for corrupted blocks"
Tao Bao
1
-140
/
+3
2017-03-13
Print SHA-1 in hex for corrupted blocks
Tianjie Xu
1
-3
/
+140
2017-02-03
Replace _exit(-1) with _exit(EXIT_FAILURE).
Tao Bao
1
-1
/
+1
2017-01-04
updater: Refactor parse_range().
Tao Bao
1
-74
/
+63
2016-12-29
updater: Clean up CreateStash().
Tao Bao
1
-84
/
+85
2016-12-14
updater: Fix the operator order.
Tao Bao
1
-1
/
+1
2016-12-01
updater: Switch to libbase logging.
Tao Bao
1
-99
/
+95
2016-11-01
Cleanup ReadArgs & ReadValueArgs usage
Tianjie Xu
1
-30
/
+24
2016-10-18
Replace minzip with libziparchive
Tianjie Xu
1
-47
/
+26
2016-10-15
Change StringValue to use std::string
Tianjie Xu
1
-81
/
+73
2016-10-11
Refactor libupdater into a seperate module.
Tao Bao
1
-2
/
+2
2016-09-01
Check an edge case when read(2) returns 0
Tianjie Xu
1
-0
/
+4
2016-06-16
Check the results from applypatch
Tianjie Xu
1
-4
/
+10
2016-06-03
Call ioctl before each write on retry
Tianjie Xu
1
-7
/
+52
2016-05-20
Allow recovery to return error codes
Tianjie Xu
1
-27
/
+54
2016-05-16
Add time and I/O info to last_install
Tianjie Xu
1
-0
/
+12
2016-04-29
Fix google-explicit-constructor warnings.
Chih-Hung Hsieh
1
-1
/
+1
2016-04-27
updater: Don't zero out CommandParameters with memset(3).
Tao Bao
1
-2
/
+1
2016-03-29
Switch to <android-base/unique_fd.h>.
Elliott Hughes
1
-25
/
+17
2016-03-25
Skip stashing source blocks in verify mode
Tianjie Xu
1
-8
/
+46
2016-03-23
Skip stashing source blocks in verify mode
Tianjie Xu
1
-8
/
+46
2016-03-19
Control fault injection with config files instead of build flags
Jed Estep
1
-1
/
+1
2016-03-17
Revert "DO NOT MERGE Control fault injection with config files instead of build flags"
Tao Bao
1
-1
/
+1
2016-03-16
DO NOT MERGE Control fault injection with config files instead of build flags
Jed Estep
1
-1
/
+1
2016-02-23
Control fault injection with config files instead of build flags
Jed Estep
1
-1
/
+1
2016-02-20
Control fault injection with config files instead of build flags
Jed Estep
1
-1
/
+1
2016-02-10
IO fault injection for OTA packages
Jed Estep
1
-12
/
+13
2016-02-04
Switch from mincrypt to BoringSSL in applypatch and updater.
Sen Jiang
1
-10
/
+9
2016-01-07
updater: Add a function to check first block
Tianjie Xu
1
-0
/
+55
2016-01-06
IO fault injection for OTA packages
Jed Estep
1
-6
/
+7
2015-12-18
updater: Add a function to check first block
Tianjie Xu
1
-0
/
+55
2015-12-11
updater: Output msg when recovery is called
Tianjie Xu
1
-1
/
+4
2015-12-10
updater: Output msg when recovery is called
Tianjie Xu
1
-1
/
+4
2015-12-07
updater: Replace strtok() with android::base::Split().
Tao Bao
1
-133
/
+144
2015-12-05
Track rename from base/ to android-base/.
Elliott Hughes
1
-2
/
+2
2015-11-16
DO NOT MERGE recovery: Switch applypatch/ and updater/ to cpp.
Tao Bao
1
-17
/
+14
2015-11-16
Add error and range checks to parse_range
Sami Tolvanen
1
-10
/
+71
2015-08-04
udpater: Call fsync() after rename().
Tao Bao
1
-0
/
+20
2015-07-14
recovery: Switch applypatch/ and updater/ to cpp.
Tao Bao
1
-1994
/
+0
2015-07-14
recovery: Switch applypatch/ and updater/ to cpp.
Tao Bao
1
-1994
/
+0
2015-07-11
Revert "Zero blocks before BLKDISCARD"
Tao Bao
1
-17
/
+1
2015-07-01
Revert "Zero blocks before BLKDISCARD"
Tao Bao
1
-17
/
+1
2015-06-26
More accurate checking for overlapped ranges.
Tao Bao
1
-1
/
+1
2015-06-26
More accurate checking for overlapped ranges.
Tao Bao
1
-1
/
+1
2015-06-10
Zero blocks before BLKDISCARD
Sami Tolvanen
1
-1
/
+17
2015-06-10
Zero blocks before BLKDISCARD
Sami Tolvanen
1
-1
/
+17
2015-06-10
Revert "Zero blocks before BLKDISCARD"
Sami Tolvanen
1
-5
/
+9
2015-06-10
Revert "Zero blocks before BLKDISCARD"
Sami Tolvanen
1
-5
/
+9
2015-06-09
Zero blocks before BLKDISCARD
Sami Tolvanen
1
-9
/
+5
2015-06-09
Zero blocks before BLKDISCARD
Sami Tolvanen
1
-9
/
+5
2015-05-29
Really don't use TEMP_FAILURE_RETRY with close in recovery.
Elliott Hughes
1
-1
/
+1
2015-05-29
Handle BLKDISCARD failures
Sami Tolvanen
1
-2
/
+1
2015-05-29
Really don't use TEMP_FAILURE_RETRY with close in recovery.
Elliott Hughes
1
-1
/
+1
2015-05-28
Handle BLKDISCARD failures
Sami Tolvanen
1
-2
/
+1
2015-05-16
Don't use TEMP_FAILURE_RETRY on close in recovery.
Elliott Hughes
1
-2
/
+2
2015-05-16
Don't use TEMP_FAILURE_RETRY on close in recovery.
Elliott Hughes
1
-2
/
+2
2015-05-15
Add error and range checks to parse_range
Sami Tolvanen
1
-10
/
+71
2015-04-30
Check all lseek calls succeed.
Elliott Hughes
1
-28
/
+20
2015-04-30
Check all lseek calls succeed.
Elliott Hughes
1
-28
/
+20
2015-04-17
Don't remove existing explicitly stashed blocks
Sami Tolvanen
1
-10
/
+28
2015-03-23
Always use strerror to report errno in recovery.
Elliott Hughes
1
-19
/
+20
2015-03-11
updater: Check the return value from ApplyImagePatch / ApplyBSDiffPatch
Tao Bao
1
-14
/
+28
2015-02-23
Fix a printf format warning.
Narayan Kamath
1
-1
/
+1
2015-02-18
Initialize stashbase even stash_max_blocks = 0
Jesse Zhao
1
-1
/
+1
2015-01-30
Support resuming block based OTAs
Sami Tolvanen
1
-346
/
+1460
2014-09-26
support for version 2 of block image diffs
Doug Zongker
1
-45
/
+209
2014-09-08
support for version 2 of block image diffs
Doug Zongker
1
-45
/
+209
2014-09-04
fix comment in blockimg updater code
Doug Zongker
1
-3
/
+3
2014-09-04
use lseek64 instead of lseek
Andrew Boie
1
-11
/
+11
2014-08-21
fix two bugs in block image updater
Doug Zongker
1
-18
/
+32
2014-08-20
installer for new block OTA system
Doug Zongker
1
-0
/
+631
2014-08-19
installer for new block OTA system
Doug Zongker
1
-0
/
+631