CN106648787A - Resource updating method and terminal - Google Patents

Resource updating method and terminal Download PDF

Info

Publication number
CN106648787A
CN106648787A CN201611236537.3A CN201611236537A CN106648787A CN 106648787 A CN106648787 A CN 106648787A CN 201611236537 A CN201611236537 A CN 201611236537A CN 106648787 A CN106648787 A CN 106648787A
Authority
CN
China
Prior art keywords
resource
application
default
terminal
signature file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201611236537.3A
Other languages
Chinese (zh)
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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201611236537.3A priority Critical patent/CN106648787A/en
Priority to PCT/CN2017/076521 priority patent/WO2018120429A1/en
Publication of CN106648787A publication Critical patent/CN106648787A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Abstract

The embodiment of the invention discloses a resource updating method and terminal. The method comprises steps of determining whether an application requires to update resources when detecting that the application in the terminal is started, acquiring updating information relative to the application from a server if the application needs to update resource, acquiring local parameters corresponding to preset updating parameters according to the preset updating parameters, determining whether the local parameters are within a range of the updating parameters, downloading a corresponding resource updating package according to a resource downloading address if the local parameters are within a range of the updating parameters, and updating resources in the application according to the downloaded resource updating package and a preset updating type. The updating information comprises preset updating parameters and a resource downloading address. The embodiment of the invention further discloses a terminal. Manual operation can be reduced; and resources can be automatically updated before perception of users, so user experience can be improved.

Description

A kind of method and terminal of resource updates
Technical field
The present invention relates to communication technical field, more particularly to a kind of resource regeneration method and terminal.
Background technology
With the development of Internet technology and intelligent terminal, the APP run on intelligent terminal can be loaded in The type of (Application, application) is also increasingly enriched, mixed type APP that such as the html5 pages mix with native (hybrid APP) is due to cost is few, advantage the is increasingly becoming APP exploitations such as exploitation is fast trend.In order to meet making for setting With function, in APP development processes, software developer would generally be incorporated into some resources such as file, picture in APP, And for the Bug repaired in APP in resource or realize that the performance of APP optimizes, software developer would generally issue new resources, User can be by the way that the resource updates in APP to be improved the performance and stability of APP for new resources.But, at present in APP Resource updates mode is usually and manually carries out edition upgrading to APP to obtain new resources, and the mode of this resource updates is present Need the artificial effect for participating in, expending time length and impact Consumer's Experience.
The content of the invention
The embodiment of the present invention provides a kind of resource regeneration method and terminal, and it can be realized in the case of user's unaware Resource is automatically updated, improves Consumer's Experience.
In a first aspect, embodiments providing a kind of resource regeneration method, the method includes:If in detecting terminal Application be activated, judge that whether the application needs more new resources;If the application needs more new resources, from the server Middle acquisition applies related fresh information, the fresh information to include default undated parameter and resource downloading address to described;Root The local parameter corresponding with the default undated parameter is obtained according to the default undated parameter;Whether judge the local parameter Within the scope of the default undated parameter;If so, corresponding resource updates bag is downloaded according to the resource downloading address;Root The resource in the application is updated with the updating type of setting according to the resource updates bag downloaded.
On the other hand, a kind of terminal is embodiments provided, the terminal includes the first judging unit, if for detection Application in terminal is activated, and judges whether the application needs more new resources;First acquisition unit, if for the application More new resources are needed, is obtained from the server and is applied related fresh information, the fresh information to include default to described Undated parameter and resource downloading address;Second acquisition unit, presets more for being obtained according to the default undated parameter with described The corresponding local parameter of new parameter;Second judging unit, for judging whether the local parameter joins in default the renewal Within the scope of number;Download unit, for if so, according to the corresponding resource updates bag of resource downloading address download;Update Unit, for updating the resource in the application with the updating type of setting according to the resource updates bag downloaded.
The embodiment of the present invention judges to apply whether need more new resources after the application for detecting terminal is activated, if More new resources are needed, then fresh information is obtained from server, the fresh information includes default undated parameter and resource downloading ground Location, then obtains the local parameter corresponding with the default undated parameter according to default undated parameter, and judges that local parameter is It is no if so, corresponding resource updates bag to be downloaded according to resource downloading address within the scope of default undated parameter, and according under The resource updates bag of load updates the resource of the application with the updating type of setting.The embodiment of the present invention can reduce artificial operation, And automatically updating for resource is realized in the case of user's unaware, improve Consumer's Experience.
Description of the drawings
In order to be illustrated more clearly that embodiment of the present invention technical scheme, below embodiment will be described needed for be used Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the present invention, general for this area For logical technical staff, on the premise of not paying creative work, can be with according to these other accompanying drawings of accompanying drawings acquisition.
Fig. 1 is a kind of schematic flow diagram of the method for resource updates provided in an embodiment of the present invention;
Fig. 2 is the sub-process schematic diagram of step S101 in Fig. 1;
Fig. 3 is the schematic flow diagram of the method for another kind of resource updates provided in an embodiment of the present invention;
Fig. 4 is the schematic flow diagram of the method for another kind of resource updates provided in an embodiment of the present invention;
Fig. 5 is a kind of schematic block diagram of terminal provided in an embodiment of the present invention;
Fig. 6 is the schematic block diagram of the first judging unit in Fig. 5;
Fig. 7 is the schematic block diagram of another kind of terminal provided in an embodiment of the present invention;
Fig. 8 is the schematic block diagram of another kind of terminal provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is a part of embodiment of the invention, rather than the embodiment of whole.Based on this Embodiment in bright, the every other enforcement that those of ordinary skill in the art are obtained under the premise of creative work is not made Example, belongs to the scope of protection of the invention.
It should be appreciated that when using in this specification and in the appended claims, term " including " and "comprising" are indicated The presence of described feature, entirety, step, operation, element and/or component, but be not precluded from one or several further features, The presence or addition of entirety, step, operation, element, component and/or its set.It is also understood that in this description of the invention The term for being used is not intended to limit the present invention merely for the sake of the purpose of description specific embodiment.Such as in explanation of the invention As used in book and appended claims, unless context clearly indicates other situations, otherwise singulative " one ", " one " and " being somebody's turn to do " are intended to include plural form.
A kind of method of resource updates provided in an embodiment of the present invention is applied to terminal, and the terminal is including but not limited to appointed A kind of what electronic product that man-machine interaction can be carried out with user, such as smart mobile phone, panel computer, palm electric energy, notebook electricity Brain etc..Above electronic equipment is only citing, and non exhaustive, and but terminal provided in an embodiment of the present invention includes is not restricted to above-mentioned Electronic equipment.
It is a kind of schematic flow diagram of the method for resource updates provided in an embodiment of the present invention referring to Fig. 1.As illustrated, A kind of method of resource updates includes step S101~S106.
S101, if the application detected in terminal is activated, judges whether the application needs more new resources.
Specifically, multiple different applications use demand different to meet user, and user would generally be installed in terminal Application can be started by clicking on the shortcut icon applied on terminal interface, and often started simultaneously in terminal multiple different Using after having multiple different applications to be activated, and one of application is current application, the application operation that other are activated On terminal backstage so that user fast switches between different applications.It should be noted that work as having multiple application quilts in terminal After startup, it will the application being activated for each is judging whether the application needs more new resources.Wherein, resource includes adding The use function that file, picture, character being added in application etc. is applied for satisfaction.When an application be installed to terminal it Afterwards, the application or exploitation of extended meeting exploitation redaction are answered to repairing using resources such as related plug-in units after the developer of the application Optimized with the Bug in interior resource or the performance for realizing applying, and by the way that the resource updates in application are improved for new resources Using performance and stability.
Specifically, with reference to Fig. 2, the sub-process schematic diagram of step S101.As illustrated, step S101 include step S201~ S204。
S201, obtains the first signature file from server, newest on first signature file and the server The resource of cloth is corresponding.
Specifically, after development of resources is completed and is published on server, the first signature file will be generated to the resource, The resource on server is carried out to form first signature file after MD5 signatures.First signature file and server The resource of upper newest issue is corresponding, if not issuing newest resource on server, in the first signature file and server Current newest resource is corresponding.
S202, obtains second signature file corresponding with local resource.
Specifically, terminal local can be by the corresponding signature file of the resource together after resource is obtained from server Obtain, in embodiments of the present invention, the corresponding signature file of local resource is set to the second signature file.
S203, compares first signature file whether identical with second signature file.
S204, if differing, judges that the application needs more new resources.
Specifically, in embodiments of the present invention, by by the first signature file corresponding to the newest resource on server The second signature file corresponding with local resource compares to judge whether issued new resources on server.If first signs Name file is identical with the second signature file, then illustrate not issuing current newest on newest resource, i.e. server on server Resource it is identical with the resource of terminal local, therefore the resource of the application and need not be updated;When the first signature file with Second signature file is different, and on this explanation server new resources have been issued, and the resource of the application needs to be issued according on server New resources be updated.
S102, if the application needs more new resources, the renewal related to the application is obtained from the server and is believed Breath, the fresh information includes default undated parameter and resource downloading address.
Specifically, in embodiments of the present invention, if understanding that the application needs more new resources according to step S101, clothes are illustrated On business device to should using having issued new resources, in order to be updated to the resource of the application, need to be obtained from server with The related fresh information of the application.At least include the download address of default undated parameter and resource in the fresh information.Its In, default undated parameter is used to judge whether to meet update condition, and the default undated parameter is included as preset type, resource version This number, operating system, the version number etc. of application.The download address of resource can be resource storage path in the server or Download address on network gets new resources so as to the download address according to the resource.
It should be noted that generally storage has the resource corresponding to multiple different applications in server, answer when correspondence is different During with carrying out storing corresponding resource, it is such as that the mark of application is corresponding newest that server can arrange mapping relations list The storage path of resource carries out correspondence storage, whether has issued new resources and quickly finds quickly to find the application The download address of new resources.
S103, according to the default undated parameter local parameter corresponding with the default undated parameter is obtained.
Specifically, as described above, default undated parameter includes default type, resource version number, operating system, the version of application This number etc., in embodiments of the present invention, the local parameter corresponding with the default undated parameter is obtained according to default undated parameter. Wherein, local parameter for terminal type, the version applied in operating system, the terminal in resource version number, terminal in terminal This number etc..
Whether S104, judge the local parameter within the scope of the default undated parameter.
Specifically, judge the local parameter for obtaining whether within the scope of default undated parameter to determine the application of the terminal Whether update condition is met, whether the type for such as including judging terminal is default type, and the default type includes at least one machine Type, by judging whether terminal models are that default type can determine whether the resource can be run in the terminal of the model; Judge that the resource version number in terminal whether less than the resource version number in server, that is, determines that the resource in terminal compares service Resource in device is legacy version;The operating system in terminal is judged whether within the scope of default operating system, due to new Resource needs supporting operating system normally to run, it is therefore desirable to judge whether the operating system in terminal is default behaviour Make within system scope;Judge that the version number for applying, i.e., can be with according to the new resources whether within default application version number Realize being updated the application of those versions;When local parameter is when presetting within the scope of undated parameter, illustrate using satisfaction The condition of resource updates, execution step S105, if local parameter illustrates that the application is discontented with not within the scope of default undated parameter The condition of sufficient resource updates.It should be noted that when each local parameter by comparison to default undated parameter model When within enclosing, the application just meets the condition of resource updates;If there is any one local parameter not in default undated parameter scope Within, then the application is unsatisfactory for the condition of resource updates.
S105, if so, downloads corresponding resource updates bag according to the resource downloading address.
Specifically, when local parameter is within the scope of default undated parameter, illustrate that the application meets resource updates bar Part, and corresponding resource updates bag is downloaded according to resource downloading address, renewal is included in the resource updates bag, and this applies required Resource.
S106, the resource in the application is updated according to the resource updates bag downloaded with the updating type of setting.
Specifically, the resource in the application is updated according to the updating type of the resource updates bag and setting downloaded.Update class Type includes forcing to update and renewal of mourning in silence, wherein, pressure is updated to obtain resource updates bag in this start-up course of application, And update the resource in the application according to the resource updates bag of the acquisition;Mourn in silence and be updated to be obtained in this start-up course of application Resource updates bag is taken, and updates the resource of the application according to the resource updates in starting the next time of application.
The embodiment of the present invention judges to apply whether need more new resources after the application for detecting terminal is activated, if More new resources are needed, then fresh information is obtained from server, the fresh information includes default undated parameter and resource downloading ground Location, then obtains the local parameter corresponding with the default undated parameter according to default undated parameter, and judges that local parameter is It is no if so, corresponding resource updates bag to be downloaded according to resource downloading address within the scope of default undated parameter, and according under The resource updates bag of load updates the resource of the application with the updating type of setting.The embodiment of the present invention can reduce artificial operation, And automatically updating for resource is realized in the case of user's unaware, improve Consumer's Experience.
It is the schematic flow diagram of the method for another kind of resource updates provided in an embodiment of the present invention referring to Fig. 3.As schemed Show, a kind of method of resource updates includes step S301~S310.
S301, if the application detected in terminal is activated, the first signature file is obtained from server, and described first signs Name file is corresponding with the resource of newest issue on the server.
S302, obtains second signature file corresponding with local resource.
S303, compares first signature file whether identical with second signature file.
S304, if differing, obtains from the server and applies related fresh information, the fresh information to described Including default undated parameter and resource downloading address.
S305, the fresh information to obtaining from the server carries out signature and processes to obtain the 3rd signature text Part.
Specifically, in embodiments of the present invention, signature is processed as carrying out the fresh information MD5 signatures to obtain the 3rd label Name file.Wherein MD5 (Message DigestAlgorithm MD5) is a kind of widely used hash of computer safety field Function, to the integrity protection for providing message, for guaranteeing that information transfer is completely consistent.
S306, compares the 3rd signature file whether identical with first signature file.
Specifically, in embodiments of the present invention, MD5 values can be compared to judge the 3rd signature file and the first signature file It is whether identical, if MD5 values are identical, illustrate that the 3rd signature file and the first signature file are identical, perform step S307;If MD5 values Difference, then illustrate that the 3rd signature file and the first signature file are different.It is to be appreciated that by by the first signature file and the 3rd Signature file compares the integrality for realizing further verifying the more new resources obtained from server to improve the application The accuracy of more new resources.
S307, if identical, according to the default undated parameter the local ginseng corresponding with the default undated parameter is obtained Number.
Specifically, after the 3rd signature file being compared according to step S306 be identical with the second signature file, according to described Default undated parameter obtains the local parameter corresponding with the default undated parameter.If the 3rd signature file and the second signature text Part is differed, then terminate flow process.
Whether S308, judge the local parameter within the scope of the default undated parameter.
S309, if so, downloads corresponding resource updates bag according to the resource downloading address.
S310, the resource in the application is updated according to the resource updates bag downloaded with the updating type of setting.
Whether the embodiment of the present invention judges the application by the way that the first signature file and the second signature file are compared More new resources are needed, if desired more new resources, then obtain fresh information from server, the fresh information includes that default renewal is joined Number and resource downloading address, and signature process is carried out to the fresh information to obtain the 3rd signature file, then comparison the 3rd is signed Name file and the whether identical integrality further to verify fresh information of the first signature file, if the 3rd signature file and first Signature file is identical, and according to default undated parameter the local parameter corresponding with the default undated parameter is obtained, and judges local If so, parameter downloads corresponding resource updates bag whether within the scope of default undated parameter according to resource downloading address, and The resource of the application is updated according to the resource updates bag downloaded and the updating type of setting.The embodiment of the present invention can be reduced manually Operation, and automatically updating for resource is realized in the case of user's unaware, Consumer's Experience is improved, and by further verifying more The integrality of new resources is improving the accuracy of the applying the update resource.
It is the schematic flow diagram of the method for another kind of resource updates provided in an embodiment of the present invention referring to Fig. 4.As schemed Show, a kind of method of resource updates includes step S401~S409.
S401, if the application detected in terminal is activated, judges whether the application needs more new resources.
S402, if the application needs more new resources, the renewal related to the application is obtained from the server and is believed Breath, the fresh information includes default undated parameter and resource downloading address.
S403, according to the default undated parameter local parameter corresponding with the default undated parameter is obtained.
Whether S404, judge the local parameter within the scope of the default undated parameter.
S405, if so, downloads corresponding resource updates bag according to the resource downloading address.
S406, recognizes the updating type of setting.
Specifically, updating type includes forcing to update and renewal of mourning in silence, wherein, pressure is updated to this startup in application During obtain resource updates bag, and the resource in the application is updated according to the resource updates bag of the acquisition;Mourn in silence and be updated to Using this start-up course in obtain resource updates bag, and updated according to the resource updates in starting the next time of application should Resource.In embodiments of the present invention, correspondence forces to update and mourn in silence to update to be respectively provided with different marks as forced more New logo is set to " A ", and renewal of mourning in silence is set to " B " in order to automatic identification.Ground is will be understood, will can also be forced Renewal and renewal of mourning in silence are set to two states of bit corresponding " 0 " and " 1 ", are not construed as limiting herein.
S407, if the updating type is replaced in the application to force to update according to the resource updates bag of the acquisition Resource.
Specifically, if recognizing updating type to force to update, according to the resource updates bag for obtaining according to step S406 Replace the resource in the application.It should be noted that due to the part figure of the possibly corresponding application of the resource updates bag for obtaining The renewal that piece or file etc. are carried out, or for module different in application as the loan module in class application of managing money matters is carried out Renewal, therefore according to force update directly replace corresponding resource in the application.If it should be noted that same in terminal The multiple applications of Shi Kaiqi, for the application in terminal running background can directly replace correspondence according to the resource updates bag for obtaining Using resource, for the current application of terminal can also arrange operation triggering update instruction, such as current application for financing class Using after detecting user and clicking on loan module, then directly replacing resource in the application according to the resource updates bag for obtaining So as to the resource for showing user to update in the case of user's unaware.
S408, if the updating type to mourn in silence renewals, to preserve the resource updates bag of acquisition quiet to the application It is silent to update in table.
S409, if the application detected in terminal is activated again, replaces in the application according to the resource updates bag Resource.
Specifically, the mark that at least includes applying in renewal table of mourning in silence and with the resource updates bag to applying.If Identify that updating type is renewal of mourning in silence, then the resource updates bag of acquisition is stored in this running of application and is mourned in silence In updating table, and after application startup next time, the resource in the application is replaced according to the resource updates bag.In some other enforcements In example, after resource updates are complete, the renewal table of mourning in silence is removed.
The embodiment of the present invention judges to apply whether need more new resources after the application for detecting terminal is activated, if More new resources are needed, then fresh information is obtained from server, the fresh information includes default undated parameter and resource downloading ground Location, then obtains the local parameter corresponding with the default undated parameter according to default undated parameter, and judges that local parameter is No if so, to download corresponding resource updates bag according to resource downloading address within the scope of default undated parameter, identification sets Updating type, if updating type for force update, according to obtain resource updates bag replace application in resource, if update class Type is renewal of mourning in silence, and replaces the resource of application according to resource updates bag after application startup next time.The embodiment of the present invention can subtract Few artificial operation, and automatically updating for resource is realized in the case of user's unaware, improve Consumer's Experience.
It is a kind of schematic block diagram of terminal provided in an embodiment of the present invention with reference to Fig. 5.In the present embodiment as depicted Terminal 50 includes that the first judging unit 51, first acquisition unit 52, second acquisition unit 53, the second judging unit 54, download are single Unit 55 and updating block 56.
First judging unit 51, if the application in for detecting terminal is activated, judges whether the application needs more New resources.
Specifically, multiple different applications use demand different to meet user, and user would generally be installed in terminal Application can be started by clicking on the shortcut icon applied on terminal interface, and often started simultaneously in terminal multiple different Using after having multiple different applications to be activated, and one of application is current application, the application operation that other are activated On terminal backstage so that user fast switches between different applications.It should be noted that work as having multiple application quilts in terminal After startup, it will the application being activated for each is judging whether the application needs more new resources.Wherein, resource includes adding The use function that file, picture, character being added in application etc. is applied for satisfaction.When an application be installed to terminal it Afterwards, the application or exploitation of extended meeting exploitation redaction are answered to repairing using resources such as related plug-in units after the developer of the application Optimized with the Bug in interior resource or the performance for realizing applying, and by the way that the resource updates in application are improved for new resources Using performance and stability.
First acquisition unit 52, if needing more new resources for the application, obtains from the server and is answered with described With related fresh information, the fresh information includes default undated parameter and resource downloading address.
Specifically, in embodiments of the present invention, if the application needs more new resources, illustrate on server to applying New resources are issued, in order to be updated to the resource of the application, has been needed to be obtained from server and is applied related renewal to this Information.At least include the download address of default undated parameter and resource in the fresh information.Wherein, preset undated parameter to use In judging whether to meet update condition, and the default undated parameter include as default type, resource version number, operating system, should Version number etc..The download address of resource can be resource storage path in the server or the download address on network So that the download address according to the resource gets new resources.
It should be noted that generally storage has the resource corresponding to multiple different applications in server, answer when correspondence is different During with carrying out storing corresponding resource, it is such as that the mark of application is corresponding newest that server can arrange mapping relations list The storage path of resource carries out correspondence storage, whether has issued new resources and quickly finds quickly to find the application The download address of new resources.
Second acquisition unit 53, for obtaining corresponding with the default undated parameter according to the default undated parameter Local parameter.
Specifically, as described above, default undated parameter includes default type, resource version number, operating system, the version of application This number etc., in embodiments of the present invention, the local parameter corresponding with the default undated parameter is obtained according to default undated parameter. Wherein, local parameter for terminal type, the version applied in operating system, the terminal in resource version number, terminal in terminal This number etc..
Second judging unit 54, for judging the local parameter whether within the scope of the default undated parameter.
Specifically, judge the local parameter for obtaining whether within the scope of default undated parameter to determine the application of the terminal Whether update condition is met, whether the type for such as including judging terminal is default type, and the default type includes at least one machine Type, by judging whether terminal models are that default type can determine whether the resource can be run in the terminal of the model; Judge that the resource version number in terminal whether less than the resource version number in server, that is, determines that the resource in terminal compares service Resource in device is legacy version;The operating system in terminal is judged whether within the scope of default operating system, due to new Resource needs supporting operating system normally to run, it is therefore desirable to judge whether the operating system in terminal is default behaviour Make within system scope;Judge that the version number for applying, i.e., can be with according to the new resources whether within default application version number Realize being updated the application of those versions;When local parameter is when presetting within the scope of undated parameter, illustrate using satisfaction The condition of resource updates, if local parameter illustrates that the application is unsatisfactory for resource updates not within the scope of default undated parameter Condition.It should be noted that when each local parameter by comparison to default undated parameter within the scope of when, should should With the condition for just meeting resource updates;If having any one local parameter not within the scope of default undated parameter, the application It is unsatisfactory for the condition of resource updates.
Download unit 55, for if so, according to the corresponding resource updates bag of resource downloading address download.
Specifically, when local parameter is within the scope of default undated parameter, illustrate that the application meets resource updates bar Part, and corresponding resource updates bag is downloaded according to resource downloading address, renewal is included in the resource updates bag, and this applies required Resource.
Updating block 56, for being updated in the application with the updating type of setting according to the resource updates bag downloaded Resource.Specifically, the resource in the application is updated according to the updating type of the resource updates bag and setting downloaded.Updating type Update including pressure and renewal of mourning in silence, wherein, pressure is updated to obtain resource updates bag in this start-up course of application, and The resource in the application is updated according to the resource updates bag of the acquisition;Mourn in silence and be updated to be obtained in this start-up course of application Resource updates bag, and the resource of the application is updated according to the resource updates in starting the next time of application.
Further, it is the schematic block diagram of the first judging unit with reference to Fig. 6.As illustrated, the first judging unit 51 is wrapped Include the 3rd acquiring unit 511, the 4th acquiring unit 512, the first comparing unit 513 and identifying unit 514.
3rd acquiring unit 511, for obtaining the first signature file from server, first signature file with it is described The resource of newest issue is corresponding on server.Specifically, after development of resources is completed and is published on server, to the resource The first signature file will be generated, i.e., the resource on server is carried out forming first signature file after MD5 signatures.Should First signature file is corresponding with the resource of newest issue on server, if not issuing newest resource on server, the One signature file is corresponding with current newest resource in server.
4th acquiring unit 5122, for obtaining second signature file corresponding with local resource.
In embodiments of the present invention, specifically, terminal local can be by the resource phase after resource is obtained from server Corresponding signature file is obtained together, and in embodiments of the present invention, the corresponding signature file of local resource is set to the second signature File.
Whether the first comparing unit 513 is identical with second signature file for comparing first signature file.
Identifying unit 514, if for differing, judging that the application needs more new resources.
Specifically, in embodiments of the present invention, by by the first signature file corresponding to the newest resource on server The second signature file corresponding with local resource compares to judge whether issued new resources on server.If first signs Name file is identical with the second signature file, then illustrate not issuing current newest on newest resource, i.e. server on server Resource it is identical with the resource of terminal local, therefore the resource of the application and need not be updated;When the first signature file with Second signature file is different, and on this explanation server new resources have been issued, and the resource of the application needs to be issued according on server New resources be updated.
The embodiment of the present invention judges that application is after the application for detecting terminal is activated by the first judging unit 51 No needs more new resources, if desired more new resources, by first acquisition unit 52 fresh information is then obtained from server, and this is more Fresh information includes default undated parameter and resource downloading address, is then obtained by second acquisition unit 53 according to default undated parameter The local parameter corresponding with the default undated parameter is taken, and judges local parameter whether default by the second judging unit 54 Within the scope of undated parameter, if so, corresponding resource updates bag is downloaded according to resource downloading address by download unit 55, and The resource of the application is updated by updating block 56 according to the resource updates bag downloaded and the updating type of setting.The present invention is implemented Example can reduce artificial operation, and automatically updating for resource is realized in the case of user's unaware, improve Consumer's Experience.
Those of ordinary skill in the art are it is to be appreciated that the list of each example with reference to the embodiments described herein description Unit and algorithm steps, can with electronic hardware, computer software or the two be implemented in combination in, in order to clearly demonstrate hardware With the interchangeability of software, according to function the composition and step of each example have been generally described in the above description.This A little functions are performed with hardware or software mode actually, depending on the application-specific and design constraint of technical scheme.Specially Industry technical staff can use different methods to realize described function to each specific application, but this realization is not It is considered as beyond the scope of this invention.
It is the schematic block diagram of another kind of terminal provided in an embodiment of the present invention with reference to Fig. 6.In the present embodiment as depicted Terminal 60 include that the first judging unit 61, first acquisition unit 62, signature unit 63, the second comparing unit 64, second are obtained Unit 65, the second judging unit 66, download unit 67 and updating block 68.
First judging unit 61, if the application in for detecting terminal is activated, judges whether the application needs more New resources.
First acquisition unit 62, if needing more new resources for the application, obtains from the server and is answered with described With related fresh information, the fresh information includes default undated parameter and resource downloading address.
Signature unit 63, processes to obtain for carrying out the fresh information obtained from the server signature Three signature files.Specifically, in embodiments of the present invention, signature is processed as carrying out the fresh information MD5 signatures to obtain the Three signature files.Wherein MD5 (Message Digest Algorithm MD5) is computer safety field widely used Hash function is planted, to the integrity protection for providing message, for guaranteeing that information transfer is completely consistent.
Whether the second comparing unit 64 is identical with first signature file for comparing the 3rd signature file;If It is identical, perform the step of local parameter corresponding with the default undated parameter is obtained according to the default undated parameter.
Specifically, in embodiments of the present invention, MD5 values can be compared to judge the 3rd signature file and the first signature file It is whether identical, if MD5 values are identical, illustrate that the 3rd signature file and the first signature file are identical;If MD5 values are different, illustrate 3rd signature file and the first signature file are different.It is to be appreciated that by the way that the first signature file and the 3rd signature file are entered Row is than the integrality to realizing the further checking more new resources obtained from server to improve the applying the update resource Accuracy.
Second acquisition unit 65, for obtaining corresponding with the default undated parameter according to the default undated parameter Local parameter.
Specifically, after comparing the 3rd signature file and be identical with the second signature file, according to the default undated parameter Obtain the local parameter corresponding with the default undated parameter.If the 3rd signature file is differed with the second signature file, Terminate flow process.
Second judging unit 66, for judging the local parameter whether within the scope of the default undated parameter.
Download unit 67, for if so, according to the corresponding resource updates bag of resource downloading address download.
Updating block 68, for being updated in the application with the updating type of setting according to the resource updates bag downloaded Resource.
The embodiment of the present invention judges whether the application needs more new resources by the first judging unit 61, if desired updates money Source, by first acquisition unit 62 fresh information is obtained from server, and the fresh information includes default undated parameter and resource Download address, and by 63 pairs of fresh informations of signature unit signature process is carried out to obtain the 3rd signature file, then pass through Whether the second comparing unit 64 compares the 3rd signature file identical with the first signature file further verifying the complete of fresh information Whole property, if the 3rd signature file is identical with the first signature file, is obtained by second acquisition unit 65 according to default undated parameter The local parameter corresponding with the default undated parameter, and judge whether local parameter is being preset more by the second judging unit 66 Within the scope of new parameter, if so, corresponding resource updates bag is downloaded according to resource downloading address by download unit 67, and led to Cross the resource that updating block 68 updates the application according to the resource updates bag downloaded and the updating type of setting.The embodiment of the present invention Artificial operation can be reduced, and automatically updating for resource is realized in the case of user's unaware, improve Consumer's Experience, and be passed through Further the integrality of checking more new resources is improving the accuracy of the applying the update resource.
It is the schematic block diagram of another kind of terminal provided in an embodiment of the present invention with reference to Fig. 7.In the present embodiment as depicted Terminal 70 include the first judging unit 71, first acquisition unit 72, second acquisition unit 73, the second judging unit 74, download Unit 75, recognition unit 76, the first replacement unit 77, the replacement unit 79 of storage unit 78 and second.
First judging unit 71, if the application in for detecting terminal is activated, judges whether the application needs more New resources.
First acquisition unit 72, if needing more new resources for the application, obtains from the server and is answered with described With related fresh information, the fresh information includes default undated parameter and resource downloading address.
Second acquisition unit 73, for obtaining corresponding with the default undated parameter according to the default undated parameter Local parameter.
Second judging unit 74, for judging the local parameter whether within the scope of the default undated parameter.
Download unit 75, for obtaining corresponding with the default undated parameter local according to the default undated parameter Parameter.
Recognition unit 76, processes to obtain for carrying out the fresh information obtained from the server signature Three signature files.
Specifically, updating type includes forcing to update and renewal of mourning in silence, wherein, pressure is updated to this startup in application During obtain resource updates bag, and the resource in the application is updated according to the resource updates bag of the acquisition;Mourn in silence and be updated to Using this start-up course in obtain resource updates bag, and updated according to the resource updates in starting the next time of application should Resource.In embodiments of the present invention, correspondence forces to update and mourn in silence to update to be respectively provided with different marks as forced more New logo is set to " A ", and renewal of mourning in silence is set to " B " in order to automatic identification.Ground is will be understood, will can also be forced Renewal and renewal of mourning in silence are set to two states of bit corresponding " 0 " and " 1 ", are not construed as limiting herein.
First replacement unit 77, if for the updating type to force to update, according to the resource updates bag of the acquisition Replace the resource in the application.Specifically, if updating type is to force to update, being replaced according to the resource updates bag for obtaining should Resource using in.It should be noted that the resource updates bag a part of picture that possibly correspondence is applied or text due to obtaining The renewal that part etc. is carried out, or for the renewal that module different in application is carried out such as the loan module in class application of managing money matters, Therefore updated according to pressure and directly replace corresponding resource in the application.If it should be noted that open in terminal simultaneously Multiple applications, for the application in terminal running background can directly replace correspondence application according to the resource updates bag for obtaining Resource, for the current application of terminal can also arrange the instruction that operation triggering updates, such as current application is financing class application, when Detect user to click on after loan module, then according to the resource updates bag for obtaining directly replace resource in the application so as to The resource for showing user to update in the case of the unaware of family.
Storage unit 78, if being renewal of mourning in silence for the updating type, preserves the resource updates bag for obtaining to institute State mourning in silence in renewal table for application.
Second replacement unit 79, if the application in for detecting terminal is activated again, according to the resource updates bag Replace the resource in the application.
Specifically, the mark that at least includes applying in renewal table of mourning in silence and with the resource updates bag to applying.If Identify that updating type is renewal of mourning in silence, then the resource updates bag of acquisition is stored in this running of application and is mourned in silence In updating table, and after application startup next time, the resource in the application is replaced according to the resource updates bag.In some other enforcements In example, after resource updates are complete, the renewal table of mourning in silence is removed.
The embodiment of the present invention judges that application is after the application for detecting terminal is activated by the first judging unit 71 No needs more new resources, if desired more new resources, by first acquisition unit 72 fresh information is obtained from server, the renewal Information includes default undated parameter and resource downloading address, and then second acquisition unit 73 is obtained and be somebody's turn to do according to default undated parameter The corresponding local parameter of default undated parameter, and judge whether local parameter joins in default renewal by the second judging unit 74 Within the scope of number, if so, corresponding resource updates bag is downloaded according to resource downloading address by download unit 75, by identification The updating type of the identification setting of unit 76, if updating type is to force to update, by the first replacement unit 77 according to the resource for obtaining The resource in bag replacement application is updated, if updating type is renewal of mourning in silence, after application startup next time the second replacement unit is passed through 79 resources that application is replaced according to resource updates bag.The embodiment of the present invention can reduce artificial operation, and in user's unaware Automatically updating for resource is realized under situation, Consumer's Experience is improved.
Those skilled in the art can be understood that, for convenience of description and succinctly, the end of foregoing description End and the specific work process of unit, may be referred to the corresponding process in preceding method embodiment, will not be described here.
In several embodiments provided herein, it should be understood that disclosed terminal and method, it can be passed through Its mode is realized.For example, appliance arrangement embodiment described above is only schematic, and for example, the unit is drawn Point, only a kind of division of logic function can have other dividing mode when actually realizing, such as multiple units or component can To combine or be desirably integrated into another system, or some features can be ignored, or not perform.In addition, shown or discussed Coupling each other or direct-coupling or communication connection can be indirect coupling by some interfaces, appliance arrangement or unit Close or communicate to connect, or electricity, machinery or other forms connections.
Step in present invention method can according to actual needs carry out order adjustment, merge and delete.
Unit in embodiment of the present invention terminal can according to actual needs be merged, divides and deleted.
The unit as separating component explanation can be or may not be it is physically separate, it is aobvious as unit The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be according to the actual needs selected to realize embodiment of the present invention scheme Purpose.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to It is that unit is individually physically present, or two or more units are integrated in a unit.It is above-mentioned integrated Unit both can be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is realized using in the form of SFU software functional unit and as independent production marketing or used When, during a computer read/write memory medium can be stored in.Based on such understanding, technical scheme is substantially Prior art is contributed part in other words, or all or part of the technical scheme can be in the form of software product Embody, the computer software product is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, terminal, or network equipment etc.) performs the whole of each embodiment methods described of the invention Or part steps.And aforesaid storage medium includes:USB flash disk, portable hard drive, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey The medium of sequence code.
It is above the preferred embodiment of invention, rather than any pro forma restriction is done to invention.Those skilled in the art The change and improvement of various equivalents can be imposed on the basis of above-described embodiment, all equivalents done within the scope of the claims become Change or modify, within the scope of the including of invention all should be fallen into.

