CN109922078B - Upgrade control method, mobile terminal and computer-readable storage medium - Google Patents

Upgrade control method, mobile terminal and computer-readable storage medium Download PDF

Info

Publication number
CN109922078B
CN109922078B CN201910242339.5A CN201910242339A CN109922078B CN 109922078 B CN109922078 B CN 109922078B CN 201910242339 A CN201910242339 A CN 201910242339A CN 109922078 B CN109922078 B CN 109922078B
Authority
CN
China
Prior art keywords
upgrade package
information
mobile terminal
upgrade
package
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910242339.5A
Other languages
Chinese (zh)
Other versions
CN109922078A (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.)
Nubia Technology Co Ltd
Original Assignee
Nubia 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201910242339.5A priority Critical patent/CN109922078B/en
Publication of CN109922078A publication Critical patent/CN109922078A/en
Application granted granted Critical
Publication of CN109922078B publication Critical patent/CN109922078B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The application provides an upgrade control method, which is applied to a mobile terminal and comprises the following steps: obtaining an upgrade package; responding to an upgrading instruction, and sending upgrading package verification information generated according to the mobile terminal to a server; receiving response information fed back by the server, wherein the response information is information generated by the server according to the upgrade package verification information; and when the response information is determined to be matched with the upgrading packet, controlling the mobile terminal to upgrade according to the upgrading packet. The application also provides a mobile terminal and a computer readable storage medium. By the method, whether the obtained upgrade package is legal or not can be judged before the upgrade of the operating system, so that damage to the original operating system caused by upgrade failure of the operating system and even data loss of a user can be reduced.

Description

