CN108108181B - Function updating method and device of application program and computer readable storage medium - Google Patents
Function updating method and device of application program and computer readable storage medium Download PDFInfo
- Publication number
- CN108108181B CN108108181B CN201711344173.5A CN201711344173A CN108108181B CN 108108181 B CN108108181 B CN 108108181B CN 201711344173 A CN201711344173 A CN 201711344173A CN 108108181 B CN108108181 B CN 108108181B
- Authority
- CN
- China
- Prior art keywords
- module
- configuration file
- upgrading
- application program
- upgrade
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
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)
- Stored Programmes (AREA)
Abstract
The invention provides a method and a device for updating functions of an application program and a computer readable storage medium, and the method comprises the steps of firstly, when an android operating system obtains a module upgrading configuration file, determining a second module identifier corresponding to the module upgrading configuration file; then matching the second module identification with each first module identification, and taking the functional module corresponding to the first module identification matched with the second module identification as a target functional module; and finally, the module upgrading configuration file is stored in an upgrading directory of a corresponding target function module, and the module upgrading configuration file in the upgrading directory is loaded so as to update a single function module of the application program, each module upgrading configuration file corresponds to a function module to be updated, a user does not need to download an installation package of the whole application program, the updating time of the application program is shortened, the upgrading accident caused by improper overall updating and upgrading can be reduced, and the user experience is improved.
Description
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method and an apparatus for updating functions of an application program, and a computer-readable storage medium.
Background
The method for updating and upgrading the Application (Application) of the android system at present comprises the following steps: downloading a new version APK (Android Package), installing the new version APK and covering the old version APK. However, an application program usually includes a plurality of functional modules, and in the prior art, modification of a BUG of any module of an android application program requires upgrading of the entire application program, and even if some functional modules in the application program do not have a BUG problem, the functional modules are covered by a downloaded new version APK after being installed and decompressed, which causes waste of data resources and bandwidth.
Disclosure of Invention
The invention mainly aims to provide a method and a device for updating functions of an application program and a computer readable storage medium, and aims to solve the problem of how to upgrade a single function module in an android application program.
In order to achieve the above object, the present invention provides a method for updating a function of an application program, where the application program includes a plurality of function modules, each function module has a different first module identifier, and the method includes:
when the android operating system obtains a module upgrading configuration file, determining a second module identifier corresponding to the module upgrading configuration file;
matching the second module identification with each first module identification, and taking the functional module corresponding to the first module identification matched with the second module identification as a target functional module;
storing the module upgrading configuration file to an upgrading directory of a corresponding target function module;
and loading the module upgrading configuration file under the upgrading directory to realize the function upgrading of the application program.
Preferably, when the android operating system acquires the module upgrade configuration file, determining a second module identifier corresponding to the module upgrade configuration file specifically includes:
when the android operating system acquires a module upgrading configuration file, analyzing the module upgrading configuration file to acquire a second module identifier and an upgrading version of the module upgrading configuration file;
correspondingly, the storing the module upgrade configuration file to the upgrade directory of the corresponding target function module specifically includes:
judging whether a history configuration file exists in the upgrading directory;
if the upgrade directory has a historical configuration file, acquiring a historical version of the historical configuration file;
and comparing the historical version information with the upgrading version information, deleting the historical configuration file under the upgrading directory when the comparison result meets a preset condition, and storing the module upgrading configuration file to the upgrading directory.
Preferably, after determining whether a history configuration file exists in the upgrade directory, the method further includes:
and when the upgrade catalog does not have a historical configuration file, saving the module upgrade configuration file to the upgrade catalog.
Preferably, before determining the second module identifier corresponding to the module upgrade configuration file when the android operating system acquires the module upgrade configuration file, the method further includes:
downloading a module upgrade package of the application program from a server;
and analyzing the module upgrading package to obtain a module upgrading configuration file.
Preferably, before the downloading the module upgrade package of the application from the server, the method further comprises:
receiving update information sent by a server;
correspondingly, the downloading the module upgrade package of the application program from the server specifically includes:
and downloading a module upgrading package of the application program from the server according to the updating information.
Preferably, after receiving the update information sent by the server, the method further includes:
displaying the updating information;
and responding to an upgrade confirmation instruction input by a user based on the updating information, and executing the step of downloading the module upgrade package of the application program from the server according to the updating information.
Preferably, the loading the module upgrade configuration file under the upgrade directory to implement function update of the application program specifically includes:
and loading a module upgrading configuration file under the upgrading directory through a DexClassLoader loader of the android operating system so as to realize the function updating of the application program.
Preferably, after the module upgrade configuration file under the upgrade directory is loaded to implement function update of the application program, the method further includes:
responding to a module initialization instruction input by a user, and determining a function module to be restored corresponding to the module initialization instruction and an initial configuration file of the function module to be restored;
and loading the initial configuration file to carry out initialization setting on the module to be restored.
In addition, in order to achieve the above object, the present invention further provides a function updating apparatus for an application program, the function updating apparatus for an application program including a memory, a processor, and a function updating program for an application program stored in the memory and operable on the processor, the function updating program for an application program being configured to implement the steps of the function updating method for an application program as described above.
In order to achieve the above object, the present invention further provides a computer-readable storage medium having stored thereon a function update program of an application program, which when executed by a processor, implements the steps of the function update method of the application program as described above.
Firstly, when an android operating system acquires a module upgrading configuration file, determining a second module identifier corresponding to the module upgrading configuration file; then matching the second module identification with each first module identification, and taking the functional module corresponding to the first module identification matched with the second module identification as a target functional module; and finally, the module upgrading configuration file is stored in an upgrading directory of a corresponding target function module, and the module upgrading configuration file in the upgrading directory is loaded so as to update a single function module of the application program, each module upgrading configuration file corresponds to a function module to be updated, a user does not need to download an installation package of the whole application program, the updating time of the application program is shortened, the waste of network bandwidth is reduced, upgrading accidents caused by improper overall updating and upgrading can be reduced, and the user experience is improved.
Drawings
Fig. 1 is a schematic structural diagram of a function updating apparatus for an application program in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for updating functions of an application according to a first embodiment of the present invention;
fig. 3 is a flowchart illustrating a function updating method of an application according to a second embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an application function updating apparatus in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the function updating means of the application program may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may be a USB interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high speed RAM memory. The function updating device of the application program is characterized by being a terminal device based on an android operating system, and the terminal device comprises the function updating program of the application program.
Those skilled in the art will appreciate that the device configuration shown in fig. 1 does not constitute a limitation of the functionality updating means of the application program and may comprise more or less components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, the memory 1005 may include an operating system, a network interface module, a user interface module, and a function update program of an application program, the application program includes a plurality of function modules, each function module has a different first module identifier, and the apparatus calls the function update program of the application program stored in the memory 1005 through the processor 1001 and performs the following operations:
when the android operating system obtains a module upgrading configuration file, determining a second module identifier corresponding to the module upgrading configuration file;
matching the second module identification with each first module identification, and taking the functional module corresponding to the first module identification matched with the second module identification as a target functional module;
storing the module upgrading configuration file to an upgrading directory of a corresponding target function module;
and loading the module upgrading configuration file under the upgrading directory to realize the function upgrading of the application program.
Further, the function updating means of the application program may call the function updating program of the application program stored in the memory 1005 by the processor 1001, and also perform the following operations:
when the android operating system acquires a module upgrading configuration file, analyzing the module upgrading configuration file to acquire a second module identifier and an upgrading version of the module upgrading configuration file;
accordingly, the function update means of the application program can call the function update program of the application program stored in the memory 1005 by the processor 1001, and also perform the following operations:
judging whether a history configuration file exists in the upgrading directory;
if the upgrade directory has a historical configuration file, acquiring a historical version of the historical configuration file;
and comparing the historical version information with the upgrading version information, deleting the historical configuration file under the upgrading directory when the comparison result meets a preset condition, and storing the module upgrading configuration file to the upgrading directory.
Further, the function updating means of the application program may call the function updating program of the application program stored in the memory 1005 by the processor 1001, and also perform the following operations:
and when the upgrade catalog does not have a historical configuration file, saving the module upgrade configuration file to the upgrade catalog.
Further, the function updating means of the application program may call the function updating program of the application program stored in the memory 1005 by the processor 1001, and also perform the following operations:
downloading a module upgrade package of the application program from a server;
and analyzing the module upgrading package to obtain a module upgrading configuration file.
Further, the function updating means of the application program may call the function updating program of the application program stored in the memory 1005 by the processor 1001, and also perform the following operations:
receiving update information sent by a server;
correspondingly, the downloading the module upgrade package of the application program from the server specifically includes:
and downloading a module upgrading package of the application program from the server according to the updating information.
Further, the function updating means of the application program may call the function updating program of the application program stored in the memory 1005 by the processor 1001, and also perform the following operations:
displaying the updating information;
and responding to an upgrade confirmation instruction input by a user based on the updating information, and executing the step of downloading the module upgrade package of the application program from the server according to the updating information.
Further, the function updating means of the application program may call the function updating program of the application program stored in the memory 1005 by the processor 1001, and also perform the following operations:
and loading a module upgrading configuration file under the upgrading directory through a DexClassLoader loader of the android operating system so as to realize the function updating of the application program.
Further, the function updating means of the application program may call the function updating program of the application program stored in the memory 1005 by the processor 1001, and also perform the following operations:
responding to a module initialization instruction input by a user, and determining a function module to be restored corresponding to the module initialization instruction and an initial configuration file of the function module to be restored;
and loading the initial configuration file to carry out initialization setting on the module to be restored.
In this embodiment, first, when an android operating system obtains a module upgrade configuration file, a second module identifier corresponding to the module upgrade configuration file is determined; then matching the second module identification with each first module identification, and taking the functional module corresponding to the first module identification matched with the second module identification as a target functional module; and finally, the module upgrading configuration file is stored in an upgrading directory of a corresponding target function module, and the module upgrading configuration file in the upgrading directory is loaded so as to update a single function module of the application program, each module upgrading configuration file corresponds to a function module to be updated, a user does not need to download an installation package of the whole application program, the updating time of the application program is shortened, the waste of network bandwidth is reduced, upgrading accidents caused by improper overall updating and upgrading can be reduced, and the user experience is improved.
Based on the above hardware structure, an embodiment of a method for updating functions of an application program according to the present invention is provided.
Referring to fig. 2, fig. 2 is a flowchart illustrating a function updating method for an application according to a first embodiment of the present invention.
In this embodiment, the application program includes a plurality of function modules, each function module has a different first module identifier, and the function updating method of the application program includes the following steps:
step S10: when the android operating system obtains a module upgrading configuration file, determining a second module identifier corresponding to the module upgrading configuration file;
it should be noted that the execution main body of the present embodiment may be a processor of a terminal device based on an android operating system, and this embodiment takes a mobile phone as the terminal device of the android operating system as an example for description.
It can be understood that, an android phone APP usually has a plurality of functional modules, for example, one e-commerce APP will at least include a buyer module, a seller module, a login module, and so on, and different functional modules will have different first module identifiers to distinguish the functional modules, for example, the first module identifier of the buyer module may be a business module, the first module identifier of the seller module may be a SellModule, the first module identifier of the login module may be a logmodule, and the above modules may be packaged in a JAR format into an initial module configuration file configFile to be stored in an asset directory of the APP; when an application program is initialized and a user uses the application program, a processor of the android mobile phone can load an initial module configuration file configFile in an asset directory through a DexClassLoader loader of an android operating system, and predefined interface classes in the initial module configuration file configFile and various methods corresponding to the interface classes are obtained by utilizing a JAVA reflection mechanism.
In a specific implementation, when the application needs to be updated, a server corresponding to the client (i.e., the application) sends an update Message to the android phone to notify the user that a module upgrade package needs to be downloaded, where the module upgrade package may be an upgrade package encrypted by using an MD5(Message Digest MD 5). And after the android mobile phone downloads the module upgrading package of the application program from the server, analyzing the module upgrading package to obtain a module upgrading configuration file. Correspondingly, the module upgrade configuration file is also a configuration file packaged in JAR format, for example, the file may be represented as xxxxmoleimpupdate. It should be noted that, in this embodiment, each module upgrade configuration file corresponds to only one functional module that needs to be updated in the application program.
If a function module of the application needs to be updated, the server sends an upgrade package containing a module upgrade configuration file of the function module to be updated, where the module upgrade configuration file is specifically expressed as loginmoduleimpdate.
Step S20: matching the second module identification with each first module identification, and taking the functional module corresponding to the first module identification matched with the second module identification as a target functional module;
it can be understood that after the processor obtains the second module identifier loginmoduleulemp of the module upgrade configuration file, the processor compares and matches the second module identifier loginmoduleup with the first module identifiers of the functional modules, and finally takes the login functional module corresponding to the first module identifier LoginModule matched with the second module identifier loginmoduleup as the target functional module.
Step S30: storing the module upgrading configuration file to an upgrading directory of a corresponding target function module;
it can be understood that the initial module configuration file configFile of the application program is stored in the asset directory of the application program, and is used for receiving a module initialization instruction input by a user to restore the module initialization instruction to factory settings; each function module of the application program corresponds to an upgrade directory respectively and is used for storing module upgrade configuration files.
Step S40: and loading the module upgrading configuration file under the upgrading directory to realize the function upgrading of the application program.
In a specific implementation, a processor of the android phone dynamically loads a module upgrade configuration file under the upgrade directory through a dexClassLoader loader of an android operating system, and acquires a predefined interface class in the module upgrade configuration file and various methods corresponding to the interface class by using a JAVA reflection mechanism, so as to update functions corresponding to the target function module.
Further, before the step S10, the method further includes: receiving update information sent by a server, and displaying the update information, so that whether a user needs to update or not can be promoted, and if the user needs to update, the android mobile phone processor of the embodiment can respond to an update confirmation instruction input by the user based on the update information, and execute the step of downloading a module update package of the application program from the server according to the update information.
In this embodiment, first, when an android operating system obtains a module upgrade configuration file, a second module identifier corresponding to the module upgrade configuration file is determined; then matching the second module identification with each first module identification, and taking the functional module corresponding to the first module identification matched with the second module identification as a target functional module; and finally, the module upgrading configuration file is stored in an upgrading directory of a corresponding target function module, and the module upgrading configuration file in the upgrading directory is loaded so as to update a single function module of the application program, each module upgrading configuration file corresponds to a function module to be updated, a user does not need to download an installation package of the whole application program, the updating time of the application program is shortened, the waste of network bandwidth is reduced, upgrading accidents caused by improper overall updating and upgrading can be reduced, and the user experience is improved.
Referring to fig. 3, fig. 3 is a flowchart illustrating a method for updating functions of an application according to a second embodiment of the present invention, and a second embodiment of the method for updating functions of an application according to the present invention is provided based on fig. 2.
In this embodiment, the step S10 specifically includes:
step S101: when the android operating system acquires a module upgrading configuration file, analyzing the module upgrading configuration file to acquire a second module identifier and an upgrading version of the module upgrading configuration file;
it can be understood that, in this embodiment, if the application needs to be updated, the server side sends update information to each terminal device on which the (client) application is installed, so as to notify the user that a corresponding module upgrade package containing a module upgrade configuration file xxxxmoduleimmpupdate.cnf (for example, a login function module needs to be updated, the module upgrade configuration file is loginmoduleimmpupdate.cnf) needs to be downloaded, where the module upgrade configuration file includes a corresponding upgrade version.
Correspondingly, the step S30 specifically includes:
step S301: judging whether a history configuration file exists in the upgrading directory;
it can be understood that, the target function module of the application program may be updated more than once before, or may need to be updated for the first time, then the processor first needs to determine whether a module upgrade configuration file downloaded before the update exists in the upgrade directory of the target function module, that is, a historical configuration file;
if the upgrade directory has a history configuration file, the step S302 is executed, and then the step S303 is executed. If the upgrade directory does not have a history configuration file, the step of saving the module upgrade configuration file to the upgrade directory in step S320 is directly performed.
Step S320: and when the upgrade catalog does not have a historical configuration file, saving the module upgrade configuration file to the upgrade catalog.
In a specific implementation, when the upgrade directory does not have a history configuration file, the module upgrade configuration file xxxxmoduleimmpupdate. cnf is stored in the upgrade directory, and the module upgrade configuration file is renamed as xxxxmoduleimmpok. And the final processor dynamically loads a module upgrading configuration file XXXXModule eImmOK.cnf under the upgrading directory through a DexClassLoader class loader of an android operating system, and acquires a predefined interface class in the module upgrading configuration file XXModeImmOK.cnf and various methods corresponding to the interface class by utilizing a JAVA reflection mechanism so as to update the target function module.
Step S302: if the upgrade directory has a historical configuration file, acquiring a historical version of the historical configuration file;
understandably, if the historical configuration file XXXMulimpOK.cnf exists in the upgrading directory, acquiring a historical version of the historical configuration file XXXMulimpOK.cnf;
step S303: and comparing the historical version information with the upgrading version information, deleting the historical configuration file under the upgrading directory when the comparison result meets a preset condition, and storing the module upgrading configuration file to the upgrading directory.
In a specific implementation, a historical version of a historical configuration file xxxxmoduleimmpok.cnf is compared with an upgraded version of the module upgrade configuration file xxmoduleimmpupdate.cnf, and in this embodiment, if the version number of the upgraded version is higher than the version number of the historical version, the historical configuration file xxmoduleimmpok.cnf is deleted, the module upgrade configuration file xxmoduleimmpok.cnf is stored in an upgrade directory of the target module, and the module upgrade configuration file is renamed to xxmoduleimmpok.cnf. Similarly, the final processor dynamically loads a module upgrade configuration file xxxxmoduleimplop ok.cnf under the upgrade directory through a DexClassLoader loader of the android operating system, and acquires a predefined interface class in the module upgrade configuration file xxmoduleimplop ok.cnf and various methods corresponding to the interface class by using a JAVA reflection mechanism, so as to update the target function module.
In this embodiment, when the android operating system obtains a module upgrade configuration file, a second module identifier and an upgrade version of the module upgrade configuration file are obtained, and then it is determined whether a history configuration file exists in an upgrade directory of a target module, and if the upgrade directory does not have the history configuration file, the module upgrade configuration file is directly stored in the upgrade directory; if the upgrade directory has the historical configuration file, acquiring the historical version of the historical configuration file, comparing the historical version information with the upgrade version information, if the comparison result meets the preset condition, covering the historical module upgrade configuration under the upgrade directory through the module upgrade configuration file, and comparing the version between the module upgrade configuration file and the historical module upgrade configuration file to ensure the accuracy of the module upgrade configuration file.
Furthermore, an embodiment of the present invention further provides a computer-readable storage medium, where a function update program of an application program is stored on the computer-readable storage medium, and when executed by a processor, the function update program of the application program implements the following operations:
when the android operating system obtains a module upgrading configuration file, determining a second module identifier corresponding to the module upgrading configuration file;
matching the second module identification with each first module identification, and taking the functional module corresponding to the first module identification matched with the second module identification as a target functional module;
storing the module upgrading configuration file to an upgrading directory of a corresponding target function module;
and loading the module upgrading configuration file under the upgrading directory to realize the function upgrading of the application program.
Further, the function update program of the application program when executed by the processor further realizes the following operations:
when the android operating system acquires a module upgrading configuration file, analyzing the module upgrading configuration file to acquire a second module identifier and an upgrading version of the module upgrading configuration file;
accordingly, the function update program of the application program when executed by the processor further realizes the following operations:
judging whether a history configuration file exists in the upgrading directory;
if the upgrade directory has a historical configuration file, acquiring a historical version of the historical configuration file;
and comparing the historical version information with the upgrading version information, deleting the historical configuration file under the upgrading directory when the comparison result meets a preset condition, and storing the module upgrading configuration file to the upgrading directory.
Accordingly, the function update program of the application program when executed by the processor further realizes the following operations:
and when the upgrade catalog does not have a historical configuration file, saving the module upgrade configuration file to the upgrade catalog.
Further, the function update program of the application program when executed by the processor further realizes the following operations:
downloading a module upgrade package of the application program from a server;
and analyzing the module upgrading package to obtain a module upgrading configuration file.
Further, the function update program of the application program when executed by the processor further realizes the following operations:
receiving update information sent by a server;
correspondingly, the downloading the module upgrade package of the application program from the server specifically includes:
and downloading a module upgrading package of the application program from the server according to the updating information.
Further, the function update program of the application program when executed by the processor further realizes the following operations:
displaying the updating information;
and responding to an upgrade confirmation instruction input by a user based on the updating information, and executing the step of downloading the module upgrade package of the application program from the server according to the updating information.
Further, the function update program of the application program when executed by the processor further realizes the following operations:
and loading a module upgrading configuration file under the upgrading directory through a DexClassLoader loader of the android operating system so as to realize the function updating of the application program.
Further, the function update program of the application program when executed by the processor further realizes the following operations:
responding to a module initialization instruction input by a user, and determining a function module to be restored corresponding to the module initialization instruction and an initial configuration file of the function module to be restored;
and loading the initial configuration file to carry out initialization setting on the module to be restored.
In this embodiment, first, when an android operating system obtains a module upgrade configuration file, a second module identifier corresponding to the module upgrade configuration file is determined; then matching the second module identification with each first module identification, and taking the functional module corresponding to the first module identification matched with the second module identification as a target functional module; and finally, the module upgrading configuration file is stored in an upgrading directory of a corresponding target function module, and the module upgrading configuration file in the upgrading directory is loaded so as to update a single function module of the application program, each module upgrading configuration file corresponds to a function module to be updated, a user does not need to download an installation package of the whole application program, the updating time of the application program is shortened, the waste of network bandwidth is reduced, upgrading accidents caused by improper overall updating and upgrading can be reduced, and the user experience is improved.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (9)
1. A method for updating a function of an application program, wherein the application program includes a plurality of function modules, each function module having a different first module identifier, the method comprising:
when the android operating system obtains a module upgrading configuration file, determining a second module identifier corresponding to the module upgrading configuration file;
matching the second module identification with each first module identification, and taking the functional module corresponding to the first module identification matched with the second module identification as a target functional module;
storing the module upgrading configuration file to an upgrading directory of a corresponding target function module;
loading a module upgrading configuration file under the upgrading directory to realize function updating of the application program;
when the android operating system acquires the module upgrade configuration file, determining a second module identifier corresponding to the module upgrade configuration file, specifically including:
when the android operating system acquires a module upgrading configuration file, analyzing the module upgrading configuration file to acquire a second module identifier and an upgrading version of the module upgrading configuration file;
correspondingly, the storing the module upgrade configuration file to the upgrade directory of the corresponding target function module specifically includes:
judging whether a history configuration file exists in the upgrading directory;
if the upgrade directory has a historical configuration file, acquiring a historical version of the historical configuration file;
and comparing the historical version information with the upgrading version information, deleting the historical configuration file under the upgrading directory when the comparison result meets a preset condition, and storing the module upgrading configuration file to the upgrading directory.
2. The method of claim 1, wherein after determining whether a historical configuration file exists under the upgrade directory, the method further comprises:
and when the upgrade catalog does not have a historical configuration file, saving the module upgrade configuration file to the upgrade catalog.
3. The method of any one of claims 1 or 2, wherein before determining the second module identifier corresponding to the module upgrade configuration file when the android operating system obtains the module upgrade configuration file, the method further comprises:
downloading a module upgrade package of the application program from a server;
and analyzing the module upgrading package to obtain a module upgrading configuration file.
4. The method of claim 3, wherein prior to said downloading the module upgrade package for the application from the server, the method further comprises:
receiving update information sent by a server;
correspondingly, the downloading the module upgrade package of the application program from the server specifically includes:
and downloading a module upgrading package of the application program from the server according to the updating information.
5. The method of claim 4, wherein after receiving the update information sent by the server, the method further comprises:
displaying the updating information;
and responding to an upgrade confirmation instruction input by a user based on the updating information, and executing the step of downloading the module upgrade package of the application program from the server according to the updating information.
6. The method according to any one of claims 1 or 2, wherein the loading of the module upgrade configuration file under the upgrade directory to implement function update of an application program specifically includes:
and loading a module upgrading configuration file under the upgrading directory through a DexClassLoader loader of the android operating system so as to realize the function updating of the application program.
7. The method of any of claims 1 or 2, wherein after loading the module upgrade configuration file under the upgrade directory to implement the functionality update of the application program, the method further comprises:
responding to a module initialization instruction input by a user, and determining a function module to be restored corresponding to the module initialization instruction and an initial configuration file of the function module to be restored;
and loading the initial configuration file to perform initialization setting on the module to be restored.
8. A function updating apparatus of an application program, characterized in that the function updating apparatus of the application program comprises a memory, a processor and a function updating program of the application program stored on the memory and operable on the processor, and the function updating program of the application program is configured to implement the steps of the function updating method of the application program according to any one of claims 1 to 7.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a function update program of an application program, which when executed by a processor implements the steps of the function update method of the application program according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711344173.5A CN108108181B (en) | 2017-12-14 | 2017-12-14 | Function updating method and device of application program and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711344173.5A CN108108181B (en) | 2017-12-14 | 2017-12-14 | Function updating method and device of application program and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108108181A CN108108181A (en) | 2018-06-01 |
CN108108181B true CN108108181B (en) | 2022-03-01 |
Family
ID=62216105
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711344173.5A Active CN108108181B (en) | 2017-12-14 | 2017-12-14 | Function updating method and device of application program and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108108181B (en) |
Families Citing this family (25)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109062593B (en) * | 2018-07-20 | 2022-10-21 | Oppo(重庆)智能科技有限公司 | Application processing method and device, electronic equipment and computer readable storage medium |
CN109189493A (en) * | 2018-07-23 | 2019-01-11 | 广州视源电子科技股份有限公司 | Application configuration method and apparatus, equipment, computer readable storage medium |
CN109460251B (en) * | 2018-09-03 | 2022-04-01 | 武汉船舶通信研究所(中国船舶重工集团公司第七二二研究所) | Component integration framework management method and device |
CN109800009A (en) * | 2019-01-15 | 2019-05-24 | 科大国创软件股份有限公司 | The hot update method and system of mixed type App functional module |
CN109672573B (en) * | 2019-01-24 | 2022-04-12 | 网宿科技股份有限公司 | Configuration file deployment method, configuration file determination method, server and storage medium |
CN109976787B (en) * | 2019-03-12 | 2022-04-19 | 平安普惠企业管理有限公司 | Application program upgrading method and device, terminal and computer readable storage medium |
CN110166293A (en) * | 2019-05-21 | 2019-08-23 | 上海市共进通信技术有限公司 | Realize the home gateway and its upgrading debugging processing method of modularization upgrading debugging development function |
CN110471697A (en) * | 2019-07-12 | 2019-11-19 | 深圳追一科技有限公司 | Configuration method and Related product |
CN112328272B (en) * | 2019-08-05 | 2024-03-22 | 浙江宇视科技有限公司 | Algorithm upgrading method, device, equipment and storage medium |
CN111026557A (en) * | 2019-10-23 | 2020-04-17 | 北京奇艺世纪科技有限公司 | Method and device for synchronizing message states between modules, electronic equipment and storage medium |
CN111008028B (en) * | 2019-11-22 | 2022-07-01 | 杭州数式网络科技有限公司 | Software upgrading method, device and storage medium |
CN111143855A (en) * | 2019-12-25 | 2020-05-12 | 惠州华阳通用电子有限公司 | Integrated upgrade file manufacturing and upgrading method and device |
CN111158791A (en) * | 2019-12-31 | 2020-05-15 | 广州酷狗计算机科技有限公司 | Configuration file updating method, device and system and storage medium |
CN111782236A (en) * | 2020-05-11 | 2020-10-16 | 广州朗国电子科技有限公司 | System software upgrading method and device, storage medium and all-in-one machine equipment |
CN111596955B (en) * | 2020-05-18 | 2023-07-14 | 上海联影医疗科技股份有限公司 | Application changing method, application running method, device and system |
CN113806390A (en) * | 2020-06-16 | 2021-12-17 | 西安诺瓦星云科技股份有限公司 | LED box management method, device and system |
CN112099830A (en) * | 2020-09-25 | 2020-12-18 | 努比亚技术有限公司 | System updating method, equipment and computer readable storage medium |
CN112363717B (en) * | 2020-10-29 | 2024-01-12 | 福建联迪商用设备有限公司 | Method and terminal for loading different functions in single software |
CN112214239A (en) * | 2020-11-19 | 2021-01-12 | 湖南红网新媒体集团有限公司 | News client configuration method and system |
CN113312079A (en) * | 2020-11-20 | 2021-08-27 | 锐捷网络股份有限公司 | Hot patch upgrading method and device, electronic equipment and storage medium |
CN113835731A (en) * | 2021-09-28 | 2021-12-24 | 中电金信软件有限公司 | Method and device for prompting error according to updated component, electronic equipment and storage medium |
CN114064215A (en) * | 2021-11-25 | 2022-02-18 | 中国建设银行股份有限公司 | Method, device, apparatus and computer program product for dynamically deploying modularity |
CN114911507B (en) * | 2022-07-15 | 2022-09-23 | 浙江大华技术股份有限公司 | Updating method and equipment of algorithm package |
CN115766681A (en) * | 2022-11-28 | 2023-03-07 | 迈普通信技术股份有限公司 | Program downloading method, device, medium and equipment |
CN116991447B (en) * | 2023-09-05 | 2023-12-22 | 荣耀终端有限公司 | Operating system updating method and related equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104111843A (en) * | 2013-04-17 | 2014-10-22 | 苏州墨提斯信息科技有限公司 | Sandbox based script updating method and system |
CN104321782A (en) * | 2012-03-30 | 2015-01-28 | 爱迪德加拿大公司 | Secured execution of a web application |
CN104965721A (en) * | 2014-07-10 | 2015-10-07 | 腾讯科技(深圳)有限公司 | Method and apparatus for updating an application |
CN105607935A (en) * | 2015-12-24 | 2016-05-25 | 北京奇虎科技有限公司 | Application updating method and terminal and server |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8554748B1 (en) * | 2005-11-30 | 2013-10-08 | Netapp, Inc. | Method and apparatus for differential file based update for embedded systems |
WO2014159943A2 (en) * | 2013-03-14 | 2014-10-02 | Bitvore Corp. | Dynamically loaded plugin architecture |
JP6292045B2 (en) * | 2014-06-16 | 2018-03-14 | 富士通株式会社 | Software information management program, software information management apparatus, and software information management method |
CN104156244B (en) * | 2014-08-06 | 2018-09-04 | 北京奇虎科技有限公司 | A kind of method and apparatus of software upgrading |
CN105653340A (en) * | 2015-12-31 | 2016-06-08 | 宇龙计算机通信科技(深圳)有限公司 | Parameter upgrading method, device and electronic equipment |
CN108027741B (en) * | 2016-04-27 | 2020-06-09 | 华为技术有限公司 | File processing method, device, terminal and storage medium based on patch upgrade |
CN107203395A (en) * | 2017-05-19 | 2017-09-26 | 北京京东尚科信息技术有限公司 | Resource graded method, device and computer-readable recording medium and electronic equipment |
-
2017
- 2017-12-14 CN CN201711344173.5A patent/CN108108181B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104321782A (en) * | 2012-03-30 | 2015-01-28 | 爱迪德加拿大公司 | Secured execution of a web application |
CN104111843A (en) * | 2013-04-17 | 2014-10-22 | 苏州墨提斯信息科技有限公司 | Sandbox based script updating method and system |
CN104965721A (en) * | 2014-07-10 | 2015-10-07 | 腾讯科技(深圳)有限公司 | Method and apparatus for updating an application |
CN105607935A (en) * | 2015-12-24 | 2016-05-25 | 北京奇虎科技有限公司 | Application updating method and terminal and server |
Also Published As
Publication number | Publication date |
---|---|
CN108108181A (en) | 2018-06-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108108181B (en) | Function updating method and device of application program and computer readable storage medium | |
US10127057B2 (en) | Method and apparatus for dynamically implementing application function | |
CN107870787B (en) | Application program plug-in loading method and system | |
US20150220326A1 (en) | Mobile Terminal and Software Upgrade Method Thereof | |
CN105786538B (en) | software upgrading method and device based on android system | |
EP2241973A2 (en) | Electronic apparatus, virtual machine providing apparatus, and method of using virtual machine service | |
US8161474B2 (en) | Diagnostic information preservation during installations of over the air update of wireless handset software | |
US11714663B2 (en) | Application environment that implements native code functionality in progressive web applications | |
CN104834555A (en) | Method for invoking functional module, related device and device repairing method | |
CN107844306B (en) | Application program repairing method and device, storage medium and terminal | |
CN106775876B (en) | Method for quickly starting application by android system | |
CN106293849B (en) | application updating method and terminal | |
CN112202920A (en) | Vehicle machine system upgrading method and device | |
US10922064B2 (en) | Method, device and user terminal for software installation | |
CN111538523A (en) | Differential upgrading method, device and storage medium | |
JP5533935B2 (en) | Software distribution system and software distribution method | |
CN114546588A (en) | Task deployment method and device, storage medium and electronic device | |
CN111131861B (en) | Upgrading method, terminal and storage medium for recovering partitions | |
CN111338708A (en) | Application program processing method, client and system based on android plug-in | |
CN110727444A (en) | Electronic equipment upgrading method and electronic equipment | |
CN113867756A (en) | Software upgrading method, terminal equipment and readable storage medium | |
CN105260196A (en) | Method for making Android system support QT APP | |
CN111475220B (en) | Cold start method and device, electronic equipment and computer storage medium | |
CN113515299A (en) | Software development kit SDK hot upgrading method, device, equipment and storage medium | |
CN112711430A (en) | ADB-based non-network equipment upgrading method and system and readable 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 | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20200211 Address after: 201, room 518000, building A, No. 1, front Bay Road, Qianhai Shenzhen Guangdong Shenzhen Hong Kong cooperation zone (Qianhai business secretary) Applicant after: Shenzhen leynew Network Media Co Ltd Address before: 518000 Guangdong city of Shenzhen province Qianhai Shenzhen Hong Kong cooperation zone before Bay Road No. 1 building 201 room A (located in Shenzhen Qianhai business secretary Co. Ltd.) Applicant before: Shenzhen leynew Mdt InfoTech Ltd |
|
GR01 | Patent grant | ||
GR01 | Patent grant |