CN105808273A - Software upgrading method and software upgrading device - Google Patents

Software upgrading method and software upgrading device Download PDF

Info

Publication number
CN105808273A
CN105808273A CN201410843844.2A CN201410843844A CN105808273A CN 105808273 A CN105808273 A CN 105808273A CN 201410843844 A CN201410843844 A CN 201410843844A CN 105808273 A CN105808273 A CN 105808273A
Authority
CN
China
Prior art keywords
file
software system
full dose
upgrading
software
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.)
Granted
Application number
CN201410843844.2A
Other languages
Chinese (zh)
Other versions
CN105808273B (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.)
TCL Corp
Original Assignee
TCL Corp
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 TCL Corp filed Critical TCL Corp
Priority to CN201410843844.2A priority Critical patent/CN105808273B/en
Publication of CN105808273A publication Critical patent/CN105808273A/en
Application granted granted Critical
Publication of CN105808273B publication Critical patent/CN105808273B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a software upgrading method and a software upgrading device. The software upgrading method comprises the following steps: acquiring a full upgrading package for upgrading a software system; traversing files in the full upgrading package, copying the files which exist in the full upgrading package but do not exist in the software system to the software system, and replacing a first file in the software system with a second file in the full upgrading package, wherein the first file and the second file have the same file name and different file contents; and deleting all files which exist in the software system but do not exist in the full upgrading package. According to the technical scheme of the software upgrading method and the software upgrading device provided by the invention, the making difficulty of a software package can be effectively reduced and the software upgrading safety can be improved.

Description

Method for upgrading software and software updating apparatus
Technical field
The present invention relates to software upgrading technical field, be specifically related to a kind of method for upgrading software and software updating apparatus.
Background technology
Aerial firmware upgrade (FOTA, FirmwareOverTheAir) it is the upgrading mode of intelligent terminal system (such as android system) at present main flow, intelligent terminal and server transmit AKU by network interaction, complete the upgrading of intelligent terminal system.
Being illustrated in figure 1 typical FOTA model, main frame is uploaded onto the server after AKU compilation of source code is become AKU, and intelligent terminal connects by setting up with server, and the AKU that downloading needs is upgraded.
Presently, there are full dose upgrading and increment two kinds of upgrade methods of upgrading, full dose upgrading is upgraded by full dose AKU, full dose AKU is the upgrading for All Files, it is therefore desirable to intelligent terminal system is all deleted (i.e. formatting) and again upgrades;Increment upgrading is upgraded by increment AKU, and increment AKU is required for specifying old version to upgrade, and zero difference part is not made an amendment by difference section of only upgrading.
All there is certain drawback in above two upgrading mode: first format the file in subregion before upgrading due to full dose upgrading needs, again the file in full dose AKU is all copied over, therefore, the upgrading risk of failure of this upgrade method is big, once escalation process goes wrong, original is destroyed, and intelligent terminal system is difficult to repair;And increment upgrading only does upgrade file discrepant with version last time when making increment AKU, old version software degree of dependence is big, need when making increment AKU and old version software kit carries out contrasting and difference processing, complex manufacturing process, and when the version issued is more, the total quantity of increment AKU will be very huge so that the management difficulty of increment AKU increases.
Summary of the invention
The present invention provides a kind of method for upgrading software and software updating apparatus, is used for reducing software kit manufacture difficulty, improves the safety of software upgrading.
One aspect of the present invention provides a kind of method for upgrading software, including:
Obtain the full dose AKU for software system of upgrading;
Travel through the file in above-mentioned full dose AKU, by in the file copy not existing in above-mentioned software system in above-mentioned full dose AKU to above-mentioned software system, the first file in above-mentioned software system is replaced with the second file in above-mentioned full dose AKU, wherein, above-mentioned first file and above-mentioned second file have identical filename and different file contents;
Delete and be present in above-mentioned software system and do not exist in the All Files of above-mentioned full dose AKU.
Another aspect of the present invention provides a kind of software updating apparatus, including:
Acquiring unit, for obtaining the full dose AKU for software system of upgrading;
Traversal processing unit, for traveling through the file in above-mentioned full dose AKU, by in the file copy not existing in above-mentioned software system in above-mentioned full dose AKU to above-mentioned software system, the first file in above-mentioned software system is replaced with the second file in above-mentioned full dose AKU, wherein, above-mentioned first file and above-mentioned second file have identical filename and different file contents;
Delete unit, be present in above-mentioned software system for deleting and do not exist in the All Files of above-mentioned full dose AKU.
Therefore, the present invention is using full dose AKU to carry out in escalation process to software system, the file (i.e. newly-increased file) not existed in full dose AKU with software system is copied in software system, the first file in software system is replaced with the second file in full dose AKU (namely the file needing amendment in software system being upgraded), and delete and be present in software system and do not exist in the All Files (namely delete upgrading after in software system unwanted file) of full dose AKU, it is achieved thereby that the effect of increment upgrading, on the one hand, owing to the present invention uses full dose AKU software system not to be formatted process when software system is upgraded, thus without destroying former software system, even if upgrading unsuccessfully without the normal startup having influence on this software system, improve the safety of software upgrading;On the other hand, present invention achieves the effect being reached increment upgrading by full dose AKU, therefore, when needs make AKU, only need to make full dose AKU, it is not necessary to make the increment AKU based on old version software again, thus greatly reducing the manufacture difficulty of software kit.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, the accompanying drawing used required in embodiment or description of the prior art will be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the premise not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is a kind of one embodiment schematic flow sheet of method for upgrading software provided by the invention;
Fig. 2 is a kind of another embodiment schematic flow sheet of method for upgrading software provided by the invention
Fig. 3 is a kind of one example structure schematic diagram of software updating apparatus provided by the invention.
Detailed description of the invention
For making the goal of the invention of the present invention, feature, the advantage can be more obvious and understandable, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only a part of embodiment of the present invention, and not all embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under not making creative work premise, broadly fall into the scope of protection of the invention.
Below a kind of method for upgrading software in the embodiment of the present invention being described, refer to Fig. 1, the method for upgrading software in the embodiment of the present invention includes:
101, the full dose AKU for software system of upgrading is obtained;
In the embodiment of the present invention, full dose AKU is the AKU made for the upgrading of All Files.Above-mentioned software system includes but not limited to mounted application software system in the operating system of terminal, terminal.
Optionally, software updating apparatus periodically or the event upgrading of software system (the such as user trigger) send the request message of upgrading software system to server, so that server receives this request message and feeds back the full dose AKU for this software system of upgrading to software updating apparatus under the instruction of this request message, software updating apparatus receives the full dose AKU of server feedback, thus realizing the acquisition to full dose AKU.Specifically, software updating apparatus integrated with in terminal, software updating apparatus operates, at the software system of terminal, the AKU download control providing this software system in interface, and user downloads control triggering software updating apparatus by this upgrading and sends the request message of above-mentioned upgrading software system to server.It is of course also possible to by server when new full dose AKU occurs, actively push this full dose AKU to software updating apparatus;Or, software updating apparatus can also obtain the full dose AKU for software system of upgrading from the local disk of exterior terminal or software updating apparatus, and the concrete mode that software updating apparatus is not obtained the full dose AKU for software system of upgrading by the embodiment of the present invention is defined.
102, travel through the file in above-mentioned full dose AKU, in the file copy not existing in above-mentioned software system in above-mentioned full dose AKU to above-mentioned software system, the first file in above-mentioned software system will be replaced with the second file in above-mentioned full dose AKU;
Wherein, above-mentioned first file and above-mentioned second file have identical filename and different file contents.
In the embodiment of the present invention, software updating apparatus travels through the file in above-mentioned full dose AKU, and the file for each traversal is handled as follows: judge whether the file of current traversal is present in above-mentioned software system (namely judging whether there is the file of the same name with the file currently traveled through in software system), if judging, the file of current traversal does not exist in above-mentioned software system, then by the file copy that currently travels through to above-mentioned software system, travel through the next file in above-mentioned full dose AKU afterwards;If judging, the file of current traversal is present in above-mentioned software system, then use the file of current traversal to cover file of the same name with the file of current traversal in software system, travel through the next file in above-mentioned full dose AKU afterwards;Or, alternatively, if judging, the file of current traversal is present in above-mentioned software system, then determine whether that the file of current traversal is (for ease of describing, below the file currently traveled through is described as file A) with the file of the same name (file namely of the same name with the file of current traversal in above-mentioned software system being present in above-mentioned software system, for ease of describing, below this file is described as file B) file content whether identical, if file content differs, then file B (i.e. above-mentioned first file) is replaced with file A (above-mentioned second file), next file in traversal full dose AKU afterwards;If identical, then directly travel through the next file in above-mentioned full dose AKU.Further, software updating apparatus is when whether the file content judging file A and file B is identical, the sha1 value (i.e. cryptographic Hash) of file A and file B can be obtained and compare, if the sha1 value of file A and file B is different, then show that file A is different from the file content of file B, file B (i.e. above-mentioned first file) is replaced with file A (above-mentioned second file), travel through the next file in above-mentioned full dose AKU afterwards, if the sha1 value of file A and file B is identical, then show that file A is identical with the file content of file B, directly travel through the next file in above-mentioned full dose AKU.Certainly, the embodiment of the present invention can also judge when whether the file content of file A and file B is identical otherwise, such as can also obtain MD5 (i.e. Message Digest Algorithm 5) value of file A and file B and compare, when the MD5 value of file A and file B is different, then show that file A is different from the file content of file B, when the MD5 value of file A and file B is identical, then show that file A is identical with the file content of file B.Concrete, the mode of the sha1 value or MD5 value that obtain file is referred to prior art and realizes, and repeats no more herein.
Alternatively, the file record traveled through is being traveled through in listed files by software updating apparatus.
103, deletion is present in above-mentioned software system and does not exist in the All Files of above-mentioned full dose AKU;
In the embodiment of the present invention, software updating apparatus, after step 102 has traveled through, compares the file in above-mentioned software system and above-mentioned full dose AKU, finds out and be present in above-mentioned software system and do not exist in the All Files of above-mentioned full dose AKU and delete.
Optionally, in a step 102, software updating apparatus has often traveled through a file, the file record traveled through is being traveled through listed files (such as by the filename record of file that traveled through in traversal of lists), after step 102 has traveled through, delete and above-mentioned software system is not recorded in the above-mentioned file traveled through in listed files.
After having performed above-mentioned steps 101~103, namely the upgrading to above-mentioned software system is completed, optionally, after completing the upgrading to above-mentioned software system, software updating apparatus output indicates the reminder message that above-mentioned software system updating completes, in order to user knows that above-mentioned software system has completed upgrading.
It should be noted that, software updating apparatus in the embodiment of the present invention can integrated in the terminal, above-mentioned terminal is specifically as follows smart mobile phone, panel computer, notebook and intelligent television etc., or, software updating apparatus in the embodiment of the present invention can also be independent of terminal, and the device of communication can be carried out with terminal, it is not construed as limiting herein.
Therefore, the present invention is using full dose AKU to carry out in escalation process to software system, the file (i.e. newly-increased file) not existed in full dose AKU with software system is copied in software system, the first file in software system is replaced with the second file in full dose AKU (namely the file needing amendment in software system being upgraded), and delete and be present in software system and do not exist in the All Files (namely delete upgrading after in software system unwanted file) of full dose AKU, it is achieved thereby that the effect of increment upgrading, on the one hand, owing to the present invention uses full dose AKU software system not to be formatted process when software system is upgraded, thus without destroying former software system, even if upgrading unsuccessfully without the normal startup having influence on this software system, improve the safety of software upgrading;On the other hand, present invention achieves the effect being reached increment upgrading by full dose AKU, therefore, when needs make AKU, only need to make full dose AKU, it is not necessary to make the increment AKU based on old version software again, thus greatly reducing the manufacture difficulty of software kit.
With another embodiment, the method for upgrading software in the embodiment of the present invention being described below, refer to Fig. 2, the method for upgrading software in the embodiment of the present invention includes:
201, the full dose AKU for software system of upgrading is obtained;
In the embodiment of the present invention, full dose AKU is the AKU made for the upgrading of All Files.Above-mentioned software system includes but not limited to mounted application software system in the operating system of terminal, terminal.
Optionally, software updating apparatus periodically or the event upgrading of software system (the such as user trigger) send the request message of upgrading software system to server, so that server receives this request message and feeds back the full dose AKU for this software system of upgrading to software updating apparatus under the instruction of this request message, software updating apparatus receives the full dose AKU of server feedback, thus realizing the acquisition to full dose AKU.Specifically, software updating apparatus integrated with in terminal, software updating apparatus operates, at the software system of terminal, the AKU download control providing this software system in interface, and user downloads control triggering software updating apparatus by this upgrading and sends the request message of above-mentioned upgrading software system to server.It is of course also possible to by server when new full dose AKU occurs, actively push this full dose AKU to software updating apparatus;Or, software updating apparatus can also obtain the full dose AKU for software system of upgrading from the local disk of exterior terminal or software updating apparatus, and the concrete mode that software updating apparatus is not obtained the full dose AKU for software system of upgrading by the embodiment of the present invention is defined.
202, the file as current traversal of the first file in above-mentioned full dose AKU is read.
203, judge whether the file of current traversal is present in above-mentioned software system;
In the embodiment of the present invention, software updating apparatus is by judging that whether there is the file of the same name with the file currently traveled through in above-mentioned software system judges whether the file of current traversal is present in above-mentioned software system, when judging above-mentioned software system is absent from the file of the same name with the file currently traveled through, judge that the file of current traversal is not present in above-mentioned software system, perform step 204, when judging above-mentioned software system exists the file of the same name with the file of current traversal, judge that the file of current traversal is present in above-mentioned software system, perform step 205.
204, by the file copy that currently travels through to above-mentioned software system;
Software updating apparatus in the file copy that currently travels through to above-mentioned software system, will enter step 207 afterwards.
205, judge that whether the file of current traversal is consistent with the file content of the file of the same name being present in above-mentioned software system;
Software updating apparatus judges that the file of current traversal is (for ease of describing, refer to this file with file A below) with the file of the same name (file namely of the same name with the file of current traversal in above-mentioned software system being present in above-mentioned software system, for ease of describing, refer to this file with file B below) file content whether consistent, if it is consistent, then enter step 207, if inconsistent, then enter step 206.
Optionally, software updating apparatus obtains the sha1 value (i.e. cryptographic Hash) of file A and file B and compares, if the sha1 value of file A and file B differs, then judges that the file content of file A and file B is inconsistent, enters step 206;If the sha1 value of file A and file B is identical, then judge that file A is consistent with the file content of file B, enter step 207.Certainly, the embodiment of the present invention can also judge when whether the file content of file A and file B is identical otherwise, such as can also obtain MD5 (i.e. Message Digest Algorithm 5) value of file A and file B and compare, when the MD5 value of file A and file B is different, then show that the file content of file A and file B is inconsistent;When the MD5 value of file A and file B is identical, then show that file A is consistent with the file content of file B.Concrete, the mode of the sha1 value or MD5 value that obtain file is referred to prior art and realizes, and repeats no more herein.
206, the file of current traversal is used to replace the file of the same name being present in above-mentioned software system;
In the embodiment of the present invention, when the file judging current traversal is inconsistent with the file content of the file of the same name being present in above-mentioned software system, the file of the same name being present in above-mentioned software system replaced by the file using current traversal, i.e. file B is replaced with file A.
207, the file record currently traveled through is being traveled through in listed files;
In the embodiment of the present invention, the filename record currently traveled through is being traveled through in listed files.
208, judge whether the current file traveled through is last file in above-mentioned full dose AKU;
Software updating apparatus judges whether the file of current traversal is last file in above-mentioned full dose AKU, if the file of current traversal is not last file in above-mentioned full dose AKU, then enter step 209, if the file of current traversal is last file in above-mentioned full dose AKU, then enter step 210.
209, read the next file in above-mentioned full dose AKU as the file of current traversal, return step 203.
210, delete and above-mentioned software system is not recorded in the above-mentioned file traveled through in listed files.
In the embodiment of the present invention, after step 210 has performed, namely the upgrading to above-mentioned software system is completed, optionally, after completing the upgrading to above-mentioned software system, software updating apparatus output indicates the reminder message that above-mentioned software system updating completes, in order to user knows that above-mentioned software system has completed upgrading.
It should be noted that, software updating apparatus in the embodiment of the present invention can integrated in the terminal, above-mentioned terminal is specifically as follows smart mobile phone, panel computer, notebook and intelligent television etc., or, software updating apparatus in the embodiment of the present invention can also be independent of terminal, and the device of communication can be carried out with terminal, it is not construed as limiting herein.
Therefore, the present invention is using full dose AKU to carry out in escalation process to software system, the file (i.e. newly-increased file) not existed in full dose AKU with software system is copied in software system, the first file in software system is replaced with the second file in full dose AKU (namely the file needing amendment in software system being upgraded), and delete and be present in software system and do not exist in the All Files (namely delete upgrading after in software system unwanted file) of full dose AKU, it is achieved thereby that the effect of increment upgrading, on the one hand, owing to the present invention uses full dose AKU software system not to be formatted process when software system is upgraded, thus without destroying former software system, even if upgrading unsuccessfully without the normal startup having influence on this software system, improve the safety of software upgrading;On the other hand, present invention achieves the effect being reached increment upgrading by full dose AKU, therefore, when needs make AKU, only need to make full dose AKU, it is not necessary to make the increment AKU based on old version software again, thus greatly reducing the manufacture difficulty of software kit.
The embodiment of the present invention also provides for a kind of software updating apparatus, as it is shown on figure 3, the software updating apparatus 300 in the embodiment of the present invention includes:
Acquiring unit 301, for obtaining the full dose AKU for software system of upgrading;
Traversal processing unit 302, for traveling through the file in above-mentioned full dose AKU, by in the file copy not existing in above-mentioned software system in above-mentioned full dose AKU to above-mentioned software system, the first file in above-mentioned software system is replaced with the second file in above-mentioned full dose AKU, wherein, above-mentioned first file and above-mentioned second file have identical filename and different file contents;
Delete unit 303, be present in above-mentioned software system for deleting and do not exist in the All Files of above-mentioned full dose AKU.
Optionally, traversal processing unit 302 includes: sub-acquiring unit, for when the file of current traversal is identical with the filename of the file in above-mentioned software system, obtaining the sha1 value of two identical files of above-mentioned filename respectively;Comparing unit, for comparing the sha1 value of above-mentioned two file;Determine unit, when sha1 value for comparing above-mentioned two file when above-mentioned comparing unit differs, the file of above-mentioned current traversal is defined as above-mentioned second file, and file of the same name with the file of above-mentioned current traversal in above-mentioned software system is defined as above-mentioned first file.
Optionally, traversal processing unit 302 includes: record unit, for traveling through in listed files by the file record traveled through in above-mentioned full dose AKU;Delete unit 303 specifically for: after above-mentioned traversal processing unit completes the traversal to the All Files in above-mentioned full dose AKU, delete and above-mentioned software system be not recorded in the above-mentioned file traveled through in listed files.
Optionally, acquiring unit 301 includes: transmitting element, for sending the request message of above-mentioned software system of upgrading to server;Receive unit, for receiving the full dose AKU that above-mentioned server feeds back under the instruction of above-mentioned request message.
Optionally, the software updating apparatus in the embodiment of the present invention also includes: output unit, and for after completing the upgrading to above-mentioned software system, output indicates the reminder message that above-mentioned software system updating completes.
It should be noted that, software updating apparatus in the embodiment of the present invention can integrated in the terminal, above-mentioned terminal is specifically as follows smart mobile phone, panel computer, notebook and intelligent television etc., or, software updating apparatus in the embodiment of the present invention can also be independent of terminal, and the device of communication can be carried out with terminal, it is not construed as limiting herein.It should be understood that, software updating apparatus in the embodiment of the present invention can software updating apparatus in above-mentioned embodiment of the method, may be used for the whole technical schemes realizing in said method embodiment, it implements process and can refer to the associated description in said method embodiment, repeats no more herein.
Therefore, the present invention is using full dose AKU to carry out in escalation process to software system, the file (i.e. newly-increased file) not existed in full dose AKU with software system is copied in software system, the first file in software system is replaced with the second file in full dose AKU (namely the file needing amendment in software system being upgraded), and delete and be present in software system and do not exist in the All Files (namely delete upgrading after in software system unwanted file) of full dose AKU, it is achieved thereby that the effect of increment upgrading, on the one hand, owing to the present invention uses full dose AKU software system not to be formatted process when software system is upgraded, thus without destroying former software system, even if upgrading unsuccessfully without the normal startup having influence on this software system, improve the safety of software upgrading;On the other hand, present invention achieves the effect being reached increment upgrading by full dose AKU, therefore, when needs make AKU, only need to make full dose AKU, it is not necessary to make the increment AKU based on old version software again, thus greatly reducing the manufacture difficulty of software kit.
In several embodiments provided herein, it should be understood that disclosed apparatus and method, it is possible to realize by another way.Such as, device embodiment described above is merely schematic, such as, the division of said units, being only a kind of logic function to divide, actual can have other dividing mode when realizing, for instance multiple unit or assembly can in conjunction with or be desirably integrated into another system, or some features can ignore, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be through INDIRECT COUPLING or the communication connection of some interfaces, device or unit, it is possible to be electrical, machinery or other form.
It should be noted that, for aforesaid each embodiment of the method, in order to simplicity describes, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not by the restriction of described sequence of movement, because according to the present invention, some step can adopt other order or carry out simultaneously.Secondly, those skilled in the art also should know, it might not be all necessary to the present invention that embodiment described in this description belongs to preferred embodiment, involved action and module.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, certain embodiment there is no the part described in detail, it is possible to referring to the associated description of other embodiments.
It it is more than the description to a kind of method for upgrading software provided by the present invention and software updating apparatus, for one of ordinary skill in the art, thought according to the embodiment of the present invention, all will change in specific embodiments and applications, to sum up, this specification content should not be construed as limitation of the present invention.

