CN106528248B - Downloading method and system of mobile terminal based on software integrity - Google Patents

Downloading method and system of mobile terminal based on software integrity Download PDF

Info

Publication number
CN106528248B
CN106528248B CN201611080533.0A CN201611080533A CN106528248B CN 106528248 B CN106528248 B CN 106528248B CN 201611080533 A CN201611080533 A CN 201611080533A CN 106528248 B CN106528248 B CN 106528248B
Authority
CN
China
Prior art keywords
software
downloading
downloaded
mobile terminal
checking
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611080533.0A
Other languages
Chinese (zh)
Other versions
CN106528248A (en
Inventor
姜海辉
崔书中
向阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Foshan Huayue Intellectual Property Operation Co ltd
Original Assignee
Huizhou TCL Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou TCL Mobile Communication Co Ltd filed Critical Huizhou TCL Mobile Communication Co Ltd
Priority to CN201611080533.0A priority Critical patent/CN106528248B/en
Publication of CN106528248A publication Critical patent/CN106528248A/en
Application granted granted Critical
Publication of CN106528248B publication Critical patent/CN106528248B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/08Error detection or correction by redundancy in data representation, e.g. by using checking codes
    • G06F11/10Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
    • G06F11/1008Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's in individual solid state devices
    • G06F11/1048Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's in individual solid state devices using arrangements adapted for a specific error detection or correction feature

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Quality & Reliability (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to the field of software downloading, and discloses a downloading method and a downloading system of a mobile terminal based on software integrity, wherein the method comprises the following steps: before the mobile terminal downloads the software, judging whether the downloaded software is correct in advance; when the downloaded software is correct, starting to download the software, and when the downloaded software is abnormal in the checking process, stopping the current operation and informing a user; when the software starts to be downloaded and in the downloading process, checking is carried out for a preset number of times through an algorithm, and the software is downloaded into the mobile terminal when the correctness of each check is all consistent. According to the invention, three times of MD5 checks are carried out in the process of downloading software by the mobile terminal, each step needs to be consistent, the influence of external environment abnormity is eliminated, and the purpose of consistency of software downloaded to the mobile terminal and software designed in advance is finally achieved, so that a user can conveniently use the software with complete functions.

Description

Downloading method and system of mobile terminal based on software integrity
Technical Field
The invention relates to the field of mobile terminal software downloading, in particular to a downloading method and a downloading system of a mobile terminal based on software integrity.
Background
In the process of mass production of mobile terminals, such as mobile phones, software is downloaded after the mobile terminals are attached with the patches in order to check the functions of the patch technology and the devices, and whether the functions of the mobile phones are normal is detected through a manual inspection mode, so that whether hardware devices, the patch technology and the functions are normal is judged. Correspondingly, the mobile phone software has the advantages that a plurality of files are matched with hardware to complete the powerful functions of the mobile phone, the more the software is, the longer the downloading time is, and the higher the possibility of problems in the downloading process is.
There are many accidental factors in the production process of mobile phones that may cause the downloading of mobile phone software to be incomplete, such as: and a battery falls off in the software downloading process, or the USB cable is pulled out without completing the downloading, and the like. The incomplete downloading of the software may cause the mobile phone to have an abnormal function, and when the mobile phone has an abnormal function, the abnormal function may be caused by the abnormality of the hardware device or the chip mounting process itself, besides the software. When the function of the mobile phone is detected to be abnormal, if the mobile phone is judged to be faulty by mistake or the hardware device is judged to be faulty, the mobile phone can be judged to be a faulty machine in the production process. If the fault machine reaches a certain proportion, the production is brought with a lot of unnecessary inspection and maintenance, even the production process is stopped. If the problem of software is judged to be a problem by mistake and the problem of hardware is ignored, the mobile phones with the problems enter a market link, so that a user can find the problem when using the mobile phone, the problem is a serious quality accident, more maintenance cost can be brought, great damage is brought to the competitiveness of a product, and the problem is more serious. Therefore, it is very important to analyze and determine the cause of the abnormal function of the mobile phone.
At present, a mobile terminal software system and functions are more and more huge and complex, compiled binary mirror images (composed of a plurality of sub-blocks and not a unique large file) have huge data which is as much as 2-3G, so that probabilistic data loss or change in various links of data storage, transmission and downloading to terminal equipment is inevitable, in order to ensure that mobile phone equipment produced from a factory can be consistent with a pre-designed system, multi-link verification is specially designed, and if the situation that the data is different from expected data occurs, the quality cannot be ensured.
Therefore, the prior art still needs to be improved and developed to address the above drawbacks.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method and a system for downloading a mobile terminal based on software integrity, aiming at performing MD5 check three times in the process of downloading software by a mobile terminal, wherein each step needs to ensure consistency, and eliminates the influence of external environment anomaly, so as to finally achieve the purpose of consistency between software downloaded into the mobile terminal and software designed in advance, thereby facilitating the user to use the software with complete functions.
The technical scheme adopted by the invention for solving the technical problem is as follows:
a download method of a mobile terminal based on software integrity comprises the following steps:
step A, before the mobile terminal downloads the software, judging whether the downloaded software is correct in advance;
step B, when the downloaded software is correct, starting to download the software, and when the downloaded software is abnormal in the checking process, stopping the current operation and informing a user;
and step C, when the software starts to be downloaded and in the downloading process, checking for a preset number of times through an algorithm, and downloading the software into the mobile terminal when the correctness of each check is all consistent.
The downloading method of the mobile terminal based on software integrity is characterized in that the algorithm is an MD5 algorithm, and belongs to a hash function used in the field of computer security and used for providing integrity protection of messages; the predetermined number of times is 3.
The downloading method of the mobile terminal based on software integrity comprises the following specific steps:
a1, compiling the software version, calculating each mirror image through a standard MD5 algorithm to obtain a hash value, and storing the hash value, the mirror image and the MD5 value on a server released by the software version;
a2, before the mobile terminal downloads the software, obtaining the hash value, and further determining whether the downloaded software is correct.
The downloading method of the mobile terminal based on software integrity comprises the following specific steps:
b1, when judging that the downloaded software is correct, controlling the mobile terminal to start downloading the software;
b2, when judging the downloaded software is abnormal in the checking process, terminating the current operation and informing the user to download again.
The downloading method of the mobile terminal based on software integrity, wherein the step C specifically comprises the following steps:
c1, when the software starts to download, obtaining the MD5 value for the first time to check, and if the MD5 value does not meet the requirement, immediately performing abnormal error reporting;
c2, when the MD5 value obtained for the first time passes the verification, carrying out mirror image downloading and loading in the memory of the mobile terminal one by one, carrying out MD5 check, and if abnormal, immediately terminating the downloading flow and prompting the user;
and C3, when the MD5 check is successful, the software is introduced into the mobile terminal, all sub-blocks forming the software are subjected to MD5 check one by one, if abnormal, the downloading flow is immediately terminated and a user is prompted, and if the check is successful, the software is completely installed.
A download system of a mobile terminal based on software integrity, comprising:
the pre-judging module is used for pre-judging whether the downloaded software is correct or not before the mobile terminal downloads the software;
the software checking module is used for starting to download the software when the downloaded software is correct, and stopping the current operation and informing the user when the downloaded software is abnormal in the checking process;
and the algorithm checking module is used for checking the software for a preset number of times through an algorithm when the software starts to be downloaded and in the downloading process, and downloading the software into the mobile terminal when the correctness of each check is all consistent.
The downloading system of the mobile terminal based on software integrity is characterized in that the algorithm is an MD5 algorithm, and belongs to a hash function used in the field of computer security and used for providing integrity protection of messages; the predetermined number of times is 3.
The downloading system of the mobile terminal based on the software integrity comprises the following modules:
the compiling and storing unit is used for calculating each mirror image through a standard MD5 algorithm to obtain a hash value after the software version is compiled, and simultaneously storing the hash value, the mirror image and the MD5 value on a server for releasing the software version;
and the judging unit is used for acquiring the hash value before the mobile terminal downloads the software, and further judging whether the downloaded software is correct.
The downloading system of the mobile terminal based on software integrity comprises a software checking module and a software checking module, wherein the software checking module specifically comprises:
the first checking unit is used for controlling the mobile terminal to start downloading the software when judging that the downloaded software is correct;
and the second checking unit is used for terminating the current operation and informing the user to download again when judging that the downloaded software is abnormal in the checking process.
The downloading system of the mobile terminal based on software integrity comprises an algorithm checking module, a download module and a download module, wherein the algorithm checking module specifically comprises:
the first checking unit is used for acquiring the MD5 value for the first time for checking after software starts to be downloaded, and immediately performing abnormal error reporting if the MD5 value does not meet the requirement;
the second checking unit is used for carrying out mirror image downloading and loading in the memory of the mobile terminal one by one when the MD5 value acquired for the first time passes the checking, carrying out MD5 checking, and immediately terminating the downloading process and prompting a user if the MD5 is abnormal;
and the third checking unit is used for starting to introduce the software into the mobile terminal when the MD5 check is successful, performing MD5 check on all sub-blocks forming the software one by one, immediately terminating the downloading flow and prompting a user if abnormal, and finishing the integrity installation of the software if the MD5 check is successful.
The invention discloses a downloading method and a downloading system of a mobile terminal based on software integrity, wherein the method comprises the following steps: before the mobile terminal downloads the software, judging whether the downloaded software is correct in advance; when the downloaded software is correct, starting to download the software, and when the downloaded software is abnormal in the checking process, stopping the current operation and informing a user; when the software starts to be downloaded and in the downloading process, checking is carried out for a preset number of times through an algorithm, and the software is downloaded into the mobile terminal when the correctness of each check is all consistent. According to the invention, three times of MD5 checks are carried out in the process of downloading software by the mobile terminal, each step needs to be consistent, the influence of external environment abnormity is eliminated, and the purpose of consistency of software downloaded to the mobile terminal and software designed in advance is finally achieved, so that a user can conveniently use the software with complete functions.
Drawings
Fig. 1 is a flowchart of a preferred embodiment of a method for downloading a mobile terminal based on software integrity according to the present invention.
Fig. 2 is a functional block diagram of a preferred embodiment of the software integrity based download system of the mobile terminal of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for downloading a mobile terminal based on software integrity according to a preferred embodiment of the present invention.
As shown in fig. 1, a method for downloading a mobile terminal based on software integrity according to an embodiment of the present invention includes the following steps:
step S100, before the mobile terminal downloads the software, judging whether the downloaded software is correct in advance.
Further, the step S100 specifically includes:
s110, after the software version is compiled, calculating each mirror image through a standard MD5 algorithm to obtain a hash value, and simultaneously storing the hash value, the mirror image and an MD5 value on a server released by the software version;
and S120, before the mobile terminal downloads the software, acquiring the hash value, and further judging whether the downloaded software is correct.
In the invention, MD5, the name of Chinese is the fifth edition of Message Digest Algorithm, is a hash function widely used in the field of computer security for providing integrity protection of messages, and the mainstream programming language is generally realized by MD5, and is the basic principle of hash Algorithm for operating data (such as Chinese characters) into another fixed length value.
The MD5 algorithm has the following characteristics:
1. compressibility: for any length of data, the calculated length of the MD5 value is fixed.
2. Easy to calculate: it is easy to calculate the MD5 value from the raw data.
3. Resistance to modification: any change to the original data, even if only 1 byte is modified, can result in a great difference in the value of MD 5.
4. Strong collision resistance: knowing the original data and its MD5 value, it is very difficult to find a data with the same MD5 value (i.e., counterfeit data).
The MD5 is used in the invention because the algorithm is the mainstream algorithm at present, so that much time is not needed to research a new algorithm, the calculation efficiency is very high, and the efficiency of each link is not influenced.
Hashing (Hash), also directly translated as "hashing", is the conversion of an input of arbitrary length (also called Pre-map, Pre-image) into a fixed length output, the output being a Hash value, by a hashing algorithm.
Mirroring (Mirroring) is a type of redundancy in which data on one disk has an identical copy on another disk, i.e., Mirroring. The mirror image is a file storage form, a plurality of files can be made into a mirror image file, the mirror image file and programs such as GHOST are placed in a disk, and the mirror image file is restored into a plurality of files after being opened by software such as GHOST, and RAID 1 and RAID 10 use the mirror image. Common image file formats are ISO, BIN, IMG, TAO, DAO, CIF, FCD.
And step S200, starting to download the software when the downloaded software is correct, and stopping the current operation and informing a user when the downloaded software is abnormal in the checking process.
Further, the step S200 specifically includes:
s210, when the downloaded software is judged to be correct, controlling the mobile terminal to start downloading the software;
s220, when judging that the downloaded software is abnormal in the checking process, terminating the current operation and informing the user to download again.
In the invention, a software downloading integrity mark can be added in the pre-downloaded software; downloading the software, restarting the mobile terminal, and checking whether a software downloading integrity mark exists; and when the software downloading integrity mark does not exist, the software is downloaded again. And in order to facilitate the checking and judging, the software downloading integrity mark is added at the designated position of the pre-downloaded software, and the software downloading integrity mark is finally downloaded in the software downloading process. The software downloading method has the precondition that the software starts to be downloaded if the software is correct, and the current operation is stopped and the user is informed in time when the downloaded software is abnormal in the checking process.
And step S300, when the software starts to be downloaded and in the downloading process, checking for a preset number of times through an algorithm, and downloading the software into the mobile terminal when the correctness of each check is all consistent.
Further, the step S300 specifically includes:
s310, after software starts to be downloaded, an MD5 value is obtained for the first time to be checked, and if the MD5 value is not in accordance with the requirement, an abnormal error is reported immediately;
s320, when the MD5 value obtained for the first time passes the verification, carrying out mirror image downloading and loading in the memory of the mobile terminal one by one, carrying out MD5 check, and if abnormal, immediately stopping the downloading process and prompting a user;
and S330, when the MD5 is successfully checked, starting to introduce the software into the mobile terminal, checking all sub-blocks forming the software one by one through MD5, immediately terminating the downloading process and prompting a user if the check is abnormal, and finishing the integral installation of the software if the check is successful.
In the invention, after a binary mirror image of a mobile phone (a mobile terminal takes the mobile phone as an example) is compiled, a hash value is generated by using an MD5 algorithm to operate the binary mirror image and is stored in another configuration file; the mirror image and the MD5 value are simultaneously stored on a special software version server for other people to use; (each software version pair has a corresponding MD5 value), the factory production needs to acquire the version from the server, meanwhile, the acquired MD5 value is checked for the first time, and if the version does not meet the requirement, an error is reported immediately and abnormally, so that the acquired downloaded software is ensured to be correct; the downloaded mirror images are loaded into a computer memory one by one and are subjected to MD5 check, if the mirror images are abnormal, the next flow is immediately stopped and an operator is prompted, the step is successfully led into the terminal, the MD5 check is carried out one by one, and if the mirror images are abnormal, the current operation is stopped and the operator is prompted; the whole link is checked by MD5 for 3 times, each step needs to be consistent, the influence of external environment abnormity is eliminated, and the aim of consistency of software downloaded into the mobile phone and pre-designed software is finally achieved.
The algorithm used by the invention is the current mainstream algorithm, so that much time is not needed to research a new algorithm, the calculation efficiency is very high, and the efficiency of each link is not influenced; under the existing framework, the occupied use storage space can be completely ignored; the interface is easy to use, and the corresponding mobile phone system modification and tool development are simple; the accuracy rate is high, the occurrence of abnormal problems can be basically eliminated by 100%, the problems can be timely found and corrected, and the quality of the downloading link of the equipment is ensured.
Based on the above embodiments, the present invention further provides a system for downloading a mobile terminal based on software integrity, please refer to fig. 2, and fig. 2 is a functional block diagram of a preferred embodiment of the system for downloading a mobile terminal based on software integrity.
As shown in fig. 2, the system includes:
the pre-judging module 210 is configured to pre-judge whether the downloaded software is correct before the mobile terminal downloads the software; as described above.
A software checking module 220, configured to start downloading software when the downloaded software is correct, and terminate the current operation and notify the user when the downloaded software is abnormal in the checking process; as described above.
An algorithm checking module 230, configured to perform checking for a predetermined number of times through an algorithm when software starts to be downloaded and during downloading, and download the software into the mobile terminal when correctness of each checking is all consistent; as described above.
Further, the mobile terminal is a downloading system based on software integrity, wherein the algorithm is an MD5 algorithm, and belongs to a hash function used in the field of computer security for providing integrity protection of messages; the predetermined number of times is 3; as described above.
Further, the mobile terminal is a downloading system based on software integrity, wherein the pre-judging module specifically includes:
the compiling and storing unit is used for calculating each mirror image through a standard MD5 algorithm to obtain a hash value after the software version is compiled, and simultaneously storing the hash value, the mirror image and the MD5 value on a server for releasing the software version;
and the judging unit is used for acquiring the hash value before the mobile terminal downloads the software, and further judging whether the downloaded software is correct.
Further, the mobile terminal is a downloading system based on software integrity, wherein the software checking module specifically includes:
the first checking unit is used for controlling the mobile terminal to start downloading the software when judging that the downloaded software is correct;
and the second checking unit is used for terminating the current operation and informing the user to download again when judging that the downloaded software is abnormal in the checking process.
Further, the mobile terminal is a download system based on software integrity, wherein the algorithm checking module specifically includes:
the first checking unit is used for acquiring the MD5 value for the first time for checking after software starts to be downloaded, and immediately performing abnormal error reporting if the MD5 value does not meet the requirement;
the second checking unit is used for carrying out mirror image downloading and loading in the memory of the mobile terminal one by one when the MD5 value acquired for the first time passes the checking, carrying out MD5 checking, and immediately terminating the downloading process and prompting a user if the MD5 is abnormal;
and the third checking unit is used for starting to introduce the software into the mobile terminal when the MD5 check is successful, performing MD5 check on all sub-blocks forming the software one by one, immediately terminating the downloading flow and prompting a user if abnormal, and finishing the integrity installation of the software if the MD5 check is successful.
In summary, the present invention discloses a downloading method and system for a mobile terminal based on software integrity, wherein the method comprises: before the mobile terminal downloads the software, judging whether the downloaded software is correct in advance; when the downloaded software is correct, starting to download the software, and when the downloaded software is abnormal in the checking process, stopping the current operation and informing a user; when the software starts to be downloaded and in the downloading process, checking is carried out for a preset number of times through an algorithm, and the software is downloaded into the mobile terminal when the correctness of each check is all consistent. According to the invention, three times of MD5 checks are carried out in the process of downloading software by the mobile terminal, each step needs to be consistent, the influence of external environment abnormity is eliminated, and the purpose of consistency of software downloaded to the mobile terminal and software designed in advance is finally achieved, so that a user can conveniently use the software with complete functions.
Of course, it will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by a computer program instructing relevant hardware (such as a processor, a controller, etc.), and the program may be stored in a computer readable storage medium, and when executed, the program may include the processes of the above method embodiments. The storage medium may be a memory, a magnetic disk, an optical disk, etc.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.

Claims (4)

1. A download method of a mobile terminal based on software integrity is characterized by comprising the following steps:
step A, before the mobile terminal downloads the software, judging whether the downloaded software is correct in advance;
step B, when the downloaded software is correct, starting to download the software, and when the downloaded software is abnormal in the checking process, stopping the current operation and informing a user;
step C, when the software starts to be downloaded and in the downloading process, checking for a preset number of times through an algorithm, and downloading the software to the mobile terminal when the correctness of each check is all consistent;
after the binary mirror image of the mobile terminal is compiled, a hash value is generated by using the MD5 algorithm to operate the binary mirror image and is stored in another configuration file; the mirror image and the MD5 value are simultaneously stored on a special software version server for other people to use; the version is required to be obtained from the server in factory production, meanwhile, the MD5 value is obtained for the first time for verification, if the requirement is not met, an error is reported immediately and abnormally, and the fact that the obtained downloaded software is correct is ensured; the downloaded mirror images are loaded into a computer memory one by one, MD5 check is carried out, if abnormal, the following flow is immediately stopped and an operator is prompted, if successful, the mirror images are guided into the terminal, MD5 check is carried out one by one, if abnormal, the current operation is stopped, and the operator is prompted; the whole link has 3 times of MD5 checks, each step needs to be consistent, and the influence of external environment abnormality is eliminated;
the step A specifically comprises the following steps:
a1, compiling the software version, calculating each mirror image through a standard MD5 algorithm to obtain a hash value, and storing the hash value, the mirror image and the MD5 value on a server released by the software version;
a2, before the mobile terminal downloads the software, obtaining the hash value, and further judging whether the downloaded software is correct;
the step B specifically comprises the following steps:
b1, when judging that the downloaded software is correct, controlling the mobile terminal to start downloading the software;
b2, when judging that the downloaded software is abnormal in the checking process, terminating the current operation and informing the user to download again;
the step C specifically comprises the following steps:
c1, when the software starts to download, obtaining the MD5 value for the first time to check, and if the MD5 value does not meet the requirement, immediately performing abnormal error reporting;
c2, when the MD5 value obtained for the first time passes the verification, carrying out mirror image downloading and loading in the memory of the mobile terminal one by one, carrying out MD5 check, and if abnormal, immediately terminating the downloading flow and prompting the user;
c3, when the MD5 check is successful, the software is guided into the mobile terminal, all sub-blocks forming the software are checked in an MD5 one by one, if abnormal, the downloading flow is immediately stopped and a user is prompted, and if the check is successful, the software is completely installed;
adding a software downloading integrity mark in the pre-downloaded software; downloading the software, restarting the mobile terminal, and checking whether a software downloading integrity mark exists; when the software downloading integrity mark does not exist, the software is downloaded again; the software downloading integrity mark is added at the appointed position of the pre-downloaded software, and the software downloading integrity mark is downloaded finally in the software downloading process.
2. The downloading method based on software integrity for mobile terminal according to claim 1, wherein the algorithm is MD5 algorithm, which belongs to hash function used in computer security field for providing integrity protection of message; the predetermined number of times is 3.
3. A download system for a mobile terminal based on software integrity, comprising:
the pre-judging module is used for pre-judging whether the downloaded software is correct or not before the mobile terminal downloads the software;
the software checking module is used for starting to download the software when the downloaded software is correct, and stopping the current operation and informing the user when the downloaded software is abnormal in the checking process;
the algorithm checking module is used for checking the software for a preset number of times through an algorithm when the software starts to be downloaded and in the downloading process, and downloading the software to the mobile terminal when the correctness of each check is all consistent;
after the binary mirror image of the mobile terminal is compiled, a hash value is generated by using the MD5 algorithm to operate the binary mirror image and is stored in another configuration file; the mirror image and the MD5 value are simultaneously stored on a special software version server for other people to use; the version is required to be obtained from the server in factory production, meanwhile, the MD5 value is obtained for the first time for verification, if the requirement is not met, an error is reported immediately and abnormally, and the fact that the obtained downloaded software is correct is ensured; the downloaded mirror images are loaded into a computer memory one by one, MD5 check is carried out, if abnormal, the following flow is immediately stopped and an operator is prompted, if successful, the mirror images are guided into the terminal, MD5 check is carried out one by one, if abnormal, the current operation is stopped, and the operator is prompted; the whole link has 3 times of MD5 checks, each step needs to be consistent, and the influence of external environment abnormality is eliminated;
the pre-judging module specifically comprises:
the compiling and storing unit is used for calculating each mirror image through a standard MD5 algorithm to obtain a hash value after the software version is compiled, and simultaneously storing the hash value, the mirror image and the MD5 value on a server for releasing the software version;
the judging unit is used for acquiring the hash value before the mobile terminal downloads the software, and further judging whether the downloaded software is correct;
the software checking module specifically comprises:
the first checking unit is used for controlling the mobile terminal to start downloading the software when judging that the downloaded software is correct;
the second checking unit is used for stopping the current operation and informing the user to download again when judging that the downloaded software is abnormal in the checking process;
the algorithm checking module specifically comprises:
the first checking unit is used for acquiring the MD5 value for the first time for checking after software starts to be downloaded, and immediately performing abnormal error reporting if the MD5 value does not meet the requirement;
the second checking unit is used for carrying out mirror image downloading and loading in the memory of the mobile terminal one by one when the MD5 value acquired for the first time passes the checking, carrying out MD5 checking, and immediately terminating the downloading process and prompting a user if the MD5 is abnormal;
the third checking unit is used for starting to introduce the software into the mobile terminal when the MD5 check is successful, checking all sub-blocks forming the software one by MD5, immediately terminating the downloading flow and prompting a user if abnormal, and finishing the integral installation of the software if the MD5 check is successful;
adding a software downloading integrity mark in the pre-downloaded software; downloading the software, restarting the mobile terminal, and checking whether a software downloading integrity mark exists; when the software downloading integrity mark does not exist, the software is downloaded again; the software downloading integrity mark is added at the appointed position of the pre-downloaded software, and the software downloading integrity mark is downloaded finally in the software downloading process.
4. The system for downloading the mobile terminal based on the software integrity as claimed in claim 3, wherein the algorithm is an MD5 algorithm, which belongs to a hash function used in the field of computer security for providing integrity protection of the message; the predetermined number of times is 3.
CN201611080533.0A 2016-11-30 2016-11-30 Downloading method and system of mobile terminal based on software integrity Active CN106528248B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611080533.0A CN106528248B (en) 2016-11-30 2016-11-30 Downloading method and system of mobile terminal based on software integrity

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611080533.0A CN106528248B (en) 2016-11-30 2016-11-30 Downloading method and system of mobile terminal based on software integrity

Publications (2)

Publication Number Publication Date
CN106528248A CN106528248A (en) 2017-03-22
CN106528248B true CN106528248B (en) 2021-06-22

Family

ID=58355214

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611080533.0A Active CN106528248B (en) 2016-11-30 2016-11-30 Downloading method and system of mobile terminal based on software integrity

Country Status (1)

Country Link
CN (1) CN106528248B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109344121A (en) * 2018-09-27 2019-02-15 郑州云海信息技术有限公司 A kind for the treatment of method and apparatus of image file
CN114578782B (en) * 2020-12-01 2023-08-25 宇通客车股份有限公司 Automatic calibration method and system for integrated controller program

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609277A (en) * 2011-08-26 2012-07-25 威海捷讯通信技术有限公司 Application software upgrading method of mobile terminal
CN103810011A (en) * 2014-02-25 2014-05-21 广州视源电子科技股份有限公司 Method for achieving OTA upgrading through file server
CN104133714A (en) * 2014-08-12 2014-11-05 烽火通信科技股份有限公司 Third-party module software on-line management method
CN104166564A (en) * 2014-08-11 2014-11-26 成都瑞博慧窗信息技术有限公司 Display terminal program updating method
CN104320432A (en) * 2014-09-28 2015-01-28 百度在线网络技术(北京)有限公司 Software installing method and device, server and system
CN104471918A (en) * 2014-03-24 2015-03-25 华为技术有限公司 Method of downloading files, device and system
CN105468393A (en) * 2014-09-10 2016-04-06 启碁科技股份有限公司 Module version upgrading method and terminal apparatus
CN105657062A (en) * 2012-11-01 2016-06-08 北京奇虎科技有限公司 Browser software downloading method and browser
CN105978921A (en) * 2016-07-29 2016-09-28 重庆长安汽车股份有限公司 Remote upgrading method for vehicle-mounted communication terminal

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7065347B1 (en) * 2001-06-27 2006-06-20 Peoplenet Communications Corporation System and method for over the air programming
US8136090B2 (en) * 2006-12-21 2012-03-13 International Business Machines Corporation System and methods for applying social computing paradigm to software installation and configuration
CN101436138B (en) * 2007-11-16 2013-04-10 苏州科达科技股份有限公司 Control device and control method for software upgrade and dynamic rolling back
CN103841155B (en) * 2012-11-26 2015-12-23 腾讯科技(深圳)有限公司 A kind of method for downloading software and software download device
CN103530148B (en) * 2013-09-18 2016-09-07 国云科技股份有限公司 A kind of dissemination method of large-scale Linux software kit
CN103780632B (en) * 2014-02-28 2017-03-29 广东顺德中山大学卡内基梅隆大学国际联合研究院 A kind of internet document integrity verification method and its system
JP2015210808A (en) * 2014-04-30 2015-11-24 大橋 正 Method of updating software from web to electronic device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102609277A (en) * 2011-08-26 2012-07-25 威海捷讯通信技术有限公司 Application software upgrading method of mobile terminal
CN105657062A (en) * 2012-11-01 2016-06-08 北京奇虎科技有限公司 Browser software downloading method and browser
CN103810011A (en) * 2014-02-25 2014-05-21 广州视源电子科技股份有限公司 Method for achieving OTA upgrading through file server
CN104471918A (en) * 2014-03-24 2015-03-25 华为技术有限公司 Method of downloading files, device and system
CN104166564A (en) * 2014-08-11 2014-11-26 成都瑞博慧窗信息技术有限公司 Display terminal program updating method
CN104133714A (en) * 2014-08-12 2014-11-05 烽火通信科技股份有限公司 Third-party module software on-line management method
CN105468393A (en) * 2014-09-10 2016-04-06 启碁科技股份有限公司 Module version upgrading method and terminal apparatus
CN104320432A (en) * 2014-09-28 2015-01-28 百度在线网络技术(北京)有限公司 Software installing method and device, server and system
CN105978921A (en) * 2016-07-29 2016-09-28 重庆长安汽车股份有限公司 Remote upgrading method for vehicle-mounted communication terminal

Also Published As

Publication number Publication date
CN106528248A (en) 2017-03-22

Similar Documents

Publication Publication Date Title
CN110209405B (en) Automatic upgrading method and device for distributed system
US20030051235A1 (en) Method and apparatus for verifying and analyzing computer software installation
US20200342690A1 (en) Method for establishing communicable connection with tire pressure monitoring system, apparatus thereof and electronic device
JP5198154B2 (en) Fault monitoring system, device, monitoring apparatus, and fault monitoring method
CN110908702B (en) Version switching method, version switching device, computer equipment and storage medium
CN107516547A (en) The processing method and processing device of internal memory hard error
CN112256593B (en) Program processing method and device, computer equipment and readable storage medium
CN112099825B (en) Method, device, equipment and storage medium for upgrading component
CN106528248B (en) Downloading method and system of mobile terminal based on software integrity
CN104683154A (en) Exception handling method, terminal equipment and server
CN105045640A (en) Software upgrading method and device and intelligent equipment
CN112905230A (en) Application program management method and device, terminal equipment and storage medium
CN113553078A (en) Trackside equipment system upgrading method and device, electronic equipment and readable storage medium
CN110889143A (en) File verification method and device
CN111522562A (en) Dish washer software burning method, device and equipment
CN105045671A (en) Method and device for upgrading systems of intelligent terminals
CN113805925A (en) Online upgrading method, device, equipment and medium for distributed cluster management software
CN110198222B (en) Plug-and-play test method and test master station for power distribution automation terminal
CN108196975B (en) Data verification method and device based on multiple checksums and storage medium
CN107341074B (en) A kind of abnormal restorative procedure of upgrading upgrades abnormal prosthetic device and intelligent terminal
CN114138587A (en) Reliability verification method, device and equipment for upgrading server power firmware
CN106909382B (en) Method and device for outputting different types of system starting information
CN109002317B (en) PCBA firmware upgrading method and system and PCBA
CN112817883A (en) Method, device and system for adapting interface platform and computer readable storage medium
CN111107143B (en) Network file transmission detection method, device and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20230725

Address after: Room 2103, Office Building 1, No. 213 Funing Road, Zumiao Street, Chancheng District, Foshan City, Guangdong Province, 528000, F008

Patentee after: Foshan Huayue Intellectual Property Operation Co.,Ltd.

Address before: 516006 Zhongkai hi tech Zone, Huizhou, Guangdong, 86 Chang seven Road West

Patentee before: HUIZHOU TCL MOBILE COMMUNICATION Co.,Ltd.

TR01 Transfer of patent right