Claims (10)

1. a kind of method of resource updates, it is characterised in that include:
If the application detected in terminal is activated, judge whether the application needs more new resources;
If the application needs more new resources, obtain from the server and it is described apply related fresh information, it is described more Fresh information includes default undated parameter and resource downloading address;
The local parameter corresponding with the default undated parameter is obtained according to the default undated parameter;
Judge the local parameter whether within the scope of the default undated parameter;
If so, corresponding resource updates bag is downloaded according to the resource downloading address;
The resource in the application is updated with the updating type of setting according to the resource updates bag downloaded.
2. the method for claim 1, it is characterised in that described to judge whether the application needs more new resources specifically to wrap Include:
Obtain the first signature file from server, the resource phase of first signature file and newest issue on the server Correspondence;
Obtain second signature file corresponding with local resource;
Compare first signature file whether identical with second signature file;
If differing, judge that the application needs more new resources.
3. method as claimed in claim 2, it is characterised in that methods described also includes:
The fresh information to obtaining from the server carries out signature and processes to obtain the 3rd signature file;
Compare the 3rd signature file whether identical with first signature file;
If identical, the step that the local parameter corresponding with the default undated parameter is obtained according to the default undated parameter is performed Suddenly.
4. the method for claim 1, it is characterised in that the updating type includes forcing to update and renewal of mourning in silence, institute The resource stated in the updating type renewal application according to the resource updates bag downloaded with setting is specifically included:
The updating type of identification setting;
If the updating type replaces the resource in the application to force to update according to the resource updates bag of the acquisition.
5. method as claimed in claim 4, it is characterised in that methods described also includes:
If the updating type is renewal of mourning in silence, the renewal table of mourning in silence of the resource updates bag to the application for obtaining is preserved In;
If the application detected in terminal is activated again, the resource in the application is replaced according to the resource updates bag.
6. a kind of terminal, it is characterised in that include:
First judging unit, if the application in for detecting terminal is activated, judges whether the application needs more new resources;
First acquisition unit, if needing more new resources for the application, obtains related to the application from the server Fresh information, the fresh information includes default undated parameter and resource downloading address;
Second acquisition unit, for obtaining the local ginseng corresponding with the default undated parameter according to the default undated parameter Number;
Second judging unit, for judging the local parameter whether within the scope of the default undated parameter;
Download unit, for if so, according to the corresponding resource updates bag of resource downloading address download;
Updating block, for updating the money in the application with the updating type of setting according to the resource updates bag downloaded Source.
7. terminal as claimed in claim 6, it is characterised in that first judging unit is specifically included:
3rd acquiring unit, for obtaining the first signature file, first signature file and the server from server The resource of upper newest issue is corresponding;
4th acquiring unit, for obtaining second signature file corresponding with local resource;
Whether the first comparing unit is identical with second signature file for comparing first signature file;
Identifying unit, if for differing, judging that the application needs more new resources.
8. terminal as claimed in claim 7, it is characterised in that the terminal also includes:
Signature unit, is processed to obtain the 3rd signature for carrying out signature to the fresh information obtained from the server File;
Whether the second comparing unit is identical with first signature file for comparing the 3rd signature file;If identical, hold The step of row obtains the local parameter corresponding with the default undated parameter according to the default undated parameter.
9. right will require the terminal described in 1, it is characterised in that the updating type includes forcing to update and renewal of mourning in silence, institute State updating block to specifically include:
Recognition unit, for the updating type of identification setting;
First replacement unit, if replacing institute according to the resource updates bag of the acquisition to force to update for the updating type State the resource in application.
10. right will require the terminal described in 9, it is characterised in that the updating block also includes:
Storage unit, if being renewal of mourning in silence for the updating type, preserves the resource updates bag for obtaining to the application Mourn in silence in renewal table;
Second replacement unit, if the application in for detecting terminal is activated again, according to the resource updates bag institute is replaced State the resource in application.
CN201611236537.3A 2016-12-28 2016-12-28 Resource updating method and terminal Pending CN106648787A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201611236537.3A CN106648787A (en) 2016-12-28 2016-12-28 Resource updating method and terminal
PCT/CN2017/076521 WO2018120429A1 (en) 2016-12-28 2017-03-14 Resource update method, terminal, computer readable storage medium and resource update device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611236537.3A CN106648787A (en) 2016-12-28 2016-12-28 Resource updating method and terminal

