Method and apparatus for scanning upgrade package
A technology of upgrade package and content feature value, which is applied in the field of scanning upgrade packages, can solve problems such as upgrade exceptions, upgrade package download exceptions, mismatches, etc., and achieve the effect of reducing and avoiding wrong upgrades
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0021] figure 1 It is a flow chart of a method for scanning an upgrade package provided by Embodiment 1 of the present invention. This embodiment is applicable to verifying the upgrade package when the terminal receives the upgrade package, displaying the upgrade package that has been successfully verified and Ignoring the case of an upgrade package that fails verification, the method can be executed by a device that scans the upgrade package, and the device is configured on smart terminals such as smart phones, personal computers, and smart TVs. The method for scanning the upgrade package specifically includes the following steps:
[0022] Step 110, scanning the files in the upgrade package to obtain the verification file.
[0023] Wherein, the verification file is a file that records file names and corresponding content characteristic values included in the upgrade package. The content characteristic value is a character corresponding to each file in the upgrade package ...
Embodiment 2
[0040] figure 2 It is a flowchart of a method for scanning upgrade packages in Embodiment 2 of the present invention. see figure 2 As shown, the method for scanning an upgrade package specifically includes the following steps:
[0041] Step 201, when generating the upgrade package, add the model and version number in the name of the upgrade package, adopt different signature keys according to different regions, store the signature key in the system directory of the upgrade package, compile Each file in the upgrade package generates a content characteristic value.
[0042] Step 202, receiving an upgrade package, and performing an operation of scanning the upgrade package.
[0043] The terminal receives the upgrade package pushed by the terminal manufacturer or the user downloads the upgrade package on the website of the terminal manufacturer, and scans the directory file of the upgrade package to read the verification file in the upgrade package. If the verification file ...
Embodiment 3
[0061] image 3 It is a schematic structural diagram of a device for scanning upgrade packages in Embodiment 3 of the present invention. Such as image 3 As shown, the device for scanning the upgrade package includes:
[0062] A verification file acquisition unit 310, configured to scan the files in the upgrade package to obtain the verification file;
[0063] A content characteristic value matching unit 320, configured to obtain the content characteristic value of each file recorded in the verification file, and match the content characteristic value with the content characteristic value of the corresponding file in the upgrade package;
[0064] The model version number matching unit 330 is configured to obtain the model and version number of the terminal when the matching is successful, and match the model and version number with the upgrade package, wherein the name of the upgrade package includes model and version number;
[0065] A signature verification unit 340, con...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 