[go: up one dir, main page]

CN105373399A - System upgrade method and device for mobile terminal - Google Patents

System upgrade method and device for mobile terminal Download PDF

Info

Publication number
CN105373399A
CN105373399A CN201510658938.7A CN201510658938A CN105373399A CN 105373399 A CN105373399 A CN 105373399A CN 201510658938 A CN201510658938 A CN 201510658938A CN 105373399 A CN105373399 A CN 105373399A
Authority
CN
China
Prior art keywords
mobile terminal
upgrade
script
aku
upgrade package
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510658938.7A
Other languages
Chinese (zh)
Inventor
田小华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510658938.7A priority Critical patent/CN105373399A/en
Publication of CN105373399A publication Critical patent/CN105373399A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44536Selecting among different versions

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephonic Communication Services (AREA)
  • Telephone Function (AREA)
  • Stored Programmes (AREA)

Abstract

本发明公开了一种移动终端的系统升级方法和装置,其中,所述方法包括:获取升级包,其中,升级包包括校检脚本和升级脚本;执行校检脚本以判断升级包与移动终端是否匹配;如果升级包与移动终端匹配,则执行升级脚本以对移动终端的系统进行升级。本发明实施例的移动终端的系统升级方法,避免出现不必要的升级异常状况,降低了不必要的重启异常升级状况的出现,减少了开发升级报的工作量,提升了用户体验。

The present invention discloses a system upgrade method and device for a mobile terminal, wherein the method comprises: obtaining an upgrade package, wherein the upgrade package comprises a check script and an upgrade script; executing the check script to determine whether the upgrade package matches the mobile terminal; if the upgrade package matches the mobile terminal, executing the upgrade script to upgrade the system of the mobile terminal. The system upgrade method for a mobile terminal in an embodiment of the present invention avoids unnecessary upgrade abnormalities, reduces the occurrence of unnecessary restart abnormal upgrade conditions, reduces the workload of developing upgrade reports, and improves user experience.

Description

移动终端的系统升级方法和装置System upgrade method and device for mobile terminal

技术领域technical field

本发明涉及移动终端制造技术领域,尤其涉及一种移动终端的系统升级方法和装置。The invention relates to the technical field of mobile terminal manufacturing, in particular to a method and device for system upgrading of a mobile terminal.

背景技术Background technique

随着移动终端的普及,手机、平板电脑、个人数字助理等移动终端需要不定期的进行系统升级。目前,对Android安卓操作系统的移动终端进行系统升级时对对升级包的密钥、移动终端的型号等的校验都是在recovery模式(一种对安卓操作系统的移动终端内部的数据或系统进行修改的模式)下进行的,如果用户使用不匹配的升级包甚至是非升级包进行升级,则会出现升级异常的情况,而用户只能看到关于升级失败的相关提示,并不知道升级失败的细节情况,导致用户体验差。With the popularization of mobile terminals, mobile terminals such as mobile phones, tablet computers, and personal digital assistants need to be upgraded irregularly. At present, when the mobile terminal of the Android operating system is upgraded, the verification of the key of the upgrade package, the model of the mobile terminal, etc. is all in the recovery mode (a kind of internal data or system of the mobile terminal of the Android operating system). Modification mode), if the user upgrades with a mismatched upgrade package or even a non-upgrade package, an upgrade exception will occur, and the user can only see the relevant prompts about the upgrade failure, and does not know that the upgrade failed The details of the situation lead to poor user experience.

发明内容Contents of the invention

本发明旨在至少在一定程度上解决上述的技术问题之一。The present invention aims to solve one of the above-mentioned technical problems at least to a certain extent.

为此,本发明的第一个目的在于提出一种移动终端的系统升级方法,该方法避免出现不必要的升级异常状况,降低了不必要的重启异常升级状况的出现,减少了开发升级报的工作量,提升了用户体验。For this reason, the first object of the present invention is to propose a system upgrade method for a mobile terminal, which avoids unnecessary upgrade exceptions, reduces unnecessary restart abnormal upgrades, and reduces the time spent on developing upgrade reports. workload and improved user experience.

本发明的第二个目的在于提出了一种移动终端的系统升级装置。The second object of the present invention is to provide a system upgrade device for a mobile terminal.

为达上述目的,本发明的第一个实施例提出了一种移动终端的系统升级方法,包括:获取升级包,其中,所述升级包包括校检脚本和升级脚本;执行所述校检脚本以判断所述升级包与所述移动终端是否匹配;如果所述升级包与所述移动终端匹配,则执行所述升级脚本以对所述移动终端的系统进行升级。To achieve the above purpose, the first embodiment of the present invention proposes a system upgrade method for a mobile terminal, including: obtaining an upgrade package, wherein the upgrade package includes a check script and an upgrade script; executing the check script to determine whether the upgrade package matches the mobile terminal; if the upgrade package matches the mobile terminal, execute the upgrade script to upgrade the system of the mobile terminal.

