CN110457052A - Application upgrade method and device - Google Patents

Application upgrade method and device Download PDF

Info

Publication number
CN110457052A
CN110457052A CN201810432709.7A CN201810432709A CN110457052A CN 110457052 A CN110457052 A CN 110457052A CN 201810432709 A CN201810432709 A CN 201810432709A CN 110457052 A CN110457052 A CN 110457052A
Authority
CN
China
Prior art keywords
module
application
target version
upgrade
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810432709.7A
Other languages
Chinese (zh)
Inventor
陈磊
朱秋楠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba China Co Ltd
Original Assignee
Youku Network Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Youku Network Technology Beijing Co Ltd filed Critical Youku Network Technology Beijing Co Ltd
Priority to CN201810432709.7A priority Critical patent/CN110457052A/en
Publication of CN110457052A publication Critical patent/CN110457052A/en
Pending legal-status Critical Current

Links

Classifications

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

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

This disclosure relates to application upgrade method and device.This method comprises: obtaining the target version information of the first module of the first application;If determining that first module in the terminal device is not target version according to the target version information, then obtaining the corresponding upgrade installation package of the target version information;The upgrade installation package is decompressed in the terminal device, obtains decompressing files;Registration table is written into the file path of the decompressing files, and notifies the first module after the first application loading upgrading;Pass through the first module before the first application unloading upgrading;The decompressing files is obtained according to the file path in the registration table by first application, and according to the first module after the decompressing files loading upgrading.The disclosure can release quickly need the module that upgrades, normal function iteration issuing steps will not be upset, manpower is saved, and be not necessarily to restart application after the completion of module upgrade, so as to further increase the timeliness that module is issued.

Description