Claims (10)

1. a method for upgrading software, it is characterised in that including:
Obtain the full dose AKU for software system of upgrading;
Travel through the file in described full dose AKU, by in the file copy not existing in described software system in described full dose AKU to described software system, the first file in described software system is replaced with the second file in described full dose AKU, wherein, described first file and described second file have identical filename and different file contents;
Delete and be present in described software system and do not exist in the All Files of described full dose AKU.
2. method according to claim 1, it is characterised in that the file in the described full dose AKU of described traversal, including:
If the file of current traversal is identical with the filename of the file in described software system, then:
Obtain the sha1 value of two identical files of described filename respectively;
The relatively sha1 value of said two file;
If the sha1 value of said two file differs, then the file of described current traversal is defined as described second file, and file of the same name with the file of described current traversal in described software system is defined as described first file.
3. method according to claim 1 and 2, it is characterised in that the file in the described full dose AKU of described traversal, including:
The file record traveled through in described full dose AKU is being traveled through in listed files;
Described deletion is present in described software system and does not exist in the All Files of described full dose AKU, including:
After completing the traversal to the All Files in described full dose AKU, delete and traveled through the file in listed files described in being not recorded in described software system.
4. method according to claim 1 and 2, it is characterised in that described acquisition for upgrading the full dose AKU of software system, including:
The request message of described software system of upgrading is sent to server;
Receive the full dose AKU that described server feeds back under the instruction of described request message.
5. method according to claim 1 and 2, it is characterised in that described method also includes:
After completing the upgrading to described software system, output indicates the reminder message that described software system updating completes.
6. a software updating apparatus, it is characterised in that including:
Acquiring unit, for obtaining the full dose AKU for software system of upgrading;
Traversal processing unit, for traveling through the file in described full dose AKU, by in the file copy not existing in described software system in described full dose AKU to described software system, the first file in described software system is replaced with the second file in described full dose AKU, wherein, described first file and described second file have identical filename and different file contents;
Delete unit, be present in described software system for deleting and do not exist in the All Files of described full dose AKU.
7. software updating apparatus according to claim 6, it is characterised in that
Described traversal processing unit includes:
Sub-acquiring unit, for when the file of current traversal is identical with the filename of the file in described software system, obtaining the sha1 value of two identical files of described filename respectively;
Comparing unit, for comparing the sha1 value of said two file;
Determine unit, when sha1 value for comparing said two file when described comparing unit differs, the file of described current traversal is defined as described second file, and file of the same name with the file of described current traversal in described software system is defined as described first file.
8. the software updating apparatus according to claim 6 or 7, it is characterised in that
Described traversal processing unit includes: record unit, for traveling through in listed files by the file record traveled through in described full dose AKU;
Described deletion unit specifically for: after described traversal processing unit completes the traversal to the All Files in described full dose AKU, delete and traveled through the file in listed files described in being not recorded in described software system.
9. the software updating apparatus according to claim 6 or 7, it is characterised in that
Described acquiring unit includes:
Transmitting element, for sending the request message of described software system of upgrading to server;
Receive unit, for receiving the full dose AKU that described server feeds back under the instruction of described request message.
10. the software updating apparatus according to claim 6 or 7, it is characterised in that described software updating apparatus also includes:
Output unit, for after completing the upgrading to described software system, output indicates the reminder message that described software system updating completes.
CN201410843844.2A 2014-12-30 2014-12-30 Method for upgrading software and software updating apparatus Active CN105808273B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410843844.2A CN105808273B (en) 2014-12-30 2014-12-30 Method for upgrading software and software updating apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410843844.2A CN105808273B (en) 2014-12-30 2014-12-30 Method for upgrading software and software updating apparatus

Publications (2)

Publication Number Publication Date
CN105808273A true CN105808273A (en) 2016-07-27
CN105808273B CN105808273B (en) 2019-03-29

Family

ID=56419977

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410843844.2A Active CN105808273B (en) 2014-12-30 2014-12-30 Method for upgrading software and software updating apparatus

Country Status (1)

Country Link
CN (1) CN105808273B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106899574A (en) * 2017-01-13 2017-06-27 努比亚技术有限公司 Application program login method and terminal
CN107729043A (en) * 2017-11-10 2018-02-23 深圳Tcl新技术有限公司 Method of calibration, device and the computer-readable recording medium of increment AKU
CN108008970A (en) * 2016-10-27 2018-05-08 腾讯科技(深圳)有限公司 Application upgrade method and device
CN108509211A (en) * 2018-02-07 2018-09-07 深圳壹账通智能科技有限公司 Application program updating method, apparatus, mobile terminal and storage medium
CN108829433A (en) * 2018-05-24 2018-11-16 努比亚技术有限公司 A kind of web system version dispositions method, equipment and storage medium
CN110597544A (en) * 2019-08-20 2019-12-20 杭州辰汉智能科技有限公司 Software system upgrading method and device
CN112114811A (en) * 2020-08-19 2020-12-22 上海元城汽车技术有限公司 Compiling method, device and equipment
CN112306526A (en) * 2020-10-30 2021-02-02 平安普惠企业管理有限公司 Client data updating method, device, apparatus and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090064127A1 (en) * 2007-08-31 2009-03-05 Schneider James P Unattended upgrade for a network appliance
CN103796041A (en) * 2013-11-01 2014-05-14 中兴通讯股份有限公司 Updating method and apparatus of IPTV system
CN103942058A (en) * 2013-01-17 2014-07-23 深圳市潮流网络技术有限公司 Embedded electronic equipment software updating method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090064127A1 (en) * 2007-08-31 2009-03-05 Schneider James P Unattended upgrade for a network appliance
CN103942058A (en) * 2013-01-17 2014-07-23 深圳市潮流网络技术有限公司 Embedded electronic equipment software updating method and system
CN103796041A (en) * 2013-11-01 2014-05-14 中兴通讯股份有限公司 Updating method and apparatus of IPTV system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108008970A (en) * 2016-10-27 2018-05-08 腾讯科技(深圳)有限公司 Application upgrade method and device
CN106899574A (en) * 2017-01-13 2017-06-27 努比亚技术有限公司 Application program login method and terminal
CN107729043A (en) * 2017-11-10 2018-02-23 深圳Tcl新技术有限公司 Method of calibration, device and the computer-readable recording medium of increment AKU
CN108509211A (en) * 2018-02-07 2018-09-07 深圳壹账通智能科技有限公司 Application program updating method, apparatus, mobile terminal and storage medium
CN108829433A (en) * 2018-05-24 2018-11-16 努比亚技术有限公司 A kind of web system version dispositions method, equipment and storage medium
CN110597544A (en) * 2019-08-20 2019-12-20 杭州辰汉智能科技有限公司 Software system upgrading method and device
CN112114811A (en) * 2020-08-19 2020-12-22 上海元城汽车技术有限公司 Compiling method, device and equipment
CN112306526A (en) * 2020-10-30 2021-02-02 平安普惠企业管理有限公司 Client data updating method, device, apparatus and storage medium

Also Published As

Publication number Publication date
CN105808273B (en) 2019-03-29

Similar Documents

Publication Publication Date Title
CN105808273A (en) Software upgrading method and software upgrading device
WO2016192197A1 (en) Software upgrade method, apparatus and system of terminal, and computer storage medium
US20190155598A1 (en) Techniques for updating a file using a multi-version patch file
EP2524307B1 (en) Operating system auto-update procedure
US9075633B2 (en) Configuration of life cycle management for configuration files for an application
EP3021218B1 (en) Upgrade packet generation method, server, software upgrade method, and mobile terminal
US9823915B1 (en) Software container format
US10516526B2 (en) Data transmitting method, server and client
CN104063239A (en) Application program update method of mobile terminal, server and client
CN102541596A (en) Operating system upgrading method and device
CN104052818A (en) Version upgrade method and device for mobile terminal
CN110471692B (en) Over-the-air upgrading method, device, equipment and storage medium of terminal program
CN104346167A (en) Method and device for generating application channel package
US11876676B2 (en) Network node firmware update
CN102833350A (en) Processing method and processing device of WebApp updating
CN110231945A (en) Method, apparatus, electronic equipment and the computer storage medium of code downloading
CN109391673A (en) A kind of method, system and the terminal device of management update file
CN105786549A (en) Smart device and upgrading method thereof
CN105279436A (en) Software updating method and system
CN103544030A (en) Software upgrading method, software upgrading system and intelligent terminal
CN105072398B (en) A kind of device updating method and device
CN104699511A (en) Plug-in upgrading method and plug-in upgrading device
CN106569863B (en) Resource and code modularization-based android app resource updating and repairing method
CN114064073A (en) Software version upgrading method and device, computer equipment and storage medium
CN115543429A (en) Project environment building method, electronic equipment and computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant