WO2014134989A2 - 一种Android终端及其实现升级的方法 - Google Patents

一种Android终端及其实现升级的方法 Download PDF

Info

Publication number
WO2014134989A2
WO2014134989A2 PCT/CN2014/071340 CN2014071340W WO2014134989A2 WO 2014134989 A2 WO2014134989 A2 WO 2014134989A2 CN 2014071340 W CN2014071340 W CN 2014071340W WO 2014134989 A2 WO2014134989 A2 WO 2014134989A2
Authority
WO
WIPO (PCT)
Prior art keywords
upgrade
file
upgrade package
terminal
upgraded
Prior art date
Application number
PCT/CN2014/071340
Other languages
English (en)
French (fr)
Other versions
WO2014134989A3 (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 WO2014134989A2 publication Critical patent/WO2014134989A2/zh
Publication of WO2014134989A3 publication Critical patent/WO2014134989A3/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/654Updates using techniques specially adapted for alterable solid state memories, e.g. for EEPROM or flash memories

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to an Android (--transliteration to "Android") terminal and a method for implementing the same.
  • Android --transliteration to "Android”
  • BACKGROUND As terminal manufacturers develop new applications faster and faster, operators have a shorter cycle of launching new services, and the device management 0TA DM (Over the Air Device Management) is a simple, fast, and effective method. Terminal device upgrade methods are used more and more frequently in actual commercial processes.
  • the application scenarios of the firmware update over the air (FOTA) are increasing, and the upgrade plan is becoming more and more complex, and the upgrade requirements are becoming more and more complicated.
  • the upgrade method for Android terminals in the industry is basically to upgrade the device first, enter the recovery system (Recovery System) mode, and then use the differential upgrade or the full version of the upgrade solution, respectively, to the terminal application layer AP ( Application processor ) Upgrade on the Bootstrap processor side. That is, before actually starting the upgrade, first suspend the normal use of the user, restart the terminal; and then, according to the contents of the upgrade package, the terminal is officially upgraded.
  • recovery system Recovery System
  • AP Application processor
  • the present invention provides an Android terminal and a method for implementing the upgrade thereof, which are used to solve the problem of low efficiency of upgrading the existing upgrade solution.
  • a method for implementing an upgrade of an Android terminal including: parsing a downloaded upgrade package, and extracting an upgrade package file of an application layer AP side and an upgrade package file of a startup layer BP side; The upgrade package file is used to upgrade the file to be upgraded on the AP side, and when the set BP side upgrade trigger condition is triggered, the terminal is restarted, and the upgrade file of the BP side is used to perform the file to be upgraded on the BP side. upgrade.
  • the downloaded upgrade package includes an upgrade package file on the AP side and an upgrade package file on the BP side, and the two upgrade package files are separated by a separation identifier to facilitate the terminal. Extract by class.
  • the upgrade package file of the AP side includes one or more AP side files to be upgraded, and each AP side file to be upgraded according to the path, name, and The upgrade content information is encapsulated in turn, and at the time of encapsulation, a start and end identifier is added before and after each message.
  • the set BP-side upgrade triggering condition includes: when the terminal is in an idle state, when the user initiates an upgrade to the BP side, or when the AP side completes the upgrade.
  • the method of the present invention further includes: when the BP side upgrade fails, the AP side is rolled back to the pre-upgrade state.
  • an Android terminal including: an upgrade package parsing module, configured to parse the downloaded upgrade package, and extract an upgrade package file of the application layer AP side and an upgrade package file of the startup layer BP side;
  • the upgrade module is configured to upgrade the file to be upgraded on the AP side by using the upgrade package file on the AP side, and restart the terminal when the set BP side upgrade trigger condition is triggered, and use the BP side upgrade package.
  • File upgrade the file to be upgraded on the BP side.
  • the downloaded upgrade package includes an upgrade package file on the AP side and an upgrade package file on the BP side, and the two upgrade package files are separated by using a separation identifier to facilitate the terminal. Extract by class.
  • the upgrade package file of the AP side includes one or more AP side files to be upgraded, and each AP side file to be upgraded according to the path, name, and The upgrade content information is encapsulated in turn, and at the time of encapsulation, a start and end identifier is added before and after each message.
  • the BP side upgrade triggering condition set in the upgrade module includes: when the terminal is in an idle state, when the user initiates an upgrade to the BP side, or when the AP side completes the upgrade.
  • the upgrade module is further configured to roll back the AP side to a state before the upgrade when the BP side upgrade fails.
  • the beneficial effects of the present invention are as follows:
  • the solution of the present invention splits the Android terminal upgrade package into an AP side upgrade package and a BP side upgrade package, so that when the Android terminal is upgraded, the AP side can be upgraded in the background first, and then Restart the terminal to upgrade the BP side.
  • This upgrade method not only improves the upgrade efficiency, but also reduces the unavailable time of the terminal.
  • FIG. 1 is a flowchart of an Android terminal upgrade in the related art
  • FIG. 2 is a flowchart of a method for upgrading an Android terminal according to the present invention
  • FIG. 3 is a structural diagram of an upgrade package in the present invention
  • Figure 5 is a structural diagram of an AP side upgrade package file in the present invention
  • Figure 5 is a flowchart of an upgrade in an application example of the present invention
  • Figure 6 is a block diagram of an Android terminal provided by the present invention
  • Another structural block diagram of the terminal is Another structural block diagram of the terminal.
  • An embodiment of the present invention provides a method for implementing an upgrade of an Android terminal. As shown in FIG. 2, the method includes: Step S201, parsing the downloaded upgrade package, and extracting an upgrade package file of the AP side and an upgrade package file of the BP side; In step S202, the file to be upgraded on the AP side is upgraded by using the upgrade package file on the AP side. In step S203, when the set BP side upgrade trigger condition is triggered, the terminal is restarted, and the BP side upgrade package is used.
  • the set BP-side upgrade triggering condition in the step S203 may include, but is not limited to, when the terminal is in an idle state, when the user initiates an upgrade to the BP side, or when the AP side completes the upgrade. .
  • the preferred trigger condition is "when the terminal is in an idle state", so that the user's use is not affected as much as possible.
  • the AP side is rolled back to the pre-upgrade state to ensure the consistency of the terminal upgrade.
  • the method in the above embodiment splits the Android terminal upgrade package into an AP side upgrade package and a BP side upgrade package, so that when the Android terminal is upgraded, the AP side can be upgraded in the background first. Then, at the appropriate time, restart the terminal to upgrade the BP side.
  • This upgrade method not only improves the upgrade efficiency, but also reduces the terminal's unavailable time.
  • several preferred embodiments under the foregoing methods are provided to optimize the implementation process of the method in the foregoing embodiment, which specifically relates to the following:
  • the upgrade package is The upgrade package downloaded by the Android terminal on the server side.
  • the upgrade package in order to enable the Android terminal to conveniently extract the upgrade package file on the AP side and the upgrade package file on the BP side, the upgrade package is preferably divided into two parts, one part is an upgrade package file on the AP side, and the other part is The upgrade package file on the BP side, separated by a separate identifier between the two parts.
  • the specific structure is shown in Figure 3.
  • the structure of the above upgrade package is only a preferred implementation manner.
  • it can also be implemented by labeling different types of upgrade package files.
  • the structure of the new AP side upgrade package file is also provided in the embodiment, which is specifically: the upgrade package file of the AP side.
  • the upgrade package file of the AP side is specifically: the upgrade package file of the AP side.
  • Medium package One or more AP-side files to be upgraded. Each AP-side file to be upgraded is encapsulated according to the path, name, and content of the file to be upgraded. In the case of encapsulation, start and end are added before and after each message. Identifier. The specific structure is shown in Figure 4.
  • the structure of the upgrade package file on the AP side is only a preferred implementation manner.
  • the file to be upgraded on the AP side may be generated according to a certain rule, such as the file size. Wait to classify or name, and then implement the upgrade in a certain order.
  • the difference packet is composed of an AP side upgrade package file and a BP side upgrade package file, which respectively record upgrade information of the AP side and the BP side, and are separated by a specific separation identifier.
  • the upgrade package is created, it is published by the manufacturer to the server for users to download and use. As shown in FIG.
  • the terminal upgrade process described in this application example specifically includes: Step 1: The terminal establishes a data connection with the server, and downloads the upgrade package to the terminal local; Step 2: The terminal removes the upgrade package according to the pre-agreed separator. Divided into AP side and BP side upgrade packages. At the same time, the two upgrade packages will also be verified. If the verification is unsuccessful, go directly to step 6. After the verification is successful, the AP side upgrade package will be further extended, according to the path of the file, the name, and the content to be upgraded. After the information is parsed, the upgrade information of the AP-side upgrade file is obtained. Step 3: After the AP-side upgrade package is parsed, the AP-side upgrade file is upgraded in the background.
  • Step 4 After all AP-side files are upgraded, According to the set BP-side upgrade triggering condition, it is determined whether the BP side is to be upgraded. When the BP side needs to be upgraded, the user is prompted to restart the terminal to complete the subsequent upgrade process. Step 5: Restart the terminal and upgrade the terminal BP side version to the target version status according to the content of the BP side upgrade package. If the upgrade fails, the AP is rolled back to the pre-upgrade state. Step 6: Report the server upgrade result, and the process ends.
  • the Android terminal upgrade solution provided by the embodiment of the present invention can effectively improve the upgrade efficiency, shorten the time that the user cannot use the terminal, and improve the user experience.
  • the embodiment of the present invention further provides an Android terminal.
  • the method includes: an upgrade package parsing module 610, configured to parse the downloaded upgrade package, and extract an upgrade package file of the application layer AP side. And the upgrade package file of the boot layer BP side; the upgrade module 620 is coupled to the upgrade package parsing module 610, and is configured to use the upgrade package file of the AP side to upgrade the file to be upgraded on the AP side, and set the BP
  • the terminal is restarted, and the upgrade file of the BP side is used to upgrade the file to be upgraded on the BP side.
  • the set BP side upgrade triggering condition may include, but is not limited to, when the terminal is in an idle state, when the user initiates an upgrade to the BP side, or when the AP side completes the upgrade.
  • the preferred trigger condition is "when the terminal is in an idle state", so that the user's use is not affected as much as possible.
  • the upgrade module 620 is further configured to roll back the AP side to the pre-upgrade state when the upgrade of the BP side fails to ensure the consistency of the terminal upgrade.
  • the Android terminal in the above embodiment splits the upgrade package into an AP side upgrade package and a BP side upgrade package, so that when the Android terminal is upgraded, the AP side can be upgraded in the background first.
  • the upgrade package is The upgrade package downloaded by the Android terminal on the server side.
  • the upgrade package in order to enable the Android terminal to conveniently extract the upgrade package file on the AP side and the upgrade package file on the BP side, the upgrade package is preferably divided into two parts, one part is an upgrade package file on the AP side, and the other part is The upgrade package file on the BP side, separated by a separate identifier between the two parts.
  • the specific structure is shown in Figure 3.
  • the structure of the new AP side upgrade package file is also provided in the embodiment, which is specifically: the upgrade package file of the AP side.
  • the AP side file to be upgraded includes one or more AP side files to be upgraded.
  • the Android terminal in this application example includes: a protocol module, an upgrade package parsing module, and an upgrade module.
  • the protocol module is responsible for the protocol communication interaction with the server and the download of the upgrade package.
  • the upgrade package parsing module is responsible for parsing the upgrade package into an AP side upgrade package and a BP side upgrade package; finally, the upgrade module is responsible for the upgrade package.

Landscapes

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

Abstract

本发明公开了一种Android终端及其实现升级的方法,所述方法包括:解析下载的升级包,提取出应用层AP侧的升级包文件和启动层BP侧的升级包文件;利用所述AP侧的升级包文件,对所述AP侧的待升级文件进行升级,并在设定的BP侧升级触发条件被触发时,重启终端,利用所述BP侧的升级包文件,对所述BP侧的待升级文件进行升级。本发明所述方案将Android终端升级包拆分为AP侧升级包和BP侧升级包,使得在对Android终端进行升级时,可以将AP侧先在后台进行升级,然后再重启终端升级BP侧,这种升级方式不仅提升了升级效率,同时还减少了终端的不可用时间。

Description

一种 Android终端及其实现升级的方法 技术领域 本发明涉及通信技术领域, 尤其涉及一种 Android (—般音译为 "安卓") 终端及 其实现升级的方法。 背景技术 随着终端制造商开发新应用的速度越来越快,运营商推出新业务的周期越来越短, 空口设备管理 0TA DM ( Over the Air Device Management)作为一种简便、 快捷、有效 的终端设备升级方式, 在实际商用过程中使用也越来越频繁。 目前运营商实际升级时 使用固件空口升级技术 FOTA (Firmware Update Over the Air) 的应用场景日益增加, 升级方案日渐丰富,升级需求也日趋复杂。 FOTA的一大特点就是终端(尤其是 Android 智能机)升级包的尺寸大小越来越大, 升级越来越耗时, 用户体验差。针对这种弊端, 如何有效的提升终端升级效率, 缩短升级时间, 逐渐成为亟待解决的问题。 目前业界对于 Android终端的升级方法, 基本上都是在进行升级时, 首先重启设 备, 进入恢复系统 (Recovery System) 模式, 然后再采用差分升级或全版本的升级方 案, 分别对终端应用层 AP (Application processor ) 启动层 BP (Bootstrap processor) 侧进行升级。 即需要在真正开始升级之前, 首先暂停用户正常使用, 重启终端; 然后, 再根据升级包的内容, 对终端进行正式的升级。 在升级时, 需要依次对 BP 侧及 AP 侧进行升级。 当二者都升级完毕后, 才能启动终端到主系统 (main system) 状态, 使 得用户可以继续正常使用。 其大致流程如图 1所示。 然而, 这种方式存在着如下的缺 点: 在整个升级过程中, 终端一直处于不可用状态, 期间用户完全不能使用。 随着升 级包大小的增大, 升级时间也将随之拉长, 用户不能使用的时间也会变长, 影响用户 体验。 综上所述, 可以看到当前业界对于 Android终端升级的主流方案, 存在升级效率 低, 升级时用户不可用时间长的弊端, 在升级包越来越大的今天, 这种弊端也越来越 明显。 发明内容 本发明提供一种 Android终端及其实现升级的方法, 用以解决现有升级方案升级 效率低的问题。 依据本发明的一个方面, 提供一种 Android终端实现升级的方法, 包括: 解析下载的升级包,提取出应用层 AP侧的升级包文件和启动层 BP侧的升级包文 件; 利用所述 AP侧的升级包文件, 对 AP侧的待升级文件进行升级, 并在设定的 BP 侧升级触发条件被触发时, 重启终端, 利用所述 BP侧的升级包文件, 对 BP侧的待升 级文件进行升级。 可选地, 本发明所述方法中, 所述下载的升级包内包含 AP侧的升级包文件和 BP 侧的升级包文件, 且两个升级包文件间使用分隔标识符隔开, 以便于终端按类提取。 可选地, 本发明所述方法中, 所述 AP侧的升级包文件中包含一个或多个需要升 级的 AP侧文件, 每个需要升级的 AP侧文件均按照文件的路径、名称、 以及待升级内 容信息依次封装, 且在封装时, 在每个信息前后添加开始和结束标识符。 可选地, 本发明所述方法中, 所述设定的 BP侧升级触发条件包括: 终端处于空 闲状态时、 用户主动发起对 BP侧进行升级时、 或者在 AP侧完成升级时。 可选地, 本发明所述方法还包括: 当 BP侧升级失败时, 将 AP侧回退到升级前的 状态。 依据本发明的另一个方面, 还提供一种 Android终端, 包括: 升级包解析模块, 设置为解析下载的升级包, 提取出应用层 AP侧的升级包文件 和启动层 BP侧的升级包文件; 升级模块,设置为利用所述 AP侧的升级包文件,对 AP侧的待升级文件进行升级, 并在设定的 BP侧升级触发条件被触发时, 重启终端, 利用所述 BP侧的升级包文件, 对 BP侧的待升级文件进行升级。 可选地, 本发明所述终端中, 所述下载的升级包内包含 AP侧的升级包文件和 BP 侧的升级包文件, 且两个升级包文件间使用分隔标识符隔开, 以便于终端按类提取。 可选地, 本发明所述终端中, 所述 AP侧的升级包文件中包含一个或多个需要升 级的 AP侧文件, 每个需要升级的 AP侧文件均按照文件的路径、名称、 以及待升级内 容信息依次封装, 且在封装时, 在每个信息前后添加开始和结束标识符。 可选地, 本发明所述终端中, 所述升级模块中设定的 BP侧升级触发条件包括: 终端处于空闲状态时、 用户主动发起对 BP侧进行升级时、 或者在 AP侧完成升级时。 可选地, 本发明所述终端中, 所述升级模块, 还设置为当 BP侧升级失败时, 将 AP侧回退到升级前的状态。 本发明有益效果如下: 本发明所述方案将 Android终端升级包拆分为 AP侧升级包和 BP侧升级包,使得 在对 Android终端进行升级时, 可以将 AP侧先在后台进行升级, 然后再重启终端升 级 BP侧, 这种升级方式不仅提升了升级效率, 同时还减少了终端的不可用时间。 附图说明 通过阅读下文优选实施方式的详细描述, 各种其他的优点和益处对于本领域普通 技术人员将变得清楚明了。 附图仅用于示出优选实施方式的目的, 而并不认为是对本 发明的限制。 而且在整个附图中, 用相同的参考符号表示相同的部件。 在附图中: 图 1为相关技术中 Android终端升级流程图; 图 2为本发明提供的一种 Android终端实现升级的方法的流程图; 图 3为本发明中升级包的结构图; 图 4为本发明中 AP侧升级包文件的结构图; 图 5为本发明应用示例中升级流程图; 图 6为本发明提供的一种 Android终端的结构框图; 图 7为本发明提供的一种 Android终端的又一结构框图。 具体实施方式 下面将参照附图更详细地描述本公开的示例性实施例。 虽然附图中显示了本公开 的示例性实施例, 然而应当理解, 可以以各种形式实现本公开而不应被这里阐述的实 施例所限制。 相反, 提供这些实施例是为了能够更透彻地理解本公开, 并且能够将本 公开的范围完整的传达给本领域的技术人员。 本发明实施例提供一种 Android终端实现升级的方法, 如图 2所示, 所述方法包 括- 步骤 S201, 解析下载的升级包, 提取出 AP侧的升级包文件和 BP侧的升级包文 件; 步骤 S202, 利用所述 AP侧的升级包文件, 对 AP侧的待升级文件进行升级; 步骤 S203, 在设定的 BP侧升级触发条件被触发时, 重启终端, 利用所述 BP侧 的升级包文件, 对 BP侧的待升级文件进行升级。 在具体实施过程中, 该步骤 S203中所述设定的 BP侧升级触发条件可以包括但不 限于为: 终端处于空闲状态时、用户主动发起对 BP侧进行升级时、或者在 AP侧完成 升级时。 优选的触发条件为"终端处于空闲状态时", 这样可以尽量不影响用户使用。 作为一种优选的实施方式, 该步骤中, 当 BP侧升级失败时, 将 AP侧回退到升级 前的状态, 以保证终端升级的一致性。 综上所述, 可知以上实施例中的所述方法将 Android终端升级包拆分为 AP侧升 级包和 BP侧升级包, 使得在对 Android终端进行升级时, 可以将 AP侧先在后台进行 升级, 然后再在适当的时机重启终端升级 BP侧, 这种升级方式不仅提升了升级效率, 同时还减少了终端的不可用时间。 基于上述实施原理, 下面给出在上述方法下的几个优选实施方式, 用以优化以上 实施例中的所述方法的实施过程, 具体涉及如下内容: 本实施例中, 所述的升级包为 Android终端在服务器端下载的升级包。 在本实施 例中, 为了使 Android终端方便地提取出 AP侧的升级包文件和 BP侧的升级包文件, 优选地, 将升级包分成两部分, 一部分为 AP侧的升级包文件, 另一部分为 BP侧的升 级包文件, 且两部分间用分隔标识符隔开。 具体结构如图 3所示。 当然, 上述升级包的结构仅是一种较优的实施方式, 为了便于 Android终端按类 提取升级包, 还可以通过对不同类型的升级包文件进行标注的方式来实现。 本实施例 在此不对所有方式进行穷举, 但本领域技术人员容易想到的任何便于终端提取出 AP 侧升级包和 BP侧升级包的方式均在本发明的保护思想范围内。 进一步地, 为了在实际升级过程中能更好的掌控 AP升级的进度, 本实施例中还 给出一种新型的 AP侧升级包文件的结构形式,具体为:所述 AP侧的升级包文件中包 含一个或多个需要升级的 AP侧文件, 每个需要升级的 AP侧文件均按照文件的路径、 名称、 以及待升级内容信息依次封装, 且在封装时, 在每个信息前后添加开始和结束 标识符。 具体结构如图 4所示。 也就是说, 在实际升级场景下, AP侧可能有多个应用需要升级, 在升级过程中, 可能存在不能一次性把 AP侧需要升级的应用都升级完的情况, 而有了图 4这样的记 录之后, 就能明了当前的升级进度, 便于 AP侧继续升级。 当然, 上述 AP侧的升级包文件的结构仅是一种较优的实施方式, 为了便于掌控 AP升级的进度, 还可以采用先将 AP侧的待升级文件按照一定的规律如文件大小, 生 成时间等来分类或命名, 再按照某种顺序执行升级的方式来实现。 本实施例在此不对 所有方式进行穷举, 但本领域技术人员容易想到的任何便于终端掌控 AP升级进度的 方式均在本发明的保护思想范围内。
基于上述实施过程, 下面给出一具体的应用示例, 用以更清楚的阐述以上方法的 实施过程。 本应用示例中, 在开始整个升级流程前, 需要首先制作出从原始版本升级到目标 版本的差分包。该差分包由 AP侧升级包文件和 BP侧升级包文件组成, 它们分别记录 AP侧和 BP侧的升级信息, 并由特定的分隔标识符分隔开。 升级包制作完成后, 由制 造商发布到服务器上, 供用户下载使用。 如图 5所示, 本应用示例所述的终端升级流程具体包括: 步骤 1 : 终端与服务器建立数据连接, 下载升级包到终端本地; 步骤 2: 终端根据事先约定的分隔符, 将升级包拆分成 AP侧和 BP侧升级包。 同 时, 也将对这两个升级包进行校验, 如果校验不成功, 则直接转到步骤 6; 校验成功 后, 将进一步对 AP侧升级包, 按照文件的路径, 名称, 待升级内容等信息进行解析, 获取各 AP侧待升级文件的升级信息; 步骤 3: AP侧升级包解析完毕后,开始在后台依次对 AP侧待升级文件进行升级; 步骤 4: 所有 AP侧文件升级完毕后, 按照设定的 BP侧升级触发条件, 判断是否 要对 BP侧进行升级, 当需要对 BP侧进行升级时, 提示用户将重启终端完成后续升级 流程; 步骤 5: 重启终端, 按照 BP侧升级包的内容将终端 BP侧版本升级到目标版本状 态。 如果升级失败, 则将 AP侧回退到升级前的状态; 步骤 6: 上报服务器升级结果, 流程结束。 综上所述, 根据本发明实施例提供的所述 Android终端升级方案, 可以有效提升 升级效率, 缩短用户不能使用终端的时间, 改善用户体验。
与方法实施例相对应, 本发明实施例还提供一种 Android终端, 如图 6所示, 包 括- 升级包解析模块 610,设置为解析下载的升级包,提取出应用层 AP侧的升级包文 件和启动层 BP侧的升级包文件; 升级模块 620,耦合至升级包解析模块 610,设置为利用所述 AP侧的升级包文件, 对 AP侧的待升级文件进行升级,并在设定的 BP侧升级触发条件被触发时,重启终端, 利用所述 BP侧的升级包文件, 对 BP侧的待升级文件进行升级。 在具体实施过程中, 所述设定的 BP侧升级触发条件可以包括但不限于为: 终端 处于空闲状态时、用户主动发起对 BP侧进行升级时、或者在 AP侧完成升级时。优选 的触发条件为 "终端处于空闲状态时", 这样可以尽量不影响用户使用。 进一步地, 本实施例中, 升级模块 620, 还设置为当 BP侧升级失败时, 将 AP侧 回退到升级前的状态, 以保证终端升级的一致性。 综上所述, 可知以上实施例中的所述 Android终端将升级包拆分为 AP侧升级包 和 BP侧升级包,使得在对 Android终端进行升级时,可以将 AP侧先在后台进行升级, 然后再在适当的时机重启终端升级 BP侧, 这种升级方式不仅提升了升级效率, 同时 还减少了终端的不可用时间。 基于上述实施原理, 下面给出在上述结构下的几个优选实施方式, 用以优化以上 实施例中的所述 Android终端的功能, 具体涉及如下内容: 本实施例中, 所述的升级包为 Android终端在服务器端下载的升级包。 在本实施 例中, 为了使 Android终端方便地提取出 AP侧的升级包文件和 BP侧的升级包文件, 优选地, 将升级包分成两部分, 一部分为 AP侧的升级包文件, 另一部分为 BP侧的升 级包文件, 且两部分间用分隔标识符隔开。 具体结构如图 3所示。 进一步地, 为了在实际升级过程中能更好的掌控 AP升级的进度, 本实施例中还 给出一种新型的 AP侧升级包文件的结构形式,具体为:所述 AP侧的升级包文件中包 含一个或多个需要升级的 AP侧文件, 每个需要升级的 AP侧文件均按照文件的路径、 名称、 以及待升级内容信息依次封装, 且在封装时, 在每个信息前后添加开始和结束 标识符。 具体结构如图 4所示。 基于上述实施过程, 下面给出一具体的应用示例, 用以更清楚的阐述以上方案的 实施过程。 如图 7所示, 本应用示例中 Android终端包括: 协议桟模块, 升级包解析 模块和升级模块。 其中, 协议桟模块负责和服务器的协议通讯交互及升级包的下载; 下载成功后,升级包解析模块负责将升级包解析成 AP侧升级包和 BP侧升级包;最后, 由升级模块负责升级包的校验, 并在用户使用过程中, 在后台先进行 AP侧升级包的 安装, 然后在适当的时机重启终端进行 BP侧的升级。 当二者都升级成功后, 引导终 端进入 main system模式, 供用户正常使用。 显然, 本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精 神和范围。 这样, 倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的 范围之内, 则本发明也意图包含这些改动和变型在内。

Claims

权 利 要 求 书 、 一种 Android终端实现升级的方法, 包括:
解析下载的升级包,提取出应用层 AP侧的升级包文件和启动层 BP侧的升 级包文件;
利用所述 AP侧的升级包文件, 对所述 AP侧的待升级文件进行升级, 并 在设定的 BP侧升级触发条件被触发时,重启终端,利用所述 BP侧的升级包文 件, 对所述 BP侧的待升级文件进行升级。 、 如权利要求 1所述的方法, 其中, 所述下载的升级包内包含所述 AP侧的升级 包文件和所述 BP侧的升级包文件, 且两个升级包文件间使用分隔标识符隔开, 以便于终端按类提取。 、 如权利要求 1或 2所述的方法, 其中, 所述 AP侧的升级包文件中包含一个或 多个需要升级的 AP侧文件, 每个需要升级的 AP侧文件均按照文件的路径、 名称、 以及待升级内容信息依次封装, 且在封装时, 在每个信息前后添加开始 和结束标识符。 、 如权利要求 1所述的方法, 其中, 所述设定的 BP侧升级触发条件包括: 终端 处于空闲状态时、用户主动发起对所述 BP侧进行升级时、或者在所述 AP侧完 成升级时。 、 如权利要求 1或 4所述的方法, 其中, 所述方法还包括: 当所述 BP侧升级失 败时, 将所述 AP侧回退到升级前的状态。 、 一种 Android终端, 包括:
升级包解析模块, 设置为解析下载的升级包, 提取出应用层 AP侧的升级 包文件和启动层 BP侧的升级包文件;
升级模块, 设置为利用所述 AP侧的升级包文件, 对所述 AP侧的待升级 文件进行升级, 并在设定的 BP侧升级触发条件被触发时, 重启终端, 利用所 述 BP侧的升级包文件, 对所述 BP侧的待升级文件进行升级。 、 如权利要求 6所述的终端, 其中, 所述下载的升级包内包含所述 AP侧的升级 包文件和所述 BP侧的升级包文件, 且两个升级包文件间使用分隔标识符隔开, 以便于终端按类提取。 、 如权利要求 6或 7所述的终端, 其中, 所述 AP侧的升级包文件中包含一个或 多个需要升级的 AP侧文件, 每个需要升级的 AP侧文件均按照文件的路径、 名称、 以及待升级内容信息依次封装, 且在封装时, 在每个信息前后添加开始 和结束标识符。 、 如权利要求 6所述的终端, 其中, 所述升级模块中, 设定的 BP侧升级触发条 件包括: 终端处于空闲状态时、 用户主动发起对所述 BP侧进行升级时、 或者 在所述 AP侧完成升级时。 、 如权利要求 6或 9所述的终端, 其中, 所述升级模块, 还设置为当所述 BP侧 升级失败时, 将所述 AP侧回退到升级前的状态。
PCT/CN2014/071340 2013-11-07 2014-01-24 一种Android终端及其实现升级的方法 WO2014134989A2 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310549660.0 2013-11-07
CN201310549660.0A CN104636153A (zh) 2013-11-07 2013-11-07 一种Android终端及其实现升级的方法

Publications (2)

Publication Number Publication Date
WO2014134989A2 true WO2014134989A2 (zh) 2014-09-12
WO2014134989A3 WO2014134989A3 (zh) 2014-10-30

Family

ID=51492051

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/071340 WO2014134989A2 (zh) 2013-11-07 2014-01-24 一种Android终端及其实现升级的方法

Country Status (2)

Country Link
CN (1) CN104636153A (zh)
WO (1) WO2014134989A2 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108829423A (zh) * 2018-06-28 2018-11-16 广州视源电子科技股份有限公司 Android设备的系统升级方法、装置、设备和存储介质

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105354065B (zh) * 2015-11-28 2019-01-15 东莞酷派软件技术有限公司 一种多产品软件升级方法及终端
CN106201586B (zh) * 2016-06-28 2019-12-20 青岛海信移动通信技术股份有限公司 一种基于ota的系统升级方法及终端、系统
CN106802813B (zh) * 2016-12-06 2020-04-17 智车优行科技(北京)有限公司 用于空中固件升级的方法、装置及车辆
CN112312213A (zh) * 2019-07-30 2021-02-02 青岛海信传媒网络技术有限公司 数字电视系统的升级方法及相关装置
CN112312212B (zh) * 2019-07-30 2022-11-22 Vidaa(荷兰)国际控股有限公司 数字电视系统的升级方法及相关装置
CN110990036A (zh) * 2019-11-12 2020-04-10 上海钧正网络科技有限公司 换电柜ota升级方法、装置、换电设备和存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102196411A (zh) * 2010-03-01 2011-09-21 乐金电子(中国)研究开发中心有限公司 一种移动通信终端及升级通信软件的方法
US8046753B1 (en) * 2003-06-18 2011-10-25 Hewlett-Packard Development Company, L.P. Mobile handset with symbian OS and update agent
CN102646046A (zh) * 2012-04-13 2012-08-22 深圳市同洲电子股份有限公司 一种升级方法和终端
CN102983980A (zh) * 2012-11-05 2013-03-20 山东大学 一种基于嵌入式操作系统的上网装置及其工作方法
CN103136008A (zh) * 2011-11-29 2013-06-05 中兴通讯股份有限公司 智能终端协同处理器的固件更新方法和装置

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102830984B (zh) * 2011-06-14 2016-07-06 联想(北京)有限公司 固件更新的方法、芯片以及通信终端

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8046753B1 (en) * 2003-06-18 2011-10-25 Hewlett-Packard Development Company, L.P. Mobile handset with symbian OS and update agent
CN102196411A (zh) * 2010-03-01 2011-09-21 乐金电子(中国)研究开发中心有限公司 一种移动通信终端及升级通信软件的方法
CN103136008A (zh) * 2011-11-29 2013-06-05 中兴通讯股份有限公司 智能终端协同处理器的固件更新方法和装置
CN102646046A (zh) * 2012-04-13 2012-08-22 深圳市同洲电子股份有限公司 一种升级方法和终端
CN102983980A (zh) * 2012-11-05 2013-03-20 山东大学 一种基于嵌入式操作系统的上网装置及其工作方法

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108829423A (zh) * 2018-06-28 2018-11-16 广州视源电子科技股份有限公司 Android设备的系统升级方法、装置、设备和存储介质
CN108829423B (zh) * 2018-06-28 2022-04-15 广州视源电子科技股份有限公司 Android设备的系统升级方法、装置、设备和存储介质

Also Published As

Publication number Publication date
CN104636153A (zh) 2015-05-20
WO2014134989A3 (zh) 2014-10-30

Similar Documents

Publication Publication Date Title
WO2014134989A2 (zh) 一种Android终端及其实现升级的方法
WO2017067448A1 (zh) 一种无线固件升级方法、系统及计算机存储介质
WO2017193640A1 (zh) 应用更新方法和装置
US20170206079A1 (en) Method and Device for Upgrading Software
WO2019062635A1 (zh) 升级方法和装置
WO2017071207A1 (zh) 一种应用安装方法、相关装置及应用安装系统
TWI533216B (zh) 作業系統更新方法
WO2011127860A2 (zh) 启动应用的方法、服务器和系统
CN106843933A (zh) 一种应用程序的漏洞修复方法、移动终端及补丁服务器
WO2011127845A2 (zh) 一种移动通信终端间进行系统升级的方法、系统及终端
WO2014146256A1 (zh) 一种升级方法、智能终端及升级系统
WO2015051647A1 (zh) 一种固件的升级方法和系统、上位机和光模块
WO2012022072A1 (zh) 终端操作的触发方法、装置及系统
WO2007118419A1 (fr) Procédé et dispositif de mise à jour d'un logiciel
WO2013189312A1 (zh) 升级包生成方法和装置、动态文件差分升级的方法和终端
WO2011006378A1 (zh) 无线数据卡的升级方法和系统
WO2016078060A1 (zh) 用于多系统终端的系统升级方法、升级装置和终端
WO2009117921A1 (zh) 分布式网络管理系统、网管服务器和方法
CN104918114A (zh) 一种操作系统升级方法及装置
CN105260209A (zh) 一种程序热更新解决方法
WO2010081323A1 (zh) 一种单板应用版本的实现方法及系统
KR20150079837A (ko) 시스템 업그레이드 방법, 장치, 기기, 프로그램 및 기록매체
WO2017016282A1 (zh) 软件升级方法及装置、计算机存储介质
WO2014161278A1 (zh) 一种移动终端及其升级方法
WO2015176468A1 (zh) 一种智能终端的系统软件恢复的方法及装置

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

Country of ref document: EP

Kind code of ref document: A2

NENP Non-entry into the national phase in:

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14761219

Country of ref document: EP

Kind code of ref document: A2