summaryrefslogtreecommitdiffstats
path: root/twrpDigestDriver.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Do not check digest on mapped installsEthan Yonker2019-04-091-1/+1
| | | | Change-Id: I2d57eba354e4ec88f418208183f53c12e8548fcb
* Fix zip digest checkEthan Yonker2019-04-021-1/+3
| | | | Change-Id: I5c05c485574131d3fbc8cb5af5b1281d12b822ce
* Zip install: this will allow TWRP to check md5 and sha256 checksumsbigbiff bigbiff2019-04-021-8/+21
| | | | | | for zip installs. Change-Id: I1fb6af777e08aea29bedaf2e6a9b385ae3b03fac
* Support v2 fstab formatEthan Yonker2017-11-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | Auto detect and support both the v1 and v2 fstab formats Support putting TWRP style flags in a separate /etc/twrp.flags file twrp.flags format is the same as twrp.fstab (v1 with TWRP flags) Support using a wildcard in a block device and find all partitions: /usb-otg vfat /dev/block/sda* Support using sysfs entries (voldmanaged) and read uevents and scan for wildcard partitions from uevent data. (twvold?) May not be complete for some of the newer flags found in fstabs in newer build trees and there is a slim chance of a crash if the user removes a removable device while TWRP is performing actions. May need to add some kind of mutex to prevent the 2 threads from causing this crash. We need to start somewhere though and this change is pretty innocuous when not using a v2 fstab. Change-Id: I617d97c7db332cbe671a9d2b8ad98b3d9c4f03cc
* twrpDigest refactorbigbiff bigbiff2017-06-171-0/+218
This patch is to refactor twrpDigest using polymorphism and inheritance to use the same call patterns for creating and reading a digest. Now a library. Use SHA2 from libcrypto. SHA2 is default if device has libcrypto. Change string MD5 everywhere to use digest or Digest instead. Updated string tags to digest. Translation will be required. Switch out digest code into a driver class from partitionmanager. SHA2 is better for digest creation due to decreased collision space compared to MD5 and SHA1. See https://en.wikipedia.org/wiki/SHA-2 Change-Id: I74b5546789990b12aa4ce2e389d25f80a3fe213f