Publications (1)

Publication Number Publication Date
CN106648787A true CN106648787A (en) 2017-05-10

Family

ID=58832218

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611236537.3A Pending CN106648787A (en) 2016-12-28 2016-12-28 Resource updating method and terminal

Country Status (2)

Country Link
CN (1) CN106648787A (en)
WO (1) WO2018120429A1 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107315606A (en) * 2017-06-14 2017-11-03 北京小米移动软件有限公司 Using update method and device
CN107844315A (en) * 2017-12-27 2018-03-27 北京酷我科技有限公司 The strategy that app themes skin upgrades in a kind of Android
CN108182092A (en) * 2017-12-13 2018-06-19 广州视源电子科技股份有限公司 The method and device that update application resource is shown
CN108491216A (en) * 2018-03-05 2018-09-04 北京指掌易科技有限公司 A kind of method of android system unaware application installation upgrading
CN108845816A (en) * 2018-06-22 2018-11-20 平安科技(深圳)有限公司 Application program update method, system, computer equipment and storage medium
CN109787802A (en) * 2017-11-15 2019-05-21 阿里巴巴集团控股有限公司 A kind of resource operating methods and console
CN110990038A (en) * 2019-11-29 2020-04-10 中化信息技术有限公司 Method, apparatus, electronic device, and medium for applying local updates
CN112165512A (en) * 2020-09-08 2021-01-01 深圳市贰陆陆科技有限公司 File publishing method and device, terminal equipment and storage medium

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020061731A1 (en) * 2018-09-25 2020-04-02 深圳市欢太科技有限公司 Resource processing method, electronic device, and computer-readable storage medium
CN110297647B (en) * 2019-05-29 2023-12-01 福建天泉教育科技有限公司 Method and terminal for updating npm packet by front-end engineering
CN111142949B (en) * 2019-12-26 2022-03-25 联想(北京)有限公司 Information processing method and electronic equipment
CN112799955B (en) * 2021-02-08 2023-09-26 腾讯科技(深圳)有限公司 Method and device for detecting model change, storage medium and electronic equipment
CN115309431B (en) * 2022-09-29 2023-07-18 荣耀终端有限公司 Parameter updating method, readable medium and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103455343A (en) * 2013-07-22 2013-12-18 小米科技有限责任公司 Method and device for updating application programs
CN105743984A (en) * 2016-03-11 2016-07-06 中国建设银行股份有限公司 Method, device and system for automatically updating mobile application

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1763713A (en) * 2004-10-22 2006-04-26 华为技术有限公司 Mobile terminal software edition updating method
CN101026850A (en) * 2007-03-09 2007-08-29 华为技术有限公司 Mobileterminal software autmatic upgrading method and system, mobile terminal and software management server
CN101860853A (en) * 2010-06-09 2010-10-13 中兴通讯股份有限公司 Software upgrading method and device
US9075568B1 (en) * 2012-03-21 2015-07-07 Amazon Technologies, Inc. Dynamic device skins

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103455343A (en) * 2013-07-22 2013-12-18 小米科技有限责任公司 Method and device for updating application programs
CN105743984A (en) * 2016-03-11 2016-07-06 中国建设银行股份有限公司 Method, device and system for automatically updating mobile application

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10705828B2 (en) 2017-06-14 2020-07-07 Beijing Xiaomi Mobile Software Co., Ltd. Method and apparatus for updating application
CN107315606A (en) * 2017-06-14 2017-11-03 北京小米移动软件有限公司 Using update method and device
CN109787802B (en) * 2017-11-15 2022-04-29 阿里巴巴集团控股有限公司 Resource operation method and console
CN109787802A (en) * 2017-11-15 2019-05-21 阿里巴巴集团控股有限公司 A kind of resource operating methods and console
CN108182092A (en) * 2017-12-13 2018-06-19 广州视源电子科技股份有限公司 The method and device that update application resource is shown
CN107844315A (en) * 2017-12-27 2018-03-27 北京酷我科技有限公司 The strategy that app themes skin upgrades in a kind of Android
CN107844315B (en) * 2017-12-27 2021-02-09 北京酷我科技有限公司 Strategy for upgrading app theme skin in Android
CN108491216A (en) * 2018-03-05 2018-09-04 北京指掌易科技有限公司 A kind of method of android system unaware application installation upgrading
CN108845816B (en) * 2018-06-22 2021-09-10 平安科技(深圳)有限公司 Application program updating method, system, computer device and storage medium
CN108845816A (en) * 2018-06-22 2018-11-20 平安科技(深圳)有限公司 Application program update method, system, computer equipment and storage medium
CN110990038A (en) * 2019-11-29 2020-04-10 中化信息技术有限公司 Method, apparatus, electronic device, and medium for applying local updates
CN110990038B (en) * 2019-11-29 2023-08-22 中化信息技术有限公司 Method, apparatus, electronic device and medium for applying local update
CN112165512A (en) * 2020-09-08 2021-01-01 深圳市贰陆陆科技有限公司 File publishing method and device, terminal equipment and storage medium
CN112165512B (en) * 2020-09-08 2023-09-26 深圳市贰陆陆科技有限公司 File release method and device, terminal equipment and storage medium

