WO2018076755A1 - Method and apparatus for issuing upgrade package - Google Patents

Method and apparatus for issuing upgrade package Download PDF

Info

Publication number
WO2018076755A1
WO2018076755A1 PCT/CN2017/091115 CN2017091115W WO2018076755A1 WO 2018076755 A1 WO2018076755 A1 WO 2018076755A1 CN 2017091115 W CN2017091115 W CN 2017091115W WO 2018076755 A1 WO2018076755 A1 WO 2018076755A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
storage space
upgrade package
threshold
remaining storage
Prior art date
Application number
PCT/CN2017/091115
Other languages
French (fr)
Chinese (zh)
Inventor
巩四方
Original Assignee
西安中兴新软件有限责任公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 西安中兴新软件有限责任公司 filed Critical 西安中兴新软件有限责任公司
Publication of WO2018076755A1 publication Critical patent/WO2018076755A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and an apparatus for delivering an upgrade package.
  • Smart terminals such as mobile phones or tablets often receive prompts for system updates, but these upgrade packages are generally large and take up a lot of space.
  • the upgrade package is automatically downloaded by default, and the download process and installation process are time consuming. It is relatively long and requires a relatively high amount of electricity. Generally, it requires at least 30% of electricity.
  • a large number of pictures, audio and video, applications and other files are generally placed in the terminal, and often encounter insufficient space prompts, which causes the user to not know which files should be deleted and which files should not be deleted.
  • Some existing software or system updates are when the user has enough space, the background downloads the upgrade package by default, and then prompts the user whether to upgrade, such as Apple mobile phone (iPhone); there are some software that is insufficient when prompted to update space. Then the user is prompted to delete some content so that the device has enough space left to upgrade, but often the user does not know which files to delete.
  • Apple mobile phone iPhone
  • the embodiment of the invention provides a method and a device for issuing an upgrade package, which are used to solve the problem that the upgrade package delivery method is not convenient for the user in the prior art.
  • a method for delivering an upgrade package includes: learning a remaining storage space of the terminal; determining a policy for sending an upgrade package to the terminal according to the remaining storage space, where the upgrade package includes multiple sub-packets,
  • the policy includes determining, according to the detected remaining storage space, all the sub-packets of the upgrade package to be sent to the terminal at one time, or sending all sub-packets of the upgrade package to the terminal in multiple times; Send an upgrade package to the terminal according to the policy.
  • the method further includes: after the remaining storage space of the terminal is obtained, if the remaining storage space is smaller than the first preset value, the automatic clearing of the redundant space package is sent to the terminal, so that the automatic cleaning redundancy is performed.
  • the space package cleans up the storage space of the terminal.
  • the method further includes: when the upgrade package is sent to the terminal multiple times, each time the terminal completes the download of the sub-package, the remaining storage space of the terminal is obtained, and when the remaining storage space of the terminal is obtained, the remaining storage space is exceeded.
  • the automatic cleanup of the redundant space package is notified to clean the storage space of the terminal.
  • determining, according to the remaining storage space, a policy for sending the upgrade package to the terminal including: when the value of the storage space required for the remaining storage space is greater than the second threshold, determining to send all the sub-packets of the upgrade package to the terminal at one time; When the remaining storage space is greater than the third threshold and less than the second threshold, the sub-packets of the upgrade package are combined to obtain multiple combined packets, and multiple combined packets are sent multiple times.
  • the policy for sending the upgrade package to the terminal is determined according to the remaining storage space; wherein, the first threshold>the second threshold>the third threshold> The fourth threshold.
  • the method further includes: before sending the upgrade package to the terminal according to the policy, obtaining the version number of the system of the terminal; and sending the upgrade package to the terminal according to the policy, including: sending the upgrade package corresponding to the version number to the terminal.
  • the method further includes: before the remaining storage space of the terminal is learned, generating, by the function module, a plurality of sub-packets according to the division of the function module; before sending the upgrade package to the terminal according to the policy, informing the terminal that the upgrade package is updated. functional module.
  • an upgrade package issuance apparatus including: a first learning module configured to learn a remaining storage space of the terminal; and a determining module configured to send to the terminal according to the remaining storage space.
  • the upgrade package includes multiple sub-packets.
  • the policy includes determining to send all sub-packets of the upgrade package to the terminal at one time according to the detected remaining storage space, or sending all sub-packages of the upgrade package to the terminal multiple times; Set to send an upgrade package to the terminal based on the policy.
  • the device further includes: a sending module, configured to: after the remaining storage space of the terminal is obtained, if the remaining storage space is smaller than the first preset value, automatically clear the redundant space package to the terminal, In order to automatically clean up the redundant space package to clean the storage space of the terminal.
  • a sending module configured to: after the remaining storage space of the terminal is obtained, if the remaining storage space is smaller than the first preset value, automatically clear the redundant space package to the terminal, In order to automatically clean up the redundant space package to clean the storage space of the terminal.
  • the device further includes: a cleaning module, configured to: when the terminal sends the upgrade package to the terminal multiple times, each time the terminal completes the download of the sub-package, the remaining storage space of the terminal is obtained, and when the terminal is known When the remaining storage space exceeds the first threshold, the automatic cleaning of the redundant space package is notified to clean the storage space of the terminal.
  • a cleaning module configured to: when the terminal sends the upgrade package to the terminal multiple times, each time the terminal completes the download of the sub-package, the remaining storage space of the terminal is obtained, and when the terminal is known When the remaining storage space exceeds the first threshold, the automatic cleaning of the redundant space package is notified to clean the storage space of the terminal.
  • the determining module includes: a first determining unit, configured to: when the value of the storage space required for the remaining storage space greater than the upgrade package exceeds the second threshold, determine to send all the sub-packets of the upgrade package to the terminal at one time;
  • the unit is configured to, when the value of the storage space required for the remaining storage space is greater than the third threshold and less than the second threshold, determine to combine the sub-packets of the upgrade package to obtain multiple combined packages, and combine multiple combinations.
  • the packet is sent to the terminal multiple times; the third determining unit is configured to determine that each sub-package of the upgrade package is large when the remaining storage space is greater than the value of the storage space required for the upgrade package exceeds the fourth threshold and is less than the third threshold.
  • the fourth determining unit is configured to send the upgrade package to the terminal when the remaining storage space is less than the fourth threshold, and after the remaining storage space is greater than the fourth threshold, determine to send to the terminal according to the remaining storage space.
  • Strategy for upgrading a package wherein, the first threshold>the second threshold>the third threshold>the fourth threshold value.
  • the device further includes: a second learning module, configured to obtain a version number of the system of the terminal before sending the upgrade package to the terminal according to the policy; and the sending module is specifically configured to: send the terminal corresponding to the version number Upgrade package.
  • the device further includes: a generating module, configured to generate, according to the division of the function module, a plurality of sub-packets before the remaining storage space of the terminal is obtained; and the notification module is configured to send an upgrade to the terminal according to the policy. Before the package, inform the terminal of the updated function module in the upgrade package.
  • a storage medium comprising a stored program, wherein the program is executed to perform the method of any of the above.
  • a processor the processor being arranged to run a program, wherein the program is executed to perform the method of any of the above.
  • the upgrade package is divided into multiple sub-packets.
  • all the sub-packets or points of the upgrade package may be sent to the terminal at one time according to the size of the remaining storage space of the terminal.
  • the sub-package of the upgrade package is sent to the terminal multiple times, and the upgrade package is delivered according to the remaining storage space of the terminal, so that the user does not need to manually delete the file to obtain the storage space, which facilitates the user operation and improves the user experience.
  • FIG. 1 is a flowchart of a method for delivering an upgrade package according to a first embodiment of the present invention
  • FIG. 2 is a flowchart of a method for delivering an upgrade package according to a second embodiment of the present invention
  • FIG. 3 is a structural block diagram of an upgrade package issuing apparatus according to a third embodiment of the present invention.
  • FIG. 1 is a flowchart of the method. As shown in FIG. 1, the method includes the following processing:
  • Step 101 Obtain the remaining storage space of the terminal.
  • the server first pushes a message to the terminal, where the message is a code for inquiring information about the remaining space of the terminal device and/or the system version number, and the terminal device receives the message. Feed back information about its storage space to the server. This process is automatically performed in the background. As long as there is a network connection, the server can automatically send query messages. The user does not need to perform any operations, and does not see any interaction process. Sending messages consumes almost no data traffic.
  • Step 102 Determine a policy for sending an upgrade package to the terminal according to the remaining storage space.
  • the upgrade package may be configured by a plurality of sub-packets.
  • the policy of determining that the upgrade package is sent to the terminal according to the remaining storage space may include: the value of the storage space required for the remaining storage space being greater than the upgrade package exceeds the second value.
  • determining to send all the sub-packets of the upgrade package to the terminal at one time determining that each sub-package of the upgrade package is combined when the remaining storage space is greater than the value of the storage space required for the upgrade package exceeds the third threshold and is less than the second threshold.
  • the remaining storage space is larger than the required storage package
  • the value of the storage space exceeds the fourth threshold and is less than the third threshold, it is determined that each sub-packet of the upgrade package is sequentially sent to the terminal; when the remaining storage space is less than the fourth threshold, the upgrade package is not sent to the terminal, and the remaining storage space is larger than After the fourth threshold, the policy for sending the upgrade package to the terminal is determined according to the remaining storage space; wherein, the first threshold>the second threshold>the third threshold>the fourth threshold.
  • the upgrade package is divided into several modules when the upgrade package is created, and each module can be upgraded separately, or combined and upgraded by several modules, or upgraded as a whole, or different modules can be exchanged.
  • each module is upgraded in different time and space, depending on how much content is modified.
  • the technology for making upgrade packages can be done with tools that make differential packages.
  • the server can download the upgrade package into several stages according to the state of the storage space of the terminal. Before the server upgrades, the current version number of the terminal can be obtained while the information about the remaining storage space of the terminal is obtained, and then the corresponding difference is sent according to the version number. Upgrade package.
  • Step 103 Send an upgrade package to the terminal according to the policy.
  • the upgrade package may be a system upgrade package of the terminal, and based on this,
  • the server Before sending the upgrade package to the terminal according to the determined policy, the server also needs to know the version number of the system of the terminal. Based on this, the server sends the upgrade package corresponding to the version number to the terminal.
  • the upgrade package may be specifically configured to generate a plurality of sub-packets according to the division of the functional modules.
  • the terminal After downloading the upgrade package, the terminal can perform the segmented update download of the differential package. If the server receives enough power from the terminal, the user will be prompted to install it before installation. After the agreement is made, it will be installed when it is idle (when the user does not use it after 0:00 in the evening).
  • the specific installation methods can include the following Processing: (1) One-time installation in the idle time after the entire upgrade package is completed.
  • the downloaded upgrade package according to the remaining power and idle time of the terminal for segmented installation or one-time installation, will immediately delete the installed package after the installation is completed, release the space and then download the next paragraph and installation.
  • each package When installing the upgrade package in a segmented manner, each package completes a package and returns a label of the package to the server. The server then sends an identifier to the device to identify which segment of the differential package has been downloaded and installed, and which segment of the differential package No downloads, read this logo the next time you download, and download other packages that have not been downloaded. After each download of a segmented package, the installation is completed. After the completion, the downloaded upgrade package is deleted, and then the download of the next upgrade package is continued.
  • the scenario of the application of this embodiment may be: when a user stores a large amount of photos and software in a terminal (for example, a mobile phone, a tablet, etc.), the remaining space is insufficient, below 500 M, and the user does not know what to clean up. At this time, the system prompts to upgrade.
  • the method provided in this embodiment can automatically help the user to clear the redundant space of the mobile phone, and can also download and install the upgrade package in the idle period.
  • This embodiment is based on the foregoing first embodiment, and provides another upgrade package delivery method.
  • the method is different from the method provided by the first embodiment in that the method knows the remaining storage space of the terminal. In addition, the storage space of the terminal is automatically cleaned.
  • the method further includes: Steps 101 to 103 described in the foregoing first embodiment, the method further includes:
  • the server determines, according to the stored storage status information of the terminal, if the remaining storage space reaches a threshold that needs to automatically clear the redundant space (that is, the first preset value), then the terminal device performs automatic redundant space cleaning; If this threshold is not reached, no redundant space cleanup is performed.
  • the specific details of the first preset value setting may be: when the remaining space of the terminal is larger than the size of the entire upgrade package, automatic cleaning is not performed; when the remaining space of the terminal is smaller than the size of the entire upgrade package, the redundant space is automatically cleared.
  • the mechanism for automatically clearing the redundant space is to set a packet for automatically clearing the redundant space on the server side.
  • the packet of the cleanup space is not sent. If the remaining space does not reach the threshold, Then, the server first sends the packet that automatically cleans up the redundant space, so that the packet clears the terminal redundant space.
  • This cleaned package is similar to a software that automatically cleans up garbage. The package is small and hardly occupies the space of the mobile phone.
  • the server first sends out the cleanup space package, and the terminal automatically cleans up the terminal redundant space after the terminal download is completed. This process does not send any request and confirmation to the user, cleans up the redundant space of the terminal, and defragments the fragmented space. The whole process is automatically performed in the background.
  • the user does not need to perform any operation, and silently clears the redundant information in the terminal in the background. For example, images, caching of various applications, browser caching, and defragmentation of files, etc., compressing files increases the space utilization of mobile phones, improves the speed and efficiency of mobile phones, and shuts down unnecessary processes of the system without affecting user usage. And the package of the cleanup space is kept in the terminal from the download of the upgrade package until the upgrade package is completely installed, so as to ensure that the junk files of the device can be cleaned and freed at any time during the entire installation process. During the download process of the upgrade package, the user is no longer prompted to have insufficient storage space, and some space and other messages should be deleted to avoid making the user make difficult choices. This process is only done in the background when it is idle (when the user is not using it after 0:00 pm), no It will affect the normal use of the user, and has no effect on the system files of the mobile phone and the operation of each application.
  • the upgrade package involved in the embodiment may also include multiple sub-packets.
  • the policy for sending an upgrade package to the terminal according to the remaining storage space includes:
  • the upgrade package is sent to the terminal multiple times, each time the terminal completes the download of the sub-package, the remaining storage space of the terminal is obtained, and when the remaining storage space of the terminal exceeds the first threshold, the automatic clearing of the redundant space packet is notified to the terminal.
  • the storage space is cleaned up.
  • the upgrade package may be specifically configured to generate a plurality of sub-packets according to the division of the functional modules.
  • this embodiment further describes the method of downloading the upgrade package in a segmented manner by using an example of a segmented download upgrade package (in this example, each sub-package has no differential upgrade package):
  • the server performs two differential upgrade packages according to the power of the terminal and the size of the differential upgrade package of the module. A differential upgrade package is combined to download the upgrade package.
  • the upgrade package will not be downloaded temporarily, and the upgrade package will be downloaded after waiting for the storage space to meet the upgrade requirements.
  • the segmented download upgrade package mainly solves the problem that the upgrade package is too large, and the space occupied by the installation is too large after the entire upgrade package is completed and the entire upgrade process takes too long and consumes too much power.
  • the server downloads the upgrade package in a segmented manner according to the returned storage space.
  • the package for cleaning the space is always in the terminal.
  • the remaining space can be detected before each download of the upgrade package. If the threshold is reached, Clean up in the background.
  • the one-time download package is the smallest, and the sum of the segmented download upgrade packages will be larger than the one-time download package size.
  • the advantage of segmented downloads is that each space is small, consumes less power, takes less time, and uses less memory and storage space.
  • a smart cleaning device redundant space package mainly used to automatically clean up some of the terminal's cache and empty folders and other redundant space before downloading the upgrade package. Since the current software generally judges that the terminal has insufficient storage space, it suspends the process or reminds the user to clean up the space, but the user often does not know which content to clear or clear the space after scanning the tool.
  • the upgrade package function of the redundant space of the smart cleaning device of the present invention may not need other tools to scan which content should be cleaned or let the user select it, but at the beginning of the download, the background intelligently helps the user to clean up the device.
  • the cache file enhances the available space and does not affect the user's use.
  • the upgrade package can be downloaded in segments and installed in segments.
  • the upgrade package can be downloaded in stages when downloading. Different from the breakpoint transmission, the present invention can download a part of the upgrade package and then install a part of the upgrade package, and then delete the package.
  • the installed upgrade package can be used when the network is continuous and the space is sufficient. The secondary download completes the installation. When the network environment is not continuous or the space is insufficient, you can download a part according to the space or network environment to install. After the installation completes this part of the update, delete the downloaded upgrade package and wait for the next network environment or space. Continue to download and install in sections.
  • the redundant space in the device can be automatically cleaned on the one hand, and the storage space requirement and the power requirement required in the upgrade process can be reduced on the one hand, and the upgrade efficiency is improved.
  • the segmented upgrade and the installation and upgrade package have almost no requirements on the power of the terminal, and the terminal can be used normally.
  • the installation process takes a relatively short time. After the upgrade package is downloaded, the upgrade package is installed in sections. You only need to restart the terminal once after the installation.
  • the existing terminal upgrade mode when the terminal has insufficient storage space.
  • the existing upgrade method prompts the user to delete some files and obtain some storage space before downloading the upgrade package.
  • the invention can intelligently clean the redundant space of the device, and the segmentation upgrade has low space requirements and does not occupy. There is a lot of space in the mobile phone. Some parts of the upgrade are downloaded, and then the part is deleted. The space is small and the upgrade efficiency is high.
  • the method provided in this embodiment mainly reduces the junk files in the device, and does not require the user to make difficult choices. Clean up redundant files without affecting the normal use of the terminal. Segmented download and upgrade can mainly reduce the space and power requirements for the upgrade. The segment download and segmentation installation takes less time in the background, and only needs to restart the terminal when all the installations are completed, which improves the efficiency of the upgrade. , improved user experience.
  • the less-used software and files of the user's photos and applications are uploaded to the cloud reduces the use of the storage space. Only the cache file is reserved in the device, so that the space occupied is small, and the file uploaded to the cloud is downloaded after the upgrade is completed. Come down.
  • the segmented upgrade can also prompt the user which modules are updated when downloading the upgrade package. The user can selectively upgrade, and then select other upgrades or only upgrade some functions, prompt the user, and the user selects partial upgrade.
  • FIG. 3 is a structural block diagram of the device.
  • the device 30 includes the following components, including:
  • the first learning module 31 is configured to learn the remaining storage space of the terminal
  • the determining module 32 is configured to determine a policy for sending an upgrade package to the terminal according to the remaining storage space;
  • the sending module 33 is configured to send the upgrade package to the terminal according to the policy.
  • the device 30 may further include: a sending module, configured to: after the remaining storage space of the terminal is learned, if the remaining storage space is smaller than the first preset value, automatically clear the redundant space to the terminal The package is used to automatically clean up the redundant space package to clean up the storage space of the terminal.
  • a sending module configured to: after the remaining storage space of the terminal is learned, if the remaining storage space is smaller than the first preset value, automatically clear the redundant space to the terminal The package is used to automatically clean up the redundant space package to clean up the storage space of the terminal.
  • the upgrade package may specifically include multiple sub-packets.
  • the determining module 32 may specifically include: a clearing unit, configured to perform the download of the sub-package each time the terminal sends the upgrade package to the terminal multiple times. After that, the remaining storage space of the terminal is learned, and when the remaining storage space of the terminal exceeds the first threshold, the automatic cleaning of the redundant space packet is notified to clean the storage space of the terminal.
  • the determining module 32 may further include:
  • the first determining unit is configured to: when the remaining storage space is greater than the value of the storage space required for the upgrade package exceeds the second threshold, determine to send all the sub-packets of the upgrade package to the terminal at one time;
  • a second determining unit configured to determine, when the value of the storage space required for the remaining storage space is greater than the third threshold and less than the second threshold, to determine that each sub-package of the upgrade package is combined to obtain multiple combined packages, Multiple combined packets are sent to the terminal multiple times;
  • a third determining unit configured to: when the remaining storage space is greater than a value of the storage space required for the upgrade package exceeds a fourth threshold and is less than a third threshold, determining to send each sub-packet of the upgrade package to the terminal in sequence;
  • the fourth determining unit is configured to: when the remaining storage space is less than the fourth threshold, send the upgrade package to the terminal, and after the remaining storage space is greater than the fourth threshold, determine a policy for sending the upgrade package to the terminal according to the remaining storage space;
  • the device 30 may further include: a second learning module, configured to obtain a version number of the system of the terminal before sending the upgrade package to the terminal according to the policy; and the sending module is specifically configured to: send the version number to the terminal Corresponding upgrade package. And generating a module, configured to generate the plurality of sub-packets according to the division of the function module before knowing the remaining storage space of the terminal; and informing the module, setting the function of updating the update package in the upgrade package before sending the upgrade package to the terminal according to the policy Module.
  • a second learning module configured to obtain a version number of the system of the terminal before sending the upgrade package to the terminal according to the policy
  • the sending module is specifically configured to: send the version number to the terminal Corresponding upgrade package.
  • generating a module configured to generate the plurality of sub-packets according to the division of the function module before knowing the remaining storage space of the terminal; and informing the module, setting the function of updating the update package in the upgrade package before sending the upgrade package to the terminal according to the policy
  • Embodiments of the present invention also provide a storage medium including a stored program, wherein the program described above executes the method of any of the above.
  • the foregoing storage medium may be configured to store program code for performing the following steps:
  • the foregoing storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), and a Random Access Memory (RAM).
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • Embodiments of the present invention also provide a processor for running a program, wherein the program is executed to perform the steps of any of the above methods.
  • the foregoing program is used to perform the following steps:
  • S2 Determine, according to the remaining storage space, a policy for sending an upgrade package to the terminal, where the upgrade package includes multiple sub-packets, and the policy includes: determining, according to the detected remaining storage space, all the sub-packets of the upgrade package to be sent to the terminal at one time, or sending the sub-packets to the terminal multiple times. Upgrade all sub-packages of the package;
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the upgrade package is divided into multiple sub-packets.
  • all the sub-packages of the upgrade package may be sent to the terminal at one time according to the size of the remaining storage space of the terminal.
  • the sub-package of the upgrade package is sent to the terminal multiple times, and the purpose of delivering the upgrade package according to the remaining storage space of the terminal is achieved, so that the user does not need to manually delete the file to obtain the storage space, which is convenient for the user to operate and improves. user experience.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

A method and an apparatus for issuing an upgrade package, used for solving the problem in the prior art that the existing method used for issuing an upgrade package is inconvenient for users to operate. The method comprises: obtaining the remaining storage space of a terminal (101); determining, according to the remaining storage space, a policy for sending an upgrade package to the terminal (102), the upgrade package comprising a plurality of sub-packets, the policy comprising determining, according to the detected remaining storage space, to send all the sub-packages of the upgrade package together to the terminal simultaneously, or to send all the sub-packages of the upgrade package to the terminal, a plurality of times; and sending, according to the policy, the upgrade package to the terminal (103). The solution facilitates user operation, and improves user experience.

Description

一种升级包下发方法及装置Upgrade package issuing method and device 技术领域Technical field
本发明涉及通讯领域,特别是涉及一种升级包下发方法及装置。The present invention relates to the field of communications, and in particular, to a method and an apparatus for delivering an upgrade package.
背景技术Background technique
手机或平板等智能终端经常会收到系统更新的提示,但是这些升级包一般都很大,会占用很多空间,当用户空间足够时,升级包默认后台自动下载,下载过程和安装过程都耗时比较长,并且对电量要求比较高,一般至少需要30%的电量。终端里一般都放了大量的图片、音视频、应用等文件,经常会遇到空间不足的提示,导致用户不知道哪些文件该删除,哪些文件不该删除。现有的一些软件或系统更新时都是在用户有足够的空间时后台默认下载完成升级包,然后提示用户是否升级,如苹果手机(iPhone);还有一些软件是更新的时候提示空间不足,然后提示用户需要删除一些内容以使设备剩余足够的空间后才能升级,但是很多时候用户也不知道该删除哪些文件。Smart terminals such as mobile phones or tablets often receive prompts for system updates, but these upgrade packages are generally large and take up a lot of space. When the user space is sufficient, the upgrade package is automatically downloaded by default, and the download process and installation process are time consuming. It is relatively long and requires a relatively high amount of electricity. Generally, it requires at least 30% of electricity. A large number of pictures, audio and video, applications and other files are generally placed in the terminal, and often encounter insufficient space prompts, which causes the user to not know which files should be deleted and which files should not be deleted. Some existing software or system updates are when the user has enough space, the background downloads the upgrade package by default, and then prompts the user whether to upgrade, such as Apple mobile phone (iPhone); there are some software that is insufficient when prompted to update space. Then the user is prompted to delete some content so that the device has enough space left to upgrade, but often the user does not know which files to delete.
发明内容Summary of the invention
本发明实施例提供一种升级包下发方法及装置,用以解决现有技术中升级包下发方式不便于用户操作的问题。The embodiment of the invention provides a method and a device for issuing an upgrade package, which are used to solve the problem that the upgrade package delivery method is not convenient for the user in the prior art.
根据本发明实施例的第一个方面,提供了一种升级包下发方法,包括:获知终端的剩余存储空间;根据剩余存储空间确定向终端发送升级包的策略,升级包包括多个子包,策略包括根据检测到的剩余存储空间确定一次性向终端发送升级包的所有子包,或分多次向终端发送升级包的所有子包; 根据策略向终端发送升级包。According to a first aspect of the present invention, a method for delivering an upgrade package includes: learning a remaining storage space of the terminal; determining a policy for sending an upgrade package to the terminal according to the remaining storage space, where the upgrade package includes multiple sub-packets, The policy includes determining, according to the detected remaining storage space, all the sub-packets of the upgrade package to be sent to the terminal at one time, or sending all sub-packets of the upgrade package to the terminal in multiple times; Send an upgrade package to the terminal according to the policy.
在本发明实施例中,上述方法还包括:在获知终端的剩余存储空间之后,如果剩余存储空间小于第一预设值,则向终端下发自动清理冗余空间包,以使自动清理冗余空间包对终端的存储空间进行清理。In the embodiment of the present invention, the method further includes: after the remaining storage space of the terminal is obtained, if the remaining storage space is smaller than the first preset value, the automatic clearing of the redundant space package is sent to the terminal, so that the automatic cleaning redundancy is performed. The space package cleans up the storage space of the terminal.
在本发明实施例中,上述方法还包括:当分多次向终端发送升级包时,每当终端完成一次子包的下载之后,则获知终端的剩余存储空间,当获知终端的剩余存储空间超过第一阈值时通知自动清理冗余空间包对终端的存储空间进行清理。In the embodiment of the present invention, the method further includes: when the upgrade package is sent to the terminal multiple times, each time the terminal completes the download of the sub-package, the remaining storage space of the terminal is obtained, and when the remaining storage space of the terminal is obtained, the remaining storage space is exceeded. When a threshold is reached, the automatic cleanup of the redundant space package is notified to clean the storage space of the terminal.
其中,根据剩余存储空间确定向终端发送升级包的策略,包括:在剩余存储空间大于升级包所需的存储空间的值超过第二阈值时,确定一次性向终端发送升级包的所有子包;在剩余存储空间大于升级包所需的存储空间的值超过第三阈值且小于第二阈值时,确定将升级包的各子包进行组合,得到多个组合包,将多个组合包通过多次发送至终端;在剩余存储空间大于升级包所需的存储空间的值超过第四阈值且小于第三阈值时,确定将升级包的各子包由大至小依次发送至终端;在剩余存储空间小于第四阈值时,不向终端发送升级包,待剩余存储空间大于第四阈值之后,再根据剩余存储空间确定向终端发送升级包的策略;其中,第一阈值>第二阈值>第三阈值>第四阈值。And determining, according to the remaining storage space, a policy for sending the upgrade package to the terminal, including: when the value of the storage space required for the remaining storage space is greater than the second threshold, determining to send all the sub-packets of the upgrade package to the terminal at one time; When the remaining storage space is greater than the third threshold and less than the second threshold, the sub-packets of the upgrade package are combined to obtain multiple combined packets, and multiple combined packets are sent multiple times. To the terminal; when the value of the storage space required for the remaining storage space is greater than the fourth threshold and less than the third threshold, it is determined that each sub-packet of the upgrade package is sequentially sent to the terminal from large to small; the remaining storage space is smaller than The fourth threshold is not sent to the terminal, and after the remaining storage space is greater than the fourth threshold, the policy for sending the upgrade package to the terminal is determined according to the remaining storage space; wherein, the first threshold>the second threshold>the third threshold> The fourth threshold.
在本发明实施例中,上述方法还包括:根据策略向终端发送升级包之前,获知终端的系统的版本号;根据策略向终端发送升级包,包括:向终端发送与版本号对应的升级包。In the embodiment of the present invention, the method further includes: before sending the upgrade package to the terminal according to the policy, obtaining the version number of the system of the terminal; and sending the upgrade package to the terminal according to the policy, including: sending the upgrade package corresponding to the version number to the terminal.
在本发明实施例中,上述方法还包括:在获知终端的剩余存储空间之前,将升级包按照功能模块的划分生成多个子包;根据策略向终端发送升级包之前,告知终端升级包中更新的功能模块。 In the embodiment of the present invention, the method further includes: before the remaining storage space of the terminal is learned, generating, by the function module, a plurality of sub-packets according to the division of the function module; before sending the upgrade package to the terminal according to the policy, informing the terminal that the upgrade package is updated. functional module.
根据本发明实施例的第二个方面,提供了一种升级包下发装置,包括:第一获知模块,设置为获知终端的剩余存储空间;确定模块,设置为根据剩余存储空间确定向终端发送升级包的策略,升级包包括多个子包,策略包括根据检测到的剩余存储空间确定一次性向终端发送升级包的所有子包,或分多次向终端发送升级包的所有子包;发送模块,设置为根据策略向终端发送升级包。According to a second aspect of the present invention, an upgrade package issuance apparatus, including: a first learning module configured to learn a remaining storage space of the terminal; and a determining module configured to send to the terminal according to the remaining storage space. The upgrade package includes multiple sub-packets. The policy includes determining to send all sub-packets of the upgrade package to the terminal at one time according to the detected remaining storage space, or sending all sub-packages of the upgrade package to the terminal multiple times; Set to send an upgrade package to the terminal based on the policy.
在本发明实施例中,上述装置还包括:下发模块,设置为在获知终端的剩余存储空间之后,如果剩余存储空间小于第一预设值,则向终端下发自动清理冗余空间包,以使自动清理冗余空间包对终端的存储空间进行清理。In the embodiment of the present invention, the device further includes: a sending module, configured to: after the remaining storage space of the terminal is obtained, if the remaining storage space is smaller than the first preset value, automatically clear the redundant space package to the terminal, In order to automatically clean up the redundant space package to clean the storage space of the terminal.
在本发明实施例中,上述装置还包括:清理模块,设置为当分多次向终端发送升级包时,每当终端完成一次子包的下载之后,则获知终端的剩余存储空间,当获知终端的剩余存储空间超过第一阈值时通知自动清理冗余空间包对终端的存储空间进行清理。In the embodiment of the present invention, the device further includes: a cleaning module, configured to: when the terminal sends the upgrade package to the terminal multiple times, each time the terminal completes the download of the sub-package, the remaining storage space of the terminal is obtained, and when the terminal is known When the remaining storage space exceeds the first threshold, the automatic cleaning of the redundant space package is notified to clean the storage space of the terminal.
其中,上述确定模块,包括:第一确定单元,设置为在剩余存储空间大于升级包所需的存储空间的值超过第二阈值时,确定一次性向终端发送升级包的所有子包;第二确定单元,设置为在剩余存储空间大于升级包所需的存储空间的值超过第三阈值且小于第二阈值时,确定将升级包的各子包进行组合,得到多个组合包,将多个组合包通过多次发送至终端;第三确定单元,设置为在剩余存储空间大于升级包所需的存储空间的值超过第四阈值且小于第三阈值时,确定将升级包的各子包由大至小依次发送至终端;第四确定单元,设置为在剩余存储空间小于第四阈值时,不向终端发送升级包,待剩余存储空间大于第四阈值之后,再根据剩余存储空间确定向终端发送升级包的策略;其中,第一阈值>第二阈值>第三阈值>第四阈 值。The determining module includes: a first determining unit, configured to: when the value of the storage space required for the remaining storage space greater than the upgrade package exceeds the second threshold, determine to send all the sub-packets of the upgrade package to the terminal at one time; The unit is configured to, when the value of the storage space required for the remaining storage space is greater than the third threshold and less than the second threshold, determine to combine the sub-packets of the upgrade package to obtain multiple combined packages, and combine multiple combinations. The packet is sent to the terminal multiple times; the third determining unit is configured to determine that each sub-package of the upgrade package is large when the remaining storage space is greater than the value of the storage space required for the upgrade package exceeds the fourth threshold and is less than the third threshold. The fourth determining unit is configured to send the upgrade package to the terminal when the remaining storage space is less than the fourth threshold, and after the remaining storage space is greater than the fourth threshold, determine to send to the terminal according to the remaining storage space. Strategy for upgrading a package; wherein, the first threshold>the second threshold>the third threshold>the fourth threshold value.
在本发明实施例中,上述装置还包括:第二获知模块,设置为根据策略向终端发送升级包之前,获知终端的系统的版本号;发送模块具体设置为:向终端发送与版本号对应的升级包。In the embodiment of the present invention, the device further includes: a second learning module, configured to obtain a version number of the system of the terminal before sending the upgrade package to the terminal according to the policy; and the sending module is specifically configured to: send the terminal corresponding to the version number Upgrade package.
在本发明实施例中,上述装置还包括:生成模块,设置为在获知终端的剩余存储空间之前,将升级包按照功能模块的划分生成多个子包;告知模块,设置为根据策略向终端发送升级包之前,告知终端升级包中更新的功能模块。In the embodiment of the present invention, the device further includes: a generating module, configured to generate, according to the division of the function module, a plurality of sub-packets before the remaining storage space of the terminal is obtained; and the notification module is configured to send an upgrade to the terminal according to the policy. Before the package, inform the terminal of the updated function module in the upgrade package.
根据本发明实施例的第三个方面,提供了一种存储介质,所述存储介质包括存储的程序,其中,所述程序运行时执行上述任一项所述的方法。According to a third aspect of the embodiments of the present invention, a storage medium is provided, the storage medium comprising a stored program, wherein the program is executed to perform the method of any of the above.
根据本发明实施例的第三个方面,提供了一种处理器,所述处理器设置为运行程序,其中,所述程序运行时执行上述任一项所述的方法。According to a third aspect of the embodiments of the present invention, there is provided a processor, the processor being arranged to run a program, wherein the program is executed to perform the method of any of the above.
本发明有益效果如下:The beneficial effects of the present invention are as follows:
本发明实施例提供的方案,将升级包划分或多个子包,在向终端下发升级包的过程中,可以根据终端剩余存储空间的大小,确定一次性向终端发送升级包的所有子包或分多次将升级包的子包发送至终端,实现了根据终端自身剩余存储空间分段下发升级包的目的,使得用户无需手动删除文件来获取存储空间,方便了用户操作,提高了用户体验。In the solution provided by the embodiment of the present invention, the upgrade package is divided into multiple sub-packets. In the process of delivering the upgrade package to the terminal, all the sub-packets or points of the upgrade package may be sent to the terminal at one time according to the size of the remaining storage space of the terminal. The sub-package of the upgrade package is sent to the terminal multiple times, and the upgrade package is delivered according to the remaining storage space of the terminal, so that the user does not need to manually delete the file to obtain the storage space, which facilitates the user operation and improves the user experience.
附图说明DRAWINGS
图1是本发明第一实施例中提供的升级包下发方法的流程图;1 is a flowchart of a method for delivering an upgrade package according to a first embodiment of the present invention;
图2是本发明第二实施例中提供的升级包下发方法的流程图;2 is a flowchart of a method for delivering an upgrade package according to a second embodiment of the present invention;
图3是本发明第三实施例中提供的升级包下发装置的结构框图。 FIG. 3 is a structural block diagram of an upgrade package issuing apparatus according to a third embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动的前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
第一实施例First embodiment
本实施例提供了一种升级包下发方法,该方法由服务器端实现,图1是该方法的流程图,如图1所示,该方法包括如下处理:This embodiment provides an upgrade package delivery method, which is implemented by a server. FIG. 1 is a flowchart of the method. As shown in FIG. 1, the method includes the following processing:
步骤101:获知终端的剩余存储空间;Step 101: Obtain the remaining storage space of the terminal.
在该步骤101中,在终端设备进行升级前,服务器先向终端推送(push)一个消息,该消息是一个询问终端设备剩余空间和/或系统版本号等信息的代码,终端设备收到消息后将其存储空间的信息反馈给服务器。这个过程是在后台自动进行的,只要有网络连接,服务器就可自动发送查询消息,用户不需要进行任何操作,也看不到任何交互过程,发送消息几乎不耗费数据流量。In the step 101, before the terminal device performs the upgrade, the server first pushes a message to the terminal, where the message is a code for inquiring information about the remaining space of the terminal device and/or the system version number, and the terminal device receives the message. Feed back information about its storage space to the server. This process is automatically performed in the background. As long as there is a network connection, the server can automatically send query messages. The user does not need to perform any operations, and does not see any interaction process. Sending messages consumes almost no data traffic.
步骤102:根据剩余存储空间确定向终端发送升级包的策略;Step 102: Determine a policy for sending an upgrade package to the terminal according to the remaining storage space.
在本实施例中,升级包优选的可以由多个子包构成,根据剩余存储空间确定向终端发送升级包的策略具体可以包括:在剩余存储空间大于升级包所需的存储空间的值超过第二阈值时,确定一次性向终端发送升级包的所有子包;在剩余存储空间大于升级包所需的存储空间的值超过第三阈值且小于第二阈值时,确定将升级包的各子包进行组合,得到多个组合包,将多个组合包通过多次发送至终端;在剩余存储空间大于升级包所需的存 储空间的值超过第四阈值且小于第三阈值时,确定将升级包的各子包依次发送至终端;在剩余存储空间小于第四阈值时,不向终端发送升级包,待剩余存储空间大于第四阈值之后,再根据剩余存储空间确定向终端发送升级包的策略;其中,第一阈值>第二阈值>第三阈值>第四阈值。In this embodiment, the upgrade package may be configured by a plurality of sub-packets. The policy of determining that the upgrade package is sent to the terminal according to the remaining storage space may include: the value of the storage space required for the remaining storage space being greater than the upgrade package exceeds the second value. At the threshold, determining to send all the sub-packets of the upgrade package to the terminal at one time; determining that each sub-package of the upgrade package is combined when the remaining storage space is greater than the value of the storage space required for the upgrade package exceeds the third threshold and is less than the second threshold. , obtaining multiple combined packages, and sending multiple combined packets to the terminal multiple times; the remaining storage space is larger than the required storage package When the value of the storage space exceeds the fourth threshold and is less than the third threshold, it is determined that each sub-packet of the upgrade package is sequentially sent to the terminal; when the remaining storage space is less than the fourth threshold, the upgrade package is not sent to the terminal, and the remaining storage space is larger than After the fourth threshold, the policy for sending the upgrade package to the terminal is determined according to the remaining storage space; wherein, the first threshold>the second threshold>the third threshold>the fourth threshold.
在本实施例中,在制作升级包时将升级包分为若干个模块编译,每个模块都可以进行单独升级,也可以几个模块组合合并升级,也可以整体升级,也可以不同模块调换顺序进行升级,每个模块升级所用的时间和占用的空间大小都不同,由修改的内容的多少决定。制作升级包的的技术可以采用制作差分包的工具进行。In this embodiment, the upgrade package is divided into several modules when the upgrade package is created, and each module can be upgraded separately, or combined and upgraded by several modules, or upgraded as a whole, or different modules can be exchanged. To upgrade, each module is upgraded in different time and space, depending on how much content is modified. The technology for making upgrade packages can be done with tools that make differential packages.
服务器根据终端存储空间的状态可以将升级包分为若干阶段下载,服务器升级前在向终端推送获取终端剩余存储空间的信息的同时可以获知到终端当前版本号,然后根据该版本号发送对应的差分升级包。The server can download the upgrade package into several stages according to the state of the storage space of the terminal. Before the server upgrades, the current version number of the terminal can be obtained while the information about the remaining storage space of the terminal is obtained, and then the corresponding difference is sent according to the version number. Upgrade package.
步骤103:根据策略向终端发送升级包。Step 103: Send an upgrade package to the terminal according to the policy.
在本实施例中,所述的升级包具体可以是终端的系统升级包,基于此,在In this embodiment, the upgrade package may be a system upgrade package of the terminal, and based on this,
根据确定出的策略向终端发送升级包之前,服务器还需要获知终端的系统的版本号基于此,服务器向终端发送与版本号对应的升级包。Before sending the upgrade package to the terminal according to the determined policy, the server also needs to know the version number of the system of the terminal. Based on this, the server sends the upgrade package corresponding to the version number to the terminal.
在本实施例中,在获知终端的剩余存储空间之前,具体可以将升级包按照功能模块的划分生成多个子包。In this embodiment, before the remaining storage space of the terminal is known, the upgrade package may be specifically configured to generate a plurality of sub-packets according to the division of the functional modules.
在下载升级包之后,终端可以进行分段式更新下载的差分包。服务器接收到终端的剩余电量足够的情况下,安装之前会提示用户是否进行安装,经过同意后会在空闲时(晚上0:00之后用户不使用时)进行安装,具体安装方法可以包括如下几种处理:(1)、一次性下载完成整个升级包后在空闲时间进行一次性安装。 After downloading the upgrade package, the terminal can perform the segmented update download of the differential package. If the server receives enough power from the terminal, the user will be prompted to install it before installation. After the agreement is made, it will be installed when it is idle (when the user does not use it after 0:00 in the evening). The specific installation methods can include the following Processing: (1) One-time installation in the idle time after the entire upgrade package is completed.
(2)、组合下载的升级包,根据终端的剩余电量和空闲的时间进行分段式安装或一次性安装,安装完成后会立即删掉已安装的包,释放空间再进行下一段的下载和安装。(2), the downloaded upgrade package, according to the remaining power and idle time of the terminal for segmented installation or one-time installation, will immediately delete the installed package after the installation is completed, release the space and then download the next paragraph and installation.
(3)、依次下载的包,依次安装,选择闲时安装完成后即删掉当前阶段的包,再进行下一段的下载和安装。(3), download the packages in turn, install them in turn, select the package at the current stage after the installation is completed, and then download and install the next paragraph.
分段式安装升级包时,每安装完成一个包就给服务器返回一个这个包的标签,服务器对应的再给这个设备发送一个标识,标识哪段的差分包已经下载安装完成,哪段的差分包没有下载,下一次下载的时候再读取这个标识,下载其他的没有下载过的包。每下载完一个分段包后先进行安装,完成后删除已下载的升级包,再继续进行下一个升级包的下载。When installing the upgrade package in a segmented manner, each package completes a package and returns a label of the package to the server. The server then sends an identifier to the device to identify which segment of the differential package has been downloaded and installed, and which segment of the differential package No downloads, read this logo the next time you download, and download other packages that have not been downloaded. After each download of a segmented package, the installation is completed. After the completion, the downloaded upgrade package is deleted, and then the download of the next upgrade package is continued.
在升级包安装完成后,删除所有下载的文件,释放空间重启设备,在分段式升级时设备不进行重启,在安装完成所有分段升级包后再重启设备,升级完成恢复终端正常使用。After the installation of the upgrade package is complete, all downloaded files are deleted, and the device is freed to restart the device. The device is not restarted during the segmented upgrade. After all the segment upgrade packages are installed, the device is restarted.
第二实施例Second embodiment
本实施例的应用的场景可以是:某个用户在终端(例如,手机、平板电脑等)中存储大量照片和软件的情况下产生剩余空间不足,低于500M,用户也不知道该清理哪些东西,这个时候系统提示升级,本实施例提供的方法可以自动帮助用户清理手机的冗余空间,还可以在空闲时段分段下载和安装升级包。The scenario of the application of this embodiment may be: when a user stores a large amount of photos and software in a terminal (for example, a mobile phone, a tablet, etc.), the remaining space is insufficient, below 500 M, and the user does not know what to clean up. At this time, the system prompts to upgrade. The method provided in this embodiment can automatically help the user to clear the redundant space of the mobile phone, and can also download and install the upgrade package in the idle period.
本实施例在上述第一实施例的基础上,提供的另一种升级包下发方法,该方法与上述第一实施例所提供的方法的区别在于,该方法在获知终端的剩余存储空间后,还会自动对终端的存储空间进行清理,该方法在具备上述第一实施例中记载的步骤101至103的基础上,还包括: This embodiment is based on the foregoing first embodiment, and provides another upgrade package delivery method. The method is different from the method provided by the first embodiment in that the method knows the remaining storage space of the terminal. In addition, the storage space of the terminal is automatically cleaned. The method further includes: Steps 101 to 103 described in the foregoing first embodiment, the method further includes:
在获知终端的剩余存储空间之后,如果剩余存储空间小于第一预设值,则向终端下发自动清理冗余空间包,以使自动清理冗余空间包对终端的存储空间进行清理。具体地,服务器根据收到的终端的存储状况信息进行判断,如果剩余存储空间达到需要自动清理冗余空间的阈值(即上述第一预设值),则对终端设备进行自动冗余空间清理;如果没有达到该阈值,则不进行冗余空间清理。After the remaining storage space of the terminal is obtained, if the remaining storage space is smaller than the first preset value, the automatic cleanup of the redundant space package is sent to the terminal, so that the redundant space package is automatically cleaned to clean the storage space of the terminal. Specifically, the server determines, according to the stored storage status information of the terminal, if the remaining storage space reaches a threshold that needs to automatically clear the redundant space (that is, the first preset value), then the terminal device performs automatic redundant space cleaning; If this threshold is not reached, no redundant space cleanup is performed.
第一预设值设定具体细则具体可以是:终端剩余空间大于整个升级包大小时,不进行自动清理;终端剩余空间小于整个升级包大小时,则自动进行冗余空间清理。The specific details of the first preset value setting may be: when the remaining space of the terminal is larger than the size of the entire upgrade package, automatic cleaning is not performed; when the remaining space of the terminal is smaller than the size of the entire upgrade package, the redundant space is automatically cleared.
自动清理冗余空间的机制是在服务器端设置一个自动清理冗余空间的包,当判断剩余空间达到第一预设值时,则不下发该清理空间的包,如果剩余空间未达到该阈值,则服务器先下发该自动清理冗余空间的包,以使该包清理终端冗余空间。这个清理的包类似于一种自动清理垃圾的软件,包很小,几乎不占用手机空间,服务器先下发清理空间的包,终端下载完成后开始自动清理终端冗余空间。这个过程不用向用户发送任何请求和确认,将终端的冗余空间清理,整理碎片化空间,整个过程在后台自动进行,用户不用进行任何操作,在后台静默的将终端中的冗余信息清除,例如,图片、各种应用的缓存,浏览器缓存和整理碎片化的文件等,压缩文件使得手机空间利用率提高,提升手机运行速度和效率,关闭系统不必要的进程,不影响用户的使用。并且这个清理空间的包从升级包的下载开始到升级包完全安装完成前一直保留在终端中,以保证在整个安装过程中随时可以清理设备的垃圾文件,释放空间。在升级包的下载过程中,不再去提示用户存储空间不足,应该删除一些空间等消息,避免使用户做出困难的选择。这个过程只在空闲时(晚上0:00之后用户不使用时)在后台进行,不 会影响用户的正常使用,对于手机的系统文件及各个应用的运行都没有影响。The mechanism for automatically clearing the redundant space is to set a packet for automatically clearing the redundant space on the server side. When the remaining space reaches the first preset value, the packet of the cleanup space is not sent. If the remaining space does not reach the threshold, Then, the server first sends the packet that automatically cleans up the redundant space, so that the packet clears the terminal redundant space. This cleaned package is similar to a software that automatically cleans up garbage. The package is small and hardly occupies the space of the mobile phone. The server first sends out the cleanup space package, and the terminal automatically cleans up the terminal redundant space after the terminal download is completed. This process does not send any request and confirmation to the user, cleans up the redundant space of the terminal, and defragments the fragmented space. The whole process is automatically performed in the background. The user does not need to perform any operation, and silently clears the redundant information in the terminal in the background. For example, images, caching of various applications, browser caching, and defragmentation of files, etc., compressing files increases the space utilization of mobile phones, improves the speed and efficiency of mobile phones, and shuts down unnecessary processes of the system without affecting user usage. And the package of the cleanup space is kept in the terminal from the download of the upgrade package until the upgrade package is completely installed, so as to ensure that the junk files of the device can be cleaned and freed at any time during the entire installation process. During the download process of the upgrade package, the user is no longer prompted to have insufficient storage space, and some space and other messages should be deleted to avoid making the user make difficult choices. This process is only done in the background when it is idle (when the user is not using it after 0:00 pm), no It will affect the normal use of the user, and has no effect on the system files of the mobile phone and the operation of each application.
优选的,本实施例中涉及到的升级包同样可以包括多个子包,基于此,在本实施例中,根据剩余存储空间选择向终端发送升级包的策略,包括:Preferably, the upgrade package involved in the embodiment may also include multiple sub-packets. Based on this, in this embodiment, the policy for sending an upgrade package to the terminal according to the remaining storage space includes:
根据检测到的剩余存储空间确定一次性向终端发送升级包的所有子包,或分多次向终端发送升级包的所有子包;Determining, according to the detected remaining storage space, all the sub-packets of the upgrade package are sent to the terminal at one time, or sending all sub-packets of the upgrade package to the terminal in multiple times;
当分多次向终端发送升级包时,每当终端完成一次子包的下载之后,则获知终端的剩余存储空间,当获知终端的剩余存储空间超过第一阈值时通知自动清理冗余空间包对终端的存储空间进行清理。When the upgrade package is sent to the terminal multiple times, each time the terminal completes the download of the sub-package, the remaining storage space of the terminal is obtained, and when the remaining storage space of the terminal exceeds the first threshold, the automatic clearing of the redundant space packet is notified to the terminal. The storage space is cleaned up.
在本实施例中,在获知终端的剩余存储空间之前,具体可以将升级包按照功能模块的划分生成多个子包。In this embodiment, before the remaining storage space of the terminal is known, the upgrade package may be specifically configured to generate a plurality of sub-packets according to the division of the functional modules.
如图2所示,本实施例通过一个分段式下载升级包的例子(在该例子中各子包未差分升级包),来对分段式下载升级包的方法进行进一步说明:As shown in FIG. 2, this embodiment further describes the method of downloading the upgrade package in a segmented manner by using an example of a segmented download upgrade package (in this example, each sub-package has no differential upgrade package):
(1)、若剩余存储空间比整个升级包的大小大1G,远远大于升级包大小,则进行一次性下载整个升级包。(1) If the remaining storage space is 1G larger than the size of the entire upgrade package, which is much larger than the upgrade package size, download the entire upgrade package at one time.
(2)、若剩余存储空间比升级包的大小大500M-1G,则可以进行自由组合的分段式下载,服务器根据终端的电量,不同模块差分升级包的大小进行两个差分升级包、三个差分升级包组合下载升级包。(2) If the remaining storage space is 500M-1G larger than the size of the upgrade package, the segmented download can be freely combined. The server performs two differential upgrade packages according to the power of the terminal and the size of the differential upgrade package of the module. A differential upgrade package is combined to download the upgrade package.
(3)、若剩余存储空间比升级包的大小大100M-500M,则进行一个一个分段式下载,清理存储空间后,根据编译的不同模块的差分大小,从大到小依次下载。(3) If the remaining storage space is larger than the size of the upgrade package by 100M-500M, perform a segmented download. After cleaning the storage space, download the files from the largest to the smallest according to the difference size of the compiled modules.
(4)、若清理空间后终端剩余存储空间比升级包大小低于100M,则暂时不进行下载升级包,等待存储空间满足升级要求后再开始下载升级包。(4) If the remaining storage space of the terminal is less than 100M after the space is cleaned, the upgrade package will not be downloaded temporarily, and the upgrade package will be downloaded after waiting for the storage space to meet the upgrade requirements.
如图2所示,在本实施例中,下载升级包,对升级包进行安装以后后 续处理的方法与上述第一实施例中所述的方法相同,在此不再赘述。As shown in FIG. 2, in this embodiment, after downloading the upgrade package and installing the upgrade package, The method of the subsequent processing is the same as the method described in the first embodiment above, and details are not described herein again.
分段式下载升级包主要是解决升级包太大,一次性下载完成整个升级包后才进行安装占用的空间太大并且整个升级流程耗时过长耗电过多的问题。The segmented download upgrade package mainly solves the problem that the upgrade package is too large, and the space occupied by the installation is too large after the entire upgrade package is completed and the entire upgrade process takes too long and consumes too much power.
服务器根据返回的存储空间情况进行分段式下载升级包,在下载升级包的整个过程中清理空间的包一直在终端中,每次下载升级包前都可检测一次剩余空间,如果达到阈值则在后台进行清理。每一个分段升级包的下载对于间隔时间没有限制,可以下载完安装后再继续下载另一段,也可以下载安装完这一段,间隔几小时或几天再下载另一段包,这个过程是在经过用户授权许可时触发。并且一次性下载的包最小,分段式下载的升级包加起来的总和会大于一次性下载的包大小。分段式下载的好处就在于每一次占用的空间都很小,耗电少,耗时少,并且使用的内存空间和存储空间小。The server downloads the upgrade package in a segmented manner according to the returned storage space. During the entire process of downloading the upgrade package, the package for cleaning the space is always in the terminal. The remaining space can be detected before each download of the upgrade package. If the threshold is reached, Clean up in the background. There is no limit to the interval for downloading each segment upgrade package. You can download another segment after downloading the installation. You can also download and install this segment. After another few hours or days, download another package. This process is passed. Triggered when the user authorizes the license. And the one-time download package is the smallest, and the sum of the segmented download upgrade packages will be larger than the one-time download package size. The advantage of segmented downloads is that each space is small, consumes less power, takes less time, and uses less memory and storage space.
主要是在升级包中加一个智能清理设备冗余空间的包,主要用于在下载升级包开始前先自动清理终端的一些缓存及空文件夹等冗余空间。由于现在的软件一般都是判断终端存储空间不足就暂停进程或提醒用户自己清理空间,但是用户往往不知道该清楚哪些内容或通过扫描工具后再清理空间。而本发明的这种智能清理设备冗余空间的升级包功能可以不需要其他工具来扫描应该清理哪些内容或让用户自己选择,而是在下载开始,后台就智能的主动帮用户清理掉设备中的缓存文件,提升可用空间,不影响用户的使用。Mainly in the upgrade package to add a smart cleaning device redundant space package, mainly used to automatically clean up some of the terminal's cache and empty folders and other redundant space before downloading the upgrade package. Since the current software generally judges that the terminal has insufficient storage space, it suspends the process or reminds the user to clean up the space, but the user often does not know which content to clear or clear the space after scanning the tool. The upgrade package function of the redundant space of the smart cleaning device of the present invention may not need other tools to scan which content should be cleaned or let the user select it, but at the beginning of the download, the background intelligently helps the user to clean up the device. The cache file enhances the available space and does not affect the user's use.
升级包可分段式下载并分段式安装,主要是在下载时可以分段下载升级包,与断点续传不同的是,本发明可以下载一部分升级包后安装一部分升级包,然后删掉已安装的升级包,在网络连续和空间足够的时候可以一 次性下载完成安装,当网络环境不连续或空间不足够的时候可以根据空间或网络环境下载一部分进行安装,安装完成这部分更新后删除已下载的升级包,等待下一次网络环境或空间足够时再继续分段式下载并安装。这样可以提高更新的效率,且在网络中断时先进行分段安装,不用让这部分升级包一直占用设备空间,并且对于空间的要求和电量的要求降低,安装总时间不变,但分段安装可以在每次闲时占用一小部分时间就可以安装完成,不用占用一整片时间去更新系统,碎片化安装提高了安装效率和节省了电量。The upgrade package can be downloaded in segments and installed in segments. The upgrade package can be downloaded in stages when downloading. Different from the breakpoint transmission, the present invention can download a part of the upgrade package and then install a part of the upgrade package, and then delete the package. The installed upgrade package can be used when the network is continuous and the space is sufficient. The secondary download completes the installation. When the network environment is not continuous or the space is insufficient, you can download a part according to the space or network environment to install. After the installation completes this part of the update, delete the downloaded upgrade package and wait for the next network environment or space. Continue to download and install in sections. This can improve the efficiency of the update, and install the segmentation first when the network is interrupted, so that this part of the upgrade package does not occupy the device space, and the space requirements and power requirements are reduced, the total installation time is unchanged, but the segmentation is installed. It can be installed in a small amount of time each time it is idle, without taking up a whole period of time to update the system. Fragmented installation improves installation efficiency and saves power.
通过本实施例中提供的方法,一方面可以自动清理设备中的冗余空间,一方面可以降低升级过程中所需的存储空间要求和电量的要求,提高升级效率。On the one hand, the redundant space in the device can be automatically cleaned on the one hand, and the storage space requirement and the power requirement required in the upgrade process can be reduced on the one hand, and the upgrade efficiency is improved.
本实施例采用分段式升级和安装升级包对终端的电量几乎没有要求,正常使用终端就可以进行。安装过程耗时也较短,在分段下载升级包后已经将升级包分段安装了,只需要最后安装完重启一次终端即可;在现有的终端升级方式中,当终端的存储空间不足时,现有的升级方式会提示用户删除一些文件,获取一些存储空间后才能下载升级包,而该发明可以智能清理设备的冗余空间,并且分段式升级对于空间要求很低,不会占用手机很多空间,下载一部分升级一部分就安装,然后删除这部分,占用空间少,升级效率高;本实施例中提供的方法主要是减少设备中的垃圾文件,不用让用户做出艰难的选择,自动清理冗余文件而不影响终端的正常使用。分段式下载和升级主要可以降低升级所需要空间和电量要求,分段下载分段安装都在后台进行耗时较短,只需要最后完成所有安装时重启一下终端即可,提高了升级的效率,提升了用户体验。In this embodiment, the segmented upgrade and the installation and upgrade package have almost no requirements on the power of the terminal, and the terminal can be used normally. The installation process takes a relatively short time. After the upgrade package is downloaded, the upgrade package is installed in sections. You only need to restart the terminal once after the installation. In the existing terminal upgrade mode, when the terminal has insufficient storage space. The existing upgrade method prompts the user to delete some files and obtain some storage space before downloading the upgrade package. The invention can intelligently clean the redundant space of the device, and the segmentation upgrade has low space requirements and does not occupy. There is a lot of space in the mobile phone. Some parts of the upgrade are downloaded, and then the part is deleted. The space is small and the upgrade efficiency is high. The method provided in this embodiment mainly reduces the junk files in the device, and does not require the user to make difficult choices. Clean up redundant files without affecting the normal use of the terminal. Segmented download and upgrade can mainly reduce the space and power requirements for the upgrade. The segment download and segmentation installation takes less time in the background, and only needs to restart the terminal when all the installations are completed, which improves the efficiency of the upgrade. , improved user experience.
此外,在上述第一实施例以及第二实施例的基础上,还可以实现将用 户的照片、应用等不太常用的软件和文件上传到云端的方式减少存储空间的利用,在设备中只保留缓存文件,这样占用的空间也少,升级完成后再将上传到云端的文件下载下来。分段式升级也可以通过下载升级包时提示用户有哪些模块有更新,用户可以选择性的进行升级,之后再选择进行其他升级或只升级一部分功能,提示用户,由用户选择部分升级。In addition, based on the above-described first embodiment and the second embodiment, it is also possible to implement The way that the less-used software and files of the user's photos and applications are uploaded to the cloud reduces the use of the storage space. Only the cache file is reserved in the device, so that the space occupied is small, and the file uploaded to the cloud is downloaded after the upgrade is completed. Come down. The segmented upgrade can also prompt the user which modules are updated when downloading the upgrade package. The user can selectively upgrade, and then select other upgrades or only upgrade some functions, prompt the user, and the user selects partial upgrade.
第三实施例Third embodiment
本实施例提供了一种升级包下发装置,图3是该装置的结构框图,如图3所示,该装置30包括如下组成部分,包括:This embodiment provides an upgrade package delivery device, and FIG. 3 is a structural block diagram of the device. As shown in FIG. 3, the device 30 includes the following components, including:
第一获知模块31,设置为获知终端的剩余存储空间;The first learning module 31 is configured to learn the remaining storage space of the terminal;
确定模块32,设置为根据剩余存储空间确定向终端发送升级包的策略;The determining module 32 is configured to determine a policy for sending an upgrade package to the terminal according to the remaining storage space;
发送模块33,设置为根据策略向终端发送升级包。The sending module 33 is configured to send the upgrade package to the terminal according to the policy.
在本发明实施例中,上述装置30还可以包括:下发模块,设置为在获知终端的剩余存储空间之后,如果剩余存储空间小于第一预设值,则向终端下发自动清理冗余空间包,以使自动清理冗余空间包对终端的存储空间进行清理。In the embodiment of the present invention, the device 30 may further include: a sending module, configured to: after the remaining storage space of the terminal is learned, if the remaining storage space is smaller than the first preset value, automatically clear the redundant space to the terminal The package is used to automatically clean up the redundant space package to clean up the storage space of the terminal.
在本实施例中,升级包具体可以包括多个子包,基于此,上述确定模块32具体可以包括,清理单元,设置为当分多次向终端发送升级包时,每当终端完成一次子包的下载之后,则获知终端的剩余存储空间,当获知终端的剩余存储空间超过第一阈值时通知自动清理冗余空间包对终端的存储空间进行清理。In this embodiment, the upgrade package may specifically include multiple sub-packets. Based on the above, the determining module 32 may specifically include: a clearing unit, configured to perform the download of the sub-package each time the terminal sends the upgrade package to the terminal multiple times. After that, the remaining storage space of the terminal is learned, and when the remaining storage space of the terminal exceeds the first threshold, the automatic cleaning of the redundant space packet is notified to clean the storage space of the terminal.
上述确定模块32具体还可以包括:The determining module 32 may further include:
第一确定单元,设置为在剩余存储空间大于升级包所需的存储空间的值超过第二阈值时,确定一次性向终端发送升级包的所有子包; The first determining unit is configured to: when the remaining storage space is greater than the value of the storage space required for the upgrade package exceeds the second threshold, determine to send all the sub-packets of the upgrade package to the terminal at one time;
第二确定单元,设置为在剩余存储空间大于升级包所需的存储空间的值超过第三阈值且小于第二阈值时,确定将升级包的各子包进行组合,得到多个组合包,将多个组合包通过多次发送至终端;a second determining unit, configured to determine, when the value of the storage space required for the remaining storage space is greater than the third threshold and less than the second threshold, to determine that each sub-package of the upgrade package is combined to obtain multiple combined packages, Multiple combined packets are sent to the terminal multiple times;
第三确定单元,设置为在剩余存储空间大于升级包所需的存储空间的值超过第四阈值且小于第三阈值时,确定将升级包的各子包依次发送至终端;a third determining unit, configured to: when the remaining storage space is greater than a value of the storage space required for the upgrade package exceeds a fourth threshold and is less than a third threshold, determining to send each sub-packet of the upgrade package to the terminal in sequence;
第四确定单元,设置为在剩余存储空间小于第四阈值时,不向终端发送升级包,待剩余存储空间大于第四阈值之后,再根据剩余存储空间确定向终端发送升级包的策略;The fourth determining unit is configured to: when the remaining storage space is less than the fourth threshold, send the upgrade package to the terminal, and after the remaining storage space is greater than the fourth threshold, determine a policy for sending the upgrade package to the terminal according to the remaining storage space;
其中,第一阈值>第二阈值>第三阈值>第四阈值。Wherein, the first threshold>the second threshold>the third threshold>the fourth threshold.
在本发明实施例中,上述装置30还可以包括:第二获知模块,设置为根据策略向终端发送升级包之前,获知终端的系统的版本号;发送模块具体设置为:向终端发送与版本号对应的升级包。以及生成模块,设置为在获知终端的剩余存储空间之前,将升级包按照功能模块的划分生成多个子包;告知模块,设置为根据策略向终端发送升级包之前,告知终端升级包中更新的功能模块。In the embodiment of the present invention, the device 30 may further include: a second learning module, configured to obtain a version number of the system of the terminal before sending the upgrade package to the terminal according to the policy; and the sending module is specifically configured to: send the version number to the terminal Corresponding upgrade package. And generating a module, configured to generate the plurality of sub-packets according to the division of the function module before knowing the remaining storage space of the terminal; and informing the module, setting the function of updating the update package in the upgrade package before sending the upgrade package to the terminal according to the policy Module.
第四实施例Fourth embodiment
本发明的实施例还提供了一种存储介质,该存储介质包括存储的程序,其中,上述程序运行时执行上述任一项所述的方法。Embodiments of the present invention also provide a storage medium including a stored program, wherein the program described above executes the method of any of the above.
可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:Optionally, in the embodiment, the foregoing storage medium may be configured to store program code for performing the following steps:
S1,获知终端的剩余存储空间;S1, the remaining storage space of the terminal is known;
S2,根据剩余存储空间确定向终端发送升级包的策略,升级包包括多 个子包,策略包括根据检测到的剩余存储空间确定一次性向终端发送升级包的所有子包,或分多次向终端发送升级包的所有子包;S2, determining a policy for sending an upgrade package to the terminal according to the remaining storage space, where the upgrade package includes multiple Sub-packages, the policy includes determining, according to the detected remaining storage space, all the sub-packets of the upgrade package to be sent to the terminal at one time, or sending all sub-packages of the upgrade package to the terminal in multiple times;
S3,根据策略向终端发送升级包。S3. Send an upgrade package to the terminal according to the policy.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in the embodiment, the foregoing storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), and a Random Access Memory (RAM). A variety of media that can store program code, such as a hard disk, a disk, or an optical disk.
本发明的实施例还提供了一种处理器,该处理器用于运行程序,其中,该程序运行时执行上述任一项方法中的步骤。Embodiments of the present invention also provide a processor for running a program, wherein the program is executed to perform the steps of any of the above methods.
可选地,在本实施例中,上述程序用于执行以下步骤:Optionally, in this embodiment, the foregoing program is used to perform the following steps:
S1,获知终端的剩余存储空间;S1, the remaining storage space of the terminal is known;
S2,根据剩余存储空间确定向终端发送升级包的策略,升级包包括多个子包,策略包括根据检测到的剩余存储空间确定一次性向终端发送升级包的所有子包,或分多次向终端发送升级包的所有子包;S2. Determine, according to the remaining storage space, a policy for sending an upgrade package to the terminal, where the upgrade package includes multiple sub-packets, and the policy includes: determining, according to the detected remaining storage space, all the sub-packets of the upgrade package to be sent to the terminal at one time, or sending the sub-packets to the terminal multiple times. Upgrade all sub-packages of the package;
S3,根据策略向终端发送升级包。S3. Send an upgrade package to the terminal according to the policy.
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。For example, the specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。 It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the scope of the present invention are intended to be included within the scope of the present invention.
工业实用性Industrial applicability
基于本发明实施例提供的上述技术方案,将升级包划分或多个子包,在向终端下发升级包的过程中,可以根据终端剩余存储空间的大小,确定一次性向终端发送升级包的所有子包或分多次将升级包的子包发送至终端,实现了根据终端自身剩余存储空间分段下发升级包的目的,使得用户无需手动删除文件来获取存储空间,方便了用户操作,提高了用户体验。 In the above technical solution provided by the embodiment of the present invention, the upgrade package is divided into multiple sub-packets. In the process of delivering the upgrade package to the terminal, all the sub-packages of the upgrade package may be sent to the terminal at one time according to the size of the remaining storage space of the terminal. The sub-package of the upgrade package is sent to the terminal multiple times, and the purpose of delivering the upgrade package according to the remaining storage space of the terminal is achieved, so that the user does not need to manually delete the file to obtain the storage space, which is convenient for the user to operate and improves. user experience.

Claims (14)

  1. 一种升级包下发方法,包括:An upgrade package delivery method includes:
    获知终端的剩余存储空间;Know the remaining storage space of the terminal;
    根据所述剩余存储空间确定向所述终端发送升级包的策略,所述升级包包括多个子包,所述策略包括根据检测到的剩余存储空间确定一次性向所述终端发送所述升级包的所有子包,或分多次向所述终端发送所述升级包的所有子包;Determining, according to the remaining storage space, a policy for sending an upgrade package to the terminal, where the upgrade package includes multiple sub-packets, and the policy includes determining to send all the upgrade packages to the terminal at a time according to the detected remaining storage space. Sub-packet, or send all sub-packets of the upgrade package to the terminal in multiple times;
    根据所述策略向所述终端发送升级包。Sending an upgrade package to the terminal according to the policy.
  2. 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1 wherein the method further comprises:
    在获知终端的剩余存储空间之后,如果所述剩余存储空间小于第一预设值,则向所述终端下发自动清理冗余空间包,以使所述自动清理冗余空间包对所述终端的存储空间进行清理。After the remaining storage space of the terminal is obtained, if the remaining storage space is smaller than the first preset value, the automatic cleanup redundant space package is sent to the terminal, so that the automatic cleanup redundant space package is used to the terminal. The storage space is cleaned up.
  3. 根据权利要求2所述的方法,其中,所述方法还包括:The method of claim 2, wherein the method further comprises:
    当分多次向所述终端发送所述升级包时,每当所述终端完成一次所述子包的下载之后,则获知所述终端的剩余存储空间,当获知所述终端的剩余存储空间超过所述第一阈值时通知所述自动清理冗余空间包对终端的存储空间进行清理。When the upgrade package is sent to the terminal multiple times, each time the terminal completes the download of the sub-package, the remaining storage space of the terminal is known, and when the remaining storage space of the terminal is learned, When the first threshold is described, the automatic cleaning redundant space packet is notified to clean the storage space of the terminal.
  4. 根据权利要求1所述的方法,其中,所述根据所述剩余存储空间确定向所述终端发送升级包的策略,包括:The method of claim 1, wherein the determining, according to the remaining storage space, a policy for sending an upgrade package to the terminal comprises:
    在所述剩余存储空间大于所述升级包所需的存储空间的值超过第二阈值时,确定一次性向所述终端发送所述升级包的所有子包;And determining, when the value of the remaining storage space that is greater than the storage space required by the upgrade package, exceeds a second threshold, sending, to the terminal, all the sub-packets of the upgrade package;
    在所述剩余存储空间大于所述升级包所需的存储空间的值超过第三阈值且小于所述第二阈值时,确定将所述升级包的各子包进行组合,得到多个组合包,将所述多个组合包通过多次发送至所述终端;When the value of the storage space required for the remaining storage space is greater than the third threshold and less than the second threshold, determining to combine the sub-packets of the upgrade package to obtain multiple combined packages. Transmitting the plurality of combined packets to the terminal by multiple times;
    在所述剩余存储空间大于所述升级包所需的存储空间的值超过第四 阈值且小于所述第三阈值时,确定将所述升级包的各子包由大至小依次发送至所述终端;The value of the storage space required for the remaining storage space is greater than the storage space exceeds the fourth When the threshold is smaller than the third threshold, it is determined that each sub-packet of the upgrade package is sequentially sent to the terminal from large to small;
    在所述剩余存储空间小于所述第四阈值时,不向终端发送所述升级包,待所述剩余存储空间大于第四阈值之后,再根据所述剩余存储空间确定向所述终端发送升级包的策略;When the remaining storage space is smaller than the fourth threshold, the upgrade package is not sent to the terminal, and after the remaining storage space is greater than the fourth threshold, determining to send the upgrade package to the terminal according to the remaining storage space. Strategy
    其中,第一阈值>第二阈值>第三阈值>第四阈值。Wherein, the first threshold>the second threshold>the third threshold>the fourth threshold.
  5. 根据权利要求1所述的方法,其中,所述方法还包括:The method of claim 1 wherein the method further comprises:
    根据所述策略向所述终端发送升级包之前,获知所述终端的系统的版本号;Knowing the version number of the system of the terminal before sending the upgrade package to the terminal according to the policy;
    所述根据所述策略向所述终端发送升级包,包括:Sending the upgrade package to the terminal according to the policy includes:
    向所述终端发送与所述版本号对应的升级包。Sending an upgrade package corresponding to the version number to the terminal.
  6. 根据权利要求1至5任意一项所述的方法,其中,所述方法还包括:The method according to any one of claims 1 to 5, wherein the method further comprises:
    在获知终端的剩余存储空间之前,将所述升级包按照功能模块的划分生成多个子包;Before the remaining storage space of the terminal is learned, the upgrade package generates multiple sub-packets according to the division of the function module;
    根据所述策略向所述终端发送升级包之前,告知所述终端所述升级包中更新的功能模块。Before sending the upgrade package to the terminal according to the policy, the terminal is notified of the updated function module in the upgrade package.
  7. 一种升级包下发装置,包括:An upgrade package delivery device, comprising:
    第一获知模块,设置为获知终端的剩余存储空间;The first learning module is configured to learn the remaining storage space of the terminal;
    确定模块,设置为根据所述剩余存储空间确定向所述终端发送升级包的策略,所述升级包包括多个子包,所述策略包括根据检测到的剩余存储空间确定一次性向所述终端发送所述升级包的所有子包,或分多次向所述终端发送所述升级包的所有子包;a determining module, configured to determine, according to the remaining storage space, a policy for sending an upgrade package to the terminal, where the upgrade package includes multiple sub-packets, and the policy includes determining to send the terminal to the terminal at a time according to the detected remaining storage space. All sub-packets of the upgrade package are sent, or all sub-packets of the upgrade package are sent to the terminal in multiple times;
    发送模块,设置为根据所述策略向所述终端发送升级包。 And a sending module, configured to send an upgrade package to the terminal according to the policy.
  8. 根据权利要求7所述的装置,其中,所述装置还包括:The apparatus of claim 7 wherein said apparatus further comprises:
    下发模块,设置为在获知终端的剩余存储空间之后,如果所述剩余存储空间小于第一预设值,则向所述终端下发自动清理冗余空间包,以使所述自动清理冗余空间包对所述终端的存储空间进行清理。And the issuing module is configured to: after the remaining storage space of the terminal is learned, if the remaining storage space is smaller than the first preset value, automatically clear the redundant space package to the terminal, so that the automatic cleaning redundancy is performed. The space package cleans up the storage space of the terminal.
  9. 根据权利要求8所述的装置,其中,所述装置还包括:The apparatus of claim 8 wherein said apparatus further comprises:
    清理模块,设置为当分多次向所述终端发送所述升级包时,每当所述终端完成一次所述子包的下载之后,则获知所述终端的剩余存储空间,当获知所述终端的剩余存储空间超过所述第一阈值时通知所述自动清理冗余空间包对终端的存储空间进行清理。a clearing module, configured to: when the terminal sends the upgrade package to the terminal multiple times, after the terminal completes downloading the sub-package once, the remaining storage space of the terminal is learned, when the terminal is known When the remaining storage space exceeds the first threshold, the automatic cleaning redundant space packet is notified to clean the storage space of the terminal.
  10. 根据权利要求7所述的装置,其中,所述确定模块,包括:The apparatus of claim 7, wherein the determining module comprises:
    第一确定单元,设置为在所述剩余存储空间大于所述升级包所需的存储空间的值超过第二阈值时,确定一次性向所述终端发送所述升级包的所有子包;a first determining unit, configured to: when the value of the storage space required for the remaining storage space greater than the upgrade package exceeds a second threshold, determine to send all sub-packets of the upgrade package to the terminal at one time;
    第二确定单元,设置为在所述剩余存储空间大于所述升级包所需的存储空间的值超过第三阈值且小于所述第二阈值时,确定将所述升级包的各子包进行组合,得到多个组合包,将所述多个组合包通过多次发送至所述终端;a second determining unit, configured to determine to combine the sub-packets of the upgrade package when the value of the storage space required for the remaining storage space is greater than the third threshold and less than the second threshold Obtaining a plurality of combined packets, and transmitting the plurality of combined packets to the terminal by multiple times;
    第三确定单元,设置为在所述剩余存储空间大于所述升级包所需的存储空间的值超过第四阈值且小于所述第三阈值时,确定将所述升级包的各子包由大至小依次发送至所述终端;a third determining unit, configured to: when the value of the storage space required for the remaining storage space is greater than the fourth threshold and less than the third threshold, determine that each sub-packet of the upgrade package is larger Sent to the terminal in sequence;
    第四确定单元,设置为在所述剩余存储空间小于所述第四阈值时,不向终端发送所述升级包,待所述剩余存储空间大于第四阈值之后,再根据所述剩余存储空间确定向所述终端发送升级包的策略;a fourth determining unit, configured to: when the remaining storage space is smaller than the fourth threshold, not sending the upgrade package to the terminal, and after the remaining storage space is greater than a fourth threshold, determining, according to the remaining storage space, Sending a policy of upgrading the package to the terminal;
    其中,第一阈值>第二阈值>第三阈值>第四阈值。 Wherein, the first threshold>the second threshold>the third threshold>the fourth threshold.
  11. 根据权利要求7所述的装置,其中,所述装置还包括:The apparatus of claim 7 wherein said apparatus further comprises:
    第二获知模块,设置为根据所述策略向所述终端发送升级包之前,获知所述终端的系统的版本号;a second learning module, configured to learn the version number of the system of the terminal before sending the upgrade package to the terminal according to the policy;
    所述发送模块具体设置为:向所述终端发送与所述版本号对应的升级包。The sending module is specifically configured to: send an upgrade package corresponding to the version number to the terminal.
  12. 根据权利要求7至11所述的装置,其中,所述装置还包括:The apparatus according to any one of claims 7 to 11, wherein the apparatus further comprises:
    生成模块,设置为在获知终端的剩余存储空间之前,将所述升级包按照功能模块的划分生成多个子包;Generating a module, configured to generate the plurality of sub-packets according to the division of the function module before learning the remaining storage space of the terminal;
    告知模块,设置为根据所述策略向所述终端发送升级包之前,告知所述终端所述升级包中更新的功能模块。The notification module is configured to notify the terminal of the updated function module in the upgrade package before sending the upgrade package to the terminal according to the policy.
  13. 一种存储介质,其中,所述存储介质包括存储的程序,其中,所述程序运行时执行权利要求1至6中任一项所述的方法。A storage medium, wherein the storage medium comprises a stored program, wherein the program is executed to perform the method of any one of claims 1 to 6.
  14. 一种处理器,其中,所述处理器用于运行程序,其中,所述程序运行时执行权利要求1至6中任一项所述的方法。 A processor, wherein the processor is operative to run a program, wherein the program is operative to perform the method of any one of claims 1 to 6.
