CN103781057B - A kind of silent method and device for downloading upgrade package - Google Patents
A kind of silent method and device for downloading upgrade package Download PDFInfo
- Publication number
- CN103781057B CN103781057B CN201410009147.7A CN201410009147A CN103781057B CN 103781057 B CN103781057 B CN 103781057B CN 201410009147 A CN201410009147 A CN 201410009147A CN 103781057 B CN103781057 B CN 103781057B
- Authority
- CN
- China
- Prior art keywords
- downloading
- application
- upgraded
- terminal device
- upgrade package
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 287
- 230000008569 process Effects 0.000 claims abstract description 213
- 230000004044 response Effects 0.000 claims description 28
- 230000005540 biological transmission Effects 0.000 claims description 5
- 238000009434 installation Methods 0.000 description 5
- 238000001514 detection method Methods 0.000 description 4
- 230000008901 benefit Effects 0.000 description 3
- 230000006835 compression Effects 0.000 description 3
- 238000007906 compression Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 235000013399 edible fruits Nutrition 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000005259 measurement Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 230000006837 decompression Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000004064 recycling Methods 0.000 description 1
- 230000026676 system process Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Abstract
The invention discloses a kind of silent method and device for downloading upgrade package, the described method includes:Judge the downloading task in the silent download task list on backstage in terminal equipment side, download whether the upgrade package of application to be upgraded can expend the surfing flow of terminal device;If the surfing flow of terminal device will not be expended by downloading the upgrade package of application to be upgraded, start the downloading process in the upgrade package for downloading application to be upgraded from the background;If the surfing flow of terminal device can be expended by downloading the upgrade package of application to be upgraded, the downloading process that the upgrade package of application to be upgraded is downloaded on backstage is paused at.Since user can not view background process, therefore the upgrading to application can be automatically performed in the case of user's unaware, and only it can just start the downloading process in the upgrade package for downloading application to be upgraded from the background when the upgrade package for downloading application to be upgraded will not expend the surfing flow of terminal device.
Description
Technical field
The invention belongs to field of computer technology, more particularly to a kind of silent method and device for downloading upgrade package.
Background technology
With the development of smart mobile phone, more and more users begin to use surfing Internet with cell phone.However, user is used under mobile phone
If carried in application, mobile phone is surfed the Internet by mobile network, the surfing flow of user can be expended, under especially user does not know
When carrying the size of application, all surfing flows of light user may be expended because of a down operation.And when mobile phone passes through nothing
When line LAN is surfed the Internet, mobile phone again can not automatic trigger download application, and need user to trigger manually, therefore, existing mobile phone
The mode for downloading application operates comparatively laborious, can not meet the use demand of user.
The content of the invention
In view of the above problems, it is proposed that the present invention overcomes the above problem in order to provide one kind or solves at least in part
State the silent method and device for downloading upgrade package of problem.
According to one aspect of the present invention, there is provided a kind of silent method for downloading upgrade package, the described method includes:At end
End equipment side judges the downloading task in the silent download task list according to backstage, downloads the upgrade package of the application to be upgraded
Whether the surfing flow of terminal device can be expended;Terminal device will not be expended if downloading the upgrade package of the application to be upgraded
Surfing flow, then start the downloading process in the upgrade package for downloading the application to be upgraded from the background;If download described to be upgraded
The upgrade package of application can expend the surfing flow of terminal device, then pause at the upgrade package that the application to be upgraded is downloaded on backstage
Downloading process.
Alternatively, the method further includes:
The downloading task of the application to be upgraded on the terminal device is obtained in the terminal equipment side;
The downloading task of acquisition is stored in the silent download task list on backstage in the terminal equipment side.
Alternatively, wherein, the downloading task of the application to be upgraded on the terminal device is obtained in the terminal equipment side
The step of before, the method further includes:
The description information for having installed application is sent to network side server in the terminal equipment side, by the network side
Whether server judges to have installed using needing to upgrade, if having installed using needing to upgrade, sends and treats to the terminal device
The upgrade information of upgrade application;
The upgrade information for the application to be upgraded that the network side server is sent is received in the terminal device, and according to institute
The upgrade information for stating application to be upgraded generates the downloading task of application to be upgraded.
Alternatively, starting after the downloading process of upgrade package of the application to be upgraded is downloaded from the background, the method
Further include:
In response to the startup of scheduled application, the liter for downloading the application to be upgraded in backstage is paused in the terminal equipment side
The downloading process of level bag.
Alternatively, the method further includes:
In response to exiting for the scheduled application, recover downloading the application to be upgraded from the background in the terminal equipment side
Upgrade package downloading process.
Alternatively, the method further includes:
In response to the updating operation of application to be upgraded, wait to rise with described if in the silent download task list on backstage had
Level apply relevant downloading task, then shown in the terminal equipment side in the download task list that front page layout is shown described in
The downloading task of application to be upgraded, and by before in the downloading process for the upgrade package for downloading the application to be upgraded from the background, conversion
To download the downloading process of the upgrade package of the application to be upgraded on foreground.
Alternatively, the method further includes:
If in the silent download task list on backstage not with the relevant downloading task of the application to be upgraded,
The downloading task of the application to be upgraded is stored in the download task list that front page layout is shown by the terminal equipment side, and
Start and download the downloading process of the upgrade package of the application to be upgraded on foreground.
Alternatively, after the terminal device enters standby screen lock state, the method further includes:
Judge that current downloading process is foreground process or background process in the terminal equipment side;
If current downloading process is foreground process on the terminal device, continue to keep institute in the terminal equipment side
State the connection of terminal device and WLAN, to avoid the wireless connection between the terminal device and network side server because
The terminal device is in standby screen lock state and disconnects.
Alternatively, the method further includes:
If current downloading process is background process on the terminal device, the end is disconnected in the terminal equipment side
The connection of end equipment and WLAN.
Alternatively, the method further includes:
The priority in the downloading process for the upgrade package for downloading application to be upgraded from the background is adjusted in the terminal equipment side, will
The priority of the downloading process is adjusted to identical with the priority of foreground process.
According to another aspect of the present invention, a kind of silent device for downloading upgrade package is additionally provided, described device includes:
Flow expends judgment module, under judging according in the silent download task list on backstage in terminal equipment side
Load task, downloads whether the upgrade package of the application to be upgraded can expend the surfing flow of terminal device;
Downloading process starting module, if terminal device will not be expended for the upgrade package for downloading the application to be upgraded
Surfing flow, then start the downloading process in the upgrade package for downloading the application to be upgraded from the background;
Downloading process suspends module, if can expend terminal device for the upgrade package for downloading the application to be upgraded
Net flow, then pause at the downloading process that the upgrade package of the application to be upgraded is downloaded on backstage.
Alternatively, described device further includes:
Downloading task acquisition module, for obtaining the application to be upgraded on the terminal device in the terminal equipment side
Downloading task;
Silent task preserving module, for the downloading task of acquisition to be stored in backstage in the terminal equipment side
In silent download task list.
Alternatively, the downloading task acquisition module includes:
Description information unit module, for sending the description information for having installed application to network in the terminal equipment side
Whether side server, judged to have installed using needing to upgrade, need to upgrade if having installed and having applied by the network side server,
The upgrade information of application to be upgraded is sent to the terminal device;
Downloading task generation unit, should for receiving the to be upgraded of network side server transmission in the terminal device
Upgrade information, and according to the downloading task of the upgrade information of the application to be upgraded generation application to be upgraded.
Alternatively, wherein, the downloading process starting module is additionally operable to the startup in response to scheduled application, in the terminal
Equipment side pauses at the downloading process that the upgrade package of the application to be upgraded is downloaded on backstage.
Alternatively, wherein, the downloading process pause module is additionally operable to exiting in response to scheduled application, in the terminal
Recover the downloading process in the upgrade package for downloading the application to be upgraded from the background in equipment side.
Alternatively, described device further includes:
Downloading process adjusts module, for the updating operation in response to application to be upgraded, if the silence on backstage is downloaded
Have in task list with the relevant downloading task of the application to be upgraded, then shown in the terminal equipment side in front page layout
The downloading task of the application to be upgraded is shown in download task list, and the application to be upgraded will downloaded from the background before
The downloading process of upgrade package, is converted to and downloads the downloading process of the upgrade package of the application to be upgraded on foreground.
Alternatively, wherein, if the downloading process adjustment module be additionally operable in the silent download task list on backstage
Not with the relevant downloading task of application to be upgraded, then the download of the application to be upgraded is appointed in the terminal equipment side
Business is stored in the download task list that front page layout is shown, and is started and downloaded the upgrade package of the application to be upgraded on foreground
Downloading process.
Alternatively, described device further includes:
Process determination module, after entering standby screen lock state for the terminal device, sentences in the terminal equipment side
Current downloading process of breaking is foreground process or background process;
Wireless connection module, if downloading process current on the terminal device is foreground process, at the end
End equipment side continues to keep the connection of the terminal device and WLAN, to avoid the terminal device and network-side service
Wireless connection between device is disconnected because terminal device is in standby screen lock state.
Alternatively, wherein, it is if the wireless connection module is additionally operable to downloading process current on the terminal device
Background process, the connection of the terminal device and WLAN is disconnected in the terminal equipment side.
Alternatively, described device further includes:
Priority adjusts module, for adjusting the download in the upgrade package for downloading application to be upgraded from the background in terminal equipment side
The priority of process, is adjusted to identical with the priority of foreground process by the priority of the downloading process.
As shown from the above technical solution, the embodiment of the present invention has the advantages that:Downloading application to be upgraded
In the case that upgrade package will not expend the surfing flow of terminal device, start in the case where downloading the upgrade package of application to be upgraded from the background
Journey is loaded into, which can establish with the network side server of network side and connect, and be downloaded from the network side server
The upgrade package of application.Since user can not view background process, can be automatically performed in the case of user's unaware
Upgrading to application, and only when the upgrade package for downloading application to be upgraded will not expend the surfing flow of terminal device,
The downloading process in the upgrade package for downloading application to be upgraded from the background can be started, so as to not expend the online stream of terminal device
Application upgrade bag is carried in the case of amount, completes the updating operation of application.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, it is various other the advantages of and benefit it is common for this area
Technical staff will be clear understanding.Attached drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention
Limitation.And in whole attached drawing, identical component is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 shows one of middle silent flow chart of method for downloading upgrade package according to an embodiment of the invention;
Fig. 2 shows the two of the flow chart of the middle silent method for downloading upgrade package according to an embodiment of the invention;
Fig. 3 shows one of middle silent block diagram of device for downloading upgrade package according to an embodiment of the invention;And
Fig. 4 shows the two of the block diagram of the middle silent device for downloading upgrade package according to an embodiment of the invention.
Embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
Limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
Completely it is communicated to those skilled in the art.
As shown in Figure 1, for one of silent flow chart of method for downloading upgrade package in the embodiment of the present invention, this method is fitted
For terminal equipment side, this method 100 includes:
Step S101, judge the downloading task in the silent download task list on backstage in terminal equipment side, download
Whether the upgrade package of application to be upgraded can expend the surfing flow of terminal device;If the upgrade package for downloading application to be upgraded will not
The surfing flow of terminal device is expended, then enters step S103;Otherwise, S105 is entered step.
In an embodiment of the present invention, download task list and the backstage that front page layout is shown are preserved in terminal equipment side
Silent download task list, the downloading task in the download task list that wherein front page layout is shown is user in terminal device
Operation interface on the downloading task that can check, the downloading task in the silent download task list on backstage is user in terminal
Checked in the operation interface of equipment less than downloading task.In current operating system, desktop is foreground, and user can during execution
Perceive.And backstage, it is that user can't see.
In an embodiment of the present invention, application to be upgraded refers to that the application can be by downloading installation upgrade package by current version
Originally newest version is upgraded to.
In an embodiment of the present invention, measurement unit when flow is terminal device online, 1024 bytes are 1kb,
1024kb is 1M(Million).The surfing flow of terminal device refers to flow of the terminal device needed for by mobile network's online, the shifting
Dynamic network can be GPRS network, 3G network etc., be also not limited to this certainly.
Alternatively, can be judged in step S101 by the current network state of detection terminal equipment according to backstage
Downloading task in silent download task list, downloads whether the upgrade package of application to be upgraded can expend the online stream of terminal device
Amount, for example, if the current network state of terminal device be WiFi network, then can determine whether according to the silent downloading task on backstage row
Downloading task in table, the surfing flow of terminal device will not be expended by downloading the upgrade package of application to be upgraded;If terminal device
Current network state is GPRS network or 3G network, then can determine whether that the download in the silent download task list according to backstage is appointed
Business, the surfing flow of terminal device can be expended by downloading the upgrade package of application to be upgraded.
In step s 103, the downloading process in the upgrade package for downloading application to be upgraded from the background is started.
Alternatively, when the current network state of terminal device is WiFi network, start and downloading application to be upgraded from the background
Upgrade package downloading process, which can establish with the network side server of network side and connect, and from the network side
The upgrade package of application is downloaded in server., can be in the feelings of user's unaware since user can not view background process
The upgrading to application is automatically performed under shape, and only will not expend the upper of terminal device in the upgrade package for downloading application to be upgraded
During net flow, it can just start the downloading process in the upgrade package for downloading application to be upgraded from the background, so as to not expend terminal
The upgrade package of application is downloaded in the case of the surfing flow of equipment.
If the surfing flow of terminal device can be expended in the upgrade package for downloading application to be upgraded, S105 is entered step,
In step S105, the downloading process that the upgrade package of application to be upgraded is downloaded on backstage is paused at.
Alternatively, when the current network state of terminal device is GPRS network or 3G network, pause at backstage download and treat
The downloading task of the upgrade package of upgrade application, to avoid the online because expending terminal device downloading the upgrade package of application to be upgraded
Flow.
As shown in Fig. 2, it is two of the flow chart of the silent method for downloading upgrade package in the embodiment of the present invention, this method is fitted
For terminal equipment side, this method 200 includes:
Step S201, the downloading task for the application to be upgraded stated on terminal device is obtained in terminal equipment side.
In step s 201, the description information for having installed application is sent to network-side service in terminal equipment side first
Whether device, judged to have installed using needing to upgrade, if having installed using needing to upgrade, to terminal device by network side server
Send the upgrade information of application to be upgraded;Then the application to be upgraded of the network side server transmission is received in terminal device
Upgrade information, and according to the downloading task of the upgrade information of application to be upgraded generation application to be upgraded.It is specific as follows:
Step S2011, the description information for having installed application is sent to network side server in terminal equipment side.
Alternatively, in response to having installed the updating operation of application, will have been installed by HTTP request in terminal equipment side should
Description information is sent to network side server.In an embodiment of the present invention, shown in the operation interface of terminal device
Upgrade button, the updating operation for having installed application can click on the operation of upgrade button.Such as click on and be somebody's turn to do in response to user
The operation of upgrade button, is sent the description information for having installed application to network-side service by HTTP request in terminal equipment side
Device.
Further, in order to improve the speed of data transfer, the description for having installed application can be believed in terminal equipment side
Breath is compressed processing, such as processing is compressed to the description information for having installed application according to Gzip forms, and Gzip forms are
The abbreviation of GNUzip.The HTTP request that network side server receiving terminal apparatus is sent, the compression lattice of the content of the HTTP request
Formula is Gzip forms, which includes applying bag name and application version number.
Under normal conditions, many applications are installed in terminal device, including the application of user installation and built in system should
With.Mobile phone assistant at present(Such as 360 mobile phone assistant)The terminal device can be inquired about has need to upgrade for which application, when mobile phone helps
When hand detects that the application that needs upgrade is more, in step S201 in an embodiment of the present invention, the mobile phone of terminal equipment side
Assistant can be handled the application bag name for having installed application and application version number with Gzip format compressions, then pass through HTTP request
Form be sent to network side server, by Gzip format compressions processing after, the file for having installed the description information of application is big
It is small to be reduced to 1/10 or so of original size, so as to lift response speed.
Correspondingly, after network side server receives the description information for having installed application, through Gzip decompressions, utilize
The application bag name for having installed application in the description information of application has been installed and application version number judges to have installed whether application needs
Upgrade, if installed using needing to upgrade, the upgrade information of application to be upgraded is sent to terminal device.
In an embodiment of the present invention, the upgrade information of application to be upgraded includes:The download address of upgrade package
Step S2013, the upgrade information for the application to be upgraded that the network side server is sent is received in terminal device, and
The downloading task of application to be upgraded is generated according to the upgrade information of application to be upgraded.
Step S203, the downloading task of acquisition is stored in the silent download task list on backstage in terminal equipment side.
In an embodiment of the present invention, download task list and the backstage that front page layout is shown are preserved in terminal equipment side
Silent download task list, the downloading task in the download task list that wherein front page layout is shown is user in terminal device
Operation interface on the downloading task that can check, the downloading task in the silent download task list on backstage is user in terminal
Checked in the operation interface of equipment less than downloading task.
In an embodiment of the present invention, application to be upgraded refers to that the application can be by downloading installation upgrade package by current version
Originally newest version is upgraded to.
Step S205, judge the downloading task in the silent download task list on backstage in terminal equipment side, download
Whether the upgrade package of the application to be upgraded can expend the surfing flow of terminal device;If download the upgrade package of application to be upgraded
The surfing flow of terminal device will not be expended, then enters step S207;Otherwise, S209 is entered step.
In an embodiment of the present invention, measurement unit when flow is terminal device online, 1024 bytes are 1kb,
1024kb is 1M(Million).The surfing flow of terminal device refers to flow of the terminal device needed for by mobile network's online, the shifting
Dynamic network can be GPRS network, 3G network etc., be also not limited to this certainly.
Alternatively, can be judged in step S205 by the current network state of detection terminal equipment according to backstage
Downloading task in silent download task list, downloads whether the upgrade package of application to be upgraded can expend the online stream of terminal device
Amount, for example, if the current network state of terminal device be WiFi network, then can determine whether according to the silent downloading task on backstage row
Downloading task in table, the surfing flow of terminal device will not be expended by downloading the upgrade package of application to be upgraded;If terminal device
Current network state is GPRS network or 3G network, then can determine whether that the download in the silent download task list according to backstage is appointed
Business, the surfing flow of terminal device can be expended by downloading the upgrade package of application to be upgraded.
In step S207, start the downloading process in the upgrade package for downloading application to be upgraded from the background.
Alternatively, when the current network state of terminal device is WiFi network, start and downloading application to be upgraded from the background
Upgrade package downloading process, which can establish with the network side server of network side and connect, and from the network side
The upgrade package of application is downloaded in server., can be in the feelings of user's unaware since user can not view background process
The upgrading to application is automatically performed under shape, and only will not expend the upper of terminal device in the upgrade package for downloading application to be upgraded
During net flow, it can just start the downloading process in the upgrade package for downloading application to be upgraded from the background, so as to not expend terminal
The upgrade package of application is downloaded in the case of the surfing flow of equipment.
If the surfing flow of terminal device can be expended in the upgrade package for downloading the application to be upgraded, enter step
S209, in step S209, pauses at the downloading process that the upgrade package of application to be upgraded is downloaded on backstage.
Alternatively, when the current network state of terminal device is GPRS network or 3G network, pause at backstage download and treat
The downloading task of the upgrade package of upgrade application, to avoid the online because expending terminal device downloading the upgrade package of application to be upgraded
Flow.
Alternatively, in another embodiment of the present invention, after the downloading task of application to be upgraded is started from the background,
It is exactly after step S207, method 200 further includes:
Step S211, in response to the startup of scheduled application, pause at backstage in terminal equipment side and download application to be upgraded
The downloading process of upgrade package.
Although in view of being perceived in the downloading task user for downloading the upgrade package of application to be upgraded from the background less than after this
Platform process can take Internet resources, in order to avoid influence user's normal use scheduled application, can scheduled application startup after,
Terminal equipment side pauses at the downloading process that the upgrade package of the application to be upgraded is downloaded on backstage.For example, the scheduled application can be with
It is mobile phone assistant, is also not limited to this certainly, specifically, mobile phone assistant starts, and enters after the operation interface of mobile phone assistant,
The downloading process for downloading the upgrade package of application to be upgraded in backstage is paused in terminal equipment side.
Using the operating system of terminal device as Android(Android), in an embodiment of the present invention, can exemplified by operating system
To judge whether scheduled application starts by Activity page jumps technology in Android to realize.
Alternatively, in another embodiment of the present invention, after step S211, method 200 further includes:
Step S213, exiting in response to scheduled application, recovers downloading application to be upgraded from the background in terminal equipment side
The downloading process of upgrade package.
For example, the scheduled application can be mobile phone assistant, this is also not limited to certainly.Specifically, exit mobile phone assistant it
Afterwards, the downloading process in the upgrade package for downloading application to be upgraded from the background is recovered in terminal equipment side.
Using the operating system of terminal device as Android(Android), in an embodiment of the present invention, can exemplified by operating system
To judge whether scheduled application exits by Activity page jumps technology in Android to realize.
Alternatively, in another embodiment of the present invention, after step S207, the method 200 further includes:
In response to the updating operation of application to be upgraded, answered if had in the silent download task list on backstage with to be upgraded
With relevant downloading task, then application to be upgraded is shown in the download task list that front page layout is shown in terminal equipment side
Downloading task, and in the downloading process for the upgrade package for downloading application to be upgraded from the background, will be converted to download on foreground and wait to rise before
The foreground process of the upgrade package of level application.
Such as the upgrade package silent download in backstage, and downloaded part number of application is installed in terminal device
Mobile phone assistant is clicked on according to, user, enters the operation pages of mobile phone assistant, when viewing the application can upgrade, user can be with
Point upgrade button manually, since the downloading task before is in the silent download task list on backstage, and has downloaded part
Data, in this case, can be by the silent download task list on backstage in response to the updating operation of application to be upgraded
Silent Task Switching is normal task, is shown in the download task list that front page layout is shown, and will be before under backstage
The downloading process of the upgrade package of application to be upgraded is carried, is converted to and downloads the foreground process of the upgrade package of application to be upgraded on foreground.
Specifically, in an embodiment of the present invention, by the flag bit of downloading task the downloading task can be controlled to be
Shown in the no download task list shown in front page layout.If user clicks on upgrade button, by the mark of the downloading task
Will position is adjusted to " TRUE ", which will show in the download task list that front page layout is shown, also mean that,
The downloading task is changed into normal task, and is no longer silent downloading task.
Alternatively, in another embodiment of the present invention, after step S207, the method 200 further includes:
If relevant downloading task is not applied with to be upgraded in the silent download task list on backstage, in terminal
The downloading task of application to be upgraded is stored in the download task list that front page layout is shown by equipment side, and is started under foreground
Carry the foreground process of the upgrade package of application to be upgraded.
Such as user clicks on mobile phone assistant, the operation pages of mobile phone assistant are entered, when viewing the application can upgrade,
User can put upgrade button manually, due to not having with this using relevant downloading task in the silent download task list on backstage
There is relative recording, in this case, the downloading task is directly shown in the download task list that front page layout is shown, and open
Move and download the foreground process of the upgrade package of application to be upgraded on foreground.
Specifically, in an embodiment of the present invention, by the flag bit of downloading task the downloading task can be controlled to be
Shown in the no download task list shown in front page layout.If user clicks on upgrade button, by the mark of the downloading task
Will position is adjusted to " TRUE ", which will show in the download task list that front page layout is shown.
Under normal conditions, when terminal device enters standby screen lock state(Such as after the screen of terminal device is switched off),
If do not apply can be in the scheduled time using WiFi, WiFi(Such as 2 minutes)Enter sleep state afterwards.
Android is to the codes of WiFi power managements mainly in WifiService.java.If using wanting in terminal
Equipment enters after standby screen lock state(Such as after the screen of terminal device is switched off)WiFi is continuing with, then can be called
acquireWifiLock(WiFi locks)To pin WiFi, to prevent WiFi from entering sleep state.When application does not use WiFi
Need to call releaseWifiLock to discharge WiFi.WiFi can enter sleep state to save power supply afterwards.
Alternatively, in another embodiment of the present invention, it is described if terminal device enters after standby screen lock state
Method 200 further includes:Judge that current downloading process is foreground process or background process in terminal equipment side;If terminal is set
Standby current downloading process is foreground process, continues to keep the company of the terminal device and WLAN in terminal equipment side
Connect, break to avoid the wireless connection between terminal device and network side server because terminal device is in standby screen lock state
Open.
It is not that silent download is appointed for normal downloading task it is, after terminal device enters standby screen lock state
Business, can call acquireWifiLock to pin WiFi, to prevent WiFi from entering sleep state, so that it is guaranteed that normal download
Task can continue to carry out.
Alternatively, in another embodiment of the present invention, it is described if terminal device enters after standby screen lock state
Method 200 further includes:If current downloading process is background process on terminal device, described in terminal equipment side disconnection
The connection of terminal device and WLAN.
It is, after terminal device enters standby screen lock state, for silent downloading task, downloaded and appointed due to silence
Business user perceives less than avoiding the need for calling acquireWifiLock to pin WiFi at this time, which can be in pre- timing in itself
Between(Such as 2 minutes)Enter sleep state afterwards, user can be helped to save the electricity of terminal device at this time.
Process in Android is trustship, when system process space is nervous, can be carried out automatically according to priority
Process is divided into 6 grades by the recycling of process, Android, and according to priority order from high to low, is successively:(1)Foreground process
(FOREGROUND_APP);(2)Visual progression (VISIBLE_APP);(3)Secondary service process (SECONDARY_SERVER);
(4)Background process (HIDDEN_APP);(5)Content supply node (CONTENT_PROVIDER);(6)Null process (EMPTY_
APP)。
In an embodiment of the present invention, in order to avoid being in the downloading process for downloading the upgrade package of application to be upgraded from the background
System is disposed, and can improve the priority of the background process in advance.
Alternatively, in another embodiment of the present invention, the method 200 further includes:
The priority in the downloading process for the upgrade package for downloading application to be upgraded from the background is adjusted in terminal equipment side, by described in
The priority of downloading process is adjusted to identical with the priority of foreground process.
As shown in figure 3, for one of silent block diagram of device for downloading upgrade package in the embodiment of the present invention, which downloads
The device 300 of upgrade package includes:
Flow expends judgment module 301, for judging in terminal equipment side according in the silent download task list on backstage
Downloading task, download whether the upgrade package of the application to be upgraded can expend the surfing flow of terminal device.The present invention's
In embodiment, the download task list that front page layout shows and the silent downloading task row on backstage are preserved in terminal equipment side
Downloading task in the download task list that table, wherein front page layout are shown is that user can be with the operation interface of terminal device
The downloading task checked, the downloading task in the silent download task list on backstage are users in the operation interface of terminal device
Check less than downloading task.In an embodiment of the present invention, application to be upgraded refers to that the application can rise by downloading installation
Level bag upgrades to newest version by current version.In an embodiment of the present invention, metering when flow is terminal device online
Unit, 1024 bytes are 1kb, 1024kb 1M(Million).The surfing flow of terminal device refers to that terminal device passes through mobile network
Flow needed for online, which can be GPRS network, 3G network etc., be also not limited to this certainly.
Alternatively, flow is expended in judgment module 301 and can judged by the current network state of detection terminal equipment
According to the downloading task in the silent download task list on backstage, download the upgrade package of application to be upgraded and whether can expend terminal and set
Standby surfing flow, for example, if the current network state of terminal device is WiFi network, then can determine whether the silence according to backstage
Downloading task in download task list, the surfing flow of terminal device will not be expended by downloading the upgrade package of application to be upgraded;Such as
The current network state of fruit terminal device is GPRS network or 3G network, then can determine whether the silent download task list according to backstage
In downloading task, the surfing flow of terminal device can be expended by downloading the upgrade package of application to be upgraded.
Downloading process starting module 303, if the upgrade package for the download application to be upgraded will not expend terminal and set
Standby surfing flow, then start the downloading process in the upgrade package for downloading the application to be upgraded from the background.
Alternatively, when the current network state of terminal device is WiFi network, start and downloading application to be upgraded from the background
Upgrade package downloading process, which can establish with the network side server of network side and connect, and from the network side
The upgrade package of application is downloaded in server., can be in the feelings of user's unaware since user can not view background process
The upgrading to application is automatically performed under shape, and only will not expend the upper of terminal device in the upgrade package for downloading application to be upgraded
During net flow, it can just start the downloading process in the upgrade package for downloading application to be upgraded from the background, so as to not expend terminal
The upgrade package of application is downloaded in the case of the surfing flow of equipment.
Downloading process suspends module 305, if can expend terminal device for the upgrade package for downloading the application to be upgraded
Surfing flow, then pause at backstage download the application to be upgraded upgrade package downloading process.
Alternatively, when the current network state of terminal device is GPRS network or 3G network, pause at backstage download and treat
The downloading task of the upgrade package of upgrade application, to avoid the online because expending terminal device downloading the upgrade package of application to be upgraded
Flow.
As shown in figure 4, be two of the flow chart of the silent device for downloading upgrade package in the embodiment of the present invention, the device
400 include:
Downloading task acquisition module 401, for the terminal equipment side obtain on the terminal device it is to be upgraded should
Downloading task;
Silent task preserving module 403, for after the downloading task of acquisition is stored in by the terminal equipment side
In the silent download task list of platform.
Flow expends judgment module 405, for judging in terminal equipment side according in the silent download task list on backstage
Downloading task, download whether the upgrade package of the application to be upgraded can expend the surfing flow of terminal device.The present invention's
In embodiment, the download task list that front page layout shows and the silent downloading task row on backstage are preserved in terminal equipment side
Downloading task in the download task list that table, wherein front page layout are shown is that user can be with the operation interface of terminal device
The downloading task checked, the downloading task in the silent download task list on backstage are users in the operation interface of terminal device
Check less than downloading task.In an embodiment of the present invention, application to be upgraded refers to that the application can rise by downloading installation
Level bag upgrades to newest version by current version.In an embodiment of the present invention, metering when flow is terminal device online
Unit, 1024 bytes are 1kb, 1024kb 1M(Million).The surfing flow of terminal device refers to that terminal device passes through mobile network
Flow needed for online, which can be GPRS network, 3G network etc., be also not limited to this certainly.
Alternatively, flow is expended in judgment module 405 and can judged by the current network state of detection terminal equipment
According to the downloading task in the silent download task list on backstage, download the upgrade package of application to be upgraded and whether can expend terminal and set
Standby surfing flow, for example, if the current network state of terminal device is WiFi network, then can determine whether the silence according to backstage
Downloading task in download task list, the surfing flow of terminal device will not be expended by downloading the upgrade package of application to be upgraded;Such as
The current network state of fruit terminal device is GPRS network or 3G network, then can determine whether the silent download task list according to backstage
In downloading task, the surfing flow of terminal device can be expended by downloading the upgrade package of application to be upgraded.
Downloading process starting module 407, if the upgrade package for the download application to be upgraded will not expend terminal and set
Standby surfing flow, then start the downloading process in the upgrade package for downloading the application to be upgraded from the background.
Alternatively, when the current network state of terminal device is WiFi network, start and downloading application to be upgraded from the background
Upgrade package downloading process, which can establish with the network side server of network side and connect, and from the network side
The upgrade package of application is downloaded in server., can be in the feelings of user's unaware since user can not view background process
The upgrading to application is automatically performed under shape, and only will not expend the upper of terminal device in the upgrade package for downloading application to be upgraded
During net flow, it can just start the downloading process in the upgrade package for downloading application to be upgraded from the background, so as to not expend terminal
The upgrade package of application is downloaded in the case of the surfing flow of equipment.
Downloading process suspends module 409, if can expend terminal device for the upgrade package for downloading the application to be upgraded
Surfing flow, then pause at backstage download the application to be upgraded upgrade package downloading process.
Alternatively, when the current network state of terminal device is GPRS network or 3G network, pause at backstage download and treat
The downloading task of the upgrade package of upgrade application, to avoid the online because expending terminal device downloading the upgrade package of application to be upgraded
Flow.
Alternatively, in an embodiment of the present invention, the downloading task acquisition module 401 includes:
Description information unit module, for sending the description information for having installed application to network in the terminal equipment side
Whether side server, judged to have installed using needing to upgrade, need to upgrade if having installed and having applied by the network side server,
The upgrade information of application to be upgraded is sent to the terminal device;
Downloading task generation unit, should for receiving the to be upgraded of network side server transmission in the terminal device
Upgrade information, and according to the downloading task of the upgrade information of the application to be upgraded generation application to be upgraded.
Alternatively, in another embodiment of the present invention, the downloading process starting module 407 is additionally operable in response to pre-
Surely the startup applied, the downloading process for downloading the upgrade package of the application to be upgraded in backstage is paused in the terminal equipment side.
Alternatively, in another embodiment of the present invention, the downloading process pause module 409 is additionally operable in response to pre-
That applies surely exits, and recovers the downloading process in the upgrade package for downloading the application to be upgraded from the background in the terminal equipment side.
Alternatively, in another embodiment of the present invention, described device 400 further includes:
Downloading process adjusts module, for the updating operation in response to application to be upgraded, if the silence on backstage is downloaded
Have in task list with the relevant downloading task of the application to be upgraded, then shown in the terminal equipment side in front page layout
The downloading task of the application to be upgraded is shown in download task list, and the application to be upgraded will downloaded from the background before
The downloading process of upgrade package, is converted to and downloads the downloading process of the upgrade package of the application to be upgraded on foreground.
Alternatively, in another embodiment of the present invention, if downloading process adjustment module is additionally operable on backstage
Silent download task list in not with the relevant downloading task of the application to be upgraded, then in the terminal equipment side by institute
The downloading task for stating application to be upgraded is stored in the download task list that front page layout is shown, and is started described in the download of foreground
The downloading process of the upgrade package of application to be upgraded.
Alternatively, in another embodiment of the present invention, described device 400 further includes:
Process determination module, after entering standby screen lock state for the terminal device, sentences in the terminal equipment side
Current downloading process of breaking is foreground process or background process;
Wireless connection module, if downloading process current on the terminal device is foreground process, at the end
End equipment side continues to keep the connection of the terminal device and WLAN, to avoid the terminal device and network-side service
Wireless connection between device is disconnected because terminal device is in standby screen lock state.
Alternatively, in another embodiment of the present invention, set if the wireless connection module is additionally operable to the terminal
Standby current downloading process is background process, and the company of the terminal device and WLAN is disconnected in the terminal equipment side
Connect.
Alternatively, in another embodiment of the present invention, described device 400 further includes:
Priority adjusts module, for adjusting the download in the upgrade package for downloading application to be upgraded from the background in terminal equipment side
The priority of process, is adjusted to identical with the priority of foreground process by the priority of the downloading process.
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein.
Various general-purpose systems can also be used together with teaching based on this.As described above, required by constructing this kind of system
Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It should be understood that it can utilize various
Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair
Bright preferred forms.
In the specification that this place provides, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention
Example can be put into practice in the case of these no details.In some instances, known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help to understand one or more of each inventive aspect,
Above in the description to the exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor
The application claims of shield features more more than the feature being expressly recited in each claim.It is more precisely, such as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following embodiment are expressly incorporated in the embodiment, wherein each claim is in itself
Separate embodiments all as the present invention.
Those skilled in the art, which are appreciated that, to carry out adaptively the module in the equipment in embodiment
Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment
Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or
Sub-component.In addition at least some in such feature and/or process or unit exclude each other, it can use any
Combination is to this specification(Including adjoint claim, summary and attached drawing)Disclosed in all features and so disclosed appoint
Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification(Including adjoint power
Profit requirement, summary and attached drawing)Disclosed in each feature can be by providing identical, equivalent or similar purpose alternative features come generation
Replace.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments
In included some features rather than further feature, but the combination of the feature of different embodiments means in of the invention
Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed
One of meaning mode can use in any combination.
The all parts embodiment of the present invention can be with hardware realization, or to be run on one or more processor
Software module realize, or realized with combinations thereof.It will be understood by those of skill in the art that it can use in practice
Microprocessor or digital signal processor(DSP)To realize in the silent device for downloading upgrade package according to embodiments of the present invention
Some or all components some or all functions.The present invention is also implemented as being used to perform side as described herein
Some or all equipment or program of device of method(For example, computer program and computer program product).It is such
Realizing the program of the present invention can store on a computer-readable medium, or can have the shape of one or more signal
Formula.Such signal can be downloaded from internet website and obtained, and either be provided or with any other shape on carrier signal
Formula provides.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability
Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not
Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of some different elements and being come by means of properly programmed computer real
It is existing.In the unit claim of some equipment is listed, several in these equipment can be by same hardware branch
To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame
Claim.
The invention also discloses A1, a kind of silent method for downloading upgrade package, the described method includes:
Judge the downloading task in the silent download task list on backstage in terminal equipment side, download described to be upgraded
Whether the upgrade package of application can expend the surfing flow of terminal device;
If the surfing flow of terminal device will not be expended by downloading the upgrade package of the application to be upgraded, start on backstage
Download the downloading process of the upgrade package of the application to be upgraded;
If the surfing flow of terminal device can be expended by downloading the upgrade package of the application to be upgraded, pause under backstage
Carry the downloading process of the upgrade package of the application to be upgraded.
A2, the method according to A1, the method further include:
The downloading task of the application to be upgraded on the terminal device is obtained in the terminal equipment side;
The downloading task of acquisition is stored in the silent download task list on backstage in the terminal equipment side.
A3, the method according to A2, wherein, the terminal equipment side obtain on the terminal device it is to be upgraded should
Before the step of downloading task, the method further includes:
The description information for having installed application is sent to network side server in the terminal equipment side, by the network side
Whether server judges to have installed using needing to upgrade, if having installed using needing to upgrade, sends and treats to the terminal device
The upgrade information of upgrade application;
The upgrade information for the application to be upgraded that the network side server is sent is received in the terminal device, and according to institute
The upgrade information for stating application to be upgraded generates the downloading task of application to be upgraded.
A4, the method according to A1, start download from the background the upgrade package of the application to be upgraded downloading process it
Afterwards, the method further includes:
In response to the startup of scheduled application, the liter for downloading the application to be upgraded in backstage is paused in the terminal equipment side
The downloading process of level bag.
A5, the method according to A4, the method further include:
In response to exiting for the scheduled application, recover downloading the application to be upgraded from the background in the terminal equipment side
Upgrade package downloading process.
A6, the method according to A1, the method further include:
In response to the updating operation of application to be upgraded, wait to rise with described if in the silent download task list on backstage had
Level apply relevant downloading task, then shown in the terminal equipment side in the download task list that front page layout is shown described in
The downloading task of application to be upgraded, and by before in the downloading process for the upgrade package for downloading the application to be upgraded from the background, conversion
To download the downloading process of the upgrade package of the application to be upgraded on foreground.
A7, the method according to A6, the method further include:
If in the silent download task list on backstage not with the relevant downloading task of the application to be upgraded,
The downloading task of the application to be upgraded is stored in the download task list that front page layout is shown by the terminal equipment side, and
Start and download the downloading process of the upgrade package of the application to be upgraded on foreground.
A8, the method according to A7, after the terminal device enters standby screen lock state, the method is also wrapped
Include:
Judge that current downloading process is foreground process or background process in the terminal equipment side;
If current downloading process is foreground process on the terminal device, continue to keep institute in the terminal equipment side
State the connection of terminal device and WLAN, to avoid the wireless connection between the terminal device and network side server because
The terminal device is in standby screen lock state and disconnects.
A9, the method according to A8, the method further include:
If current downloading process is background process on the terminal device, the end is disconnected in the terminal equipment side
The connection of end equipment and WLAN.
A10, the method according to A7, the method further include:
The priority in the downloading process for the upgrade package for downloading application to be upgraded from the background is adjusted in the terminal equipment side, will
The priority of the downloading process is adjusted to identical with the priority of foreground process.
B11, a kind of silent device for downloading upgrade package, described device include:
Flow expends judgment module, under judging according in the silent download task list on backstage in terminal equipment side
Load task, downloads whether the upgrade package of the application to be upgraded can expend the surfing flow of terminal device;
Downloading process starting module, if terminal device will not be expended for the upgrade package for downloading the application to be upgraded
Surfing flow, then start the downloading process in the upgrade package for downloading the application to be upgraded from the background;
Downloading process suspends module, if can expend terminal device for the upgrade package for downloading the application to be upgraded
Net flow, then pause at the downloading process that the upgrade package of the application to be upgraded is downloaded on backstage.
B12, the device according to B11, described device further include:
Downloading task acquisition module, for obtaining the application to be upgraded on the terminal device in the terminal equipment side
Downloading task;
Silent task preserving module, for the downloading task of acquisition to be stored in backstage in the terminal equipment side
In silent download task list.
B13, the device according to B12, wherein, the downloading task acquisition module includes:
Description information unit module, for sending the description information for having installed application to network in the terminal equipment side
Whether side server, judged to have installed using needing to upgrade, need to upgrade if having installed and having applied by the network side server,
The upgrade information of application to be upgraded is sent to the terminal device;
Downloading task generation unit, should for receiving the to be upgraded of network side server transmission in the terminal device
Upgrade information, and according to the downloading task of the upgrade information of the application to be upgraded generation application to be upgraded.
B14, the device according to B11, wherein, the downloading process starting module is additionally operable in response to scheduled application
Start, the downloading process for downloading the upgrade package of the application to be upgraded in backstage is paused in the terminal equipment side.
B15, the device according to B14, wherein, the downloading process pause module is additionally operable in response to scheduled application
Exit, recover the downloading process in the upgrade package for downloading the application to be upgraded from the background in the terminal equipment side.
B16, the device according to B11, described device further include:
Downloading process adjusts module, for the updating operation in response to application to be upgraded, if the silence on backstage is downloaded
Have in task list with the relevant downloading task of the application to be upgraded, then shown in the terminal equipment side in front page layout
The downloading task of the application to be upgraded is shown in download task list, and the application to be upgraded will downloaded from the background before
The downloading process of upgrade package, is converted to and downloads the downloading process of the upgrade package of the application to be upgraded on foreground.
B17, the device according to B16, wherein, if downloading process adjustment module is additionally operable to the silence on backstage
Then do not wait to rise by described in the terminal equipment side with the relevant downloading task of application to be upgraded in download task list
The downloading task of level application is stored in the download task list that front page layout is shown, and is started described to be upgraded in foreground download
The downloading process of the upgrade package of application.
B18, the device according to B17, described device further include:
Process determination module, after entering standby screen lock state for the terminal device, sentences in the terminal equipment side
Current downloading process of breaking is foreground process or background process;
Wireless connection module, if downloading process current on the terminal device is foreground process, at the end
End equipment side continues to keep the connection of the terminal device and WLAN, to avoid the terminal device and network-side service
Wireless connection between device is disconnected because terminal device is in standby screen lock state.
B19, the device according to B18, wherein, it is taken in if the wireless connection module is additionally operable to the terminal device
Preceding downloading process is background process, and the connection of the terminal device and WLAN is disconnected in the terminal equipment side.
B20, the device according to B17, described device further include:
Priority adjusts module, for adjusting the download in the upgrade package for downloading application to be upgraded from the background in terminal equipment side
The priority of process, is adjusted to identical with the priority of foreground process by the priority of the downloading process.
Claims (16)
1. a kind of silent method for downloading upgrade package, the described method includes:
Judge the downloading task in the silent download task list on backstage in terminal equipment side, download the liter of application to be upgraded
Whether level bag can expend the surfing flow of terminal device;
If the surfing flow of terminal device will not be expended by downloading the upgrade package of the application to be upgraded, start and downloaded on backstage
The downloading process of the upgrade package of the application to be upgraded;
If the surfing flow of terminal device can be expended by downloading the upgrade package of the application to be upgraded, pause at backstage and download institute
State the downloading process of the upgrade package of application to be upgraded;
After the terminal device enters standby screen lock state, if downloading process current on the terminal device is backstage
Process, the connection of the terminal device and WLAN is disconnected in the terminal equipment side;If the terminal device is taken in
Preceding downloading process is foreground process, then prevents WiFi from entering sleep state;
Start after the downloading process of upgrade package of the application to be upgraded is downloaded from the background, the method further includes:
In response to the startup of scheduled application, the upgrade package for downloading the application to be upgraded in backstage is paused in the terminal equipment side
Downloading process.
2. according to the method described in claim 1, the method further includes:
The downloading task of the application to be upgraded on the terminal device is obtained in the terminal equipment side;
The downloading task of acquisition is stored in the silent download task list on backstage in the terminal equipment side.
3. according to the method described in claim 2, wherein, obtained in the terminal equipment side to be upgraded on the terminal device
Before the step of downloading task of application, the method further includes:
The description information for having installed application is sent to network side server in the terminal equipment side, by the network-side service
Whether device judges to have installed using needing to upgrade, if having installed using needing to upgrade, is sent to the terminal device to be upgraded
The upgrade information of application;
The upgrade information for the application to be upgraded that the network side server is sent is received in the terminal device, and is treated according to described
The upgrade information of upgrade application generates the downloading task of application to be upgraded.
4. according to the method described in claim 3, the method further includes:
In response to exiting for the scheduled application, recover downloading the liter of the application to be upgraded from the background in the terminal equipment side
The downloading process of level bag.
5. according to the method described in claim 1, the method further includes:
In response to the updating operation of application to be upgraded, if having in the silent download task list on backstage with it is described it is to be upgraded should
With relevant downloading task, then shown in the terminal equipment side in the download task list that front page layout is shown described in wait to rise
The downloading task of level application, and in the downloading process for the upgrade package for downloading the application to be upgraded from the background, will be converted to before
Download the downloading process of the upgrade package of the application to be upgraded in foreground.
6. according to the method described in claim 5, the method further includes:
If in the silent download task list on backstage not with the relevant downloading task of the application to be upgraded, described
The downloading task of the application to be upgraded is stored in the download task list that front page layout is shown by terminal equipment side, and is started
The downloading process of the upgrade package of the application to be upgraded is downloaded on foreground.
7. according to the method described in claim 6, after the terminal device enters standby screen lock state, the method is also wrapped
Include:
Judge that current downloading process is foreground process or background process in the terminal equipment side;
If current downloading process is foreground process on the terminal device, continue to be kept for the end in the terminal equipment side
The connection of end equipment and WLAN, to avoid the wireless connection between the terminal device and network side server because described in
Terminal device is in standby screen lock state and disconnects.
8. according to the method described in claim 6, the method further includes:
The priority in the downloading process for the upgrade package for downloading application to be upgraded from the background is adjusted in the terminal equipment side, by described in
The priority of downloading process is adjusted to identical with the priority of foreground process.
9. a kind of silent device for downloading upgrade package, described device include:
Flow expends judgment module, for judging that the download in the silent download task list on backstage is appointed in terminal equipment side
Business, downloads whether the upgrade package of application to be upgraded can expend the surfing flow of terminal device;
Downloading process starting module, if the online of terminal device will not be expended for downloading the upgrade package of the application to be upgraded
Flow, then start the downloading process in the upgrade package for downloading the application to be upgraded from the background;
Downloading process suspends module, if can expend the online stream of terminal device for downloading the upgrade package of the application to be upgraded
Amount, then pause at the downloading process that the upgrade package of the application to be upgraded is downloaded on backstage;
Wireless connection module is further included, if downloading process current on the terminal device is background process, described
Terminal equipment side disconnects the connection of the terminal device and WLAN;If current downloading process on the terminal device
It is foreground process, then prevents WiFi from entering sleep state;
The downloading process starting module is additionally operable to the startup in response to scheduled application, and backstage is paused in the terminal equipment side
Download the downloading process of the upgrade package of the application to be upgraded.
10. device according to claim 9, described device further include:
Downloading task acquisition module, for obtaining the download of the application to be upgraded on the terminal device in the terminal equipment side
Task;
Silent task preserving module, for the downloading task of acquisition to be stored in the silence on backstage in the terminal equipment side
In download task list.
11. device according to claim 10, wherein, the downloading task acquisition module includes:
Description information unit module, takes for sending the description information for having installed application to network side in the terminal equipment side
Whether business device, judged to have installed using needing to upgrade, if having installed using needing to upgrade, to institute by the network side server
State the upgrade information that terminal device sends application to be upgraded;
Downloading task generation unit, for the application to be upgraded in the terminal device reception network side server transmission
Upgrade information, and according to the downloading task of the upgrade information of the application to be upgraded generation application to be upgraded.
12. device according to claim 9, wherein, the downloading process pause module is additionally operable in response to scheduled application
Exit, the terminal equipment side recover the upgrade package for downloading the application to be upgraded from the background downloading process.
13. device according to claim 9, described device further include:
Downloading process adjusts module, for the updating operation in response to application to be upgraded, if the silent downloading task on backstage
Have in list with the relevant downloading task of application to be upgraded, then the download shown in the terminal equipment side in front page layout
The downloading task of the application to be upgraded is shown in task list, and the upgrading of the application to be upgraded will downloaded from the background before
The downloading process of bag, is converted to and downloads the downloading process of the upgrade package of the application to be upgraded on foreground.
14. device according to claim 13, wherein, if downloading process adjustment module is additionally operable in the quiet of backstage
Do not treated in silent download task list with the relevant downloading task of application to be upgraded in the terminal equipment side by described then
The downloading task of upgrade application is stored in the download task list that front page layout is shown, and is started and waited to rise described in the download of foreground
The downloading process of the upgrade package of level application.
15. device according to claim 14, described device further include:
Process determination module, after entering standby screen lock state for the terminal device, judges to work as in the terminal equipment side
Preceding downloading process is foreground process or background process;
Wireless connection module, if downloading process current on the terminal device is foreground process, sets in the terminal
Standby side continues to keep the connection of the terminal device and WLAN, to avoid the terminal device and network side server it
Between wireless connection disconnected because terminal device is in standby screen lock state.
16. device according to claim 14, described device further include:
Priority adjusts module, for adjusting the downloading process in the upgrade package for downloading application to be upgraded from the background in terminal equipment side
Priority, the priority of the downloading process is adjusted to identical with the priority of foreground process.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410009147.7A CN103781057B (en) | 2014-01-08 | 2014-01-08 | A kind of silent method and device for downloading upgrade package |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410009147.7A CN103781057B (en) | 2014-01-08 | 2014-01-08 | A kind of silent method and device for downloading upgrade package |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103781057A CN103781057A (en) | 2014-05-07 |
CN103781057B true CN103781057B (en) | 2018-04-13 |
Family
ID=50572783
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410009147.7A Active CN103781057B (en) | 2014-01-08 | 2014-01-08 | A kind of silent method and device for downloading upgrade package |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103781057B (en) |
Families Citing this family (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104375854B (en) * | 2014-07-25 | 2016-10-19 | 腾讯科技(深圳)有限公司 | A kind of application updates method for down loading and user terminal |
CN104199669B (en) * | 2014-09-12 | 2017-12-15 | 北京奇虎科技有限公司 | The method and device being managed to the process of application program |
CN105045636A (en) * | 2015-08-11 | 2015-11-11 | 广东欧珀移动通信有限公司 | Method and apparatus for updating software |
CN105323315B (en) * | 2015-10-19 | 2018-12-25 | 北京奇虎科技有限公司 | Application method for down loading, server and client based on mobile terminal |
CN105630551A (en) * | 2015-12-23 | 2016-06-01 | 北京金山安全软件有限公司 | Method and device for installing application software and electronic equipment |
CN105550003A (en) * | 2015-12-25 | 2016-05-04 | 北京奇虎科技有限公司 | Application updating system and method |
CN105635994B (en) * | 2015-12-30 | 2019-08-20 | Oppo广东移动通信有限公司 | A kind of method and terminal receiving pushed information |
CN106209452A (en) * | 2016-07-11 | 2016-12-07 | 福建联迪商用设备有限公司 | It is applied to wireless downloading installation method and the system of smart machine |
CN107817995B (en) * | 2016-09-12 | 2021-03-30 | 华为技术有限公司 | Background silent application starting method and device and terminal equipment |
CN108182361A (en) * | 2016-12-08 | 2018-06-19 | 武汉安天信息技术有限责任公司 | A kind of a kind of silent detection method, device and mobile terminal downloaded |
EP3611615A4 (en) * | 2017-04-19 | 2020-04-29 | Guangdong Oppo Mobile Telecommunications Corp., Ltd. | Method and device for accelerated startup of application, and terminal |
CN107124718B (en) * | 2017-05-22 | 2020-03-27 | 努比亚技术有限公司 | Data transmission method, mobile terminal and storage medium |
CN107463445A (en) * | 2017-07-31 | 2017-12-12 | 广东欧珀移动通信有限公司 | Application process priority management method, apparatus, storage medium and electronic equipment |
CN107885423B (en) * | 2017-10-30 | 2020-09-29 | 维沃移动通信有限公司 | Picture processing method and mobile terminal |
CN109729138A (en) * | 2018-06-01 | 2019-05-07 | 平安普惠企业管理有限公司 | Client resource update method, equipment, client and storage medium |
CN111866854B (en) * | 2019-04-28 | 2023-04-18 | 北京数安鑫云信息技术有限公司 | Automatic application updating method, device and system and computer equipment |
CN110515642B (en) * | 2019-09-02 | 2022-04-29 | 杭州行至云起科技有限公司 | Application program upgrading method and system |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102799447A (en) * | 2012-06-19 | 2012-11-28 | 优视科技有限公司 | Method and system for updating internal software of mobile terminal |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101026850A (en) * | 2007-03-09 | 2007-08-29 | 华为技术有限公司 | Mobileterminal software autmatic upgrading method and system, mobile terminal and software management server |
CN101895967A (en) * | 2010-07-21 | 2010-11-24 | 中兴通讯股份有限公司 | WIFI-based document downloading method and device thereof |
CN102541599B (en) * | 2011-12-27 | 2015-04-29 | 深圳创维-Rgb电子有限公司 | Method and system for upgrading electronic equipment on line, and television |
-
2014
- 2014-01-08 CN CN201410009147.7A patent/CN103781057B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102799447A (en) * | 2012-06-19 | 2012-11-28 | 优视科技有限公司 | Method and system for updating internal software of mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN103781057A (en) | 2014-05-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103781057B (en) | A kind of silent method and device for downloading upgrade package | |
CN105389191B (en) | A kind of method for upgrading software based on LAN, device and system | |
US10348861B2 (en) | Software upgrade method and terminal | |
CN106548262B (en) | Scheduling method, device and system for resources for processing tasks | |
US9143924B1 (en) | Segmented customization payload delivery | |
US20170147323A1 (en) | Method and electronic device for upgrading software development kit of an application | |
CN109714449A (en) | Service Dynamic Configuration, device, equipment and the storage medium of domain name | |
CN105893070A (en) | Application SDK upgrading method and system | |
CN103353845A (en) | Method and device for uploading and pushing script | |
CN106598678A (en) | Method and device for supplying application installation packages to terminal equipment | |
CN110311964A (en) | Socket OTA upgrade method, device, system, user terminal and storage medium | |
CN107220079A (en) | System version update method, storage device and the mobile terminal of a kind of mobile terminal | |
CN108197034A (en) | A kind of application testing method, server and system | |
CN104461663B (en) | A kind of method, apparatus and mobile terminal for loading other mobile terminal applications | |
CN106293696A (en) | Display application program downloads method and the corresponding intrument thereof of installment state | |
CN106202179A (en) | A kind of page loading method and device | |
US20140068586A1 (en) | Calendar aware adaptive patching of a computer program | |
CN102594859B (en) | A kind of rendering method of business datum, terminal, server and system | |
CN109213533A (en) | A kind of advertisement SDK dynamic loading method, device and terminal | |
US20120005051A1 (en) | Semi-Automated Customer Model-Based Service Deployment Into Data Centers | |
US10520929B2 (en) | Techniques for implementing universal commands in a welding or cutting system | |
JP7257554B2 (en) | Model file distribution method, platform, system, terminal and readable storage medium | |
JP5359835B2 (en) | Information processing apparatus, distribution system, and reception method | |
CN108572837A (en) | Method for upgrading software, device, readable storage medium storing program for executing and computer equipment | |
CN108334360A (en) | Method, apparatus, storage medium and the computer equipment of application program dynamic load |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220727 Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015 Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Patentee before: Qizhi software (Beijing) Co.,Ltd. |
|
TR01 | Transfer of patent right |