Also Published As

Publication number Publication date
WO2018120429A1 (en) 2018-07-05

Similar Documents

Publication Publication Date Title
CN106648787A (en) Resource updating method and terminal
CN106775723B (en) Android platform-based system firmware customization method and Android device
CN102622241B (en) A kind of method for upgrading software and device
CN105446769B (en) Image file upgrade processing method, device and terminal device
US10489591B2 (en) Detection system and method thereof
CN106502725A (en) The upgrade method of application program, equipment and electronic equipment
CN104679532B (en) kernel module loading method and device
CN105138347A (en) Difference upgrade patch generating method, software upgrading method and corresponding apparatus
CN103365644A (en) Method and device for expanding software functions
CN105511911A (en) System firmware upgrade package generation method and device
CN109062598A (en) A kind of safe OTA upgrade method and system
CN109669717A (en) Data processing method, device, equipment and storage medium based on deployment platform
CN107992381A (en) System reducing method, device, system, backup and reduction server and storage medium
CN108279947A (en) The method and device of financial self-service equipment SP installation kits adaptation
CN106406919A (en) Terminal device pre-loaded application management method and terminal device
CN110515647A (en) A kind of static resource management method, device, equipment and storage medium
CN106775876A (en) The method that Android system quickly starts application
CN103049374A (en) Automatic testing method and device
CN108197020A (en) Plug-in unit method of calibration, electronic equipment and computer storage media
CN109032617B (en) Control method and control device for automatically deleting installation package
CN110502264A (en) Method for upgrading system, terminal and readable storage medium storing program for executing
CN103309696B (en) Method and device for updating Java card extended library, and Java card
CN107341074B (en) A kind of abnormal restorative procedure of upgrading upgrades abnormal prosthetic device and intelligent terminal
CN106951240B (en) Batch packaging method for user customized products
CN109688472A (en) Upgrading TV system method, apparatus, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170510

RJ01 Rejection of invention patent application after publication