PCT/CN2017/091115 2016-10-25 2017-06-30 Method and apparatus for issuing upgrade package WO2018076755A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610938733.9 2016-10-25
CN201610938733.9A CN107992312A (en) 2016-10-25 2016-10-25 A kind of upgrade package delivery method and device

Publications (1)

Publication Number Publication Date
WO2018076755A1 true WO2018076755A1 (en) 2018-05-03

Family

ID=62023039

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/091115 WO2018076755A1 (en) 2016-10-25 2017-06-30 Method and apparatus for issuing upgrade package

Country Status (2)

Country Link
CN (1) CN107992312A (en)
WO (1) WO2018076755A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110221856A (en) * 2019-06-25 2019-09-10 努比亚技术有限公司 A kind of wearable device upgrade method, wearable device and storage medium
CN110716727A (en) * 2019-09-02 2020-01-21 领翌技术(横琴)有限公司 Software upgrading method and system
CN111190626A (en) * 2019-12-30 2020-05-22 无锡小天鹅电器有限公司 Control method and control device of household appliance and household appliance
CN112398666A (en) * 2019-08-13 2021-02-23 中兴通讯股份有限公司 Software differential upgrading method, device, equipment and storage medium
WO2023045090A1 (en) * 2021-09-24 2023-03-30 成都市卡蛙科技有限公司 Terminal state-based firmware upgrade method

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110502256A (en) * 2018-05-18 2019-11-26 佛山市顺德区美的电热电器制造有限公司 A kind of method for upgrading software, terminal and storage medium
CN109947450B (en) * 2019-03-19 2023-03-17 深圳创维-Rgb电子有限公司 System file upgrading method and device, mobile terminal and readable storage medium
CN110209420A (en) * 2019-08-01 2019-09-06 潍柴动力股份有限公司 A kind of method and device updating bootstrap loader
CN112445507B (en) * 2019-09-05 2024-06-11 阿里巴巴集团控股有限公司 Equipment upgrading method and device
CN110597595B (en) * 2019-09-30 2020-09-25 腾讯科技(深圳)有限公司 Method for providing multi-language information, method for configuring multi-language information, device, equipment and medium
CN112861047B (en) * 2021-01-27 2022-04-15 创盛视联数码科技(北京)有限公司 Document playback method and system for online platform
CN112988191A (en) * 2021-03-17 2021-06-18 摩登汽车有限公司 Vehicle over-the-air download upgrade management system and method
CN113343915A (en) * 2021-06-30 2021-09-03 成都商汤科技有限公司 Information processing method, system, device, computer equipment and storage medium
CN115361347A (en) * 2022-08-18 2022-11-18 山东新华医疗器械股份有限公司 Communication method, device and medium of CT (computed tomography) equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020170050A1 (en) * 2001-03-14 2002-11-14 General Instrument Corporation Methods and apparatus for upgrading firmware in an embedded system
CN101257509A (en) * 2008-03-25 2008-09-03 深圳市戴文科技有限公司 Method, apparatus as well as mobile terminal equipment of wireless downloading
CN104991793A (en) * 2015-06-15 2015-10-21 上海海漾软件技术有限公司 Method, device and system used for application program subpackage
CN105045640A (en) * 2015-08-27 2015-11-11 北京金山安全软件有限公司 Software upgrading method and device and intelligent equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102215479B (en) * 2011-06-22 2018-03-13 中兴通讯股份有限公司 AKU is downloaded and method, server and the system of installation
CN105573770B (en) * 2014-10-14 2021-02-05 腾讯科技(深圳)有限公司 Application program downloading and installing method and device
CN105721941B (en) * 2016-01-18 2019-08-13 贵阳海信电子有限公司 The aerial downloading upgrade control method and device of cloud TV
CN105843656B (en) * 2016-04-22 2020-12-01 Tcl科技集团股份有限公司 System upgrading method for insufficient disk space, terminal equipment and server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020170050A1 (en) * 2001-03-14 2002-11-14 General Instrument Corporation Methods and apparatus for upgrading firmware in an embedded system
CN101257509A (en) * 2008-03-25 2008-09-03 深圳市戴文科技有限公司 Method, apparatus as well as mobile terminal equipment of wireless downloading
CN104991793A (en) * 2015-06-15 2015-10-21 上海海漾软件技术有限公司 Method, device and system used for application program subpackage
CN105045640A (en) * 2015-08-27 2015-11-11 北京金山安全软件有限公司 Software upgrading method and device and intelligent equipment

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110221856A (en) * 2019-06-25 2019-09-10 努比亚技术有限公司 A kind of wearable device upgrade method, wearable device and storage medium
CN110221856B (en) * 2019-06-25 2024-03-19 努比亚技术有限公司 Wearable device upgrading method, wearable device and storage medium
CN112398666A (en) * 2019-08-13 2021-02-23 中兴通讯股份有限公司 Software differential upgrading method, device, equipment and storage medium
CN112398666B (en) * 2019-08-13 2024-04-30 中兴通讯股份有限公司 Software differential upgrading method, device, equipment and storage medium
CN110716727A (en) * 2019-09-02 2020-01-21 领翌技术(横琴)有限公司 Software upgrading method and system
CN110716727B (en) * 2019-09-02 2023-07-21 领翌技术(横琴)有限公司 Software upgrading method and system
CN111190626A (en) * 2019-12-30 2020-05-22 无锡小天鹅电器有限公司 Control method and control device of household appliance and household appliance
WO2023045090A1 (en) * 2021-09-24 2023-03-30 成都市卡蛙科技有限公司 Terminal state-based firmware upgrade method

Also Published As

Publication number Publication date
CN107992312A (en) 2018-05-04

Similar Documents

Publication Publication Date Title
WO2018076755A1 (en) Method and apparatus for issuing upgrade package
US10268471B2 (en) Method for upgrading terminal system, terminal, and system
CN100411341C (en) Parallel downloading method and terminal
US20170206079A1 (en) Method and Device for Upgrading Software
CN100463549C (en) Method for down loading network resource using mobile terminal
EP2919440B1 (en) Advertisement processing method and device
EP2933723A1 (en) Method, device and terminal equipment for cleaning up memory
WO2020140634A1 (en) Storage space optimization method and device, computer apparatus, and storage medium
CN110913015A (en) Distributed quick installation method, system and medium for cloud mobile phone APP
US20150271297A1 (en) Broadcasting management information using fountain codes
CN113961346A (en) Data cache management and scheduling method and device, electronic equipment and storage medium
CN105786539B (en) File downloading method and device
CN111142905A (en) OTA (over-the-air) upgrading method, OTA server and OTA upgrading system
EP3506599B1 (en) Method for synchronizing contact information, apparatus and medium
CN108762983B (en) Multimedia data recovery method and device
CN101170442B (en) Software online upgrade method and system
CN116541047A (en) Firmware upgrading method, device, computer equipment and computer readable storage medium
CN101917458B (en) Method and device for sending network bootstrap program to client
CN104348646A (en) Configuration data processing method, device and system
CN109962941B (en) Communication method, device and server
US20040148597A1 (en) System for optimizing distribution of information employing a universal dictionary
CN102299961A (en) Method for Femto equipment to realize sharing network resources and Femto equipment
CN103368988B (en) resource sharing method, system and device
CN110740154A (en) streaming media service upgrading method, device and equipment
CN102130786B (en) Method and device for updating characteristics of single board

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17866302

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17866302

Country of ref document: EP

Kind code of ref document: A1