Upgrade control method, mobile terminal and computer-readable storage medium
Technical Field
The present application relates to the field of network communication technologies, and in particular, to an upgrade control method, a mobile terminal, and a computer-readable storage medium.
Background
In order to satisfy new technologies that are continuously updated and to solve some problems in existing systems, the operating system of the mobile terminal also needs to be continuously updated and upgraded. However, in the process of upgrading the operating system, the existing mobile terminal modifies the system partition of the operating system, and once the operating system fails to be upgraded in the process of upgrading the operating system, the partition cannot be restored to the initial state, so that certain irreversible damage is caused to the operating system. However, when the system of the existing mobile terminal is upgraded, an abnormality often occurs, which causes a failure of the system upgrade, and further damages an operating system installed in the mobile terminal.
Disclosure of Invention
The present application mainly aims to provide an upgrade control method, a mobile terminal and a computer-readable storage medium, which aim to determine in advance whether a system upgrade is successful or not, so as to reduce damage to an original operating system caused by an operating system upgrade failure, and even to reduce data loss of a user.
In order to achieve the above object, the present application provides an upgrade control method, which is applied to a mobile terminal, and includes: obtaining an upgrade package; responding to an upgrading instruction, and sending upgrading package verification information generated according to the mobile terminal to a server; receiving response information fed back by the server, wherein the response information is information generated by the server according to the upgrade package verification information; and when the response information is determined to be matched with the upgrading packet, controlling the mobile terminal to upgrade according to the upgrading packet.
Optionally, when it is determined that the response information does not match the upgrade package, the mobile terminal is controlled to delete the upgrade package.
Optionally, the step of sending the upgrade package verification information generated according to the mobile terminal to the server includes: acquiring version information of the mobile terminal; generating upgrade package verification information containing the version information; and sending the upgrade package verification information to the server.
Optionally, the response information includes at least one of the following information: the method comprises the following steps that no available upgrade package information and upgrade package proofreading information exist, wherein the unavailable upgrade package information means that no upgrade package adaptive to the mobile terminal exists; the upgrade package proofreading information refers to proofreading information generated according to an official upgrade package matched with the mobile terminal in the server.
Optionally, when it is determined that the response information does not match the upgrade package, the step of controlling the mobile terminal to delete the upgrade package includes: determining that the response information is no available upgrade package information; and displaying prompt information through a display interface of the mobile terminal, controlling to stop the upgrading and deleting the upgrading package.
Optionally, the upgrade package proofreading information is an official feature code generated by the server according to the official upgrade package through a preset encryption algorithm; the step of determining that the response information matches the upgrade package includes: generating a local feature code according to the upgrade package through the preset encryption algorithm; when the local feature code matches the official feature code, determining that the response information matches the upgrade package.
Optionally, the step of generating the official feature code according to the official upgrade package by using a preset encryption algorithm includes: acquiring parameter information of the official upgrade package; and generating the official feature code according to the parameter information through the preset encryption algorithm.
Optionally, before the step of controlling the mobile terminal to upgrade according to the upgrade package, the method includes: acquiring state information of the mobile terminal; and determining that the state information meets the upgrading requirement corresponding to the upgrading packet.
The present application further provides a mobile terminal, the mobile terminal including: a touch screen; a processor;
and the memory is connected with the processor and comprises a control instruction, and when the processor reads the control instruction, the mobile terminal is controlled to realize the upgrading control method.
The present application also provides a computer-readable storage medium having one or more programs, which are executed by one or more processors, to implement the upgrade control method described above.
According to the upgrade control method, the mobile terminal and the computer readable storage medium, after the upgrade package is obtained and downloaded to the local, before the upgrade package is installed, the upgrade package verification information is sent to the server, the server processes the upgrade package verification information and feeds back corresponding response information, and after the mobile terminal obtains the response information, whether the upgrade is carried out according to the obtained upgrade package is determined according to the response information. By the method, whether the obtained upgrade package is legal or not can be verified before the upgrade of the operating system, and when the upgrade package is matched with the response information fed back by the server, the upgrade is controlled, so that damage to the original operating system caused by upgrade failure of the operating system is reduced, and even data loss of a user is caused.
The above description is only an overview of the technical solutions of the present invention, and the present invention can be implemented in accordance with the content of the description so as to make the technical means of the present invention more clearly understood, and the above and other objects, features, and advantages of the present invention will be more clearly understood.
Drawings
Fig. 1 is a schematic diagram of a hardware structure of an optional mobile terminal for implementing various embodiments of the present application;
FIG. 2 is a schematic diagram of a communication network system of the mobile terminal shown in FIG. 1;
fig. 3 is a flowchart of an upgrade control method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In the following description, suffixes such as "module", "component", or "unit" used to denote elements are used only for facilitating the explanation of the present invention, and have no specific meaning in itself. Thus, "module", "component" or "unit" may be used mixedly.
The terminal may be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like.
The following description will be given by way of example of a mobile terminal, and it will be understood by those skilled in the art that the construction according to the embodiment of the present invention can be applied to a fixed type terminal, in addition to elements particularly used for mobile purposes.
Referring to fig. 1, which is a schematic diagram of a hardware structure of a mobile terminal for implementing various embodiments of the present invention, the mobile terminal 100 may include: RF (Radio Frequency) unit 101, wiFi module 102, audio output unit 103, a/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 1 is not intended to be limiting of mobile terminals, which may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following specifically describes the components of the mobile terminal with reference to fig. 1:
the radio frequency unit 101 may be configured to receive and transmit signals during information transmission and reception or during a call, and specifically, receive downlink information of a base station and then process the downlink information to the processor 110; in addition, uplink data is transmitted to the base station. Typically, radio frequency unit 101 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. In addition, the radio frequency unit 101 can also communicate with a network and other devices through wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to GSM (Global System for Mobile communications), GPRS (General Packet Radio Service), CDMA2000 (Code Division Multiple Access 2000 ), WCDMA (Wideband Code Division Multiple Access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access), FDD-LTE (Frequency Division duplex Long Term Evolution), and TDD-LTE (Time Division duplex Long Term Evolution).
WiFi belongs to short-distance wireless transmission technology, and the mobile terminal can help a user to receive and send e-mails, browse webpages, access streaming media and the like through the WiFi module 102, and provides wireless broadband internet access for the user. Although fig. 1 shows the WiFi module 102, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the WiFi module 102 or stored in the memory 109 into an audio signal and output as sound when the mobile terminal 100 is in a call signal reception mode, a call mode, a recording mode, a voice recognition mode, a broadcast reception mode, or the like. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the mobile terminal 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 may include a speaker, a buzzer, and the like.
The a/V input unit 104 is used to receive audio or video signals. The a/V input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, the Graphics processor 1041 Processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the WiFi module 102. The microphone 1042 may receive sounds (audio data) via the microphone 1042 in a phone call mode, a recording mode, a voice recognition mode, or the like, and may be capable of processing such sounds into audio data. The processed audio (voice) data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode. The microphone 1042 may implement various types of noise cancellation (or suppression) algorithms to cancel (or suppress) noise or interference generated in the course of receiving and transmitting audio signals.
The mobile terminal 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or a backlight when the mobile terminal 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the gesture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer gesture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 107 may include a touch panel 1071 and other input devices 1072. The touch panel 1071, also referred to as a touch screen, may collect a touch operation performed by a user on or near the touch panel 1071 (e.g., an operation performed by the user on or near the touch panel 1071 using a finger, a stylus, or any other suitable object or accessory), and drive a corresponding connection device according to a predetermined program. The touch panel 1071 may include two parts of 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 110, and can receive and execute commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 107 may include other input devices 1072 in addition to the touch panel 1071. In particular, other input devices 1072 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, and are not limited to these specific examples.
Further, the touch panel 1071 may cover the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 1, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 108 serves as an interface through which at least one external device is connected to the mobile terminal 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 100 or may be used to transmit data between the mobile terminal 100 and external devices.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, memory 109 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 processor 110 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the mobile terminal. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The mobile terminal 100 may further include a power supply 111 (e.g., a battery) for supplying power to various components, and preferably, the power supply 111 may be logically connected to the processor 110 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system.
Although not shown in fig. 1, the mobile terminal 100 may further include a bluetooth module or the like, which is not described in detail herein.
In order to facilitate understanding of the embodiments of the present invention, a communication network system on which the mobile terminal of the present invention is based is described below.
Referring to fig. 2, fig. 2 is an architecture diagram of a communication Network system according to an embodiment of the present invention, the communication Network system is an LTE system of a universal mobile telecommunications technology, and the LTE system includes a UE (User Equipment) 201, an e-UTRAN (Evolved UMTS Terrestrial Radio Access Network) 202, an epc (Evolved Packet Core) 203, and an IP service 204 of an operator, which are in communication connection in sequence.
Specifically, the UE201 may be the terminal 100 described above, and is not described herein again.
The E-UTRAN202 includes eNodeB2021 and other eNodeBs 2022, among others. Among them, the eNodeB2021 may be connected with other eNodeB2022 through backhaul (e.g., X2 interface), the eNodeB2021 is connected to the EPC203, and the eNodeB2021 may provide the UE201 with access to the EPC 203.
The EPC203 may include an MME (Mobility Management Entity) 2031, an hss (Home Subscriber Server) 2032, other MMEs 2033, an SGW (Serving gateway) 2034, a pgw (PDN gateway) 2035, and a PCRF (Policy and Charging Rules Function) 2036, and the like. The MME2031 is a control node for processing signaling between the UE201 and the EPC203, and provides bearer and connection management. HSS2032 is used to provide registers to manage functions such as home location register (not shown) and holds subscriber specific information about service characteristics, data rates, etc. All user data may be sent through SGW2034, PGW2035 may provide IP address allocation and other functions for UE201, PCRF2036 is a policy and charging control policy decision point for traffic data flow and IP bearer resources, which selects and provides available policy and charging control decisions for policy and charging enforcement function (not shown).
The IP services 204 may include the internet, intranets, IMS (IP Multimedia Subsystem), or other IP services, among others.
Although the LTE system is described as an example, it should be understood by those skilled in the art that the present invention is not limited to the LTE system, but may also be applied to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA, and future new network systems.
Based on the above mobile terminal hardware structure and communication network system, the present invention provides various embodiments of the method.
Fig. 3 is a flowchart of an embodiment of an upgrade control method provided in the present application. Once the method of this embodiment is triggered by the user, the flow in this embodiment automatically runs through the mobile terminal, where each step may be performed sequentially according to the sequence in the flowchart, or may be performed simultaneously according to a plurality of steps in an actual situation, which is not limited herein. The upgrade control method provided by the application comprises the following steps:
step S310, obtaining an upgrade package;
step S330, responding to an upgrading instruction, and sending upgrading package verification information generated according to the mobile terminal to a server;
step S350, receiving response information fed back by the server, wherein the response information is generated by the server according to the upgrade package verification information;
and step S370, when the response information is matched with the upgrade package, controlling the mobile terminal to upgrade according to the upgrade package.
Through the implementation mode, whether the obtained upgrade package is legal or not can be judged before the upgrade of the operating system, so that damage to the original operating system caused by upgrade failure of the operating system is reduced, and even data loss of a user is caused.
The above steps will be specifically described with reference to specific examples.
In step S310, an upgrade package is acquired.
Specifically, the upgrade package is a data package for controlling the mobile terminal to perform system upgrade, and the user selects the data package through an operation interface of the mobile terminal to install the data package. In this embodiment, the upgrade package is a data package downloaded by the mobile terminal on the internet, and may be downloaded from an official website of the mobile terminal, or may be an upgrade package obtained on-line through an upgrade interface of the operating system. In other embodiments, the upgrade package may be downloaded by another terminal and sent to the current mobile terminal, for example, downloaded by a PC, and then copied to the current mobile terminal.
In step S330, in response to the upgrade instruction, the upgrade package verification information generated according to the mobile terminal is sent to the server. The upgrade instruction is an instruction for triggering upgrade according to the upgrade package. In this embodiment, the upgrade instruction may be triggered by detecting that the start upgrade file in the data packet is triggered. In other embodiments, the upgrade instruction may also be triggered by detecting that an "upgrade control" in the setting interface is triggered. It should be noted that, when the operating system detects an upgrade instruction, it is only triggered to send the upgrade package verification information generated according to the mobile terminal to the server, instead of directly controlling the operating system to upgrade according to the upgrade package.
The upgrade package verification information is used for the server to determine a legal upgrade package of the current mobile terminal. In the present embodiment, the upgrade package verification information is verification information generated based on parameters of the mobile terminal. Specifically, step S330 may be performed by:
step S3301, obtaining version information of the mobile terminal;
step S3303, generating upgrade package verification information containing the version information;
and step S3305, sending the upgrade package verification information to the server.
The version information of the mobile terminal may refer to a mobile phone model, or a system version number, or may be other information for determining a type of an operating system of the mobile terminal. The server may be an official server corresponding to the mobile terminal.
Through the implementation mode, the server can inquire the corresponding upgrade package information according to the version information of the current mobile terminal, and the inquiry result is fed back to the mobile terminal in the form of response information, so that the mobile terminal can determine whether the acquired upgrade package is legal or not according to the content of the response information, and further, through the mode of judging whether the upgrade is legal or not, the damage of the upgrade failure of the operating system to the original operating system is reduced, and even the data loss of a user is caused.
In step S350, response information fed back by the server is received, where the response information is information generated by the server according to the upgrade package verification information.
Specifically, the response information is information that is generated by the server according to the result of querying the received upgrade package verification information and fed back to the mobile terminal. And after receiving the version information sent by the mobile terminal, the server inquires whether an upgrade package corresponding to the version information exists according to the version information, and then feeds back the inquiry result to the mobile terminal. Wherein, the information type contained in the response information is at least one of the following types: the method comprises the steps of obtaining available upgrade package information, upgrade package proofreading information and inquiry failure information, wherein the available upgrade package information means that an upgrade package adaptive to the mobile terminal does not exist, the upgrade package proofreading information means proofreading information generated according to an official upgrade package adaptive to the mobile terminal in the server, and the inquiry failure information means that the mobile terminal fails to communicate with the server. In this embodiment, the response information includes a code corresponding to the detection result, for example, after the server verifies the information query according to the upgrade package, if the query fails, an error code representing the query failure is fed back, where the error code representing the query failure is the query failure information.
Through the embodiment, the server inquires official upgrade package information according to the upgrade package verification information and feeds the inquiry result back to the mobile terminal, so that the mobile terminal can control whether to upgrade according to the acquired upgrade package according to the inquiry result, and damage to an original operating system caused by upgrade failure of the operating system is reduced, and even data loss of a user is caused.
In step S370, when it is determined that the response information matches the upgrade package, the mobile terminal is controlled to upgrade according to the upgrade package.
Specifically, when the response information matches the upgrade package, it means that when the response information received by the mobile terminal is upgrade package collation information, if the upgrade package collation information is matched with the upgrade package already acquired by the mobile terminal, it is determined that the response information matches the upgrade package. In an optional embodiment, when the server queries that a corresponding official upgrade package exists according to the upgrade package verification information, the server generates upgrade package proofreading information according to the official upgrade package, where the upgrade package proofreading information may be an official feature code generated according to the official upgrade package by using a preset encryption algorithm. In an optional embodiment, the step of generating the official feature code according to the official upgrade package by a preset encryption algorithm may be performed by the following steps:
step A, acquiring parameter information of the official upgrade package, wherein the parameter information can include but is not limited to the size of the upgrade package, the number of files contained in the upgrade package and the size of each file in the upgrade package;
and B, generating the official feature code according to the parameter information through the preset encryption algorithm, wherein the preset encryption algorithm is an MD5 code algorithm.
Through the implementation mode, the official feature code corresponding to the official upgrade package can be generated, and other upgrade packages can be verified through the official feature code.
Wherein the step of determining that the response information matches the upgrade package comprises:
step C, generating a local feature code according to the upgrade package through the preset encryption algorithm;
and D, when the local feature code is matched with the official feature code, determining that the response information is matched with the upgrade package.
Through the implementation mode, the mobile terminal can judge whether the obtained upgrade package is consistent with the official upgrade package, and if so, the obtained upgrade package is legal.
Further, the method provided by the present application further includes:
and step S380, controlling the mobile terminal to delete the upgrade package when the response information is determined not to be matched with the upgrade package. In this embodiment, when it is determined that the response information does not match the upgrade package, the step of controlling the mobile terminal to delete the upgrade package includes:
step S3801, determining that the response information is no available upgrade package information;
step S3802, displaying prompt information through a display interface of the mobile terminal, controlling to stop the upgrade and deleting the upgrade package. The prompt message may be "the authority has not exited the upgrade package for the system version".
Through the implementation mode, the user can clearly know the condition of the upgrade package currently obtained by the mobile terminal so as to determine whether to upgrade.
In order to further ensure the success of the upgrade, before the step of controlling the mobile terminal to upgrade according to the upgrade package, the method includes:
acquiring state information of the mobile terminal;
and determining that the state information meets the upgrading requirement corresponding to the upgrading packet.
Specifically, the status information includes, but is not limited to, system memory and remaining power. The upgrade requirement refers to the requirement of the upgrade package on the system memory and the requirement of the residual power. In this embodiment, the system memory is 1G, and the remaining power is 30%.
And if the state information does not meet the upgrading requirement corresponding to the upgrading packet, giving corresponding prompt, and controlling to upgrade according to the obtained upgrading packet when the state information is detected to meet the upgrading requirement.
According to the embodiment, after the upgrade package is acquired and downloaded to the local, before the upgrade package is installed, the upgrade package verification information is sent to the server, the corresponding response information is fed back after the server processes the upgrade package verification information, and after the mobile terminal acquires the response information, whether the upgrade is performed according to the acquired upgrade package is determined according to the response information. By the method, whether the obtained upgrade package is legal or not can be verified before the upgrade of the operating system, and when the upgrade package is matched with the response information fed back by the server, the upgrade is controlled, so that damage to the original operating system caused by upgrade failure of the operating system is reduced, and even data loss of a user is caused.
Fig. 4 is a schematic structural component diagram of the mobile terminal 100 according to an embodiment of the present application, where the mobile terminal 100 includes: a touch panel 1071; a processor 110; a memory 109 connected to the processor 110, wherein the memory 109 contains a control instruction, and when the processor 110 reads the control instruction, the mobile terminal 100 is controlled to implement the following steps:
obtaining an upgrade package; responding to an upgrading instruction, and sending upgrading package verification information generated according to the mobile terminal to a server; receiving response information fed back by the server, wherein the response information is information generated by the server according to the upgrade package verification information; and when the response information is determined to be matched with the upgrading packet, controlling the mobile terminal to upgrade according to the upgrading packet.
Optionally, when it is determined that the response information does not match the upgrade package, the mobile terminal is controlled to delete the upgrade package.
Optionally, the step of sending the upgrade package verification information generated according to the mobile terminal to the server includes: acquiring version information of the mobile terminal; generating upgrade package verification information containing the version information; and sending the upgrade package verification information to the server.
Optionally, the response information includes at least one of the following information: the method comprises the following steps that no available upgrade package information and upgrade package proofreading information exist, wherein the unavailable upgrade package information means that no upgrade package adaptive to the mobile terminal exists; the upgrade package proofreading information refers to proofreading information generated according to an official upgrade package matched with the mobile terminal in the server.
Optionally, when it is determined that the response information does not match the upgrade package, the step of controlling the mobile terminal to delete the upgrade package includes: determining that the response information is no available upgrade package information; and displaying prompt information through a display interface of the mobile terminal, controlling to stop the upgrading and deleting the upgrading package.
Optionally, the upgrade package proofreading information is an official feature code generated by the server according to the official upgrade package through a preset encryption algorithm; the step of determining that the response information matches the upgrade package includes: generating a local feature code according to the upgrade package through the preset encryption algorithm; when the local feature code matches the official feature code, determining that the response information matches the upgrade package.
Optionally, the step of generating the official feature code according to the official upgrade package by using a preset encryption algorithm includes: acquiring parameter information of the official upgrade package; and generating the official feature code according to the parameter information through the preset encryption algorithm.
Optionally, before the step of controlling the mobile terminal to upgrade according to the upgrade package, the method includes: acquiring state information of the mobile terminal; and determining that the state information meets the upgrading requirement corresponding to the upgrading packet.
Through the mobile terminal, after the upgrade package is acquired and downloaded to the local, before the upgrade package is installed, the upgrade package verification information is sent to the server, the corresponding response information is fed back after the server processes the upgrade package verification information, and after the mobile terminal acquires the response information, whether the upgrade is performed according to the acquired upgrade package is determined according to the response information. By the method, whether the obtained upgrade package is legal or not can be verified before the upgrade of the operating system, and when the upgrade package is matched with the response information fed back by the server, the upgrade is controlled, so that damage to the original operating system caused by upgrade failure of the operating system is reduced, and even data loss of a user is caused.
Embodiments of the present application further provide a computer-readable storage medium having one or more programs, where the one or more programs are executed by one or more processors to implement the following steps: obtaining an upgrade package; responding to an upgrading instruction, and sending upgrading package verification information generated according to the mobile terminal to a server; receiving response information fed back by the server, wherein the response information is information generated by the server according to the upgrade package verification information; and when the response information is determined to be matched with the upgrading packet, controlling the mobile terminal to upgrade according to the upgrading packet.
Optionally, when it is determined that the response information does not match the upgrade package, the mobile terminal is controlled to delete the upgrade package.
Optionally, the step of sending the upgrade package verification information generated according to the mobile terminal to the server includes: acquiring version information of the mobile terminal; generating upgrade package verification information containing the version information; and sending the upgrade package verification information to the server.
Optionally, the response information includes at least one of the following information: the method comprises the following steps that no available upgrade package information and upgrade package proofreading information exist, wherein the unavailable upgrade package information means that no upgrade package adaptive to the mobile terminal exists; the upgrade package proofreading information refers to proofreading information generated according to an official upgrade package matched with the mobile terminal in the server.
Optionally, when it is determined that the response information does not match the upgrade package, the step of controlling the mobile terminal to delete the upgrade package includes: determining that the response information is no available upgrade package information; and displaying prompt information through a display interface of the mobile terminal, controlling to stop the upgrading and deleting the upgrading package.
Optionally, the upgrade package proofreading information is an official feature code generated by the server according to the official upgrade package through a preset encryption algorithm; the step of determining that the response information matches the upgrade package includes: generating a local feature code according to the upgrade package through the preset encryption algorithm; determining that the response information matches the upgrade package when the local feature code matches the official feature code.
Optionally, the step of generating the official feature code according to the official upgrade package by using a preset encryption algorithm includes: acquiring parameter information of the official upgrade package; and generating the official feature code according to the parameter information through the preset encryption algorithm.
Optionally, before the step of controlling the mobile terminal to upgrade according to the upgrade package, the method includes: acquiring state information of the mobile terminal; and determining that the state information meets the upgrading requirement corresponding to the upgrading packet.
By means of the computer-readable storage medium, after the upgrade package is acquired and downloaded to the local area, before the upgrade package is installed, the upgrade package verification information is sent to the server, the server feeds back corresponding response information after processing is carried out according to the upgrade package verification information, and after the mobile terminal acquires the response information, whether the upgrade is carried out according to the acquired upgrade package is determined according to the response information. By the method, whether the obtained upgrade package is legal or not can be verified before the upgrade of the operating system, and when the upgrade package is matched with the response information fed back by the server, the upgrade is controlled, so that damage to the original operating system caused by upgrade failure of the operating system is reduced, and even data loss of a user is caused.
The embodiment of the application also provides a computer readable storage medium. The computer-readable storage medium herein stores one or more programs. Among other things, computer-readable storage media may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk; the memory may also comprise a combination of memories of the kind described above.
The corresponding technical features in the above embodiments may be used with each other without causing contradiction in the schemes or without being implementable.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (9)