Application upgrade method and device
Technical field
This disclosure relates to field of computer technology more particularly to a kind of application upgrade method and device.
Background technique
The component upgrade of application mainly applies in the daily life function iteration deployment of application.The component upgrade of application usually by More people's concurrent developments, version release cycle are usually two weeks or so.The component upgrade of application needs to modify the version number of application.
In the daily development process of application, the scene that some modules need release quickly is encountered sometimes.In this field Under scape, if carrying out application upgrade by way of component upgrade, it is longer that there are release cycles, is unable to satisfy module publication The problem of timeliness demand.If release module by force, other colleagues do not synchronously complete exploitation, then will lead to can not upgrade, and beat Disorderly normal function iteration issuing steps.In addition, the configuration of component upgrade and logic are complex, if frequent progress component liter Grade, then can expend a large amount of manpowers.After component upgrade, it is also necessary to restarting application, therefore cause timeliness lower.Cause This, needs to propose a kind of new application upgrade method, to solve the problems, such as that module needs release quickly.
Summary of the invention
In view of this, the present disclosure proposes a kind of application upgrade method and devices.
According to the one side of the disclosure, a kind of application upgrade method is provided, the method is applied in terminal device, institute The method of stating includes:
Obtain the target version information of the first module of the first application;
If determining that first module in the terminal device is not target version according to the target version information, Then obtain the corresponding upgrade installation package of the target version information;
The upgrade installation package is decompressed in the terminal device, obtains decompressing files;
Registration table is written into the file path of the decompressing files, and notifies described first to apply first after loading upgrading Module;
Pass through the first module before the first application unloading upgrading;
The decompressing files is obtained according to the file path in the registration table by first application, and according to described The first module after decompressing files loading upgrading.
In one possible implementation, the target version has new module release number, and the target version With the upper version application version number having the same of the target version.
In one possible implementation, the target version information of the first module of the first application is obtained, comprising:
The target version information of the first module of the first application is obtained from configuration server;
Obtain the corresponding upgrade installation package of the target version information, comprising:
According to the upgrade installation package download address in the target version information, the target is downloaded from file server The corresponding upgrade installation package of version information.
In one possible implementation, registration table is written into the file path of the decompressing files, comprising:
The decompressing files is verified according to the MD5 value in the target version information;
In the case where decompressing files verification passes through, registration table is written into the file path of the decompressing files.
In one possible implementation, the method also includes:
In the first application starting, the information of the upgrade file of the first module described in the terminal device is obtained;
If determining that there are first module is corresponding multiple in the terminal device according to the information of the upgrade file The upgrade file of version then deletes the upgrade file other than the latest edition of the first module described in the terminal device.
According to another aspect of the present disclosure, a kind of application upgrade device is provided, described device includes:
First acquisition unit, the target version information of the first module for obtaining the first application;
Second acquisition unit, if for determining described first in the terminal device according to the target version information Module is not target version, then obtains the corresponding upgrade installation package of the target version information;
Decompression units obtain decompressing files for decompressing the upgrade installation package in the terminal device;
Writing unit for registration table to be written in the file path of the decompressing files, and notifies first application to add The first module after carrying upgrading;
Unloading unit, for passing through the first module before the first application unloading upgrading;
Loading unit, for obtaining the decompression text according to the file path in the registration table by first application Part, and according to the first module after the decompressing files loading upgrading.
In one possible implementation, the target version has new module release number, and the target version With the upper version application version number having the same of the target version.
In one possible implementation, the first acquisition unit is used for:
The target version information of the first module of the first application is obtained from configuration server;
The second acquisition unit is used for:
According to the upgrade installation package download address in the target version information, the target is downloaded from file server The corresponding upgrade installation package of version information.
In one possible implementation, said write unit includes:
Subelement is verified, for verifying according to the MD5 value in the target version information to the decompressing files;
Be written subelement, for the decompressing files verification pass through in the case where, by the file road of the decompressing files Registration table is written in diameter.
In one possible implementation, described device further include:
Third acquiring unit, for obtaining the first module described in the terminal device in the first application starting Upgrade file information;
Unit is deleted, if determining that there are described first in the terminal device for the information according to the upgrade file The upgrade file of the corresponding multiple versions of module, then delete other than the latest edition of the first module described in the terminal device Upgrade file.
According to another aspect of the present disclosure, a kind of application upgrade device is provided, comprising: processor;It is handled for storage The memory of device executable instruction;Wherein, the processor is configured to executing the above method.
According to another aspect of the present disclosure, a kind of non-volatile computer readable storage medium storing program for executing is provided, is stored thereon with Computer program instructions, wherein the computer program instructions realize the above method when being executed by processor.
The target version that the application upgrade method and device of all aspects of this disclosure passes through the first module of the first application of acquisition This information, if determining that the first module in terminal device is not target version according to target version information, then obtaining target version The corresponding upgrade installation package of information, upgrade installation package is decompressed in terminal device, obtains decompressing files, by the file of decompressing files Registration table is written in path, the first module after notifying the first application loading upgrading, passes through first before the first application unloading upgrading Module, by first application according in registration table file path obtain decompressing files, and according to decompressing files loading upgrading after The first module, thus, it is possible to release quicklies to need the module that upgrades, will not upset normal function iteration issuing steps, save Manpower, and be not necessarily to restart application after the completion of module upgrade, so as to further increase the timeliness of module publication.
According to below with reference to the accompanying drawings to detailed description of illustrative embodiments, the other feature and aspect of the disclosure will become It is clear.
Detailed description of the invention
Comprising in the description and constituting the attached drawing of part of specification and specification together illustrates the disclosure Exemplary embodiment, feature and aspect, and for explaining the principles of this disclosure.
Fig. 1 shows the flow chart of the application upgrade method according to one embodiment of the disclosure.
Fig. 2 shows in the application upgrade method and step S14 according to one embodiment of the disclosure by the file path of decompressing files An illustrative flow chart of registration table is written.
Fig. 3 shows an illustrative flow chart of the application upgrade method according to one embodiment of the disclosure.
Fig. 4 shows the block diagram of the application upgrade device according to one embodiment of the disclosure.
Fig. 5 shows an illustrative block diagram of the application upgrade device according to one embodiment of the disclosure.
Fig. 6 is a kind of block diagram of device 800 for application upgrade shown according to an exemplary embodiment.
Specific embodiment
Various exemplary embodiments, feature and the aspect of the disclosure are described in detail below with reference to attached drawing.It is identical in attached drawing Appended drawing reference indicate element functionally identical or similar.Although the various aspects of embodiment are shown in the attached drawings, remove It non-specifically points out, it is not necessary to attached drawing drawn to scale.
Dedicated word " exemplary " means " being used as example, embodiment or illustrative " herein.Here as " exemplary " Illustrated any embodiment should not necessarily be construed as preferred or advantageous over other embodiments.
In addition, giving numerous details in specific embodiment below to better illustrate the disclosure. It will be appreciated by those skilled in the art that without certain details, the disclosure equally be can be implemented.In some instances, for Method, means, element and circuit well known to those skilled in the art are not described in detail, in order to highlight the purport of the disclosure.
Fig. 1 shows the flow chart of the application upgrade method according to one embodiment of the disclosure.This method is applied to terminal device In.As shown in Figure 1, the method comprising the steps of S11 to step S16.
In step s 11, the target version information of the first module of the first application is obtained.
In the present embodiment, the first application can refer to any application in terminal device." first " In in first application This is only the convenience stated and referred to, and is not meant to centainly to have corresponding the in the specific implementation of the disclosure One application.First module can refer to the operational blocks which partition system for needing to upgrade in the first application.First module may include one or more Component." first " in first module is only herein the convenience stated and referred to, and is not meant to the specific implementation in the disclosure Corresponding first module is centainly had in mode.For example, the first module can be pushing module, download module, upload mould Block, playing module or page display module etc..
In one possible implementation, the target version of the first module can be the latest edition of the first module.Mesh Mark version information may include the module release number of target version.
In one possible implementation, the target version information of the first module of the first application is obtained, comprising: from matching Set the target version information that the first module of the first application is obtained in server.In this implementation, target version information can To be stored in configuration server.Configuration server is mainly useful operation business, and query rate per second can be higher, and configures The capacity of server can be smaller.
In step s 12, if according to target version information, determine that the first module in the terminal device is not target version This, then obtain the corresponding upgrade installation package of target version information.
It in the present embodiment, can be according in target version information in the module release number and terminal device of target version The module release number of first module judges whether the first module in terminal device is target version.If in terminal device One module is not target version, then can star downloader, downloads the corresponding update of target version information by downloader Packet.
In one possible implementation, the corresponding upgrade installation package of target version information is obtained, comprising: according to target Upgrade installation package download address in version information downloads the corresponding update of target version information from file server Packet.In this implementation, upgrade installation package can store in file server.The logic of file server can be simpler It is single, and the capacity of file server can be larger.
In step s 13, upgrade installation package is decompressed in the terminal device, obtains decompressing files.
In the present embodiment, after decompression upgrade installation package obtains decompressing files, decompressing files can be saved in end In end equipment.
In step S14, registration table is written into the file path of decompressing files, and after notifying the first application loading upgrading First module.
In step S15, pass through the first module before the first application unloading upgrading.
For example, the FreeLibrary of Windows API can be used, the first module before unloading upgrading.
In step s 16, decompressing files is obtained according to the file path in registration table by the first application, and according to decompression The first module after file loading upgrading.
For example, the LoadLibrary of Windows API can be used, the first module after loading upgrading.
The target version information for the first module that the present embodiment is applied by acquisition first, if according to target version information, It determines that the first module in terminal device is not target version, then the corresponding upgrade installation package of target version information is obtained, at end Upgrade installation package is decompressed in end equipment, obtains decompressing files, and registration table is written into the file path of decompressing files, notifies first to answer With the first module after loading upgrading, the first module before upgrading is unloaded by the first application, by the first application according to registration File path in table obtains decompressing files, and according to the first module after decompressing files loading upgrading, thus, it is possible to quickly send out Cloth needs the module upgraded, will not upset normal function iteration issuing steps, saves manpower, and be not necessarily to after the completion of module upgrade Application is restarted, so as to further increase the timeliness of module publication.
In one possible implementation, target version has new module release number, and target version and target version This upper version application version number having the same.In this implementation, the first module of the first application of upgrading is not necessarily to Modify application version number, Zhi Xu modified module version number, thus to application operation complexity influence it is smaller, even if frequently into Row module upgrade will not upset normal function iteration issuing steps.
Fig. 2 shows in the application upgrade method and step S14 according to one embodiment of the disclosure by the file path of decompressing files An illustrative flow chart of registration table is written.As shown in Fig. 2, may include by the file path write-in registration table of decompressing files Step S141 and step S142.
In step s 141, decompressing files is verified according to the MD5 value in target version information.
In one possible implementation, the corresponding MD5 value of decompressing files can be calculated.If decompressing files is corresponding MD5 value is identical as the MD5 value in target version information, then can determine that decompressing files verification passes through;If decompressing files is corresponding MD5 value is different from the MD5 value in target version information, then can determine that decompressing files verification does not pass through.
In step S142, in the case where decompressing files verification passes through, registration is written into the file path of decompressing files Table.
Fig. 3 shows an illustrative flow chart of the application upgrade method according to one embodiment of the disclosure.As shown in figure 3, This method may include step S31 to step S38.
In step S31, in the first application starting, the letter of the upgrade file of the first module in the terminal device is obtained Breath.
In the present embodiment, there may be the upgrading texts of the corresponding one or more versions of the first module in terminal device Part.The information of the upgrade file of first module may include the module release number of the upgrade file of the first module.
In step s 32, if according to the information of upgrade file, it is corresponding more to determine in the terminal device that there are the first modules The upgrade file of a version then deletes the upgrade file in the terminal device other than the latest edition of the first module.
In the present embodiment, if there are the upgrade file of the corresponding multiple versions of the first module in terminal device, in addition to Other than the upgrade file of the latest edition of first module, the upgrade file of other versions of the first module is invalid upgrading text Part.Wherein, the upgrade file of a certain version of the first module may include the upgrade installation package and installation file of the version.
The present embodiment passes through the case where there are the upgrade files of the corresponding multiple versions of the first module in the terminal device Under, the upgrade file in the terminal device other than the latest edition of the first module is deleted, the storage that can save terminal device is empty Between.
In step S33, the target version information of the first module of the first application is obtained.
Wherein, the description to step SS11 is seen above to step S33.
In step S34, if determining that the first module in the terminal device is not target version according to target version information This, then obtain the corresponding upgrade installation package of target version information.
Wherein, the description to step SS12 is seen above to step S34.
In step s 35, upgrade installation package is decompressed in the terminal device, obtains decompressing files.
Wherein, the description to step SS13 is seen above to step S36.
In step S36, registration table is written into the file path of decompressing files, and after notifying the first application loading upgrading First module.
Wherein, the description to step SS14 is seen above to step S36.
In step S37, pass through the first module before the first application unloading upgrading.
Wherein, the description to step SS15 is seen above to step S37.
In step S38, decompressing files is obtained according to the file path in registration table by the first application, and according to decompression The first module after file loading upgrading.
Wherein, the description to step SS16 is seen above to step S38.
Fig. 4 shows the block diagram of the application upgrade device according to one embodiment of the disclosure.As shown in figure 4, the device includes: One acquiring unit 41, the target version information of the first module for obtaining the first application;Second acquisition unit 42, if being used for root It according to target version information, determines that the first module in the terminal device is not target version, then it is corresponding to obtain target version information Upgrade installation package;Decompression units 43 obtain decompressing files for decompressing upgrade installation package in the terminal device;Write-in is single Member 44 for registration table to be written in the file path of decompressing files, and notifies the first module after the first application loading upgrading;It unloads Carrier unit 45, for passing through the first module before the first application unloading upgrading;Loading unit 46, for applying basis by first File path in registration table obtains decompressing files, and according to the first module after decompressing files loading upgrading.
In one possible implementation, target version has new module release number, and target version and target version This upper version application version number having the same.
In one possible implementation, first acquisition unit 41 is used for: the first application is obtained from configuration server The first module target version information;Second acquisition unit 42 is used for: according under the upgrade installation package in target version information Set address downloads the corresponding upgrade installation package of target version information from file server.
Fig. 5 shows an illustrative block diagram of the application upgrade device according to one embodiment of the disclosure.It is as shown in Figure 5:
In one possible implementation, writing unit 44 includes: verification subelement 441, for according to target version MD5 value in information verifies decompressing files;Be written subelement 442, for decompressing files verification pass through in the case where, Registration table is written into the file path of decompressing files.
In one possible implementation, the device further include: third acquiring unit 47, in the first application starting When, obtain the information of the upgrade file of the first module in the terminal device;Unit 48 is deleted, if for the letter according to upgrade file Breath, determines in the terminal device there are the upgrade file of the corresponding multiple versions of the first module, then deletes in the terminal device the Upgrade file other than the latest edition of one module.
The target version information for the first module that the present embodiment is applied by acquisition first, if according to target version information, It determines that the first module in terminal device is not target version, then the corresponding upgrade installation package of target version information is obtained, at end Upgrade installation package is decompressed in end equipment, obtains decompressing files, and registration table is written into the file path of decompressing files, notifies first to answer With the first module after loading upgrading, the first module before upgrading is unloaded by the first application, by the first application according to registration File path in table obtains decompressing files, and according to the first module after decompressing files loading upgrading, thus, it is possible to quickly send out Cloth needs the module upgraded, will not upset normal function iteration issuing steps, saves manpower, and be not necessarily to after the completion of module upgrade Application is restarted, so as to further increase the timeliness of module publication.
Fig. 6 is a kind of block diagram of device 800 for application upgrade shown according to an exemplary embodiment.For example, dress Setting 800 can be mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical treatment Equipment, body-building equipment, personal digital assistant etc..
Referring to Fig. 6, device 800 may include following one or more components: processing component 802, memory 804, power supply Component 806, multimedia component 808, audio component 810, the interface 812 of input/output (I/O), sensor module 814, and Communication component 816.
The integrated operation of the usual control device 800 of processing component 802, such as with display, telephone call, data communication, phase Machine operation and record operate associated operation.Processing component 802 may include that one or more processors 820 refer to execute It enables, to perform all or part of the steps of the methods described above.In addition, processing component 802 may include one or more modules, just Interaction between processing component 802 and other assemblies.For example, processing component 802 may include multi-media module, it is more to facilitate Interaction between media component 808 and processing component 802.
Memory 804 is configured as storing various types of data to support the operation in device 800.These data are shown Example includes the instruction of any application or method for operating on device 800, contact data, and telephone book data disappears Breath, picture, video etc..Memory 804 can be by any kind of volatibility or non-volatile memory device or their group It closes and realizes, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM) is erasable to compile Journey read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash Device, disk or CD.
Power supply module 806 provides electric power for the various assemblies of device 800.Power supply module 806 may include power management system System, one or more power supplys and other with for device 800 generate, manage, and distribute the associated component of electric power.
Multimedia component 808 includes the screen of one output interface of offer between described device 800 and user.One In a little embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen Curtain may be implemented as touch screen, to receive input signal from the user.Touch panel includes one or more touch sensings Device is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding action Boundary, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more matchmakers Body component 808 includes a front camera and/or rear camera.When device 800 is in operation mode, such as screening-mode or When video mode, front camera and/or rear camera can receive external multi-medium data.Each front camera and Rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 810 is configured as output and/or input audio signal.For example, audio component 810 includes a Mike Wind (MIC), when device 800 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone is matched It is set to reception external audio signal.The received audio signal can be further stored in memory 804 or via communication set Part 816 is sent.In some embodiments, audio component 810 further includes a loudspeaker, is used for output audio signal.
I/O interface 812 provides interface between processing component 802 and peripheral interface module, and above-mentioned peripheral interface module can To be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and lock Determine button.
Sensor module 814 includes one or more sensors, and the state for providing various aspects for device 800 is commented Estimate.For example, sensor module 814 can detecte the state that opens/closes of device 800, and the relative positioning of component, for example, it is described Component is the display and keypad of device 800, and sensor module 814 can be with 800 1 components of detection device 800 or device Position change, the existence or non-existence that user contacts with device 800,800 orientation of device or acceleration/deceleration and device 800 Temperature change.Sensor module 814 may include proximity sensor, be configured to detect without any physical contact Presence of nearby objects.Sensor module 814 can also include optical sensor, such as CMOS or ccd image sensor, at As being used in application.In some embodiments, which can also include acceleration transducer, gyro sensors Device, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 816 is configured to facilitate the communication of wired or wireless way between device 800 and other equipment.Device 800 can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In an exemplary implementation In example, communication component 816 receives broadcast singal or broadcast related information from external broadcasting management system via broadcast channel. In one exemplary embodiment, the communication component 816 further includes near-field communication (NFC) module, to promote short range communication.Example Such as, NFC module can be based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, Bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 800 can be believed by one or more application specific integrated circuit (ASIC), number Number processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
In the exemplary embodiment, a kind of non-volatile computer readable storage medium storing program for executing is additionally provided, for example including calculating The memory 804 of machine program instruction, above-mentioned computer program instructions can be executed above-mentioned to complete by the processor 820 of device 800 Method.
The disclosure can be system, method and/or computer program product.Computer program product may include computer Readable storage medium storing program for executing, containing for making processor realize the computer-readable program instructions of various aspects of the disclosure.
Computer readable storage medium, which can be, can keep and store the tangible of the instruction used by instruction execution equipment Equipment.Computer readable storage medium for example can be-- but it is not limited to-- storage device electric, magnetic storage apparatus, optical storage Equipment, electric magnetic storage apparatus, semiconductor memory apparatus or above-mentioned any appropriate combination.Computer readable storage medium More specific example (non exhaustive list) includes: portable computer diskette, hard disk, random access memory (RAM), read-only deposits It is reservoir (ROM), erasable programmable read only memory (EPROM or flash memory), static random access memory (SRAM), portable Compact disk read-only memory (CD-ROM), digital versatile disc (DVD), memory stick, floppy disk, mechanical coding equipment, for example thereon It is stored with punch card or groove internal projection structure and the above-mentioned any appropriate combination of instruction.Calculating used herein above Machine readable storage medium storing program for executing is not interpreted that instantaneous signal itself, the electromagnetic wave of such as radio wave or other Free propagations lead to It crosses the electromagnetic wave (for example, the light pulse for passing through fiber optic cables) of waveguide or the propagation of other transmission mediums or is transmitted by electric wire Electric signal.
Computer-readable program instructions as described herein can be downloaded to from computer readable storage medium it is each calculate/ Processing equipment, or outer computer or outer is downloaded to by network, such as internet, local area network, wide area network and/or wireless network Portion stores equipment.Network may include copper transmission cable, optical fiber transmission, wireless transmission, router, firewall, interchanger, gateway Computer and/or Edge Server.Adapter or network interface in each calculating/processing equipment are received from network to be counted Calculation machine readable program instructions, and the computer-readable program instructions are forwarded, for the meter being stored in each calculating/processing equipment In calculation machine readable storage medium storing program for executing.
Computer program instructions for executing disclosure operation can be assembly instruction, instruction set architecture (ISA) instructs, Machine instruction, machine-dependent instructions, microcode, firmware instructions, condition setup data or with one or more programming languages The source code or object code that any combination is write, the programming language include the programming language-of object-oriented such as Smalltalk, C++ etc., and conventional procedural programming languages-such as " C " language or similar programming language.Computer Readable program instructions can be executed fully on the user computer, partly execute on the user computer, be only as one Vertical software package executes, part executes on the remote computer or completely in remote computer on the user computer for part Or it is executed on server.In situations involving remote computers, remote computer can pass through network-packet of any kind It includes local area network (LAN) or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as benefit It is connected with ISP by internet).In some embodiments, by utilizing computer-readable program instructions Status information carry out personalized customization electronic circuit, such as programmable logic circuit, field programmable gate array (FPGA) or can Programmed logic array (PLA) (PLA), the electronic circuit can execute computer-readable program instructions, to realize each side of the disclosure Face.
Referring herein to according to the flow chart of the method, apparatus (system) of the embodiment of the present disclosure and computer program product and/ Or block diagram describes various aspects of the disclosure.It should be appreciated that flowchart and or block diagram each box and flow chart and/ Or in block diagram each box combination, can be realized by computer-readable program instructions.
These computer-readable program instructions can be supplied to general purpose computer, special purpose computer or other programmable datas The processor of processing unit, so that a kind of machine is produced, so that these instructions are passing through computer or other programmable datas When the processor of processing unit executes, function specified in one or more boxes in implementation flow chart and/or block diagram is produced The device of energy/movement.These computer-readable program instructions can also be stored in a computer-readable storage medium, these refer to It enables so that computer, programmable data processing unit and/or other equipment work in a specific way, thus, it is stored with instruction Computer-readable medium then includes a manufacture comprising in one or more boxes in implementation flow chart and/or block diagram The instruction of the various aspects of defined function action.
Computer-readable program instructions can also be loaded into computer, other programmable data processing units or other In equipment, so that series of operation steps are executed in computer, other programmable data processing units or other equipment, to produce Raw computer implemented process, so that executed in computer, other programmable data processing units or other equipment Instruct function action specified in one or more boxes in implementation flow chart and/or block diagram.
The flow chart and block diagram in the drawings show system, method and the computer journeys according to multiple embodiments of the disclosure The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation One module of table, program segment or a part of instruction, the module, program segment or a part of instruction include one or more use The executable instruction of the logic function as defined in realizing.In some implementations as replacements, function marked in the box It can occur in a different order than that indicated in the drawings.For example, two continuous boxes can actually be held substantially in parallel Row, they can also be executed in the opposite order sometimes, and this depends on the function involved.It is also noted that block diagram and/or The combination of each box in flow chart and the box in block diagram and or flow chart, can the function as defined in executing or dynamic The dedicated hardware based system made is realized, or can be realized using a combination of dedicated hardware and computer instructions.
The presently disclosed embodiments is described above, above description is exemplary, and non-exclusive, and It is not limited to disclosed each embodiment.Without departing from the scope and spirit of illustrated each embodiment, for this skill Many modifications and changes are obvious for the those of ordinary skill in art field.The selection of term used herein, purport In the principle, practical application or technological improvement to the technology in market for best explaining each embodiment, or lead this technology Other those of ordinary skill in domain can understand each embodiment disclosed herein.

Claims (12)

1. a kind of application upgrade method, which is characterized in that the method is applied in terminal device, which comprises
Obtain the target version information of the first module of the first application;
If determining that first module in the terminal device is not target version according to the target version information, then obtaining Take the corresponding upgrade installation package of the target version information;
The upgrade installation package is decompressed in the terminal device, obtains decompressing files;
Registration table is written into the file path of the decompressing files, and notifies the first mould after the first application loading upgrading Block;
Pass through the first module before the first application unloading upgrading;
The decompressing files is obtained according to the file path in the registration table by first application, and according to the decompression The first module after file loading upgrading.
2. the method according to claim 1, wherein the target version has new module release number, and institute State the upper version application version number having the same of target version Yu the target version.
3. the method according to claim 1, wherein obtaining the target version letter of the first module of the first application Breath, comprising:
The target version information of the first module of the first application is obtained from configuration server;
Obtain the corresponding upgrade installation package of the target version information, comprising:
According to the upgrade installation package download address in the target version information, the target version is downloaded from file server The corresponding upgrade installation package of information.
4. the method according to claim 1, wherein registration table is written in the file path of the decompressing files, Include:
The decompressing files is verified according to the MD5 value in the target version information;
In the case where decompressing files verification passes through, registration table is written into the file path of the decompressing files.
5. the method according to claim 1, wherein the method also includes:
In the first application starting, the information of the upgrade file of the first module described in the terminal device is obtained;
If determining that there are the corresponding multiple versions of first module in the terminal device according to the information of the upgrade file Upgrade file, then delete the upgrade file other than the latest edition of the first module described in the terminal device.
6. a kind of application upgrade device, which is characterized in that described device includes:
First acquisition unit, the target version information of the first module for obtaining the first application;
Second acquisition unit, if for determining first module in the terminal device according to the target version information It is not target version, then obtains the corresponding upgrade installation package of the target version information;
Decompression units obtain decompressing files for decompressing the upgrade installation package in the terminal device;
Writing unit for registration table to be written in the file path of the decompressing files, and notifies the first application load to rise The first module after grade;
Unloading unit, for passing through the first module before the first application unloading upgrading;
Loading unit, for obtaining the decompressing files according to the file path in the registration table by first application, And according to the first module after the decompressing files loading upgrading.
7. device according to claim 6, which is characterized in that the target version has new module release number, and institute State the upper version application version number having the same of target version Yu the target version.
8. device according to claim 6, which is characterized in that the first acquisition unit is used for:
The target version information of the first module of the first application is obtained from configuration server;
The second acquisition unit is used for:
According to the upgrade installation package download address in the target version information, the target version is downloaded from file server The corresponding upgrade installation package of information.
9. device according to claim 6, which is characterized in that said write unit includes:
Subelement is verified, for verifying according to the MD5 value in the target version information to the decompressing files;
Subelement is written, in the case where decompressing files verification passes through, the file path of the decompressing files to be write Enter registration table.
10. device according to claim 6, which is characterized in that described device further include:
Third acquiring unit, for obtaining the liter of the first module described in the terminal device in the first application starting The information of grade file;
Unit is deleted, if determining that there are first modules in the terminal device for the information according to the upgrade file The upgrade file of corresponding multiple versions, then delete the upgrading other than the latest edition of the first module described in the terminal device File.
11. a kind of application upgrade device characterized by comprising
Processor;
Memory for storage processor executable instruction;
Wherein, the processor is configured to method described in any one of perform claim requirement 1 to 5.
12. a kind of non-volatile computer readable storage medium storing program for executing, is stored thereon with computer program instructions, which is characterized in that institute It states and realizes method described in any one of claim 1 to 5 when computer program instructions are executed by processor.
CN201810432709.7A 2018-05-08 2018-05-08 Application upgrade method and device Pending CN110457052A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810432709.7A CN110457052A (en) 2018-05-08 2018-05-08 Application upgrade method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810432709.7A CN110457052A (en) 2018-05-08 2018-05-08 Application upgrade method and device

Publications (1)

Publication Number Publication Date
CN110457052A true CN110457052A (en) 2019-11-15

Family

ID=68480480

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810432709.7A Pending CN110457052A (en) 2018-05-08 2018-05-08 Application upgrade method and device

Country Status (1)

Country Link
CN (1) CN110457052A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111414188A (en) * 2020-02-25 2020-07-14 北京小米移动软件有限公司 Application version matching method, application version matching device and storage medium
CN113010197A (en) * 2020-06-11 2021-06-22 深圳市科脉技术股份有限公司 Application silence upgrading method, system, terminal equipment and storage medium
CN116204200A (en) * 2023-02-03 2023-06-02 启朔(深圳)科技有限公司 Application installation method, device, storage medium and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105607935A (en) * 2015-12-24 2016-05-25 北京奇虎科技有限公司 Application updating method and terminal and server
CN105657191A (en) * 2016-03-29 2016-06-08 Tcl集团股份有限公司 Application increment upgrading method and system based on Android system
CN106227561A (en) * 2016-07-20 2016-12-14 杭州华三通信技术有限公司 A kind of cloud operating system update method and device
US20170322793A1 (en) * 2016-05-05 2017-11-09 International Business Machines Corporation Upgrade of an operating system of a virtual machine

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105607935A (en) * 2015-12-24 2016-05-25 北京奇虎科技有限公司 Application updating method and terminal and server
CN105657191A (en) * 2016-03-29 2016-06-08 Tcl集团股份有限公司 Application increment upgrading method and system based on Android system
US20170322793A1 (en) * 2016-05-05 2017-11-09 International Business Machines Corporation Upgrade of an operating system of a virtual machine
CN106227561A (en) * 2016-07-20 2016-12-14 杭州华三通信技术有限公司 A kind of cloud operating system update method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111414188A (en) * 2020-02-25 2020-07-14 北京小米移动软件有限公司 Application version matching method, application version matching device and storage medium
CN113010197A (en) * 2020-06-11 2021-06-22 深圳市科脉技术股份有限公司 Application silence upgrading method, system, terminal equipment and storage medium
CN116204200A (en) * 2023-02-03 2023-06-02 启朔(深圳)科技有限公司 Application installation method, device, storage medium and equipment
CN116204200B (en) * 2023-02-03 2024-02-09 启朔(深圳)科技有限公司 Application installation method, device, storage medium and equipment

Similar Documents

Publication Publication Date Title
CN104951335B (en) The processing method and processing device of application program installation kit
CN104484200B (en) The method and device upgraded to firmware
CN105094931B (en) Method for upgrading software and device
CN104156236A (en) Storage space saving method and device
CN105630546B (en) Method for updating system and device
CN110457052A (en) Application upgrade method and device
CN104281478A (en) Method and device for updating application programs
CN109388414A (en) Method for upgrading software and device
CN110209385A (en) Establishment of item method and device
CN105302615A (en) Method and device for upgrading software
CN105871913A (en) Identity authentication method and system
CN109388423A (en) Method for upgrading software and device
CN104811776A (en) Multimedia playing method and device
CN109388625A (en) The method and device of configuration file is handled in more distributed file systems
CN105446768A (en) System upgrading method and apparatus
CN105094830A (en) Method and device for executing target functions
CN106528113A (en) File compiling method and apparatus
CN106547597A (en) The control method and device of application program update
CN109446796A (en) Application control method and device, mobile terminal and storage medium
CN103634461A (en) Mobile terminal and control method thereof
CN105630548B (en) Method for updating system and device
CN104866349A (en) Application updating method and device
CN107632835A (en) Using installation method and device
CN104866340A (en) Method and apparatus for updating terminal device software
CN109992754A (en) Document processing method and device

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: 20200519

Address after: 310052 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Applicant after: Alibaba (China) Co.,Ltd.

Address before: 100080 Beijing Haidian District city Haidian street A Sinosteel International Plaza No. 8 block 5 layer A, C

Applicant before: Youku network technology (Beijing) Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20191115