WO2018120429A1 - Procédé de mise à jour de ressources, terminal, support de stockage lisible par ordinateur et dispositif de mise à jour de ressources - Google Patents

Procédé de mise à jour de ressources, terminal, support de stockage lisible par ordinateur et dispositif de mise à jour de ressources Download PDF

Info

Publication number
WO2018120429A1
WO2018120429A1 PCT/CN2017/076521 CN2017076521W WO2018120429A1 WO 2018120429 A1 WO2018120429 A1 WO 2018120429A1 CN 2017076521 W CN2017076521 W CN 2017076521W WO 2018120429 A1 WO2018120429 A1 WO 2018120429A1
Authority
WO
WIPO (PCT)
Prior art keywords
update
resource
application
parameter
signature file
Prior art date
Application number
PCT/CN2017/076521
Other languages
English (en)
Chinese (zh)
Inventor
魏留杰
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2018120429A1 publication Critical patent/WO2018120429A1/fr

Links

Classifications

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

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a resource update method, a terminal, a computer readable storage medium, and a resource update device.
  • APPs Applications
  • hybrid APP native mixed hybrid APPs
  • software developers usually introduce some resources such as files and pictures into the APP, and in order to repair bugs in the resources of the APP or to achieve performance optimization of the APP, software development People usually post new resources, and users can improve the performance and stability of the app by updating the resources in the app to new resources.
  • the current method for updating resources in the APP is usually to manually upgrade the APP to obtain new resources, and the manner of updating the resources requires manual participation, long time, and affects the user experience.
  • the embodiments of the present invention provide a resource update method, a terminal, a computer readable storage medium, and a resource update device, which can automatically update resources and improve user experience without a user's perception.
  • an embodiment of the present invention provides a resource update method, where the method includes: if it is detected that an application in a terminal is started, determining whether the application needs to update a resource; if the application needs to update a resource, the slave server Acquiring update information related to the application, the update information includes a preset update parameter, and a resource download address; acquiring a local parameter corresponding to the preset update parameter according to the preset update parameter; determining the local Whether the parameter is within the range of the preset update parameter; if yes, downloading a corresponding resource update package according to the resource download address; and updating the resource in the application according to the downloaded resource update package and the set update type .
  • the embodiment of the present invention provides a terminal, where the terminal includes a first determining unit, configured to determine, if the application in the terminal is started, whether the application needs to update resources, and the first acquiring unit, configured to: If the application needs to update the resource, the update information related to the application is obtained from the server, the update information includes a preset update parameter and a resource download address, and the second obtaining unit is configured to update the parameter according to the preset.
  • the second determining unit is configured to determine whether the local parameter is within a range of the preset update parameter; and downloading, if yes, according to the resource
  • the downloading address downloads the corresponding resource update package; and the updating unit is configured to update the resource in the application according to the downloaded resource update package and the set update type.
  • an embodiment of the present invention provides a computer readable storage medium having one or more programs, the one or more programs being used by one or more processors to perform the following steps. If it is detected that the application in the terminal is started, it is determined whether the application needs to update the resource; if the application needs to update the resource, the update information related to the application is obtained from the server, and the update information includes a preset update parameter.
  • a resource download address obtaining a local parameter corresponding to the preset update parameter according to the preset update parameter; determining whether the local parameter is within a range of the preset update parameter; if yes, according to the The resource download address downloads the corresponding resource update package; and the resource in the application is updated according to the downloaded resource update package and the set update type.
  • an embodiment of the present invention provides a resource update device, including a memory and a processor, where the memory is used to store an instruction, and the processor reads an instruction in the memory and performs the following operations according to the instruction. If it is detected that the application in the terminal is started, it is determined whether the application needs to update the resource; if the application needs to update the resource, the update information related to the application is obtained from the server, and the update information includes a preset update parameter.
  • a resource download address obtaining a local parameter corresponding to the preset update parameter according to the preset update parameter; determining whether the local parameter is within a range of the preset update parameter; if yes, according to the The resource download address downloads the corresponding resource update package; and the resource in the application is updated according to the downloaded resource update package and the set update type.
  • the embodiment of the present invention determines whether the application needs to update the resource. If the resource needs to be updated, the update information is obtained from the server, where the update information includes the preset update parameter and the resource download address, and then according to the pre- The update parameter is configured to obtain a local parameter corresponding to the preset update parameter, and determine whether the local parameter is within the range of the preset update parameter, and if yes, download the corresponding resource update package according to the resource download address, and update according to the downloaded resource.
  • the package updates the resources of the app with the set update type.
  • the embodiment of the invention can reduce the manual operation and realize the automatic update of the resource without the user's perception, thereby improving the user experience.
  • FIG. 1 is a schematic flowchart of a method for updating a resource according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a sub-flow of step S101 in FIG. 1;
  • FIG. 3 is a schematic flowchart of another method for resource update according to an embodiment of the present invention.
  • FIG. 4 is a schematic flowchart of another method for resource update according to an embodiment of the present invention.
  • FIG. 5 is a schematic block diagram of a terminal according to an embodiment of the present disclosure.
  • Figure 6 is a schematic block diagram of the first determining unit of Figure 5;
  • FIG. 7 is a schematic block diagram of another terminal according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic block diagram of another terminal according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic block diagram of a resource update device according to an embodiment of the present invention.
  • a method for updating a resource according to an embodiment of the present invention is applied to a terminal, where the terminal includes but is not limited to any electronic product capable of interacting with a user, such as a smart phone, a tablet computer, a handheld power device, a notebook computer, or the like. .
  • the foregoing electronic device is only an example, and is not exhaustive.
  • the terminal provided by the embodiment of the present invention includes but is not limited to the above electronic device.
  • FIG. 1 is a schematic flowchart of a method for updating a resource according to an embodiment of the present invention. As shown in the figure, the method for updating a resource includes steps S101 to S106.
  • a plurality of different applications are usually installed in the terminal to meet different usage requirements of the user, and the user can start the application by clicking a shortcut icon applied on the terminal interface, and the terminal often starts multiple different applications at the same time.
  • the terminal often starts multiple different applications at the same time.
  • one of the applications is the current application
  • other launched applications run in the background of the terminal for the user to quickly switch between different applications.
  • resources include files, pictures, characters, etc. added to the application to meet the application's use function.
  • the developer of the application When an application is installed on the terminal, the developer of the application will later develop a new version of the application or develop resources such as plug-ins related to the application to fix bugs in the in-app resource or optimize the performance of the application, and by using the application.
  • the resources are updated to new resources to improve the performance and stability of the application.
  • step S101 includes steps S201 to S204.
  • the first signature file is generated for the resource, that is, the first signature file is formed after the MD5 signature is performed on the resource on the server.
  • the first signature file corresponds to the newly released resource on the server. If the latest resource is not published on the server, the first signature file corresponds to the current latest resource in the server.
  • the terminal locally acquires the resource corresponding to the resource after the resource is obtained from the server.
  • the signature file corresponding to the local resource is set as the second signature file.
  • the server it is determined whether a new resource is released on the server by comparing the first signature file corresponding to the latest resource on the server with the second signature file corresponding to the local resource. If the first signature file is the same as the second signature file, the latest resource is not released on the server, that is, the current latest resource on the server is the same as the local resource on the terminal, so the application resource does not need to be updated;
  • the signature file is different from the second signature file, which means that a new resource is published on the server, and the application's resources need to be updated according to the new resources published on the server.
  • the application needs to update the resource, obtain update information related to the application from the server, where the update information includes a preset update parameter and a resource download address.
  • step S101 if the application needs to update the resource, it indicates that the application has released a new resource on the server, and in order to update the resource of the application, the application needs to be acquired from the server.
  • the update information includes at least a preset update parameter and a download address of the resource.
  • the preset update parameter is used to determine whether the update condition is met, and the preset update parameter includes, for example, a preset model, a resource version number, an operating system, an application version number, and the like.
  • the download address of the resource may be a storage path of the resource in the server or a download address on the network to obtain a new resource according to the download address of the resource.
  • a resource corresponding to multiple different applications is usually stored.
  • the server may set a mapping relationship list, such as the identifier of the application and the storage path of the latest resource corresponding thereto. Corresponding storage to quickly find out if the app has released new resources and quickly finds the download address of the new resource.
  • the preset update parameter includes a preset model, a resource version number, an operating system, a version number of the application, and the like.
  • the preset update parameter is obtained according to the preset update parameter.
  • the local parameter is the model of the terminal, the version number of the resource in the terminal, the operating system in the terminal, and the version number applied in the terminal.
  • determining whether the obtained local parameter is within the preset update parameter range to determine whether the application of the terminal meets the update condition for example, including determining whether the model of the terminal is a preset model, and the preset model includes at least one
  • the model can determine whether the resource can run on the terminal of the model by determining whether the terminal model is a preset model; determining whether the resource version number in the terminal is smaller than the resource version number in the server, that is, determining the The resources in the terminal are compared to the resources in the server. If the operating system in the terminal is within the preset operating system, the operating system in the terminal needs to be judged whether the operating system in the terminal is running.
  • the default operating system range is determined; whether the version number of the application is within the preset application version number, that is, the version of the application may be updated according to the new resource; when the local parameter is in the preset update parameter range If the application meets the condition of the resource update, step S105 is performed, if the local parameter is not in the preset update Within the parameter range, the application does not meet the criteria for resource update. It should be noted that, when each local parameter is within the preset update parameter range, the application satisfies the condition of resource update; if any local parameter is not within the preset update parameter range, , the application does not meet the criteria for resource update.
  • the application satisfies the resource update condition, and downloads a corresponding resource update package according to the resource download address, where the resource update package includes the required update of the application. Resources.
  • the resources in the application are updated according to the downloaded resource update package and the set update type.
  • the update type includes a forced update and a silent update, wherein the forced update is to obtain a resource update package during the current startup process of the application, and update the resource in the application according to the obtained resource update package; silently update to the current application
  • the resource update package is obtained during startup, and the resource of the application is updated according to the resource update in the next startup of the application.
  • the embodiment of the present invention determines whether the application needs to update the resource. If the resource needs to be updated, the update information is obtained from the server, where the update information includes the preset update parameter and the resource download address, and then according to the pre- The update parameter is configured to obtain a local parameter corresponding to the preset update parameter, and determine whether the local parameter is within the range of the preset update parameter, and if yes, download the corresponding resource update package according to the resource download address, and update according to the downloaded resource.
  • the package updates the resources of the app with the set update type.
  • the embodiment of the invention can reduce the manual operation and realize the automatic update of the resource without the user's perception, thereby improving the user experience.
  • FIG. 3 is a schematic flowchart of another method for resource update according to an embodiment of the present invention. As shown in the figure, the method for updating a resource includes steps S301 to S310.
  • the signature processing is to perform MD5 signature on the update information to obtain a third signature file.
  • MD5 Message Digest Algorithm MD5
  • hash function widely used in the field of computer security to provide message integrity protection to ensure complete and consistent information transmission.
  • whether the third signature file and the first signature file are the same may be determined by comparing the MD5 value. If the MD5 value is the same, the third signature file is the same as the first signature file, and step S307 is performed. If the MD5 value is different, the third signature file is different from the first signature file. It can be understood that the integrity of the update resource acquired from the server is further verified by comparing the first signature file with the third signature file to improve the accuracy of the application update resource.
  • the process ends.
  • the first signature file and the second signature file are compared to determine whether the application needs to update the resource. If the resource needs to be updated, the update information is obtained from the server, and the update information includes preset update parameters and resources. Downloading the address, and signing the update information to obtain a third signature file, and then comparing whether the third signature file is identical to the first signature file to further verify the integrity of the update information, if the third signature file and the first signature.
  • the file is the same, and the local parameter corresponding to the preset update parameter is obtained according to the preset update parameter, and it is determined whether the local parameter is within the range of the preset update parameter, and if so, the corresponding resource update package is downloaded according to the resource download address, and
  • the application's resources are updated based on the downloaded resource update package and the set update type.
  • the embodiments of the present invention can reduce manual operations and implement automatic update of resources in a situation where the user is not aware, improve the user experience, and improve the accuracy of the update resources by further verifying the integrity of the updated resources.
  • FIG. 4 is a schematic flowchart of another method for resource update according to an embodiment of the present invention. As shown in the figure, the method for updating a resource includes steps S401 to S409.
  • update information related to the application includes a preset update parameter and a resource download address.
  • the update type includes a forced update and a silent update, wherein the forced update is to acquire a resource update package in the current startup process of the application, and update the resource in the application according to the obtained resource update package; the silent update is in the application.
  • the resource update package is obtained during the startup process, and the application resource is updated according to the resource update in the next startup of the application.
  • different identifiers are set corresponding to the mandatory update and the silent update, for example, the forced update identifier is set to “A”, and the silent update is set to “B” for automatic identification.
  • the forced update and the silent update can be set to two states of “0” and “1” corresponding to one binary bit, which is not limited herein.
  • the resource in the application is replaced according to the acquired resource update package.
  • the obtained resource update package may be an update of a part of a picture, a file, or the like of the corresponding application, or an update of a loan module in a different module such as a wealth management application in the application
  • the forced update is performed according to the forced update. Simply replace the corresponding resource in the application.
  • the application running in the background of the terminal can directly replace the resources of the corresponding application according to the obtained resource update package, and the current application of the terminal can also set an operation triggering the update instruction, such as The current application is a wealth management application.
  • the current application is a wealth management application.
  • the silent update table includes at least an identifier of the application and a resource update package corresponding to the application. If the update type is identified as a silent update, the obtained resource update package is stored in the silent update table during the current running of the application, and the resource in the application is replaced according to the resource update package after the application is started next time. . In some other embodiments, the silent update table is cleared after the resource update is complete.
  • the embodiment of the present invention determines whether the application needs to update the resource. If the resource needs to be updated, the update information is obtained from the server, where the update information includes the preset update parameter and the resource download address, and then according to the pre- The update parameter is configured to obtain a local parameter corresponding to the preset update parameter, and determine whether the local parameter is within the range of the preset update parameter, and if yes, download the corresponding resource update package according to the resource download address, and identify the set update type. If the update type is forced update, replace the resource in the application according to the obtained resource update package. If the update type is silent update, replace the applied resource according to the resource update package after the application is started next time.
  • the embodiment of the invention can reduce the manual operation and realize the automatic update of the resource without the user's perception, thereby improving the user experience.
  • FIG. 5 is a schematic block diagram of a terminal according to an embodiment of the present invention.
  • the terminal 50 in the present embodiment as shown in the figure includes a first judging unit 51, a first obtaining unit 52, a second obtaining unit 53, a second judging unit 54, a downloading unit 55, and an updating unit 56.
  • the first determining unit 51 is configured to determine, if the application in the terminal is started, whether the application needs to update resources.
  • a plurality of different applications are usually installed in the terminal to meet different usage requirements of the user, and the user can start the application by clicking a shortcut icon applied on the terminal interface, and the terminal often starts multiple different applications at the same time.
  • the terminal often starts multiple different applications at the same time.
  • one of the applications is the current application
  • other launched applications run in the background of the terminal for the user to quickly switch between different applications.
  • the resources include files, pictures, characters, etc. added to the application to satisfy the usage function of the application.
  • the developer of the application When an application is installed on the terminal, the developer of the application will later develop a new version of the application or develop resources such as plug-ins related to the application to fix bugs in the in-app resource or optimize the performance of the application, and by using the application.
  • the resources are updated to new resources to improve the performance and stability of the application.
  • the first obtaining unit 52 is configured to: if the application needs to update the resource, obtain update information related to the application from the server, where the update information includes a preset update parameter, and a resource download address.
  • the application needs to update the resource, it indicates that the application has released a new resource on the server, and in order to update the resource of the application, the update information related to the application needs to be obtained from the server.
  • the update information includes at least a preset update parameter and a download address of the resource.
  • the preset update parameter is used to determine whether the update condition is met, and the preset update parameter includes, for example, a preset model, a resource version number, an operating system, an application version number, and the like.
  • the download address of the resource may be a storage path of the resource in the server or a download address on the network to obtain a new resource according to the download address of the resource.
  • a resource corresponding to multiple different applications is usually stored.
  • the server may set a mapping relationship list, such as the identifier of the application and the storage path of the latest resource corresponding thereto. Corresponding storage to quickly find out if the app has released new resources and quickly finds the download address of the new resource.
  • the second obtaining unit 53 is configured to acquire a local parameter corresponding to the preset update parameter according to the preset update parameter.
  • the preset update parameter includes a preset model, a resource version number, an operating system, a version number of the application, and the like.
  • the preset update parameter is obtained according to the preset update parameter.
  • the local parameter is the model of the terminal, the version number of the resource in the terminal, the operating system in the terminal, and the version number applied in the terminal.
  • the second determining unit 54 is configured to determine whether the local parameter is within the range of the preset update parameter.
  • determining whether the obtained local parameter is within the preset update parameter range to determine whether the application of the terminal meets the update condition for example, including determining whether the model of the terminal is a preset model, and the preset model includes at least one
  • the model can determine whether the resource can run on the terminal of the model by determining whether the terminal model is a preset model; determining whether the resource version number in the terminal is smaller than the resource version number in the server, that is, determining the The resources in the terminal are compared to the resources in the server. If the operating system in the terminal is within the preset operating system, the operating system in the terminal needs to be judged whether the operating system in the terminal is running.
  • the default operating system range is determined; whether the version number of the application is within the preset application version number, that is, the version of the application may be updated according to the new resource; when the local parameter is in the preset update parameter range If the application meets the conditions for resource update, if the local parameter is not within the preset update parameter range Indicating that the application does not meet the conditions for resource updates. It should be noted that, when each local parameter is within the preset update parameter range, the application satisfies the condition of resource update; if any local parameter is not within the preset update parameter range, , the application does not meet the criteria for resource update.
  • the downloading unit 55 is configured to download the corresponding resource update package according to the resource download address.
  • the application satisfies the resource update condition, and downloads a corresponding resource update package according to the resource download address, where the resource update package includes the required update of the application. Resources.
  • the updating unit 56 is configured to update resources in the application according to the downloaded resource update package and the set update type. Specifically, the resources in the application are updated according to the downloaded resource update package and the set update type.
  • the update type includes a forced update and a silent update, wherein the forced update is to obtain a resource update package during the current startup process of the application, and update the resource in the application according to the obtained resource update package; silently update to the current application.
  • the resource update package is obtained during startup, and the resource of the application is updated according to the resource update in the next startup of the application.
  • the first determination unit 51 includes a third acquisition unit 511, a fourth acquisition unit 512, a first comparison unit 513, and a determination unit 514.
  • the third obtaining unit 511 is configured to obtain a first signature file from a server, where the first signature file corresponds to a newly released resource on the server. Specifically, after the resource development is completed and released to the server, the first signature file is generated for the resource, that is, the first signature file is formed after the MD5 signature is performed on the resource on the server. The first signature file corresponds to the newly released resource on the server. If the latest resource is not published on the server, the first signature file corresponds to the current latest resource in the server.
  • the fourth obtaining unit 5122 is configured to acquire a second signature file corresponding to the local resource.
  • the terminal locally acquires the resource corresponding to the resource after acquiring the resource from the server.
  • the signature file corresponding to the local resource is set as the second signature file. .
  • the first comparison unit 513 is configured to compare whether the first signature file and the second signature file are the same.
  • the determining unit 514 is configured to determine that the application needs to update the resource if they are not the same.
  • the server it is determined whether a new resource is released on the server by comparing the first signature file corresponding to the latest resource on the server with the second signature file corresponding to the local resource. If the first signature file is the same as the second signature file, the latest resource is not released on the server, that is, the current latest resource on the server is the same as the local resource on the terminal, so the application resource does not need to be updated;
  • the signature file is different from the second signature file, which means that a new resource is published on the server, and the application's resources need to be updated according to the new resources published on the server.
  • the first determining unit 51 determines whether the application needs to update the resource. If the resource needs to be updated, the first obtaining unit 52 obtains the update information from the server, and the update information includes Presetting the update parameter and the resource download address, and then acquiring the local parameter corresponding to the preset update parameter by the second obtaining unit 53 according to the preset update parameter, and determining, by the second determining unit 54, whether the local parameter is in the preset update parameter If it is, the downloading unit 55 downloads the corresponding resource update package according to the resource download address, and updates the resource of the application by the update unit 56 according to the downloaded resource update package and the set update type.
  • the embodiment of the invention can reduce the manual operation and realize automatic update of resources and improve user experience without the user's perception.
  • FIG. 7 is a schematic block diagram of another terminal according to an embodiment of the present invention.
  • the terminal 60 in this embodiment as shown in the figure includes a first determining unit 61, a first obtaining unit 62, a signing unit 63, a second comparing unit 64, a second obtaining unit 65, a second determining unit 66, and a downloading unit. 67, and update unit 68.
  • the first determining unit 61 is configured to determine, if the application in the terminal is started, whether the application needs to update resources.
  • the first obtaining unit 62 is configured to: if the application needs to update the resource, obtain update information related to the application from the server, where the update information includes a preset update parameter, and a resource download address.
  • the signing unit 63 is configured to perform signature processing on the update information acquired from the server to obtain a third signature file.
  • the signature processing is to perform MD5 signature on the update information to obtain a third signature file.
  • MD5 Message Digest Algorithm MD5
  • MD5 is a hash function widely used in the field of computer security to provide message integrity protection to ensure complete and consistent information transmission.
  • a second comparison unit 64 configured to compare whether the third signature file and the first signature file are the same; if the same, perform local acquisition corresponding to the preset update parameter according to the preset update parameter The steps of the parameters.
  • whether the third signature file and the first signature file are the same can be determined by comparing the MD5 value. If the MD5 value is the same, the third signature file is the same as the first signature file; if the MD5 value is Different, the third signature file is different from the first signature file. It can be understood that the integrity of the update resource acquired from the server is further verified by comparing the first signature file with the third signature file to improve the accuracy of the application update resource.
  • the second obtaining unit 65 is configured to acquire a local parameter corresponding to the preset update parameter according to the preset update parameter.
  • the local parameter corresponding to the preset update parameter is obtained according to the preset update parameter. If the third signature file is different from the second signature file, the process ends.
  • the second determining unit 66 is configured to determine whether the local parameter is within the range of the preset update parameter.
  • the download unit 67 is configured to download the corresponding resource update package according to the resource download address.
  • the updating unit 68 is configured to update resources in the application according to the downloaded resource update package and the set update type.
  • the first determining unit 61 determines whether the application needs to update the resource, and if the resource needs to be updated, the first obtaining unit 62 obtains the update information from the server, where the update information includes the preset update parameter and the resource download address, and The update information is signed by the signature unit 63 to obtain a third signature file, and then the second comparison unit 64 compares whether the third signature file is identical to the first signature file to further verify the integrity of the update information.
  • the third signature file is the same as the first signature file, and the second acquisition unit 65 acquires the local parameter corresponding to the preset update parameter according to the preset update parameter, and determines, by the second determination unit 66, whether the local parameter is in the preset update parameter.
  • the downloading unit 67 downloads the corresponding resource update package according to the resource download address, and updates the resource of the application according to the downloaded resource update package and the set update type by the update unit 68.
  • the embodiments of the present invention can reduce manual operations and implement automatic update of resources in a situation where the user is not aware, improve the user experience, and improve the accuracy of the update resources by further verifying the integrity of the updated resources.
  • FIG. 8 is a schematic block diagram of another terminal according to an embodiment of the present invention.
  • the terminal 70 in this embodiment as shown in the figure includes a first determining unit 71, a first obtaining unit 72, a second obtaining unit 73, a second determining unit 74, a downloading unit 75, an identifying unit 76, and a first replacing unit 77.
  • the first determining unit 71 is configured to determine, if the application in the terminal is started, whether the application needs to update resources.
  • the first obtaining unit 72 is configured to: if the application needs to update the resource, obtain update information related to the application from the server, where the update information includes a preset update parameter, and a resource download address.
  • the second obtaining unit 73 is configured to acquire a local parameter corresponding to the preset update parameter according to the preset update parameter.
  • the second determining unit 74 is configured to determine whether the local parameter is within the range of the preset update parameter.
  • the downloading unit 75 is configured to acquire a local parameter corresponding to the preset update parameter according to the preset update parameter.
  • the identifying unit 76 is configured to perform signature processing on the update information acquired from the server to obtain a third signature file.
  • the update type includes a forced update and a silent update, wherein the forced update is to acquire a resource update package in the current startup process of the application, and update the resource in the application according to the obtained resource update package; the silent update is in the application.
  • the resource update package is obtained during the startup process, and the application resource is updated according to the resource update in the next startup of the application.
  • different identifiers are set corresponding to the mandatory update and the silent update, for example, the forced update identifier is set to “A”, and the silent update is set to “B” for automatic identification.
  • the forced update and the silent update can be set to two states of “0” and “1” corresponding to one binary bit, which is not limited herein.
  • the first replacing unit 77 is configured to replace the resources in the application according to the acquired resource update package if the update type is mandatory update. Specifically, if the update type is mandatory update, the resources in the application are replaced according to the obtained resource update package. It should be noted that, since the obtained resource update package may be an update of a part of a picture, a file, or the like of the corresponding application, or an update of a loan module in a different module such as a wealth management application in the application, the forced update is performed according to the forced update. Simply replace the corresponding resource in the application.
  • the application running in the background of the terminal can directly replace the resources of the corresponding application according to the obtained resource update package, and the current application of the terminal can also set an operation triggering the update instruction, such as The current application is a wealth management application.
  • the current application is a wealth management application.
  • the saving unit 78 is configured to save the obtained resource update package to the silent update table of the application if the update type is a silent update.
  • the second replacing unit 79 is configured to replace the resources in the application according to the resource update package if it is detected that the application in the terminal is started again.
  • the silent update table includes at least an identifier of the application and a resource update package corresponding to the application. If the update type is identified as a silent update, the obtained resource update package is stored in the silent update table during the current running of the application, and the resource in the application is replaced according to the resource update package after the application is started next time. . In some other embodiments, the silent update table is cleared after the resource update is complete.
  • the first determining unit 71 determines whether the application needs to update the resource, and if the resource needs to be updated, the first obtaining unit 72 obtains the update information from the server, and the update information includes the pre- The update parameter and the resource download address are set, and then the second obtaining unit 73 acquires the local parameter corresponding to the preset update parameter according to the preset update parameter, and determines, by the second determining unit 74, whether the local parameter is in the range of the preset update parameter. If yes, the download unit 75 downloads the corresponding resource update package according to the resource download address, and the identification unit 76 identifies the set update type. If the update type is forced update, the first replacement unit 77 updates the package according to the acquired resource.
  • the resource in the application is replaced. If the update type is silent update, the application resource is replaced by the second update unit 79 according to the resource update package after the next startup of the application.
  • the embodiment of the invention can reduce the manual operation and realize the automatic update of the resource without the user's perception, thereby improving the user experience.
  • the units described in the embodiments of the present invention may also be stored in a computer readable storage medium if they are implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions.
  • a computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention.
  • the storage medium includes a USB flash drive, a removable hard disk, a read-only memory (ROM), and a random access memory (RAM, Random). Access Memory)
  • RAM random access memory
  • embodiments of the present invention also describe a computer readable storage medium having one or more programs, the one or more programs being executable by one or more processors to implement the following steps: Detecting that the application in the terminal is started, determining whether the application needs to update the resource; if the application needs to update the resource, obtaining update information related to the application from the server, where the update information includes preset update parameters, and a resource download address; obtaining a local parameter corresponding to the preset update parameter according to the preset update parameter; determining whether the local parameter is within a range of the preset update parameter; if yes, downloading according to the resource The resource update package corresponding to the address download; and updating the resource in the application according to the downloaded resource update package and the set update type.
  • the determining whether the application needs to update a resource comprises the steps of: acquiring a first signature file from a server, where the first signature file corresponds to a newly released resource on the server; acquiring the local resource Corresponding second signature file; comparing whether the first signature file and the second signature file are the same; if not, determining that the application needs to update resources.
  • said one or more programs are further executable by said one or more processors to: perform a signature process on said update information obtained from said server to obtain a third signature file; Comparing whether the third signature file is the same as the first signature file; if the same, performing the step of acquiring a local parameter corresponding to the preset update parameter according to the preset update parameter.
  • the update type includes a forced update and a silent update
  • the updating the resource in the application according to the downloaded resource update package and the set update type includes the following steps: identifying a set update type;
  • the update type is a forced update, and the resource in the application is replaced according to the obtained resource update package.
  • the one or more programs are further executable by the one or more processors to implement the step of saving the obtained resource update package to the application if the update type is a silent update Silently updating the table; if it is detected that the application in the terminal is started again, replacing the resource in the application according to the resource update package.
  • FIG. 9 is a schematic block diagram of a resource update device according to an embodiment of the present invention.
  • the resource update device 80 includes a memory 81, one or several processors 82, one or several input devices 83, one or several output devices 84.
  • the processor 82, the input device 83, the output device 84, and the memory 81 are connected by a bus 85.
  • the memory 81 is used to store program data with various functions.
  • the data stored in the memory 81 in the embodiment of the present invention includes program data that can be called and run.
  • the memory 81 of the embodiment of the present invention may be a system memory such as volatile (such as RAM), non-volatile (such as ROM, flash memory, etc.), or a combination of the two.
  • the memory 66 of the embodiment of the present invention may also be an external memory outside the system, such as a magnetic disk, an optical disk, a magnetic tape, or the like.
  • the input device 83 is for the user to launch an application in the terminal.
  • the input device 93 of the embodiment of the present invention may include a keyboard, a mouse, a photoelectric input device, a sound input device, a touch input device, a scanner, and the like.
  • the output device 84 is for outputting a resource update result, and the output device 84 may be a display, a speaker, a printer, or the like.
  • the processor 82 reads an instruction in the memory 81 and performs an operation according to the instruction: if it is detected that an application in the terminal is started, determining whether the application needs to update a resource; if the application needs to update a resource, Acquiring update information related to the application, the update information includes a preset update parameter, and a resource download address; and acquiring a local parameter corresponding to the preset update parameter according to the preset update parameter; Whether the local parameter is within the range of the preset update parameter; if yes, downloading a corresponding resource update package according to the resource download address; and updating the application according to the downloaded resource update package and the set update type Resources in.
  • the determining whether the application needs to update the resource comprises: acquiring a first signature file from a server, where the first signature file corresponds to a newly released resource on the server; and acquiring a corresponding to the local resource Two signature files; comparing whether the first signature file and the second signature file are the same; if not, determining that the application needs to update resources.
  • the processor 82 further performs an operation of performing signature processing on the update information acquired from the server to obtain a third signature file, and comparing the third signature file with the first signature file. Whether they are the same; if they are the same, performing the step of acquiring a local parameter corresponding to the preset update parameter according to the preset update parameter.
  • the update type includes a forced update and a silent update
  • the updating the resource in the application according to the downloaded resource update package and the set update type comprises: identifying a set update type; if the update The type is a forced update, and the resources in the application are replaced according to the obtained resource update package.
  • the processor 82 further performs the following operations: if the update type is a silent update, save the obtained resource update package to the silent update table of the application; if it is detected that the application in the terminal is started again Replacing resources in the application according to the resource update package.
  • the disclosed terminal and method may be implemented in other manners.
  • the device device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined. Or it can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device device or unit, or an electrical, mechanical or other form of connection.
  • the units in the terminal in the embodiment of the present invention may be combined, divided, and deleted according to actual needs.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the embodiments of the present invention.
  • each functional unit in each embodiment of the present invention may be integrated into one processor, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the technical solution of the present invention contributes in essence or to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause a computer device (which may be a personal computer, terminal, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: U Disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access
  • RAM Random Access

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

Un mode de réalisation de la présente invention se rapporte à un procédé de mise à jour de ressources. Ledit procédé consiste à : déterminer si une application nécessite une ressource mise à jour s'il est détecté que l'application dans un terminal est activée ; si l'application nécessite la ressource mise à jour, acquérir, depuis un serveur, des informations de mise à jour relatives à l'application, les informations de mise à jour comprenant un paramètre de mise à jour prédéfini et une adresse de téléchargement de ressource ; acquérir un paramètre local correspondant au paramètre de mise à jour prédéfini selon le paramètre de mise à jour prédéfini ; déterminer si le paramètre local est dans une plage du paramètre de mise à jour prédéfini ; s'il en est ainsi, télécharger un paquet de mise à jour de ressources correspondant selon l'adresse de téléchargement de ressource ; et mettre à jour une ressource de l'application selon le paquet de mise à jour de ressources téléchargé et selon un type de mise à jour configuré. Le mode de réalisation de la présente invention se rapporte en outre à un terminal, à un support de stockage lisible par ordinateur et à un dispositif de mise à jour de ressources. Le mode de réalisation de la présente invention peut réduire des opérations manuelles et réalise une mise à jour automatique d'une ressource sans impliquer l'utilisateur, ce qui améliore la convivialité d'utilisation.
PCT/CN2017/076521 2016-12-28 2017-03-14 Procédé de mise à jour de ressources, terminal, support de stockage lisible par ordinateur et dispositif de mise à jour de ressources WO2018120429A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201611236537.3 2016-12-28
CN201611236537.3A CN106648787A (zh) 2016-12-28 2016-12-28 一种资源更新的方法及终端

Publications (1)

Publication Number Publication Date
WO2018120429A1 true WO2018120429A1 (fr) 2018-07-05

Family

ID=58832218

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/076521 WO2018120429A1 (fr) 2016-12-28 2017-03-14 Procédé de mise à jour de ressources, terminal, support de stockage lisible par ordinateur et dispositif de mise à jour de ressources

Country Status (2)

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

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110297647A (zh) * 2019-05-29 2019-10-01 福建天泉教育科技有限公司 一种前端工程更新npm包的方法及终端
CN111142949A (zh) * 2019-12-26 2020-05-12 联想(北京)有限公司 一种信息处理方法和电子设备
CN112799955A (zh) * 2021-02-08 2021-05-14 腾讯科技(深圳)有限公司 模型变更的检测方法、装置和存储介质及电子设备
CN112913267A (zh) * 2018-09-25 2021-06-04 深圳市欢太科技有限公司 资源处理方法、电子设备和计算机可读存储介质
CN115309431A (zh) * 2022-09-29 2022-11-08 荣耀终端有限公司 一种参数更新方法、可读介质和电子设备

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107315606A (zh) 2017-06-14 2017-11-03 北京小米移动软件有限公司 应用更新方法及装置
CN109787802B (zh) * 2017-11-15 2022-04-29 阿里巴巴集团控股有限公司 一种资源操作方法及控制台
CN108182092A (zh) * 2017-12-13 2018-06-19 广州视源电子科技股份有限公司 更新应用程序资源显示的方法及装置
CN107844315B (zh) * 2017-12-27 2021-02-09 北京酷我科技有限公司 一种Android中app主题皮肤升级的策略
CN108491216B (zh) * 2018-03-05 2021-07-13 北京指掌易科技有限公司 一种Android系统无感知应用安装升级的方法
CN108845816B (zh) * 2018-06-22 2021-09-10 平安科技(深圳)有限公司 应用程序更新方法、系统、计算机设备及存储介质
CN110990038B (zh) * 2019-11-29 2023-08-22 中化信息技术有限公司 用于应用局部更新的方法、装置、电子设备和介质
CN113590237A (zh) * 2020-04-30 2021-11-02 安徽华米信息科技有限公司 资源更新方法、装置及设备
CN112165512B (zh) * 2020-09-08 2023-09-26 深圳市贰陆陆科技有限公司 一种文件发布方法、装置、终端设备及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1763713A (zh) * 2004-10-22 2006-04-26 华为技术有限公司 一种移动终端软件版本升级方法
CN101026850A (zh) * 2007-03-09 2007-08-29 华为技术有限公司 移动终端软件自动升级的方法及系统、移动终端和软件管理服务器
CN101860853A (zh) * 2010-06-09 2010-10-13 中兴通讯股份有限公司 软件升级方法和装置
US9075568B1 (en) * 2012-03-21 2015-07-07 Amazon Technologies, Inc. Dynamic device skins

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103455343A (zh) * 2013-07-22 2013-12-18 小米科技有限责任公司 一种更新应用程序的方法和装置
CN105743984A (zh) * 2016-03-11 2016-07-06 中国建设银行股份有限公司 自动更新移动应用的方法、设备及系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1763713A (zh) * 2004-10-22 2006-04-26 华为技术有限公司 一种移动终端软件版本升级方法
CN101026850A (zh) * 2007-03-09 2007-08-29 华为技术有限公司 移动终端软件自动升级的方法及系统、移动终端和软件管理服务器
CN101860853A (zh) * 2010-06-09 2010-10-13 中兴通讯股份有限公司 软件升级方法和装置
US9075568B1 (en) * 2012-03-21 2015-07-07 Amazon Technologies, Inc. Dynamic device skins

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112913267A (zh) * 2018-09-25 2021-06-04 深圳市欢太科技有限公司 资源处理方法、电子设备和计算机可读存储介质
CN112913267B (zh) * 2018-09-25 2023-01-31 深圳市欢太科技有限公司 资源处理方法、装置、终端、服务器和可读存储介质
CN110297647A (zh) * 2019-05-29 2019-10-01 福建天泉教育科技有限公司 一种前端工程更新npm包的方法及终端
CN110297647B (zh) * 2019-05-29 2023-12-01 福建天泉教育科技有限公司 一种前端工程更新npm包的方法及终端
CN111142949A (zh) * 2019-12-26 2020-05-12 联想(北京)有限公司 一种信息处理方法和电子设备
CN111142949B (zh) * 2019-12-26 2022-03-25 联想(北京)有限公司 一种信息处理方法和电子设备
CN112799955A (zh) * 2021-02-08 2021-05-14 腾讯科技(深圳)有限公司 模型变更的检测方法、装置和存储介质及电子设备
CN112799955B (zh) * 2021-02-08 2023-09-26 腾讯科技(深圳)有限公司 模型变更的检测方法、装置和存储介质及电子设备
CN115309431A (zh) * 2022-09-29 2022-11-08 荣耀终端有限公司 一种参数更新方法、可读介质和电子设备

Also Published As

Publication number Publication date
CN106648787A (zh) 2017-05-10

Similar Documents

Publication Publication Date Title
WO2018120429A1 (fr) Procédé de mise à jour de ressources, terminal, support de stockage lisible par ordinateur et dispositif de mise à jour de ressources
WO2019114262A1 (fr) Procédé de chargement d'interface utilisateur, téléviseur intelligent, et support de stockage lisible par ordinateur
WO2019100531A1 (fr) Procédé de génération de signature numérique et dispositif associé, procédé de vérification et dispositif associé, et support d'informations
WO2019019378A1 (fr) Procédé et appareil de traitement de service, adaptateur et support de stockage lisible par ordinateur
WO2018120457A1 (fr) Procédé de traitement de données, appareil, dispositif et support de stockage lisible par ordinateur
WO2019061612A1 (fr) Procédé et appareil de promotion de produit de prêt et support d'informations lisible par ordinateur
WO2018058919A1 (fr) Procédé, appareil, dispositif de génération d'informations d'identification, et support de stockage lisible par ordinateur
WO2019080247A1 (fr) Procédé, appareil et dispositif pour générer une approbation de police d'assurance, et support d'informations lisible par ordinateur
WO2017054592A1 (fr) Terminal et procédé d'affichage d'interface
WO2017084302A1 (fr) Procédé destiné à la lecture de vidéo de démarrage d'un terminal d'affichage et terminal d'affichage
WO2018082482A1 (fr) Procédé de partage de réseau et procédé et système d'accès à un réseau
WO2018149190A1 (fr) Procédé, dispositif et appareil de débogage de composant et support de stockage lisible par ordinateur
WO2015158219A1 (fr) Appareil et procédé de débogage à distance pour terminal mobile
WO2018233367A1 (fr) Procédé et appareil d'enregistrement de cas, terminal et support de stockage lisible par ordinateur
WO2018188342A1 (fr) Procédé, appareil et dispositif permettant de générer un fichier de script, et support d'informations lisible par ordinateur
WO2018233221A1 (fr) Procédé de sortie sonore multi-fenêtre, télévision et support de stockage lisible par ordinateur
WO2019000801A1 (fr) Procédé, appareil et dispositif de synchronisation de données, et support d'informations lisible par ordinateur
WO2019041851A1 (fr) Procédé de conseil après-vente d'appareil ménager, dispositif électronique et support de stockage lisible par ordinateur
WO2018188196A1 (fr) Procédé de commande de version de données, contrôleur de version de données, dispositif et support de stockage lisible par ordinateur
WO2018227887A1 (fr) Procédé de distribution de publicité vidéo, procédé de génération de publicité vidéo, dispositif, serveur et support d'informations lisible
WO2019000800A1 (fr) Procédé, appareil et dispositif de préparation de justificatifs d'identité, et support de stockage lisible par ordinateur
WO2019024219A1 (fr) Procédé et appareil de génération automatique de document, générateur automatique de document et support
WO2015139594A1 (fr) Procédé, appareil et système de vérification de sécurité
WO2017032122A1 (fr) Procédé et appareil de détection d'un téléviseur numérique
WO2018076875A1 (fr) Procédé de synchronisation de données de sauvegarde, appareil, support de stockage, dispositif électronique, et serveur

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17889098

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 17.09.2019)

122 Ep: pct application non-entry in european phase

Ref document number: 17889098

Country of ref document: EP

Kind code of ref document: A1