1. An upgrade control method, applied to a mobile terminal, the method comprising:
obtaining an upgrade package;
responding to an upgrading instruction, and sending upgrading package verification information generated according to the mobile terminal to a server, wherein the upgrading package verification information comprises: acquiring version information of the mobile terminal; generating upgrade package verification information containing the version information; sending the upgrade package verification information to the server;
receiving response information fed back by the server, wherein the response information is information generated by the server according to the upgrade package verification information, and the response information comprises unavailable upgrade package information, and the unavailable upgrade package information means that no upgrade package adaptive to the mobile terminal exists;
and when the response information is matched with the upgrade package, controlling the mobile terminal to upgrade according to the upgrade package.
2. The method of claim 1, wherein when it is determined that the response information does not match the upgrade package, controlling the mobile terminal to delete the upgrade package.
3. The method according to claim 1 or 2, wherein the response information further includes upgrade package proofreading information, wherein the upgrade package proofreading information refers to proofreading information generated according to an official upgrade package adapted to the mobile terminal in the server.
4. The method of claim 3, wherein the step of controlling the mobile terminal to delete the upgrade package when it is determined that the response information does not match the upgrade package comprises:
determining that the response information is no available upgrade package information;
and displaying prompt information through a display interface of the mobile terminal, controlling to stop the upgrading and deleting the upgrading package.
5. The method of claim 4, wherein the upgrade package collation information is an official feature code generated by the server from the official upgrade package through a preset encryption algorithm; the step of determining that the response information matches the upgrade package includes:
generating a local feature code according to the upgrade package through the preset encryption algorithm;
determining that the response information matches the upgrade package when the local feature code matches the official feature code.
6. The method of claim 5, wherein the step of generating the official feature code according to the official upgrade package through a preset encryption algorithm comprises:
acquiring parameter information of the official upgrade package;
and generating the official feature code according to the parameter information through the preset encryption algorithm.
7. The method as claimed in claim 1, wherein the step of controlling the mobile terminal to upgrade according to the upgrade package is preceded by:
acquiring state information of the mobile terminal;
and determining that the state information meets the upgrading requirement corresponding to the upgrading packet.
8. A mobile terminal, characterized in that the mobile terminal comprises:
a touch screen;
a processor;
the memory is connected with the processor and contains control instructions, and when the processor reads the control instructions, the memory controls the mobile terminal to realize the upgrading control method of any one of claims 1 to 7.
9. A computer readable storage medium having one or more programs embodied therein, the one or more programs being executable by one or more processors to perform the upgrade control method of any of claims 1 to 7.
CN201910242339.5A 2019-03-28 2019-03-28 Upgrade control method, mobile terminal and computer-readable storage medium Active CN109922078B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910242339.5A CN109922078B (en) 2019-03-28 2019-03-28 Upgrade control method, mobile terminal and computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910242339.5A CN109922078B (en) 2019-03-28 2019-03-28 Upgrade control method, mobile terminal and computer-readable storage medium

Publications (2)

Publication Number Publication Date
CN109922078A CN109922078A (en) 2019-06-21
CN109922078B true CN109922078B (en) 2023-03-21

Family

ID=66967403

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910242339.5A Active CN109922078B (en) 2019-03-28 2019-03-28 Upgrade control method, mobile terminal and computer-readable storage medium

Country Status (1)

Country Link
CN (1) CN109922078B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112416380B (en) * 2019-08-21 2024-03-29 成都鼎桥通信技术有限公司 Method and device for killing and freezing prevention by application
CN111885564B (en) * 2020-07-03 2024-03-22 海尔优家智能科技(北京)有限公司 Data transmission method, equipment upgrading method and computer readable storage medium
CN113067734B (en) * 2021-03-29 2023-10-20 努比亚技术有限公司 Electronic price tag upgrading method, electronic price tag system, electronic terminal and storage medium
CN113408015A (en) * 2021-06-15 2021-09-17 北京安天网络安全技术有限公司 Product operation and maintenance method and device of terminal equipment and storage medium
CN114039966A (en) * 2021-10-18 2022-02-11 安徽泽峰物联科技有限公司 Intelligent terminal based on LTE wireless communication technology and use method thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107122668A (en) * 2017-04-28 2017-09-01 环球智达科技(北京)有限公司 Firmware encrypting method
CN107222532A (en) * 2017-05-23 2017-09-29 努比亚技术有限公司 A kind of radio firmware upgrade method, device and computer-readable recording medium
CN109144537A (en) * 2018-07-17 2019-01-04 奇酷互联网络科技(深圳)有限公司 The method, apparatus that mobile terminal and wearable device upgrade automatically
CN109358883A (en) * 2018-11-05 2019-02-19 珠海格力电器股份有限公司 Programme upgrade method, system and application system, storage medium

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100334555C (en) * 2002-12-27 2007-08-29 技嘉科技股份有限公司 Upgrading control method for intelligent cured software
KR101426710B1 (en) * 2006-07-14 2014-09-23 삼성전자주식회사 Device and method for upgrading version information of terminal
CN101719937B (en) * 2009-11-30 2012-10-24 中兴通讯股份有限公司 Method and system for updating terminal device
CN102624569B (en) * 2012-04-18 2016-03-30 华为技术有限公司 To method and system, the network equipment and terminal that terminal is upgraded
CN104375870A (en) * 2014-12-03 2015-02-25 广州广电运通金融电子股份有限公司 Self-service terminal software remote upgrading method and system and upgrading package creation method
CN105871600B (en) * 2016-03-28 2019-03-22 努比亚技术有限公司 The upgrading packet inspection method and service device, upgrade method and system of application program
CN106886436B (en) * 2017-01-23 2020-12-04 青岛海信移动通信技术股份有限公司 Android system upgrading method and device
CN107832065A (en) * 2017-10-24 2018-03-23 广州力浦高科技有限公司 Firmware upgrade method, water purifier, upgrade-system and readable storage medium storing program for executing
CN109495307A (en) * 2018-11-27 2019-03-19 北京车和家信息技术有限公司 Method for upgrading system, OTA upgrade package encryption method, terminal device and vehicle

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107122668A (en) * 2017-04-28 2017-09-01 环球智达科技(北京)有限公司 Firmware encrypting method
CN107222532A (en) * 2017-05-23 2017-09-29 努比亚技术有限公司 A kind of radio firmware upgrade method, device and computer-readable recording medium
CN109144537A (en) * 2018-07-17 2019-01-04 奇酷互联网络科技(深圳)有限公司 The method, apparatus that mobile terminal and wearable device upgrade automatically
CN109358883A (en) * 2018-11-05 2019-02-19 珠海格力电器股份有限公司 Programme upgrade method, system and application system, storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于Android平台的智能手机多包连续升级技术改进与实现;张宇杰;《中国优秀硕士学位论文全文数据库 信息科技辑》;20180415;I138-1765页 *

Also Published As

Publication number Publication date
CN109922078A (en) 2019-06-21

Similar Documents

Publication Publication Date Title
CN109922078B (en) Upgrade control method, mobile terminal and computer-readable storage medium
CN109151169B (en) Camera authority management method, mobile terminal and computer readable storage medium
CN109600740B (en) File downloading method and device and computer readable storage medium
CN107329682B (en) Edge interaction method and mobile terminal
CN107329865B (en) Method for opening adb function of debugging bridge, mobile terminal and computer readable medium
CN108833690B (en) Authority control method, terminal and computer readable storage medium
CN107172605B (en) Emergency call method, mobile terminal and computer readable storage medium
CN107682540B (en) Picture processing method, terminal and computer readable storage medium
CN107124718B (en) Data transmission method, mobile terminal and storage medium
CN109766119B (en) Recovery partition upgrade method, terminal and computer readable storage medium
CN108012270B (en) Information processing method, equipment and computer readable storage medium
CN109254972B (en) Offline command word bank updating method, terminal and computer readable storage medium
CN108629863B (en) Method for automatically signing in application program, mobile terminal and readable storage medium
CN107239208B (en) Method, apparatus, and computer-readable storage medium for processing screenshot
CN110187934B (en) Application control method, terminal and computer readable storage medium
CN108845821B (en) Application program updating method, terminal and computer readable storage medium
CN112395106A (en) Process management method, mobile terminal, and computer-readable storage medium
CN109062688B (en) Memory allocation method, server and mobile terminal
CN111931155A (en) Verification code input method, verification code input equipment and storage medium
CN108667714B (en) Information transmitting method, information receiving method, mobile terminal and storage medium
CN108183833B (en) Response processing method and device and computer readable storage medium
CN107404568B (en) Control switch management method and mobile terminal
CN109195210B (en) Power saving method, mobile terminal and computer readable storage medium
CN114070930A (en) Intelligent terminal control method, intelligent terminal and storage medium
CN110275667B (en) Content display method, mobile terminal, and computer-readable storage medium

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
GR01 Patent grant
GR01 Patent grant