本发明实施例的移动终端的系统升级方法,在制作升级包时将升级包的校验部分分离出来,即将校验脚本和升级脚本分开,在移动终端升级操作系统时,通过执行校验脚本过滤掉不符合要求的升级包,在执行升级脚本升级操作系统,从而避免出现不必要的升级异常状况,降低了不必要的重启异常升级状况的出现,减少了开发升级报的工作量,提升了用户体验。The system upgrade method of the mobile terminal in the embodiment of the present invention separates the verification part of the upgrade package when making the upgrade package, that is, separates the verification script from the upgrade script, and when the mobile terminal upgrades the operating system, filters the Delete the upgrade package that does not meet the requirements, and execute the upgrade script to upgrade the operating system, thereby avoiding unnecessary upgrade exceptions, reducing the occurrence of unnecessary restart abnormal upgrades, reducing the workload of developing upgrade reports, and improving user experience. experience.

另外,在本发明的一个实施例中,如果所述升级包与所述移动终端不匹配,则拒绝执行所述升级脚本以拒绝对所述移动终端的系统进行升级。In addition, in an embodiment of the present invention, if the upgrade package does not match the mobile terminal, then refuse to execute the upgrade script to refuse to upgrade the system of the mobile terminal.

在本发明的一个实施例中,执行所述校检脚本以判断所述升级包与所述移动终端是否匹配具体包括:比较所述升级包与所述移动终端的型号是否匹配;比较所述升级包与所述移动终端的签名是否匹配;比较所述升级包中补丁文件与所述移动终端是否匹配;判断所述移动终端是否root。In one embodiment of the present invention, executing the checking script to determine whether the upgrade package matches the mobile terminal specifically includes: comparing whether the upgrade package matches the model of the mobile terminal; comparing the upgrade Whether the package matches the signature of the mobile terminal; compares whether the patch file in the upgrade package matches the mobile terminal; and determines whether the mobile terminal is rooted.

进一步地,在本发明的一个实施例中,在执行所述升级脚本以对所述移动终端的系统进行升级之前,还包括:将执行所述校检脚本成功的所述升级包显示给用户,并获取所述用户对所述升级包的选择操作。Further, in an embodiment of the present invention, before executing the upgrade script to upgrade the system of the mobile terminal, it further includes: displaying the upgrade package that successfully executes the check script to the user, And obtain the user's selection operation on the upgrade package.

另外,在本发明的一个实施例中,所述升级脚本包括补丁文件合成操作、权限设置操作和格式化操作中的一种或者多种。In addition, in an embodiment of the present invention, the upgrade script includes one or more of a patch file synthesis operation, a permission setting operation, and a formatting operation.

为达上述目的,本发明第二方面的实施例提出了一种移动终端的系统的升级装置,包括:获取模块,用于获取升级包,其中,所述升级包包括校检脚本和升级脚本;第一执行模块,用于执行所述校检脚本以判断所述升级包与所述移动终端是否匹配;第二执行模块,用于当所述升级包与所述移动终端匹配时,执行所述升级脚本以对所述移动终端的系统进行升级。To achieve the above purpose, the embodiment of the second aspect of the present invention proposes an upgrade device for a mobile terminal system, including: an acquisition module for acquiring an upgrade package, wherein the upgrade package includes a check script and an upgrade script; The first execution module is used to execute the checking script to determine whether the upgrade package matches the mobile terminal; the second execution module is used to execute the check script when the upgrade package matches the mobile terminal. The upgrade script is used to upgrade the system of the mobile terminal.

本发明实施例的移动终端的系统升级装置,在制作升级包时将升级包的校验部分分离出来,即将校验脚本和升级脚本分开,在移动终端升级操作系统时,通过执行校验脚本过滤掉不符合要求的升级包,在执行升级脚本升级操作系统,从而避免出现不必要的升级异常状况,降低了不必要的重启异常升级状况的出现,减少了开发升级报的工作量,提升了用户体验。。The system upgrade device of the mobile terminal in the embodiment of the present invention separates the verification part of the upgrade package when making the upgrade package, that is, the verification script and the upgrade script are separated, and when the mobile terminal upgrades the operating system, the verification script is executed to filter the Delete the upgrade package that does not meet the requirements, and execute the upgrade script to upgrade the operating system, thereby avoiding unnecessary upgrade exceptions, reducing the occurrence of unnecessary restart abnormal upgrades, reducing the workload of developing upgrade reports, and improving user experience. experience. .

另外,在本发明的一个实施例中,所述第二执行模块还用于当所述升级包与所述移动终端不匹配时,拒绝执行所述升级脚本以拒绝对所述移动终端的系统进行升级。In addition, in an embodiment of the present invention, the second execution module is further configured to refuse to execute the upgrade script to refuse to perform the upgrade on the system of the mobile terminal when the upgrade package does not match the mobile terminal. upgrade.

在本发明的一个实施例中,所述第一执行模块具体用于:比较所述升级包与所述移动终端的型号是否匹配;比较所述升级包与所述移动终端的签名是否匹配;比较所述升级包中补丁文件与所述移动终端是否匹配;判断所述移动终端是否root。In an embodiment of the present invention, the first execution module is specifically configured to: compare whether the upgrade package matches the model of the mobile terminal; compare whether the upgrade package matches the signature of the mobile terminal; compare Whether the patch file in the upgrade package matches the mobile terminal; judging whether the mobile terminal is rooted.

进一步地,在本发明的一个实施例中,该移动终端的系统升级装置还包括:显示模块,用于将执行所述校检脚本成功的所述升级包显示给用户,并获取所述用户对所述升级包的选择操作。Further, in one embodiment of the present invention, the system upgrade device of the mobile terminal further includes: a display module, configured to display to the user the upgrade package that successfully executes the check script, and obtain the user's opinion on The selection operation of the upgrade package.

另外,在本发明的一个实施例中,所述升级脚本包括补丁文件合成操作、权限设置操作和格式化操作中的一种或者多种。In addition, in an embodiment of the present invention, the upgrade script includes one or more of a patch file synthesis operation, a permission setting operation, and a formatting operation.

本发明附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明的实践了解到。Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.

附图说明Description of drawings

本发明上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present invention will become apparent and easy to understand from the following description of the embodiments in conjunction with the accompanying drawings, wherein:

图1是根据本发明一个实施例的移动终端的系统升级方法的流程图;FIG. 1 is a flow chart of a system upgrade method for a mobile terminal according to an embodiment of the present invention;

图2是根据本发明一个具体实施例的移动终端的系统升级方法的流程图;FIG. 2 is a flow chart of a system upgrade method for a mobile terminal according to a specific embodiment of the present invention;

图3是根据本发明另一个具体实施例的移动终端的系统升级方法的流程图;FIG. 3 is a flow chart of a system upgrade method for a mobile terminal according to another specific embodiment of the present invention;

图4是根据本发明一个实施例的移动终端的系统升级装置的结构框图;以及FIG. 4 is a structural block diagram of a system upgrading device for a mobile terminal according to an embodiment of the present invention; and

图5是根据本发明一个具体实施例的移动终端的系统升级装置的结构框图。Fig. 5 is a structural block diagram of a system upgrading device for a mobile terminal according to a specific embodiment of the present invention.

具体实施方式detailed description

下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本发明,而不能理解为对本发明的限制。Embodiments of the present invention are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals designate the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary and are intended to explain the present invention and should not be construed as limiting the present invention.

此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本发明的描述中,“多个”的含义是两个或两个以上,除非另有明确具体的限定。In addition, the terms "first" and "second" are used for descriptive purposes only, and cannot be interpreted as indicating or implying relative importance or implicitly specifying the quantity of indicated technical features. Thus, a feature defined as "first" and "second" may explicitly or implicitly include one or more of these features. In the description of the present invention, "plurality" means two or more, unless otherwise specifically defined.

流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或更多个用于实现特定逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本发明的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本发明的实施例所属技术领域的技术人员所理解。Any process or method descriptions in flowcharts or otherwise described herein may be understood to represent modules, segments or portions of code comprising one or more executable instructions for implementing specific logical functions or steps of the process , and the scope of preferred embodiments of the invention includes alternative implementations in which functions may be performed out of the order shown or discussed, including substantially concurrently or in reverse order depending on the functions involved, which shall It is understood by those skilled in the art to which the embodiments of the present invention pertain.

下面参考附图描述本发明实施例的移动终端的系统升级方法和装置。The method and device for system upgrading of a mobile terminal according to the embodiments of the present invention will be described below with reference to the accompanying drawings.

图1为根据本发明一个实施例的移动终端的系统升级方法的流程图。需要说明的是,本发明实施例中的移动终端可以是手机、平板电脑、个人数字助理等具有各种操作系统且支持系统升级的硬件设备。另外,实施例的移动终端的系统升级方法适用于安卓操作系统的移动终端。FIG. 1 is a flow chart of a system upgrade method for a mobile terminal according to an embodiment of the present invention. It should be noted that the mobile terminal in the embodiment of the present invention may be a mobile phone, a tablet computer, a personal digital assistant, and other hardware devices that have various operating systems and support system upgrades. In addition, the method for upgrading the system of the mobile terminal in the embodiment is applicable to mobile terminals with an Android operating system.

如图1所示,该移动终端的系统升级方法包括:As shown in Figure 1, the system upgrade method of the mobile terminal includes:

S110,获取升级包,其中,升级包包括校验脚本和升级脚本。S110. Obtain an upgrade package, where the upgrade package includes a verification script and an upgrade script.

具体地,在本发明的实施例中,服务提供商在制作升级包时预先将升级包的脚本进行分离,将对升级包进行校验的部分脚本分离出来,即服务提供商制作的升级包中包括校验脚本和升级脚本。其中,校验脚本包括校验移动终端型号和名称的匹配、移动终端是否root、签名是否匹配、以及升级的补丁patch文件是否匹配等操作。升级脚本则包括补丁文件合成操作、权限设置操作、文件删除和格式化等操作的一种或者多种。Specifically, in the embodiment of the present invention, the service provider separates the script of the upgrade package in advance when making the upgrade package, and separates the part of the script that verifies the upgrade package, that is, the script in the upgrade package produced by the service provider Including verification scripts and upgrade scripts. Wherein, the verification script includes operations such as verifying the matching of the mobile terminal model and name, whether the mobile terminal is rooted, whether the signature matches, and whether the updated patch file matches. The upgrade script includes one or more operations of patch file composition, permission setting, file deletion and formatting.

S120,执行校验脚本以判断升级包与移动终端是否匹配。S120. Execute a verification script to determine whether the upgrade package matches the mobile terminal.

具体地,移动终端在获取到升级包以后,首先执行校验脚本以判断升级包与移动终端是否匹配,即通过执行校验脚本过滤掉与移动终端不匹配的升级包。其中,判断升级包与移动终端是否匹配具体包括:比较升级包与移动终端的型号是否匹配、比较升级包与移动终端的签名是否匹配、比较升级包中的补丁文件与移动终端是否匹配以及判断移动终端是否root等。Specifically, after obtaining the upgrade package, the mobile terminal first executes a verification script to determine whether the upgrade package matches the mobile terminal, that is, filters out upgrade packages that do not match the mobile terminal by executing the verification script. Wherein, judging whether the upgrade package matches the mobile terminal specifically includes: comparing whether the upgrade package matches the model of the mobile terminal, comparing whether the upgrade package matches the signature of the mobile terminal, comparing whether the patch file in the upgrade package matches the mobile terminal, and judging whether the mobile terminal matches. Whether the terminal is root, etc.

可以看出,服务提供商制作的升级包中校验脚本和升级脚本是分开的,用户在对移动终端的操作系统进行升级时,在对升级包进行扫描时先执行校验脚本以判断升级包与移动终端的机型、签名等是否匹配,对满足条件的升级包执行重启操作进入recovery模式,再执行升级脚本进行操作系统的升级。It can be seen that the verification script and the upgrade script in the upgrade package made by the service provider are separated. When the user upgrades the operating system of the mobile terminal, the verification script is first executed when scanning the upgrade package to determine the upgrade package. Whether it matches the model and signature of the mobile terminal, execute the restart operation on the upgrade package that meets the conditions to enter the recovery mode, and then execute the upgrade script to upgrade the operating system.

S130,如果升级包与移动终端匹配,则执行升级脚本以对移动终端的系统进行升级。S130, if the upgrade package matches the mobile terminal, execute the upgrade script to upgrade the system of the mobile terminal.

具体地,如果判断升级包与移动终端相匹配,则执行重启操作进入recovery模式,并执行升级脚本进行补丁文件合成、权限设置、文件删除和格式化等针对操作系统的升级操作。Specifically, if it is judged that the upgrade package matches the mobile terminal, a restart operation is performed to enter the recovery mode, and an upgrade script is executed to perform upgrade operations for the operating system such as patch file synthesis, permission setting, file deletion, and formatting.

另外,根据本发明的实施例,如果升级包与移动终端不匹配,则拒绝执行升级脚本以拒绝对移动终端的系统进行升级。In addition, according to the embodiment of the present invention, if the upgrade package does not match the mobile terminal, the execution of the upgrade script is refused to refuse to upgrade the system of the mobile terminal.

进而,在升级脚本执行完毕后,重启移动终端,在移动终端的状态栏提醒用户升级成功,或者升级失败(例如文件合成异常,权限设置异常)。Furthermore, after the upgrade script is executed, the mobile terminal is restarted, and the user is reminded in the status bar of the mobile terminal that the upgrade is successful, or the upgrade fails (such as abnormal file synthesis, abnormal permission setting).

本发明实施例的移动终端的系统升级方法,在制作升级包时将升级包的校验部分分离出来,即将校验脚本和升级脚本分开,在移动终端升级操作系统,通过执行校验脚本过滤掉不符合要求的升级包,在执行升级脚本升级操作系统,从而避免出现不必要的升级异常状况,降低了不必要的重启异常升级状况的出现,减少了开发升级报的工作量,提升了用户体验。The system upgrade method of the mobile terminal in the embodiment of the present invention separates the verification part of the upgrade package when making the upgrade package, that is, separates the verification script from the upgrade script, upgrades the operating system on the mobile terminal, and filters out the verification part by executing the verification script. For the upgrade package that does not meet the requirements, the upgrade script is executed to upgrade the operating system, thereby avoiding unnecessary upgrade exceptions, reducing unnecessary restart abnormal upgrade situations, reducing the workload of developing upgrade reports, and improving user experience .

图2为根据本发明一个具体实施例的移动终端的系统升级方法的流程图。Fig. 2 is a flow chart of a system upgrade method for a mobile terminal according to a specific embodiment of the present invention.

具体地,如图2所示,本发明实施例的移动终端的系统升级方法包括:Specifically, as shown in FIG. 2, the system upgrade method of the mobile terminal according to the embodiment of the present invention includes:

S210,获取升级包,其中升级包包括校验脚本和升级脚本。S210. Obtain an upgrade package, where the upgrade package includes a verification script and an upgrade script.

S220,执行校验脚本以判断升级包与移动终端是否匹配。S220. Execute the verification script to determine whether the upgrade package matches the mobile terminal.

S230,如果升级包与移动终端匹配,将执行校验脚本成功的升级包显示给用户,并获得用户对升级包的选择操作,然后执行升级脚本以对移动终端的系统进行升级。S230, if the upgrade package matches the mobile terminal, display the upgrade package successfully executed by the verification script to the user, obtain the user's selection operation on the upgrade package, and then execute the upgrade script to upgrade the system of the mobile terminal.

具体地,如果判断升级包与移动终端相匹配,则将校验成功的升级包显示给用户,由用户选择需要执行升级操作的升级包,然后执行重启操作进入recovery模式,再执行升级脚本进行操作系统的升级。Specifically, if it is judged that the upgrade package matches the mobile terminal, the successfully verified upgrade package is displayed to the user, and the user selects the upgrade package that needs to perform the upgrade operation, and then executes the restart operation to enter the recovery mode, and then executes the upgrade script for operation System upgrades.

根据本发明的实施例的移动终端的系统升级方法,将通过校验的符合要求的升级包显示给用户,用户可以根据自身的需求选择需要执行的升级包,由此可以进一步提升用户体验。According to the system upgrade method of the mobile terminal in the embodiment of the present invention, the upgrade package that passes the verification and meets the requirements is displayed to the user, and the user can select the upgrade package to be executed according to his own needs, thereby further improving user experience.

为了使得本领域的技术人员更加清楚的了解本发明,下面举例说明,图3是根据本发明又一个具体实施例的移动终端的系统的升级方法的流程图。In order to make those skilled in the art understand the present invention more clearly, an example is given below. FIG. 3 is a flow chart of a method for upgrading a system of a mobile terminal according to another specific embodiment of the present invention.

举例而言,如图3所示,在制作升级包时先对升级包进行分离,分别产生校验脚本和升级脚本(S310),之后系统进行升级包扫描,对后缀为zip的升级包执行校验脚本(S320),对升级包进行机型名称匹配等检测,接下来如果校验成功,则显示升级包,否则忽略显示,例如给予用户机型不匹配等提示(S330),进一步地,用户选择升级包,移动终端进入重启模式,并且执行升级脚本以进行系统升级(S340),重启后,通过在移动终端的状态栏显示是否升级成功(S350),从而完成对移动终端的系统升级(S360)。For example, as shown in Figure 3, when the upgrade package is made, the upgrade package is first separated to generate a verification script and an upgrade script (S310), and then the system scans the upgrade package, and executes the verification process for the upgrade package whose suffix is zip. Check the script (S320), carry out the detection such as model name matching to the upgrade package, then if the verification is successful, then display the upgrade package, otherwise ignore the display, such as giving the user a prompt such as model mismatch (S330), further, the user Select the upgrade package, the mobile terminal enters the restart mode, and executes the upgrade script to carry out the system upgrade (S340). After restarting, the status bar of the mobile terminal displays whether the upgrade is successful (S350), thereby completing the system upgrade of the mobile terminal (S360 ).

为了实现上述实施例,本发明还提出了一种移动终端的系统升级装置。In order to realize the above embodiments, the present invention also proposes a system upgrading device for a mobile terminal.

图4为根据本发明一个实施例的移动终端的系统升级装置的结构框图。如图4所示,该移动终端的系统升级装置包括:获取模块400、第一执行模块420和第二执行模块430。Fig. 4 is a structural block diagram of a system upgrading device for a mobile terminal according to an embodiment of the present invention. As shown in FIG. 4 , the system upgrade device of the mobile terminal includes: an acquisition module 400 , a first execution module 420 and a second execution module 430 .

其中,获取模块410用于获取升级包,其中,升级包包括校验脚本和升级脚本。具体地,在本发明的实施例中,服务提供商在制作升级包时预先将升级包的脚本进行分离,将对升级包进行校验的部分脚本分离出来,即服务提供商制作的升级包中包括校验脚本和升级脚本,然后获取模块400获取上述升级包。其中,校验脚本包括校验移动终端型号和名称的匹配、移动终端是否root、签名是否匹配、以及升级的补丁patch文件是否匹配等操作。升级脚本则包括补丁文件合成操作、权限设置操作、文件删除和格式化等操作的一种或者多种。Wherein, the acquiring module 410 is used to acquire an upgrade package, wherein the upgrade package includes a verification script and an upgrade script. Specifically, in the embodiment of the present invention, the service provider separates the script of the upgrade package in advance when making the upgrade package, and separates the part of the script that verifies the upgrade package, that is, the script in the upgrade package produced by the service provider It includes a verification script and an upgrade script, and then the obtaining module 400 obtains the above-mentioned upgrade package. Wherein, the verification script includes operations such as verifying the matching of the mobile terminal model and name, whether the mobile terminal is rooted, whether the signature matches, and whether the updated patch file matches. The upgrade script includes one or more operations of patch file composition, permission setting, file deletion and formatting.

第一执行模块420,用于执行校验脚本以判断升级包与移动终端是否匹配。具体地,在获取模块410获取到升级包以后,首先第一执行模块420执行校验脚本以判断升级包与移动终端是否匹配,即通过执行校验脚本过滤掉与移动终端不匹配的升级包。其中,第一执行模块420用于比较升级包与移动终端的型号是否匹配、比较升级包与移动终端的签名是否匹配、比较升级包中的补丁文件与移动终端是否匹配以及判断移动终端是否root等。The first execution module 420 is configured to execute the verification script to determine whether the upgrade package matches the mobile terminal. Specifically, after the acquisition module 410 acquires the upgrade package, first the first execution module 420 executes the verification script to determine whether the upgrade package matches the mobile terminal, that is, filters out upgrade packages that do not match the mobile terminal by executing the verification script. Wherein, the first execution module 420 is used to compare whether the upgrade package matches the model of the mobile terminal, compares whether the upgrade package matches the signature of the mobile terminal, compares whether the patch file in the upgrade package matches the mobile terminal, and determines whether the mobile terminal is rooted, etc. .

可以看出,服务提供商制作的升级包中校验脚本和升级脚本是分开的,用户在对移动终端的操作系统进行升级时,第一执行模块420在对升级包进行扫描时先执行校验脚本以判断升级包与移动终端的机型、签名等是否匹配,对满足条件的升级包执行重启操作进入recovery模式,第二执行模块430再执行升级脚本进行操作系统的升级。It can be seen that the verification script and the upgrade script in the upgrade package produced by the service provider are separated. When the user upgrades the operating system of the mobile terminal, the first execution module 420 first executes the verification script when scanning the upgrade package. The script judges whether the upgrade package matches the model and signature of the mobile terminal, executes a restart operation on the upgrade package that meets the conditions to enter the recovery mode, and the second execution module 430 executes the upgrade script to upgrade the operating system.

第二执行模块430用于当升级包与移动终端匹配时,执行升级脚本以对移动终端的系统进行升级。具体地,如果第一执行模块420判断升级包与移动终端相匹配,则第二执行模块430执行重启操作进入recovery模式,并执行升级脚本进行补丁文件合成、权限设置、文件删除和格式化等针对操作系统的升级操作。The second execution module 430 is configured to execute an upgrade script to upgrade the system of the mobile terminal when the upgrade package matches the mobile terminal. Specifically, if the first execution module 420 judges that the upgrade package matches the mobile terminal, the second execution module 430 performs a restart operation to enter the recovery mode, and executes the upgrade script to perform patch file synthesis, permission setting, file deletion and formatting, etc. Operating system upgrade operations.

在本发明的一个实施例中,如果第一执行模块420判断升级包与移动终端不匹配,则通过第二执行模块430拒绝执行升级脚本以拒绝对移动终端的系统进行升级。In one embodiment of the present invention, if the first execution module 420 judges that the upgrade package does not match the mobile terminal, the second execution module 430 refuses to execute the upgrade script to refuse to upgrade the system of the mobile terminal.

进而,在升级脚本执行完毕后,重启移动终端,在移动终端的状态栏提醒用户升级成功,或者升级失败(例如文件合成异常,权限设置异常)。Furthermore, after the upgrade script is executed, the mobile terminal is restarted, and the user is reminded in the status bar of the mobile terminal that the upgrade is successful, or the upgrade fails (such as abnormal file synthesis, abnormal permission setting).

本发明实施例的移动终端的系统升级装置,在制作升级包时将升级包的校验部分分离出来,即将校验脚本和升级脚本分开,在移动终端升级操作系统,通过执行校验脚本过滤掉不符合要求的升级包,在执行升级脚本升级操作系统,从而避免出现不必要的升级异常状况,降低了不必要的重启异常升级状况的出现,减少了开发升级报的工作量,提升了用户体验。The system upgrade device of the mobile terminal in the embodiment of the present invention separates the verification part of the upgrade package when making the upgrade package, that is, separates the verification script from the upgrade script, upgrades the operating system on the mobile terminal, and filters out the verification part by executing the verification script. For the upgrade package that does not meet the requirements, the upgrade script is executed to upgrade the operating system, thereby avoiding unnecessary upgrade exceptions, reducing unnecessary restart abnormal upgrade situations, reducing the workload of developing upgrade reports, and improving user experience .

图5为根据本发明一个具体实施例的移动终端的系统升级装置的结构框图。Fig. 5 is a structural block diagram of a system upgrading device for a mobile terminal according to a specific embodiment of the present invention.

具体地,如图5所示,该移动终端的系统升级装置包括:获取模块400、第一执行模块420、第二执行模块430和显示模块440。Specifically, as shown in FIG. 5 , the system upgrade apparatus of the mobile terminal includes: an acquisition module 400 , a first execution module 420 , a second execution module 430 and a display module 440 .

其中,显示模块440用于当升级包与移动终端匹配时,将执行校验脚本成功的升级包显示给用户,并获得用户对升级包的选择操作,然后执行升级脚本以对移动终端的系统进行升级。Wherein, the display module 440 is used for when the upgrade package matches the mobile terminal, the upgrade package that executes the verification script successfully is displayed to the user, and obtains the user's selection operation on the upgrade package, and then executes the upgrade script to update the system of the mobile terminal upgrade.

具体地,如果第一执行模块420判断升级包与移动终端相匹配,则显示模块430将校验成功的升级包显示给用户,由用户选择需要执行升级操作的升级包,然后第二执行模块440执行重启操作进入recovery模式,再执行升级脚本进行操作系统的升级。Specifically, if the first execution module 420 judges that the upgrade package matches the mobile terminal, the display module 430 displays the upgrade package that has been verified successfully to the user, and the user selects the upgrade package that needs to perform the upgrade operation, and then the second execution module 440 Execute the restart operation to enter the recovery mode, and then execute the upgrade script to upgrade the operating system.

根据本发明的实施例的移动终端的系统升级装置,将通过第一执行模块校验的符合要求的升级包通过显示模块显示给用户,用户可以根据自身的需求选择需要执行的升级包,由此可以进一步提升用户体验。According to the system upgrade device of the mobile terminal in the embodiment of the present invention, the upgrade package that meets the requirements verified by the first execution module is displayed to the user through the display module, and the user can select the upgrade package that needs to be executed according to his own needs, thus The user experience can be further improved.

应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that various parts of the present invention can be realized by hardware, software, firmware or their combination. In the embodiments described above, various steps or methods may be implemented by software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented by any one or combination of the following techniques known in the art: Discrete logic circuits, ASICs with suitable combinational logic gates, programmable gate arrays (PGAs), field programmable gate arrays (FPGAs), etc.

在本发明中,除非另有明确的规定和限定,术语“安装”、“相连”、“连接”、等术语应做广义理解,例如,可以是固定连接,也可以是可拆卸连接,或成一体;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通或两个元件的相互作用关系,除非另有明确的限定。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本发明中的具体含义。In the present invention, unless otherwise clearly specified and limited, the terms "installation", "connection", "connection" and other terms should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or a Integral; it may be mechanically connected or electrically connected; it may be directly connected or indirectly connected through an intermediary, and it may be the internal communication of two elements or the interaction relationship between two elements, unless otherwise clearly defined. Those of ordinary skill in the art can understand the specific meanings of the above terms in the present invention according to specific situations.

在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或多个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of this specification, descriptions referring to the terms "one embodiment", "some embodiments", "example", "specific examples", or "some examples" mean that specific features described in connection with the embodiment or example , structure, material or characteristic is included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the described specific features, structures, materials or characteristics may be combined in any suitable manner in any one or more embodiments or examples. In addition, those skilled in the art can combine and combine different embodiments or examples and features of different embodiments or examples described in this specification without conflicting with each other.

尽管上面已经示出和描述了本发明的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本发明的限制,本领域的普通技术人员在本发明的范围内可以对上述实施例进行变化、修改、替换和变型。Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and should not be construed as limiting the present invention, those skilled in the art can make the above-mentioned The embodiments are subject to changes, modifications, substitutions and variations.

Claims (10)

1. a method for upgrading system for mobile terminal, is characterized in that, comprises the following steps:
Obtain AKU, wherein, described AKU comprises school inspection script and upgrade script;
Perform described school inspection script to judge whether described AKU mates with described mobile terminal;
If described AKU is mated with described mobile terminal, then perform described upgrade script to upgrade to the system of described mobile terminal.
2. the method for upgrading system of mobile terminal as claimed in claim 1, is characterized in that, at execution described school inspection script with after judging whether described AKU mates with described mobile terminal, also comprises:
If described AKU is not mated with described mobile terminal, then refusal performs described upgrade script to refuse to upgrade to the system of described mobile terminal.
3. the method for upgrading system of mobile terminal as claimed in claim 1 or 2, is characterized in that, performs described school inspection script and specifically comprises to judge whether described AKU mates with described mobile terminal:
Whether more described AKU mates with the model of described mobile terminal;
Whether more described AKU mates with the signature of described mobile terminal;
In more described AKU, whether patch file mates with described mobile terminal;
Judge described mobile terminal whether root.
4. the method for upgrading system of mobile terminal as claimed in claim 1, is characterized in that, at the described upgrade script of execution with before upgrading to the system of described mobile terminal, also comprises:
Described for the execution school successful described AKU of inspection script is shown to user, and obtains described user the selection of described AKU is operated.
5. the method for upgrading system of the mobile terminal as described in any one of claim 1-4, is characterized in that, described upgrade script comprise patch file synthetic operation, priority assignation operation and format manipulation in one or more.
6. a system upgrade device for mobile terminal, is characterized in that, comprising:
Acquisition module, for obtaining AKU, wherein, described AKU comprises school inspection script and upgrade script;
First execution module, for performing described school inspection script to judge whether described AKU mates with described mobile terminal;
Second execution module, for when described AKU is mated with described mobile terminal, performs described upgrade script to upgrade to the system of described mobile terminal.
7. the system upgrade device of mobile terminal as claimed in claim 6, is characterized in that, described second execution module also for:
When described AKU is not mated with described mobile terminal, refusal performs described upgrade script and upgrades to the system of described mobile terminal with refusal.
8. the system upgrade device of mobile terminal as claimed in claims 6 or 7, is characterized in that, described first execution module specifically for:
Whether more described AKU mates with the model of described mobile terminal;
Whether more described AKU mates with the signature of described mobile terminal;
In more described AKU, whether patch file mates with described mobile terminal;
Judge described mobile terminal whether root.
9. the system upgrade device of mobile terminal as claimed in claim 6, is characterized in that, also comprise:
Display module, for described for the execution school successful described AKU of inspection script is shown to user, and obtains described user and operates the selection of described AKU.
10. the system upgrade device of the mobile terminal as described in any one of claim 6-9, is characterized in that, described upgrade script comprise patch file synthetic operation, priority assignation operation and format manipulation in one or more.
CN201510658938.7A 2015-10-13 2015-10-13 System upgrade method and device for mobile terminal Pending CN105373399A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510658938.7A CN105373399A (en) 2015-10-13 2015-10-13 System upgrade method and device for mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510658938.7A CN105373399A (en) 2015-10-13 2015-10-13 System upgrade method and device for mobile terminal

Publications (1)

Publication Number Publication Date
CN105373399A true CN105373399A (en) 2016-03-02

Family

ID=55375626

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510658938.7A Pending CN105373399A (en) 2015-10-13 2015-10-13 System upgrade method and device for mobile terminal

Country Status (1)

Country Link
CN (1) CN105373399A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107025119A (en) * 2017-03-06 2017-08-08 山东大学 A kind of multiple method of Android intelligent terminal system software hot repair
CN107526574A (en) * 2016-06-20 2017-12-29 阿里巴巴集团控股有限公司 The control method and device of system start-up mode
CN112698846A (en) * 2020-12-30 2021-04-23 麒麟软件有限公司 Method and system for automatically installing patch in Linux system
CN113377410A (en) * 2021-06-09 2021-09-10 湖北亿咖通科技有限公司 Vehicle machine system, upgrading method, readable storage medium and computer program product

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101494930A (en) * 2009-02-25 2009-07-29 宇龙计算机通信科技(深圳)有限公司 Intelligent terminal and upgrading method thereof
WO2009093768A1 (en) * 2008-01-25 2009-07-30 Fasoo. Com Co., Ltd System and method for preventing drm client crash using process separate execution
CN101706723A (en) * 2009-09-25 2010-05-12 厦门敏讯信息技术股份有限公司 Realization method for avoiding error edition upgrading and upgrading system platform of embedded mobile terminal
CN103530154A (en) * 2013-10-12 2014-01-22 北京神州绿盟信息安全科技股份有限公司 Method and equipment for product upgrading

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009093768A1 (en) * 2008-01-25 2009-07-30 Fasoo. Com Co., Ltd System and method for preventing drm client crash using process separate execution
CN101494930A (en) * 2009-02-25 2009-07-29 宇龙计算机通信科技(深圳)有限公司 Intelligent terminal and upgrading method thereof
CN101706723A (en) * 2009-09-25 2010-05-12 厦门敏讯信息技术股份有限公司 Realization method for avoiding error edition upgrading and upgrading system platform of embedded mobile terminal
CN103530154A (en) * 2013-10-12 2014-01-22 北京神州绿盟信息安全科技股份有限公司 Method and equipment for product upgrading

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107526574A (en) * 2016-06-20 2017-12-29 阿里巴巴集团控股有限公司 The control method and device of system start-up mode
CN107025119A (en) * 2017-03-06 2017-08-08 山东大学 A kind of multiple method of Android intelligent terminal system software hot repair
CN112698846A (en) * 2020-12-30 2021-04-23 麒麟软件有限公司 Method and system for automatically installing patch in Linux system
CN112698846B (en) * 2020-12-30 2024-04-09 麒麟软件有限公司 Method and system for automatically installing patches in Linux system
CN113377410A (en) * 2021-06-09 2021-09-10 湖北亿咖通科技有限公司 Vehicle machine system, upgrading method, readable storage medium and computer program product

Similar Documents

Publication Publication Date Title
US20180048473A1 (en) Software authentication before software update
CN104156244B (en) A kind of method and apparatus of software upgrading
CN107239288B (en) Version upgrading method and device for mobile terminal
CN104978271B (en) A pressure measurement method and system for automatic upgrade of Android system
WO2017161947A1 (en) Multi-system ota upgrade method and multi-system device
CN105373399A (en) System upgrade method and device for mobile terminal
CN105302708A (en) Mobile terminal and detection method thereof
CN112312212B (en) Upgrading method and related device for digital television system
WO2019140656A1 (en) Firmware upgrade method and apparatus, electronic device and control device
CN105812404A (en) Data upgrading method and device for vehicle diagnosis equipment and vehicle diagnosis equipment
CN111538523A (en) Differential upgrading method, device and storage medium
CN110687888A (en) Automatic upgrading test device and system applied to locomotive
CN105430445A (en) Smart TV startup method and device
WO2018024198A1 (en) Application upgrade method and system for set-top box, and set-top box
CN111427601A (en) Method and device for automatically upgrading BIOS in batches, computer equipment and storage medium
CN105307195A (en) Method and device for updating access point name (APN) parameter
CN106210877A (en) The method for upgrading system of intelligent television and device
CN115515012B (en) Key burning method, device, electronic equipment board and storage medium
CN105045671B (en) The method for upgrading system and device of a kind of intelligent terminal
CN111158729A (en) System upgrading method, device, equipment and storage medium
CN107479929A (en) Method for upgrading software, device and equipment
CN112346760B (en) Application upgrade method, system, device and storage medium
WO2012031474A1 (en) Method and device for starting up terminal equipment
CN109002305B (en) Method and system for updating equipment program
CN116339768A (en) Upgrading method, device and system of vehicle-mounted camera, entertainment host and medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160302