summaryrefslogtreecommitdiffstats
path: root/twrpDigestDriver.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-04-09Do not check digest on mapped installsEthan Yonker1-1/+1
Change-Id: I2d57eba354e4ec88f418208183f53c12e8548fcb
2019-04-02Fix zip digest checkEthan Yonker1-1/+3
Change-Id: I5c05c485574131d3fbc8cb5af5b1281d12b822ce
2019-04-02Zip install: this will allow TWRP to check md5 and sha256 checksumsbigbiff bigbiff1-8/+21
for zip installs. Change-Id: I1fb6af777e08aea29bedaf2e6a9b385ae3b03fac
2017-11-28Support v2 fstab formatEthan Yonker1-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
2017-06-17twrpDigest refactorbigbiff bigbiff1-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