WO2016183951A1 - System upgrade method and terminal - Google Patents

System upgrade method and terminal Download PDF

Info

Publication number
WO2016183951A1
WO2016183951A1 PCT/CN2015/087258 CN2015087258W WO2016183951A1 WO 2016183951 A1 WO2016183951 A1 WO 2016183951A1 CN 2015087258 W CN2015087258 W CN 2015087258W WO 2016183951 A1 WO2016183951 A1 WO 2016183951A1
Authority
WO
WIPO (PCT)
Prior art keywords
downloaded
storage partition
priority
upgrade package
partition
Prior art date
Application number
PCT/CN2015/087258
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 WO2016183951A1 publication Critical patent/WO2016183951A1/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

Definitions

  • the present invention relates to an upgrade technology, and in particular, to a system upgrade method and a terminal.
  • the embodiments of the present invention are intended to provide a system upgrade method and a terminal, which at least solve the problems existing in the prior art.
  • a system upgrade method includes:
  • the upgrade package is downloaded and stored to the target storage partition
  • the system restarts and enters the first mode, and the upgrade package is extracted from the target storage partition for system upgrade processing.
  • the target storage partition includes at least one storage partition to be downloaded
  • the target storage partition of the read upgrade package includes:
  • downloading the upgrade package to the target storage partition includes:
  • the upgrade package is downloaded and stored to the storage priority of the first priority to be downloaded.
  • the system is restarted and enters the first mode, and the upgrade package is extracted from the target storage partition for system upgrade processing, including:
  • the system is restarted and enters the recovery mode, and the storage partition to be downloaded of the first priority is mounted, and the upgrade package is read from the storage partition to be downloaded of the first priority to perform system upgrade processing.
  • the method further includes:
  • the upgrade package stored in the first priority storage partition to be downloaded is deleted in the recovery mode.
  • the method further includes:
  • the determination result is that the storage capacity of the upgrade package is greater than the storage priority of the first priority to be downloaded, according to the priority information. Selecting, to be downloaded, a storage partition to be downloaded as a second priority from the at least one storage partition to be downloaded, and using the second priority storage partition to be downloaded as the target storage partition;
  • the downloading and downloading the upgrade package to the target storage partition includes:
  • the upgrade package is downloaded and stored to the second priority storage partition to be downloaded.
  • the system is restarted and enters the first mode, and the upgrade package is extracted from the target storage partition for system upgrade processing, including:
  • the system is restarted and enters the recovery mode, and the storage partition to be downloaded of the second priority is mounted, and the upgrade package is read from the storage partition to be downloaded of the second priority to perform system upgrade processing.
  • the method further includes:
  • the upgrade package stored in the second priority storage partition to be downloaded is deleted in the recovery mode.
  • a reading unit configured to read a target storage partition of the upgrade package, where the target storage partition is a non-cached cache partition;
  • a first detecting unit configured to detect whether a storage capacity of the upgrade package is smaller than the target storage partition, and obtain a determination result
  • a downloading unit configured to download, when the storage result of the upgrade package is smaller than the target storage partition, to download the upgrade package to the target storage partition;
  • the first processing unit is configured to detect that the upgrade package download storage ends, the system restarts and enters the first mode, and the upgrade package is extracted from the target storage partition to perform system upgrade processing.
  • the target storage partition includes at least one storage partition to be downloaded
  • the reading unit is further configured to acquire priority information, select a storage partition to be downloaded as the first priority from the at least one storage partition to be downloaded according to the priority information, and set the first priority
  • the storage partition to be downloaded is used as the target storage partition.
  • the downloading unit is further configured to download the upgrade package to the first priority to be downloaded when the storage capacity of the upgrade package is smaller than the storage priority of the first priority to be downloaded. Storage partition.
  • the first processing unit is further configured to restart the system and enter a recovery mode, and mount the first priority storage partition to be downloaded, from the first priority storage partition to be downloaded. Read the upgrade package for system upgrade processing.
  • the first processing unit is further configured to detect that the system upgrade process ends, and delete the upgrade package stored in the first priority storage to be downloaded in the recovery mode.
  • the reading unit is further configured to: when the target storage partition is the first priority storage partition to be downloaded, the determining result is that the storage capacity of the upgrade package is greater than the first priority.
  • the storage partition to be downloaded is selected from the at least one storage partition to be downloaded according to the priority information, and the storage partition to be downloaded as the second priority is used as the storage partition to be downloaded.
  • the downloading unit is further configured to download the upgrade package to the second priority storage partition to be downloaded.
  • the first processing unit is further configured to restart the system and enter a recovery mode, and mount the second priority storage partition to be downloaded, from the second priority storage partition to be downloaded. Read the upgrade package for system upgrade processing.
  • the first processing unit is further configured to detect that the system upgrade process ends, and delete the upgrade package stored in the second priority storage partition to be downloaded in the recovery mode.
  • the reading unit, the first detecting unit, the downloading unit, and the first processing unit may use a central processing unit (CPU) and a digital signal processor (DSP, Digital) when performing processing. Singnal Processor) or Field-Programmable Gate Array (FPGA) implementation.
  • CPU central processing unit
  • DSP digital signal processor
  • FPGA Field-Programmable Gate Array
  • a system upgrade method includes: reading a target storage partition of an upgrade package, where the target storage partition is a non-cached cache partition; and detecting whether a storage capacity of the upgrade package is smaller than the target storage If the storage capacity of the upgrade package is smaller than the target storage partition, the upgrade package is downloaded and stored to the target storage partition; and the upgrade package download storage is detected, The system restarts and enters the first mode, and the upgrade package is extracted from the target storage partition for system upgrade processing.
  • the non-cached cache partition is a target storage partition, and the upgrade processing service can be successfully implemented in the case where the storage capacity of the upgrade package required for the version difference upgrade is relatively large. Therefore, the upgrade of the smart terminal provides more convenience.
  • Embodiment 1 is a schematic diagram of an implementation process of Embodiment 1 of a method according to the present invention
  • Embodiment 2 is a schematic flowchart of an implementation process of Embodiment 2 of the method according to the present invention
  • Embodiment 3 is a schematic flowchart of an implementation process of Embodiment 3 of the method according to the present invention.
  • FIG. 4 is a schematic structural diagram of a first embodiment of a terminal according to the present invention.
  • FIG. 5 is a schematic diagram of an application scenario in which an embodiment of the present invention is applied.
  • FIG. 6 is a schematic diagram of another application scenario to which an embodiment of the present invention is applied.
  • a system upgrade method according to an embodiment of the present invention, as shown in FIG. 1, the method includes:
  • Step 101 Read a target storage partition of the upgrade package, where the target storage partition is a non-cached cache partition.
  • Step 102 Detect whether the storage capacity of the upgrade package is smaller than the target storage partition, and obtain a determination result.
  • Step 103 When the result of the determination is that the storage capacity of the upgrade package is smaller than the target storage partition, download the upgrade package to the target storage partition.
  • Step 104 It is detected that the upgrade package download storage ends, the system restarts and enters the first mode, and the upgrade package is extracted from the target storage partition for system upgrade processing.
  • the target storage partition includes at least one storage partition to be downloaded; as shown in FIG. 2, the target storage partition of the read upgrade package includes:
  • Step 201 Obtain priority information.
  • Step 202 Select, as the first priority, a to-be-downloaded storage partition from the at least one storage partition to be downloaded according to the priority information, and use the first priority storage partition to be downloaded as the target storage partition.
  • downloading the upgrade package to the target storage partition including: the upgrade package When the storage capacity is smaller than the first priority storage partition to be downloaded, the upgrade package is downloaded and stored to the first priority storage partition to be downloaded.
  • the system is restarted and enters the first mode, and the upgrade package is extracted from the target storage partition to perform system upgrade processing, including: restarting the system and entering a recovery mode, and mounting the The first priority storage partition to be downloaded, the upgrade package is read from the first priority storage partition to be downloaded for system upgrade processing.
  • the method further includes: detecting that the system upgrade process ends, deleting the upgrade package stored in the first priority storage segment to be downloaded in the recovery mode. .
  • the target storage partition includes at least one storage partition to be downloaded, and the target storage partition is the first priority storage partition to be downloaded.
  • the result of the judgment is that the storage capacity of the upgrade package is greater than the storage priority of the first priority, as shown in FIG. 3, the target storage partition of the read upgrade package includes:
  • Step 301 Obtain priority information.
  • Step 302 Select, according to the priority information, a storage partition to be downloaded as a second priority from the at least one storage partition to be downloaded, and use the storage partition to be downloaded of the second priority as the target storage partition.
  • the downloading and downloading the upgrade package to the target storage partition includes: downloading the upgrade package to the storage priority of the second priority to be downloaded.
  • the system is restarted and enters the first mode, and the upgrade package is extracted from the target storage partition to perform system upgrade processing, including: restarting the system and entering a recovery mode, and mounting the And storing, by the second priority, the storage partition to be downloaded, the upgrade package is read from the storage priority of the second priority to be downloaded, and performing system upgrade processing.
  • the method further includes: detecting that the system upgrade process ends, deleting the upgrade package stored in the second priority storage segment to be downloaded in the recovery mode .
  • the first mode may be a recovery mode
  • the first priority storage partition to be downloaded may be a built-in user terminal (userdata) partition.
  • the second priority storage partition to be downloaded may be an SD card or other external memory card area.
  • the type of the target storage partition includes at least one of a user partition built in the terminal and an external memory card.
  • the upgrade package may be different from the foregoing embodiment in which the upgrade package is completely stored in any one of the at least one storage partition to be downloaded, and the partial content obtained by the upgrade package according to the preset ratio is separately stored in at least one to be stored. Downloading multiple areas in the storage partition, the sum constitutes a complete upgrade package. When you subsequently enter the recovery mode, you need to mount multiple areas of the upgrade package partially or simultaneously to read the contents of the upgrade package. Reassemble into a complete upgrade package according to the preset assembly conditions, and then upgrade according to the complete upgrade package.
  • comparing the storage capacity of the upgrade package with an area of at least one storage partition to be downloaded until a suitable storage partition to be downloaded is found as the target storage partition to store the complete content of the upgrade package When entering the recovery mode, you need to mount an area that stores the complete contents of the upgrade package, so that you can read the complete contents of the upgrade package from it, and then upgrade according to the complete upgrade package.
  • Terminal embodiment 1
  • the terminal includes:
  • the reading unit 11 is configured to read a target storage partition of the upgrade package, where the target storage partition is a non-cached cache partition.
  • the first detecting unit 12 is configured to detect whether the storage capacity of the upgrade package is smaller than the target storage partition. And obtaining a judgment result;
  • the downloading unit 13 is configured to: when the determining result is that the storage capacity of the upgrade package is smaller than the target storage partition, downloading the upgrade package to the target storage partition;
  • the first processing unit 14 Configuring to detect that the upgrade package downloads the end of the storage, the system restarts and enters the first mode, and extracts from the target storage partition.
  • the upgrade package performs system upgrade processing.
  • the target storage partition includes at least one storage partition to be downloaded; the reading unit is further configured to obtain priority information, and the at least one to be downloaded is stored according to the priority information.
  • the storage partition to be downloaded as the first priority is selected in the partition, and the storage partition to be downloaded of the first priority is used as the target storage partition.
  • the downloading unit is further configured to download, when the storage capacity of the upgrade package is less than the storage priority of the first priority, to download the upgrade package to the first Priority storage partition to be downloaded.
  • the first processing unit is further configured to restart the system and enter a recovery mode, and mount the first priority storage partition to be downloaded, from the first priority
  • the upgrade package is read in the storage partition to be downloaded for system upgrade processing.
  • the first processing unit is further configured to detect that the system upgrade process ends, and delete the storage area to be downloaded stored in the first priority in the recovery mode.
  • the upgrade package is further configured to detect that the system upgrade process ends, and delete the storage area to be downloaded stored in the first priority in the recovery mode.
  • the reading unit is further configured to: when the target storage partition is the first priority storage partition to be downloaded, the determining result is that the storage capacity of the upgrade package is greater than The storage partition to be downloaded of the first priority, the storage partition to be downloaded as the second priority is selected from the at least one storage partition to be downloaded according to the priority information, and the second priority is to be downloaded. Downloading a storage partition as the target storage partition;
  • the downloading unit is further configured to download the upgrade package to the second priority storage partition to be downloaded.
  • the first processing unit is further configured to restart the system and enter a recovery mode, and mount the second priority storage partition to be downloaded, from the second priority
  • the upgrade package is read in the storage partition to be downloaded for system upgrade processing.
  • the first processing unit is further configured to detect the The system upgrade process ends, and the upgrade package stored in the storage priority of the second priority to be downloaded is deleted in the recovery mode.
  • the application scenario of the present invention is specifically a FOTA upgrade solution.
  • the terminal uses the smart phone as an example, and the existing Android FOTA upgrade technology is used when the mobile phone is to be upgraded by FOTA.
  • the FOTA differential package is downloaded and then copied to the cache partition of the mobile phone; the mobile phone automatically restarts to the recovery mode, and the FOTA differential packet of the cache partition is processed for FOTA upgrade.
  • the problem with the existing Android FOTA upgrade technology is that because the cache partition user is invisible, usually the cache partition is relatively small. When the operating system is upgraded, the FOTA differential packet size will definitely be larger than the cache partition. The size of the phone can not be upgraded by a large version of FOTA. If the upgrade package fails, the upgrade will fail. The problem that needs to be solved now is to correctly store the upgrade package to avoid the upgrade failure. It can be seen that it is very important to correctly parse the upgrade package from the storage area.
  • the importance of parsing the upgrade package is also that When determining whether someone else is infringing, because of the external storage area such as userdata partition or SD card, both of which are visible partitions, you can read the partition information and FOTA in the built-in or external storage area of the other party's mobile phone.
  • the size of the differential packet is determined by analyzing the updated log information to determine whether the other party's mobile phone has been infringed.
  • the application scenario adopts the embodiment of the present invention. Even when the FOTA differential packet is relatively large, the mobile phone can still store correctly, correctly parse the FOTA differential packet, thereby avoiding the upgrade failure, and can also bring a series of help confirmation rights. effect.
  • the user data partition of the mobile phone is a partition visible to the user.
  • the partition is generally referred to as user space, and the remaining size indicates the size of the space that the user can use for photographing, downloading songs, and the like.
  • the general mobile phone userdata partition space will be relatively large, it will be the cache partition 5-8 times the size, can be used as the target storage area.
  • the FOTA upgrade steps are as follows:
  • Step 401 Download a FOTA differential packet to a user data partition by using a FOTA application.
  • Step 402 After the FOTA differential package is downloaded, the mobile phone automatically restarts into the recovery mode.
  • Step 403 Mount the userdatata partition in the recovery mode.
  • Step 404 In the recovery mode, after reading the FOTA differential packet in the userdata partition, perform a FOTA upgrade operation
  • Step 405 After the FOTA upgrade operation is completed, delete the FOTA differential packet in the userdata partition in the recovery mode.
  • step 406 the mobile phone automatically restarts.
  • the above application scenario only takes the userdata partition as an example, and an external SD card (or sdcard) can of course be used as a target storage area. If the user's userdata partition has insufficient space, if there is any space left by the external sdcard inserted by the user, download the FOTA differential packet to the sdcard. In the recovery mode, mount the sdcard partition and read the FOTA difference in the sdcard partition.
  • Package for FOTA upgrade As shown in Figure 5, this application scenario 2 includes both the userdata partition and the external SD, which can be used as the target storage area.
  • the FOTA upgrade process is as follows:
  • Step 501 obtaining a differential packet size of the FOTA server by the FOTA application is A;
  • Step 502 Obtain a remaining space size of the mobile phone userdata as B;
  • Step 503 compare the size of A and B, if A ⁇ B, then perform step 504; if A > B, then perform step 505;
  • Step 504 the differential packet download is stored to the userdata partition; afterwards, the process proceeds to step 509;
  • Step 505 The remaining space size of the external sdcard is C.
  • Step 506 compare the size of A and C; if A ⁇ C, step 507; if A > C, then step 508;
  • Step 507 Download the differential package to the sdcard.
  • Step 508 prompt the user to delete unused data, or insert another sdcard with a larger remaining space than A;
  • Step 509 After downloading and storing the differential packet, the mobile phone restarts into the recovery mode.
  • the userdata partition and external SD card (or sdcard) of this application scenario 3 can be used as the target storage area. If the user's userdata partition has insufficient space, if there is any space left by the external sdcard inserted by the user, download the FOTA differential packet to the sdcard. In the recovery mode, mount the sdcard partition and read the FOTA difference in the sdcard partition. Package for FOTA upgrade. As shown in Figure 6, this application scenario includes both the userdata partition and the external SD, which can be used as the target storage area. The process in the recovery mode includes:
  • Step 601 loading the userdata partition in the recorey mode
  • Step 602 determining whether there is a FOTA differential packet in the userdata partition, and if so, executing step 605; otherwise, executing step 603;
  • Step 603 There is no FOTA differential packet in the userdata partition, and the sdcard partition is loaded;
  • Step 604 determining whether the sdcard partition has a FOTA differential packet, and the sdcard partition has a FOTA differential packet, step 605;
  • Step 605 If there is a FOTA differential packet, pass the correct differential packet file path to perform FOTA upgrade processing;
  • Step 606 After the mobile phone FOTA is successfully upgraded, the FOTA differential packet corresponding to the FOTA upgrade is automatically deleted.
  • the upgrade package of the mobile phone firmware is relatively large, such as the case of using the FOTA software version upgrade for the larger FOTA differential package
  • the user's effective storage space can be utilized for the FOTA upgrade.
  • it is also compatible with Android's native FOTA upgrade solution, and can be superimposed with Android's native FOTA upgrade solution, which is better in use.
  • MB MByte, megabytes
  • GB Gigabyte, gigabytes
  • FOTA Firmware Over-the-Air mobile terminal over-the-air software upgrade technology
  • the integrated modules described in the embodiments of the present invention may also be stored in a computer readable storage medium if they are implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions.
  • a computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. .
  • embodiments of the invention are not limited to any specific combination of hardware and software.
  • the embodiment of the present invention further provides a computer storage medium, wherein a computer program is stored, and the computer program is used to execute the system upgrade method of the embodiment of the present invention.
  • the non-cached cache partition is a target storage partition, and the upgrade processing service can be successfully implemented in the case where the storage capacity of the upgrade package required for the version difference upgrade is relatively large. Therefore, the upgrade of the smart terminal provides more convenience.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

A system upgrade method and a terminal. The method comprises: reading a target storage partition of an upgrade package, the target storage partition being a non-cache partition (101); detecting whether the storage capacity of the upgrade package is smaller than the target storage partition, so as to obtain a judgment result (102); downloading and storing, when the judgment result is that the storage capacity of the upgrade package is smaller than the target storage partition, the upgrade package to the target storage partition (103); and rebooting, when it is detected that downloading and storage of the upgrade package are ended, a system, entering a first mode, and extracting the upgrade package from the target storage partition so as to upgrade the system (104).

Description

一种系统升级方法及终端System upgrade method and terminal 技术领域Technical field
本发明涉及升级技术,尤其涉及一种系统升级方法及终端。The present invention relates to an upgrade technology, and in particular, to a system upgrade method and a terminal.
背景技术Background technique
本申请发明人在实现本申请实施例技术方案的过程中,至少发现相关技术中存在如下技术问题:In the process of implementing the technical solutions of the embodiments of the present application, at least the following technical problems exist in the related technologies:
随着智能终端的普及,对智能终端如手机进行系统升级是用户生活中常常会遇到的事情,具体的一种场景为:碰到操作系统大版本的FOTA升级的场景,对于这种场景如何来处理?例如将火狐V1.3系统升级到火狐V2.0系统,火狐V2.0系统相比较于之前的系统,其FOTA差分包比较大,如果按照现有技术中安卓(Android)常用的做法,是将FOTA差分包复制到手机的缓存(cache)分区中进行存储,然后在cache分区进行升级操作。火狐V2.0系统相比于之前的系统,往往存在FOTA差分包比较大的情况,甚至会超过cache分区的大小,由于cache分区的存储空间不够容纳FOTA差分包,则必然直接导致FOTA升级失败。然而,相关技术中,对于这个问题,并未提供有效的解决方案。With the popularization of smart terminals, system upgrades for smart terminals such as mobile phones are common in user life. A specific scenario is: encountering a scene of FOTA upgrade of a large version of the operating system, how is this scenario? To deal with? For example, the Firefox V1.3 system is upgraded to the Firefox V2.0 system. Compared with the previous system, the Firefox V2.0 system has a larger FOTA differential package. If the Android technology is commonly used in the prior art, it will be The FOTA differential packet is copied to the cache partition of the mobile phone for storage, and then upgraded in the cache partition. Compared with the previous system, the Firefox V2.0 system often has a large FOTA differential packet, and even exceeds the size of the cache partition. Since the storage space of the cache partition is insufficient to accommodate the FOTA differential packet, the FOTA upgrade fails. However, in the related art, an effective solution is not provided for this problem.
发明内容Summary of the invention
有鉴于此,本发明实施例希望提供一种系统升级方法及终端,至少解决了现有技术存在的问题。In view of this, the embodiments of the present invention are intended to provide a system upgrade method and a terminal, which at least solve the problems existing in the prior art.
本发明实施例的技术方案是这样实现的:The technical solution of the embodiment of the present invention is implemented as follows:
本发明实施例的一种系统升级方法,所述方法包括:A system upgrade method according to an embodiment of the present invention, the method includes:
读取升级包的目标存储分区,所述目标存储分区为非缓存cache分区; Reading the target storage partition of the upgrade package, where the target storage partition is a non-cached cache partition;
检测所述升级包的存储容量是否小于所述目标存储分区,得到判断结果;Detecting whether the storage capacity of the upgrade package is smaller than the target storage partition, and obtaining a determination result;
所述判断结果为所述升级包的存储容量小于所述目标存储分区时,将所述升级包下载存储至所述目标存储分区;When the judgment result is that the storage capacity of the upgrade package is smaller than the target storage partition, the upgrade package is downloaded and stored to the target storage partition;
检测到所述升级包下载存储结束,系统重启并进入第一模式,从所述目标存储分区提取所述升级包进行系统升级处理。After the upgrade package download storage is detected, the system restarts and enters the first mode, and the upgrade package is extracted from the target storage partition for system upgrade processing.
上述方案中,所述目标存储分区包括至少一个待下载存储分区;In the above solution, the target storage partition includes at least one storage partition to be downloaded;
所述读取升级包的目标存储分区,包括:The target storage partition of the read upgrade package includes:
获取优先级信息;Obtain priority information;
根据所述优先级信息从所述至少一个待下载存储分区中选取作为第一优先级的待下载存储分区,并将所述第一优先级的待下载存储分区作为所述目标存储分区。And selecting, according to the priority information, a storage partition to be downloaded as the first priority from the at least one storage partition to be downloaded, and using the first priority storage partition to be downloaded as the target storage partition.
上述方案中,所述判断结果为所述升级包的存储容量小于所述目标存储分区时,将所述升级包下载存储至所述目标存储分区,包括:In the above solution, when the determining result is that the storage capacity of the upgrade package is smaller than the target storage partition, downloading the upgrade package to the target storage partition includes:
所述升级包的存储容量小于所述第一优先级的待下载存储分区时,将所述升级包下载存储至所述第一优先级的待下载存储分区。When the storage capacity of the upgrade package is smaller than the storage priority of the first priority to be downloaded, the upgrade package is downloaded and stored to the storage priority of the first priority to be downloaded.
上述方案中,所述系统重启并进入第一模式,从所述目标存储分区提取所述升级包进行系统升级处理,包括:In the above solution, the system is restarted and enters the first mode, and the upgrade package is extracted from the target storage partition for system upgrade processing, including:
所述系统重启并进入recovery模式,挂载所述第一优先级的待下载存储分区,从所述第一优先级的待下载存储分区中读取所述升级包进行系统升级处理。The system is restarted and enters the recovery mode, and the storage partition to be downloaded of the first priority is mounted, and the upgrade package is read from the storage partition to be downloaded of the first priority to perform system upgrade processing.
上述方案中,所述方法还包括:In the above solution, the method further includes:
检测到所述系统升级处理结束,在所述recovery模式下删除存储于所述第一优先级的待下载存储分区中的所述升级包。After the system upgrade process is detected, the upgrade package stored in the first priority storage partition to be downloaded is deleted in the recovery mode.
上述方案中,所述方法还包括: In the above solution, the method further includes:
所述目标存储分区为所述第一优先级的待下载存储分区时,所述判断结果为所述升级包的存储容量大于所述第一优先级的待下载存储分区,根据所述优先级信息从所述至少一个待下载存储分区中选取作为第二优先级的待下载存储分区,并将所述第二优先级的待下载存储分区作为所述目标存储分区;When the target storage partition is the first priority storage partition to be downloaded, the determination result is that the storage capacity of the upgrade package is greater than the storage priority of the first priority to be downloaded, according to the priority information. Selecting, to be downloaded, a storage partition to be downloaded as a second priority from the at least one storage partition to be downloaded, and using the second priority storage partition to be downloaded as the target storage partition;
所述将所述升级包下载存储至所述目标存储分区,包括:The downloading and downloading the upgrade package to the target storage partition includes:
将所述升级包下载存储至所述第二优先级的待下载存储分区。The upgrade package is downloaded and stored to the second priority storage partition to be downloaded.
上述方案中,所述系统重启并进入第一模式,从所述目标存储分区提取所述升级包进行系统升级处理,包括:In the above solution, the system is restarted and enters the first mode, and the upgrade package is extracted from the target storage partition for system upgrade processing, including:
所述系统重启并进入recovery模式,挂载所述第二优先级的待下载存储分区,从所述第二优先级的待下载存储分区中读取所述升级包进行系统升级处理。The system is restarted and enters the recovery mode, and the storage partition to be downloaded of the second priority is mounted, and the upgrade package is read from the storage partition to be downloaded of the second priority to perform system upgrade processing.
上述方案中,所述方法还包括:In the above solution, the method further includes:
检测到所述系统升级处理结束,在所述recovery模式下删除存储于所述第二优先级的待下载存储分区中的所述升级包。After the system upgrade process is detected, the upgrade package stored in the second priority storage partition to be downloaded is deleted in the recovery mode.
本发明实施例的一种终端,所述终端包括:A terminal according to an embodiment of the present invention, where the terminal includes:
读取单元,配置为读取升级包的目标存储分区,所述目标存储分区为非缓存cache分区;a reading unit configured to read a target storage partition of the upgrade package, where the target storage partition is a non-cached cache partition;
第一检测单元,配置为检测所述升级包的存储容量是否小于所述目标存储分区,得到判断结果;a first detecting unit, configured to detect whether a storage capacity of the upgrade package is smaller than the target storage partition, and obtain a determination result;
下载单元,配置为所述判断结果为所述升级包的存储容量小于所述目标存储分区时,将所述升级包下载存储至所述目标存储分区;a downloading unit, configured to download, when the storage result of the upgrade package is smaller than the target storage partition, to download the upgrade package to the target storage partition;
第一处理单元,配置为检测到所述升级包下载存储结束,系统重启并进入第一模式,从所述目标存储分区提取所述升级包进行系统升级处理。The first processing unit is configured to detect that the upgrade package download storage ends, the system restarts and enters the first mode, and the upgrade package is extracted from the target storage partition to perform system upgrade processing.
上述方案中,所述目标存储分区包括至少一个待下载存储分区; In the above solution, the target storage partition includes at least one storage partition to be downloaded;
所述读取单元,还配置为获取优先级信息,根据所述优先级信息从所述至少一个待下载存储分区中选取作为第一优先级的待下载存储分区,并将所述第一优先级的待下载存储分区作为所述目标存储分区。The reading unit is further configured to acquire priority information, select a storage partition to be downloaded as the first priority from the at least one storage partition to be downloaded according to the priority information, and set the first priority The storage partition to be downloaded is used as the target storage partition.
上述方案中,所述下载单元,还配置为所述升级包的存储容量小于所述第一优先级的待下载存储分区时,将所述升级包下载存储至所述第一优先级的待下载存储分区。In the above solution, the downloading unit is further configured to download the upgrade package to the first priority to be downloaded when the storage capacity of the upgrade package is smaller than the storage priority of the first priority to be downloaded. Storage partition.
上述方案中,所述第一处理单元,还配置为所述系统重启并进入recovery模式,挂载所述第一优先级的待下载存储分区,从所述第一优先级的待下载存储分区中读取所述升级包进行系统升级处理。In the above solution, the first processing unit is further configured to restart the system and enter a recovery mode, and mount the first priority storage partition to be downloaded, from the first priority storage partition to be downloaded. Read the upgrade package for system upgrade processing.
上述方案中,所述第一处理单元,还配置为检测到所述系统升级处理结束,在所述recovery模式下删除存储于所述第一优先级的待下载存储分区中的所述升级包。In the above solution, the first processing unit is further configured to detect that the system upgrade process ends, and delete the upgrade package stored in the first priority storage to be downloaded in the recovery mode.
上述方案中,所述读取单元,还配置为所述目标存储分区为所述第一优先级的待下载存储分区时,所述判断结果为所述升级包的存储容量大于所述第一优先级的待下载存储分区,根据所述优先级信息从所述至少一个待下载存储分区中选取作为第二优先级的待下载存储分区,并将所述第二优先级的待下载存储分区作为所述目标存储分区;In the above solution, the reading unit is further configured to: when the target storage partition is the first priority storage partition to be downloaded, the determining result is that the storage capacity of the upgrade package is greater than the first priority. The storage partition to be downloaded is selected from the at least one storage partition to be downloaded according to the priority information, and the storage partition to be downloaded as the second priority is used as the storage partition to be downloaded. The target storage partition;
所述下载单元,还配置为将所述升级包下载存储至所述第二优先级的待下载存储分区。The downloading unit is further configured to download the upgrade package to the second priority storage partition to be downloaded.
上述方案中,所述第一处理单元,还配置为所述系统重启并进入recovery模式,挂载所述第二优先级的待下载存储分区,从所述第二优先级的待下载存储分区中读取所述升级包进行系统升级处理。In the above solution, the first processing unit is further configured to restart the system and enter a recovery mode, and mount the second priority storage partition to be downloaded, from the second priority storage partition to be downloaded. Read the upgrade package for system upgrade processing.
上述方案中,所述第一处理单元,还配置为检测到所述系统升级处理结束,在所述recovery模式下删除存储于所述第二优先级的待下载存储分区中的所述升级包。 In the above solution, the first processing unit is further configured to detect that the system upgrade process ends, and delete the upgrade package stored in the second priority storage partition to be downloaded in the recovery mode.
所述读取单元、所述第一检测单元、所述下载单元、所述第一处理单元在执行处理时,可以采用中央处理器(CPU,Central Processing Unit)、数字信号处理器(DSP,Digital Singnal Processor)或可编程逻辑阵列(FPGA,Field-Programmable Gate Array)实现。The reading unit, the first detecting unit, the downloading unit, and the first processing unit may use a central processing unit (CPU) and a digital signal processor (DSP, Digital) when performing processing. Singnal Processor) or Field-Programmable Gate Array (FPGA) implementation.
本发明实施例的一种系统升级方法,所述方法包括:读取升级包的目标存储分区,所述目标存储分区为非缓存cache分区;检测所述升级包的存储容量是否小于所述目标存储分区,得到判断结果;所述判断结果为所述升级包的存储容量小于所述目标存储分区时,将所述升级包下载存储至所述目标存储分区;检测到所述升级包下载存储结束,系统重启并进入第一模式,从所述目标存储分区提取所述升级包进行系统升级处理。A system upgrade method according to an embodiment of the present invention, the method includes: reading a target storage partition of an upgrade package, where the target storage partition is a non-cached cache partition; and detecting whether a storage capacity of the upgrade package is smaller than the target storage If the storage capacity of the upgrade package is smaller than the target storage partition, the upgrade package is downloaded and stored to the target storage partition; and the upgrade package download storage is detected, The system restarts and enters the first mode, and the upgrade package is extracted from the target storage partition for system upgrade processing.
采用本发明实施例,对非缓存cache分区这种存储空间比较大的区域作为目标存储分区,在由于版本差异升级所需的升级包存储容量比较大的情况下,也可以顺利实现升级处理服务,从而智能终端的升级提供更多便利。According to the embodiment of the present invention, the non-cached cache partition is a target storage partition, and the upgrade processing service can be successfully implemented in the case where the storage capacity of the upgrade package required for the version difference upgrade is relatively large. Therefore, the upgrade of the smart terminal provides more convenience.
附图说明DRAWINGS
图1为本发明方法实施例一的实现流程示意图;1 is a schematic diagram of an implementation process of Embodiment 1 of a method according to the present invention;
图2为本发明方法实施例二的实现流程示意图;2 is a schematic flowchart of an implementation process of Embodiment 2 of the method according to the present invention;
图3为本发明方法实施例三的实现流程示意图;3 is a schematic flowchart of an implementation process of Embodiment 3 of the method according to the present invention;
图4为本发明终端实施例一的组成结构示意图;4 is a schematic structural diagram of a first embodiment of a terminal according to the present invention;
图5为应用本发明实施例的一应用场景的示意图;FIG. 5 is a schematic diagram of an application scenario in which an embodiment of the present invention is applied;
图6为应用本发明实施例的另一应用场景的示意图。FIG. 6 is a schematic diagram of another application scenario to which an embodiment of the present invention is applied.
具体实施方式detailed description
下面结合附图对技术方案的实施作进一步的详细描述。The implementation of the technical solution will be further described in detail below with reference to the accompanying drawings.
方法实施例一: Method embodiment one:
本发明实施例的一种系统升级方法,如图1所示,所述方法包括:A system upgrade method according to an embodiment of the present invention, as shown in FIG. 1, the method includes:
步骤101、读取升级包的目标存储分区,所述目标存储分区为非缓存cache分区;Step 101: Read a target storage partition of the upgrade package, where the target storage partition is a non-cached cache partition.
步骤102、检测所述升级包的存储容量是否小于所述目标存储分区,得到判断结果;Step 102: Detect whether the storage capacity of the upgrade package is smaller than the target storage partition, and obtain a determination result.
步骤103、所述判断结果为所述升级包的存储容量小于所述目标存储分区时,将所述升级包下载存储至所述目标存储分区;Step 103: When the result of the determination is that the storage capacity of the upgrade package is smaller than the target storage partition, download the upgrade package to the target storage partition.
步骤104、检测到所述升级包下载存储结束,系统重启并进入第一模式,从所述目标存储分区提取所述升级包进行系统升级处理。Step 104: It is detected that the upgrade package download storage ends, the system restarts and enters the first mode, and the upgrade package is extracted from the target storage partition for system upgrade processing.
方法实施例二:Method Embodiment 2:
基于方法实施例一,本发明实施例的一种系统升级方法,所述目标存储分区包括至少一个待下载存储分区;如图2所示,所述读取升级包的目标存储分区,包括:A method for upgrading a system according to the first embodiment of the present invention, the target storage partition includes at least one storage partition to be downloaded; as shown in FIG. 2, the target storage partition of the read upgrade package includes:
步骤201、获取优先级信息;Step 201: Obtain priority information.
步骤202、根据所述优先级信息从所述至少一个待下载存储分区中选取作为第一优先级的待下载存储分区,并将所述第一优先级的待下载存储分区作为所述目标存储分区。Step 202: Select, as the first priority, a to-be-downloaded storage partition from the at least one storage partition to be downloaded according to the priority information, and use the first priority storage partition to be downloaded as the target storage partition. .
在本实施例一实施方式中,所述判断结果为所述升级包的存储容量小于所述目标存储分区时,将所述升级包下载存储至所述目标存储分区,包括:所述升级包的存储容量小于所述第一优先级的待下载存储分区时,将所述升级包下载存储至所述第一优先级的待下载存储分区。In an embodiment of the present invention, when the determining result is that the storage capacity of the upgrade package is smaller than the target storage partition, downloading the upgrade package to the target storage partition, including: the upgrade package When the storage capacity is smaller than the first priority storage partition to be downloaded, the upgrade package is downloaded and stored to the first priority storage partition to be downloaded.
在本实施例一实施方式中,所述系统重启并进入第一模式,从所述目标存储分区提取所述升级包进行系统升级处理,包括:所述系统重启并进入recovery模式,挂载所述第一优先级的待下载存储分区,从所述第一优先级的待下载存储分区中读取所述升级包进行系统升级处理。 In an embodiment of the embodiment, the system is restarted and enters the first mode, and the upgrade package is extracted from the target storage partition to perform system upgrade processing, including: restarting the system and entering a recovery mode, and mounting the The first priority storage partition to be downloaded, the upgrade package is read from the first priority storage partition to be downloaded for system upgrade processing.
在本实施例一实施方式中,所述方法还包括:检测到所述系统升级处理结束,在所述recovery模式下删除存储于所述第一优先级的待下载存储分区中的所述升级包。In an embodiment of the embodiment, the method further includes: detecting that the system upgrade process ends, deleting the upgrade package stored in the first priority storage segment to be downloaded in the recovery mode. .
方法实施例三:Method embodiment three:
基于方法实施例一,本发明实施例的一种系统升级方法,所述目标存储分区包括至少一个待下载存储分区,所述目标存储分区为所述第一优先级的待下载存储分区时,所述判断结果为所述升级包的存储容量大于所述第一优先级的待下载存储分区,如图3所示,所述读取升级包的目标存储分区,包括:A system upgrade method according to the first embodiment of the present invention, the target storage partition includes at least one storage partition to be downloaded, and the target storage partition is the first priority storage partition to be downloaded. The result of the judgment is that the storage capacity of the upgrade package is greater than the storage priority of the first priority, as shown in FIG. 3, the target storage partition of the read upgrade package includes:
步骤301、获取优先级信息;Step 301: Obtain priority information.
步骤302、根据所述优先级信息从所述至少一个待下载存储分区中选取作为第二优先级的待下载存储分区,并将所述第二优先级的待下载存储分区作为所述目标存储分区。Step 302: Select, according to the priority information, a storage partition to be downloaded as a second priority from the at least one storage partition to be downloaded, and use the storage partition to be downloaded of the second priority as the target storage partition. .
在本实施例一实施方式中,所述将所述升级包下载存储至所述目标存储分区,包括:将所述升级包下载存储至所述第二优先级的待下载存储分区。In this embodiment, the downloading and downloading the upgrade package to the target storage partition includes: downloading the upgrade package to the storage priority of the second priority to be downloaded.
在本实施例一实施方式中,所述系统重启并进入第一模式,从所述目标存储分区提取所述升级包进行系统升级处理,包括:所述系统重启并进入recovery模式,挂载所述第二优先级的待下载存储分区,从所述第二优先级的待下载存储分区中读取所述升级包进行系统升级处理。In an embodiment of the embodiment, the system is restarted and enters the first mode, and the upgrade package is extracted from the target storage partition to perform system upgrade processing, including: restarting the system and entering a recovery mode, and mounting the And storing, by the second priority, the storage partition to be downloaded, the upgrade package is read from the storage priority of the second priority to be downloaded, and performing system upgrade processing.
在本实施例一实施方式中,所述方法还包括:检测到所述系统升级处理结束,在所述recovery模式下删除存储于所述第二优先级的待下载存储分区中的所述升级包。In an embodiment of the embodiment, the method further includes: detecting that the system upgrade process ends, deleting the upgrade package stored in the second priority storage segment to be downloaded in the recovery mode .
这里需要指出的是,上述第一模式可以为recovery模式,上述第一优先级的待下载存储分区可以为用户数据(userdata)分区这种终端内置的用 户分区,(后续userdata分区也简称为用户分区),上述第二优先级的待下载存储分区可以为SD卡或其他外置存储卡的区域。It should be noted that the first mode may be a recovery mode, and the first priority storage partition to be downloaded may be a built-in user terminal (userdata) partition. The user partition, (subsequent userdata partition is also referred to as a user partition), and the second priority storage partition to be downloaded may be an SD card or other external memory card area.
这里需要指出的是,目标存储分区的类型至少包括:终端内置的用户分区、外置存储卡中的至少一种。相应的,升级包也可以区别于上述将升级包完整的存储于至少一个待下载存储分区中任意一个区域的实施例,是将升级包按照预设的比例得到的部分内容分别存储于至少一个待下载存储分区中的多个区域中,总和构成一个完整的升级包,在后续进入recovery模式时需要先后或同时挂载这些存储有升级包部分内容的多个区域,以便从中读取升级包部分内容,按照预设装配条件重新组装成一个完整的升级包,之后,根据完整的升级包进行升级处理。It should be noted here that the type of the target storage partition includes at least one of a user partition built in the terminal and an external memory card. Correspondingly, the upgrade package may be different from the foregoing embodiment in which the upgrade package is completely stored in any one of the at least one storage partition to be downloaded, and the partial content obtained by the upgrade package according to the preset ratio is separately stored in at least one to be stored. Downloading multiple areas in the storage partition, the sum constitutes a complete upgrade package. When you subsequently enter the recovery mode, you need to mount multiple areas of the upgrade package partially or simultaneously to read the contents of the upgrade package. Reassemble into a complete upgrade package according to the preset assembly conditions, and then upgrade according to the complete upgrade package.
而上述将升级包完整的存储于至少一个待下载存储分区中任意一个区域的实施例,如何确定优先存储的区域,是按照上述优先级信息来确定的,按照优先级信息中的存储分区优先级顺序,分别将升级包的存储容量与至少一个待下载存储分区中的一个区域进行比对,直至找到合适的一个待下载存储分区作为所述目标存储分区,来存储升级包完整的内容,在后续进入recovery模式时需要挂载这个存储有升级包完整内容的一个区域,以便从中读取升级包完整的内容,之后,根据完整的升级包进行升级处理。The foregoing embodiment of storing the upgrade package completely in any one of the at least one storage partition to be downloaded, how to determine the priority storage area is determined according to the priority information, according to the storage partition priority in the priority information. In sequence, comparing the storage capacity of the upgrade package with an area of at least one storage partition to be downloaded until a suitable storage partition to be downloaded is found as the target storage partition to store the complete content of the upgrade package, When entering the recovery mode, you need to mount an area that stores the complete contents of the upgrade package, so that you can read the complete contents of the upgrade package from it, and then upgrade according to the complete upgrade package.
终端实施例一:Terminal embodiment 1:
本发明实施例的一种终端,如图4所示,所述终端包括:A terminal according to an embodiment of the present invention, as shown in FIG. 4, the terminal includes:
读取单元11,配置为读取升级包的目标存储分区,所述目标存储分区为非缓存cache分区;第一检测单元12,配置为检测所述升级包的存储容量是否小于所述目标存储分区,得到判断结果;下载单元13,配置为所述判断结果为所述升级包的存储容量小于所述目标存储分区时,将所述升级包下载存储至所述目标存储分区;第一处理单元14,配置为检测到所述升级包下载存储结束,系统重启并进入第一模式,从所述目标存储分区提取 所述升级包进行系统升级处理。The reading unit 11 is configured to read a target storage partition of the upgrade package, where the target storage partition is a non-cached cache partition. The first detecting unit 12 is configured to detect whether the storage capacity of the upgrade package is smaller than the target storage partition. And obtaining a judgment result; the downloading unit 13 is configured to: when the determining result is that the storage capacity of the upgrade package is smaller than the target storage partition, downloading the upgrade package to the target storage partition; the first processing unit 14 Configuring to detect that the upgrade package downloads the end of the storage, the system restarts and enters the first mode, and extracts from the target storage partition. The upgrade package performs system upgrade processing.
在本实施例一实施方式中,所述目标存储分区包括至少一个待下载存储分区;所述读取单元,还配置为获取优先级信息,根据所述优先级信息从所述至少一个待下载存储分区中选取作为第一优先级的待下载存储分区,并将所述第一优先级的待下载存储分区作为所述目标存储分区。In an embodiment of the embodiment, the target storage partition includes at least one storage partition to be downloaded; the reading unit is further configured to obtain priority information, and the at least one to be downloaded is stored according to the priority information. The storage partition to be downloaded as the first priority is selected in the partition, and the storage partition to be downloaded of the first priority is used as the target storage partition.
在本实施例一实施方式中,所述下载单元,还配置为所述升级包的存储容量小于所述第一优先级的待下载存储分区时,将所述升级包下载存储至所述第一优先级的待下载存储分区。In an embodiment of the embodiment, the downloading unit is further configured to download, when the storage capacity of the upgrade package is less than the storage priority of the first priority, to download the upgrade package to the first Priority storage partition to be downloaded.
在本实施例一实施方式中,所述第一处理单元,还配置为所述系统重启并进入recovery模式,挂载所述第一优先级的待下载存储分区,从所述第一优先级的待下载存储分区中读取所述升级包进行系统升级处理。In an embodiment of the embodiment, the first processing unit is further configured to restart the system and enter a recovery mode, and mount the first priority storage partition to be downloaded, from the first priority The upgrade package is read in the storage partition to be downloaded for system upgrade processing.
在本实施例一实施方式中,所述第一处理单元,还配置为检测到所述系统升级处理结束,在所述recovery模式下删除存储于所述第一优先级的待下载存储分区中的所述升级包。In an embodiment of the embodiment, the first processing unit is further configured to detect that the system upgrade process ends, and delete the storage area to be downloaded stored in the first priority in the recovery mode. The upgrade package.
在本实施例一实施方式中,所述读取单元,还配置为所述目标存储分区为所述第一优先级的待下载存储分区时,所述判断结果为所述升级包的存储容量大于所述第一优先级的待下载存储分区,根据所述优先级信息从所述至少一个待下载存储分区中选取作为第二优先级的待下载存储分区,并将所述第二优先级的待下载存储分区作为所述目标存储分区;In an embodiment of the embodiment, the reading unit is further configured to: when the target storage partition is the first priority storage partition to be downloaded, the determining result is that the storage capacity of the upgrade package is greater than The storage partition to be downloaded of the first priority, the storage partition to be downloaded as the second priority is selected from the at least one storage partition to be downloaded according to the priority information, and the second priority is to be downloaded. Downloading a storage partition as the target storage partition;
所述下载单元,还配置为将所述升级包下载存储至所述第二优先级的待下载存储分区。The downloading unit is further configured to download the upgrade package to the second priority storage partition to be downloaded.
在本实施例一实施方式中,所述第一处理单元,还配置为所述系统重启并进入recovery模式,挂载所述第二优先级的待下载存储分区,从所述第二优先级的待下载存储分区中读取所述升级包进行系统升级处理。In an embodiment of the embodiment, the first processing unit is further configured to restart the system and enter a recovery mode, and mount the second priority storage partition to be downloaded, from the second priority The upgrade package is read in the storage partition to be downloaded for system upgrade processing.
在本实施例一实施方式中,所述第一处理单元,还配置为检测到所述 系统升级处理结束,在所述recovery模式下删除存储于所述第二优先级的待下载存储分区中的所述升级包。In an embodiment of the embodiment, the first processing unit is further configured to detect the The system upgrade process ends, and the upgrade package stored in the storage priority of the second priority to be downloaded is deleted in the recovery mode.
以下采用具体应用场景对上述本发明实施例进行说明如下:The following describes the embodiments of the present invention by using specific application scenarios as follows:
本应用场景采用本发明实施例具体为一种FOTA升级的方案,对于这个应用场景,以终端为智能手机为例,采用现有Android的FOTA升级技术,是在手机要进行FOTA升级时,先将FOTA差分包下载下来,然后复制到手机的cache分区;手机自动重启到recovery模式下,对cache分区的FOTA差分包进行处理,进行FOTA升级。The application scenario of the present invention is specifically a FOTA upgrade solution. For the application scenario, the terminal uses the smart phone as an example, and the existing Android FOTA upgrade technology is used when the mobile phone is to be upgraded by FOTA. The FOTA differential package is downloaded and then copied to the cache partition of the mobile phone; the mobile phone automatically restarts to the recovery mode, and the FOTA differential packet of the cache partition is processed for FOTA upgrade.
采用现有Android的FOTA升级技术所存在的问题是:因为cache分区用户是不可见的,所以通常cache分区开的比较小,当操作系统大版本升级时,其FOTA差分包大小肯定会大于cache分区的大小,从而导致手机无法进行大版本的FOTA升级,如果解析升级包失败,则直接导致升级失败。目前需要解决的问题是能够正确存储升级包,以避免升级失败,可见,从存储的区域能正确解析出升级包是非常重要的,这里需要指出的是,解析获得升级包的重要性还在于,在确定他人是否侵权时,由于采用userdata分区或SD卡这种外置存储区域,二者都是可见的分区,就可以通过读取对方手机的内置或外置存储区域中的分区信息和FOTA的差分包大小,通过解析升级的log信息来判断对方手机是否已侵权。The problem with the existing Android FOTA upgrade technology is that because the cache partition user is invisible, usually the cache partition is relatively small. When the operating system is upgraded, the FOTA differential packet size will definitely be larger than the cache partition. The size of the phone can not be upgraded by a large version of FOTA. If the upgrade package fails, the upgrade will fail. The problem that needs to be solved now is to correctly store the upgrade package to avoid the upgrade failure. It can be seen that it is very important to correctly parse the upgrade package from the storage area. It should be pointed out that the importance of parsing the upgrade package is also that When determining whether someone else is infringing, because of the external storage area such as userdata partition or SD card, both of which are visible partitions, you can read the partition information and FOTA in the built-in or external storage area of the other party's mobile phone. The size of the differential packet is determined by analyzing the updated log information to determine whether the other party's mobile phone has been infringed.
对应上述问题,本应用场景采用本发明实施例,即便当FOTA差分包比较大的情况,手机仍然可以正确存储,正确解析FOTA差分包,从而避免升级失败,还能带来帮助确权等一系列效果。Corresponding to the above problem, the application scenario adopts the embodiment of the present invention. Even when the FOTA differential packet is relatively large, the mobile phone can still store correctly, correctly parse the FOTA differential packet, thereby avoiding the upgrade failure, and can also bring a series of help confirmation rights. effect.
应用场景一:Application scenario 1:
手机的用户数据userdata分区,是用户可见的分区,该分区一般称之为用户空间,其剩余大小表示用户可用于拍照、下载歌曲等用户操作的空间大小。一般手机该userdata分区空间都会比较大,会是cache分区的 5-8倍大小,可以作为目标存储区域使用。FOTA升级步骤如下:The user data partition of the mobile phone is a partition visible to the user. The partition is generally referred to as user space, and the remaining size indicates the size of the space that the user can use for photographing, downloading songs, and the like. The general mobile phone userdata partition space will be relatively large, it will be the cache partition 5-8 times the size, can be used as the target storage area. The FOTA upgrade steps are as follows:
步骤401、通过FOTA应用下载FOTA差分包到userdata分区;Step 401: Download a FOTA differential packet to a user data partition by using a FOTA application.
步骤402、当FOTA差分包下载完后,手机自动重启进入recovery模式;Step 402: After the FOTA differential package is downloaded, the mobile phone automatically restarts into the recovery mode.
步骤403、在recovery模式下,挂载userdatata分区;Step 403: Mount the userdatata partition in the recovery mode.
步骤404、在recovery模式下,读取userdata分区里的FOTA差分包后,进行FOTA升级操作;Step 404: In the recovery mode, after reading the FOTA differential packet in the userdata partition, perform a FOTA upgrade operation;
步骤405、当FOTA升级操作完后,在recovery模式下删除userdata分区里的FOTA差分包。Step 405: After the FOTA upgrade operation is completed, delete the FOTA differential packet in the userdata partition in the recovery mode.
步骤406、手机自动重启。In step 406, the mobile phone automatically restarts.
应用场景二、Application scenario 2
上述应用场景一仅仅以userdata分区为例,外置SD卡(或称sdcard)当然也可以作为目标存储区域使用。如果用户的userdata分区剩余空间不足的话,用户插入的外置sdcard如何还有剩余空间,就将FOTA差分包下载到sdcard上,在recovery模式下,挂载sdcard分区,读取sdcard分区里的FOTA差分包进行FOTA升级。如图5所示,本应用场景二既包括userdata分区,又包括外置SD,都可以作为目标存储区域的情况,FOTA升级流程如下:The above application scenario only takes the userdata partition as an example, and an external SD card (or sdcard) can of course be used as a target storage area. If the user's userdata partition has insufficient space, if there is any space left by the external sdcard inserted by the user, download the FOTA differential packet to the sdcard. In the recovery mode, mount the sdcard partition and read the FOTA difference in the sdcard partition. Package for FOTA upgrade. As shown in Figure 5, this application scenario 2 includes both the userdata partition and the external SD, which can be used as the target storage area. The FOTA upgrade process is as follows:
步骤501、通过FOTA应用程序获取FOTA服务器的差分包大小为A; Step 501, obtaining a differential packet size of the FOTA server by the FOTA application is A;
步骤502、获取手机userdata的剩余空间大小为B;Step 502: Obtain a remaining space size of the mobile phone userdata as B;
步骤503、比较A和B的大小,如果A<B,则执行步骤504;如果A>B,则执行步骤505; Step 503, compare the size of A and B, if A < B, then perform step 504; if A > B, then perform step 505;
步骤504、将差分包下载存储到userdata分区;之后,转入步骤509; Step 504, the differential packet download is stored to the userdata partition; afterwards, the process proceeds to step 509;
步骤505、获取外置sdcard的剩余空间大小为C;Step 505: The remaining space size of the external sdcard is C.
步骤506、比较A和C的大小;如果A<C,则执行步骤507;如果A>C,则执行步骤508; Step 506, compare the size of A and C; if A < C, step 507; if A > C, then step 508;
步骤507、将差分包下载存储到sdcard里;Step 507: Download the differential package to the sdcard.
步骤508、提示用户删除不用的数据,或者插入另外一张剩余空间比A大的sdcard;Step 508: prompt the user to delete unused data, or insert another sdcard with a larger remaining space than A;
步骤509、当下载存储完差分包后,手机重启进入recovery模式。Step 509: After downloading and storing the differential packet, the mobile phone restarts into the recovery mode.
应用场景三:Application scenario three:
本应用场景三的userdata分区及外置SD卡(或称sdcard)都可以作为目标存储区域使用。如果用户的userdata分区剩余空间不足的话,用户插入的外置sdcard如何还有剩余空间,就将FOTA差分包下载到sdcard上,在recovery模式下,挂载sdcard分区,读取sdcard分区里的FOTA差分包进行FOTA升级。如图6所示,本应用场景既包括userdata分区,又包括外置SD,都可以作为目标存储区域的情况,recovery模式下的流程,包括:The userdata partition and external SD card (or sdcard) of this application scenario 3 can be used as the target storage area. If the user's userdata partition has insufficient space, if there is any space left by the external sdcard inserted by the user, download the FOTA differential packet to the sdcard. In the recovery mode, mount the sdcard partition and read the FOTA difference in the sdcard partition. Package for FOTA upgrade. As shown in Figure 6, this application scenario includes both the userdata partition and the external SD, which can be used as the target storage area. The process in the recovery mode includes:
步骤601、recorey模式下加载userdata分区;Step 601: loading the userdata partition in the recorey mode;
步骤602、判断userdata分区里是否有FOTA差分包,如果是,则执行步骤605;否则,执行步骤603; Step 602, determining whether there is a FOTA differential packet in the userdata partition, and if so, executing step 605; otherwise, executing step 603;
步骤603、userdata分区里没有FOTA差分包,加载sdcard分区;Step 603: There is no FOTA differential packet in the userdata partition, and the sdcard partition is loaded;
步骤604、判断sdcard分区是否有FOTA差分包,sdcard分区有FOTA差分包时,执行步骤605; Step 604, determining whether the sdcard partition has a FOTA differential packet, and the sdcard partition has a FOTA differential packet, step 605;
步骤605、有FOTA差分包的情况下,传递正确的差分包文件路径,进行FOTA的升级处理;Step 605: If there is a FOTA differential packet, pass the correct differential packet file path to perform FOTA upgrade processing;
步骤606、手机FOTA升级成功后,自动删除FOTA升级对应的FOTA差分包。Step 606: After the mobile phone FOTA is successfully upgraded, the FOTA differential packet corresponding to the FOTA upgrade is automatically deleted.
这里需要指出的是,还有一种具体应用场景,是将大的FOTA差分包,拆分成一个个小的FOTA差分包,这样采用Android原生的FOTA升级方案进行多次升级,也能达到一定目的,用户需要多次下载和升级。It should be pointed out here that there is also a specific application scenario, which is to split the large FOTA differential package into small FOTA differential packages, so that multiple upgrades can be achieved by using the Android native FOTA upgrade scheme. Users need to download and upgrade multiple times.
本应用场景采用本发明实施例所能达到的有益效果为: The beneficial effects that can be achieved by the embodiment of the present invention are as follows:
对于手机固件升级时升级包比较大的情况,比如采用FOTA的软件版本升级遇到的针对较大的FOTA差分包的情况,可以利用用户的有效存储空间来进行FOTA升级。而且,同样兼容Android原生的FOTA升级方案,且可以与Android原生的FOTA升级方案同时叠加使用,在使用效果上更好。应用本发明实施例到P821A20手机上,已经实现了火狐系统大版本的FOTA升级,从火狐的V1.3系统升级到V2.0系统。For the case where the upgrade package of the mobile phone firmware is relatively large, such as the case of using the FOTA software version upgrade for the larger FOTA differential package, the user's effective storage space can be utilized for the FOTA upgrade. Moreover, it is also compatible with Android's native FOTA upgrade solution, and can be superimposed with Android's native FOTA upgrade solution, which is better in use. Applying the embodiment of the present invention to the P821A20 mobile phone, the FOTA upgrade of the large version of the Firefox system has been implemented, and the Firefox V1.3 system is upgraded to the V2.0 system.
以下对本文涉及的缩略语说明如下:The following abbreviations are covered as follows:
MB:MByte,兆字节;MB: MByte, megabytes;
GB:Gigabyte,吉字节;GB: Gigabyte, gigabytes;
FOTA:Firmware Over-the-Air移动终端空中下载软件升级技术;FOTA: Firmware Over-the-Air mobile terminal over-the-air software upgrade technology;
本发明实施例所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。这样,本发明实施例不限制于任何特定的硬件和软件结合。The integrated modules described in the embodiments of the present invention may also be stored in a computer readable storage medium if they are implemented in the form of software functional modules and sold or used as separate products. Based on such understanding, the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions. A computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like. . Thus, embodiments of the invention are not limited to any specific combination of hardware and software.
相应的,本发明实施例还提供一种计算机存储介质,其中存储有计算机程序,该计算机程序用于执行本发明实施例的系统升级方法。Correspondingly, the embodiment of the present invention further provides a computer storage medium, wherein a computer program is stored, and the computer program is used to execute the system upgrade method of the embodiment of the present invention.
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。 The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.
工业实用性Industrial applicability
采用本发明实施例,对非缓存cache分区这种存储空间比较大的区域作为目标存储分区,在由于版本差异升级所需的升级包存储容量比较大的情况下,也可以顺利实现升级处理服务,从而智能终端的升级提供更多便利。 According to the embodiment of the present invention, the non-cached cache partition is a target storage partition, and the upgrade processing service can be successfully implemented in the case where the storage capacity of the upgrade package required for the version difference upgrade is relatively large. Therefore, the upgrade of the smart terminal provides more convenience.

Claims (16)

  1. 一种系统升级方法,所述方法包括:A system upgrade method, the method comprising:
    读取升级包的目标存储分区,所述目标存储分区为非缓存cache分区;Reading the target storage partition of the upgrade package, where the target storage partition is a non-cached cache partition;
    检测所述升级包的存储容量是否小于所述目标存储分区,得到判断结果;Detecting whether the storage capacity of the upgrade package is smaller than the target storage partition, and obtaining a determination result;
    所述判断结果为所述升级包的存储容量小于所述目标存储分区时,将所述升级包下载存储至所述目标存储分区;When the judgment result is that the storage capacity of the upgrade package is smaller than the target storage partition, the upgrade package is downloaded and stored to the target storage partition;
    检测到所述升级包下载存储结束,系统重启并进入第一模式,从所述目标存储分区提取所述升级包进行系统升级处理。After the upgrade package download storage is detected, the system restarts and enters the first mode, and the upgrade package is extracted from the target storage partition for system upgrade processing.
  2. 根据权利要求1所述的方法,其中,所述目标存储分区包括至少一个待下载存储分区;The method of claim 1 wherein said target storage partition comprises at least one storage partition to be downloaded;
    所述读取升级包的目标存储分区,包括:The target storage partition of the read upgrade package includes:
    获取优先级信息;Obtain priority information;
    根据所述优先级信息从所述至少一个待下载存储分区中选取作为第一优先级的待下载存储分区,并将所述第一优先级的待下载存储分区作为所述目标存储分区。And selecting, according to the priority information, a storage partition to be downloaded as the first priority from the at least one storage partition to be downloaded, and using the first priority storage partition to be downloaded as the target storage partition.
  3. 根据权利要求2所述的方法,其中,所述判断结果为所述升级包的存储容量小于所述目标存储分区时,将所述升级包下载存储至所述目标存储分区,包括:The method according to claim 2, wherein, when the result of the determination is that the storage capacity of the upgrade package is smaller than the target storage partition, downloading the upgrade package to the target storage partition includes:
    所述升级包的存储容量小于所述第一优先级的待下载存储分区时,将所述升级包下载存储至所述第一优先级的待下载存储分区。When the storage capacity of the upgrade package is smaller than the storage priority of the first priority to be downloaded, the upgrade package is downloaded and stored to the storage priority of the first priority to be downloaded.
  4. 根据权利要求3所述的方法,其中,所述系统重启并进入第一模式,从所述目标存储分区提取所述升级包进行系统升级处理,包括:The method of claim 3, wherein the system restarts and enters the first mode, and the upgrade package is extracted from the target storage partition for system upgrade processing, including:
    所述系统重启并进入recovery模式,挂载所述第一优先级的待下载存储分区,从所述第一优先级的待下载存储分区中读取所述升级包进行系统 升级处理。The system restarts and enters a recovery mode, and the first priority storage partition to be downloaded is mounted, and the upgrade package is read from the first priority storage partition to be downloaded. Upgrade processing.
  5. 根据权利要求4所述的方法,其中,所述方法还包括:The method of claim 4 wherein the method further comprises:
    检测到所述系统升级处理结束,在所述recovery模式下删除存储于所述第一优先级的待下载存储分区中的所述升级包。After the system upgrade process is detected, the upgrade package stored in the first priority storage partition to be downloaded is deleted in the recovery mode.
  6. 根据权利要求2所述的方法,其中,所述方法还包括:The method of claim 2, wherein the method further comprises:
    所述目标存储分区为所述第一优先级的待下载存储分区时,所述判断结果为所述升级包的存储容量大于所述第一优先级的待下载存储分区,根据所述优先级信息从所述至少一个待下载存储分区中选取作为第二优先级的待下载存储分区,并将所述第二优先级的待下载存储分区作为所述目标存储分区;When the target storage partition is the first priority storage partition to be downloaded, the determination result is that the storage capacity of the upgrade package is greater than the storage priority of the first priority to be downloaded, according to the priority information. Selecting, to be downloaded, a storage partition to be downloaded as a second priority from the at least one storage partition to be downloaded, and using the second priority storage partition to be downloaded as the target storage partition;
    所述将所述升级包下载存储至所述目标存储分区,包括:The downloading and downloading the upgrade package to the target storage partition includes:
    将所述升级包下载存储至所述第二优先级的待下载存储分区。The upgrade package is downloaded and stored to the second priority storage partition to be downloaded.
  7. 根据权利要求6所述的方法,其中,所述系统重启并进入第一模式,从所述目标存储分区提取所述升级包进行系统升级处理,包括:The method of claim 6, wherein the system restarts and enters the first mode, and the upgrade package is extracted from the target storage partition for system upgrade processing, including:
    所述系统重启并进入recovery模式,挂载所述第二优先级的待下载存储分区,从所述第二优先级的待下载存储分区中读取所述升级包进行系统升级处理。The system is restarted and enters the recovery mode, and the storage partition to be downloaded of the second priority is mounted, and the upgrade package is read from the storage partition to be downloaded of the second priority to perform system upgrade processing.
  8. 根据权利要求7所述的方法,其中,所述方法还包括:The method of claim 7 wherein the method further comprises:
    检测到所述系统升级处理结束,在所述recovery模式下删除存储于所述第二优先级的待下载存储分区中的所述升级包。After the system upgrade process is detected, the upgrade package stored in the second priority storage partition to be downloaded is deleted in the recovery mode.
  9. 一种终端,所述终端包括:A terminal, the terminal comprising:
    读取单元,配置为读取升级包的目标存储分区,所述目标存储分区为非缓存cache分区;a reading unit configured to read a target storage partition of the upgrade package, where the target storage partition is a non-cached cache partition;
    第一检测单元,配置为检测所述升级包的存储容量是否小于所述目标存储分区,得到判断结果; a first detecting unit, configured to detect whether a storage capacity of the upgrade package is smaller than the target storage partition, and obtain a determination result;
    下载单元,配置为所述判断结果为所述升级包的存储容量小于所述目标存储分区时,将所述升级包下载存储至所述目标存储分区;a downloading unit, configured to download, when the storage result of the upgrade package is smaller than the target storage partition, to download the upgrade package to the target storage partition;
    第一处理单元,配置为检测到所述升级包下载存储结束,系统重启并进入第一模式,从所述目标存储分区提取所述升级包进行系统升级处理。The first processing unit is configured to detect that the upgrade package download storage ends, the system restarts and enters the first mode, and the upgrade package is extracted from the target storage partition to perform system upgrade processing.
  10. 根据权利要求9所述的终端,其中,所述目标存储分区包括至少一个待下载存储分区;The terminal of claim 9, wherein the target storage partition comprises at least one storage partition to be downloaded;
    所述读取单元,还配置为获取优先级信息,根据所述优先级信息从所述至少一个待下载存储分区中选取作为第一优先级的待下载存储分区,并将所述第一优先级的待下载存储分区作为所述目标存储分区。The reading unit is further configured to acquire priority information, select a storage partition to be downloaded as the first priority from the at least one storage partition to be downloaded according to the priority information, and set the first priority The storage partition to be downloaded is used as the target storage partition.
  11. 根据权利要求10所述的终端,其中,所述下载单元,还配置为所述升级包的存储容量小于所述第一优先级的待下载存储分区时,将所述升级包下载存储至所述第一优先级的待下载存储分区。The terminal according to claim 10, wherein the downloading unit is further configured to download the upgrade package to the storage space when the storage capacity of the upgrade package is smaller than the storage priority of the first priority to be downloaded. The first priority storage partition to be downloaded.
  12. 根据权利要求11所述的终端,其中,所述第一处理单元,还配置为所述系统重启并进入recovery模式,挂载所述第一优先级的待下载存储分区,从所述第一优先级的待下载存储分区中读取所述升级包进行系统升级处理。The terminal according to claim 11, wherein the first processing unit is further configured to restart the system and enter a recovery mode, and mount the first priority storage partition to be downloaded, from the first priority The upgrade package is read in the storage partition to be downloaded for system upgrade processing.
  13. 根据权利要求12所述的终端,其中,所述第一处理单元,还配置为检测到所述系统升级处理结束,在所述recovery模式下删除存储于所述第一优先级的待下载存储分区中的所述升级包。The terminal according to claim 12, wherein the first processing unit is further configured to detect that the system upgrade process ends, and delete the storage partition to be downloaded stored in the first priority in the recovery mode. The upgrade package in .
  14. 根据权利要求10所述的终端,其中,所述读取单元,还配置为所述目标存储分区为所述第一优先级的待下载存储分区时,所述判断结果为所述升级包的存储容量大于所述第一优先级的待下载存储分区,根据所述优先级信息从所述至少一个待下载存储分区中选取作为第二优先级的待下载存储分区,并将所述第二优先级的待下载存储分区作为所述目标存储分区; The terminal according to claim 10, wherein the reading unit is further configured to: when the target storage partition is the first priority storage partition to be downloaded, the determination result is storage of the upgrade package The storage partition to be downloaded having a capacity greater than the first priority, the storage partition to be downloaded as the second priority is selected from the at least one storage partition to be downloaded according to the priority information, and the second priority is selected. The storage partition to be downloaded as the target storage partition;
    所述下载单元,还配置为将所述升级包下载存储至所述第二优先级的待下载存储分区。The downloading unit is further configured to download the upgrade package to the second priority storage partition to be downloaded.
  15. 根据权利要求14所述的终端,其中,所述第一处理单元,还配置为所述系统重启并进入recovery模式,挂载所述第二优先级的待下载存储分区,从所述第二优先级的待下载存储分区中读取所述升级包进行系统升级处理。The terminal according to claim 14, wherein the first processing unit is further configured to restart the system and enter a recovery mode, and mount the second priority storage partition to be downloaded, from the second priority The upgrade package is read in the storage partition to be downloaded for system upgrade processing.
  16. 根据权利要求15所述的终端,其中,所述第一处理单元,还配置为检测到所述系统升级处理结束,在所述recovery模式下删除存储于所述第二优先级的待下载存储分区中的所述升级包。 The terminal according to claim 15, wherein the first processing unit is further configured to detect that the system upgrade process ends, and delete the storage partition to be downloaded stored in the second priority in the recovery mode. The upgrade package in .
PCT/CN2015/087258 2015-05-15 2015-08-17 System upgrade method and terminal WO2016183951A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510249814.3 2015-05-15
CN201510249814.3A CN106293782A (en) 2015-05-15 2015-05-15 A kind of method for upgrading system and terminal

Publications (1)

Publication Number Publication Date
WO2016183951A1 true WO2016183951A1 (en) 2016-11-24

Family

ID=57319233

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/087258 WO2016183951A1 (en) 2015-05-15 2015-08-17 System upgrade method and terminal

Country Status (2)

Country Link
CN (1) CN106293782A (en)
WO (1) WO2016183951A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108984198A (en) * 2018-07-16 2018-12-11 深圳市茁壮网络股份有限公司 A kind of upgrade method and device of android system
CN109947450A (en) * 2019-03-19 2019-06-28 深圳创维-Rgb电子有限公司 System file upgrade method, device, mobile terminal and readable storage medium storing program for executing
CN110399153A (en) * 2019-07-25 2019-11-01 Oppo广东移动通信有限公司 Method for upgrading system, device, terminal and computer readable storage medium
CN110865837A (en) * 2019-11-14 2020-03-06 青岛海信移动通信技术股份有限公司 Method and terminal for upgrading system
CN111522566A (en) * 2020-04-23 2020-08-11 Oppo(重庆)智能科技有限公司 System upgrading method, terminal and storage medium
WO2022095758A1 (en) * 2020-11-04 2022-05-12 华为技术有限公司 Terminal upgrade method and terminal
CN115729586A (en) * 2021-06-15 2023-03-03 荣耀终端有限公司 Operating system upgrade method, apparatus, storage medium, and computer program product

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108845819B (en) * 2018-08-10 2019-10-18 百度在线网络技术(北京)有限公司 Programme upgrade method and device for equipment
CN109391936B (en) * 2018-09-19 2021-04-06 四川长虹电器股份有限公司 OTA upgrade package encryption downloading method
CN111263354B (en) * 2020-01-08 2023-04-21 苏宁智能终端有限公司 OTA differential upgrading method and device
CN111782249B (en) * 2020-07-10 2024-03-29 上海淇毓信息科技有限公司 Method and device for upgrading service function of client and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102215479A (en) * 2011-06-22 2011-10-12 中兴通讯股份有限公司 Method, server and system for downloading and installing upgrade package
EP2500821A1 (en) * 2011-03-18 2012-09-19 Hamilton Sundstrand Corporation Method for downloading software to an electronics product
CN102802083A (en) * 2012-08-24 2012-11-28 乐视网信息技术(北京)股份有限公司 Set top box updating method based on Android system and set top box
CN103473099A (en) * 2013-09-13 2013-12-25 惠州Tcl移动通信有限公司 Software upgrading method and system for mobile terminal
CN103577202A (en) * 2012-07-23 2014-02-12 深圳市中兴移动通信有限公司 Software upgrading method and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6996689B2 (en) * 2003-04-16 2006-02-07 Lsi Logic Corporation Systems and methods for striped storage migration
US20080270811A1 (en) * 2007-04-26 2008-10-30 Super Talent Electronics Inc. Fast Suspend-Resume of Computer Motherboard Using Phase-Change Memory
CN103544031B (en) * 2013-08-27 2017-07-11 Tcl集团股份有限公司 The android system upgrade method and system of multi partition peripheral storage device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2500821A1 (en) * 2011-03-18 2012-09-19 Hamilton Sundstrand Corporation Method for downloading software to an electronics product
CN102215479A (en) * 2011-06-22 2011-10-12 中兴通讯股份有限公司 Method, server and system for downloading and installing upgrade package
CN103577202A (en) * 2012-07-23 2014-02-12 深圳市中兴移动通信有限公司 Software upgrading method and system
CN102802083A (en) * 2012-08-24 2012-11-28 乐视网信息技术(北京)股份有限公司 Set top box updating method based on Android system and set top box
CN103473099A (en) * 2013-09-13 2013-12-25 惠州Tcl移动通信有限公司 Software upgrading method and system for mobile terminal

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108984198A (en) * 2018-07-16 2018-12-11 深圳市茁壮网络股份有限公司 A kind of upgrade method and device of android system
CN109947450A (en) * 2019-03-19 2019-06-28 深圳创维-Rgb电子有限公司 System file upgrade method, device, mobile terminal and readable storage medium storing program for executing
CN110399153A (en) * 2019-07-25 2019-11-01 Oppo广东移动通信有限公司 Method for upgrading system, device, terminal and computer readable storage medium
CN110399153B (en) * 2019-07-25 2023-11-03 Oppo广东移动通信有限公司 System upgrading method, device, terminal and computer readable storage medium
CN110865837A (en) * 2019-11-14 2020-03-06 青岛海信移动通信技术股份有限公司 Method and terminal for upgrading system
CN110865837B (en) * 2019-11-14 2023-08-18 青岛海信移动通信技术有限公司 Method and terminal for system upgrade
CN111522566A (en) * 2020-04-23 2020-08-11 Oppo(重庆)智能科技有限公司 System upgrading method, terminal and storage medium
CN111522566B (en) * 2020-04-23 2023-08-01 Oppo(重庆)智能科技有限公司 System upgrading method, terminal and storage medium
WO2022095758A1 (en) * 2020-11-04 2022-05-12 华为技术有限公司 Terminal upgrade method and terminal
CN115729586A (en) * 2021-06-15 2023-03-03 荣耀终端有限公司 Operating system upgrade method, apparatus, storage medium, and computer program product
CN115729586B (en) * 2021-06-15 2023-10-20 荣耀终端有限公司 Operating system upgrade method, device, storage medium and computer program product

Also Published As

Publication number Publication date
CN106293782A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
WO2016183951A1 (en) System upgrade method and terminal
CN110058873B (en) Application page updating method, device, equipment and storage medium
US10203951B2 (en) Method and terminal for OTA updating
US8954805B2 (en) Computer booting method and computer system
CN105867947B (en) Data processing method and device after preset application program updating
KR101793306B1 (en) Virtual application extension points
CN104008340B (en) Virus scanning and killing method and device
WO2015062389A1 (en) Method and apparatus for uninstalling system application on terminal device
CN107506221B (en) Application program upgrading method, device and equipment
WO2016061978A1 (en) Mobile storage mounting method and device
CN107783776B (en) Processing method and device of firmware upgrade package and electronic equipment
CN110825563B (en) System recovery method and device and electronic equipment
US10467413B2 (en) Method and apparatus of dynamic loading file extraction for an application running in an android container
EP2704004A2 (en) Computing device having a dll injection function, and dll injection method
CN107220074B (en) Method and device for accessing and upgrading supporting layer software function
US20140115571A1 (en) Electronic device, non-transient readable medium and method thereof
CN111263354B (en) OTA differential upgrading method and device
US10318479B2 (en) Method and device for automatically identifying junk file
KR101674975B1 (en) System upgrade method, apparatus, device, program, and recording medium
WO2015103917A1 (en) Management method and apparatus of wireless routing device
US9697668B2 (en) Automatically configurable smart card and method of automatically configuring a smart card
CN106484719B (en) Method and terminal for expanding mobile phone storage
WO2018024198A1 (en) Application upgrade method and system for set-top box, and set-top box
CN109710286B (en) System upgrading method, device, equipment and storage medium
WO2016082450A1 (en) Method for upgrading user terminal, and user terminal

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

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

Country of ref document: EP

Kind code of ref document: A1