CN103678319B - Resource file update method, device and system and server - Google Patents
Resource file update method, device and system and server Download PDFInfo
- Publication number
- CN103678319B CN103678319B CN201210321660.0A CN201210321660A CN103678319B CN 103678319 B CN103678319 B CN 103678319B CN 201210321660 A CN201210321660 A CN 201210321660A CN 103678319 B CN103678319 B CN 103678319B
- Authority
- CN
- China
- Prior art keywords
- resource file
- file
- title
- mark
- resource
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/18—Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
- H04W8/20—Transfer of user or subscriber data
- H04W8/205—Transfer to or from user equipment or user record carrier
-
- 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)
- Databases & Information Systems (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of resource file update method, device and system and servers, belong to field of computer technology.It wherein include the title and mark of the resource file in solicited message the described method includes: transmitting request information to server, the mark is obtained according to the title of the resource file and the available data of the resource;Receive the corresponding latest data of the resource file title that the server is returned according to the title and identification feedback of the resource file;The available data of the resource file is replaced using the latest data of the resource file.The present invention judges resource file with the presence or absence of update by the data of corresponding resource file on comparison mobile terminal and server, it updates if it exists, then obtain the latest data of the resource file, to realize automatically updating for resource file, and then avoid and re-download entire installation kit in the case where certain resource files update, reduce the downloading burden of mobile terminal.
Description
Technical field
The present invention relates to field of computer technology, in particular to a kind of resource file update method, device and system and clothes
Business device.
Background technique
In recent years, mobile communication technology is grown rapidly, and the mobile terminal devices such as mobile phone are gradually popularized, however mobile communication is fast
It spends not high.With GPRS(General Packet Radio Service, general packet radio service technology) communication for,
Speed of download theoretical value is 171.2Kbps, but in actual operations, network stabilization, the bit error rate and actual performance (rate
And capacity) etc. indexs all fail to reach theoretical value at present, therefore the actual download speed of GPRS is more much lower than theoretical value, such as
The actual average speed of download of the GPRS in some areas is less than 100Kbps.Therefore, in the case where network speed limits to, for
For a application program for mobile terminal, the size of installation kit is largely affected by the downloading experience of user.
A kind of method for downloading installation kit exists in the prior art: still uninstalled a certain application will be used in user
It before program, needs to download the corresponding entire installation kit of the application program from server, wherein includes answering in installation kit
The basic resources file and additional resource file needed when being installed with program.
In the implementation of the present invention, the inventor finds that the existing technology has at least the following problems: when pacifying in server
After certain additional resource files of dress packet update, mobile terminal is directed to the newest installation kit if necessary and is updated, and needs
Will again from server obtain include newest additional resource file and original basic resources file installation kit, thus to move
Dynamic terminal brings very big downloading to bear.
Summary of the invention
In order to solve problems in the prior art, the embodiment of the invention provides a kind of resource file update method, device and
System and server.The technical solution is as follows:
On the one hand, a kind of resource file update method is provided, which comprises
Server is transmitted request information to, it is described wherein comprising the title and mark of the resource file in solicited message
Mark is obtained according to the title of the resource file and the available data of the resource;
Receive the resource file title pair that the server is returned according to the title and identification feedback of the resource file
The latest data answered;
The available data of the resource file is replaced using the latest data of the resource file.
Further, it is described transmit request information to server before, further includes:
Obtain title, the available data of the resource file of resource file;
It is calculated according to available data of the Message Digest 5 to the resource file to obtain the resource file
Mark.
Further, the title and mark of resource file are one-to-one, the transmission requests in the solicited message
Information is to server, comprising:
The title of resource file in solicited message and corresponding mark are sent to server in the form bound in pairs.
Further, the resource file is picture file, language file, icon file or configuration file.
On the other hand, a kind of resource file updating device is provided, described device includes:
Sending module wherein includes the name of the resource file in solicited message for transmitting request information to server
Claim and mark, the mark are obtained according to the title of the resource file and the available data of the resource;
First receiving module, the institute returned for receiving the server according to the title and identification feedback of the resource file
State the corresponding latest data of resource file title;
Replacement module, for replacing the available data of the resource file using the latest data of the resource file.
Further, described device further include:
Module is obtained, for obtaining the title of resource file, the available data of the resource file;
Computing module, for being calculated according to available data of the Message Digest 5 to the resource file to obtain
State the mark of resource file.
Further, the title and mark of resource file are one-to-one, the sending modules in the solicited message,
It is specifically used for:
The title of resource file in solicited message and corresponding mark are sent to server in the form bound in pairs.
Further, the resource file is picture file, language file, icon file or configuration file.
In another aspect, providing a kind of resource file update method, which comprises
Solicited message is received, the solicited message includes the title and mark of resource file;
Comparing in the solicited message mark of resource file has the identical resource file title pair with stored
Identifying whether for answering is identical;
If identical, terminate;
If it is not the same, then obtain the corresponding latest data of the resource file title, and to the hair of the solicited message
Sending end sends the latest data.
Further, in the solicited message mark of resource file and it is stored have same asset text
Part title is corresponding identify whether it is identical, comprising:
Obtain the title of resource file identical with resource file title in the solicited message;
Corresponding mark is searched according to the resource file title;
Compare resource file title in the solicited message it is corresponding mark and it is described find identify whether it is identical.
In another aspect, providing a kind of server, the server includes:
Second receiving module, for receiving solicited message, the solicited message includes the title and mark of resource file;
Comparison module, the mark for resource file in the solicited message have the identical money with stored
Source file title is corresponding identify whether it is identical;
First judgment module then terminates when identical for the judging result in the comparison module;
Second judgment module then obtains the resource file when not identical for the judging result in the comparison module
The corresponding latest data of title, and the latest data is sent to the transmitting terminal of the solicited message.
Further, the comparison module, specifically includes:
Acquiring unit, for obtaining the title of resource file identical with resource file title in the solicited message;
Searching unit, for searching corresponding mark according to the resource file title;
Comparing unit for the corresponding mark of resource file title in the solicited message and described is found
It identifies whether identical.
In another aspect, a kind of resource file more new system is provided, and the system comprises: above-mentioned resource file more new clothes
It sets and server.
Technical solution provided in an embodiment of the present invention has the benefit that
By only downloading the resource file of some updates in the corresponding installation kit of application program, avoid in certain resources
File re-downloads entire installation kit in the case where updating, and so as to shorten download time, reduces and loads under mobile terminal
Load;And it can be compared automatically with the resource file in server when user is using application program to obtain the resource updated
File, thus guarantee the resource file that user uses be it is newest, improve user experience.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 is the implementation environment schematic diagram of resource file update method provided in an embodiment of the present invention;
Fig. 2 is the resource file update method flow chart that the embodiment of the present invention one provides;
Fig. 3 is the schematic diagram of resource file serializing storage format in the present invention;
Fig. 4 is resource file updating device structural schematic diagram provided by Embodiment 2 of the present invention;
Fig. 5 is the resource file update method flow chart that the embodiment of the present invention three provides;
Fig. 6 is the structural schematic diagram for the server that the embodiment of the present invention four provides;
Fig. 7 is the interaction flow of mobile terminal and server in the resource file renewal process of the offer of the embodiment of the present invention five
Figure;
Fig. 8 is that the resource file that the embodiment of the present invention six provides updates system structure diagram.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention
Formula is described in further detail.
Resource file described in the invention can be the language pack in application program for mobile terminal installation kit, picture, figure
The resources such as mark, configuration file, these resource files usually can be application program non-essential resource file when in use.
Referring to FIG. 1, it illustrates the implementation environment schematic diagram of resource file update method provided in an embodiment of the present invention,
The implementation environment may include: mobile terminal 101 and server 102.
Mobile terminal 101 can be mobile phone, computer, digital camera etc..There are many inside of mobile terminal 101 can be set
Application program, each application program can be installed by corresponding installation kit.Mobile terminal 101 can by wireless or
Cable network obtains the installation kit of its interior application program.
It include installation kit and the corresponding resource file of installation kit in server 102, installation kit or resource file can be with
It updates at any time, and server 102 can be communicated by wired or wireless mode with terminal.
Embodiment one
The embodiment of the invention provides a kind of resource file update methods, referring to fig. 2, can be applied to the shifting in Fig. 1
In dynamic terminal 101, method flow includes:
Step 201, the title of resource file, the available data of resource file are obtained.
Resource file is usually the file in application program installation kit, for example resource file can be picture file, language
File, icon file or configuration file.In general, resource file said here can install and use process for application program
Non-essential file, for example application program is during installing and using, if having lacked some above-mentioned resource file,
What the application program still can be run, the resource file that is only the absence of needs to be shown or be run with default form.Citing
For, for a chat tool, if having lacked the figure when chat tool uses in the installation kit of the chat tool
The shape defaulted by other marked file, at this time after user installs the chat tool, do not show icon, but initialize
Formula replaces the icon.
In practical applications, in order to guarantee the normal use of user, lack some or certain resources text in user installation
In the case where part or the older installation kit of resource file, mobile terminal 101 needs to know first that corresponding application program lacks or still
Then the resource file not updated obtains corresponding newest resource file into server.Therefore, mobile terminal 101 is first
Need to know the information of resource file.
In general, the information of the local a certain resource file of mobile terminal 101 may include the title of resource file, resource file
Data.
The available data of resource file refers to the data of the local resource file being saved of mobile terminal 101.
Step 202, it is calculated according to available data of the Message Digest 5 to resource file to obtain resource file
Mark.
Here the mark of resource file is to distinguish the unique identification of resource file, i.e. resource file is different, corresponding mark
Knowing also can be different, and Message Digest 5 usually can be used and calculated the data of resource file to obtain the mark of resource file
Know.In general, MD5(Message Digest Algorithm 5, Message Digest 5 can be used) algorithm carrys out computing resource
The data of file are to obtain the MD5 of resource file, wherein the MD5 of the resource file calculated then can be used as resource file
Mark.Obviously, when the data of resource file change, the MD5 of the resource file calculated also can be previous corresponding with it
MD5 is different.It is special, it, then can be corresponding by its when mobile terminal 101 is local there is no when a certain required resource file
MD5 is set to sky.
In practical applications, after the application program launching of mobile terminal 101, the letter of local resource file is read first
Breath, title and data including resource file.In order to judge in server with the presence or absence of the resource file updated, it is also necessary to calculate
The mark of the resource file.
It should be noted that the resource file read can have one after the application program launching of mobile terminal 101
Or it is multiple.For example, the resource file read is picture file P1, P2, language file L1, configuration file C1 etc..It is corresponding, needle
To these resource files, need to calculate the corresponding mark of each resource file.Certainly, if read a certain resource file simultaneously
There is no in local, then the mark of the resource file can be set to sky.
Step 203, server is transmitted request information to, wherein includes the title and mark of resource file in solicited message.
The title of resource file and the mark one-to-one correspondence of resource file are needed due to communication two party, it is each in transmission
When the solicited message of resource file, the title of resource file and corresponding mark are bound in pairs, can be with < resource file
Filename, the mark of resource file > form transmission.That is, when transmitting solicited message, it can be by resource file
Title and mark carry out binding transmission.
Certainly, in specific implementation, above-mentioned binding can be carried out to each resource file, i.e., in each solicited message
Bind title mark corresponding with its of a resource file.It is, of course, also possible to as the case may be, for example, for it is some less
The title of each resource file and its corresponding mark can also be bound in pairs it by the multiple resource files often changed
Afterwards, the information after the corresponding pairs of binding of each resource file is merged into the same solicited message.It is more for this in this way
A resource file, mobile terminal 101 only need to send a solicited message to server 102.
For example, the corresponding resource file P1 of application program may be often to be updated, and therefore, can pass through one
Solicited message (i.e. will be after the title of resource file P1 mark corresponding with its in pairs binding by the information of resource file P1
Information) it is sent to server.Again for example, application program corresponding resource file P2, L1 and L2 seldom update, therefore,
In order to reduce request number of times, the information of these resource files can be bundled in the same solicited message and be sent to server,
At this point, bound in pairs firstly the need of by the title of resource file P2 mark corresponding with its, resource file L1 is right with its
The mark answered is bound in pairs, resource file L2 mark corresponding with its is bound in pairs, then again by above-mentioned binding
Information afterwards is placed in the same solicited message and is sent to server.
Step 204, the resource file title pair that server is returned according to the title and identification feedback of the resource file is received
The latest data answered.
When the resource file data in server 102 has update, then server 102 can issue this to mobile terminal 101
The latest data of resource file.The latest data for the resource file that wherein server 102 issues is the name according to the resource file
What title and mark obtained.
It is corresponding, mobile terminal 101 then can receive resource file title that server 102 is fed back to it is corresponding this most
New data.
In practical applications, when server 102 feeds back to 101 latest data of mobile terminal, usually by the name of resource file
Claim and the corresponding latest data of resource file is bound, i.e., the title of resource file and latest data is assembled into data
The data packet, then can be handed down to mobile terminal 101 by packet.It is corresponding, when mobile terminal 101 receives under server 102
It is parsed after the data packet of hair to obtain the latest data of resource file therein.
Step 205, the available data of the latest data replacement resource file of resource file is utilized.
It, can be according to the location mode of available data by newest number after the latest data of resource file is locally downloading
It is stored in data file after being serialized according to deposit database or by latest data.
For example, the latest data of resource file can be stored into data file by the way of serializing, serializing
Format may refer to shown in Fig. 3.The serialization format consists of two parts, first is that resource file number, second is that storage unit.One
A storage unit stores a resource file, it includes the storage opening flag, the length of filename, file of a resource
Name, data length, data and a resource end mark.Storage unit can have multiple, respectively correspond different resources
File.It is achieved in the serializing storage of resource file.Corresponding, when parsing data to serialize format unserializing
Data file can obtain the data of each resource file.
Certainly, in practical applications, serializing storage format may be arranged as other formats, as long as can carry out
Correct resource file data is uniquely obtained when unserializing.
In conclusion the resource file update method that the embodiment of the present invention one provides is by calculating the unique of resource file
Mark, and is sent to server for the mark and verifies, issued when server authentication resource file updates latest data to
Mobile terminal, mobile terminal is then available to arrive the latest data, and utilizes the original of latest data replacement corresponding resource file
There are data, to realize automatically updating for resource file.It follows that in practical applications, mobile terminal only needs to download more
The latest data of resource file after new, the resource file not updated without downloading other in installation kit, so as to keep away
Exempt to re-download entire installation kit when one or more resource files update, greatly reduces the downloading burden of mobile terminal;
And when mobile terminal starts application program every time, it can automatically go on server to obtain newest resource file to replace this
The original resource file data in ground enhances user experience to realize automatically updating for resource file.
Embodiment two
Referring to fig. 4, the embodiment of the invention provides a kind of resource file updating device, it can be applied to the shifting in Fig. 1
In dynamic terminal 101, which includes: sending module 410, the first receiving module 420 and replacement module 430,
In addition to this, resource file updating device can also include obtaining module 440 and computing module 450.
Obtaining module 440 can be used for obtaining the title of resource file, the available data of resource file.
Computing module 450 can be used for being calculated according to available data of the Message Digest 5 to resource file to obtain
The mark of resource file.
Sending module 410 can be used for transmitting request information to server 102, wherein include resource file in solicited message
Title and mark.
First receiving module 420 can be used for receiving server 102 according to the title and identification feedback of the resource file
The corresponding latest data of resource file title returned.
Replacement module 430 can be used for the available data of the latest data replacement resource file using resource file.
It should be understood that resource file updating device provided by the above embodiment is when updating resource file, only more than
The division progress of each functional module is stated for example, can according to need and in practical application by above-mentioned function distribution by difference
Functional module complete, i.e., the internal structure of device is divided into different functional modules, with complete it is described above whole or
Person's partial function.In addition, resource file updating device provided by the above embodiment belongs to resource file update method embodiment
Same design, specific implementation process are detailed in embodiment of the method, and which is not described herein again.
In conclusion resource file updating device provided by Embodiment 2 of the present invention is by calculating the unique of resource file
Mark, and is sent to server for the mark and verifies, issued when server authentication resource file updates latest data to
Mobile terminal, mobile terminal then gets the latest data, and utilizes original number of latest data replacement corresponding resource file
According to realize automatically updating for resource file.It follows that in practical applications, after mobile terminal only needs to download update
Resource file latest data, without downloading other resource files for not updating in installation kit, so as to avoid
One or more resource files re-download entire installation kit when updating, and greatly reduce the downloading burden of mobile terminal;And
When mobile terminal starts application program every time, it can automatically go on server to obtain newest resource file to replace local original
Some resource file datas enhance user experience to realize automatically updating for resource file.
Embodiment three
The embodiment of the invention provides a kind of resource file update methods, referring to Fig. 5, can be applied to the clothes in Fig. 1
It is engaged in device 102, in general, including title, the data of resource file and the resource file of resource file in server 102 at this time
Mark.Method flow includes:
Step 501, solicited message is received, solicited message includes the title and mark of resource file.
Here solicited message is usually to be sent by mobile terminal 101.The title and mark of resource file are usually to tie up
Be scheduled in solicited message, for example can be identified with<title>form be bundled in solicited message and transmitted.
Step 502, compare in solicited message the mark of resource file and stored there is same asset file name pair
Identifying whether for answering is identical.
In specific implementation, which may include:
S1 obtains the title of resource file identical with resource file title in solicited message.
In general, corresponding mark can also change, but its title will not change when the data of resource file change,
That is a resource file is after the title in server 102 is defined, corresponding, the money downloaded in mobile terminal
Title in the information of source file also should be identical as title in server 102.A such as resource text in server 102
The entitled picture P1 of part, then corresponding, the title of the resource file in mobile terminal 101 still should be picture P1.
S2 searches corresponding mark according to resource file title.
In general, may include one in server 102 for saving the number of resource file title, mark and corresponding data
According to library.In the database, title, mark and the data of each resource file map one by one.That is, each money
The mark of source file is that the data deposited according to Current resource file are calculated, for example calculate each money according to MD5 algorithm
The mark of source file.
It follows that for the resource file of the same title, if the data of resource file are changed, thus
To mark (such as MD5 of resource file) can also change.
S3, compares the corresponding mark of resource file title in solicited message and identifying whether of finding is identical.
When from the resource file that there are same names with resource file in solicited message is found in database, number is searched
According to the corresponding mark of resource file title in library, and the mark is compared with the mark in solicited message.
Step 503, if it is identical, terminate.
If the corresponding mark of resource file title and the mark found are identical in solicited message, show to send and be somebody's turn to do
The latest data saved in the available data and server of the resource file saved in the mobile terminal of solicited message be it is identical,
It does not need to issue corresponding data to the transmitting terminal (i.e. mobile terminal 101) of solicited message, therefore the solicited message can be ignored,
To the transmitting terminal of solicited message without any response.
Step 504, if it is not the same, then obtaining the corresponding latest data of resource file title, and to the hair of solicited message
Sending end sends latest data.
If the corresponding mark of resource file title and the mark found be not identical in solicited message, show to send
The latest data saved in the available data of the resource file saved in the mobile terminal of the solicited message and server is not phase
With, therefore the corresponding latest data of resource file title can be further obtained, finally by the newest number of the resource file
According to the transmitting terminal (i.e. mobile terminal 101) for being sent to solicited message.
Certainly, when sending the latest data of resource file to mobile terminal 101, in order to ensure mobile terminal 101 can be with
Correctly learn be which resource file latest data, it is also necessary to while being attached with the title of the resource file.Therefore, specific
In operating process, the title of resource file and its corresponding latest data can be bound in pairs, it can with < name
Claim, latest data > form be transferred to mobile terminal 101.
It should be noted that when server 102 is when sending the latest data of resource file to mobile terminal 101, hair
The content sent is set according to the content of corresponding solicited message.For example, when the request that mobile terminal 101 is sent
It only include the title and mark of the resource file of a corresponding binding in information, then only when being sent to mobile terminal 101
Need the corresponding title and latest data for sending the resource file after binding in pairs.Again for example, if it is mobile whole
It include the title and mark of the resource file of multiple corresponding bindings in the solicited message that end 101 is sent, then being sent to
The corresponding title and latest data for sending the resource file after multiple pairs of bindings is then needed when mobile terminal 101.
In conclusion the resource file update method that the embodiment of the present invention three provides, can compare mobile terminal transmission
Corresponding resource file identifies whether identical in the mark and server come, and then can determine resource file in server
The latest data of the resource file if there is update, is then fed back to mobile terminal with the presence or absence of updating by data, so as to
So that server realizes automatically updating for resource file with mobile terminal interdynamic.
Example IV
Referring to Fig. 6, the embodiment of the invention provides a kind of server, which includes: the second receiving module 610, ratio
Compared with module 620, first judgment module 630, the second judgment module 640.
Second receiving module 610 can be used for receiving solicited message, and solicited message includes the title and mark of resource file.
Comparison module 620 can be used for comparing in solicited message the mark of resource file and stored have same asset
File name is corresponding identify whether it is identical.
Comparison module 620 may include acquiring unit 621, searching unit 622, comparing unit 623.
Acquiring unit 621 can be used for obtaining the title of resource file identical with resource file title in solicited message.
Searching unit 622 can be used for searching corresponding mark according to resource file title.
The mark that comparing unit 623 can be used for comparing the corresponding mark of resource file title in solicited message and find
Whether identical know.
First judgment module 630 can be used for then terminating when the judging result of comparison module 620 is identical.
Second judgment module 640 can be used for then obtaining resource file when the judging result of comparison module 620 is not identical
The corresponding latest data of title, and latest data is sent to the transmitting terminal of solicited message.
It should be understood that server provided by the above embodiment is when updating resource file, only with above-mentioned each function mould
The division progress of block can according to need and for example, in practical application by above-mentioned function distribution by different functional modules
It completes, i.e., the internal structure of device is divided into different functional modules, to complete all or part of the functions described above.
In addition, the resource file update method embodiment in server provided by the above embodiment and embodiment three belongs to same design,
Its specific implementation process is detailed in embodiment of the method, and which is not described herein again.
In conclusion the embodiment of the present invention four provide server, can compare the mark that mobile terminal is sent with
And corresponding resource file identifies whether identical on server, and then can determine whether the data of resource file in server deposit
It is updating, if there is update, then the latest data of the resource file is being fed back into mobile terminal, so that server
Automatically updating for resource file is realized with mobile terminal interdynamic.
Embodiment five
Fig. 7 is the interaction flow of mobile terminal and server in the resource file renewal process of the offer of the embodiment of the present invention five
Figure, wherein mobile terminal can be 101 in Fig. 1, and server can be 102 in Fig. 1, resource file in the interaction flow
Only schematically using the MD5 of resource file as representative, interaction flow includes: mark
Step 701, start application program for mobile terminal.
Step 702, resource file data and the parsing of mobile terminal local are read.
Read mobile terminal local resource file data and parsing, can know application program launching needs in local
Already existing resource file.
Step 703, judge whether required resource file has existed.
When application program launching, some resource files may not yet be stored in local, just need to judge application program at this time
Whether resource file needed for starting has existed.
Step 704, if required resource file is not present, the MD5 of the resource file is set to sky.
Step 705, if required resource file has existed, the MD5 of already present resource file is calculated.
Step 706, solicited message is sent to server, wherein includes the name of resource file needed for local in solicited message
Title and MD5.
Corresponding, server, can be by the MD5 and server of the resource file in solicited message after receiving the solicited message
The MD5 of middle corresponding resource file is compared.If corresponding resource text in the MD5 and server of the resource file in solicited message
The MD5 of part is identical, then shows that the data of the resource file in server do not update, therefore ignore the solicited message;If ask
Ask the MD5 of corresponding resource file in the MD5 and server of the resource file in information not identical, then resource text in prescribed server
The data of part have updated, then need to feed back to the latest data of the mobile terminal resource file, such as can be by literary by resource
The title and latest data of part are assembled, and the data packet after assembling is sent to mobile terminal.
Step 707, the data packet that server is sent back is received, and parses the resource file data in it.
From the foregoing, it will be observed that the data packet that the server is sent back include resource file title and the resource file update after
Latest data.
Step 708, the available data of the resource file locally saved using the data replacement of the resource file after parsing.
The legacy data of resource file is replaced, to ensure application program, in application, that this can be used is newest
Data.
In conclusion the embodiment of the present invention five provide resource file renewal process in mobile terminal and server interaction
Process, can compare corresponding resource file in the mark and server that mobile terminal is sent identify whether it is identical, into
And can determine that the data of resource file in server whether there is and update, if there is update, then most by the resource file
New data feeds back to mobile terminal, so that server realizes automatically updating for resource file with mobile terminal interdynamic.
Embodiment six
Referring to Fig. 8, the embodiment of the invention provides a kind of resource file more new system, resource file update includes: money
Source file updating device 801 and server 802.
Wherein resource file updating device may refer to the description in Fig. 4, and server may refer to retouching in Fig. 6
It states, just repeats no more here.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware
It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and
Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.
Claims (11)
1. a kind of resource file update method, which is characterized in that the described method includes:
Server is transmitted request information to, wherein includes the title and mark of resource file in solicited message, and the request is believed
The title and mark of resource file are one-to-one in breath, in the solicited message title of resource file and corresponding mark with
The form bound in pairs is sent, and the mark is obtained according to the title of the resource file and the available data of the resource file
, the resource file is the inessential file of application program operation;
It is corresponding to receive the resource file title that the server is returned according to the title and identification feedback of the resource file
Latest data, the latest data are that the server determines the mark of resource file and stored tool in the solicited message
There is the not identical rear acquisition of mark corresponding to the resource file of the identical resource file title;
The latest data of the resource file is stored in the data file with serialization format, the serialization format is by resource
File number and storage unit composition, the storage unit and the resource file correspond;
With the serialization format, data file described in unserializing obtains the latest data of the resource file, and utilizes institute
The latest data for stating resource file replaces the available data of the resource file.
2. the method according to claim 1, wherein it is described transmit request information to server before, further includes:
Obtain title, the available data of the resource file of resource file;
It is calculated according to available data of the Message Digest 5 to the resource file to obtain the mark of the resource file.
3. method according to claim 1 or 2, which is characterized in that the resource file be picture file, language file,
Icon file or configuration file.
4. a kind of resource file updating device, which is characterized in that described device includes:
Sending module, for transmitting request information to server, wherein in solicited message comprising the resource file title and
Mark, and the title and mark of resource file are one-to-one, resource files in the solicited message in the solicited message
Title and corresponding mark sent in the form bound in pairs, the mark is according to the title and the resource of the resource file
The available data of file obtains, and the resource file is the inessential file of application program operation;
First receiving module, the money returned for receiving the server according to the title and identification feedback of the resource file
The corresponding latest data of source file title, the latest data are that the server determines resource file in the solicited message
Identify rear acquisition not identical as mark corresponding to the stored resource file with the identical resource file title;
For the latest data of the resource file to be stored module in the data file, the serializing with serialization format
Format is made of resource file number and storage unit, and the storage unit and the resource file correspond;
For with the serialization format, data file described in unserializing to obtain the mould of the latest data of the resource file
Block;
Replacement module, for replacing the available data of the resource file using the latest data of the resource file.
5. device according to claim 4, which is characterized in that described device further include:
Module is obtained, for obtaining the title of resource file, the available data of the resource file;
Computing module, for being calculated according to available data of the Message Digest 5 to the resource file to obtain the money
The mark of source file.
6. device according to claim 4 or 5, which is characterized in that the resource file be picture file, language file,
Icon file or configuration file.
7. a kind of resource file update method, which is characterized in that the described method includes:
Solicited message is received, the solicited message includes the title and mark of resource file, and resource text in the solicited message
The title and mark of part are that correspondingly, the title of resource file is bound in pairs with corresponding mark in the solicited message
Form is sent to server by mobile terminal, and the resource file is the inessential file of application program operation;
Compare the mark with the stored resource with the identical resource file title of resource file in the solicited message
It is identified whether corresponding to file identical;
If identical, terminate;
If it is not the same, then obtain the corresponding latest data of the resource file title, and to the transmitting terminal of the solicited message
Send the latest data;
Wherein, the latest data of the resource file is stored in the data file of the transmitting terminal with serialization format, described
Serialization format is made of resource file number and storage unit, and the storage unit and the resource file correspond.
8. the method according to the description of claim 7 is characterized in that in the solicited message resource file mark
With it is stored have same asset file name it is corresponding identify whether it is identical, comprising:
Obtain the title of resource file identical with resource file title in the solicited message;
Corresponding mark is searched according to the resource file title;
Compare resource file title in the solicited message it is corresponding mark and it is described find identify whether it is identical.
9. a kind of server, which is characterized in that the server includes:
Second receiving module, for receiving solicited message, the solicited message includes the title and mark of resource file, and described
The title and mark of resource file are one-to-one, the titles and correspondence of resource file in the solicited message in solicited message
Mark is sent to the server by mobile terminal in the form bound in pairs, and the resource file is the non-of application program operation
Necessary file;
Comparison module, the mark for resource file in the solicited message have the identical resource text with stored
It is identified whether corresponding to the resource file of part title identical;
First judgment module then terminates when identical for the judging result in the comparison module;
Second judgment module when not identical for the judging result in the comparison module, then obtains the resource file title
Corresponding latest data, and the latest data is sent to the transmitting terminal of the solicited message;
Wherein, the latest data of the resource file is stored in the data file of the transmitting terminal with serialization format, described
Serialization format is made of resource file number and storage unit, and the storage unit and the resource file correspond.
10. server according to claim 9, which is characterized in that the comparison module specifically includes:
Acquiring unit, for obtaining the title of resource file identical with resource file title in the solicited message;
Searching unit, for searching corresponding mark according to the resource file title;
Comparing unit, for the corresponding mark of resource file title in the solicited message and the mark found
It is whether identical.
11. a kind of resource file more new system, which is characterized in that the system comprises: any money in claim 4-6
Any server in source file updating device and claim 9-10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210321660.0A CN103678319B (en) | 2012-09-03 | 2012-09-03 | Resource file update method, device and system and server |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210321660.0A CN103678319B (en) | 2012-09-03 | 2012-09-03 | Resource file update method, device and system and server |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103678319A CN103678319A (en) | 2014-03-26 |
CN103678319B true CN103678319B (en) | 2019-03-26 |
Family
ID=50315922
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210321660.0A Active CN103678319B (en) | 2012-09-03 | 2012-09-03 | Resource file update method, device and system and server |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103678319B (en) |
Families Citing this family (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104020991B (en) * | 2014-05-16 | 2017-11-07 | 可牛网络技术(北京)有限公司 | The multi-language switching method and device of application program |
CN106209931A (en) * | 2015-04-30 | 2016-12-07 | 中兴通讯股份有限公司 | The update method of the information of a kind of resource, device and system |
CN106020916A (en) * | 2016-07-04 | 2016-10-12 | 乐视控股(北京)有限公司 | Method for updating application, terminal equipment and server |
CN106227541A (en) * | 2016-07-27 | 2016-12-14 | 乐视控股(北京)有限公司 | A kind of program updates download process method and mobile terminal |
CN106375455B (en) * | 2016-09-06 | 2019-11-15 | 金蝶软件(中国)有限公司 | A kind of data transmission method and device |
CN106815370B (en) * | 2017-01-24 | 2020-05-05 | 腾讯科技(深圳)有限公司 | Method, device and system for updating resource file |
CN108182092A (en) * | 2017-12-13 | 2018-06-19 | 广州视源电子科技股份有限公司 | Method and device for updating application program resource display |
CN108804175A (en) * | 2018-05-21 | 2018-11-13 | Oppo(重庆)智能科技有限公司 | Multilingual adaptation method, mobile terminal and computer readable storage medium |
CN108829433A (en) * | 2018-05-24 | 2018-11-16 | 努比亚技术有限公司 | A kind of web system version dispositions method, equipment and storage medium |
CN109729138A (en) * | 2018-06-01 | 2019-05-07 | 平安普惠企业管理有限公司 | Client resource update method, equipment, client and storage medium |
CN110737447B (en) * | 2018-07-18 | 2023-11-14 | 阿里巴巴集团控股有限公司 | Application updating method and device |
CN109408522A (en) * | 2018-09-28 | 2019-03-01 | 阿里巴巴集团控股有限公司 | A kind of update method and device of user characteristic data |
CN109766084B (en) * | 2018-12-28 | 2021-04-23 | 百富计算机技术(深圳)有限公司 | Customized development method and device for payment application, computer equipment and storage medium |
CN109999489A (en) * | 2019-03-29 | 2019-07-12 | 北京金山安全软件有限公司 | Resource updating method and device and electronic equipment |
CN111190630B (en) * | 2020-01-02 | 2023-06-16 | 竞技世界(北京)网络技术有限公司 | Updating method of terminal application and server |
CN113590237A (en) * | 2020-04-30 | 2021-11-02 | 安徽华米信息科技有限公司 | Resource updating method, device and equipment |
CN111722865A (en) * | 2020-06-18 | 2020-09-29 | 广州小鹏车联网科技有限公司 | Resource data processing method and device for application program |
CN112328277B (en) * | 2020-10-19 | 2023-04-07 | 武汉木仓科技股份有限公司 | Resource updating method and device of application and server |
CN113190254A (en) * | 2021-05-21 | 2021-07-30 | 珠海金山网络游戏科技有限公司 | Updating method and device |
CN114879993A (en) * | 2022-05-12 | 2022-08-09 | 京东方数字科技有限公司 | Upgrading processing method of software installation package, server and client |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7490300B2 (en) * | 2005-08-12 | 2009-02-10 | Microsoft Corporation | Copying and updating files |
CN101051307A (en) * | 2006-04-07 | 2007-10-10 | 鸿富锦精密工业(深圳)有限公司 | Applied file renewing system and method |
JP4946592B2 (en) * | 2007-04-20 | 2012-06-06 | 株式会社日立製作所 | Download apparatus and method, content transmission / reception system and method |
CN101770515B (en) * | 2010-01-18 | 2012-01-11 | 杭州顺网科技股份有限公司 | Data block comparison based data updating method |
CN102054045B (en) * | 2010-12-31 | 2013-09-11 | 福建星网视易信息系统有限公司 | System and method for updating resources of electronic device |
-
2012
- 2012-09-03 CN CN201210321660.0A patent/CN103678319B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN103678319A (en) | 2014-03-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103678319B (en) | Resource file update method, device and system and server | |
US11991249B2 (en) | Method, user equipment, server, and apparatus for implementing information sharing | |
KR101238511B1 (en) | Publishing the status of and updating firmware components | |
KR100680296B1 (en) | Method for providing continuous downloading service of large size contents through wireless network and record media recored program for realizing the same | |
US8050663B2 (en) | System and method of providing contents for mobile communication terminal | |
CN106021023B (en) | Application program recovery method and device and terminal | |
CN103442026B (en) | A kind of applied program processing method, device and system | |
CN102855152B (en) | The method and system of resource file in upgrade applications | |
CN102355500B (en) | Service push method and device | |
CN102262544A (en) | Method and device for upgrading software | |
EP1964362A2 (en) | System and method for data communication between devices | |
CN103297459A (en) | Synchronizing system of application configuration information, access server, clients and synchronizing method of application configuration information | |
CN105550252A (en) | File positioning method and device and electronic equipment | |
CN104954394A (en) | Software differential packet production and update method, server, terminal and update system | |
CN109391673A (en) | A kind of method, system and the terminal device of management update file | |
CN101656739B (en) | Method, system and equipment for updating assembly | |
CN101360127A (en) | File updating method and transmission system | |
CN110286922A (en) | Using downloading updating method, device, computer equipment and storage medium | |
CN105912419A (en) | Backup method and device for application programs | |
CN102306165A (en) | Ship electronic chart data multi-platform shared service device and construction method thereof | |
CN103312489A (en) | Method and device for synchronizing terminal and server | |
CN103916846A (en) | Terminal application updating method, system and device | |
CN102325367B (en) | Data packet synchronizing device and method for client application | |
CN106990988A (en) | The method and device that a kind of program updates | |
CN106951296A (en) | A kind of Oftware updating method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |