CN108108181A - The function renewal method, apparatus and computer readable storage medium of application program - Google Patents

The function renewal method, apparatus and computer readable storage medium of application program Download PDF

Info

Publication number
CN108108181A
CN108108181A CN201711344173.5A CN201711344173A CN108108181A CN 108108181 A CN108108181 A CN 108108181A CN 201711344173 A CN201711344173 A CN 201711344173A CN 108108181 A CN108108181 A CN 108108181A
Authority
CN
China
Prior art keywords
module
application program
configuration file
function
upgrading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201711344173.5A
Other languages
Chinese (zh)
Other versions
CN108108181B (en
Inventor
姜国定
丁立朵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen leynew Network Media Co Ltd
Original Assignee
Shenzhen Leynew Mdt Infotech Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Leynew Mdt Infotech Ltd filed Critical Shenzhen Leynew Mdt Infotech Ltd
Priority to CN201711344173.5A priority Critical patent/CN108108181B/en
Publication of CN108108181A publication Critical patent/CN108108181A/en
Application granted granted Critical
Publication of CN108108181B publication Critical patent/CN108108181B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version 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 present invention provides the function renewal method, apparatus and computer readable storage medium of a kind of application program, and the present invention is first when Android operation system gets module upgrade configuration file, corresponding second module id of determining module upgrading configuration;Then the second module id is matched with each first module id, and using with the function module corresponding to matched first module id of the second module id as objective function module;Finally module upgrade configuration file is preserved to the upgrading catalogue of corresponding objective function module, and load the module upgrade configuration file under the upgrading catalogue, to realize the update of the individual feature module for the application program, each module upgrade configuration file, which corresponds to one, needs newer function module, user need not download the installation kit of entire application program, shorten the renewal time of application program, it can reduce and upgrade accident caused by whole updating upgrading is improper, improve user experience.

Description

The function renewal method, apparatus and computer readable storage medium of application program
Technical field
The present invention relates to function renewal method, apparatus and the calculating of field of computer technology more particularly to a kind of application program Machine readable storage medium storing program for executing.
Background technology
The method of App (Application, application program) the update upgradings of Android system is at present:Download new version APK (Android Package, Android application program installation kit) installs new version APK, while covers the APK of legacy version.And one Application program generally includes multiple function modules, and any one module BUG of an Android application program is repaiied in the prior art Change, be required for upgrading entire application program, even if some function modules do not have BUG problems in the application program, also can It is override after the new version APK installation decompressions being downloaded, causes the waste of data resource and bandwidth.
The content of the invention
It is a primary object of the present invention to provide a kind of function renewal method, apparatus of application program and computer-readable deposit Storage media, it is intended to solve the problems, such as how to upgrade to the individual feature module in Android application program.
To achieve the above object, the present invention proposes a kind of function renewal method of application program, and the application program includes Multiple function modules, each function module have the first different module ids, and the function renewal method of the application program includes:
When Android operation system gets module upgrade configuration file, determine that the module upgrade configuration file is corresponding Second module id;
Second module id is matched with each first module id, it will be matched with second module id Function module corresponding to first module id is as objective function module;
The module upgrade configuration file is preserved to the upgrading catalogue of corresponding objective function module;
The module upgrade configuration file under the upgrading catalogue is loaded, to realize the function renewal of application program.
Preferably, it is described when Android operation system gets module upgrade configuration file, determine that the module upgrade is matched somebody with somebody Corresponding second module id of file is put, is specifically included:
In Android operation system acquisition module upgrading configuration, the module upgrade configuration file is parsed, Obtain the second module id and upgraded version of the module upgrade configuration file;
Correspondingly, it is described to preserve the module upgrade configuration file to the upgrading catalogue of corresponding objective function module Under, it specifically includes:
Judge under the upgrading catalogue with the presence or absence of history profile;
If the upgrading catalogue obtains the old version of history profile there are history profile;
By the old version information compared with the upgraded version information, meet preset condition in comparative result When, the history profile under the upgrading catalogue is deleted, and the module upgrade configuration file is preserved to the upgrading mesh Record.
Preferably, described to judge under the upgrading catalogue with the presence or absence of after history profile, the method further includes:
When history profile is not present in the upgrading catalogue, the module upgrade configuration file is preserved to the liter Grade catalogue.
Preferably, it is described when Android operation system gets module upgrade configuration file, determine that the module upgrade is matched somebody with somebody Before putting corresponding second module id of file, the method further includes:
The module upgrade bag of the application program is downloaded from server;
The module upgrade bag is parsed, obtains module upgrade configuration file.
Preferably, before the module upgrade bag for downloading the application program from server, the method further includes:
Receive the fresh information that server is sent;
Correspondingly, the module upgrade bag that the application program is downloaded from server, specifically includes:
It is downloaded and the module upgrade bag of the application program from the server according to the fresh information.
Preferably, after the fresh information for receiving server and sending, the method further includes:
The fresh information is shown;
Instruction is confirmed based on the upgrading that the fresh information inputs in response to user, is performed described according to the fresh information The step of module upgrade bag with the application program being downloaded from the server.
Preferably, the module upgrade configuration file under the loading upgrading catalogue, to realize the function of application program Update, specifically includes:
Module under the upgrading catalogue is loaded by the DexClassLoader Classloaders of the Android operation system Upgrading configuration, to realize the function renewal of application program.
Preferably, the module upgrade configuration file under the loading upgrading catalogue, to realize the function of application program After update, the method further includes:
It is instructed in response to module initialization input by user, determines work(to be restored corresponding with module initialization instruction The initial configuration file of energy module and the function module to be restored;
The initial configuration file is loaded to carry out Initialize installation to the module to be restored.
In addition to achieve the above object, it is described to apply journey the present invention also provides a kind of function renewal device of application program The function renewal device of sequence includes memory, processor and is stored on the memory and can run on the processor The function renewal program of application program, the function renewal program of the application program are arranged for carrying out application program as described above Function renewal method the step of.
In addition to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium The function renewal program of application program is stored on storage medium, the function renewal program of the application program is executed by processor The step of function renewal method of Shi Shixian application programs as described above.
The present invention determines the module upgrade configuration first when Android operation system gets module upgrade configuration file Corresponding second module id of file;Then second module id is matched with each first module id, and will be with Function module corresponding to matched first module id of second module id is as objective function module;Finally by described in Module upgrade configuration file is preserved to the upgrading catalogue of corresponding objective function module, and loads the mould under the upgrading catalogue Block upgrading configuration, to realize the update of the individual feature module for the application program, each module upgrade configuration text Part, which corresponds to one, needs newer function module, and user need not download the installation kit of entire application program, shorten application program Renewal time, reduce the waste of network bandwidth, can reduce because whole updating upgrading it is improper caused by upgrade accident, improve User experience.
Description of the drawings
Fig. 1 is the structure of the function renewal device of the application program for the hardware running environment that the embodiment of the present invention is related to Schematic diagram;
Fig. 2 is a kind of first embodiment flow diagram of the function renewal method of application program of the present invention;
Fig. 3 is a kind of second embodiment flow diagram of the function renewal method of application program of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
A kind of function of the application program for the hardware running environment that reference Fig. 1, Fig. 1 are related to for the embodiment of the present invention is more The structure diagram of new equipment.
As shown in Figure 1, the function renewal device of the application program can include:Processor 1001, such as CPU, communication Bus 1002, user interface 1003, network interface 1004, memory 1005.Wherein, communication bus 1002 is used to implement these groups Connection communication between part.User interface 1003 can be USB interface.Network interface 1004 can optionally include having for standard Line interface, wireless interface (such as WI-FI interfaces).Memory 1005 can be high-speed RAM memory.The function of the application program Updating device is characterized as a kind of terminal device based on Android operation system, and the terminal device includes the function of application program more New procedures.
It will be understood by those skilled in the art that the described device structure shown in Fig. 1 is not formed to the application program Function renewal device restriction, can include either combining some components or difference than illustrating more or fewer components Component arrangement.
As shown in Figure 1, operating system, Network Interface Module, Subscriber Interface Module SIM can be included in the memory 1005 And the function renewal program of application program, the application program include multiple function modules, each function module has different First module id, described device call the function renewal journey of the application program stored in memory 1005 by processor 1001 Sequence, and perform following operation:
When Android operation system gets module upgrade configuration file, determine that the module upgrade configuration file is corresponding Second module id;
Second module id is matched with each first module id, it will be matched with second module id Function module corresponding to first module id is as objective function module;
The module upgrade configuration file is preserved to the upgrading catalogue of corresponding objective function module;
The module upgrade configuration file under the upgrading catalogue is loaded, to realize the function renewal of application program.
Further, the function renewal device of the application program can be called in memory 1005 by processor 1001 and deposited The function renewal program of the application program of storage also performs following operation:
In Android operation system acquisition module upgrading configuration, the module upgrade configuration file is parsed, Obtain the second module id and upgraded version of the module upgrade configuration file;
Correspondingly, the function renewal device of the application program can be called in memory 1005 by processor 1001 and stored Application program function renewal program, also perform following operation:
Judge under the upgrading catalogue with the presence or absence of history profile;
If the upgrading catalogue obtains the old version of history profile there are history profile;
By the old version information compared with the upgraded version information, meet preset condition in comparative result When, the history profile under the upgrading catalogue is deleted, and the module upgrade configuration file is preserved to the upgrading mesh Record.
Further, the function renewal device of the application program can be called in memory 1005 by processor 1001 and deposited The function renewal program of the application program of storage also performs following operation:
When history profile is not present in the upgrading catalogue, the module upgrade configuration file is preserved to the liter Grade catalogue.
Further, the function renewal device of the application program can be called in memory 1005 by processor 1001 and deposited The function renewal program of the application program of storage also performs following operation:
The module upgrade bag of the application program is downloaded from server;
The module upgrade bag is parsed, obtains module upgrade configuration file.
Further, the function renewal device of the application program can be called in memory 1005 by processor 1001 and deposited The function renewal program of the application program of storage also performs following operation:
Receive the fresh information that server is sent;
Correspondingly, the module upgrade bag that the application program is downloaded from server, specifically includes:
It is downloaded and the module upgrade bag of the application program from the server according to the fresh information.
Further, the function renewal device of the application program can be called in memory 1005 by processor 1001 and deposited The function renewal program of the application program of storage also performs following operation:
The fresh information is shown;
Instruction is confirmed based on the upgrading that the fresh information inputs in response to user, is performed described according to the fresh information The step of module upgrade bag with the application program being downloaded from the server.
Further, the function renewal device of the application program can be called in memory 1005 by processor 1001 and deposited The function renewal program of the application program of storage also performs following operation:
Module under the upgrading catalogue is loaded by the DexClassLoader Classloaders of the Android operation system Upgrading configuration, to realize the function renewal of application program.
Further, the function renewal device of the application program can be called in memory 1005 by processor 1001 and deposited The function renewal program of the application program of storage also performs following operation:
It is instructed in response to module initialization input by user, determines work(to be restored corresponding with module initialization instruction The initial configuration file of energy module and the function module to be restored;
The initial configuration file is loaded to carry out Initialize installation to the module to be restored.
The present embodiment determines that the module upgrade is matched somebody with somebody first when Android operation system gets module upgrade configuration file Put corresponding second module id of file;Then second module id is matched with each first module id, and will With the function module corresponding to matched first module id of second module id as objective function module;Finally by institute It states module upgrade configuration file to preserve to the upgrading catalogue of corresponding objective function module, and loads under the upgrading catalogue Module upgrade configuration file, to realize the update of the individual feature module for the application program, each module upgrade configuration File, which corresponds to one, needs newer function module, and user need not download the installation kit of entire application program, shorten using journey The renewal time of sequence reduces the waste of network bandwidth, can reduce and upgrade accident caused by whole updating upgrading is improper, improve User experience.
Based on above-mentioned hardware configuration, a kind of function renewal embodiment of the method for application program of the present invention is proposed.
With reference to Fig. 2, Fig. 2 is a kind of flow signal of first embodiment of the function renewal method of application program of the present invention Figure.
In the present embodiment, the application program includes multiple function modules, and each function module has the first different modules Mark, the function renewal method of the application program comprise the following steps:
Step S10:When Android operation system gets module upgrade configuration file, the module upgrade configuration text is determined Corresponding second module id of part;
It should be noted that the executive agent of this implementation can be the processing of the terminal device based on Android operation system Device, the present embodiment using mobile phone as the terminal device of the Android operation system exemplified by illustrate.
It will be appreciated that Android mobile phone application APP usually has multiple function modules, such as an electric business application journey Sequence APP is just had including at least buyer's module, seller's module, log-in module etc. function module, and different function modules can have There is the first different module ids to distinguish each function module, such as the first module id of buyer's module can be BuyModule, the first module id of seller's module can be SellModule, and the first module id of log-in module can be LoginModule, more than modules can be packaged into initial module configuration file configFile with JAR forms and be stored in this Under asset (assets) catalogue of application program;In application initialization, user is when the application program is used, peace The processor of Zhuo Shouji can be loaded by the DexClassLoader Classloaders of Android operation system under the asset catalogues Initial module configuration file configFile, utilize the reflex mechanism of JAVA, obtain initial module configuration file Predefined interface class and the corresponding various methods of the interface class in configFile.
And in the concrete realization, when the application program needs to upgrade update, usual client (i.e. described application Program) corresponding to server can to the Android mobile phone send a fresh information, with notify user need download a mould Block upgrade package, the module upgrade bag can be specifically by MD5 (Message Digest Algorithm MD5, eap-message digest Algorithm) be encrypted after upgrade package.After Android mobile phone downloads the module upgrade bag of the application program from server, meeting The module upgrade bag is parsed, obtains module upgrade configuration file.Correspondingly, the module upgrade configuration file is also XXXModuleImpUpdate.cnf, the module can be expressed as with the configuration file that JAR forms are packaged into, such as this document Include predefined interface class and the corresponding various methods of the interface class in upgrading configuration.It should be noted that this reality It applies in example, each module upgrade configuration file only corresponds to a newer function module of needs in the application program.
If some function module of the application program needs to update, then server can send one and contain needs The upgrade package of the module upgrade configuration file of upgrade function module is updated, the module upgrade configuration file is embodied as LoginModuleImpUpdate.cnf, then the second module id corresponding to this module upgrade configuration file is LoginModuleImp。
Step S20:Second module id is matched with each first module id, it will be with the second module mark The function module corresponding to matched first module id is known as objective function module;
It will be appreciated that processor is obtaining the second module id of the module upgrade configuration file It, can be by the second module id LoginModuleImp and the first module id ratio of each function module after LoginModuleImp It, finally will be with the matched first module id LoginModule institutes of the second module id LoginModuleImp compared with matching Corresponding login feature module is as objective function module.
Step S30:The module upgrade configuration file is preserved to the upgrading catalogue of corresponding objective function module;
It will be appreciated that the initial module configuration file configFile of application program can be stored in the application program Under asset catalogues, instruct to be reduced into default setting for receiving module initialization input by user;And application program is each Function module corresponds to a upgrading catalogue respectively, for preserving module upgrading configuration.
Step S40:The module upgrade configuration file under the upgrading catalogue is loaded, to realize the function of application program more Newly.
In the concrete realization, the processor of Android mobile phone can be loaded by the DexClassLoader classes of Android operation system Upgrade the module upgrade configuration file under catalogue described in device dynamic load, using the reflex mechanism of JAVA, obtain the module liter Predefined interface class and the corresponding various methods of the interface class in grade configuration file, to realize the objective function module Corresponding function renewal.
Further, before the step S10, the method further includes:The fresh information that server is sent is received, it is right The fresh information is shown, and can so promote whether user needs to upgrade, if user needs to upgrade, the present embodiment Android mobile phone processor can confirm instruction in response to user based on the upgrading that the fresh information inputs, and perform described in the basis Fresh information downloads the step of module upgrade bag with the application program from the server.
The present embodiment determines that the module upgrade is matched somebody with somebody first when Android operation system gets module upgrade configuration file Put corresponding second module id of file;Then second module id is matched with each first module id, and will With the function module corresponding to matched first module id of second module id as objective function module;Finally by institute It states module upgrade configuration file to preserve to the upgrading catalogue of corresponding objective function module, and loads under the upgrading catalogue Module upgrade configuration file, to realize the update of the individual feature module for the application program, each module upgrade configuration File, which corresponds to one, needs newer function module, and user need not download the installation kit of entire application program, shorten using journey The renewal time of sequence reduces the waste of network bandwidth, can reduce and upgrade accident caused by whole updating upgrading is improper, improve User experience.
With reference to Fig. 3, Fig. 3 is a kind of flow signal of second embodiment of the function renewal method of application program of the present invention Figure proposes a kind of second embodiment of the function renewal method of application program of the present invention based on Fig. 2.
In the present embodiment, the step S10 is specifically included:
Step S101:In Android operation system acquisition module upgrading configuration, to the module upgrade configuration file It is parsed, obtains the second module id and upgraded version of the module upgrade configuration file;
It will be appreciated that in the present embodiment, if the application program needs update, server end can be mounted with to each The terminal device of (client) application program sends fresh information, to notify user needs to download corresponding to contain module Upgrading configuration XXXModuleImpUpdate.cnf (than if desired for it is newer be login function module, then module upgrade Configuration file is LoginModuleImpUpdate.cnf) module upgrade bag, wherein, wrapped in the module upgrade configuration file Include respective upgrades version.
Correspondingly, the step S30, specifically includes:
Step S301:Judge under the upgrading catalogue with the presence or absence of history profile;
It will be appreciated that the objective function module of the application program before this may it is more than it is updated once, it is also possible to It is to need to update for the first time, then processor whether there is this firstly the need of under the upgrading catalogue for judging the objective function module The module upgrade configuration file i.e. history profile downloaded before secondary update;
If the upgrading catalogue performs the step S302, then performs the step there are history profile 303.If the upgrading catalogue directly performs there is no history profile and matches somebody with somebody the module upgrade in the step S320 Put the step of file is preserved to the upgrading catalogue.
Step S320:When history profile is not present in the upgrading catalogue, the module upgrade configuration file is protected It deposits to the upgrading catalogue.
In the concrete realization, when history profile is not present in the upgrading catalogue, by the module upgrade configuration file XXXModuleImpUpdate.cnf is preserved to the upgrading catalogue, and by the module upgrade configuration file renamed as XXXModuleImpOK.cnf.The DexClassLoader Classloader dynamic loads that final process device passes through Android operation system Module upgrade configuration file XXXModuleImpOK.cnf under the upgrading catalogue using the reflex mechanism of JAVA, obtains institute State predefined interface class and the corresponding various sides of the interface class in module upgrade configuration file XXXModuleImpOK.cnf Method, to realize the update of the objective function module.
Step S302:If the upgrading catalogue obtains the old version of history profile there are history profile;
If it will be appreciated that the upgrading catalogue, there are history profile XXXModuleImpOK.cnf, acquisition is gone through The old version of history configuration file XXXModuleImpOK.cnf;
Step S303:By the old version information compared with the upgraded version information, meet in comparative result During preset condition, the history profile under the upgrading catalogue is deleted, and the module upgrade configuration file is preserved to institute State upgrading catalogue.
In the concrete realization, by the old version of history profile XXXModuleImpOK.cnf and the module upgrade The upgraded version of configuration file XXXModuleImpUpdate.cnf is compared, in the present embodiment, if the upgraded version Version number is higher than the version number of the old version, then deletes the history profile XXXModuleImpOK.cnf, and will The module upgrade configuration file XXXModuleImpUpdate.cnf is preserved to the upgrading catalogue of the object module, and will The module upgrade configuration file renamed as XXXModuleImpOK.cnf.Similarly, final process device can be operated by Android Upgrade the module upgrade configuration file under catalogue described in the DexClassLoader Classloader dynamic loads of system XXXModuleImpOK.cnf using the reflex mechanism of JAVA, obtains the module upgrade configuration file Predefined interface class and the corresponding various methods of the interface class in XXXModuleImpOK.cnf, to realize the target work( The update of energy module.
The present embodiment obtains the module upgrade configuration file in Android operation system acquisition module upgrading configuration The second module id and upgraded version, then judge under the upgrading catalogue of object module with the presence or absence of history profile, if institute Upgrading catalogue is stated there is no history profile, then is directly preserved module upgrade configuration file to upgrading catalogue;If upgrade mesh The old version in history profile, then obtaining history profile is recorded, by old version information and upgraded version information It is compared, if comparative result meets preset condition, by the module upgrade configuration file under the upgrading catalogue History module upgrading configuration covered, by comparing module upgrade configuration file and history module upgrading configuration between version This, ensure that the accuracy of the module upgrade configuration file.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium, the computer readable storage medium On be stored with the function renewal program of application program, realized such as when the function renewal program of the application program is executed by processor Lower operation:
When Android operation system gets module upgrade configuration file, determine that the module upgrade configuration file is corresponding Second module id;
Second module id is matched with each first module id, it will be matched with second module id Function module corresponding to first module id is as objective function module;
The module upgrade configuration file is preserved to the upgrading catalogue of corresponding objective function module;
The module upgrade configuration file under the upgrading catalogue is loaded, to realize the function renewal of application program.
Further, following operation is also realized when the function renewal program of the application program is executed by processor:
In Android operation system acquisition module upgrading configuration, the module upgrade configuration file is parsed, Obtain the second module id and upgraded version of the module upgrade configuration file;
Correspondingly, following operation is also realized when the function renewal program of the application program is executed by processor:
Judge under the upgrading catalogue with the presence or absence of history profile;
If the upgrading catalogue obtains the old version of history profile there are history profile;
By the old version information compared with the upgraded version information, meet preset condition in comparative result When, the history profile under the upgrading catalogue is deleted, and the module upgrade configuration file is preserved to the upgrading mesh Record.
Correspondingly, following operation is also realized when the function renewal program of the application program is executed by processor:
When history profile is not present in the upgrading catalogue, the module upgrade configuration file is preserved to the liter Grade catalogue.
Further, following operation is also realized when the function renewal program of the application program is executed by processor:
The module upgrade bag of the application program is downloaded from server;
The module upgrade bag is parsed, obtains module upgrade configuration file.
Further, following operation is also realized when the function renewal program of the application program is executed by processor:
Receive the fresh information that server is sent;
Correspondingly, the module upgrade bag that the application program is downloaded from server, specifically includes:
It is downloaded and the module upgrade bag of the application program from the server according to the fresh information.
Further, following operation is also realized when the function renewal program of the application program is executed by processor:
The fresh information is shown;
Instruction is confirmed based on the upgrading that the fresh information inputs in response to user, is performed described according to the fresh information The step of module upgrade bag with the application program being downloaded from the server.
Further, following operation is also realized when the function renewal program of the application program is executed by processor:
Module under the upgrading catalogue is loaded by the DexClassLoader Classloaders of the Android operation system Upgrading configuration, to realize the function renewal of application program.
Further, following operation is also realized when the function renewal program of the application program is executed by processor:
It is instructed in response to module initialization input by user, determines work(to be restored corresponding with module initialization instruction The initial configuration file of energy module and the function module to be restored;
The initial configuration file is loaded to carry out Initialize installation to the module to be restored.
The present embodiment determines that the module upgrade is matched somebody with somebody first when Android operation system gets module upgrade configuration file Put corresponding second module id of file;Then second module id is matched with each first module id, and will With the function module corresponding to matched first module id of second module id as objective function module;Finally by institute It states module upgrade configuration file to preserve to the upgrading catalogue of corresponding objective function module, and loads under the upgrading catalogue Module upgrade configuration file, to realize the update of the individual feature module for the application program, each module upgrade configuration File, which corresponds to one, needs newer function module, and user need not download the installation kit of entire application program, shorten using journey The renewal time of sequence reduces the waste of network bandwidth, can reduce and upgrade accident caused by whole updating upgrading is improper, improve User experience.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or system including a series of elements not only include those elements, and And it further includes other elements that are not explicitly listed or further includes as this process, method, article or system institute inherently Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this Also there are other identical elements in the process of element, method, article or system.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme substantially in other words does the prior art Going out the part of contribution can be embodied in the form of software product, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), used including some instructions so that a station terminal equipment (can be mobile phone, computer takes Be engaged in device, air conditioner or the network equipment etc.) perform method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair The equivalent structure or equivalent flow shift that bright specification and accompanying drawing content are made directly or indirectly is used in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of function renewal method of application program, which is characterized in that the application program includes multiple function modules, each work( Energy module has the first different module ids, and the function renewal method of the application program includes:
When Android operation system gets module upgrade configuration file, the module upgrade configuration file corresponding second is determined Module id;
Second module id is matched with each first module id, it will be with second module id matched first Function module corresponding to module id is as objective function module;
The module upgrade configuration file is preserved to the upgrading catalogue of corresponding objective function module;
The module upgrade configuration file under the upgrading catalogue is loaded, to realize the function renewal of application program.
2. the method as described in claim 1, which is characterized in that described to get module upgrade configuration text in Android operation system During part, determine corresponding second module id of the module upgrade configuration file, specifically include:
In Android operation system acquisition module upgrading configuration, the module upgrade configuration file is parsed, is obtained The second module id and upgraded version of the module upgrade configuration file;
Correspondingly, it is described to preserve the module upgrade configuration file to the upgrading catalogue of corresponding objective function module, tool Body includes:
Judge under the upgrading catalogue with the presence or absence of history profile;
If the upgrading catalogue obtains the old version of history profile there are history profile;
By the old version information compared with the upgraded version information, when comparative result meets preset condition, delete Except the history profile under the upgrading catalogue, and the module upgrade configuration file is preserved to the upgrading catalogue.
3. method as claimed in claim 2, which is characterized in that described to judge to configure with the presence or absence of history under the upgrading catalogue After file, the method further includes:
When history profile is not present in the upgrading catalogue, the module upgrade configuration file is preserved to the upgrading mesh Record.
4. such as claim 1-3 any one of them methods, which is characterized in that described to get module liter in Android operation system During grade configuration file, before determining corresponding second module id of the module upgrade configuration file, the method further includes:
The module upgrade bag of the application program is downloaded from server;
The module upgrade bag is parsed, obtains module upgrade configuration file.
5. method as claimed in claim 4, which is characterized in that the module upgrade that the application program is downloaded from server Before bag, the method further includes:
Receive the fresh information that server is sent;
Correspondingly, the module upgrade bag that the application program is downloaded from server, specifically includes:
It is downloaded and the module upgrade bag of the application program from the server according to the fresh information.
6. method as claimed in claim 5, which is characterized in that described after the fresh information for receiving server and sending Method further includes:
The fresh information is shown;
The upgrading inputted in response to user based on the fresh information confirms instruction, perform it is described according to the fresh information from institute State the step of server downloads the module upgrade bag with the application program.
7. such as claim 1-3 any one of them methods, which is characterized in that the module liter under the loading upgrading catalogue Grade configuration file, to realize the function renewal of application program, specifically includes:
Module upgrade under the upgrading catalogue is loaded by the DexClassLoader Classloaders of the Android operation system Configuration file, to realize the function renewal of application program.
8. such as claim 1-3 any one of them methods, which is characterized in that the module liter under the loading upgrading catalogue Grade configuration file, after realizing the function renewal of application program, the method further includes:
It is instructed in response to module initialization input by user, determines function mould to be restored corresponding with module initialization instruction The initial configuration file of block and the function module to be restored;
The initial configuration file is loaded to carry out Initialize installation to the module to be restored.
9. the function renewal device of a kind of application program, which is characterized in that the function renewal device of the application program includes depositing Reservoir, processor and the function renewal journey for being stored in the application program that can be run on the memory and on the processor Sequence, the function renewal program of the application program are arranged for carrying out such as application program described in any item of the claim 1 to 8 The step of function renewal method.
10. a kind of computer readable storage medium, which is characterized in that be stored on the computer readable storage medium using journey The function renewal program of sequence is realized when the function renewal program of the application program is executed by processor as in claim 1 to 8 The step of function renewal method of any one of them application program.
CN201711344173.5A 2017-12-14 2017-12-14 Function updating method and device of application program and computer readable storage medium Active CN108108181B (en)

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 true CN108108181A (en) 2018-06-01
CN108108181B 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)

Cited By (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109062593A (en) * 2018-07-20 2018-12-21 Oppo(重庆)智能科技有限公司 Application processing method and device, electronic equipment, computer readable storage medium
CN109189493A (en) * 2018-07-23 2019-01-11 广州视源电子科技股份有限公司 Application configuration method and device, equipment and computer readable storage medium
CN109460251A (en) * 2018-09-03 2019-03-12 武汉船舶通信研究所(中国船舶重工集团公司第七二二研究所) Component integrated framework management method and device
CN109672573A (en) * 2019-01-24 2019-04-23 网宿科技股份有限公司 A kind of dispositions method of configuration file determines method, server and storage medium
CN109800009A (en) * 2019-01-15 2019-05-24 科大国创软件股份有限公司 The hot update method and system of mixed type App functional module
CN109976787A (en) * 2019-03-12 2019-07-05 平安普惠企业管理有限公司 Application program updating method, apparatus, 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
CN111008028A (en) * 2019-11-22 2020-04-14 杭州数式网络科技有限公司 Software upgrading method, device 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
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
CN111258619A (en) * 2020-01-15 2020-06-09 深圳壹账通智能科技有限公司 Application program updating method and system
CN111596955A (en) * 2020-05-18 2020-08-28 上海联影医疗科技有限公司 Application changing method, application running method, device and system
CN111782236A (en) * 2020-05-11 2020-10-16 广州朗国电子科技有限公司 System software upgrading method and device, storage medium and all-in-one machine equipment
CN111831300A (en) * 2019-08-23 2020-10-27 北京骑胜科技有限公司 APP updating method and device, electronic equipment and computer readable storage medium
CN112099830A (en) * 2020-09-25 2020-12-18 努比亚技术有限公司 System updating method, equipment and computer readable storage medium
CN112214239A (en) * 2020-11-19 2021-01-12 湖南红网新媒体集团有限公司 News client configuration method and system
CN112328272A (en) * 2019-08-05 2021-02-05 浙江宇视科技有限公司 Algorithm upgrading method, device, equipment and storage medium
CN112363717A (en) * 2020-10-29 2021-02-12 福建联迪商用设备有限公司 Method and terminal for loading different functions in single software
CN113312079A (en) * 2020-11-20 2021-08-27 锐捷网络股份有限公司 Hot patch upgrading method and device, electronic equipment and storage medium
CN113672341A (en) * 2021-07-30 2021-11-19 济南浪潮数据技术有限公司 Method, system, device and storage medium for improving stability of k8s cluster
CN113703805A (en) * 2021-07-30 2021-11-26 济南浪潮数据技术有限公司 Upgrading method, system, terminal and storage medium of arm64 architecture virtualization system
CN113806390A (en) * 2020-06-16 2021-12-17 西安诺瓦星云科技股份有限公司 LED box management method, device and system
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
CN114341800A (en) * 2019-09-06 2022-04-12 三星电子株式会社 Method and apparatus for improving runtime performance after application update in an electronic device
CN114911507A (en) * 2022-07-15 2022-08-16 浙江大华技术股份有限公司 Method and device for updating algorithm package
CN115766681A (en) * 2022-11-28 2023-03-07 迈普通信技术股份有限公司 Program downloading method, device, medium and equipment
CN116991447A (en) * 2023-09-05 2023-11-03 荣耀终端有限公司 Operating system updating method and related equipment

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140237461A1 (en) * 2005-11-30 2014-08-21 Netapp, Inc. Method and apparatus for differential file based update for embedded systems
US20140282471A1 (en) * 2013-03-14 2014-09-18 Bitvore Corp. Dynamically Loaded Plugin Architecture
CN104111843A (en) * 2013-04-17 2014-10-22 苏州墨提斯信息科技有限公司 Sandbox based script updating method and system
CN104156244A (en) * 2014-08-06 2014-11-19 北京奇虎科技有限公司 Method and device for software upgrading
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
US20150363189A1 (en) * 2014-06-16 2015-12-17 Fujitsu Limited Apparatus and method for software information management
CN105607935A (en) * 2015-12-24 2016-05-25 北京奇虎科技有限公司 Application updating method and terminal and server
CN105653340A (en) * 2015-12-31 2016-06-08 宇龙计算机通信科技(深圳)有限公司 Parameter upgrading method, device and electronic equipment
CN107203395A (en) * 2017-05-19 2017-09-26 北京京东尚科信息技术有限公司 Resource graded method, device and computer-readable recording medium and electronic equipment
WO2017185253A1 (en) * 2016-04-27 2017-11-02 华为技术有限公司 Patch upgrade-based file processing method and device, terminal, and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140237461A1 (en) * 2005-11-30 2014-08-21 Netapp, Inc. Method and apparatus for differential file based update for embedded systems
CN104321782A (en) * 2012-03-30 2015-01-28 爱迪德加拿大公司 Secured execution of a web application
US20140282471A1 (en) * 2013-03-14 2014-09-18 Bitvore Corp. Dynamically Loaded Plugin Architecture
CN104111843A (en) * 2013-04-17 2014-10-22 苏州墨提斯信息科技有限公司 Sandbox based script updating method and system
US20150363189A1 (en) * 2014-06-16 2015-12-17 Fujitsu Limited Apparatus and method for software information management
CN104965721A (en) * 2014-07-10 2015-10-07 腾讯科技(深圳)有限公司 Method and apparatus for updating an application
CN104156244A (en) * 2014-08-06 2014-11-19 北京奇虎科技有限公司 Method and device for software upgrading
CN105607935A (en) * 2015-12-24 2016-05-25 北京奇虎科技有限公司 Application updating method and terminal and server
CN105653340A (en) * 2015-12-31 2016-06-08 宇龙计算机通信科技(深圳)有限公司 Parameter upgrading method, device and electronic equipment
WO2017185253A1 (en) * 2016-04-27 2017-11-02 华为技术有限公司 Patch upgrade-based file processing method and device, terminal, and storage medium
CN107203395A (en) * 2017-05-19 2017-09-26 北京京东尚科信息技术有限公司 Resource graded method, device and computer-readable recording medium and electronic equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
BHABANI RANJAN MAHAPATRA: ""difference between IKM oracle incremental update and IKM oracle incremental update(PL SQL)"", 《HTTPS://COMMUNITY.ORACLE.COM/TECH/APPS-INFRA/DISCUSSION/2585259》 *
高桐@BILL: ""整包升级与差分升级的区别"", 《HTTPS://BLOG.CSDN.NET/HUANGYABIN001/ARTICLE/DETAILS/46367371》 *

Cited By (38)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109062593A (en) * 2018-07-20 2018-12-21 Oppo(重庆)智能科技有限公司 Application processing method and device, electronic equipment, computer readable storage medium
CN109189493A (en) * 2018-07-23 2019-01-11 广州视源电子科技股份有限公司 Application configuration method and device, equipment and computer readable storage medium
CN109460251A (en) * 2018-09-03 2019-03-12 武汉船舶通信研究所(中国船舶重工集团公司第七二二研究所) Component integrated framework management method and device
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
CN109672573A (en) * 2019-01-24 2019-04-23 网宿科技股份有限公司 A kind of dispositions method of configuration file determines method, server and storage medium
CN109672573B (en) * 2019-01-24 2022-04-12 网宿科技股份有限公司 Configuration file deployment method, configuration file determination method, server and storage medium
CN109976787A (en) * 2019-03-12 2019-07-05 平安普惠企业管理有限公司 Application program updating method, apparatus, terminal and computer readable 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
CN112328272A (en) * 2019-08-05 2021-02-05 浙江宇视科技有限公司 Algorithm upgrading method, device, equipment and storage medium
CN112328272B (en) * 2019-08-05 2024-03-22 浙江宇视科技有限公司 Algorithm upgrading method, device, equipment and storage medium
CN111831300A (en) * 2019-08-23 2020-10-27 北京骑胜科技有限公司 APP updating method and device, electronic equipment and computer readable storage medium
CN114341800A (en) * 2019-09-06 2022-04-12 三星电子株式会社 Method and apparatus for improving runtime performance after application update in an electronic device
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
CN111008028A (en) * 2019-11-22 2020-04-14 杭州数式网络科技有限公司 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
CN111258619A (en) * 2020-01-15 2020-06-09 深圳壹账通智能科技有限公司 Application program updating method and system
CN111782236A (en) * 2020-05-11 2020-10-16 广州朗国电子科技有限公司 System software upgrading method and device, storage medium and all-in-one machine equipment
CN111596955A (en) * 2020-05-18 2020-08-28 上海联影医疗科技有限公司 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
CN112363717A (en) * 2020-10-29 2021-02-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
CN113672341A (en) * 2021-07-30 2021-11-19 济南浪潮数据技术有限公司 Method, system, device and storage medium for improving stability of k8s cluster
CN113703805A (en) * 2021-07-30 2021-11-26 济南浪潮数据技术有限公司 Upgrading method, system, terminal and storage medium of arm64 architecture virtualization system
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
CN114911507A (en) * 2022-07-15 2022-08-16 浙江大华技术股份有限公司 Method and device for updating algorithm package
CN115766681A (en) * 2022-11-28 2023-03-07 迈普通信技术股份有限公司 Program downloading method, device, medium and equipment
CN116991447A (en) * 2023-09-05 2023-11-03 荣耀终端有限公司 Operating system updating method and related equipment
CN116991447B (en) * 2023-09-05 2023-12-22 荣耀终端有限公司 Operating system updating method and related equipment

Also Published As

Publication number Publication date
CN108108181B (en) 2022-03-01

Similar Documents

Publication Publication Date Title
CN108108181A (en) The function renewal method, apparatus and computer readable storage medium of application program
CN106658475B (en) Method and device for upgrading over-the-air technology
CN104991793B (en) A kind of method, apparatus and system for application program subpackage
US20150220326A1 (en) Mobile Terminal and Software Upgrade Method Thereof
US9075693B2 (en) Methods for updating applications
JP5658283B2 (en) Application operating method, apparatus and system
CN108491236A (en) A kind of plug-in loading method, device and computer readable storage medium
US9569197B2 (en) Method of disseminating updated drivers to mobile computing devices and a dissemination system therefor
CN106201607A (en) The upgrade method of a kind of software version and equipment
US10437582B2 (en) Method and system for a client to server deployment via an online distribution platform
CN106572372A (en) Set-top box upgrading method and set-top box
CN110134418A (en) Vehicle upgrade method and device, storage medium and terminal based on space download technology
CN108809960A (en) A kind of file uploads and method for down loading, device, equipment, system and storage medium
CN105511920B (en) A kind of mobile terminal operating system upgrade method and device based on container
CN109725952B (en) Method, system and related device for application program plug-in
CN104834555A (en) Method for invoking functional module, related device and device repairing method
CN106445580A (en) Method and device for BMC (Baseboard Management Controller) with external upgrading
CN110543324B (en) Plug-in increment updating method and device for application program
CN109857423A (en) Program version update method, device, server and readable storage medium storing program for executing
CN104834541A (en) Function module mounting method, mounting system and mounting system updating method
CN107637110A (en) Method for loading configuration file
CN107844306A (en) Restorative procedure, device, storage medium and the terminal of application program
CN106775876B (en) Method for quickly starting application by android system
US10922064B2 (en) Method, device and user terminal for software installation
CN106325896B (en) Shared function library file processing method and device for installation package

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

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

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant