CN112463199A - System upgrading method and terminal - Google Patents

System upgrading method and terminal Download PDF

Info

Publication number
CN112463199A
CN112463199A CN201910847944.5A CN201910847944A CN112463199A CN 112463199 A CN112463199 A CN 112463199A CN 201910847944 A CN201910847944 A CN 201910847944A CN 112463199 A CN112463199 A CN 112463199A
Authority
CN
China
Prior art keywords
image file
upgrading
target image
terminal
upgrade
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
CN201910847944.5A
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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co 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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201910847944.5A priority Critical patent/CN112463199A/en
Publication of CN112463199A publication Critical patent/CN112463199A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/658Incremental updates; Differential updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/63Image based installation; Cloning; Build to order

Abstract

The present invention relates to the field of communications technologies, and in particular, to a system upgrade method and a terminal. The method is used for solving the problem that the system upgrading time is too long in the prior art. The terminal is used for determining that the downloading of the system upgrading package is completed and extracting the upgrading patch file from the system upgrading package; synthesizing a target image file for upgrading the system based on the upgrade patch file and an original image file in the system, and storing the target image file in a non-upgrade partition; and when the system is determined to enter the recovery mode, reading the target image files and writing the target image files into the memory partitions corresponding to the image files to finish system upgrading. The terminal leads the time-consuming operation of synthesizing the target image file in the recovery mode to the terminal in the running process and synthesizes the target image file through the background service, and the system only needs to read the synthesized target image file and write the target image file into the memory partition corresponding to each image file after entering the recovery mode, so that the system upgrading time can be reduced.

Description

System upgrading method and terminal
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a system upgrade method and a terminal.
Background
With the continuous development of communication technology, terminals such as mobile phones, computers, network televisions and the like are increasingly popularized. Due to the continuous change of the use requirements of the operating system built in the terminal, the system built in the same terminal usually needs to be continuously upgraded so as to ensure the normal operation of the terminal system.
In the SYSTEM upgrading process of the existing terminal, taking an Android SYSTEM as an example, after a user downloads an upgrade package, the user firstly enters a recovery mode, extracts a patch file in the recovery mode, synthesizes and generates a new image file based on the extracted patch file and an original image file, and then writes the generated new image file into a corresponding partition of a memory, such as SYSTEM, BOOT, VENDOR, MODEM and the like, so as to complete the upgrading process. The stay time in the recovery mode in the upgrading process is generally too long, and the user experience is seriously influenced.
Disclosure of Invention
The invention relates to the technical field of communication, in particular to a system upgrading method and a terminal, which are used for solving the problem of overlong system upgrading time in the prior art.
Based on the foregoing problems, in a first aspect, an embodiment of the present invention provides a system upgrade method, including:
determining that the system upgrade package is downloaded, and extracting an upgrade patch file from the system upgrade package;
synthesizing a target image file for upgrading the system based on the upgrade patch file and the original image file in the system, and storing the target image file in the non-upgrade partition;
and when the system is determined to enter the recovery mode, reading the target image files and writing the target image files into the memory partitions corresponding to the image files to finish system upgrading.
In a second aspect, an embodiment of the present invention provides a terminal, including at least one processing unit and at least one storage unit;
wherein the storage unit stores a computer program which, when executed by the processing unit, causes the processing unit to perform the following:
determining that the system upgrade package is downloaded, and extracting an upgrade patch file from the system upgrade package;
synthesizing a target image file for upgrading the system based on the upgrade patch file and the original image file in the system, and storing the target image file in the non-upgrade partition;
and when the system is determined to enter the recovery mode, reading the target image files and writing the target image files into the memory partitions corresponding to the image files to finish system upgrading.
In a third aspect, an embodiment of the present invention provides a system upgrading apparatus, including:
the extraction module is used for determining that the downloading of the system upgrading package is finished and extracting the upgrading patch file from the system upgrading package;
the synthesis module is used for synthesizing a target image file for upgrading the system based on the upgrade patch file and the original image file in the system, and storing the target image file in the non-upgrade partition;
and the upgrading module is used for reading the target image files and writing the target image files into the memory partitions corresponding to the image files when the system is determined to enter the recovery mode, so that the system is upgraded.
In a fourth aspect, an embodiment of the present invention provides a computer storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the method according to the first aspect.
According to the system upgrading scheme provided by the embodiment of the invention, after the system upgrading package is downloaded, the terminal extracts the upgrading patch file, synthesizes the target image file for upgrading the system based on the upgrading patch file and the original image file in the system, stores the target image file in the non-upgrading partition, and reads the synthesized target image file and writes the target image file into the corresponding memory partition of each image file when the system is determined to enter the recovery mode, so that the system upgrading is completed. According to the scheme, time-consuming operation of synthesizing the target image file in the recovery mode is advanced to the terminal operation process and synthesized through the background service, and the system only needs to read the synthesized target image file and write the target image file into the memory partition corresponding to each image file after entering the recovery mode, so that the system upgrading time can be shortened, and the terminal is not in the recovery mode in the process of synthesizing the target image file, so that the normal use of the terminal is not influenced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic architecture diagram of a communication system according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a terminal according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a mobile phone according to an embodiment of the present invention;
FIG. 4 is a complete flow chart of a system upgrade method according to an embodiment of the present invention;
FIG. 5 is a schematic flow diagram of a prior art system upgrade scheme;
fig. 6 is a schematic flowchart of a system upgrading method according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a terminal for performing system upgrade according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a system upgrading apparatus according to an embodiment of the present invention.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Some terms appearing herein are explained below:
1. the term "terminal" in the embodiment of the present invention is a device that can install various applications and can display an object provided in an installed application, and the terminal device may be mobile or fixed. For example, a mobile phone, a tablet computer, various wearable devices, a vehicle-mounted device, a Personal Digital Assistant (PDA), a point of sale (POS), or other terminal devices capable of implementing the above functions.
2. An application, a computer program that can perform one or more specific tasks, has a visual display interface and can interact with a user.
The embodiment of the invention provides a system upgrading scheme which can be used in a scene of system upgrading of a terminal. And after the system upgrade package is downloaded, the terminal extracts the upgrade patch file, synthesizes a target image file for system upgrade based on the upgrade patch file and the original image file in the system, stores the target image file in a non-upgrade partition, and reads the target image file and writes the target image file into a memory partition corresponding to each image file when the system is determined to enter a recovery mode, so as to complete system upgrade. In the scene of system upgrading, the system only needs to read the synthesized target image file and write the target image file into the corresponding memory partition of each image file after entering the recovery mode, and the system upgrading time can be shortened.
Fig. 1 shows a schematic architecture diagram of a communication system to which an embodiment of the invention is applied. As shown in fig. 1, the communication system 100 may include a server 101, a terminal 102, a terminal 103, and a terminal 104, wherein the terminal 102, the terminal 103, and the terminal 104 are all connected to the server 101 through a network (a wireless network, a wired network, or other connection network).
Any of the terminals 102, 103, and 104 may communicate with the server 101 and may download a system upgrade package from the server 101 for upgrading the system local to the terminal.
The upgrade package in the embodiment of the present invention includes two types: differential packets and full packets. The complete package includes information of all partitions included in the system version corresponding to the upgrade package, and the differential package includes only differential information existing between two system versions corresponding to the differential package. For example, the BOOT partition includes only one file, and if the content of the file of the BOOT partition remains unchanged in the V1 version and the V2 version, the file of the BOOT partition is not included in the differential package of the V1 version and the V2 version, and the complete package of the V2 version includes the file of the BOOT partition. Generally, the data amount of the complete packet is larger than that of the differential packet, and in order to save the data transmission amount, the differential packet is generally transmitted between the terminal and the server for upgrading the system.
Fig. 2 is a schematic structural diagram of a terminal to which an embodiment of the present invention is applied. As shown in fig. 2, an embodiment of the present invention provides a terminal 200 including: a Radio Frequency (RF) circuit 210, a power supply 220, a processor 230, a memory 240, an input unit 250, a display unit 260, a camera 270, a communication interface 280, and a Wireless Fidelity (WiFi) module 290. Those skilled in the art will appreciate that the configuration of the terminal shown in fig. 2 is not intended to be limiting, and that the terminal provided by the embodiments of the present application may include more or less components than those shown, or some components may be combined, or a different arrangement of components.
The following describes the various components of the terminal 200 in detail with reference to fig. 2:
the RF circuit 210 may be used for receiving and transmitting data during a communication or conversation. Specifically, the RF circuit 210 sends downlink data of the base station to the processor 230 for processing; and in addition, sending the uplink data to be sent to the base station. Generally, the RF circuit 210 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like.
In addition, the RF circuit 210 may also communicate with a network and other terminals through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM systems, CDMA systems, LTE systems, General Packet Radio Service (GPRS) systems, Wideband Code Division Multiple Access (WCDMA) systems, email, Short Messaging Service (SMS), and the like.
The WiFi technology belongs to a short-distance wireless transmission technology, and the terminal 200 can Access an Access Point (AP) through the WiFi module 290, thereby implementing Access to a data network. The WiFi module 290 may be used for receiving and transmitting data during communication.
The terminal 200 may be physically connected to other terminals through the communication interface 280. Optionally, the communication interface 280 is connected to the communication interfaces of the other terminals through a cable, so as to implement data transmission between the terminal 200 and the other terminals.
In the embodiment of the present application, the terminal 200 can implement a communication service to send information to other contacts, so the terminal 200 needs to have a data transmission function, that is, the terminal 200 needs to include a communication module inside. Although fig. 2 shows communication modules such as the RF circuit 210, the WiFi module 290, and the communication interface 280, it is understood that at least one of the above components or other communication modules (such as a bluetooth module) for implementing communication exists in the terminal 200 for data transmission.
For example, when the terminal 200 is a mobile phone, the terminal 200 may include the RF circuit 210 and may further include the WiFi module 290; when the terminal 200 is a computer, the terminal 200 may include the communication interface 280 and may further include the WiFi module 290; when the terminal 200 is a tablet computer, the terminal 200 may include the WiFi module.
The memory 240 may be used to store software programs and modules. The processor 230 executes various functional applications and data processing of the terminal 200 by executing the software programs and modules stored in the memory 240, and after the processor 230 executes the program codes in the memory 240, part or all of the processes in fig. 4 according to the embodiment of the present invention can be implemented.
Alternatively, the memory 240 may mainly include a program storage area and a data storage area. Wherein, the storage program area can store an operating system, various application programs (such as communication application), various modules for WLAN connection, and the like; the storage data area may store data created according to the use of the terminal, and the like.
Further, the memory 240 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 250 may be used to receive numeric or character information input by a user and generate key signal inputs related to user settings and function control of the terminal 200.
Alternatively, the input unit 250 may include a touch panel 251 and other input terminals 252.
The touch panel 251, also referred to as a touch screen, may collect touch operations of a user (for example, operations of the user on or near the touch panel 251 using any suitable object or accessory such as a finger, a stylus pen, etc.) and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 251 may include two parts, namely, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 230, and can receive and execute commands sent by the processor 230. In addition, the touch panel 251 may be implemented by various types, such as resistive, capacitive, infrared, and surface acoustic wave.
Optionally, the other input terminals 252 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 260 may be used to display information input by a user or information provided to the user and various menus of the terminal 200. The display unit 260 is a display system of the terminal 200, and is used for presenting an interface to implement human-computer interaction.
The display unit 260 may include a display panel 261. Alternatively, the Display panel 261 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
Further, the touch panel 251 may cover the display panel 261, and when the touch panel 251 detects a touch operation on or near the touch panel 251, the touch panel transmits the touch operation to the processor 230 to determine the type of the touch event, and then the processor 230 provides a corresponding visual output on the display panel 261 according to the type of the touch event.
Although the touch panel 251 and the display panel 261 are shown in fig. 2 as two separate components to implement the input and output functions of the terminal 200, in some embodiments, the touch panel 251 and the display panel 261 may be integrated to implement the input and output functions of the terminal 200.
The processor 230 is a control center of the terminal 200, connects various components using various interfaces and lines, performs various functions of the terminal 200 and processes data by operating or executing software programs and/or modules stored in the memory 240 and calling data stored in the memory 240, thereby implementing various services based on the terminal.
Optionally, the processor 230 may include one or more processing units. Optionally, the processor 230 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, an application program, and the like, and the modem processor mainly processes wireless communication. It will be appreciated that the modem processor described above may not be integrated into the processor 230.
The camera 270 is configured to implement a shooting function of the terminal 200, and shoot pictures or videos.
The terminal 200 also includes a power supply 220 (such as a battery) for powering the various components. Optionally, the power supply 220 may be logically connected to the processor 230 through a power management system, so as to implement functions of managing charging, discharging, power consumption, and the like through the power management system.
Although not shown, the terminal 200 may further include at least one sensor, an audio circuit, and the like, which are not described in detail herein.
For example, the terminal according to the embodiment of the present invention may be a mobile phone as shown in fig. 3.
Based on the system architecture shown in fig. 1, as shown in fig. 4, a system upgrade method provided by an embodiment of the present invention includes:
step 401, determining that the system upgrade package is completely downloaded, and extracting the upgrade patch file from the system upgrade package.
And when the downloaded system upgrade package is determined to be the same as the system upgrade package in the server, and the verification result of the integrity verification of the downloaded system upgrade package is passed, determining that the system upgrade package is downloaded.
Step 402, synthesizing a target image file for upgrading the system based on the upgrade patch file and the original image file in the system, and storing the target image file in the non-upgrade partition;
and synthesizing a target image file for upgrading the system based on the upgrade patch file and the original image file in the system, wherein the synthesizing process is completed in the original application system through background service or thread, and the normal use of the terminal is not influenced. And after the target image file is synthesized, storing the target image file in the non-upgrading partition. The non-upgrade partition may be an unencrypted partition in the cache of the cache, and certainly, in other embodiments of the present invention, the non-upgrade partition may also be an unencrypted partition in a memory where other non-system files are located, which is not limited in this embodiment of the present invention.
It should be noted that, after the target image file is synthesized, an identifier for identifying the successful synthesis of the image file (for example, using "1" to identify the successful synthesis and using "0" to identify the failed synthesis) may also be sent to the system upgrade application (system upgrade client) to notify the system upgrade application that the target image file has been successfully synthesized.
And the system upgrading application program determines that the target image file is successfully synthesized according to the received identification, selects a proper time (for example, when a user has no operation terminal at night or actively clicks an upgrade confirmation button after an upgrade request is displayed to the user, and the like), determines that the system can be restarted to enter a recovery mode for upgrading, and sends a restart instruction. And when the terminal receives a restart instruction sent by the system upgrading application program, the terminal is controlled to restart to enter a recovery mode to carry out system upgrading.
Of course, in other embodiments of the present invention, if the target image file fails to be synthesized, an identifier for identifying the image file synthesis failure is sent to the system upgrade application (system upgrade client) to notify the system upgrade application that the target image file is failed to be synthesized, so as to request to synthesize the target image file again or download the upgrade package again.
Step 403, when it is determined that the system enters the recovery mode, reading the target image file and writing the target image file into the memory partition corresponding to each image file, thereby completing system upgrade.
In one example, for example, when the Android system is upgraded, when it is determined that the system enters a recovery mode, a target image file synthesized by a background service in the Android system is directly written into a partition corresponding to a memory.
For example, a boot image, a modem, a vbmeta image and other related images are directly read from a non-upgrade partition to a memory, and then written from the memory to a corresponding memory partition, specifically, a boot image file is written into/dev/block/by-name/boot partition, a modem image file is written into/dev/block/by-name/modem partition, and a vbmeta image file is written into/dev/block/by-name/vbmeta partition.
Next, referring to fig. 5 and fig. 6, a system upgrade method in the prior art and a system upgrade method provided in the embodiment of the present invention are compared to describe in detail a principle that a system upgrade scheme of the embodiment of the present invention reduces system upgrade time.
As shown in fig. 5, the system upgrade scheme in the prior art includes the following steps:
step 501, downloading a system upgrade package.
Step 502, performing integrity check on the system upgrade package.
Step 503, determining whether the verification result of the integrity verification is successful, if so, executing step 504, otherwise, displaying an error prompt message.
And step 504, the control terminal restarts to enter a recovery mode for system upgrading.
And 505, in the recovery mode, extracting the upgrade patch file from the system upgrade package.
Step 506, in the recovery mode, a target image file for upgrading the system is synthesized based on the upgrade patch file and the original image file.
Step 507, in the recovery mode, writing the target image file into the memory partition corresponding to each image file.
And step 508, in the recovery mode, checking the upgraded partition content, if the checking result is correct, displaying an upgrade success prompt message, and if the checking result is wrong, displaying an error prompt message.
As shown in fig. 6, the system upgrade scheme provided in the embodiment of the present invention includes the following steps:
step 601, downloading the system upgrade package.
Step 602, performing integrity check on the system upgrade package.
Step 603, determining whether the verification result of the integrity verification is successful, if so, executing step 604, otherwise, displaying an error prompt message.
And step 604, extracting the upgrade patch file from the system upgrade package.
Step 605, synthesizing a target image file for upgrading the system based on the upgrade patch file and the original image file.
Step 606, store the synthesized target image file in the non-upgrade partition.
And step 607, the control terminal restarts to enter a recovery mode for system upgrade.
Step 608, in the recovery mode, the read target image file is written into the memory partition corresponding to each image file.
And step 609, checking the upgraded partition content in the recovery mode, if the checking result is correct, displaying an upgrade success prompt message, and if the checking result is wrong, displaying an error prompt message.
By comparing the system upgrading method provided by the prior art and the embodiment of the invention, it can be seen that:
in the system upgrading method in the prior art, that is, the system upgrading method shown in fig. 5, steps 501 to 503 are completed in the original application system, the user can normally use the terminal at this stage, and steps 505 to 508 are completed in the recovery mode, the user cannot use the terminal at this stage, and because there are many steps that need to be completed in the recovery mode in the system upgrading process in the prior art, the retention time in the recovery mode in the system upgrading process is generally too long in the prior art, and the user experience is seriously affected.
In the system upgrading method provided in the embodiment of the present invention, that is, the system upgrading method shown in fig. 6, step 601 and step 606 are completed in the original application system through a background service or a thread, so that normal use of the terminal is not affected, and step 608 to step 609 are completed in a recovery mode, so that the user cannot use the terminal at this stage. According to the scheme for upgrading the system, the time-consuming operation of synthesizing the target image file in the recovery mode is advanced to the terminal operation process and synthesized through the background service, and the system only needs to read the synthesized target image file and write the target image file into the corresponding memory partition of each image file after entering the recovery mode, so that the retention time in the recovery mode in the system upgrading process is reduced, and the terminal is not in the recovery mode in the process of synthesizing the target file, and the normal use of the terminal is not influenced.
As shown in fig. 7, a terminal for performing system upgrade according to an embodiment of the present invention includes: at least one processing unit 700 and at least one memory unit 701.
Wherein the storage unit 701 stores a computer program which, when executed by said processing unit 700, causes the processing unit 700 to perform the following procedure:
and determining that the system upgrade package is downloaded, and extracting the upgrade patch file from the system upgrade package.
Synthesizing a target image file for system upgrading based on the upgrading patch file and the original image file in the system, and storing the target image file in a non-upgrading partition;
and when the system is determined to enter the recovery mode, reading the target image files and writing the target image files into the memory partitions corresponding to the image files to finish system upgrading.
Wherein the processing unit 700 is further configured to:
after the target image file is synthesized, an identifier of successful synthesis of the image file is sent to the system upgrading application program, and when a restart instruction sent by the system upgrading application program is received, the restart terminal is controlled to enter a recovery mode.
Optionally, the processing unit 700 determines that the system upgrade package is downloaded, and is specifically configured to:
and when the downloaded system upgrade package is determined to be the same as the system upgrade package in the server, and the verification result of the integrity verification of the downloaded system upgrade package is passed, determining that the system upgrade package is downloaded.
Optionally, the non-upgrade partition is located in the cache memory.
Optionally, the non-upgraded partition is an unencrypted partition.
As shown in fig. 8, an embodiment of the present invention provides a system upgrading apparatus, which can be applied to a terminal, and includes:
an extraction module 801, configured to determine that the system upgrade package is downloaded, and extract an upgrade patch file from the system upgrade package;
a synthesis module 802, configured to synthesize a target image file for upgrading the system based on the upgrade patch file and an original image file in the system, and store the target image file in the non-upgrade partition;
and the upgrading module 803 is configured to, when it is determined that the system enters the recovery mode, read the target image file and write the target image file into the memory partition corresponding to each image file, so as to complete system upgrading.
Wherein the synthesis module 802 is further configured to:
after the target image file is synthesized, an identifier for identifying successful synthesis of the image file is sent to the system upgrading application program, and when a restart instruction sent by the system upgrading application program is received, the restart terminal is controlled to enter a recovery mode.
Optionally, the extracting module 801 determines that the system upgrade package is downloaded, and is specifically configured to:
and when the downloaded system upgrade package is determined to be the same as the system upgrade package in the server, and the verification result of the integrity verification of the downloaded system upgrade package is passed, determining that the system upgrade package is downloaded.
Optionally, the non-upgrade partition is located in the cache memory.
Optionally, the non-upgraded partition is an unencrypted partition.
Embodiments of the present invention further provide a computer storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the system upgrade method according to the above embodiments of the present invention.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (10)

1. A terminal, comprising at least one processing unit and at least one memory unit;
wherein the storage unit stores a computer program that, when executed by the processing unit, causes the processing unit to perform the following:
determining that the downloading of a system upgrading package is completed, and extracting an upgrading patch file from the system upgrading package;
synthesizing a target image file for upgrading the system based on the upgrade patch file and an original image file in the system, and storing the target image file in a non-upgrade partition;
and when the system is determined to enter the recovery mode, reading the target image files and writing the target image files into the memory partitions corresponding to the image files to finish system upgrading.
2. The terminal of claim 1, wherein the processing unit is further configured to:
after the target image file is synthesized, sending an identifier for identifying successful synthesis of the image file to a system upgrading application program, and controlling the terminal to be restarted to enter a recovery mode when a restart instruction sent by the system upgrading application program is received.
3. The terminal according to claim 1, wherein the processing unit determines that the downloading of the system upgrade package is completed, and is specifically configured to:
and when the downloaded system upgrade package is determined to be the same as the system upgrade package in the server, and the verification result of the integrity verification of the downloaded system upgrade package is passed, determining that the system upgrade package is downloaded.
4. The terminal of claim 1, wherein the non-upgraded partition is located in a cache memory.
5. The terminal of claim 1, wherein the non-upgraded partition is an unencrypted partition.
6. A method for system upgrade, comprising:
determining that the downloading of a system upgrading package is completed, and extracting an upgrading patch file from the system upgrading package;
synthesizing a target image file for upgrading the system based on the upgrade patch file and an original image file in the system, and storing the target image file in a non-upgrade partition;
and when the system is determined to enter the recovery mode, reading the target image files and writing the target image files into the memory partitions corresponding to the image files to finish system upgrading.
7. The method of claim 6, wherein after the target image file is synthesized, an identifier for identifying successful synthesis of the image file is sent to a system upgrade application program, and when a restart instruction sent by the system upgrade application program is received, the terminal is controlled to restart to enter a recovery mode.
8. The method of claim 6, wherein determining that the system upgrade package download is complete comprises:
and when the downloaded system upgrade package is determined to be the same as the system upgrade package in the server, and the verification result of the integrity verification of the downloaded system upgrade package is passed, determining that the system upgrade package is downloaded.
9. The method of claim 6, wherein the non-upgraded partition is an unencrypted partition.
10. A computer storage medium having computer program instructions stored therein, which when run on a computer, cause the computer to perform the method of any one of claims 6-9.
CN201910847944.5A 2019-09-09 2019-09-09 System upgrading method and terminal Pending CN112463199A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910847944.5A CN112463199A (en) 2019-09-09 2019-09-09 System upgrading method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910847944.5A CN112463199A (en) 2019-09-09 2019-09-09 System upgrading method and terminal

Publications (1)

Publication Number Publication Date
CN112463199A true CN112463199A (en) 2021-03-09

Family

ID=74807450

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910847944.5A Pending CN112463199A (en) 2019-09-09 2019-09-09 System upgrading method and terminal

Country Status (1)

Country Link
CN (1) CN112463199A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113867823A (en) * 2021-10-12 2021-12-31 湖北亿咖通科技有限公司 Method and device for setting configuration parameters of vehicle-mounted terminal and electronic equipment
CN113900699A (en) * 2021-05-26 2022-01-07 荣耀终端有限公司 System upgrading method and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103123588A (en) * 2013-02-05 2013-05-29 东莞宇龙通信科技有限公司 Method and system for obtaining difference upgrade patch
WO2015035777A1 (en) * 2013-09-13 2015-03-19 惠州Tcl移动通信有限公司 Software upgrade method and system for mobile terminal
CN105068834A (en) * 2015-08-04 2015-11-18 广东欧珀移动通信有限公司 System upgrading method and apparatus
CN105138382A (en) * 2015-09-24 2015-12-09 广东欧珀移动通信有限公司 Method for upgrading Android system and terminal
CN107544872A (en) * 2017-07-31 2018-01-05 青岛海信电器股份有限公司 A kind of method and apparatus of system upgrade

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103123588A (en) * 2013-02-05 2013-05-29 东莞宇龙通信科技有限公司 Method and system for obtaining difference upgrade patch
WO2015035777A1 (en) * 2013-09-13 2015-03-19 惠州Tcl移动通信有限公司 Software upgrade method and system for mobile terminal
CN105068834A (en) * 2015-08-04 2015-11-18 广东欧珀移动通信有限公司 System upgrading method and apparatus
CN105138382A (en) * 2015-09-24 2015-12-09 广东欧珀移动通信有限公司 Method for upgrading Android system and terminal
CN107544872A (en) * 2017-07-31 2018-01-05 青岛海信电器股份有限公司 A kind of method and apparatus of system upgrade

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113900699A (en) * 2021-05-26 2022-01-07 荣耀终端有限公司 System upgrading method and electronic equipment
CN113867823A (en) * 2021-10-12 2021-12-31 湖北亿咖通科技有限公司 Method and device for setting configuration parameters of vehicle-mounted terminal and electronic equipment

Similar Documents

Publication Publication Date Title
EP3340574B1 (en) Method for providing content corresponding to accessory and electronic device thereof
US10735427B2 (en) Method and apparatus for managing program of electronic device
EP2634697B1 (en) Mobile terminal and controlling method thereof
CN110869907B (en) Method and terminal for browsing application page
WO2019227994A1 (en) Method and apparatus for updating application prediction model, storage medium, and terminal
CN107273160A (en) A kind of method and device of edition upgrading
CN106933593B (en) System switching method and device based on mobile terminal
KR20170001488A (en) Electronic device having an external memory and method operating the same
US8825991B2 (en) FOTA based data update method and mobile terminal supporting the same
US20220100490A1 (en) Firmware updating method, and electronic apparatus and storage media for same
CN109375937A (en) Method for upgrading system, device, terminal device and storage medium
CN109947449B (en) System upgrading method and device, storage medium and electronic equipment
CN110764825B (en) Starting method and terminal equipment
KR20200140555A (en) Electronic device for switching between a dual standby mode and a single standby mode and method for the same
CN106713608B (en) Application function state modification method and device and terminal
CN109977013B (en) Debugging information acquisition method, system and device
KR102475230B1 (en) Method for controlling communication network connection, storage medium and electronic device therefor
US20060282658A1 (en) Boot systems and methods and related devices
CN112463199A (en) System upgrading method and terminal
CN108090345B (en) Linux system external command execution method and device
CN111399874A (en) System upgrading method and device, storage medium and intelligent wearable device
US9928134B2 (en) Method and apparatus for repairing dynamic link library file
CN114253558A (en) Method and device for installing patch package
CN107979688B (en) application program management method and mobile terminal
CN106445594B (en) System application installation method and device and terminal equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination