Summary of the invention
The embodiment of the invention provides a kind of application update method and devices, at least to solve carrying out in the related technology
When using updating, the technical issues of update can not be interrupted, user experience is caused to decline.
According to an aspect of an embodiment of the present invention, provide it is a kind of using update method, including:It determines in terminal and installs
Using need be updated;It obtains and updates the file that the application needs, wherein all texts of the application being updated
Part is stored in advance in Dropbox;The application is updated using the file that the application needs is updated.
Further, obtaining the file that the update application needs includes:Obtain the network address of the terminal;According to institute
State network address lookup and the closely located Dropbox of the terminal network, wherein the network distance refer to from the terminal to
The Dropbox transmits file paths traversed;The Dropbox similar in the network distance obtains required for updating the application
File.
Further, include according to the network address lookup Dropbox closely located with the terminal network:According to institute
Network address is stated in preconfigured file search and the closely located Dropbox of the terminal network, wherein described to be pre-configured with
File in preserve storage update file all Dropbox network address.
Further, the network address includes IP address.
According to another aspect of an embodiment of the present invention, additionally provide it is a kind of using updating device, including:Determination unit is used
In determine installed in terminal using need be updated;Acquiring unit, for obtaining the file for updating the application and needing,
In, the All Files of the application being updated are stored in advance in Dropbox;Updating unit, for using described in update
The application is updated using the file of needs.
Further, the acquiring unit includes:First obtains module, for obtaining the network address of the terminal;It looks into
Module is looked for, for according to the network address lookup and the closely located Dropbox of the terminal network, wherein the network distance
Refer to the transmission file paths traversed from the terminal to the Dropbox;Second obtains module, is used for from the network distance
Similar Dropbox obtains file required for updating the application.
Further, the searching module includes:Submodule is searched, is used for according to the network address preconfigured
File search and the closely located Dropbox of the terminal network, wherein preserve storage in the preconfigured file and update
The network address of all Dropbox of file.
Further, the network address includes IP address.
According to another aspect of an embodiment of the present invention, a kind of storage medium is additionally provided, the storage medium is for storing
Program, wherein equipment executes above-mentioned any one institute where controlling the storage medium when described program executes on a processor
The application update method stated.
According to another aspect of an embodiment of the present invention, a kind of processor is additionally provided, the processor is used to run program,
Wherein, application update method described in above-mentioned any one is executed when described program is run.
In embodiments of the present invention, it can first determine the message being updated using needs installed in terminal, then exist
It determining after needing to be updated application, obtains to update and apply required file, wherein this document is saved in Dropbox,
After getting the required file of update application, application can be updated by this document.In this embodiment it is possible to
The file of application to be updated is stored using Dropbox, changes the storage mode for updating the file of application, but also downloading file
Mode is more flexible, and then solves in the related technology, when carrying out using updating, not interrupting update, cause user experience
The technical issues of sense decline.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work
It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way
Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or
Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover
Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to
Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product
Or other step or units that equipment is intrinsic.
According to embodiments of the present invention, a kind of embodiment of the method that application updates is provided, it should be noted that in attached drawing
The step of process illustrates can execute in a computer system such as a set of computer executable instructions, although also,
Logical order is shown in flow chart, but in some cases, it can be to be different from shown by sequence execution herein or retouch
The step of stating.
Following embodiment can be in all terminals, including but not limited to mobile terminal, in the application by taking mobile terminal as an example
Terminal is illustrated, i.e., following embodiments are applied in the application more new environment of mobile terminal, application are updated specific
Enforcing location without limitation, in the related art, is if desired updated the application installed in terminal, usually in server
Have using after update packet, update packet is sent directly in terminal, thus carry out using update, but this application update side
Formula needs terminal to keep preferable communication network, and user can not autonomous control update the size of packet, there is network midway
When disconnection, failure is updated, needs to re-download update packet, i.e., needs to keep preferable communication network in the related technology.And this Shen
It please be that the All Files being updated that will be applied are placed in Dropbox, not in embodiment described in following embodiments
It is in server, moreover, being that autonomous obtain updates the file that application needs, not being in the embodiment in following embodiments
Update message is sent using server is updated, i.e. the present invention can change the position that storage updates packet by Dropbox, in movement
When the application of terminal installation needs to update, file can be sent by Dropbox, to update application, be downloaded by Dropbox and update text
Part disconnects even if there is network midway, when networking again, still can continue to update file download, and in the related technology
In such a way that server update is applied, the adaptability that application updates is improved, flexibility is higher.
Below with reference to preferred implementation steps, the present invention will be described, and Fig. 1 is according to an embodiment of the present invention applies more
The flow chart of new method, as shown in Figure 1, this method comprises the following steps:
Step S102 determines that installs in terminal is updated using needs.
When the application installed in determining terminal needs to be updated, it can be and obtaining updating file (as updated packet)
Afterwards, an application message to be updated is sent, is determined by the application message to be updated and needs to carry out the application installed in terminal
It updates.
Wherein, the present invention in for the type of specific terminal and model etc. without limitation, can by taking mobile terminal as an example
To include but is not limited to:Mobile phone, ipad, plate, PC, smart machine, wherein the smart machine can be using in the embodiment
The smart machine using update method, can store pre-set one or more application in the smart machine, utilize this
Relevant operation is carried out using can control smart machine.One or more application, each application can be installed in each terminal
It section may carry out in different times using updating, to optimize or increase the function of application.Under normal conditions, it is carrying out
When using updating, the file updated can will be needed to pre-set, being carried out by this document using update.The embodiment of the present invention
In application can include but is not limited to APP installed in terminal etc..
Step S104 is obtained and is updated the file that application needs, wherein the All Files of application being updated are preparatory
It is stored in Dropbox.
The file of the required update of application can be stored in advance in Dropbox, for Dropbox in the embodiment of the present invention
Concrete type without limitation, can be the Dropbox that user corresponding to terminal uses, and be also possible to be directed to the setting of application
Dropbox, the file of all applications is stored in Dropbox;Meanwhile the quantity of the Dropbox in the embodiment of the present invention is not done specifically
It limits, can be determined according to the size of the file of the application of storage, for example, multiple nets will be stored in using relevant file
In disk, which can be virtual memory disk, it can store a large amount of data by Dropbox.When having using needing to update,
File to be updated can be stored in Dropbox, in order to the file for the application that terminal needs to update by network downloading.
Optionally, it is above-mentioned obtain update file that application needs when, can be by obtaining the network address of terminal, and root
According to network address lookup and the closely located Dropbox of terminal network, wherein network distance refers to the transmission file from terminal to Dropbox
Paths traversed;It obtains to update with the Dropbox similar in the network distance and applies required file.Wherein according to network address
Searching the Dropbox closely located with terminal network may include:According to network address in preconfigured file search and terminal network
The closely located Dropbox of network, wherein the network address that storage updates all Dropbox of file is preserved in preconfigured file.
The network address of terminal i.e. in the embodiment of the present invention and the network address of Dropbox can be IP address.Wherein, above-mentioned end
The network address at end may include the mobile IP address of mobile terminal, can find the network with terminal by the network address
Closely located Dropbox, search when, can according to network address preconfigured file search to terminal network distance
In similar Dropbox, and the network address that storage updates all Dropbox of file is saved in preconfigured file.It can lead to
The network address where file (as Dropbox address file is arranged) saves all Dropbox is crossed, is being obtained needed for updating application
It, can be by the network address of terminal, in the network for saving each Dropbox if getting the network address of terminal when the file wanted
In the file of address, the network address with the network address of terminal apart from nearest Dropbox is found.
Optionally, when obtaining the file for updating application needs, the collating sequence of Dropbox can also be obtained, according to Dropbox
Collating sequence, the optimal Dropbox of selected and sorted apply required file to get update from the optimal Dropbox that sorts.Its
In, when being ranked up to Dropbox, it can be and be ranked up according to the priority of Dropbox, the priority of the Dropbox can be root
It is determined according to the current transmission speed of each Dropbox in the size and multiple Dropbox for updating the file that application needs, transmission speed is got over
Fastly, priority can be higher.
In addition, can also be downloaded by the current of each Dropbox in multiple Dropbox when obtaining the collating sequence of Dropbox
Number of passes amount determines that the collating sequence of Dropbox, the current downloading process quantity of Dropbox refer to current point in time, download in corresponding Dropbox
The quantity of the task of different files, while also needing to get the size and downloading that file is downloaded corresponding to each downloading task
Speed, by the size and downloading of downloading file corresponding to the current downloading process quantity of each Dropbox and each downloading task
Speed, determines the present load rate of each Dropbox, present load rate indicate corresponding Dropbox can be added downloading task quantity and
Speed of download applies required file by the way that whether present load rate can obtain to update from the Dropbox.
It is above-mentioned after determining the present load rate of each Dropbox, can be determined according to the present load rate of each Dropbox every
The weight of a Dropbox, and according to the weight of each Dropbox determine Dropbox priority ordering sequence, obtain update application need
When file, the Dropbox obtained where updating the required file of application can be determined according to the priority ordering sequence of each Dropbox.
Wherein, it when determining the weight of each Dropbox according to the present load rate of each Dropbox, can be according to the current of each Dropbox
Load factor is weighted processing, Dropbox one downloading task of every increase or speed of download decline to each Dropbox, is ok
The weight of the Dropbox is changed, such as when Dropbox downloading task increases or speed of download declines, the weight of Dropbox can be reduced,
Indicate that the Dropbox is unsuitable for receiving downloading task again.
Step S106 is updated application using the file that application needs is updated.
Wherein, when being updated using the file for updating application needs to application, sandbox mistake first can be carried out to file
Filter processing, to determine the security level of this document, is greater than default safety in the security level of file alternatively, security level is scanned
When grade, determines the use of the file that update application needs and processing is updated to application.
Through the above steps, the message being updated using needs installed in terminal can be first determined, then in determination
After needing to be updated application, obtains to update and apply required file, wherein this document is saved in Dropbox, is being obtained
After getting the required file of update application, application can be updated by this document.In this embodiment it is possible to utilize
Dropbox stores the file of application to be updated, changes the storage mode for updating the file of application, but also the mode of downloading file
More flexibly, it and then solves in the related technology, when carrying out using updating, update can not be interrupted, caused under user experience
The technical issues of drop.
Fig. 2 is the schematic diagram according to an embodiment of the present invention using updating device, as shown in Fig. 2, the apparatus may include:
Determination unit 21, for determining that installs in terminal is updated using needs;Acquiring unit 23 is needed for obtaining update application
The file wanted, wherein the All Files of application being updated are stored in advance in Dropbox;Updating unit 25, for making
Application is updated with the file that application needs is updated.
Updating device is applied by above-mentioned, determines that installs in terminal applies needs to be updated using determination unit 21
Message is obtained to update using acquiring unit 23 and applies required file then after determining that needs are updated application,
In, this document is saved in Dropbox, through updating unit 25 after getting the required file of update application, can be passed through
This document is updated application.In this embodiment it is possible to store the file of application to be updated using Dropbox, changes and update
The storage mode of the file of application but also the mode of downloading file is more flexible, and then solves in the related technology, carrying out
When using updating, the technical issues of update can not be interrupted, user experience is caused to decline.
Wherein, above-mentioned acquiring unit 23 may include:First obtains module, for obtaining the network address of terminal;It looks into
Module is looked for, for according to network address lookup and the closely located Dropbox of terminal network, wherein network distance refer to from terminal to
Dropbox transmits file paths traversed;Second obtains module, obtains to update for the Dropbox similar in the network distance and applies institute
The file needed.
For above-mentioned searching module, may include:Submodule is searched, is used for according to network address preconfigured
File search and the closely located Dropbox of terminal network, wherein the institute that storage updates file is preserved in preconfigured file
There is the network address of Dropbox.
Optionally, network address includes IP address.
Above-mentioned application updating device can also include processor and memory, above-mentioned determination unit 21, acquiring unit 23,
Updating units 25 etc. store in memory as program unit, execute above procedure stored in memory by processor
Unit realizes corresponding function.
Include kernel in processor, is gone in memory to transfer corresponding program unit by kernel.Kernel can be set one
Or more, required file is applied to utilize Dropbox storage to update by adjusting kernel parameter, to need to carry out application
It updates, transmits corresponding file.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/
Or the forms such as Nonvolatile memory, if read-only memory (ROM) or flash memory (flash RAM), memory include that at least one is deposited
Store up chip.
According to another aspect of an embodiment of the present invention, a kind of storage medium is additionally provided, storage medium is used to store program,
Wherein, equipment where control storage medium executes the application update side of above-mentioned any one when which executes on a processor
Method.
According to another aspect of an embodiment of the present invention, a kind of processor is additionally provided, processor is used to run program,
In, program executes the application update method of above-mentioned any one when running.
The embodiment of the invention provides a kind of equipment, equipment include processor, memory and storage on a memory and can
The program run on a processor, processor realize following steps when executing program:Determine installed in terminal application need into
Row updates;It obtains and updates the file that application needs, wherein the All Files of application being updated are stored in advance in Dropbox
In;Application is updated using the file that application needs is updated.
Optionally, above-mentioned processor can also pass through the network address of acquisition terminal when executing program;According to network
It searches and terminal network closely located Dropbox location, wherein network distance refers to transmits what file was passed through from terminal to Dropbox
Path;It obtains to update with the Dropbox similar in the network distance and applies required file.
Optionally, above-mentioned processor, can also be according to network address in preconfigured file search when executing program
The closely located Dropbox with terminal network, wherein all Dropbox of storage update file are preserved in preconfigured file
Network address.
Optionally, network address includes IP address.
Present invention also provides a kind of computer program products, when executing on data processing equipment, are adapted for carrying out just
The program of beginningization there are as below methods step:Determine that installs in terminal is updated using needs;It obtains and updates what application needed
File, wherein the All Files of application being updated are stored in advance in Dropbox;The file needed using application is updated
Application is updated.
Optionally, above-mentioned data processing equipment can also pass through the network address of acquisition terminal when executing program;According to
Network address lookup and the closely located Dropbox of terminal network, wherein network distance refers to the transmission file institute from terminal to Dropbox
The path of process;It obtains to update with the Dropbox similar in the network distance and applies required file.
Optionally, above-mentioned data processing equipment, can also be according to network address in preconfigured text when executing program
Part is searched and the closely located Dropbox of terminal network, wherein is preserved storage in preconfigured file and is updated all of file
The network address of Dropbox.
Optionally, network address includes IP address.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment
The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed technology contents can pass through others
Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, Ke Yiwei
A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module
It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can for personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or
Part steps.And storage medium above-mentioned includes:USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic or disk etc. be various to can store program code
Medium.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.