主权项 |
1. A method performed on a computing device that includes a processor, memory, and a component repair service, the method comprising:
determining, by the component repair service operating on the computing device, a set of corrupt files; obtaining, by the component repair service, a set of repair files that corresponds to the determined set of corrupt files, where the component repair service is further configured for validating the set of repair files in addition to determining the set of corrupt files, and where the determining and the validating each comprises:
generating, for each file that, for the determining, is in the set of corrupt files and, for the validating, is in the set of repair files, a hash of the each file, andcomparing each generated hash to a corresponding cryptographically secure hash key of an uncorrupted version of the each file; and repairing, by the component repair service based on the obtained set of repair files, a corrupt software component that corresponds to the determined set of corrupt files. |