CN106250195A - Update the method for system file, equipment and system - Google Patents
Update the method for system file, equipment and system Download PDFInfo
- Publication number
- CN106250195A CN106250195A CN201610652573.1A CN201610652573A CN106250195A CN 106250195 A CN106250195 A CN 106250195A CN 201610652573 A CN201610652573 A CN 201610652573A CN 106250195 A CN106250195 A CN 106250195A
- Authority
- CN
- China
- Prior art keywords
- file
- subfile
- terminal unit
- target
- legacy version
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses and a kind of update the method for system file, equipment and system, relate to data processing field, it is possible to solve the system file owing to terminal unit low memory causes and update failed problem.The specific scheme is that and obtain target new edition file and the target legacy version file corresponding with described target new edition file from preset path;When the size of described target legacy version file is more than first threshold, described target new edition file is divided into n subfile;Being m subfile by described target legacy version file division, the size of each subfile that described n subfile and described m subfile include is less than Second Threshold;According to described n subfile and described m sub-file generated differential file;Described differential file is sent to terminal unit, so that described terminal unit carries out the renewal of system file according to described differential file.The present invention is for the renewal of the system file of terminal unit.
Description
Technical field
The present invention relates to data processing field, update the method for system file, equipment and system particularly to a kind of.
Background technology
Along with the update cycle of the system installed in the raising of scientific and technological level, various electronic equipments also shortens, therefore,
The renewal of the system file corresponding with system is more and more frequent.Such as, the system file in intelligent television.
At present, update the system file in intelligent television by the following method: at server end, obtain old version system literary composition
Part and new version system file, by increasing income, difference instrument generates difference service packs;In intelligent television end, intelligent television is downloaded should
Difference service packs, by patch synthetics of increasing income by this difference service packs and the old version system file of storage in intelligent television
Synthesize, form new version system file, the renewal of completion system file.
During stating renewal system file in realization, it is right that inventor finds that prior art at least has following defects that
In intelligent television end, during updating system file, when the file size of old version system file is bigger, need application
Bigger memory headroom, when memory headroom to be applied for is more than predetermined threshold value, can cause Intelligent television terminal low memory,
And then (English: Out of Memory, is called for short: OOM) mechanism closes the process of renewal system file, causes to trigger internal memory spilling
The failure of renewal system file.
Summary of the invention
In order to solve to update system file failure due to what terminal unit low memory caused present in prior art
Problem, the present invention provides a kind of and updates the method for system file, equipment and system.Described technical scheme is as follows:
First aspect, it is provided that a kind of method updating system file, the method includes:
Target new edition file and the target old edition corresponding with described target new edition file is obtained from preset path
Presents;
When the size of described target legacy version file is more than first threshold, described target new edition file is divided into n
Individual subfile;Being m subfile by described target legacy version file division, described n subfile and described m subfile include
The size of each subfile less than Second Threshold;
According to described n subfile and described m sub-file generated differential file;
Described differential file is sent to terminal unit, so that described terminal unit is according to described differential file system
The renewal of system file.
Second aspect, it is provided that a kind of method updating system file, the method includes:
Receive the differential file that server sends;
Obtain the target legacy version file that described terminal unit is the most to be updated, by described target legacy version file division be
M subfile;
Successively each subfile in described m subfile is updated according to described differential file.
The third aspect, it is provided that a kind of server, this server includes:
Acquisition module, for obtaining target new edition file and relative with described target new edition file from preset path
The target legacy version file answered;
Segmentation module, for when the size of described target legacy version file is more than first threshold, by described target new edition
Presents is divided into n subfile;It is m subfile by described target legacy version file division, described n subfile and described
The size of each subfile that m subfile includes is less than Second Threshold;
Difference block, for according to described n subfile and described m sub-file generated differential file;
Sending module, for sending described differential file to terminal unit, so that described terminal unit is according to described
Differential file carries out the renewal of system file.
Fourth aspect, it is provided that a kind of terminal unit, this terminal unit includes:
Receiver module, for receiving the differential file that server sends;
Segmentation module, for obtaining the target legacy version file that described terminal unit is the most to be updated, by old for described target
Version file is divided into m subfile;
More new module, for being updated each subfile in described m subfile successively according to described differential file.
5th aspect, it is provided that a kind of network system, this system includes: server and terminal unit;
This server is the server described by the third aspect;This terminal unit is that the terminal described by fourth aspect sets
Standby.
The a kind of of embodiment of the present invention offer updates the method for system file, equipment and system, when in terminal unit
When target legacy version file to be updated is updated, it is the subfile that several are less by target legacy version file division, logical
Cross and each subfile after segmentation is updated successively, to realize the renewal to target legacy version file.Owing to updating system
During system file, it is that each subfile after segmentation is updated successively, therefore, applies for a subfile twice size every time
Memory headroom, subfile is the less file that obtains after segmentation, compares and prior art (big according to target legacy version file
The memory headroom of little application target legacy version file size twice), apply for less memory headroom;Solve to system literary composition
Need the memory headroom that application is bigger when part is updated, cause terminal unit low memory, and then cause updating system file
Failed problem;Reach to improve the effect updating system file success rate.
Accompanying drawing explanation
Accompanying drawing herein is merged in description and constitutes the part of this specification, it is shown that meet the enforcement of the present invention
Example, and in description together for explaining the principle of the present invention.
Fig. 1 is a kind of network architecture schematic diagram that the embodiment of the present invention provides;
Fig. 2 is a kind of method flow schematic diagram updating system file that the embodiment of the present invention provides;
Fig. 3 is a kind of method flow schematic diagram updating system file that another embodiment of the present invention provides;
Fig. 4 is a kind of method flow schematic diagram updating system file that further embodiment of this invention provides;
Fig. 5 A is the structural representation of a kind of server that the embodiment of the present invention provides;
Fig. 5 B is the structural representation of the another kind of server that the embodiment of the present invention provides;
Fig. 6 A is the structural representation of a kind of terminal unit that the embodiment of the present invention provides;
Fig. 6 B is the structural representation of the another kind of terminal unit that the embodiment of the present invention provides;
Fig. 7 is a kind of network architecture schematic diagram that another embodiment of the present invention provides.
Detailed description of the invention
Here will illustrate exemplary embodiment in detail, its example represents in the accompanying drawings.Explained below relates to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the present invention.On the contrary, they are only with the most appended
Equipment that some aspects that described in detail in claims, the present invention are consistent and the example of method.
The embodiment of the present invention provide update system file the network system schematic diagram involved by method as it is shown in figure 1,
This network system can include server 120 and terminal unit 130.
Server 120 has storage function, for storing the system file of each version of terminal unit 130 correspondence;Clothes
Business device 120 also has the function comparing, calculating each system file, also has the function sending or receiving system file.
Terminal unit 130 can be smart mobile phone, panel computer, intelligent television, E-book reader, multimedia
Device, pocket computer on knee and desk computer etc..Preferably, terminal unit 130 is intelligent television, and intelligent television internal memory is relatively
Little, generally 1GB, and also it is inconvenient to change internal memory, and it is relatively big to change internal memory cost, the present invention can well solve Intelligent electric
The problem of low memory during apparent system update.It is (English: Over-the-that terminal unit 130 can pass through over the air
Air Technology, is called for short: OTA) download system file in server 120.
Can be connected by wireless network or cable network between server 120 with terminal unit 130.
The embodiment of the present invention provides a kind of method updating system file, and the method can apply to the network shown in Fig. 1
Server 120 in system, as in figure 2 it is shown, the method comprises the following steps:
Step 201, obtains target new edition file and corresponding with described target new edition file from preset path
Target legacy version file.
Step 202, when the size of described target legacy version file is more than first threshold, by described target new edition file
It is divided into n subfile;It is m subfile by described target legacy version file division, described n subfile and described m son
The size of each subfile that file includes is less than Second Threshold.
Step 203, according to n subfile and m sub-file generated differential file.
Differential file contains target new edition file and the difference content of target legacy version file, and differential file is for more
Old version system file in new terminal equipment.
Step 204, sends differential file to terminal unit.
Described differential file is used for making terminal unit be updated its own system file.
In sum, the embodiment of the present invention provide a kind of method updating system file, when target new edition file with
When target legacy version file is bigger, target new edition file and target legacy version file are all divided into several less Ziwens
Part, there is corresponding relation with the subfile of target legacy version file in the subfile of target new edition file, obtains every a pair correspondence
The difference content of subfile, is stored in the difference content of all corresponding subfiles in a file, obtains differential file;So that
Proper time target legacy version file in terminal unit is updated, it is that several are less by target legacy version file division
Subfile, by being updated successively each subfile after segmentation, to realize the renewal to target legacy version file.Due to
When updating system file, it is that each subfile after segmentation is updated successively, therefore, one subfile two of application every time
The memory headroom of times size, subfile is the less file obtained after segmentation, compares with prior art (according to target legacy version
The memory headroom of the size application target legacy version file size twice of file), apply for less memory headroom;Solve
Need the memory headroom that application is bigger when system file is updated, cause terminal unit low memory, and then cause updating
The problem that system file is failed;Reach to improve the effect updating system file success rate.
In conjunction with the method updating system file described in the embodiment that Fig. 2 is corresponding, another embodiment of the present invention provides
A kind of method updating system file, can apply to the terminal unit 130 in the network system shown in Fig. 1, as it is shown on figure 3,
The method comprises the following steps:
Step 301, receives the differential file that server sends.
Step 302, obtains the target legacy version file that terminal unit is the most to be updated, by target legacy version file division is
M subfile.
Step 303, is updated subfile each in m subfile successively according to differential file.
In sum, the method updating system file provided in the embodiment of the present invention, when to the target in terminal unit
When legacy version file is updated, it is the subfile that several are less by target legacy version file division, after to segmentation
Each subfile is updated, to realize the renewal to target legacy version file.Due to update system file time, be to segmentation
After each subfile be updated successively, therefore, apply for the memory headroom of a subfile twice size every time, subfile is
The less file obtained after segmentation, compares and prior art (the size application target legacy version according to target legacy version file
The memory headroom of file size twice), apply for less memory headroom;Solve the needs when system file is updated
Apply for bigger memory headroom, cause terminal unit low memory, and then cause updating the problem that system file is failed;Reach to carry
The effect of Gao Gengxin system file success rate.
Based on the method updating system file described in the embodiment that above-mentioned Fig. 2 with Fig. 3 is corresponding, the another reality of the present invention
Executing example and provide a kind of method updating system file, be applied in the network system shown in Fig. 1, as shown in Figure 4, the method includes
Following steps:
Step 401, server obtains target new edition file.
Target new edition file is the system file of any one subregion corresponding to new version system.Target new edition file is used
System file in any one subregion that instruction server obtains in the new version system file that new version system is corresponding.
Optionally, all of system file corresponding for new version system is stored in identical file folder in, and named newly
Edition system file, so that when needs obtain target new edition file, in that context it may be convenient to from new version system file
Middle acquisition.
Exemplary, new version system file comprises 3 new edition file, the file name of 3 new edition file
It is respectively 3rd, uboot and facs.The target new edition file that then server obtains in new version system file can be
In 3rd, uboot and facs any one or multiple, such as, the target that server obtains in new version system file
New edition file is 3rd.
Step 402, server judges whether target new edition file exists the target legacy version file of correspondence.
Target legacy version file is the system file of a subregion in the edition system file that old version system is corresponding.Target
Legacy version file for indicate that server obtains in the system file that old version system is corresponding with target new edition file pair
The file answered.
It addition, this corresponding relation can be carried out by target new edition file and the file name of target legacy version file right
Should, such as, the system file that old version system is corresponding obtains the old edition identical with the file name of target new edition file
Presents is as target legacy version file.
Optionally, all of system file corresponding for old version system is stored in identical file folder, and named old
Edition system file, so that when needs obtain target legacy version file, in that context it may be convenient to from old version system file
Middle acquisition.
Exemplary, old version system file comprises 3 Geju City version files, the file name of 3 Geju City version files
It is respectively 3rd, rootfs and uenv.The target new edition file then obtained in new version system file when server is
During 3rd, then server is judging there is corresponding target legacy version file (3rd) in old version system file;Or, when
When the target new edition file that server obtains in new version system file is uboot, then server is judged at old edition
Native system file does not has the target legacy version file of correspondence.
When judging the target legacy version file that target new edition file does not exist correspondence, perform step 403;Work as judgement
When going out the target legacy version file that target new edition file exists correspondence, perform step 404.
Step 403, when judging the target legacy version file that target new edition file does not exist correspondence, by target new edition
The content of presents stores in differential file.
Differential file is for updating the old version system file in terminal unit.
When judging the target legacy version file that target new edition file does not exist correspondence, target new edition file is described
Including content do not exist in old version system file, so the content that target new edition file includes be new version system literary composition
Part and the difference content of old version system file.
Exemplary, when server obtain in new version system file target new edition file be uboot time, due to
File in old version system file only has 3rd, rootfs and uenv, so not having correspondence in old version system file
Target legacy version file, then using target new edition file uboot as differential file.
Step 404, when judging that target new edition file exists corresponding target legacy version file, it is right that server obtains
The target legacy version file answered, and judge that target new edition file is the most identical with the file content of target legacy version file.
Optionally, each character included by contrast target new edition file and target legacy version file contrasts target
New edition file is the most identical with the file content of target legacy version file.
When server judges that target new edition file is identical with the file content of target legacy version file, generate one
Empty differential file, the differential file of this sky can be named: target new edition file-kong, wherein, target new edition file
For target new edition file and the target legacy version file that the differential file of this sky is corresponding is described, kong is used for this difference is described
The content of single cent part is empty.Such as, the target new edition file obtained when server is 3rd, corresponding target legacy version file
For 3rd, and server is judged when the two content is the most identical, generates an empty differential file, the name of the differential file of this sky
It is referred to as: 3rd-kong, terminates target new edition file and the process of target legacy version file;When server judges that target is new
Version file differs with the file content of target legacy version file, then perform step 405.
Step 405, when server judges that target new edition file differs with the file content of target legacy version file
Time, whether calculate the size of target legacy version file more than threshold value.
Threshold value is a default numerical value, can be determined according to practical situation.Such as, when needing the system updated civilian
When the memory headroom of the terminal at part place is bigger, this threshold value could be arranged to a bigger value, for example, it is possible to be set to
400M;When needing the memory headroom of terminal at system file place that updates less, this threshold value could be arranged to one less
Value, for example, it is possible to be set to 200M.
When server calculates the size of target legacy version file more than threshold value, perform step 406;When server calculates
Target legacy version file size less than threshold value time, then according to existing renewal system file method update system file.
Step 406, when server calculates the size of target legacy version file more than threshold value, according to default dividing method
Target new edition file is divided into n subfile;It is m Ziwen according to default dividing method by target legacy version file division
Part.
Optionally, default dividing method can be, according to default size, target new edition file is divided into default size
Multiple subfiles, such as, default size is 20M, then size 20M of each subfile after segmentation.It addition, when target redaction
When the size of file is if not the integral multiple of default size, the size of the n-th subfile of segmentation is less than 20M;Or work as mesh
When the size of mark legacy version file is if not the integral multiple of default size, the size of the m-th subfile of segmentation is less than 20M.
Further, since target new edition file is smaller with the difference of target legacy version file size in the ordinary course of things,
So the size of target new edition file can also be calculated, by judge the size of target legacy version file whether more than threshold value with
Determine the need for target new edition file and target legacy version file are split.
Step 407, server is according to n subfile and m sub-file generated differential file.
Differential file contains target new edition file and the difference content of target legacy version file, and differential file is for more
Old version system file in new terminal equipment.Optionally, differential file further comprises the configuration information of difference content, configuration letter
Breath for the position that difference content is corresponding in target new edition file and target legacy version file is described, or be used for illustrating poor
The size of single cent part, storage position, the size etc. of target new edition file of differential file.
Furthermore it is possible to generate differential file by the following method: obtain the i-th subfile in n subfile, obtain m
I-th subfile in individual subfile, contrasts the i-th subfile in n subfile and the i-th Ziwen in m subfile
The content of part, obtains the two different content, different contents is stored in i-th difference subspace file, generate i-th difference
Subfile.Recycle said method, generate n n difference subspace file corresponding to subfile, by n difference subspace file storage
In differential file, then generate differential file.
It addition, the title of differential file can be 3rd-fenge-20 etc., wherein, fenge is used for this differential file is described
To be obtained by segmentation object new edition file and target legacy version file, 20 for explanation to target new edition file and
When target legacy version file is split, the default size of segmentation is 20M every time.
It addition, server can generate differential file by difference instrument of increasing income (such as, bsdiff etc.).Relevant by opening
It is prior art that source difference instrument generates differential file, is not described in detail at this.
It addition, the differential file of generation is saved in memorizer by server, when the transmission receiving terminal unit is asked
Time, by differential file, send to terminal unit.
In addition, it is necessary to explanation, the method for above-mentioned generation differential file, be only with one of them new edition file with
Example.In real process, each new edition file comprised in new version system file is raw according to the method for step 401-407
Become a corresponding differential file, such as, comprise 3 new edition file in new version system file, then server can generate 3
Differential file, finally by one difference service packs of these three differential file boil down to.
Step 408, terminal unit sends to server and updates system file request.
Update system file request to be used for indicating server to send differential file to terminal unit.
Step 409, server generates at least one differential file according to the method for step 401-407 and is compressed into difference benefit
Fourth bag, sends difference service packs to terminal unit.
Optionally, difference service packs can be stored in server local by server, in order to receive terminal at server
During the renewal system file request that equipment sends, directly can obtain difference service packs in server local.
Optionally, difference service packs can be completed by OTA technology between terminal unit and server to download.OTA is relevant
Content is that prior art is not described in detail at this.
Step 410, terminal unit obtains target legacy version file, is divided by target legacy version file according to default dividing method
It is segmented into m subfile.
Optionally, terminal unit can obtain and differential file from old version system file according to the title of differential file
Title corresponding target legacy version file.Such as, as the entitled 3rd-fenge of differential file, the target old edition of acquisition
Presents be file name be the file of 3rd.
It addition, according to the title of differential file, terminal unit learns that this differential file is by the method shown in the present embodiment
The differential file obtained.Therefore, it is m subfile by the target legacy version file of acquisition according to default automatic Segmentation.
Step 411, subfile each in m subfile is updated respectively by terminal unit according to differential file.
Terminal unit obtains first difference subspace file in differential file and first Ziwen in m subfile
Part, uses patch synthetics (such as, bspatch) of increasing income to synthesize first in first difference subspace file and m subfile
Individual subfile, obtains first the redaction subfile corresponding with first subfile in m subfile (that is, n Ziwen
First subfile in part).Repeat said method, obtain the redaction subfile that each subfile in m subfile is corresponding
(that is, above-mentioned n subfile), completes the renewal to subfile each in m subfile.
Owing to using first son increased income in patch synthetics first difference subspace file of synthesis and m subfile
During file, patch synthetics of increasing income can be according to first subfile in the size of first difference subspace file, m subfile
Size and summation application memory headroom (the generally Shen of memory size that takies when running of patch synthetics of increasing income
The twice of first sub-file size that the size of memory headroom please is about in m subfile), to complete m Ziwen
The renewal of first subfile in part.It is by target according to default size due to each subfile in m subfile again
Obtaining after legacy version file division, so the size of each subfile in m subfile is equal to or less than presetting size, this is pre-
If size is generally less value, such as, default size is 20M.Therefore, according to default size by target legacy version file division
After so that it is empty according to the internal memory of the size application subfile size about twice of subfile after segmentation when applying for memory headroom
Between, compare and the prior art (internal memory according to the size application target legacy version file size about twice of target legacy version file
Space) present invention provide target legacy version file updating method, substantially reduce the size of memory headroom to be applied for;Solve
Determine and needed the memory headroom that application is bigger when system file is updated, caused terminal unit low memory, and then lead
Cause to update the problem that system file is failed.
It addition, after completing the renewal to subfile each in m subfile, each subfile after updating is stored in same
In one file, the file after being updated, namely above-mentioned target new edition file.By old version system file in terminal unit
The target legacy version file of interior correspondence replaces with target new edition file, namely completes the renewal to target legacy version file.
Optionally, before the subfile after updating is stored in same file, can be to each Ziwen after updating
Part verifies, to ensure that the content of each subfile after updating completes.Such as, can believe according to the configuration in differential file
Subfile after breath checksum update, whether the subfile after inspection updates is consistent with the configuration information in differential file, with really
Protect the file after updating correct.Optionally, checking algorithm can be that Message Digest Algorithm 5 is (English: Message
Digest Algorithm, is called for short: MD5).
Optionally, target legacy version file corresponding in old version system file in terminal unit is replaced with target new edition
Before presents, it is possible to use MD5 method of calibration verification object new edition file, complete to ensure the content of target new edition file
Whole.
In addition, it is necessary to explanation, the method for above-mentioned renewal system file, be only with one of them legacy version file with
Example.In real process, each ancient deed comprised in old version system file can be according to corresponding differential file, according to step
Legacy version file is updated by the method for rapid 411-412.Such as, old version system is to there being 3 Geju City version file, then terminals
This 3 Geju City version file can be updated by equipment according to 3 differential files that server can generate.
Additionally, when target legacy version file is updated by terminal unit according to differential file, if it is judged that difference
When file is empty differential file, the target legacy version file corresponding with the differential file of this sky is not updated.Such as, when
During the entitled 3rd-kong of one differential file, terminal is judged this difference by the character kong in the title of this differential file
File is empty differential file, also illustrates, target legacy version file is identical with corresponding target new edition file content, so this
Time the target legacy version file that the differential file of this sky is corresponding is not updated.
It addition, also, it should be noted when Geju City version file neither one in new version system file is corresponding
During new edition file, delete this legacy version file.Because when neither one and this legacy version in new version system file
During new edition file corresponding to file, illustrate that the function that this legacy version file is corresponding is unwanted one in new version system
Individual function, so deleting this legacy version file.
It addition, terminal unit can be intelligent television, smart mobile phone or panel computer etc., it is preferred that terminal unit is intelligence
Energy TV, owing to intelligent television internal memory is less, generally 1GB, and also it is inconvenient to change internal memory, and it is relatively big to change internal memory cost,
The present invention can well solve intelligent television problem of low memory when system update.
In sum, the method updating system file provided in the embodiment of the present invention, in server side when target new edition
When presents is bigger with target legacy version file, target new edition file and target legacy version file are all divided into several relatively
Little subfile, there is corresponding relation with the subfile of target legacy version file in the subfile of target new edition file, obtains every
The difference content of a pair corresponding subfile, is stored in the difference content of all corresponding subfiles in a file, obtains difference
File;So that when the target legacy version file in terminal unit is updated by terminal equipment side, by target old edition herein
Part is divided into the subfile that several are less, by being updated each subfile after segmentation successively, to realize target
The renewal of legacy version file.Due to update system file time, be to segmentation after each subfile be updated successively, because of
This, apply for the memory headroom of a subfile twice size every time, and subfile is the less file obtained after segmentation, compare with
Prior art (according to the memory headroom of the size application target legacy version file size twice of target legacy version file), applies for
Less memory headroom;Solve and need the memory headroom that application is bigger when system file is updated, cause terminal to set
Standby low memory, and then cause updating the problem that system file is failed;Reach to improve the effect updating system file success rate.
Based on the method updating system file described in the embodiment that above-mentioned Fig. 2 with Fig. 4 is corresponding, the embodiment of the present invention
A kind of server is provided, for performing the method updating system file described in embodiment corresponding to above-mentioned Fig. 2 with Fig. 4,
This server can be the server 120 in the network system shown in Fig. 1, and as shown in Figure 5A, this server 500 includes: obtain
Module 501, segmentation module 502, difference block 503 and sending module 504.
Acquisition module 501, for obtaining target new edition file and relative with target new edition file from preset path
The target legacy version file answered;
Segmentation module 502, for when the size of target legacy version file is more than first threshold, by target new edition file
It is divided into n subfile;Being m subfile by target legacy version file division, it is every that n subfile and m subfile include
The size of individual subfile is less than Second Threshold;
Difference block 503, for according to described n subfile and described m sub-file generated differential file;
Sending module 504, for sending differential file to terminal unit.
Optionally, seeing Fig. 5 B, server 500 can also include receiver module 505, sends for receiving terminal apparatus
Renewal system file is asked, and updates system file request and sends differential file for instruction to terminal unit.
In sum, the server that the embodiment of the present invention provides, when target new edition file and target legacy version file relatively
Time big, target new edition file and target legacy version file being all divided into several less subfiles, target new edition is herein
There is corresponding relation with the subfile of target legacy version file in the subfile of part, obtains in the difference of every a pair corresponding subfile
Hold, the difference content of all corresponding subfiles is stored in a file, obtains differential file;So that when to terminal unit
When interior target legacy version file is updated, it is the subfile that several are less by target legacy version file division, by right
Each subfile after segmentation is updated successively, to realize the renewal to target legacy version file.Due at the system of renewal literary composition
During part, it is that each subfile after segmentation is updated successively, therefore, applies for the internal memory of a subfile twice size every time
Space, subfile is the less file that obtains after segmentation, compares and prior art (the size Shen according to target legacy version file
Please the memory headroom of target legacy version file size twice), apply for less memory headroom;Solve and system file is being entered
Need the memory headroom that application is bigger when row updates, cause terminal unit low memory, and then cause updating system file failure
Problem;Reach to improve the effect updating system file success rate.
Based on the method updating system file described in the embodiment that above-mentioned Fig. 3 with Fig. 4 is corresponding, the embodiment of the present invention
There is provided a kind of terminal unit, for performing the side updating system file described in embodiment corresponding to above-mentioned Fig. 3 with Fig. 4
Method, this terminal unit can be the terminal unit 130 in the network system shown in Fig. 1, as shown in Figure 6A, this terminal unit 600
Including: receiver module 601, segmentation module 602 and more new module 603.
Receiver module 601, for receiving the differential file that server sends;
Segmentation module 602, is used for obtaining target legacy version file, is m subfile by target legacy version file division;
More new module 603, for being updated subfile each in m subfile successively according to differential file.
Optionally, seeing Fig. 6 B, terminal unit 600 also includes sending module 604, for sending renewal system to server
File request, updates system file request and sends differential file for instruction to terminal unit.
The terminal unit that the embodiment of the present invention provides, when the target legacy version file in terminal unit is updated,
It is the subfile that several are less by target legacy version file division, by each subfile after segmentation is updated, with
Realize the renewal to target legacy version file.Due to update system file time, be to segmentation after each subfile enter successively
Row updates, and therefore, applies for the memory headroom of a subfile twice size every time, and subfile is the less literary composition obtained after segmentation
Part, compares and prior art (the internal memory sky according to the size application target legacy version file size twice of target legacy version file
Between), apply for less memory headroom;Solve and need the memory headroom that application is bigger when system file is updated,
Cause terminal unit low memory, and then cause updating the problem that system file is failed;Reach to improve and update system file success
The effect of rate.
Based on the embodiment that above-mentioned Fig. 2, Fig. 3 are corresponding with Fig. 4, another embodiment of the present invention provides a kind of network system, as
Shown in Fig. 7, this network system includes: server 701 and terminal unit 702;
Wherein, server 701 is the server described in the embodiment that Fig. 5 A and Fig. 5 B is corresponding;Terminal unit 702 is
The terminal unit described in embodiment that Fig. 6 A and Fig. 6 B is corresponding.
The network system that the embodiment of the present invention provides, in server side when target new edition file and target legacy version file
Time bigger, target new edition file and target legacy version file are all divided into several less subfiles, target redaction
There is corresponding relation with the subfile of target legacy version file in the subfile of file, obtains in the difference of every a pair corresponding subfile
Hold, the difference content of all corresponding subfiles is stored in a file, obtains differential file;So that in terminal equipment side
When target legacy version file in terminal unit is updated, it is the Ziwen that several are less by target legacy version file division
Part, by being updated successively each subfile after segmentation, to realize the renewal to target legacy version file.Due to more
During new system file, being to be updated each subfile after segmentation successively, therefore, one subfile twice of application is big every time
Little memory headroom, subfile is the less file that obtains after segmentation, compares with prior art (according to target legacy version file
The memory headroom of size application target legacy version file size twice), applied for less memory headroom;Solve to being
System file needs, when being updated, the memory headroom that application is bigger, causes terminal unit low memory, and then causes renewal system
The problem that file is failed;Reach to improve the effect updating system file success rate.
About the equipment in above-described embodiment, wherein modules performs the concrete mode of operation in relevant the method
Embodiment in be described in detail, explanation will be not set forth in detail herein.
Those skilled in the art, after considering description and putting into practice invention disclosed herein, will readily occur to its of the present invention
Its embodiment.The application is intended to any modification, purposes or the adaptations of the present invention, these modification, purposes or
Person's adaptations is followed the general principle of the present invention and includes the undocumented common knowledge in the art of the present invention
Or conventional techniques means.Description and embodiments is considered only as exemplary, and the true scope of the present invention is pointed out by claim.
It should be appreciated that the invention is not limited in precision architecture described above and illustrated in the accompanying drawings, and
And various modifications and changes can carried out without departing from the scope.The scope of the present invention is only limited by appended claim.
Claims (9)
1. the method updating system file, it is characterised in that described method is applied to server, described method includes:
Target new edition file and the target old edition corresponding with described target new edition file this paper is obtained from preset path
Part;
When the size of described target legacy version file is more than first threshold, described target new edition file is divided into n son
File;Being m subfile by described target legacy version file division, it is every that described n subfile and described m subfile include
The size of individual subfile is less than Second Threshold;
According to described n subfile and described m sub-file generated differential file;
Described differential file is sent to terminal unit, so that described terminal unit carries out system literary composition according to described differential file
The renewal of part.
Method the most according to claim 1, it is characterised in that described differential file was sent before terminal unit, institute
Method of stating also includes:
Receiving the renewal system file request that described terminal unit sends, the request of described renewal system file is for indicating to described
Terminal unit sends described differential file.
3. the method updating system file, it is characterised in that be applied to terminal unit, described method includes:
Receive the differential file that server sends;
Obtain the target legacy version file that described terminal unit is the most to be updated, be m by described target legacy version file division
Subfile;
Successively each subfile in described m subfile is updated according to described differential file.
Method the most according to claim 3, it is characterised in that described be m by described target legacy version file division
Before subfile, described method also includes:
Send the system file request that updates to described server, the request of described renewal system file sets to described terminal for instruction
Preparation send described differential file.
5. a server, it is characterised in that described server includes:
Acquisition module, for obtaining target new edition file and corresponding with described target new edition file from preset path
Target legacy version file;
Segmentation module, for when the size of described target legacy version file is more than first threshold, by described target new edition this paper
Part is divided into n subfile;It is m subfile by described target legacy version file division, described n subfile and described m
The size of each subfile that subfile includes is less than Second Threshold;
Difference block, for according to described n subfile and described m sub-file generated differential file;
Sending module, for sending described differential file to terminal unit, so that described terminal unit is according to described difference
File carries out the renewal of system file.
Server the most according to claim 5, it is characterised in that
Described server also includes receiver module, for receiving the renewal system file request that described terminal unit sends, described
Update system file request and send described differential file for instruction to described terminal unit.
7. a terminal unit, it is characterised in that described terminal unit includes:
Receiver module, for receiving the differential file that server sends;
Segmentation module, for obtaining the target legacy version file that described terminal unit is the most to be updated, by described target legacy version
File division is m subfile;
More new module, for being updated each subfile in described m subfile successively according to described differential file.
Terminal unit the most according to claim 7, it is characterised in that
Described terminal unit also includes sending module, updates system file request, described renewal for sending to described server
System file request sends described differential file for instruction to described terminal unit.
9. a network system, it is characterised in that described system includes: server and terminal unit;
Described server is the server described in any one of claim 5-6;
Described terminal unit is the terminal unit described in any one of claim 7-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610652573.1A CN106250195A (en) | 2016-08-10 | 2016-08-10 | Update the method for system file, equipment and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610652573.1A CN106250195A (en) | 2016-08-10 | 2016-08-10 | Update the method for system file, equipment and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106250195A true CN106250195A (en) | 2016-12-21 |
Family
ID=58078600
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610652573.1A Pending CN106250195A (en) | 2016-08-10 | 2016-08-10 | Update the method for system file, equipment and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106250195A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107643895A (en) * | 2017-09-29 | 2018-01-30 | 郑州云海信息技术有限公司 | A kind of Software package method and apparatus |
CN109284123A (en) * | 2017-07-21 | 2019-01-29 | 深圳市中兴微电子技术有限公司 | It is a kind of to divide the method and system for realizing compressed version upgrading using version |
CN109324810A (en) * | 2017-07-26 | 2019-02-12 | 深圳市中兴微电子技术有限公司 | The production method and system of internet of things equipment upgrade package |
CN110716735A (en) * | 2019-10-11 | 2020-01-21 | 东莞市小精灵教育软件有限公司 | System upgrading method and device, intelligent terminal and computer readable storage medium |
CN111273963A (en) * | 2020-02-14 | 2020-06-12 | 广州极尚网络技术有限公司 | Application program configuration information generation method and device, computer equipment and medium |
CN111580849A (en) * | 2020-05-09 | 2020-08-25 | 东软睿驰汽车技术(沈阳)有限公司 | File difference updating optimization method and related device |
CN114503076A (en) * | 2019-12-09 | 2022-05-13 | 深圳市欢太科技有限公司 | Incremental data determining method and device, server and terminal equipment |
CN114490693A (en) * | 2022-02-17 | 2022-05-13 | 平安普惠企业管理有限公司 | Data modification method and device, electronic equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101539885A (en) * | 2009-04-23 | 2009-09-23 | 大唐微电子技术有限公司 | Soft ware autonomous air upgrading method of wireless communication module, device and system thereof |
WO2009132261A1 (en) * | 2008-04-25 | 2009-10-29 | Vmware, Inc. | Updating a file using differences and file format therefor |
CN102132259A (en) * | 2009-03-30 | 2011-07-20 | 日立系统解决方案有限公司 | Firmware updating system, firmware delivering server, firmware incorporating device, and program |
CN102207878A (en) * | 2011-05-24 | 2011-10-05 | 康佳集团股份有限公司 | Method for upgrading internetwork television difference |
CN102325189A (en) * | 2011-09-19 | 2012-01-18 | 江苏省邮电规划设计院有限责任公司 | Embedded system data remote upgrading method |
CN103605552A (en) * | 2013-11-29 | 2014-02-26 | Tcl通力电子(惠州)有限公司 | MCU upgrading method and device |
CN104978223A (en) * | 2015-07-02 | 2015-10-14 | 上海市共进通信技术有限公司 | Method for implementing upgrade of device firmware in Web manner |
-
2016
- 2016-08-10 CN CN201610652573.1A patent/CN106250195A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2009132261A1 (en) * | 2008-04-25 | 2009-10-29 | Vmware, Inc. | Updating a file using differences and file format therefor |
CN102132259A (en) * | 2009-03-30 | 2011-07-20 | 日立系统解决方案有限公司 | Firmware updating system, firmware delivering server, firmware incorporating device, and program |
CN101539885A (en) * | 2009-04-23 | 2009-09-23 | 大唐微电子技术有限公司 | Soft ware autonomous air upgrading method of wireless communication module, device and system thereof |
CN102207878A (en) * | 2011-05-24 | 2011-10-05 | 康佳集团股份有限公司 | Method for upgrading internetwork television difference |
CN102325189A (en) * | 2011-09-19 | 2012-01-18 | 江苏省邮电规划设计院有限责任公司 | Embedded system data remote upgrading method |
CN103605552A (en) * | 2013-11-29 | 2014-02-26 | Tcl通力电子(惠州)有限公司 | MCU upgrading method and device |
CN104978223A (en) * | 2015-07-02 | 2015-10-14 | 上海市共进通信技术有限公司 | Method for implementing upgrade of device firmware in Web manner |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109284123A (en) * | 2017-07-21 | 2019-01-29 | 深圳市中兴微电子技术有限公司 | It is a kind of to divide the method and system for realizing compressed version upgrading using version |
CN109324810A (en) * | 2017-07-26 | 2019-02-12 | 深圳市中兴微电子技术有限公司 | The production method and system of internet of things equipment upgrade package |
CN107643895A (en) * | 2017-09-29 | 2018-01-30 | 郑州云海信息技术有限公司 | A kind of Software package method and apparatus |
CN110716735A (en) * | 2019-10-11 | 2020-01-21 | 东莞市小精灵教育软件有限公司 | System upgrading method and device, intelligent terminal and computer readable storage medium |
CN114503076A (en) * | 2019-12-09 | 2022-05-13 | 深圳市欢太科技有限公司 | Incremental data determining method and device, server and terminal equipment |
CN111273963A (en) * | 2020-02-14 | 2020-06-12 | 广州极尚网络技术有限公司 | Application program configuration information generation method and device, computer equipment and medium |
CN111273963B (en) * | 2020-02-14 | 2023-02-24 | 广州极尚网络技术有限公司 | Application program configuration information generation method and device, computer equipment and medium |
CN111580849A (en) * | 2020-05-09 | 2020-08-25 | 东软睿驰汽车技术(沈阳)有限公司 | File difference updating optimization method and related device |
CN114490693A (en) * | 2022-02-17 | 2022-05-13 | 平安普惠企业管理有限公司 | Data modification method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106250195A (en) | Update the method for system file, equipment and system | |
CN105988926B (en) | The treating method and apparatus of multi version test data | |
CN106484453B (en) | Method and device for realizing system upgrading | |
CN109474578A (en) | Message method of calibration, device, computer equipment and storage medium | |
CN105718268A (en) | Method and device for verifying OTA multi-pack upgrading | |
CN106055933B (en) | A kind of method and system of client software code check | |
CN105786549B (en) | Smart machine and its upgrade method | |
CN107239288A (en) | The version upgrading method and device of a kind of mobile terminal | |
CN104867065A (en) | Method and equipment for processing orders | |
CN107193593A (en) | A kind of upgrade method, set top box and the storage medium of scalable file | |
CN106131612A (en) | The method and system of Android app dynamic load resource function module | |
CN110399933B (en) | Data annotation correction method and device, computer readable medium and electronic equipment | |
CN106371881A (en) | Method and system for updating program versions in servers | |
CN111930404B (en) | Vehicle instrument upgrading method and system | |
CN105550370A (en) | Input method and input system | |
CN104253869A (en) | Blacklist sharing method, blacklist updating method, blacklist sharing device and blacklist updating device | |
CN110334544A (en) | Federal model degeneration processing method, device, federal training system and storage medium | |
CN105868639A (en) | Kernel vulnerability repair method and device | |
CN109147708A (en) | Gamma value adjusting method and device of display panel and display equipment | |
CN114265607A (en) | Gray scale publishing method and system, electronic device and storage medium | |
CN116932265A (en) | Fault simulation processing method, device, equipment and storage medium | |
CN105824653A (en) | Automobile CAN bus data brush-writing method and device | |
CN108197625A (en) | A kind of method and system for correcting Car license recognition | |
CN106302604A (en) | Data transmission method and device | |
CN110580171A (en) | APP classification method, related device and product |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161221 |