CN110865837A - Method and terminal for upgrading system - Google Patents

Method and terminal for upgrading system Download PDF

Info

Publication number
CN110865837A
CN110865837A CN201911114020.0A CN201911114020A CN110865837A CN 110865837 A CN110865837 A CN 110865837A CN 201911114020 A CN201911114020 A CN 201911114020A CN 110865837 A CN110865837 A CN 110865837A
Authority
CN
China
Prior art keywords
terminal
partition
partitions
patch
files
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.)
Granted
Application number
CN201911114020.0A
Other languages
Chinese (zh)
Other versions
CN110865837B (en
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 CN201911114020.0A priority Critical patent/CN110865837B/en
Publication of CN110865837A publication Critical patent/CN110865837A/en
Application granted granted Critical
Publication of CN110865837B publication Critical patent/CN110865837B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Landscapes

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

Abstract

The invention discloses a method and a terminal for system upgrading, which are used for solving the problems that the existing terminal needs longer time for system upgrading and reduces user experience. In the embodiment of the invention, before the system is upgraded, the patch file of at least one partition in the compressed packet for the system upgrading is written into the image file of the corresponding partition in the terminal, a new image file of the partition is generated in advance, in the later system upgrading process, when the system upgrading packet is processed, the patch file is not required to be processed, the patch file is directly jumped to the new image file which is written with the patch file in each partition of the terminal for partition burning, and before the system is upgraded, the patch file which is written into each partition in advance is not effective, and can be regarded as pure partition storage, so that the influence on a mobile phone system is avoided, and the time for upgrading the system is saved on the premise of ensuring the normal operation of the terminal.

Description

Method and terminal for upgrading system
Technical Field
The present invention relates to the field of terminals, and in particular, to a method and a terminal for system upgrade.
Background
Android is an open source mobile phone operating system based on a Linux (a computer operating system) platform announced by Google corporation on 5.11.2007, and the platform consists of a Linux operating system kernel, a dalvik (virtual machine), a support library, an application program framework and an application program. Because of its good openness and powerful functions, the Android operating system is widely applied to not only embedded devices powered by batteries, such as mobile phones, but also devices and products using an alternating current power supply, such as digital televisions, for example, mobile phones, tablet computers, and the like.
Taking a mobile phone as an example, with the upgrading of the android system, the upgrading version of the complete android system is larger and larger. When the terminal carries out system upgrading, the upgrading can be successful only after a long time, and in the time, a user cannot use a mobile phone.
In summary, the time required for system upgrade of the existing terminal is long, and user experience is reduced.
Disclosure of Invention
The invention provides a method and equipment for system upgrading, which are used for solving the problems that the time required for system upgrading of the existing terminal is long and the user experience is reduced.
Based on the foregoing problem, in a first aspect, an embodiment of the present invention further provides a terminal for performing system upgrade, where the terminal includes: the device comprises a processor, a display screen and an input unit;
a display screen configured to display a user interface;
an input unit configured to receive a user instruction;
a processor, respectively connected to the display screen and the touch screen, configured to:
extracting a patch file of at least one partition from the downloaded compressed package for system upgrade;
writing the patch file of the at least one partition into the image file of the corresponding partition of the terminal to form a new image file;
and informing a user of system upgrading through the display screen, upgrading through the compression package after receiving a system upgrading instruction triggered by the user through the input unit, and burning the new image file in a partition mode in the upgrading process.
The terminal writes the patch file of at least one partition in the compression package for system upgrading into the image file of the corresponding partition in the terminal before the system upgrading, generates a new image file of the partition in advance, does not need to process the patch file when processing the system upgrading package in the subsequent system upgrading process, and directly jumps to the new image file which is written with the patch file in each partition for partition burning.
In one possible implementation, the processor is specifically configured to:
and filling the files contained in the patch file into folders with the same names in the image files of the corresponding partitions in the terminal to form new image files corresponding to the partitions.
In the terminal, before the system is upgraded, the patch file of at least one partition in the compressed packet for the system upgrade is written into the image file of the corresponding partition in the terminal, and at this stage, a user can normally operate the terminal. After the system upgrading stage, the new image file written with the patch file in each partition is directly used for partition burning, so that the time for the terminal, which can be sensed by a user, to carry out system upgrading is shortened, and the user experience is improved.
In one possible implementation, the processor is further configured to:
and downloading the installation package in an automatic downloading mode.
In one possible implementation, the processor is further configured to:
if the patch files of all the partitions in the installation package are written into the corresponding partitions in the terminal, the new mirror image file is used for partition burning in the upgrading process;
and if the patch files of part of the partitions in the installation package are written into the corresponding partitions in the terminal, writing the patch files of the other partitions in the installation package into the mirror image files of the corresponding partitions in the terminal in the upgrading process, and then burning the partitions.
In one possible implementation, the processor is further configured to:
and if the patch files of all the partitions of the installation package are not written into the corresponding partitions in the terminal, respectively writing the patch files of any one partition contained in the installation package into the mirror image files of the corresponding partition of the terminal in the upgrading process, and then burning the partitions.
In a second aspect, a method for system upgrade provided in an embodiment of the present invention includes:
extracting a patch file of at least one partition from the downloaded compression package for system upgrade;
writing the patch file of the at least one partition into the image file of the corresponding partition of the terminal to form a new image file;
and informing a user to carry out system upgrading, upgrading through the compression package after receiving a system upgrading instruction triggered by the user, and burning the new image file in a partition mode in the upgrading process.
In an optional embodiment, the writing the patch file of the at least one partition into the image file of the corresponding partition of the terminal to form a new image file includes:
and filling the files contained in the patch file into folders with the same names in the image files of the corresponding partitions in the terminal to form new image files corresponding to the partitions.
According to the method, the terminal generates the new image file of the partition in advance, in the subsequent system upgrading process, when the system upgrading package is processed, the patch file does not need to be processed, and the process of directly skipping to the partition burning according to the new image file written with the patch file in each partition of the terminal is carried out, so that the time for carrying out system upgrading is saved.
In an optional implementation manner, before the extracting the patch file of the at least one partition from the downloaded compressed package for system upgrade, the method further includes:
and downloading the installation package in an automatic downloading mode.
In an optional implementation manner, the performing partition burning by using the new image file in the upgrade process further includes:
if the patch files of all the partitions in the installation package are written into the corresponding partitions in the terminal, the new mirror image file is used for partition burning in the upgrading process;
and if the patch files of part of the partitions in the installation package are written into the corresponding partitions in the terminal, writing the patch files of the other partitions in the installation package into the mirror image files of the corresponding partitions in the terminal in the upgrading process, and then burning the partitions.
In an alternative embodiment, the method further comprises:
and if the patch files of all the partitions of the installation package are not written into the corresponding partitions in the terminal, respectively writing the patch files of any one partition contained in the installation package into the mirror image files of the corresponding partition of the terminal in the upgrading process, and then burning the partitions.
In a third aspect, an embodiment of the present invention further provides a terminal for performing system upgrade, where the terminal includes:
an extraction module: extracting a patch file of at least one partition from the downloaded compressed package for system upgrade;
a writing module: the method comprises the steps that a patch file of at least one partition is written into an image file of a corresponding partition of a terminal to form a new image file;
a processing module: and the system is used for informing a user of upgrading the system, upgrading the system through the compression package after receiving a system upgrading instruction triggered by the user, and burning the new image file in a partition mode in the upgrading process.
In a fourth aspect, the present application also provides a computer storage medium having a computer program stored thereon, which when executed by a processor, performs the steps of the method of the first aspect.
In addition, for technical effects brought by any one implementation manner of the second aspect to the fourth aspect, reference may be made to technical effects brought by different implementation manners of the first aspect, and details are not described here.
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 schematically shows a structural diagram of a communication terminal according to an embodiment of the present invention.
Fig. 2 is a schematic diagram illustrating a software architecture of a communication terminal according to an embodiment of the present invention.
Fig. 3 is a schematic diagram illustrating a user interface of a communication terminal according to an embodiment of the present invention.
Fig. 4 is a schematic interface diagram of a terminal when performing system upgrade according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a method for performing system upgrade according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a mirror image of a system partition of a mobile phone according to an embodiment of the present invention;
FIG. 7 is a diagram illustrating files contained in a compressed package according to an embodiment of the present invention;
fig. 8 is a schematic flowchart of a complete method for system upgrade according to an embodiment of the present invention;
fig. 9 is a schematic interface diagram of a terminal notifying a user of system upgrade according to an embodiment of the present invention;
fig. 10 is a schematic flowchart of a process of triggering a terminal to perform an upgrade operation according to an embodiment of the present invention;
fig. 11 is a schematic structural diagram of a terminal for performing system upgrade according to an embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present application will be described in detail and removed with reference to the accompanying drawings. In the description of the embodiments herein, "/" means "or" unless otherwise specified, for example, a/B may mean a or B; "and/or" in the text is only an association relationship describing an associated object, and means that three relationships may exist, for example, a and/or B may mean: three cases of a alone, a and B both, and B alone exist, and in addition, "a plurality" means two or more than two in the description of the embodiments of the present application.
In the following, the terms "first", "second" are used for descriptive purposes only and are not to be understood as implying or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature, and in the description of embodiments of the application, unless stated otherwise, "plurality" means two or more.
Fig. 1 shows a schematic configuration of a communication terminal 100.
The following describes an embodiment specifically taking the communication terminal 100 as an example. It should be understood that the communication terminal 100 shown in fig. 1 is only an example, and the communication terminal 100 may have more or less components than those shown in fig. 1, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
A block diagram of a hardware configuration of a communication terminal 100 according to an exemplary embodiment is exemplarily shown in fig. 1. As shown in fig. 1, the communication terminal 100 includes: a Radio Frequency (RF) circuit 110, a memory 120, a display unit 130, a camera 140, a sensor 150, an audio circuit 160, a Wireless Fidelity (Wi-Fi) module 170, a processor 180, a bluetooth module 181, an input unit 182, and a power supply 190.
The RF circuit 110 may be used for receiving and transmitting signals during information transmission and reception or during a call, and may receive downlink data of a base station and then send the downlink data to the processor 180 for processing; the uplink data may be transmitted to the base station. Typically, the RF circuitry includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
The memory 120 may be used to store software programs and data. The processor 180 executes various functions of the communication terminal 100 and data processing by executing software programs or data stored in the memory 120. The memory 120 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 memory 120 stores an operating system that enables the communication terminal 100 to operate. The memory 120 may store an operating system and various application programs, and may also store codes for performing the methods described in the embodiments of the present application.
The display unit 130 may be used to receive input numeric or character information and generate signal input related to user settings and function control of the communication terminal 100, and particularly, the display unit 130 may include a touch screen 131 disposed on the front surface of the communication terminal 100 and may collect touch operations of a user thereon or nearby, such as clicking a button, dragging a scroll box, and the like.
The display unit 130 may also be used to display a Graphical User Interface (GUI) of information input by or provided to the user and various menus of the terminal 100. Specifically, the display unit 130 may include a display screen 132 disposed on the front surface of the communication terminal 100. The display screen 132 may be configured in the form of a liquid crystal display, a light emitting diode, or the like. The display unit 130 may be used to display various graphical user interfaces described herein.
The touch screen 131 may cover the display screen 132, or the touch screen 131 and the display screen 132 may be integrated to implement the input and output functions of the communication terminal 100, and after the integration, the touch screen may be referred to as a touch display screen for short. In the present application, the display unit 130 may display the application programs and the corresponding operation steps.
The camera 140 may be used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The light sensing elements convert the light signals into electrical signals which are then passed to the processor 180 for conversion into digital image signals.
The communication terminal 100 may further comprise at least one sensor 150, such as an acceleration sensor 151, a distance sensor 152, a fingerprint sensor 153, a temperature sensor 154. The communication terminal 100 may also be configured with other sensors such as a gyroscope, barometer, hygrometer, thermometer, infrared sensor, optical sensor, motion sensor, and the like.
The audio circuitry 160, speaker 161, microphone 162 may provide an audio interface between a user and the communication terminal 100. The audio circuit 160 may transmit the electrical signal converted from the received audio data to the speaker 161, and convert the electrical signal into a sound signal for output by the speaker 161. The communication terminal 100 may also be provided with a volume button for adjusting the volume of the sound signal. On the other hand, the microphone 162 converts the collected sound signal into an electrical signal, converts the electrical signal into audio data after being received by the audio circuit 160, and outputs the audio data to the RF circuit 110 to be transmitted to, for example, another terminal or outputs the audio data to the memory 120 for further processing. In this application, the microphone 162 may capture the voice of the user.
Wi-Fi belongs to a short-distance wireless transmission technology, and the communication terminal 100 may help a user to send and receive e-mails, browse webpages, access streaming media, and the like through the Wi-Fi module 170, which provides a wireless broadband internet access for the user.
The processor 180 is a control center of the communication terminal 100, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the communication terminal 100 and processes data by running or executing software programs stored in the memory 120 and calling data stored in the memory 120. In some embodiments, processor 180 may include one or more processing units; the processor 180 may also integrate an application processor, which mainly handles operating systems, user interfaces, applications, etc., and a baseband processor, which mainly handles wireless communications. It will be appreciated that the baseband processor described above may not be integrated into the processor 180. In the present application, the processor 180 may run an operating system, an application program, a user interface display, and a touch response, and the processing method described in the embodiments of the present application.
And the bluetooth module 181 is configured to perform information interaction with other bluetooth devices having a bluetooth module through a bluetooth protocol. For example, the communication terminal 100 may establish a bluetooth connection with a wearable electronic device (e.g., a smart watch) having a bluetooth module via the bluetooth module 181, so as to perform data interaction.
An input unit 182 for receiving a user instruction, wherein the input unit 182 may be a touch screen, a microphone, or a remote control receiving device. Illustratively, the remote controller is an infrared remote controller, and the remote control receiving device is an infrared receiver; for another example, the remote controller is a bluetooth remote controller, and the remote control receiving device is a bluetooth receiving device; for another example, the remote controller is a remote controller transmitted via a wireless network, and the remote control receiving device is a receiving device capable of receiving wireless network transmission. In addition, the processor 180 is coupled with the display unit 130 and the input unit 182.
The communication terminal 100 also includes a power supply 190 (such as a battery) to power the various components. The power supply may be logically connected to the processor 180 through a power management system to manage charging, discharging, power consumption, etc. through the power management system. The communication terminal 100 may also be configured with power buttons for powering the terminal on and off, and for locking the screen.
Fig. 2 is a block diagram of a software configuration of the communication terminal 100 according to the embodiment of the present invention.
The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into four layers, an application layer, an application framework layer, an Android runtime (Android runtime) and system library, and a kernel layer from top to bottom.
The application layer may include a series of application packages.
As shown in fig. 2, the application package may include applications such as camera, gallery, calendar, phone call, map, navigation, WLAN, bluetooth, music, video, short message, etc.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application programs of the application layer. The application framework layer includes a number of predefined functions.
As shown in FIG. 2, the application framework layers may include a window manager, content provider, view system, phone manager, resource manager, notification manager, and the like.
The window manager is used for managing window programs. The window manager can obtain the size of the display screen, judge whether a status bar exists, lock the screen, intercept the screen and the like.
The content provider is used to store and retrieve data and make it accessible to applications. The data may include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
The view system includes visual controls such as controls to display text, controls to display pictures, and the like. The view system may be used to build applications. The display interface may be composed of one or more views. For example, the display interface including the short message notification icon may include a view for displaying text and a view for displaying pictures.
The phone manager is used to provide a communication function of the communication terminal 100. Such as management of call status (including on, off, etc.).
The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and the like.
The notification manager enables the application to display notification information in the status bar, can be used to convey notification-type messages, can disappear automatically after a short dwell, and does not require user interaction. Such as a notification manager used to inform download completion, message alerts, etc. The notification manager may also be a notification that appears in the form of a chart or scroll bar text at the top status bar of the system, such as a notification of a background running application, or a notification that appears on the screen in the form of a dialog window. For example, text information is prompted in the status bar, a prompt tone is given, the communication terminal vibrates, and an indicator light flashes.
The Android Runtime comprises a core library and a virtual machine. The Android runtime is responsible for scheduling and managing an Android system.
The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android.
The application layer and the application framework layer run in a virtual machine. And executing java files of the application program layer and the application program framework layer into a binary file by the virtual machine. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: surface managers (surface managers), Media Libraries (Media Libraries), three-dimensional graphics processing Libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), and the like.
The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
The media library supports a variety of commonly used audio, video format playback and recording, and still image files, among others. The media library may support a variety of audio-video encoding formats, such as MPEG4, h.264, MP3, AAC, AMR, JPG, PNG, and the like.
The three-dimensional graphic processing library is used for realizing three-dimensional graphic drawing, image rendering, synthesis, layer processing and the like.
The 2D graphics engine is a drawing engine for 2D drawing.
The kernel layer is a layer between hardware and software. The inner core layer at least comprises a display driver, a camera driver, an audio driver and a sensor driver.
The following exemplifies the workflow of the software and hardware of the communication terminal 100 in connection with capturing a photographing scene.
When the touch screen 131 receives a touch operation, a corresponding hardware interrupt is issued to the kernel layer. The kernel layer processes the touch operation into an original input event (including touch coordinates, a time stamp of the touch operation, and other information). The raw input events are stored at the kernel layer. And the application program framework layer acquires the original input event from the kernel layer and identifies the control corresponding to the input event. Taking the touch operation as a touch click operation, and taking a control corresponding to the click operation as a control of a camera application icon as an example, the camera application calls an interface of an application framework layer, starts the camera application, further starts a camera drive by calling a kernel layer, and captures a still image or a video through the camera 140.
The communication terminal 100 in the embodiment of the present application may be a mobile phone, a tablet computer, a wearable device, a notebook computer, a television, and the like.
Fig. 3 is a schematic diagram for illustrating a user interface on a communication terminal (e.g., communication terminal 100 of fig. 1). In some implementations, a user can open a corresponding application by touching an application icon on the user interface, or can open a corresponding folder by touching a folder icon on the user interface.
The execution main body related to the embodiment of the invention is a terminal using an Android system, taking a mobile phone as an example, hereinafter, the mobile phone with the Android system is referred to as an Android mobile phone for short, and the existing system upgrading mode comprises the following steps: downloading the system upgrade package, informing the user of the completion of the system upgrade package after the completion of the downloading, inquiring whether the user performs the system upgrade, clicking an upgrade button by the user to trigger a system upgrade process, displaying a display interface shown in figure 4 on a display screen of the mobile phone, and waiting until the system upgrade is completed and then the user can recover to use. And with the upgrading of the Android system, the complete compression package for system upgrading is larger and larger. It is also increasingly time for users to wait for system upgrades.
In view of this, the embodiment of the present invention provides a method for performing system upgrade, where after an installation package is downloaded, a step of querying whether a user performs system upgrade is skipped, a terminal opens a system upgrade package, writes a patch file of each partition in the system upgrade package into an image file of a corresponding partition in the terminal, and then notifies the user to perform system upgrade and perform partition burning.
The embodiments of the present invention will be described in further detail with reference to the drawings attached hereto.
As shown in fig. 5, an embodiment of the present invention provides a method for system upgrade, which specifically includes the following steps:
step 500: extracting a patch file of at least one partition from the downloaded compression package for system upgrade;
step 501: writing the patch file of the at least one partition into the image file of the corresponding partition of the terminal to form a new image file;
step 502: and informing a user to carry out system upgrading, upgrading through the compression package after receiving a system upgrading instruction triggered by the user, and burning the new image file in a partition mode in the upgrading process.
Through the scheme, the terminal writes the patch file of at least one partition in the compression package for system upgrading into the image file of the corresponding partition in the terminal before the system upgrading, the new image file of the partition is generated in advance, in the subsequent system upgrading process, when the system upgrading package is processed, the patch file does not need to be processed, the process directly jumps to the new image file which is written with the patch file in each partition of the terminal to be subjected to partition burning, and before the system upgrading, the patch file which is written into each partition in advance is not effective, and can be regarded as pure partition storage.
For example, similar to a C disk, a D disk, and the like of a computer, a terminal also has a plurality of partitions therein, such as a system partition, a data partition, a vendor partition, and a cache partition, so-called system upgrade or flush is to burn system files into the corresponding partitions, wherein the system upgrade mainly performs system partition upgrade and vendor partition upgrade.
Fig. 6 is a schematic diagram of a directory of mirror files under a system partition in a terminal.
Wherein, system/app: the core applications, known as system APPs, are stored in the APP (application) directory, and the programs of the systems cannot be simply uninstalled, and can be deleted in some special ways.
system/lib: stored under the lib directory are all dynamic link libraries (.so files) that make up a JNI (local interface) layer, a Dalvik virtual machine, a local library, a HAL (Hard Array Logic) layer, and a factory adaptation layer.
system/frame (structure): stored under this directory are JAR packages at the framework level, of which there are 3 most important JAR packages (framework. JAR, android. policy. JAR, services. JAR) for MIUI migration.
system/fonts (font): the default font file of the system is stored in the directory.
system/media (mass media): various media files used by the system, such as boot music, animation, wallpaper files, and the like, are stored under the directory. The directory may be organized differently for different handsets. How to modify these documents refers to the course of the corresponding model on the network, which is not described in detail here.
system/etc. this directory holds a number of profiles, unlike property profiles, which may be somewhat less regular below. Generally, some scripted programs, also known as GPS profiles (GPS. conf) and APN profiles (APN-conf. xml) are placed in this directory. Some files used for camera special effects like HTC are also placed under this directory.
Fig. 7 is a schematic diagram of a file obtained after a compressed package of a system upgrade of a certain version is parsed, according to an embodiment of the present invention. The files at the beginning of the vendor are the upgrading information of the vendor image files, the files at the beginning of the system are the upgrading information of the system image files, and the image files of the other partitions are stored in a firmware-update directory. The following description mainly refers to a patch file, taking system as an example, and system.patch.dat is a patch file of system, where the file stores a differential file of a new version of system partition image file and an old version of system partition, and the differential file generally includes some binary files corresponding to system partitions, such as app, bin, etc.
Before system upgrading, the terminal extracts and stores each binary file in the system.patch.dat files in the compressed packet to a corresponding path of a system partition of a terminal local machine, the operation is part of the processing process of a terminal bottom layer, a user interface is not sensed, normal use of a user cannot be influenced, after a terminal application layer receives a system upgrading instruction, the terminal bottom layer uses a new image file in the system partition to perform partition burning, the time for processing the patch files after the terminal enters recovery (upgrading) is saved, and the total time for system upgrading sensed by the user is shortened.
The present invention will now be described with reference to specific examples. Fig. 8 is a schematic flow chart of a first embodiment of a method for upgrading a system according to the present invention, where an execution subject of the embodiment may be the terminal shown in fig. 3, and as shown in fig. 8, the method of the embodiment may include the following steps:
step 800, a terminal downloads a compression package for system upgrading;
there are various ways for the terminal to download the compressed package, and one feasible way is that the terminal downloads the compressed package by an automatic downloading way, such as: and the terminal is connected to a wifi network, detects the change of the system version and downloads the compression package upgraded by the new version system through the wifi network. Another feasible mode is that after receiving an instruction of a user for triggering the downloading of the compression package, the terminal executes the operation of downloading the compression package updated by the new version system.
After the compressed package is downloaded in an automatic downloading mode, the step that the terminal extracts the patch in the compressed package is triggered. Optionally, if the compressed packet is to be downloaded in a manual downloading manner, after the compressed packet is downloaded, the terminal needs to skip displaying that the compressed packet is downloaded, inquire whether to perform notification of system upgrade, and trigger the terminal to extract the patch in the compressed packet.
Step 801, the terminal extracts a patch file of a system partition from the downloaded compressed packet;
the terminal decompresses the downloaded compression packet to obtain a decompressed file as shown in fig. 7, extracts system.
Step 802, the terminal writes the differential file in system.patch.dat into a system partition in the terminal body;
the terminal stores each difference file under the system. The method specifically comprises the following steps: the terminal stores the app in the system, patch and dat to the system/app in the terminal local machine; the terminal stores the bin in system.patch.dat under the system/bin in the terminal local machine; the terminal stores the fonts in the system, patch, dat under the system/fonts in the terminal itself, and so on until all the difference files in the system, patch, dat are stored in the terminal system partition.
The above steps are the processing procedure of the terminal bottom layer, when the bottom layer can write the patch file of partial or all partitions in the compressed packet into the corresponding partition of the terminal local machine, correspondingly, the terminal writes the patch file into the corresponding partition of the terminal local machine through 1bit or a plurality of bit indication information marks, and the indication information is introduced as follows:
when the indication information is 1bit, the indication information is used for indicating the terminal to write all patch files contained in the compressed packet into a corresponding partition of the local machine of the terminal; for example, the value of the indication information is 1, which indicates that the patch file of each partition in the compressed package has been written into the corresponding partition of the terminal, and the value of the indication information is 0, which indicates that none or part of the patches of each partition in the compressed package has been written into the corresponding partition of the terminal. The value of the instruction information is merely an example, and the present invention is not limited to the instruction method.
When the indication information is multiple bits, each bit is used to indicate a partition, for example: the indication information is 4 bits, and 0, 1, 2, and 3 bits of the indication information are respectively used for indicating whether a patch file is written in the system partition, the vender partition, the data partition, and the cache partition, and if the patch file is written in the system partition and the vender partition of the terminal local machine, and the patch file is not written in the other partitions, the indication information is 1100 or 0011.
Step 803, notifying the user to perform system upgrade, and performing system upgrade through the downloaded compression package after receiving a system upgrade instruction triggered by the user;
after the terminal writes the patch file of part or all of the partitions in the compressed package into the local corresponding partition of the terminal, the patch file is displayed on the touch screen through a popup window, as shown in (a) in fig. 9, so as to inquire whether a user carries out notification of system upgrade, as shown in (b) in fig. 9, after the user clicks a determination button, the terminal receives a system upgrade instruction triggered by the user, and then system upgrade is carried out through the downloaded compressed package. As shown in fig. 10, a schematic flow chart of system upgrade for a terminal using a compressed package includes the following steps:
step 1000, receiving parameters transmitted by an upper layer, wherein the parameters transmitted by the upper layer include but are not limited to a storage path of a compression packet and an upgrade mode, and the upgrade mode includes ordinary upgrade, forced upgrade and the like.
Step 1001, writing a BCB (Bootloader Control Block) and a cache/Recovery/command into an upgrade command to be executed after a terminal enters Recovery, wherein the upgrade command is used for indicating a storage path and an upgrade mode for writing a compression packet;
step 1002, decrypting the compressed packet, and checking the mounting of the installation packet;
step 1003, performing accuracy verification on the compressed packet, wherein the accuracy verification includes but is not limited to loading a public key and signature verification;
and 1004, after the accuracy check is passed, processing the compression packet and burning the compression packet in the partition by using a new image file of each partition in the terminal local machine.
Step 1000 to step 1003 are conventional steps of performing system upgrade, and for step 904, after determining that the image file in each partition is a new image file according to the indication information when the terminal processes the compressed packet, if yes, the terminal directly uses the new image file in each partition of the terminal to perform partition burning. Therefore, in step 1004, the terminal does not need to process the patch files of each partition in the compressed package, thereby saving the time for the user to perceive the system upgrade after the terminal enters recovery.
Based on the same concept, the embodiment of the present invention further provides a terminal function entity device for performing system upgrade, and since the device is a terminal in the method for performing system upgrade provided by the embodiment of the present invention, and the principle of the device for solving the problem is similar to that of the method, the implementation of the device may refer to the implementation of the method, and repeated details are not repeated.
As shown in fig. 11, an embodiment of the present invention provides another terminal for performing system upgrade, including:
the extraction module 1100: extracting a patch file of at least one partition from the downloaded compressed package for system upgrade;
the writing module 1101: the method comprises the steps that a patch file of at least one partition is written into an image file of a corresponding partition of a terminal to form a new image file;
the processing module 1102: and the system is used for informing a user of upgrading the system, upgrading the system through the compression package after receiving a system upgrading instruction triggered by the user, and burning the new image file in a partition mode in the upgrading process.
Optionally, the writing module 1101 is specifically configured to:
and filling the files contained in the patch file into folders with the same names in the image files of the corresponding partitions in the terminal to form new image files corresponding to the partitions.
Optionally, the extracting module 1100 is further configured to:
and downloading the installation package in an automatic downloading mode.
Optionally, the processing module 1102 is further configured to:
if the patch files of all the partitions in the installation package are written into the corresponding partitions in the terminal, the new mirror image file is used for partition burning in the upgrading process;
and if the patch files of part of the partitions in the installation package are written into the corresponding partitions in the terminal, writing the patch files of the other partitions in the installation package into the mirror image files of the corresponding partitions in the terminal in the upgrading process, and then burning the partitions.
Optionally, the processing module 1102 is further configured to:
and if the patch files of all the partitions of the installation package are not written into the corresponding partitions in the terminal, respectively writing the patch files of any one partition contained in the installation package into the mirror image files of the corresponding partition of the terminal in the upgrading process, and then burning the partitions.
The embodiment of the invention also provides a storage medium readable by the computing equipment aiming at the method for upgrading the system, namely, the content is not lost after power failure. The storage medium stores therein a software program comprising program code which, when executed on a computing device, when read and executed by one or more processors, implements the scheme for system upgrade of any of the above terminals according to embodiments of the present invention.
Since the communication terminal and the computer storage medium in the embodiment of the present invention may be applied to the processing method, reference may also be made to the above method embodiment for obtaining technical effects, and details of the embodiment of the present invention are not described herein again.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
While specific embodiments of the invention have been described above, it will be appreciated by those skilled in the art that these are by way of example only, and that the scope of the invention is defined by the appended claims. Various changes and modifications to these embodiments may be made by those skilled in the art without departing from the spirit and scope of the invention, and these changes and modifications are within the scope of the invention.

Claims (10)

1. A terminal for performing a system upgrade, the terminal comprising: the device comprises a processor, a display screen and an input unit;
a display screen configured to display a user interface;
an input unit configured to receive a user instruction;
a processor, respectively connected to the display screen and the touch screen, configured to:
extracting patch files of at least one partition from the downloaded compressed package for system upgrade;
writing the patch file of the at least one partition into the image file of the corresponding partition of the terminal to form a new image file;
and informing a user of system upgrading through the display screen, upgrading through the compression package after receiving a system upgrading instruction triggered by the user through the input unit, and burning the new image file in a partition mode in the upgrading process.
2. The terminal of claim 1, wherein the processor, when writing the image file of the corresponding partition of the terminal in the patch file of the at least one partition, is specifically configured to:
and filling the files contained in the patch file into folders with the same names in the image files of the corresponding partitions in the terminal to form new image files corresponding to the partitions.
3. The terminal of claim 2, wherein before the processor extracts the patch file for the at least one partition from the downloaded compressed package for system upgrade, the processor is further to:
and downloading the installation package in an automatic downloading mode.
4. The terminal of claim 2, wherein the processor, when performing partition burning using the new image file during the upgrade process, is further configured to:
if the patch files of all the partitions in the installation package are written into the corresponding partitions in the terminal, the new mirror image file is used for partition burning in the upgrading process;
and if the patch files of part of the partitions in the installation package are written into the corresponding partitions in the terminal, writing the patch files of the other partitions in the installation package into the mirror image files of the corresponding partitions in the terminal in the upgrading process, and then burning the partitions.
5. The terminal of claim 4, wherein the processor is further configured to:
and if the patch files of all the partitions of the installation package are not written into the corresponding partitions in the terminal, respectively writing the patch files of any one partition contained in the installation package into the mirror image files of the corresponding partition of the terminal in the upgrading process, and then burning the partitions.
6. A method of performing a system upgrade, the method comprising:
extracting patch files of at least one partition from the downloaded compressed package for system upgrade;
writing the patch file of the at least one partition into the image file of the corresponding partition of the terminal to form a new image file;
and informing a user to carry out system upgrading, upgrading through the compression package after receiving a system upgrading instruction triggered by the user, and burning the new image file in a partition mode in the upgrading process.
7. The method of claim 6, wherein the forming a new image file under the image file written in the corresponding partition of the terminal in the patch file of the at least one partition comprises:
and filling the files contained in the patch file into folders with the same names in the image files of the corresponding partitions in the terminal to form new image files corresponding to the partitions.
8. The method of claim 6, wherein prior to extracting the patch file for the at least one partition from the downloaded compressed package for system upgrades, further comprising:
and downloading the installation package in an automatic downloading mode.
9. The method of claim 6, wherein the using the new image file for partition burning during the upgrade process further comprises:
if the patch files of all the partitions in the installation package are written into the corresponding partitions in the terminal, the new mirror image file is used for partition burning in the upgrading process;
and if the patch files of part of the partitions in the installation package are written into the corresponding partitions in the terminal, writing the patch files of the other partitions in the installation package into the mirror image files of the corresponding partitions in the terminal in the upgrading process, and then burning the partitions.
10. The method of claim 9, further comprising:
and if the patch files of all the partitions of the installation package are not written into the corresponding partitions in the terminal, respectively writing the patch files of any one partition contained in the installation package into the mirror image files of the corresponding partition of the terminal in the upgrading process, and then burning the partitions.
CN201911114020.0A 2019-11-14 2019-11-14 Method and terminal for system upgrade Active CN110865837B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911114020.0A CN110865837B (en) 2019-11-14 2019-11-14 Method and terminal for system upgrade

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911114020.0A CN110865837B (en) 2019-11-14 2019-11-14 Method and terminal for system upgrade

Publications (2)

Publication Number Publication Date
CN110865837A true CN110865837A (en) 2020-03-06
CN110865837B CN110865837B (en) 2023-08-18

Family

ID=69654052

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911114020.0A Active CN110865837B (en) 2019-11-14 2019-11-14 Method and terminal for system upgrade

Country Status (1)

Country Link
CN (1) CN110865837B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111831314A (en) * 2020-06-24 2020-10-27 烽火通信科技股份有限公司 Method and device for patching non-writable partition
CN113867768A (en) * 2021-09-30 2021-12-31 厦门亿联网络技术股份有限公司 Operating system processing method and device, electronic equipment and storage medium
CN114185491A (en) * 2021-12-13 2022-03-15 惠州Tcl移动通信有限公司 Method and device for downloading partitioned file, storage medium and computer equipment
CN114265606A (en) * 2022-03-02 2022-04-01 龙旗电子(惠州)有限公司 Firmware upgrading method, device, equipment and storage medium
CN114661322A (en) * 2022-03-11 2022-06-24 荣耀终端有限公司 Upgrading method of operating system, electronic equipment and storage medium

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030079029A (en) * 2002-04-01 2003-10-10 주식회사 소프트닉스 A downloading installation for game program
CN102662697A (en) * 2012-03-27 2012-09-12 深圳市开立科技有限公司 Software upgrading method and device
CN102999369A (en) * 2012-12-25 2013-03-27 杭州华三通信技术有限公司 Method and device for upgrading virtual machines
CN103123588A (en) * 2013-02-05 2013-05-29 东莞宇龙通信科技有限公司 Method and system for obtaining difference upgrade patch
CN103810004A (en) * 2013-11-22 2014-05-21 小米科技有限责任公司 Method and device for upgrading embedded system as well as equipment
CN105446769A (en) * 2015-11-03 2016-03-30 广东欧珀移动通信有限公司 Mirror image file update processing method and apparatus and terminal device
CN105446772A (en) * 2015-11-16 2016-03-30 青岛海信移动通信技术股份有限公司 System upgrading method and apparatus
US20160216962A1 (en) * 2015-01-22 2016-07-28 Futurewei Technologies, Inc. Systems and methods to update source code files
WO2016183951A1 (en) * 2015-05-15 2016-11-24 中兴通讯股份有限公司 System upgrade method and terminal
CN106445616A (en) * 2016-10-12 2017-02-22 北京元心科技有限公司 Method and device for upgrading terminal equipment from multiple systems to single system
CN106462422A (en) * 2014-11-20 2017-02-22 宇龙计算机通信科技(深圳)有限公司 Multi-system terminal system updating method, updating device and terminal
CN107273160A (en) * 2017-06-09 2017-10-20 青岛海信电器股份有限公司 A kind of method and device of edition upgrading
CN109375937A (en) * 2018-10-30 2019-02-22 Oppo广东移动通信有限公司 Method for upgrading system, device, terminal device and storage medium
US20190146776A1 (en) * 2016-04-27 2019-05-16 Huawei Technologies Co., Ltd. Patch-Upgrade-Based File Processing Method and Apparatus, Terminal, and Storage Medium

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030079029A (en) * 2002-04-01 2003-10-10 주식회사 소프트닉스 A downloading installation for game program
CN102662697A (en) * 2012-03-27 2012-09-12 深圳市开立科技有限公司 Software upgrading method and device
CN102999369A (en) * 2012-12-25 2013-03-27 杭州华三通信技术有限公司 Method and device for upgrading virtual machines
CN103123588A (en) * 2013-02-05 2013-05-29 东莞宇龙通信科技有限公司 Method and system for obtaining difference upgrade patch
CN103810004A (en) * 2013-11-22 2014-05-21 小米科技有限责任公司 Method and device for upgrading embedded system as well as equipment
CN106462422A (en) * 2014-11-20 2017-02-22 宇龙计算机通信科技(深圳)有限公司 Multi-system terminal system updating method, updating device and terminal
US20160216962A1 (en) * 2015-01-22 2016-07-28 Futurewei Technologies, Inc. Systems and methods to update source code files
WO2016183951A1 (en) * 2015-05-15 2016-11-24 中兴通讯股份有限公司 System upgrade method and terminal
CN105446769A (en) * 2015-11-03 2016-03-30 广东欧珀移动通信有限公司 Mirror image file update processing method and apparatus and terminal device
CN105446772A (en) * 2015-11-16 2016-03-30 青岛海信移动通信技术股份有限公司 System upgrading method and apparatus
US20190146776A1 (en) * 2016-04-27 2019-05-16 Huawei Technologies Co., Ltd. Patch-Upgrade-Based File Processing Method and Apparatus, Terminal, and Storage Medium
CN106445616A (en) * 2016-10-12 2017-02-22 北京元心科技有限公司 Method and device for upgrading terminal equipment from multiple systems to single system
CN107273160A (en) * 2017-06-09 2017-10-20 青岛海信电器股份有限公司 A kind of method and device of edition upgrading
CN109375937A (en) * 2018-10-30 2019-02-22 Oppo广东移动通信有限公司 Method for upgrading system, device, terminal device and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
施超;鲍可进;: "基于Android平台OTA差分升级系统设计与实现", 信息技术, no. 10 *
杜列波等: "基于麒麟嵌入式操作系统的车载智能终端软件远程升级的设计与实现", 《国防科技大学学报》, no. 04 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111831314A (en) * 2020-06-24 2020-10-27 烽火通信科技股份有限公司 Method and device for patching non-writable partition
CN111831314B (en) * 2020-06-24 2022-11-22 烽火通信科技股份有限公司 Method and device for patching non-writable partition
CN113867768A (en) * 2021-09-30 2021-12-31 厦门亿联网络技术股份有限公司 Operating system processing method and device, electronic equipment and storage medium
CN114185491A (en) * 2021-12-13 2022-03-15 惠州Tcl移动通信有限公司 Method and device for downloading partitioned file, storage medium and computer equipment
CN114185491B (en) * 2021-12-13 2024-01-19 惠州Tcl移动通信有限公司 Partition file downloading method and device, storage medium and computer equipment
CN114265606A (en) * 2022-03-02 2022-04-01 龙旗电子(惠州)有限公司 Firmware upgrading method, device, equipment and storage medium
CN114661322A (en) * 2022-03-11 2022-06-24 荣耀终端有限公司 Upgrading method of operating system, electronic equipment and storage medium
CN114661322B (en) * 2022-03-11 2023-05-23 荣耀终端有限公司 Upgrade method of operating system, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN110865837B (en) 2023-08-18

Similar Documents

Publication Publication Date Title
CN110865837B (en) Method and terminal for system upgrade
CN112988213B (en) Program data updating method, electronic equipment and computer storage medium
CN115328563B (en) System starting method and electronic equipment
CN113535207A (en) Vehicle, vehicle-mounted software updating method thereof and mobile terminal
CN113709026B (en) Method, device, storage medium and program product for processing instant communication message
CN111158735B (en) Hot patch file processing method and communication terminal
WO2022052766A1 (en) Theme packet adaptation method and apparatus
CN113835928A (en) Application backup and recovery method, device, storage medium, and program product
CN113055585B (en) Thumbnail display method of shooting interface and mobile terminal
CN116700601B (en) Memory optimization method, equipment and storage medium
WO2022161024A1 (en) Upgrade prompt method, terminal device, and computer readable storage medium
CN111399955B (en) Mobile terminal and interface display method of application program thereof
CN114675786A (en) Large-capacity storage mounting method, device, terminal and medium
CN114138293A (en) Terminal and method for upgrading portable system of external memory card
CN113642010A (en) Method for acquiring data of extended storage device and mobile terminal
CN114138343A (en) Terminal and terminal starting method
CN115941674B (en) Multi-device application connection method, device and storage medium
CN117009023B (en) Method for displaying notification information and related device
CN116719556B (en) System upgrading method and electronic equipment
WO2024083114A1 (en) Software distribution method, electronic device, and system
CN114661310A (en) Application installation method based on dual systems, terminal device and storage medium
CN112925545A (en) Mobile terminal and application updating method thereof
CN113254052A (en) Firmware upgrading method for ink screen hard decoding chip and terminal equipment
CN112764832A (en) Application program installing and uninstalling method and communication terminal
CN113536387A (en) Terminal and method for detecting integrity of kernel data

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
CB02 Change of applicant information

Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Applicant after: Qingdao Hisense Mobile Communication Technology Co.,Ltd.

Address before: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Applicant before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant