CN109766119A - Restore subregion upgrade method, terminal and computer readable storage medium - Google Patents
Restore subregion upgrade method, terminal and computer readable storage medium Download PDFInfo
- Publication number
- CN109766119A CN109766119A CN201910068719.1A CN201910068719A CN109766119A CN 109766119 A CN109766119 A CN 109766119A CN 201910068719 A CN201910068719 A CN 201910068719A CN 109766119 A CN109766119 A CN 109766119A
- Authority
- CN
- China
- Prior art keywords
- terminal
- upgrade
- subregion
- recovery
- flag bit
- 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
Links
Landscapes
- Telephone Function (AREA)
Abstract
The invention discloses a kind of recovery subregion upgrade method, terminal and computer readable storage mediums, this method comprises: detecting the preset flag bit for being used to indicate and needing to be upgraded to recovery subregion from the terminal in terminal booting;When detecting the flag bit, the recovery subregion is upgraded.According to the technique and scheme of the present invention, when needing the recovery subregion to terminal to upgrade, one flag bit is set in the terminal in advance, it is detected automatically in terminal booting, if detecting the marker bit, it then indicates to need to upgrade recovery, executes upgrading of the escalation process realization to recovery subregion at this time.
Description
Technical field
The present invention relates to field of mobile terminals more particularly to a kind of recovery subregion upgrade methods, terminal and computer-readable
Storage medium.
Background technique
In existing cell phone system, such as in android system (Android system), it usually can all be arranged recovery points
(restore subregion) in area.In recovery subregion, user can execute and clear data, and install brush machine packet to upgrade the behaviour such as other subregions
Make.
But be to upgrade other subregions by recovery in prior art, it but has no idea through other points
Area upgrades recovery subregion, so recovery subregion will not upgrade under normal circumstances.Even if there is upgrading
The needs of recovery subregion, it is also difficult to realize the upgrading to recovery subregion.
Therefore, it is necessary to a kind of technical solutions, realize the upgrading to recovery subregion.
Summary of the invention
It is a primary object of the present invention to propose a kind of recovery subregion upgrade method, terminal and computer-readable storage medium
Matter, it is intended to realize the upgrading to recovery subregion.
To achieve the above object, the present invention provides a kind of recovery subregion upgrade methods, comprising: is switched in the terminal
When, the preset flag bit for being used to indicate and needing to be upgraded to recovery subregion is detected from the terminal;It is described detecting
When flag bit, the recovery subregion is upgraded.
To achieve the above object, the present invention provides a kind of terminal, the terminal includes processor, memory, communicates always
Line;The communication bus is for realizing the connection communication between processor and memory;The processor is for executing memory
The recovery subregion upgrade procedure of middle storage, the step of to realize preceding method.
To achieve the above object, the present invention provides a kind of computer readable storage medium, the computer-readable storages
Media storage has one or more program, and one or more of programs can be executed by one or more processor, with
The step of realizing preceding method.
According to above technical scheme, it is known that recovery subregion upgrade method, terminal and computer-readable storage medium of the invention
Matter has at least the following advantages:
According to the technique and scheme of the present invention, when needing the recovery subregion to terminal to upgrade, in advance in terminal
One flag bit of middle setting is detected in terminal booting, automatically if detecting the marker bit, then it represents that needs pair
Recovery is upgraded, and executes upgrading of the escalation process realization to recovery subregion at this time.
Detailed description of the invention
The hardware structural diagram of Fig. 1 mobile terminal of each embodiment to realize the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the flow chart according to the recovery subregion upgrade method of one embodiment of the present of invention;
Fig. 4 is the flow chart according to the recovery subregion upgrade method of one embodiment of the present of invention;
Fig. 5 is the block diagram according to the function trigger device of one embodiment of the present of invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
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 distinctive 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 (PersonalDigital Assistant, PDA), portable matchmaker
Body player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. are mobile
The fixed terminals such as 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 peculiar 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.
As shown in figure 3, providing a kind of recovery subregion upgrade method in one embodiment of the present of invention, comprising:
Step S310 detects the preset needs that are used to indicate from terminal and rises to recovery subregion in terminal booting
The flag bit of grade.
In the present embodiment, the concrete form of flag bit is not limited, for example, it may be one has specific name
File, the spcial character being also possible in pre-set text.In the present embodiment, to flag bit terminal storage location not into
Row limitation, for example, there may be under some preset catalogue.In the present embodiment, if necessary to the recovery to terminal
Subregion then pre-sets flag bit, for triggering the upgrading to recovery subregion.
Step S320 upgrades when detecting flag bit to subregion is restored.
In the present embodiment, it is not limited in the mode of upgrading, it is existing for upgrading to recovery subregion
Technical solution be suitable for the technical solution of the present embodiment.
According to the technical solution of the present embodiment, when needing the recovery subregion to terminal to upgrade, in advance at end
One flag bit is set in end, is detected automatically in terminal booting, if detecting the marker bit, then it represents that needs pair
Recovery is upgraded, and executes upgrading of the escalation process realization to recovery subregion at this time.
As shown in figure 4, providing a kind of recovery subregion upgrade method in one embodiment of the present of invention, comprising:
Step S410 makes the upgrade package upgraded for the recovery subregion to terminal and upgrade script.
It in the present embodiment, include the content upgraded to recovery subregion in upgrade package, and record makes in upgrade script
The process that recovery subregion is upgraded with upgrade package.
Specifically, provide two kinds of methods for making upgrade package in the present embodiment: (1) production restores the recovery mirror image of subregion
Difference packet, based on difference packet generate upgrade package;(2) production restores the replacement mirror image of the recovery mirror image of subregion, based on replacement mirror
As generating upgrade package.
It in the present embodiment, can new version content and the difference of master content based on recovery subregion for mode (1)
For heteroplasia at difference packet, the data volume of difference packet is smaller, is convenient for terminal downloads and storage;(2) the new version content based on recovery
Replacement mirror image is generated, i.e., replaces master content, the stability of which escalation process completely using the new version content of recovery
It is stronger.
Step S420, detects upgrade script, when finding that upgrade script is used to upgrade recovery subregion,
Flag bit is set in the cache partitions of terminal.
In the present embodiment, after each upgrade script completes, which is detected, if it find that
The upgrade script is then set in the cache subregion (cache partitions) of terminal for upgrading to the recovery subregion of terminal
Set flag bit.The advantages of flag bit is arranged in cache subregion is that the data in cache subregion are rebooted into terminal
It is automatically cleared when normal mode (normal mode), so It is not necessary to executing the delete operation to flag bit again.
Step S430, after flag bit is set in the terminal, setting starting up, for the detection trigger in terminal booting
Flag bit.
In the present embodiment, by setting starting up, so that terminal can detect whether to need after power-up in time
Recovery subregion is upgraded.
Step S440 detects the preset needs that are used to indicate from terminal and rises to recovery subregion in terminal booting
The flag bit of grade.
Step S450 executes upgrade script when detecting flag bit, to use upgrade package to rise to subregion is restored
Grade.
In the present embodiment, when upgrade package, which is based on difference packet, to be made, then upgrade script uses the side of difference upgrading
Formula carries out;When upgrade package, which is based on replacement mirror image, to be made, then upgrade script is carried out by the way of mirror image replacement.
Step S460 deletes starting up after the completion of restoring subregion upgrading.
In the present embodiment, it after the upgrading of recovery subregion is completed, then It is not necessary to retain starting up, avoids
The booting detection that next terminal is not necessarily to when being switched on.
Step S470 generates user's prompt according to the implementation progress of upgrade script.
In the present embodiment, in order to guarantee user's timely learning upgrade case, user's prompt is generated, to prompt currently to upgrade
Progress.
According to the technical solution of the present embodiment, a kind of skill for upgrading recovery subregion under normal mode may be implemented
Art scheme: recovery mirror image difference packet is made by script first, and difference packet is put into upgrade package;Production upgrading foot
This, makes upgrade script in such a way that difference upgrades or replaces mirror image;Upgrade other points in recovery mode first
Area, and judge whether need to upgrade recovery subregion in upgrade script, if necessary to upgrade recovery subregion then in cache
Subregion places a flag bit;Write starting up, booting when has detected whether flag bit;If flag bit exists,
Recovery upgrade package is incorporated into recovery subregion by upgrade script.
Currently, it is to be able to ascend user experience only that fota, which upgrades (downloading software upgrading in the air), after terminal shipment
One mode, if can not upgrade recovery subregion will hinder the realization of partial function, technical solution through this embodiment
The upgrading that recovery may be implemented, it is perfect to facilitate terminal function.
As shown in figure 5, providing a kind of terminal in one embodiment of the present of invention, terminal includes processor 510, memory
520, communication bus 530;Communication bus 530 is for realizing the connection communication between processor 510 and memory 520;Processor
510 for executing the recovery subregion upgrade procedure stored in memory 520, to perform the steps of
In terminal booting, the preset mark for being used to indicate and needing to be upgraded to recovery subregion is detected from terminal
Position.
In the present embodiment, the concrete form of flag bit is not limited, for example, it may be one has specific name
File, the spcial character being also possible in pre-set text.In the present embodiment, to flag bit terminal storage location not into
Row limitation, for example, there may be under some preset catalogue.In the present embodiment, if necessary to the recovery to terminal
Subregion then pre-sets flag bit, for triggering the upgrading to recovery subregion.
When detecting flag bit, upgrade to subregion is restored.
In the present embodiment, it is not limited in the mode of upgrading, it is existing for upgrading to recovery subregion
Technical solution be suitable for the technical solution of the present embodiment.
According to the technical solution of the present embodiment, when needing the recovery subregion to terminal to upgrade, in advance at end
One flag bit is set in end, is detected automatically in terminal booting, if detecting the marker bit, then it represents that needs pair
Recovery is upgraded, and executes upgrading of the escalation process realization to recovery subregion at this time.
A kind of computer readable storage medium is provided in one embodiment of the present of invention, computer readable storage medium is deposited
One or more program is contained, one or more program can be executed by one or more processor, to realize following step
It is rapid:
Make the upgrade package upgraded for the recovery subregion to terminal and upgrade script.
It in the present embodiment, include the content upgraded to recovery subregion in upgrade package, and record makes in upgrade script
The process that recovery subregion is upgraded with upgrade package.
Specifically, provide two kinds of methods for making upgrade package in the present embodiment: (1) production restores the recovery mirror image of subregion
Difference packet, based on difference packet generate upgrade package;(2) production restores the replacement mirror image of the recovery mirror image of subregion, based on replacement mirror
As generating upgrade package.
It in the present embodiment, can new version content and the difference of master content based on recovery subregion for mode (1)
For heteroplasia at difference packet, the data volume of difference packet is smaller, is convenient for terminal downloads and storage;(2) the new version content based on recovery
Replacement mirror image is generated, i.e., replaces master content, the stability of which escalation process completely using the new version content of recovery
It is stronger.
Upgrade script is detected, when finding that upgrade script is used to upgrade recovery subregion, in the slow of terminal
It deposits and flag bit is set in subregion.
In the present embodiment, after each upgrade script completes, which is detected, if it find that
The upgrade script is then set in the cache subregion (cache partitions) of terminal for upgrading to the recovery subregion of terminal
Set flag bit.The advantages of flag bit is arranged in cache subregion is that the data in cache subregion are rebooted into terminal
It is automatically cleared when normal mode (normal mode), so It is not necessary to executing the delete operation to flag bit again.
After flag bit is set in the terminal, setting starting up, for the detection trigger flag bit in terminal booting.
In the present embodiment, by setting starting up, so that terminal can detect whether to need after power-up in time
Recovery subregion is upgraded.
In terminal booting, the preset mark for being used to indicate and needing to be upgraded to recovery subregion is detected from terminal
Position.
When detecting flag bit, upgrade script is executed, to use upgrade package to upgrade to subregion is restored.
In the present embodiment, when upgrade package, which is based on difference packet, to be made, then upgrade script uses the side of difference upgrading
Formula carries out;When upgrade package, which is based on replacement mirror image, to be made, then upgrade script is carried out by the way of mirror image replacement.
After the completion of restoring subregion upgrading, starting up is deleted.
In the present embodiment, it after the upgrading of recovery subregion is completed, then It is not necessary to retain starting up, avoids
The booting detection that next terminal is not necessarily to when being switched on.
According to the implementation progress of upgrade script, user's prompt is generated.
In the present embodiment, in order to guarantee user's timely learning upgrade case, user's prompt is generated, to prompt currently to upgrade
Progress.
According to the technical solution of the present embodiment, a kind of skill for upgrading recovery subregion under normal mode may be implemented
Art scheme: recovery mirror image difference packet is made by script first, and difference packet is put into upgrade package;Production upgrading foot
This, makes upgrade script in such a way that difference upgrades or replaces mirror image;Upgrade other points in recovery mode first
Area, and judge whether need to upgrade recovery subregion in upgrade script, if necessary to upgrade recovery subregion then in cache
Subregion places a flag bit;Write starting up, booting when has detected whether flag bit;If flag bit exists,
Recovery upgrade package is incorporated into recovery subregion by upgrade script.
Currently, it is to be able to ascend user experience only that fota, which upgrades (downloading software upgrading in the air), after terminal shipment
One mode, if can not upgrade recovery subregion will hinder the realization of partial function, technical solution through this embodiment
The upgrading that recovery may be implemented, it is perfect to facilitate terminal function.
A kind of computer readable storage medium is provided in one embodiment of the present of invention, computer readable storage medium is deposited
One or more program is contained, one or more program can be executed by one or more processor, to realize following step
It is rapid:
Make the upgrade package upgraded for the recovery subregion to terminal and upgrade script.
It in the present embodiment, include the content upgraded to recovery subregion in upgrade package, and record makes in upgrade script
The process that recovery subregion is upgraded with upgrade package.
Specifically, provide two kinds of methods for making upgrade package in the present embodiment: (1) production restores the recovery mirror image of subregion
Difference packet, based on difference packet generate upgrade package;(2) production restores the replacement mirror image of the recovery mirror image of subregion, based on replacement mirror
As generating upgrade package.
It in the present embodiment, can new version content and the difference of master content based on recovery subregion for mode (1)
For heteroplasia at difference packet, the data volume of difference packet is smaller, is convenient for terminal downloads and storage;(2) the new version content based on recovery
Replacement mirror image is generated, i.e., replaces master content, the stability of which escalation process completely using the new version content of recovery
It is stronger.
Upgrade script is detected, when finding that upgrade script is used to upgrade recovery subregion, in the slow of terminal
It deposits and flag bit is set in subregion.
In the present embodiment, after each upgrade script completes, which is detected, if it find that
The upgrade script is then set in the cache subregion (cache partitions) of terminal for upgrading to the recovery subregion of terminal
Set flag bit.The advantages of flag bit is arranged in cache subregion is that the data in cache subregion are rebooted into terminal
It is automatically cleared when normal mode (normal mode), so It is not necessary to executing the delete operation to flag bit again.
After flag bit is set in the terminal, setting starting up, for the detection trigger flag bit in terminal booting.
In the present embodiment, by setting starting up, so that terminal can detect whether to need after power-up in time
Recovery subregion is upgraded.
In terminal booting, the preset mark for being used to indicate and needing to be upgraded to recovery subregion is detected from terminal
Position.
When detecting flag bit, upgrade script is executed, to use upgrade package to upgrade to subregion is restored.
In the present embodiment, when upgrade package, which is based on difference packet, to be made, then upgrade script uses the side of difference upgrading
Formula carries out;When upgrade package, which is based on replacement mirror image, to be made, then upgrade script is carried out by the way of mirror image replacement.
After the completion of restoring subregion upgrading, starting up is deleted.
In the present embodiment, it after the upgrading of recovery subregion is completed, then It is not necessary to retain starting up, avoids
The booting detection that next terminal is not necessarily to when being switched on.
According to the implementation progress of upgrade script, user's prompt is generated.
In the present embodiment, in order to guarantee user's timely learning upgrade case, user's prompt is generated, to prompt currently to upgrade
Progress.
According to the technical solution of the present embodiment, a kind of skill for upgrading recovery subregion under normal mode may be implemented
Art scheme: recovery mirror image difference packet is made by script first, and difference packet is put into upgrade package;Production upgrading foot
This, makes upgrade script in such a way that difference upgrades or replaces mirror image;Upgrade other points in recovery mode first
Area, and judge whether need to upgrade recovery subregion in upgrade script, if necessary to upgrade recovery subregion then in cache
Subregion places a flag bit;Write starting up, booting when has detected whether flag bit;If flag bit exists,
Recovery upgrade package is incorporated into recovery subregion by upgrade script.
Currently, it is to be able to ascend user experience only that fota, which upgrades (downloading software upgrading in the air), after terminal shipment
One mode, if can not upgrade recovery subregion will hinder the realization of partial function, technical solution through this embodiment
The upgrading that recovery may be implemented, it is perfect to facilitate terminal function.
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.
The serial number of the above embodiments of the invention is only for description, 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, technical solution of the present invention 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 present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form, all of these belong to the protection of the present invention.
Claims (10)
1. a kind of recovery subregion upgrade method characterized by comprising
In terminal booting, the preset mark for being used to indicate and needing to be upgraded to recovery subregion is detected from the terminal
Will position;
When detecting the flag bit, the recovery subregion is upgraded.
2. the method according to claim 1, wherein detecting and using from the terminal in terminal booting
It needs in instruction to before restoring the flag bit that subregion is upgraded, further includes:
Make the upgrade package upgraded for the recovery subregion to terminal and upgrade script;
The upgrade script is detected, when finding that the upgrade script is used to upgrade the recovery subregion,
The flag bit is set in the terminal;
It is described that the recovery subregion is upgraded, comprising:
The upgrade script is executed, to use the upgrade package to upgrade the recovery subregion.
3. according to the method described in claim 2, it is characterized in that, the production upgrades for the recovery subregion to terminal
Upgrade package and upgrade script, comprising:
The difference packet for making the recovery mirror image for restoring subregion, generates the upgrade package based on the difference packet.
4. according to the method described in claim 2, it is characterized in that, the production upgrades for the recovery subregion to terminal
Upgrade package and upgrade script, comprising:
The replacement mirror image for making the recovery mirror image for restoring subregion, generates the upgrade package based on the replacement mirror image.
5. according to the method described in claim 2, it is characterized in that, described be arranged flag bit in the terminal, comprising:
The flag bit is set in the cache partitions of the terminal.
6. according to the method described in claim 2, it is characterized by further comprising:
After the flag bit is set in the terminal, setting starting up, for the detection trigger in terminal booting
The flag bit.
7. according to the method described in claim 6, it is characterized by further comprising:
After the completion of recovery subregion upgrading, the starting up is deleted.
8. the method according to claim 1, wherein further include:
According to the implementation progress of the upgrade script, user's prompt is generated.
9. a kind of terminal, which is characterized in that the terminal includes processor, memory, communication bus;The communication bus is used for
Realize the connection communication between processor and memory;The processor is used to execute the recovery subregion upgrading stored in memory
Program, the step of to realize method described in any item of the claim 1 to 8.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage have one or
Multiple programs, one or more of programs can be executed by one or more processor, to realize in claim 1 to 8
The step of described in any item methods.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910068719.1A CN109766119B (en) | 2019-01-24 | 2019-01-24 | Recovery partition upgrade method, terminal and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910068719.1A CN109766119B (en) | 2019-01-24 | 2019-01-24 | Recovery partition upgrade method, terminal and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109766119A true CN109766119A (en) | 2019-05-17 |
CN109766119B CN109766119B (en) | 2023-10-17 |
Family
ID=66455232
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910068719.1A Active CN109766119B (en) | 2019-01-24 | 2019-01-24 | Recovery partition upgrade method, terminal and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109766119B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110399153A (en) * | 2019-07-25 | 2019-11-01 | Oppo广东移动通信有限公司 | Method for upgrading system, device, terminal and computer readable storage medium |
CN110569058A (en) * | 2019-09-09 | 2019-12-13 | Oppo(重庆)智能科技有限公司 | System upgrading method, device, terminal and computer readable storage medium |
CN111694608A (en) * | 2020-06-08 | 2020-09-22 | 北京百度网讯科技有限公司 | System upgrading method and device for terminal equipment, electronic equipment and terminal equipment |
CN111694589A (en) * | 2020-06-15 | 2020-09-22 | Oppo(重庆)智能科技有限公司 | Upgrade package generation method and device, server and computer readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104965736A (en) * | 2015-06-19 | 2015-10-07 | 青岛海信移动通信技术股份有限公司 | Continuous upgrade method and apparatus |
CN105468396A (en) * | 2014-09-11 | 2016-04-06 | 深圳Tcl数字技术有限公司 | Differential packet generation method, upgrading method, generation device and Linux terminal |
CN107133056A (en) * | 2017-06-09 | 2017-09-05 | 北京云创远景软件有限责任公司 | The method and apparatus of smart machine upgrading restoring subregion |
CN108984196A (en) * | 2018-06-29 | 2018-12-11 | 深圳市九洲电器有限公司 | A kind of method for upgrading system and Android TV system set-top box of Android TV system set-top box |
CN108984198A (en) * | 2018-07-16 | 2018-12-11 | 深圳市茁壮网络股份有限公司 | A kind of upgrade method and device of android system |
-
2019
- 2019-01-24 CN CN201910068719.1A patent/CN109766119B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105468396A (en) * | 2014-09-11 | 2016-04-06 | 深圳Tcl数字技术有限公司 | Differential packet generation method, upgrading method, generation device and Linux terminal |
CN104965736A (en) * | 2015-06-19 | 2015-10-07 | 青岛海信移动通信技术股份有限公司 | Continuous upgrade method and apparatus |
CN107133056A (en) * | 2017-06-09 | 2017-09-05 | 北京云创远景软件有限责任公司 | The method and apparatus of smart machine upgrading restoring subregion |
CN108984196A (en) * | 2018-06-29 | 2018-12-11 | 深圳市九洲电器有限公司 | A kind of method for upgrading system and Android TV system set-top box of Android TV system set-top box |
CN108984198A (en) * | 2018-07-16 | 2018-12-11 | 深圳市茁壮网络股份有限公司 | A kind of upgrade method and device of android system |
Non-Patent Citations (1)
Title |
---|
黄荣铭;叶宇煌;: "一种基于Android平台机顶盒的按键修复Recovery系统方法", 有线电视技术, no. 05 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110399153A (en) * | 2019-07-25 | 2019-11-01 | Oppo广东移动通信有限公司 | Method for upgrading system, device, terminal and computer readable storage medium |
CN110399153B (en) * | 2019-07-25 | 2023-11-03 | Oppo广东移动通信有限公司 | System upgrading method, device, terminal and computer readable storage medium |
CN110569058A (en) * | 2019-09-09 | 2019-12-13 | Oppo(重庆)智能科技有限公司 | System upgrading method, device, terminal and computer readable storage medium |
CN110569058B (en) * | 2019-09-09 | 2023-06-30 | Oppo(重庆)智能科技有限公司 | System upgrading method, device, terminal and computer readable storage medium |
CN111694608A (en) * | 2020-06-08 | 2020-09-22 | 北京百度网讯科技有限公司 | System upgrading method and device for terminal equipment, electronic equipment and terminal equipment |
CN111694589A (en) * | 2020-06-15 | 2020-09-22 | Oppo(重庆)智能科技有限公司 | Upgrade package generation method and device, server and computer readable storage medium |
CN111694589B (en) * | 2020-06-15 | 2023-09-29 | Oppo(重庆)智能科技有限公司 | Upgrade package generation method, device, server and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109766119B (en) | 2023-10-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109766119A (en) | Restore subregion upgrade method, terminal and computer readable storage medium | |
CN107357704A (en) | A kind of application program detection method, terminal and computer-readable recording medium | |
CN108595203A (en) | Application function executes method, mobile terminal and computer readable storage medium | |
CN109947248A (en) | Vibration control method, mobile terminal and computer readable storage medium | |
CN108831479A (en) | A kind of audio recognition method, terminal and computer readable storage medium | |
CN110187808A (en) | Dynamic wallpaper setting method, device and computer readable storage medium | |
CN109254972A (en) | A kind of offline order Word library updating method, terminal and computer readable storage medium | |
CN107480003A (en) | A kind of method, equipment and the computer-readable recording medium of backup radio frequency parameter | |
CN110209434A (en) | A kind of EMS memory management process, device and computer readable storage medium | |
CN109656649A (en) | A kind of desktop application control method, terminal and computer readable storage medium | |
CN109445660A (en) | A kind of wearable device control method, mobile terminal and wearable device | |
CN109032711A (en) | A kind of screenshot method, terminal and computer readable storage medium | |
CN108650281A (en) | A kind of data managing method, device and computer readable storage medium | |
CN109947519A (en) | Hardware-accelerated control method, terminal and computer readable storage medium | |
CN110167004A (en) | A kind of network registering method, mobile terminal and computer readable 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 | |
CN109684020A (en) | A kind of method for switching theme, equipment and computer readable storage medium | |
CN110187934A (en) | Application control method, terminal and computer readable storage medium | |
CN109068314A (en) | Operator's configuration file switching method, smart machine and readable storage medium storing program for executing | |
CN109918101A (en) | Terminal and its application component management method, computer readable storage medium | |
CN110177169A (en) | Data interactive method, first terminal, second terminal and computer storage medium | |
CN108650404A (en) | Port start-up circuit, device and mobile terminal | |
CN109032648A (en) | Update method, mobile terminal and the storage medium of application program | |
CN108833687A (en) | Terminal prot open method, 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 |