CN109922078A - 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
CN109922078A
CN109922078A CN201910242339.5A CN201910242339A CN109922078A CN 109922078 A CN109922078 A CN 109922078A CN 201910242339 A CN201910242339 A CN 201910242339A CN 109922078 A CN109922078 A CN 109922078A
Authority
CN
China
Prior art keywords
upgrade package
mobile terminal
information
upgrade
response message
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
CN201910242339.5A
Other languages
Chinese (zh)
Other versions
CN109922078B (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

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

This application provides a kind of upgrade control method, the method is applied to mobile terminal, which comprises obtains upgrade package;Upgrade command is responded, the upgrade package verification information generated according to the mobile terminal is sent to server;Receive the response message of the server feedback, wherein the response message is the information that the server is generated according to the upgrade package verification information;When determining that the response message and the upgrade package match, controls the mobile terminal and upgraded according to the upgrade package.Present invention also provides a kind of mobile terminal and computer readable storage mediums.In this manner, can whether legal to the upgrade package of acquisition before operating system update, to reduce destruction of the operating system update unsuccessfully to original operating system, even result in the loss of data of user.

Description

Upgrade control method, mobile terminal and computer readable storage medium
Technical field
This application involves network communication technology field more particularly to a kind of upgrade control methods, mobile terminal and computer Readable storage medium storing program for executing.
Background technique
For the problems in new technology and some existing systems of solution for meeting continuous renewal, the operation system of mobile terminal System is also required to constantly update upgrading.However, existing mobile terminal is during carrying out operating system update, it can be to operating system System partitioning modify, once occur operating system update during operating system update unsuccessfully and will be unable to and subregion is extensive Original state is arrived again, to cause certain irreversible destruction to operating system.However, existing mobile terminal is being When system upgrading, it often will appear exception, system upgrade caused to fail, and then the installed operating system of mobile terminal is caused It destroys.
Summary of the invention
The main purpose of the application is to propose a kind of upgrade control method, mobile terminal and computer-readable storage medium Matter, it is intended to determine whether system upgrade succeeds in advance, to reduce destruction of the operating system update unsuccessfully to original operating system, very To the loss of data for leading to user.
To achieve the above object, this application provides a kind of upgrade control method, the method is applied to mobile terminal, institute The method of stating includes: acquisition upgrade package;Upgrade command is responded, sends to server and is tested according to the upgrade package that the mobile terminal generates Demonstrate,prove information;Receive the response message of the server feedback, wherein the response message is the server according to the upgrading The information that packet verification information generates;When determining that the response message and the upgrade package match, the mobile terminal root is controlled Upgraded according to the upgrade package.
Optionally it is determined that controlling the mobile terminal when response message and the upgrade package do not match that and deleting institute State upgrade package.
Optionally, the step of upgrade package verification information generated to server transmission according to the mobile terminal, packet It includes: obtaining the version information of the mobile terminal;Generate the upgrade package verification information comprising the version information;By the upgrading Packet verification information is sent to the server.
Optionally, the response message includes following at least one information: can not use upgrading package informatin and upgrade package check and correction Information, wherein it is described can not be referred to upgrading package informatin upgrade package compatible with the mobile terminal is not present;The upgrading Packet calibration information refers to according to official compatible with the mobile terminal upgrade package check and correction generated in the server Information.
Optionally, it when the determination response message and the upgrade package do not match that, controls the mobile terminal and deletes The step of except the upgrade package, comprising: determine that the response message is that can not use upgrading package informatin;Pass through the mobile terminal Display interface display reminding information, control stop this time upgrading and deleting the upgrade package.
Optionally, the upgrade package calibration information is that the server is upgraded by predetermined encryption algorithm according to the official Wrap the official's condition code generated;The step of determination response message and the upgrade package match, comprising: by described Predetermined encryption algorithm generates local condition code according to the upgrade package;When the local condition code and official's condition code phase Timing determines that the response message matches with the upgrade package.
Optionally, the step of official's condition code generated by predetermined encryption algorithm according to official's upgrade package, It include: the parameter information for obtaining official's upgrade package;Institute is generated according to the parameter information by the predetermined encryption algorithm State official's condition code.
Optionally, before the step of control mobile terminal is upgraded according to the upgrade package, comprising: obtain The status information of the mobile terminal;Determine that the status information meets the corresponding upgrading requirement of the upgrade package.
The application also provides a kind of mobile terminal, and the mobile terminal includes: touch screen;Processor;
Memory is connected to the processor, and the memory includes control instruction, when the processor reads the control When system instruction, controls the mobile terminal and realize above-mentioned upgrade control method.
The application also provides a kind of computer readable storage medium, and the computer readable storage medium has one or more Program, one or more of programs are executed by one or more processors, to realize above-mentioned upgrade control method.
Upgrade control method, mobile terminal and computer readable storage medium provided by the present application, are getting upgrade package And be downloaded to after local, before carrying out installation upgrade package, by sending upgrade package verification information to server, in server Feed back corresponding response message after being handled according to upgrade package verification information, after acquisition for mobile terminal to response message, according to Response message determines whether to be upgraded according to the upgrade package of acquisition.It in this manner, can be right before operating system update Whether the upgrade package of acquisition is legal to be verified, and when the response message of upgrade package and server feedback matches, control is carried out Upgrading, to reduce destruction of the operating system update unsuccessfully to original operating system, even results in the loss of data of user.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
Fig. 1 is the hardware structural diagram for realizing each embodiment one optional mobile terminal of the application;
Fig. 2 is the communications network system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the flow chart for the upgrade control method that one embodiment of the application provides;
Fig. 4 is the structural schematic diagram for the mobile terminal that one embodiment of the application provides.
The embodiments will be further described with reference to the accompanying drawings for realization, functional characteristics and the advantage of the application purpose.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plate Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable Media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. move The fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special Except element for moving purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting Dynamic terminal 100 may include: RF (Radio Frequency, 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, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not constitute the restriction to mobile terminal, and mobile terminal may include components more more or fewer than diagram, Perhaps certain components or different component layouts are combined.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102 Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 shows Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need It to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103 Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model. Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition) The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel 1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place Managing device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, the communications network system that mobile terminal of the invention is based below into Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network system System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation 204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS (Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way, Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers Such as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and use The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201 Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art should know the present invention is not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And the following new network system etc., herein without limitation.
Based on above-mentioned mobile terminal hardware configuration and communications network system, each embodiment of the method for the present invention is proposed.
Fig. 3 is the flow chart of the embodiment of a upgrade control method provided by the present application.Once the method quilt of the embodiment User's triggering, then the process in the embodiment passes through mobile terminal automatic running, wherein each step can be with when operation It is successively to be carried out according to the sequence in such as flow chart, is also possible to multiple steps according to the actual situation while carrying out, herein not It limits.Upgrade control method provided by the present application includes the following steps:
Step S310 obtains upgrade package;
Step S330 responds upgrade command, and the upgrade package verifying letter generated according to the mobile terminal is sent to server Breath;
Step S350 receives the response message of the server feedback, wherein the response message is the server root The information generated according to the upgrade package verification information;
Step S370 controls the mobile terminal according to institute when determining that the response message and the upgrade package match Upgrade package is stated to be upgraded.
, can whether legal to the upgrade package of acquisition before operating system update by above embodiment, to reduce behaviour Make destruction of the system upgrade unsuccessfully to original operating system, even results in the loss of data of user.
Above-mentioned steps are specifically described below in conjunction with specific embodiment.
In step s310, upgrade package is obtained.
Specifically, upgrade package refer to for carry out control mobile terminal carry out system upgrade data packet, user by The operation interface of mobile terminal selects the data packet to be installed.In the present embodiment, upgrade package is mobile terminal mutual The data packet downloaded in networking, wherein can be and be downloaded from the official website of mobile terminal, is also possible in operation system The upgrading interface of system passes through the upgrade package obtained online.In other embodiments, upgrade package can be by other terminals into Row is downloaded and is sent to current mobile terminal, for example, is downloaded by the end PC, is then copied to current mobile terminal.
In step S330, upgrade command is responded, sends to server and is tested according to the upgrade package that the mobile terminal generates Demonstrate,prove information.Upgrade command refers to the instruction that triggering is upgraded according to upgrade package.In the present embodiment, upgrade command can lead to The mode that the beginning upgrade file crossed in detection data packet is triggered is triggered.In other embodiments, upgrade command It can be triggered in such a way that " the upgrading control " in detection set interface is triggered.It should be noted that when operation system When system detects upgrade command, only triggers to server and sends the upgrade package verification information generated according to the mobile terminal, Rather than direct control operation system is upgraded according to upgrade package.
Wherein, upgrade package verification information is used to determine the legal upgrade package of current mobile terminal for server.In this implementation In mode, upgrade package verification information is the verification information generated according to the parameter of mobile terminal.Specifically, step S330 can lead to Cross following steps progress:
Step S3301 obtains the version information of the mobile terminal;
Step S3303 generates the upgrade package verification information comprising the version information;
The upgrade package verification information is sent to the server by step S3305.
Wherein, the version information of mobile terminal can refer to mobile phone model or system version number, naturally it is also possible to be it He to determine mobile terminal operating system type information.Server can be the corresponding official's server of mobile terminal.
By above embodiment, server can inquire corresponding upgrade package according to the version information of current mobile terminal Information believes that mobile terminal according to response by the way that query result is fed back to mobile terminal in the form of response message The content of breath determines whether the upgrade package obtained legal, and then by whether upgrading mode, to reduce operating system liter The grade unsuccessfully destruction to original operating system, even results in the loss of data of user.
In step S350, the response message of the server feedback is received, wherein the response message is the service The information that device is generated according to the upgrade package verification information.
Specifically, response message is that the result after server is inquired according to the upgrade package verification information received generates The information for feeding back to mobile terminal.After server receives the version information of mobile terminal transmission, according to the version information Inquiry whether there is upgrade package corresponding with the version information, and query result is then fed back to mobile terminal.Wherein, it responds The information category for including in information is at least following a kind of: can not use upgrading package informatin, upgrade package calibration information and inquiry failure Information, wherein can not refer to that there is no upgrade package compatible with the mobile terminal, the upgrade package schools with upgrading package informatin Information is referred to according to official compatible with the mobile terminal upgrade package calibration information generated in the server, The query failure message refers to that the mobile terminal and the server communication fail.In the present embodiment, response message In include code corresponding with testing result, for example, when server according to upgrade package verification information inquire after, if looked into Failure is ask, then feeds back the error code for representing inquiry failure, wherein the error code of representative inquiry failure is to inquire failure Information.
By above embodiment, server is inquired according to upgrading package informatin of the upgrade package verification information to official, And query result is fed back into mobile terminal, allow mobile terminal to control whether that basis has obtained according to query result Upgrade package is upgraded, and to reduce destruction of the operating system update unsuccessfully to original operating system, even results in the data of user It loses.
In step S370, when determining that the response message and the upgrade package match, the mobile terminal root is controlled Upgraded according to the upgrade package.
Specifically, refer to when response message matches with the upgrade package, when the response message that mobile terminal receives When for upgrade package calibration information, if upgrade package calibration information is wanted to match with the upgrade package that mobile terminal has obtained, it is determined that The response message matches with the upgrade package.In an optional embodiment, is verified and believed according to upgrade package in server Breath is inquired there are when corresponding official's upgrade package, generates upgrade package calibration information according to official's upgrade package, wherein upgrade package school It can be the official's condition code generated by predetermined encryption algorithm according to official's upgrade package to information.In an optional implementation In mode, the step of official's condition code generated by predetermined encryption algorithm according to official's upgrade package, can be by walking as follows It is rapid to carry out:
Step A obtains the parameter information of official's upgrade package, wherein parameter information can include but is not limited to upgrade The size of each file in the size of packet, the file number for including and upgrade package;
Step B generates official's condition code according to the parameter information by the predetermined encryption algorithm, wherein pre- If Encryption Algorithm is MD5 code algorithm.
By above embodiment, official corresponding with official's upgrade package condition code can be generated, pass through official's feature Code can verify other upgrade package.
Wherein, the step of determination response message and the upgrade package match, comprising:
Step C generates local condition code according to the upgrade package by the predetermined encryption algorithm;
Step D, when the local condition code and official's condition code match, determine the response message with it is described Upgrade package matches.
By above embodiment, so that mobile terminal may determine that whether are the upgrade package obtained and official's upgrade package Unanimously, if unanimously, illustrating that the upgrade package currently obtained is legal upgrade package.
Further, method provided herein further include:
Step S380 when determining that the response message and the upgrade package do not match that, controls the mobile terminal and deletes The upgrade package.In the present embodiment, when the determination response message and the upgrade package do not match that, described in control Mobile terminal deletes the step of upgrade package, comprising:
Step S3801 determines that the response message is that can not use upgrading package informatin;
Step S3802, by the display interface display reminding information of the mobile terminal, control stops this time upgrading and deleting Except the upgrade package.Wherein, prompt information can be " official is not yet directed to the system version and exits upgrade package ".
By above embodiment, the case where upgrade package that mobile terminal currently obtains clearly is known at family can be used, To decide whether to be upgraded.
In order to further guarantee to upgrade successfully, in the step that the control mobile terminal is upgraded according to the upgrade package Before rapid, comprising:
Obtain the status information of the mobile terminal;
Determine that the status information meets the corresponding upgrading requirement of the upgrade package.
Specifically, status information includes but is not limited to Installed System Memory and remaining capacity.Upgrading requires to refer to upgrade package to being The requirement of system memory and the requirement of remaining capacity.In the present embodiment, Installed System Memory 1G, remaining capacity 30%.
If status information is unsatisfactory for the corresponding upgrading requirement of the upgrade package, give to remind accordingly, it is to be checked to measure When status information satisfaction upgrading requires, control is upgraded according to acquired upgrade package.
By above embodiment, after getting upgrade package and being downloaded to local, before carrying out installation upgrade package, By sending upgrade package verification information to server, fed back after server is handled according to upgrade package verification information corresponding Response message, after acquisition for mobile terminal to response message, information determines whether to be risen according to the upgrade package of acquisition according to response Grade.In this manner, whether legal to the upgrade package of acquisition before operating system update can verify, when upgrade package with When the response message of server feedback matches, control is upgraded, and is to original operation to reduce operating system update unsuccessfully The destruction of system even results in the loss of data of user.
Fig. 4 is the structure composition schematic diagram of mobile terminal 100 provided by the embodiments of the present application, and mobile terminal 100 includes: touching Touch panel 1071;Processor 110;Memory 109 is connect with the processor 110, and the memory 109 includes control instruction, When the processor 110 reads the control instruction, controls the mobile terminal 100 and realizes following steps:
Obtain upgrade package;Upgrade command is responded, sends to server and is verified according to the upgrade package that the mobile terminal generates Information;Receive the response message of the server feedback, wherein the response message is the server according to the upgrade package The information that verification information generates;Determine the response message and when the upgrade package matches, control the mobile terminal according to The upgrade package is upgraded.
Optionally it is determined that controlling the mobile terminal when response message and the upgrade package do not match that and deleting institute State upgrade package.
Optionally, the step of upgrade package verification information generated to server transmission according to the mobile terminal, packet It includes: obtaining the version information of the mobile terminal;Generate the upgrade package verification information comprising the version information;By the upgrading Packet verification information is sent to the server.
Optionally, the response message includes following at least one information: can not use upgrading package informatin and upgrade package check and correction Information, wherein it is described can not be referred to upgrading package informatin upgrade package compatible with the mobile terminal is not present;The upgrading Packet calibration information refers to according to official compatible with the mobile terminal upgrade package check and correction generated in the server Information.
Optionally, it when the determination response message and the upgrade package do not match that, controls the mobile terminal and deletes The step of except the upgrade package, comprising: determine that the response message is that can not use upgrading package informatin;Pass through the mobile terminal Display interface display reminding information, control stop this time upgrading and deleting the upgrade package.
Optionally, the upgrade package calibration information is that the server is upgraded by predetermined encryption algorithm according to the official Wrap the official's condition code generated;The step of determination response message and the upgrade package match, comprising: by described Predetermined encryption algorithm generates local condition code according to the upgrade package;When the local condition code and official's condition code phase Timing determines that the response message matches with the upgrade package.
Optionally, the step of official's condition code generated by predetermined encryption algorithm according to official's upgrade package, It include: the parameter information for obtaining official's upgrade package;Institute is generated according to the parameter information by the predetermined encryption algorithm State official's condition code.
Optionally, before the step of control mobile terminal is upgraded according to the upgrade package, comprising: obtain The status information of the mobile terminal;Determine that the status information meets the corresponding upgrading requirement of the upgrade package.
By above-mentioned mobile terminal, after getting upgrade package and being downloaded to local, before carrying out installation upgrade package, By sending upgrade package verification information to server, fed back after server is handled according to upgrade package verification information corresponding Response message, after acquisition for mobile terminal to response message, information determines whether to be risen according to the upgrade package of acquisition according to response Grade.In this manner, whether legal to the upgrade package of acquisition before operating system update can verify, when upgrade package with When the response message of server feedback matches, control is upgraded, and is to original operation to reduce operating system update unsuccessfully The destruction of system even results in the loss of data of user.
The embodiment of the present application also provides a kind of computer readable storage medium, and computer readable storage medium has one or more A program, one or more programs are executed by one or more processors, to realize following steps: obtaining upgrade package;Response rises Grade instruction, the upgrade package verification information generated according to the mobile terminal is sent to server;Receive the server feedback Response message, wherein the response message is the information that the server is generated according to the upgrade package verification information;Determine institute It states response message and when the upgrade package matches, controls the mobile terminal and upgraded according to the upgrade package.
Optionally it is determined that controlling the mobile terminal when response message and the upgrade package do not match that and deleting institute State upgrade package.
Optionally, the step of upgrade package verification information generated to server transmission according to the mobile terminal, packet It includes: obtaining the version information of the mobile terminal;Generate the upgrade package verification information comprising the version information;By the upgrading Packet verification information is sent to the server.
Optionally, the response message includes following at least one information: can not use upgrading package informatin and upgrade package check and correction Information, wherein it is described can not be referred to upgrading package informatin upgrade package compatible with the mobile terminal is not present;The upgrading Packet calibration information refers to according to official compatible with the mobile terminal upgrade package check and correction generated in the server Information.
Optionally, it when the determination response message and the upgrade package do not match that, controls the mobile terminal and deletes The step of except the upgrade package, comprising: determine that the response message is that can not use upgrading package informatin;Pass through the mobile terminal Display interface display reminding information, control stop this time upgrading and deleting the upgrade package.
Optionally, the upgrade package calibration information is that the server is upgraded by predetermined encryption algorithm according to the official Wrap the official's condition code generated;The step of determination response message and the upgrade package match, comprising: by described Predetermined encryption algorithm generates local condition code according to the upgrade package;When the local condition code and official's condition code phase Timing determines that the response message matches with the upgrade package.
Optionally, the step of official's condition code generated by predetermined encryption algorithm according to official's upgrade package, It include: the parameter information for obtaining official's upgrade package;Institute is generated according to the parameter information by the predetermined encryption algorithm State official's condition code.
Optionally, before the step of control mobile terminal is upgraded according to the upgrade package, comprising: obtain The status information of the mobile terminal;Determine that the status information meets the corresponding upgrading requirement of the upgrade package.
By above-mentioned computer readable storage medium, after getting upgrade package and being downloaded to local, installed Before upgrade package, by sending upgrade package verification information to server, handled in server according to upgrade package verification information After feed back corresponding response message, after acquisition for mobile terminal to response message, information determines whether according to acquisition according to response Upgrade package is upgraded.In this manner, it whether legal to the upgrade package of acquisition before operating system update can test Card, when the response message of upgrade package and server feedback matches, control is upgraded, to reduce operating system update failure Destruction to original operating system even results in the loss of data of user.
The embodiment of the present application also provides a kind of computer readable storage mediums.Here computer readable storage medium is deposited Contain one or more program.Wherein, computer readable storage medium may include volatile memory, such as arbitrary access Memory;Memory also may include nonvolatile memory, such as read-only memory, flash memory, hard disk or solid-state are hard Disk;Memory can also include the combination of the memory of mentioned kind.
Corresponding technical characteristic in the respective embodiments described above do not cause scheme contradiction or it is not implementable under the premise of, can Mutually to use.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
Above-mentioned the embodiment of the present application serial number is for illustration only, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, the technical solution of the application substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the application.
Embodiments herein is described above in conjunction with attached drawing, but the application be not limited to it is above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the enlightenment of the application, when not departing from the application objective and scope of the claimed protection, can also it make very much Form, these are belonged within the protection of the application.

Claims (10)

1. a kind of upgrade control method, which is characterized in that the method is applied to mobile terminal, which comprises
Obtain upgrade package;
Upgrade command is responded, the upgrade package verification information generated according to the mobile terminal is sent to server;
Receive the response message of the server feedback, wherein the response message is the server according to the upgrade package The information that verification information generates;
When determining that the response message and the upgrade package match, controls the mobile terminal and risen according to the upgrade package Grade.
2. the method as described in claim 1, which is characterized in that determine that the response message is not matched that with the upgrade package When, it controls the mobile terminal and deletes the upgrade package.
3. the method as described in claim 1, which is characterized in that described send to server generates according to the mobile terminal The step of upgrade package verification information, comprising:
Obtain the version information of the mobile terminal;
Generate the upgrade package verification information comprising the version information;
The upgrade package verification information is sent to the server.
4. method according to claim 1 or 2, which is characterized in that the response message includes following at least one information: nothing Upgrading package informatin and upgrade package calibration information can be used, wherein it is described can not be referred to upgrading package informatin be not present and the movement The compatible upgrade package of terminal;The upgrade package calibration information refers to according to mutually fitting in the server with the mobile terminal The official's upgrade package calibration information generated matched.
5. method as claimed in claim 4, which is characterized in that the determination response message and the upgrade package not phase Timing controls the step of mobile terminal deletes the upgrade package, comprising:
Determine that the response message is that can not use upgrading package informatin;
By the display interface display reminding information of the mobile terminal, control stops this time upgrading and deleting the upgrade package.
6. method as claimed in claim 4, which is characterized in that the upgrade package calibration information is the server by presetting Official's condition code that Encryption Algorithm is generated according to official's upgrade package;The determination response message and the upgrade package phase The step of matching, comprising:
Local condition code is generated according to the upgrade package by the predetermined encryption algorithm;
When the local condition code and official's condition code match, the response message and the upgrade package phase are determined Match.
7. method as claimed in claim 6, which is characterized in that it is described by predetermined encryption algorithm according to official's upgrade package The step of official's condition code of generation, comprising:
Obtain the parameter information of official's upgrade package;
Official's condition code is generated according to the parameter information by the predetermined encryption algorithm.
8. the method as described in claim 1, which is characterized in that the control mobile terminal is carried out according to the upgrade package Before the step of upgrading, comprising:
Obtain the status information of the mobile terminal;
Determine that the status information meets the corresponding upgrading requirement of the upgrade package.
9. a kind of mobile terminal, which is characterized in that the mobile terminal includes:
Touch screen;
Processor;
Memory is connected to the processor, and the memory includes control instruction, is referred to when the processor reads the control When enabling, controls the mobile terminal and realize any one of claim 1-8 upgrade control method.
10. a kind of computer readable storage medium, which is characterized in that the computer readable storage medium has one or more journeys Sequence, one or more of programs are executed by one or more processors, to realize the upgrading control of any one of claim 1 to 8 Method.
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 true CN109922078A (en) 2019-06-21
CN109922078B 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)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111885564A (en) * 2020-07-03 2020-11-03 海尔优家智能科技(北京)有限公司 Data transmission method, equipment upgrading method and computer readable storage medium
CN112416380A (en) * 2019-08-21 2021-02-26 成都鼎桥通信技术有限公司 Method and device for preventing killing and preventing freezing by applying
CN113067734A (en) * 2021-03-29 2021-07-02 努比亚技术有限公司 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 (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1512342A (en) * 2002-12-27 2004-07-14 技嘉科技股份有限公司 Upgrading control method for intelligent cured software
US20080216066A1 (en) * 2006-07-14 2008-09-04 Samsung Electronics Co., Ltd. Program upgrade system and method for ota-capable mobile terminal
CN101719937A (en) * 2009-11-30 2010-06-02 中兴通讯股份有限公司 Method and system for updating terminal device
CN102624569A (en) * 2012-04-18 2012-08-01 华为技术有限公司 Method and system for upgrading terminal, network equipment and terminal
WO2016086654A1 (en) * 2014-12-03 2016-06-09 广州广电运通金融电子股份有限公司 Remote upgrade method and system for software on self-service terminal, and upgrade package creation method
CN105871600A (en) * 2016-03-28 2016-08-17 努比亚技术有限公司 Application upgrade package detection method, server, and application program upgrade method and system
CN106886436A (en) * 2017-01-23 2017-06-23 青岛海信移动通信技术股份有限公司 A kind of method and apparatus of android system upgrading
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
CN107832065A (en) * 2017-10-24 2018-03-23 广州力浦高科技有限公司 Firmware upgrade method, water purifier, upgrade-system and readable storage medium storing program for executing
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 珠海格力电器股份有限公司 Program upgrading method, system, application system and storage medium
CN109495307A (en) * 2018-11-27 2019-03-19 北京车和家信息技术有限公司 Method for upgrading system, OTA upgrade package encryption method, terminal device and vehicle

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1512342A (en) * 2002-12-27 2004-07-14 技嘉科技股份有限公司 Upgrading control method for intelligent cured software
US20080216066A1 (en) * 2006-07-14 2008-09-04 Samsung Electronics Co., Ltd. Program upgrade system and method for ota-capable mobile terminal
EP2076834A1 (en) * 2006-07-14 2009-07-08 Samsung Electronics Co., Ltd Program upgrade system and method for ota-capable mobile terminal
CN101719937A (en) * 2009-11-30 2010-06-02 中兴通讯股份有限公司 Method and system for updating terminal device
CN102624569A (en) * 2012-04-18 2012-08-01 华为技术有限公司 Method and system for upgrading terminal, network equipment and terminal
WO2016086654A1 (en) * 2014-12-03 2016-06-09 广州广电运通金融电子股份有限公司 Remote upgrade method and system for software on self-service terminal, and upgrade package creation method
CN105871600A (en) * 2016-03-28 2016-08-17 努比亚技术有限公司 Application upgrade package detection method, server, and application program upgrade method and system
CN106886436A (en) * 2017-01-23 2017-06-23 青岛海信移动通信技术股份有限公司 A kind of method and apparatus of android system upgrading
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
CN107832065A (en) * 2017-10-24 2018-03-23 广州力浦高科技有限公司 Firmware upgrade method, water purifier, upgrade-system and readable storage medium storing program for executing
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 珠海格力电器股份有限公司 Program upgrading method, system, application system and storage medium
CN109495307A (en) * 2018-11-27 2019-03-19 北京车和家信息技术有限公司 Method for upgrading system, OTA upgrade package encryption method, terminal device and vehicle

Non-Patent Citations (1)

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

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112416380A (en) * 2019-08-21 2021-02-26 成都鼎桥通信技术有限公司 Method and device for preventing killing and preventing freezing by applying
CN112416380B (en) * 2019-08-21 2024-03-29 成都鼎桥通信技术有限公司 Method and device for killing and freezing prevention by application
CN111885564A (en) * 2020-07-03 2020-11-03 海尔优家智能科技(北京)有限公司 Data transmission method, equipment upgrading method and computer readable storage medium
CN111885564B (en) * 2020-07-03 2024-03-22 海尔优家智能科技(北京)有限公司 Data transmission method, equipment upgrading method and computer readable storage medium
CN113067734A (en) * 2021-03-29 2021-07-02 努比亚技术有限公司 Electronic price tag upgrading method, electronic price tag system, electronic terminal and 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

Also Published As

Publication number Publication date
CN109922078B (en) 2023-03-21

Similar Documents

Publication Publication Date Title
CN109922078A (en) Upgrade control method, mobile terminal and computer readable storage medium
CN107276789A (en) Daily record method for uploading, device and computer-readable recording medium
CN107704766A (en) Multimedia file access control method, terminal and computer-readable recording medium
CN108228230A (en) Upgrade method, terminal and the computer readable storage medium of UFS firmwares
CN108063901A (en) A kind of image-pickup method, terminal and computer readable storage medium
CN108768775A (en) Information processing method, electronic equipment and computer storage media
CN110191465A (en) Authority control method, mobile terminal and computer readable storage medium
CN108831479A (en) A kind of audio recognition method, terminal and computer readable storage medium
CN108833690A (en) authority control method, terminal and computer readable storage medium
CN109274818A (en) Method for down loading, mobile terminal and the computer storage medium of application program
CN108549826A (en) Method of calibration, terminal, server and the readable storage medium storing program for executing of application program
CN109687974A (en) APK verification method, device, mobile terminal and readable storage medium storing program for executing
CN109885325A (en) Terminal system upgrade method, terminal and computer readable storage medium
CN109766119A (en) Restore subregion upgrade method, terminal and computer readable storage medium
CN109218531A (en) screen content display effect control method, terminal and computer readable storage medium
CN108762926A (en) A kind of system optimization method, terminal and computer readable storage medium
CN107347117A (en) A kind of message management method, mobile terminal and computer-readable recording medium
CN110209434A (en) A kind of EMS memory management process, device and computer readable storage medium
CN107484144A (en) A kind of information acquisition method, terminal, server and computer-readable storage medium
CN107645588A (en) A kind of message informing processing method, terminal and computer-readable recording medium
CN110175052A (en) A kind of method, apparatus and computer readable storage medium of file opening
CN110187934A (en) Application control method, terminal and computer readable storage medium
CN109711198A (en) Application management method, mobile terminal and storage medium
CN109660521A (en) A kind of gamespace regulation method, terminal and computer readable storage medium
CN109918136A (en) Boot LOGO processing method, mobile terminal and the storage medium of mobile terminal

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