CN103678319A - Resource file updating method, device and system and server - Google Patents

Resource file updating method, device and system and server Download PDF

Info

Publication number
CN103678319A
CN103678319A CN201210321660.0A CN201210321660A CN103678319A CN 103678319 A CN103678319 A CN 103678319A CN 201210321660 A CN201210321660 A CN 201210321660A CN 103678319 A CN103678319 A CN 103678319A
Authority
CN
China
Prior art keywords
resource file
title
sign
file
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201210321660.0A
Other languages
Chinese (zh)
Other versions
CN103678319B (en
Inventor
刘学彬
张杰军
张开翔
王立强
陈粤
黄奔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201210321660.0A priority Critical patent/CN103678319B/en
Publication of CN103678319A publication Critical patent/CN103678319A/en
Application granted granted Critical
Publication of CN103678319B publication Critical patent/CN103678319B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/18Processing of user or subscriber data, e.g. subscribed services, user preferences or user profiles; Transfer of user or subscriber data
    • H04W8/20Transfer of user or subscriber data
    • H04W8/205Transfer to or from user equipment or user record carrier
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Abstract

The invention discloses a resource file updating method, device and system and a server, and belongs to the technical field of computers. The method comprises the steps of sending a request message to the server, wherein the request message comprises the name and the identification of a resource file, and the identification is acquired according to the name of the resource file and available data of the resource file; receiving latest data which correspond to the name of the resource file and are fed back according to the name and the identification of the resource file by the server, and replacing the available data of the resource file through the latest data of the resource file. According to the resource file updating method, device and system and the server, whether the resource file is updated or not is judged by comparing data corresponding to the resource file on a mobile terminal and the server, if updating exists, the latest data of the resource file are acquired, so that automatic updating of the resource file is achieved, the fact that an entire installing package is downloaded again under the condition that certain resource files are updated is avoided, and the downloading burden of the mobile terminal is lowered.

Description

Resource file update method, device and system and server
Technical field
The present invention relates to field of computer technology, particularly a kind of resource file update method, device and system and server.
Background technology
In recent years, mobile communication technology fast development, the mobile terminal devices such as mobile phone are universal gradually, however mobile communication speed is not high.With GPRS(General Packet Radio Service, general packet radio service technology) communication is example, its speed of download theoretical value is 171.2Kbps, but in reality operation, the indexs such as its network stabilization, the bit error rate and actual performance (speed and capacity) 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 not enough 100Kbps of actual average speed of download of some regional GPRS.Therefore,, in the situation that network speed limits to, for a application program for mobile terminal, the size of its installation kit affects user's downloading experience largely.
In prior art, there is a kind of method that downloads and installs bag: before user be about to use still uninstalled a certain application program, whole installation kit corresponding to this application program need to be downloaded from server, wherein installation kit comprises the basic resources file of needs when application program is installed and additional resource file.
In realizing process of the present invention, inventor finds that prior art at least exists following problem: after in server, some additional resource file of installation kit upgrades, if mobile terminal need to upgrade for this up-to-date installation kit, need again from server, to obtain the installation kit that includes up-to-date additional resource file and original basic resources file, thereby bring very large download burden to mobile terminal.
Summary of the invention
In order to solve the problem of prior art, the embodiment of the present invention provides a kind of resource file update method, device and system and server.Described technical scheme is as follows:
On the one hand, provide a kind of resource file update method, described method comprises:
The information that sends request, to server, wherein comprises title and the sign of described resource file in solicited message, described sign obtains according to the available data of the title of described resource file and described resource;
Receive latest data corresponding to described resource file title that described server returns according to the title of described resource file and identification feedback;
The available data of utilizing the latest data of described resource file to replace described resource file.
Further, described in send request information to before server, also comprise:
The title of Gains resources file, the available data of described resource file;
According to Message Digest 5, the available data of described resource file is calculated to obtain the sign of described resource file.
Further, in described request information, the title of resource file and sign are one to one, described in send request information to server, comprising:
The title of resource file in solicited message and corresponding sign are sent to server with the form of binding in pairs.
Further, described resource file is picture file, language file, icon file or configuration file.
On the other hand, provide a kind of resource file updating device, described device comprises:
Sending module, for sending request information to server, wherein comprises title and the sign of described resource file in solicited message, described sign obtains according to the available data of the title of described resource file and described resource;
The first receiver module, latest data corresponding to described resource file title returning according to the title of described resource file and identification feedback for receiving described server;
Replacement module, for utilizing the latest data of described resource file to replace the available data of described resource file.
Further, described device also comprises:
Acquisition module, for the title of Gains resources file, the available data of described resource file;
Computing module, for calculating to obtain the sign of described resource file to the available data of described resource file according to Message Digest 5.
Further, in described request information, the title of resource file and sign are one to one, described sending module, specifically for:
The title of resource file in solicited message and corresponding sign are sent to server with the form of binding in pairs.
Further, described resource file is picture file, language file, icon file or configuration file.
On the one hand, provide a kind of resource file update method again, described method comprises:
Receive solicited message, described request information comprises title and the sign of resource file;
Relatively in described request information the sign of resource file with stored whether have sign corresponding to identical described resource file title identical;
If identical, finish;
If not identical, obtain latest data corresponding to described resource file title, and send described latest data to the transmitting terminal of described request information.
Further, in described relatively described request information the sign of resource file with stored whether have sign corresponding to same asset file name identical, comprising:
Obtain the title of the resource file identical with resource file title in described request information;
According to sign corresponding to described resource file name lookup;
Relatively in described request information sign corresponding to resource file title and described in the sign that finds whether identical.
On the one hand, provide a kind of server again, described server comprises:
The second receiver module, for receiving solicited message, described request information comprises title and the sign of resource file;
Comparison module, for the sign of described request information resource file relatively with stored whether have sign corresponding to identical described resource file title identical;
The first judge module, when identical for the judged result at described comparison module, finishes;
The second judge module, when not identical for the judged result at described comparison module, obtains latest data corresponding to described resource file title, and sends described latest data to the transmitting terminal of described request information.
Further, described comparison module, specifically comprises:
Acquiring unit, for obtaining the title of the resource file identical with described request information resource file title;
Search unit, for according to sign corresponding to described resource file name lookup;
Comparing unit, for sign corresponding to described request information resource file title relatively and described in the sign that finds whether identical.
Again on the one hand, provide a kind of resource file to upgrade system, described system comprises: above-mentioned resource file updating device and server.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
By the resource file of some renewals in installation kit corresponding to down load application program only, avoided more under news, again downloading whole installation kit at some resource file, thereby shortened download time, reduced the download burden of mobile terminal; And when user uses application program, can contrast to obtain the resource file of renewal by the resource file automatically and in server, thereby guarantee that the resource file that user uses is up-to-date, improve user's experience.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing of required use during embodiment is described is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the implementation environment schematic diagram of the resource file update method that provides of the embodiment of the present invention;
Fig. 2 is the resource file update method process flow diagram 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 the resource file updating device structural representation that the embodiment of the present invention two provides;
Fig. 5 is the resource file update method process flow diagram that the embodiment of the present invention three provides;
Fig. 6 is the structural representation of the server that provides of the embodiment of the present invention four;
Fig. 7 is the interaction diagrams of mobile terminal and server in the resource file renewal process that provides of the embodiment of the present invention five;
Fig. 8 is that the resource file that the embodiment of the present invention six provides upgrades system architecture schematic diagram.
Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Resource file described in the invention can be the resources such as the language pack in application program for mobile terminal installation kit, picture, icon, configuration file, and these resource files can be application program non-essential resource file in use conventionally.
Please refer to Fig. 1, it shows the implementation environment schematic diagram of the resource file update method that the embodiment of the present invention provides, and this implementation environment can comprise: mobile terminal 101 and server 102.
Mobile terminal 101 can be mobile phone, computer, digital camera etc.The inside of mobile terminal 101 can be provided with multiple application program, and each application program all can be installed by corresponding installation kit.Mobile terminal 101 can obtain by wireless or cable network the installation kit of application program in it.
In server 102, include installation kit, and resource file corresponding to installation kit, installation kit or resource file can upgrade at any time, and server 102 can carry out communication by wired or wireless mode and terminal.
Embodiment mono-
The embodiment of the present invention provides a kind of resource file update method, and referring to Fig. 2, it can be applied in the mobile terminal 101 in Fig. 1, and method flow comprises:
Step 201, the title of Gains resources file, the available data of resource file.
Resource file is generally the file in application program installation kit, such as resource file can be picture file, language file, icon file or configuration file.General, here the resource file said can installed and used the non-essential file of process for application program, such as application program is in the process of installing and using, if lacked some above-mentioned resource files, this application program still can be moved, and this resource file just lacking need to show or move with acquiescence form.For instance, for a chat tool, if lacked icon file when this chat tool is used in the installation kit of this chat tool, now when user installs after this chat tool, display icon not, but initialized form by other acquiescences replaces this icon.
In actual applications, in order to guarantee user's normal use, in the situation that user installation lacks some or some resource file or the older installation kit of resource file, first mobile terminal 101 need to know the resource file that corresponding application program lacks or not yet upgrade, and then in server, obtains corresponding up-to-date resource file.Therefore, first mobile terminal 101 needs to know the information of resource file.
Conventionally, the information of mobile terminal 101 local a certain resource files can comprise the title of resource file, the data of resource file.
The available data of resource file refers to the data of the resource file that has preserved mobile terminal 101 this locality.
Step 202, calculates to obtain the sign of resource file to the available data of resource file according to Message Digest 5.
Here the sign of resource file is the unique identification of difference resource file, and resource file is different, and the sign of its correspondence also can be different, conventionally can use Message Digest 5 the data of resource file to be calculated to obtain the sign of resource file.General, can use MD5(Message Digest Algorithm 5, Message Digest 5) algorithm comes the data of computational resource file to obtain the MD5 of resource file, and the MD5 of the resource file wherein calculating can be used as the sign of resource file.Obviously, when the data of resource file change, the MD5 of this resource file calculating also can be different from MD5 corresponding before it.Special, when mobile terminal 101 this locality do not exist a certain required resource file, its corresponding MD5 can be set to sky.
In actual applications, after the application program launching of mobile terminal 101, first read the information of local resource file, comprise title and the data of resource file.In order to judge the resource file that whether has renewal in server, also need to calculate the sign of this resource file.
It should be noted that after the application program launching of mobile terminal 101, the resource file reading can have one or more.Such as, the resource file reading is picture file P1, P2, language file L1, configuration file C1 etc.Corresponding, for these resource files, need to calculate the sign that each resource file is corresponding.Certainly, if a certain resource file reading does not exist in this locality, the sign of this resource file can be set to sky.
Step 203, the information that sends request, to server, wherein comprises title and the sign of resource file in solicited message.
Due to communication two party need the title of resource file and the sign of resource file corresponding one by one, therefore when the solicited message of each resource file of transmission, the title of resource file and corresponding sign are bindings in pairs, can be with the filename of < resource file, the transmission of the form of the sign > of resource file.That is to say, when transmission solicited message, the title of resource file and sign can be bound to transmission.
Certainly, when specific implementation, can carry out above-mentioned binding to each resource file, in each solicited message, bind the title of a resource file and the sign of its correspondence.Certainly, can also be as the case may be, such as a plurality of resource files for some not too normal changes, can also by the title of each resource file with and corresponding sign in pairs after binding, the information after paired binding corresponding to each resource file is merged in same solicited message.For the plurality of resource file, mobile terminal 101 only needs to send a solicited message to server 102 like this.
By way of example, resource file P1 corresponding to application program may often be updated, therefore, can the information of this resource file P1 (being about to the information after the title of this resource file P1 and the sign of its correspondence are bound in pairs) be sent to server by a solicited message.Again by way of example, resource file P2, the L1 that application program is corresponding and L2 all seldom upgrade, therefore, in order to reduce request number of times, the information of these resource files can be bundled in same solicited message and send to server, now, first need the sign of the title of resource file P2 and its correspondence to bind in pairs, the sign of resource file L1 and its correspondence is bound in pairs, the sign of resource file L2 and its correspondence is bound in pairs, and then the information after above-mentioned binding is placed in same solicited message and sends to server.
Step 204, latest data corresponding to resource file title that reception server returns according to the title of described resource file and identification feedback.
When the resource file data in server 102 has renewal, server 102 can issue to mobile terminal 101 latest data of this resource file.The latest data of the resource file that wherein server 102 issues is to obtain according to the title of this resource file and sign.
Corresponding, 101 of mobile terminals can receive this latest data corresponding to resource file title that server 102 feeds back to.
In actual applications, when server 102 feeds back to mobile terminal 101 latest data, conventionally the title of resource file and latest data corresponding to resource file are bound, the title and the latest data that are about to resource file are assembled into packet, then this packet can be handed down to mobile terminal 101.Corresponding, after mobile terminal 101 receives the packet that server 102 issues, it is resolved to obtain the latest data of resource file wherein.
Step 205, utilizes the available data of the latest data replacement resource file of resource file.
The latest data of resource file is being downloaded to behind this locality, can latest data deposited in to database or will after latest data serializing, deposit in data file according to the location mode of available data.
Such as, can adopt the mode of serializing that the latest data of resource file is stored in data file, serializing form can be shown in Figure 3.This serializing form is comprised of two parts, and the one, resource file number, the 2nd, storage unit.A cell stores resource file, it has comprised the storage opening flag of a resource, the end mark of the length of filename, filename, data length, data and a resource.Storage unit can have a plurality of, respectively corresponding different resource file.Realize thus the serializing storage of resource file.Corresponding, the form unserializing data file with serializing in the time of resolution data can obtain the data of each resource file.
Certainly, in actual applications, serializing storage format can also be set to other form, obtains correct resource file data as long as can be when carrying out unserializing unique.
In sum, the resource file update method that the embodiment of the present invention one provides is by calculating the unique identification of resource file, and send to server to verify this sign, when upgrading, server authentication resource file issues latest data to mobile terminal, mobile terminal can get this latest data, and utilize this latest data to replace the legacy data of corresponding resource file, thereby realize the automatic renewal of resource file.Hence one can see that, in actual applications, mobile terminal only needs the latest data of the resource file after down loading updating, and do not need to download and install the resource file that in bag, other do not upgrade, thereby can avoid again downloading whole installation kit when one or more resource files upgrade, greatly reduce the download burden of mobile terminal; And when mobile terminal starts application program at every turn, can go automatically to obtain up-to-date resource file to replace local original resource file data on server, thereby realize the automatic renewal of resource file, strengthen user's experience.
Embodiment bis-
Referring to Fig. 4, the embodiment of the present invention provides a kind of resource file updating device, it can be applied in the mobile terminal 101 in Fig. 1, this resource file updating device comprises: sending module 410, the first receiver module 420 and replacement module 430, in addition, resource file updating device can also comprise acquisition module 440 and computing module 450.
Acquisition module 440 can be for the title of Gains resources file, the available data of resource file.
Computing module 450 can be for calculating to obtain the sign of resource file to the available data of resource file according to Message Digest 5.
Sending module 410 can, for sending request information to server 102, wherein comprise title and the sign of resource file in solicited message.
Latest data corresponding to resource file title that the first receiver module 420 can return according to the title of described resource file and identification feedback for reception server 102.
Replacement module 430 can be for utilizing the available data of the latest data replacement resource file of resource file.
It should be noted that: the resource file updating device that above-described embodiment provides is when upgrading resource file, only the division with above-mentioned each functional module is illustrated, in practical application, can above-mentioned functions be distributed and by different functional modules, completed as required, the inner structure that is about to device is divided into different functional modules, to complete all or part of function described above.In addition, the resource file updating device that above-described embodiment provides and resource file update method embodiment belong to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
In sum, the resource file updating device that the embodiment of the present invention two provides is by calculating the unique identification of resource file, and send to server to verify this sign, when upgrading, server authentication resource file issues latest data to mobile terminal, mobile terminal gets this latest data, and utilize this latest data to replace the legacy data of corresponding resource file, thereby realize the automatic renewal of resource file.Hence one can see that, in actual applications, mobile terminal only needs the latest data of the resource file after down loading updating, and do not need to download and install the resource file that in bag, other do not upgrade, thereby can avoid again downloading whole installation kit when one or more resource files upgrade, greatly reduce the download burden of mobile terminal; And when mobile terminal starts application program at every turn, can go automatically to obtain up-to-date resource file to replace local original resource file data on server, thereby realize the automatic renewal of resource file, strengthen user's experience.
Embodiment tri-
The embodiment of the present invention provides a kind of resource file update method, and referring to Fig. 5, it can be applied in the server 102 in Fig. 1, conventionally, and the title that comprises resource file in server 102 now, the data of resource file and the sign of resource file.Method flow comprises:
Step 501, receives solicited message, and solicited message comprises title and the sign of resource file.
The solicited message here is generally sent by mobile terminal 101.The title of resource file and sign are normally bundled in solicited message, and such as can be with < title, the form of sign > is bundled in solicited message to be transmitted.
Step 502, in comparison of request information the sign of resource file with stored whether have sign corresponding to same asset file name identical.
When specific implementation, this step can comprise:
S1, obtains the title with the resource file that in solicited message, resource file title is identical.
Conventionally, when the data of resource file change, the sign of its correspondence also can change, but its title can not change, that is to say, after resource file title in server 102 is defined, corresponding, the title in the information of the resource file downloading in mobile terminal also should be identical with title in server 102.Such as the name of a resource file in server 102 is called picture P1, corresponding, the title of this resource file in mobile terminal 101 should be still picture P1.
S2, the sign corresponding according to resource file name lookup.
Conventionally, in server 102, can comprise one for preserving the database of resource file title, sign and corresponding data.In this database, the title of each resource file, sign and data are shone upon one by one.That is to say, the sign of each resource file is that the data of depositing according to current resource file calculate, such as calculate the sign of each resource file according to MD5 algorithm.
Hence one can see that, and for the resource file of same title, if variation has occurred the data of resource file, the sign obtaining thus (such as the MD5 of resource file) also can change.
S3, in comparison of request information, whether sign corresponding to resource file title and the sign that finds be identical.
When from database, find with solicited message in resource file while thering is the resource file of same names, search sign corresponding to this resource file title in database, and the sign in this sign and solicited message compared.
Step 503, if identical, finishes.
If sign corresponding to resource file title and the sign that finds are identical in solicited message, the available data that shows to send the resource file of preserving in the mobile terminal of this solicited message is identical with the latest data of preserving in server, do not need the transmitting terminal (being mobile terminal 101) to solicited message to issue corresponding data, therefore can ignore this solicited message, the transmitting terminal of solicited message is not carried out to any response.
Step 504, if not identical, latest data corresponding to Gains resources file name, and send latest data to the transmitting terminal of solicited message.
If sign corresponding to resource file title and the sign that finds are not identical in solicited message, the available data that shows to send the resource file of preserving in the mobile terminal of this solicited message is not identical with the latest data of preserving in server, therefore can further obtain latest data corresponding to this resource file title, finally the latest data of this resource file be sent to the transmitting terminal (being mobile terminal 101) of solicited message.
Certainly, when sending the latest data of resource file to mobile terminal 101, in order to ensure mobile terminal 101, can correctly learn it is the latest data of which resource file, also need to be attached with the title of this resource file simultaneously.Therefore, in specific operation process, can by the title of resource file with and corresponding latest data bind in pairs, can be with < title, the form of latest data > is 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, the content of its transmission is to set according to the content of corresponding solicited message.By way of example, the title and the sign that in the solicited message that mobile terminal 101 sends, only include the resource file of a corresponding binding only need corresponding title and the latest data that sends this resource file after binding in pairs so when sending to mobile terminal 101.Again by way of example, if include title and the sign of the resource file of a plurality of corresponding bindings in the solicited message that mobile terminal 101 sends, when sending to mobile terminal 101, need so corresponding title and the latest data that sends the resource file after a plurality of paired bindings.
In sum, the resource file update method that the embodiment of the present invention three provides, whether its sign that can contrast corresponding resource file on sign that mobile terminal sends and server is identical, and then whether the data that can determine resource file in server there is renewal, if existed, upgrade, the latest data of this resource file is fed back to mobile terminal, thus can be so that server and mobile terminal interdynamic be realized the automatic renewal of resource file.
Embodiment tetra-
Referring to Fig. 6, the embodiment of the present invention provides a kind of server, and this server comprises: the second receiver module 610, comparison module 620, the first judge module 630, the second judge module 640.
The second receiver module 610 can be for receiving solicited message, and solicited message comprises title and the sign of resource file.
Comparison module 620 can for the sign of resource file in comparison of request information with stored whether have sign corresponding to same asset file name identical.
Comparison module 620 can comprise acquiring unit 621, searches unit 622, comparing unit 623.
Acquiring unit 621 can be for obtaining the title with the resource file that in solicited message, resource file title is identical.
Searching unit 622 can be for the sign corresponding according to resource file name lookup.
Whether comparing unit 623 can be identical for sign corresponding to resource file title in comparison of request information and the sign finding.
When the first judge module 630 can be identical for the judged result at comparison module 620, finish.
When the second judge module 640 can be not identical for the judged result at comparison module 620, latest data corresponding to Gains resources file name, and send latest data to the transmitting terminal of solicited message.
It should be noted that: the server that above-described embodiment provides is when upgrading resource file, only the division with above-mentioned each functional module is illustrated, in practical application, can above-mentioned functions be distributed and by different functional modules, completed as required, the inner structure that is about to device is divided into different functional modules, to complete all or part of function described above.In addition, the resource file update method embodiment in the server that above-described embodiment provides and embodiment tri-belongs to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
In sum, the server that the embodiment of the present invention four provides, whether its sign that can contrast corresponding resource file on sign that mobile terminal sends and server is identical, and then whether the data that can determine resource file in server there is renewal, if existed, upgrade, the latest data of this resource file is fed back to mobile terminal, thus can be so that server and mobile terminal interdynamic be realized the automatic renewal of resource file.
Embodiment five
Fig. 7 is the interaction diagrams of mobile terminal and server in the resource file renewal process that provides of the embodiment of the present invention five, wherein mobile terminal can be 101 in Fig. 1, server can be 102 in Fig. 1, in this interaction flow, only schematically to take the MD5 of resource file be representative to the sign of resource file, and interaction flow comprises:
Step 701, starts application program for mobile terminal.
Step 702, reads the resource file data of mobile terminal this locality and resolves.
Read the resource file data of mobile terminal this locality and resolve, can know the resource file having existed in this locality that application program launching needs.
Step 703, judges whether resource requirement file exists.
During application program launching, some resource file may not yet be kept at this locality, now just need to judge whether the required resource file of application program launching exists.
Step 704, if resource requirement file does not exist, is set to sky by the MD5 of this resource file.
Step 705, if resource requirement file exists, calculates the MD5 of already present resource file.
Step 706, sends request information to server, wherein in solicited message, includes title and the MD5 of local resource requirement file.
Corresponding, server, after receiving this solicited message, can compare the MD5 of the resource file in solicited message with the MD5 of corresponding resource file in server.If the MD5 of the resource file in solicited message is identical with the MD5 of corresponding resource file in server, show that in server, the data of this resource file are not upgraded, therefore ignore this solicited message; If the MD5 of the resource file in solicited message is not identical with the MD5 of corresponding resource file in server, in prescribed server, the data of this resource file are upgraded, need to feed back to the latest data of this resource file of mobile terminal, such as can be by the title of resource file and latest data are assembled, and by the Packet Generation after assembling to mobile terminal.
Step 707, the packet that reception server sends it back, and resolve the resource file data in it.
As from the foregoing, the packet that this server sends it back comprises the title of resource file and the latest data after the renewal of this resource file.
Step 708, the available data of local this resource file preserved of data replacement of the resource file after utilization is resolved.
The legacy data that is about to resource file is replaced, to guarantee that application program can use this up-to-date data when applying.
In sum, the interaction flow of mobile terminal and server in the resource file renewal process that the embodiment of the present invention five provides, whether its sign that can contrast corresponding resource file on sign that mobile terminal sends and server is identical, and then whether the data that can determine resource file in server there is renewal, if existed, upgrade, the latest data of this resource file is fed back to mobile terminal, thus can be so that server and mobile terminal interdynamic be realized the automatic renewal of resource file.
Embodiment six
Referring to Fig. 8, the embodiment of the present invention provides a kind of resource file to upgrade system, and this resource file upgrades and comprises: resource file updating device 801 and server 802.
Wherein resource file updating device can be referring to the description in Fig. 4, and server can, referring to the description in Fig. 6, just repeat no more here.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step that realizes above-described embodiment can complete by hardware, also can come the hardware that instruction is relevant to complete by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be ROM (read-only memory), disk or CD etc.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (13)

1. a resource file update method, is characterized in that, described method comprises:
The information that sends request, to server, wherein comprises title and the sign of resource file in solicited message, described sign obtains according to the available data of the title of described resource file and described resource;
Receive latest data corresponding to described resource file title that described server returns according to the title of described resource file and identification feedback;
The available data of utilizing the latest data of described resource file to replace described resource file.
2. method according to claim 1, is characterized in that, described in send request information to before server, also comprise:
The title of Gains resources file, the available data of described resource file;
According to Message Digest 5, the available data of described resource file is calculated to obtain the sign of described resource file.
3. method according to claim 1, is characterized in that, in described request information, the title of resource file and sign are one to one, described in send request information to server, comprising:
The title of resource file in solicited message and corresponding sign are sent to server with the form of binding in pairs.
4. according to arbitrary described method in claim 1-3, it is characterized in that, described resource file is picture file, language file, icon file or configuration file.
5. a resource file updating device, is characterized in that, described device comprises:
Sending module, for sending request information to server, wherein comprises title and the sign of described resource file in solicited message, described sign obtains according to the available data of the title of described resource file and described resource;
The first receiver module, latest data corresponding to described resource file title returning according to the title of described resource file and identification feedback for receiving described server;
Replacement module, for utilizing the latest data of described resource file to replace the available data of described resource file.
6. device according to claim 5, is characterized in that, described device also comprises:
Acquisition module, for the title of Gains resources file, the available data of described resource file;
Computing module, for calculating to obtain the sign of described resource file to the available data of described resource file according to Message Digest 5.
7. device according to claim 5, is characterized in that, in described request information, the title of resource file and sign are one to one, described sending module, specifically for:
The title of resource file in solicited message and corresponding sign are sent to server with the form of binding in pairs.
8. according to arbitrary described device in claim 5-7, it is characterized in that, described resource file is picture file, language file, icon file or configuration file.
9. a resource file update method, is characterized in that, described method comprises:
Receive solicited message, described request information comprises title and the sign of resource file;
Relatively in described request information the sign of resource file with stored whether have sign corresponding to identical described resource file title identical;
If identical, finish;
If not identical, obtain latest data corresponding to described resource file title, and send described latest data to the transmitting terminal of described request information.
10. method according to claim 9, is characterized in that, in described relatively described request information the sign of resource file with stored whether have sign corresponding to same asset file name identical, comprising:
Obtain the title of the resource file identical with resource file title in described request information;
According to sign corresponding to described resource file name lookup;
Relatively in described request information sign corresponding to resource file title and described in the sign that finds whether identical.
11. 1 kinds of servers, is characterized in that, described server comprises:
The second receiver module, for receiving solicited message, described request information comprises title and the sign of resource file;
Comparison module, for the sign of described request information resource file relatively with stored whether have sign corresponding to identical described resource file title identical;
The first judge module, when identical for the judged result at described comparison module, finishes;
The second judge module, when not identical for the judged result at described comparison module, obtains latest data corresponding to described resource file title, and sends described latest data to the transmitting terminal of described request information.
12. servers according to claim 11, is characterized in that, described comparison module, specifically comprises:
Acquiring unit, for obtaining the title of the resource file identical with described request information resource file title;
Search unit, for according to sign corresponding to described resource file name lookup;
Comparing unit, for sign corresponding to described request information resource file title relatively and described in the sign that finds whether identical.
13. 1 kinds of resource files upgrade system, it is characterized in that, described system comprises: arbitrary described resource file updating device in claim 5-8, and arbitrary described server in claim 11-12.
CN201210321660.0A 2012-09-03 2012-09-03 Resource file update method, device and system and server Active CN103678319B (en)

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 true CN103678319A (en) 2014-03-26
CN103678319B 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)

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104020991A (en) * 2014-05-16 2014-09-03 可牛网络技术(北京)有限公司 Method and device for multi-language switching of application program
CN106020916A (en) * 2016-07-04 2016-10-12 乐视控股(北京)有限公司 Method for updating application, terminal equipment and server
WO2016173194A1 (en) * 2015-04-30 2016-11-03 中兴通讯股份有限公司 Updating method, device and system for information about resources
CN106227541A (en) * 2016-07-27 2016-12-14 乐视控股(北京)有限公司 A kind of program updates download process method and mobile terminal
CN106375455A (en) * 2016-09-06 2017-02-01 金蝶软件(中国)有限公司 Data transmission method and apparatus
CN106815370A (en) * 2017-01-24 2017-06-09 腾讯科技(深圳)有限公司 Update the methods, devices and systems of resource file
CN108182092A (en) * 2017-12-13 2018-06-19 广州视源电子科技股份有限公司 The method and device that update application resource is shown
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
CN109408522A (en) * 2018-09-28 2019-03-01 阿里巴巴集团控股有限公司 A kind of update method and device of user characteristic data
CN109729138A (en) * 2018-06-01 2019-05-07 平安普惠企业管理有限公司 Client resource update method, equipment, client and storage medium
CN109766084A (en) * 2018-12-28 2019-05-17 百富计算机技术(深圳)有限公司 Pay customized development method, apparatus, computer equipment and the storage medium of application
CN109999489A (en) * 2019-03-29 2019-07-12 北京金山安全软件有限公司 Resource updating method and device and electronic equipment
CN110737447A (en) * 2018-07-18 2020-01-31 阿里巴巴集团控股有限公司 Application updating method and device
CN111190630A (en) * 2020-01-02 2020-05-22 竞技世界(北京)网络技术有限公司 Terminal application updating method and server
CN111722865A (en) * 2020-06-18 2020-09-29 广州小鹏车联网科技有限公司 Resource data processing method and device for application program
CN112328277A (en) * 2020-10-19 2021-02-05 武汉木仓科技股份有限公司 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

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070038688A1 (en) * 2005-08-12 2007-02-15 Microsoft Corporation Copying and updating files
CN101051307A (en) * 2006-04-07 2007-10-10 鸿富锦精密工业(深圳)有限公司 Applied file renewing system and method
US20100138536A1 (en) * 2007-04-20 2010-06-03 Hiroyuki Koreeda Download control device
CN101770515A (en) * 2010-01-18 2010-07-07 杭州顺网科技股份有限公司 Data block comparison based data updating method
CN102054045A (en) * 2010-12-31 2011-05-11 福建星网视易信息系统有限公司 System and method for updating resources of electronic device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070038688A1 (en) * 2005-08-12 2007-02-15 Microsoft Corporation Copying and updating files
CN101051307A (en) * 2006-04-07 2007-10-10 鸿富锦精密工业(深圳)有限公司 Applied file renewing system and method
US20100138536A1 (en) * 2007-04-20 2010-06-03 Hiroyuki Koreeda Download control device
CN101770515A (en) * 2010-01-18 2010-07-07 杭州顺网科技股份有限公司 Data block comparison based data updating method
CN102054045A (en) * 2010-12-31 2011-05-11 福建星网视易信息系统有限公司 System and method for updating resources of electronic device

Cited By (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104020991A (en) * 2014-05-16 2014-09-03 可牛网络技术(北京)有限公司 Method and device for multi-language switching of application program
CN104020991B (en) * 2014-05-16 2017-11-07 可牛网络技术(北京)有限公司 The multi-language switching method and device of application program
WO2016173194A1 (en) * 2015-04-30 2016-11-03 中兴通讯股份有限公司 Updating method, device and system for information about resources
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
CN106375455A (en) * 2016-09-06 2017-02-01 金蝶软件(中国)有限公司 Data transmission method and apparatus
CN106375455B (en) * 2016-09-06 2019-11-15 金蝶软件(中国)有限公司 A kind of data transmission method and device
CN106815370A (en) * 2017-01-24 2017-06-09 腾讯科技(深圳)有限公司 Update the methods, devices and systems of resource file
CN106815370B (en) * 2017-01-24 2020-05-05 腾讯科技(深圳)有限公司 Method, device and system for updating resource file
CN108182092A (en) * 2017-12-13 2018-06-19 广州视源电子科技股份有限公司 The method and device that update application resource is shown
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
CN110737447A (en) * 2018-07-18 2020-01-31 阿里巴巴集团控股有限公司 Application updating method and device
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
CN109766084A (en) * 2018-12-28 2019-05-17 百富计算机技术(深圳)有限公司 Pay customized development method, apparatus, computer equipment and the storage medium of application
CN109999489A (en) * 2019-03-29 2019-07-12 北京金山安全软件有限公司 Resource updating method and device and electronic equipment
CN111190630A (en) * 2020-01-02 2020-05-22 竞技世界(北京)网络技术有限公司 Terminal application updating method and server
CN111722865A (en) * 2020-06-18 2020-09-29 广州小鹏车联网科技有限公司 Resource data processing method and device for application program
CN112328277A (en) * 2020-10-19 2021-02-05 武汉木仓科技股份有限公司 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

Also Published As

Publication number Publication date
CN103678319B (en) 2019-03-26

Similar Documents

Publication Publication Date Title
CN103678319A (en) Resource file updating method, device and system and server
CN100527080C (en) Method for software program synchronization
CN102855152B (en) The method and system of resource file in upgrade applications
US6226739B1 (en) Method and computer program for distributing software to a personal palm-type device through a global software distribution package transmittable over the world wide web
CN106021023B (en) Application program recovery method and device and terminal
CN105100191A (en) Method, device and system for realizing Java application installation via cloud compilation
CN103995721B (en) A kind of upgrade method of application program, apparatus and system
US20150154224A1 (en) Method, device, processing center and system for desktop synchronization
CN102129378A (en) Software menu updating method and device
CN101216771A (en) Method, system and device for accomplishing mobile phones software upgrading through personal computer
US9258357B2 (en) Method for accessing plural cloud storages, electronic apparatus and non-transitory computer readable medium
WO2006110005A1 (en) Method for providing contents for mobile comunication terminal
CN102118447A (en) Resource management method and mobile terminal
CN104954394A (en) Software differential packet production and update method, server, terminal and update system
CN102833350A (en) Processing method and processing device of WebApp updating
CN101883139A (en) Method for upgrading peripheral equipment software, computer and system
CN102612023A (en) Mobile terminal and application updating method and server thereof
CN101984406A (en) Method and system for upgrading terminal through wireless local area network
CN103259808A (en) Updating service delivery method and device
CN102025708A (en) Upgrade method, device and system
CN112615747B (en) Method and device for automatically deploying and configuring network equipment
CN101472050A (en) Method and system for updating software, digital television receive terminal and server
CN105912419A (en) Backup method and device for application programs
CN103164247A (en) Method and device for automatically repairing system application
KR20150005164A (en) FOTA system and the method

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