CN105511928A - System upgrading device and method - Google Patents

System upgrading device and method Download PDF

Info

Publication number
CN105511928A
CN105511928A CN201511000808.0A CN201511000808A CN105511928A CN 105511928 A CN105511928 A CN 105511928A CN 201511000808 A CN201511000808 A CN 201511000808A CN 105511928 A CN105511928 A CN 105511928A
Authority
CN
China
Prior art keywords
parameter
memory partitioning
new
system upgrade
mobile terminal
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
CN201511000808.0A
Other languages
Chinese (zh)
Other versions
CN105511928B (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 CN201511000808.0A priority Critical patent/CN105511928B/en
Publication of CN105511928A publication Critical patent/CN105511928A/en
Application granted granted Critical
Publication of CN105511928B publication Critical patent/CN105511928B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore
    • G06F11/1451Management of the data involved in backup or backup restore by selection of backup contents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/658Incremental updates; Differential updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Quality & Reliability (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a system upgrading device, which comprises an acquisition module, an erase module, a first write-in module and a second write-in module, wherein the acquisition module is used to obtain a parameter which needs to modify during the system upgrading process, the parameter which needs to modify during the system upgrading process is used as a first parameter, the acquisition module obtains a parameter which does not need to modify during the system upgrading process, and the parameter which does not need to modify during the system upgrading process is used as a second parameter, the second parameter is backed up, the erase module is used to erase data in a memory zone to obtain a novel memory zone, the first write-in module is used to write the first parameter into the novel memory zone, and the second write-in module is used to the backup second parameter into the novel memory zone when the first parameter is successfully written in the novel memory zone, thereby completing system upgrading. The system upgrading device prevents the situation that modified parameters can not take effect and relative radio frequency parameters can not recover during the process that secure digital memory (SD) cards are used to upgrade a system, thereby enabling a mobile terminal to be capable of normally operating after the system is upgraded.

Description

System upgrade apparatus and method
Technical field
The present invention relates to field of mobile terminals, particularly relate to a kind of system upgrade apparatus and method.
Background technology
Along with constantly popularizing of mobile terminal intelligent system, the cycle that mobile terminal device manufacturer and operator release New function and new business is shorter and shorter, simultaneity factor software version is more and more and complicated, and the problem of a lot of the unknown constantly occurs in user's use procedure.In order to address these problems, bring better Consumer's Experience to user, need the upgrading carrying out system version.
When mobile terminal uses SD card (SecureDigitalMemoryCard, safe digital card) to carry out system upgrade, the subregion in mobile terminal internal memory can not carry out write operation when non-NULL.In this case, even if having modified NV (non-volatilememory in source code in systems in which, nonvolatile memory) parameter, but carry out in system upgrade process at use SD card, NV parameters of these amendments all can not in the subregion of write memory, cause the NV parameter revised to come into force; Calibrate when the static NV parameter relevant to radio frequency and the dynamic N V parameter of being correlated with radio frequency are dispatched from the factory by source code and mobile terminal and obtain, generally all remain unchanged, therefore the static NV parameter relevant to radio frequency and the dynamic N V parameter relevant with radio frequency is not had in SD card upgrade bag, if adopt the mode of the data in erasing memory partitioning that the NV parameter revised can be made to come into force, but the static NV parameter relevant to radio frequency and the dynamic N V parameter relevant with radio frequency cannot be recovered, thus cause mobile terminal normally to work.
Summary of the invention
Fundamental purpose of the present invention is to propose a kind of system upgrade apparatus and method, is intended to solve in prior art and carries out in system upgrade process at use SD card, the technical matters that amended parameter can not come into force and the parameter relevant to radio frequency cannot be recovered.
For achieving the above object, a kind of system upgrade device provided by the invention, described device comprises:
Acquisition module, for obtaining in system upgrade process the parameter needing to revise, as the first parameter, and obtaining in described system upgrade process the parameter not needing to revise, as the second parameter, backing up described second parameter;
Erasing module, for wiping the data in memory partitioning, obtains new memory partitioning;
First writing module, for by memory partitioning new described in described first parameter read-in;
Second writing module, for when successfully by memory partitioning new described in described first parameter read-in time, by new memory partitioning described in described second parameter read-in of backup, upgrade with completion system.
Alternatively, described acquisition module comprises:
Acquiring unit, for the parameter of the parameter and system redaction that obtain system legacy version;
Contrast unit, for the parameter of the parameter and described redaction that contrast described legacy version, obtains the parameter needing in described system upgrade process to revise, and as the first parameter, and does not need the parameter revised, as the second parameter, and backs up described second parameter.
Alternatively, described first writing module comprises:
Determining unit, for obtaining the identification information of described first parameter, determines the position of described first parameter in described new memory partitioning according to described identification information;
Writing unit, for according to the position of described first parameter in described new memory partitioning, by the correspondence position of memory partitioning new described in described first parameter read-in.
Alternatively, described system upgrade device also comprises:
First judge module, for when receiving the instruction of system upgrade, judges whether current electric quantity is less than default electricity;
Processing module, if be less than described default electricity for described current electric quantity, does not then perform the instruction of described system upgrade;
Described acquisition module, if be also greater than or equal to described default electricity for described current electric quantity, then obtains the parameter needing in system upgrade process to revise, as the first parameter, and obtain in described system upgrade process the parameter not needing to revise, as the second parameter, back up described second parameter.
Alternatively, described system upgrade device also comprises:
Second judge module, for judging whether described first parameter all successfully writes in described new memory partitioning;
Described second writing module, if also all successfully write in described new memory partitioning for described first parameter, then by memory partitioning new described in described second parameter read-in of backup, upgrades with completion system;
Described first writing module, if also fail all successfully to write in described new memory partitioning for described first parameter, then in preset times scope by memory partitioning new described in described first parameter read-in.
In addition, for achieving the above object, the present invention also provides a kind of method for upgrading system, said method comprising the steps of:
Obtain the parameter needing in system upgrade process to revise, as the first parameter, and obtain in described system upgrade process the parameter not needing to revise, as the second parameter, back up described second parameter;
Data in erasing memory partitioning, obtain new memory partitioning;
By in memory partitioning new described in described first parameter read-in;
When successfully by memory partitioning new described in described first parameter read-in time, by new memory partitioning described in described second parameter read-in of backup, upgrade with completion system.
Alternatively, need the parameter revised in described acquisition system upgrade process, as the first parameter, and obtain in described system upgrade process the parameter not needing to revise, as the second parameter, the step backing up described second parameter comprises:
The parameter of acquisition system legacy version and the parameter of system redaction;
Contrast the parameter of described legacy version and the parameter of described redaction, obtain the parameter needing in described system upgrade process to revise, as the first parameter, and do not need the parameter of amendment, as the second parameter, and back up described second parameter.
Alternatively, described step in memory partitioning new described in described first parameter read-in to be comprised:
Obtain the identification information of described first parameter, determine the position of described first parameter in described new memory partitioning according to described identification information;
According to the position of described first parameter in described new memory partitioning, by the correspondence position of memory partitioning new described in described first parameter read-in.
Alternatively, in described acquisition system upgrade process, need the parameter revised, as the first parameter, and obtain in described system upgrade process the parameter not needing to revise, as the second parameter, before backing up the step of described second parameter, also comprise:
When receiving the instruction of system upgrade, judge whether current electric quantity is less than default electricity;
If described current electric quantity is less than described default electricity, then do not perform the instruction of described system upgrade;
If described current electric quantity is greater than or equal to described default electricity, then perform in described acquisition system upgrade process the parameter needing to revise, as the first parameter, and obtain in described system upgrade process the parameter not needing to revise, as the second parameter, back up the step of described second parameter.
Alternatively, described by after the step in memory partitioning new described in described first parameter read-in, also comprise:
Judge that described first parameter all noly successfully writes in described new memory partitioning;
If described first parameter all successfully writes in described new memory partitioning, then perform described by memory partitioning new described in described second parameter read-in of backup, with the step of completion system upgrading;
If described first parameter fails all successfully to write in described new memory partitioning, then continue execution in preset times scope described by the step in memory partitioning new described in described first parameter read-in.
The present invention, by obtaining in system upgrade process the parameter needing to revise and the parameter not needing amendment, does not need the parameter revised described in backup; Data in erasing memory partitioning, obtain new memory partitioning, and whether will need in memory partitioning new described in the parameter read-in or not to revise of the parameter of amendment and backup, completion system is upgraded.Achieve in the process using SD card upgrade system, first back up the data not needing amendment in system upgrade process, then by the data erase in tag memory subregion, carry out in the memory partitioning after data erase described in the parameter read-in or not to revise of the parameter of amendment and backup by needing again afterwards, avoid and carry out in system upgrade process at use SD card, the situation that amended parameter can not come into force and the parameter relevant to radio frequency cannot be recovered occurs, mobile terminal can normally be run after system upgrade.
Accompanying drawing explanation
Fig. 1 is the hardware configuration schematic diagram realizing each embodiment of the present invention optional mobile terminal;
Fig. 2 is the radio communication device schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the high-level schematic functional block diagram of present system update device first embodiment;
Fig. 4 is a kind of high-level schematic functional block diagram of acquisition module in the embodiment of the present invention;
Fig. 5 is a kind of high-level schematic functional block diagram of the first writing module in the embodiment of the present invention;
Fig. 6 is the high-level schematic functional block diagram of present system update device second embodiment
Fig. 7 is the schematic flow sheet of present system upgrade method first embodiment;
Fig. 8 is the schematic flow sheet of present system upgrade method second embodiment;
Fig. 9 is the schematic flow sheet of present system upgrade method the 3rd embodiment.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, are described further with reference to accompanying drawing.
Embodiment
Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
The mobile terminal realizing each embodiment of the present invention is described referring now to accompanying drawing.In follow-up description, use the suffix of such as " module ", " parts " or " unit " for representing element only in order to be conducive to explanation of the present invention, itself is specific meaning not.Therefore, " module " and " parts " can mixedly use.
Mobile terminal can be implemented in a variety of manners.Such as, the terminal described in the present invention can comprise the such as mobile terminal of mobile phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (panel computer), PMP (portable media player), guider etc. and the fixed terminal of such as digital TV, desk-top computer etc.Below, suppose that terminal is mobile terminal.But it will be appreciated by those skilled in the art that except the element except being used in particular for mobile object, structure according to the embodiment of the present invention also can be applied to the terminal of fixed type.
Fig. 1 is the hardware configuration schematic diagram realizing each embodiment of the present invention optional mobile terminal.
Mobile terminal 100 can comprise wireless communication unit 110, user input unit 130, sensing cell 140, output unit 150, storer 160, interface unit 170, controller 180 and power supply unit 190 etc.Fig. 1 shows the mobile terminal with various assembly, it should be understood that, does not require to implement all assemblies illustrated.Can alternatively implement more or less assembly.Will be discussed in more detail below the element of mobile terminal.
Wireless communication unit 110 generally includes one or more assembly, and it allows the wireless communication between mobile terminal 100 and radio communication device or network.Such as, wireless communication unit can comprise mobile communication module 112, wireless Internet module 113.
Radio signal is sent at least one in base station (such as, access point, Node B etc.), exterior terminal and server and/or receives radio signals from it by mobile communication module 112.Various types of data that such radio signal can comprise voice call signal, video calling signal or send according to text and/or Multimedia Message and/or receive.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.This module can be inner or be externally couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by this module can comprise WLAN (WLAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave access), HSDPA (high-speed downlink packet access) etc.
User input unit 130 can generate key input data to control the various operations of mobile terminal according to the order of user's input.User input unit 130 allows user to input various types of information, and keyboard, the young sheet of pot, touch pad (such as, detecting the touch-sensitive assembly of the change of the resistance, pressure, electric capacity etc. that cause owing to being touched), roller, rocking bar etc. can be comprised.Especially, when touch pad is superimposed upon on display unit 151 as a layer, touch-screen can be formed.
Sensing cell 140 detects the current state of mobile terminal 100, (such as, mobile terminal 100 open or close state), the position of mobile terminal 100, user for mobile terminal 100 contact (namely, touch input) presence or absence, the orientation of mobile terminal 100, the acceleration of mobile terminal 100 or speed is moved and direction etc., and generate order or the signal of the operation for controlling mobile terminal 100.Such as, when mobile terminal 100 is embodied as sliding-type mobile phone, sensing cell 140 can sense this sliding-type phone and open or close.In addition, whether whether sensing cell 140 can detect power supply unit 190 provides electric power or interface unit 170 to couple with external device (ED).
Interface unit 170 is used as at least one external device (ED) and is connected the interface that can pass through with mobile terminal 100.Such as, external device (ED) can comprise wired or wireless head-band earphone port, external power source (or battery charger) port, wired or wireless FPDP, memory card port, for connecting the port, audio frequency I/O (I/O) port, video i/o port, ear port etc. of the device with identification module.Identification module can be that storage uses the various information of mobile terminal 100 for authentication of users and can comprise subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) etc.In addition, the device (hereinafter referred to " recognition device ") with identification module can take the form of smart card, and therefore, recognition device can be connected with mobile terminal 100 via port or other coupling arrangement.Interface unit 170 may be used for receive from external device (ED) input (such as, data message, electric power etc.) and the input received be transferred to the one or more element in mobile terminal 100 or may be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 100 is connected with external base, interface unit 170 can be used as to allow by it electric power to be provided to the path of mobile terminal 100 from base or can be used as the path that allows to be transferred to mobile terminal by it from the various command signals of base input.The various command signal inputted from base or electric power can be used as and identify whether mobile terminal is arranged on the signal base exactly.Output unit 150 is constructed to provide output signal (such as, sound signal, vision signal, alarm signal, vibration signal etc.) with vision, audio frequency and/or tactile manner.Output unit 150 can comprise display unit 151, dio Output Modules 152, alarm unit 153 etc.
Display unit 151 may be displayed on the information of process in mobile terminal 100.Such as, when mobile terminal 100 is in telephone calling model, display unit 151 can show with call or other communicate (such as, text messaging, multimedia file are downloaded etc.) be correlated with user interface (UI) or graphic user interface (GUI).When mobile terminal 100 is in video calling pattern or image capture mode, display unit 151 can the image of display capture and/or the image of reception, UI or GUI that video or image and correlation function are shown etc.
Meanwhile, when display unit 151 and touch pad as a layer superposed on one another to form touch-screen time, display unit 151 can be used as input media and output unit.Display unit 151 can comprise at least one in liquid crystal display (LCD), thin film transistor (TFT) LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc.Some in these displays can be constructed to transparence and watch from outside to allow user, and this can be called transparent display, and typical transparent display can be such as TOLED (transparent organic light emitting diode) display etc.According to the specific embodiment wanted, mobile terminal 100 can comprise two or more display units (or other display device), such as, mobile terminal can comprise outernal display unit (not shown) and inner display unit (not shown).Touch-screen can be used for detecting touch input pressure and touch input position and touch and inputs area.
Alarm unit 153 can provide and export that event informed to mobile terminal 100.Typical event can comprise calling reception, message sink, key signals input, touch input etc.Except audio or video exports, alarm unit 153 can provide in a different manner and export with the generation of notification event.Such as, alarm unit 153 can provide output with the form of vibration, when receive calling, message or some other enter communication (incomingcommunication) time, alarm unit 153 can provide sense of touch to export (that is, vibrating) to notify to user.By providing such sense of touch to export, even if when the mobile phone of user is in the pocket of user, user also can identify the generation of various event.Alarm unit 153 also can provide the output of the generation of notification event via display unit 151 or dio Output Modules 152.
Storer 160 software program that can store process and the control operation performed by controller 180 etc., or temporarily can store oneself through exporting the data (such as, telephone directory, message, still image, video etc.) that maybe will export.And, storer 160 can store about when touch be applied to touch-screen time the vibration of various modes that exports and the data of sound signal.
Storer 160 can comprise the storage medium of at least one type, described storage medium comprises flash memory, hard disk, multimedia card, card-type storer (such as, SD or DX storer etc.), random access storage device (RAM), static random-access memory (SRAM), ROM (read-only memory) (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc.And mobile terminal 100 can be connected the memory function of execute store 160 network storage device with by network cooperates.
Controller 180 controls the overall operation of mobile terminal usually.Such as, controller 180 performs the control relevant to voice call, data communication, video calling etc. and process.In addition, controller 180 can comprise the multi-media module 181 for reproducing (or playback) multi-medium data, and multi-media module 181 can be configured in controller 180, or can be configured to be separated with controller 180.Controller 180 can pattern recognition process, is identified as character or image so that input is drawn in the handwriting input performed on the touchscreen or picture.
Power supply unit 190 receives external power or internal power and provides each element of operation and the suitable electric power needed for assembly under the control of controller 180.
Various embodiment described herein can to use such as computer software, the computer-readable medium of hardware or its any combination implements.For hardware implementation, embodiment described herein can by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), processor, controller, microcontroller, microprocessor, being designed at least one performed in the electronic unit of function described herein and implementing, in some cases, such embodiment can be implemented in controller 180.For implement software, the embodiment of such as process or function can be implemented with allowing the independent software module performing at least one function or operation.Software code can be implemented by the software application (or program) write with any suitable programming language, and software code can be stored in storer 160 and to be performed by controller 180.
So far, oneself is through the mobile terminal according to its functional description.Below, for the sake of brevity, by the slide type mobile terminal that describes in various types of mobile terminals of such as folded form, board-type, oscillating-type, slide type mobile terminal etc. exemplarily.Therefore, the present invention can be applied to the mobile terminal of any type, and is not limited to slide type mobile terminal.
Mobile terminal 100 as shown in Figure 1 can be constructed to utilize and send the such as wired and radio communication device of data via frame or grouping and satellite-based communicator operates.
Describe wherein according to the communicator that mobile terminal of the present invention can operate referring now to Fig. 2.
Such communicator can use different air interfaces and/or Physical layer.Such as, the air interface used by communicator comprises such as frequency division multiple access (FDMA), time division multiple access (TDMA) (TDMA), CDMA (CDMA) and universal mobile communications device (UMTS) (especially, Long Term Evolution (LTE)), global mobile communication device (GSM) etc.As non-limiting example, description below relates to cdma communication device, but such instruction is equally applicable to the device of other type.
With reference to figure 2, cdma wireless communication device can comprise multiple mobile terminal 100, multiple base station (BS) 270, base station controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is constructed to form interface with Public Switched Telephony Network (PSTN) 290.MSC280 is also constructed to form interface with the BSC275 that can be couple to base station 270 via back haul link.Back haul link can construct according to any one in some interfaces that oneself knows, described interface comprises such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.Will be appreciated that device as shown in Figure 2 can comprise multiple BSC2750.
Each BS270 can serve one or more subregion (or region), by multidirectional antenna or point to specific direction each subregion of antenna cover radially away from BS270.Or each subregion can by two or more antenna covers for diversity reception.Each BS270 can be constructed to support multiple parallel compensate, and each parallel compensate has specific frequency spectrum (such as, 1.25MHz, 5MHz etc.).
Subregion can be called as CDMA Channel with intersecting of parallel compensate.BS270 also can be called as the sub-device of base station transceiver (BTS) or other equivalent terms.Under these circumstances, term " base station " may be used for broadly representing single BSC275 and at least one BS270.Base station also can be called as " cellular station ".Or each subregion of particular B S270 can be called as multiple cellular station.
As shown in Figure 2, broadcast singal is sent to the mobile terminal 100 operated in device by broadcsting transmitter (BT) 295.In fig. 2, several global pick device (GPS) satellite 300 is shown.Satellite 300 helps at least one in the multiple mobile terminal 100 in location.
In fig. 2, depict multiple satellite 300, but be understandable that, the satellite of any number can be utilized to obtain useful locating information.Substitute GPS tracking technique or outside GPS tracking technique, can use can other technology of position of tracking mobile terminal.In addition, at least one gps satellite 300 optionally or extraly can process satellite dmb transmission.
As a typical operation of radio communication device, BS270 receives the reverse link signal from various mobile terminal 100.Mobile terminal 100 participates in call usually, information receiving and transmitting communicates with other type.Each reverse link signal that certain base station 270 receives is processed by particular B S270.The data obtained are forwarded to relevant BSC275.BSC provides call Resourse Distribute and comprises the mobile management function of coordination of the soft switching process between BS270.The data received also are routed to MSC280 by BSC275, and it is provided for the extra route service forming interface with PSTN290.Similarly, PSTN290 and MSC280 forms interface, and MSC and BSC275 forms interface, and BSC275 correspondingly control BS270 so that forward link signals is sent to mobile terminal 100.
Based on the structure of above-mentioned mobile terminal hardware configuration, communicator, each embodiment of the inventive method is proposed.
The invention provides a kind of system upgrade device.
With reference to the high-level schematic functional block diagram that Fig. 3, Fig. 3 are present system update device first embodiment.
In the present embodiment, described system upgrade device comprises:
Acquisition module 10, for obtaining in system upgrade process the parameter needing to revise, as the first parameter, and obtaining in described system upgrade process the parameter not needing to revise, as the second parameter, backing up described second parameter;
Mobile terminal in use due to the existence of some leaks, or in order to respond the demand of user, needs to carry out system upgrade.Described mobile terminal can utilize SD card to carry out system upgrade.The capacity that described SD card stores should be greater than the space taken required for system upgrade.The upgrading using SD card to carry out system can not exist and causes because data line is accidentally withdrawn the phenomenon of system upgrade failure to occur.
When described mobile terminal use described SD card carry out in system upgrade process, described mobile terminal according to the operation of described user, by the system upgrade packet replication of described system upgrade in the root directory of described SD card.When described mobile terminal is by after in described system upgrade packet replication to the root directory of described SD card, in described acquisition for mobile terminal system upgrade process, need the parameter revised, using the described parameter of amendment that needs as the first parameter; Described mobile terminal also obtains in system upgrade process the parameter not needing to revise, using the described parameter revised that do not need as the second parameter, and by described second parameter backup to described SD card or in cloud server.The parameter revised is not needed to be the dynamic N V parameter relevant to radio frequency and static NV parameter in described system upgrade process, but the described parameter revised that do not need includes but not limited to the described dynamic N V parameter relevant to radio frequency and static NV parameter, parameter the same with before system upgrade after can also being included in system upgrade, as as described in do not need revise parameter be IMEI (internationalmobileequipmentidentity, International Mobile Station Equipment Identification), the account information etc. such as ESN (ElectronicSerialNumber, Electronic Serial Number), telephone number.The parameter revised is needed to be some NV parameters relevant to communication protocol in described system upgrade process, described communication protocol comprises but is not limited to TCP/IP (TransportControlProtocol/InternetProtocol, transmission control protocol/Internet Protocol), NetBEUI (NetBiosEnhancedUserInterface) agreement, IPX/SPX (InternetWorkPacketExchange, internet packet switch/sequence packet switch).The described parameter of amendment that needs includes but not limited to the described NV parameter relevant to communication protocol, be also included in after system upgrade with system upgrade before different parameter.In the present embodiment, described mobile terminal includes but not limited to smart mobile phone, PC.
Erasing module 20, for wiping the data in memory partitioning, obtains new memory partitioning;
When described mobile terminal obtains described first parameter in system upgrade process and described second parameter, described mobile terminal wipes the data in its memory partitioning, namely empty the file in described memory partitioning, obtain new memory partitioning, described new memory partitioning is a blank subregion.Wherein, described memory partitioning has two under normal circumstances, is designated as modemst1 and modemst2, i.e. modem data subregion.If described modemst1 subregion and described modemst2 subregion are not empty, described mobile terminal then can not carry out write operation to it.
First writing module 30, for by memory partitioning new described in described first parameter read-in;
Second writing module 40, for when successfully by memory partitioning new described in described first parameter read-in time, by new memory partitioning described in described second parameter read-in of backup, upgrade with completion system.
Data in described mobile terminal erasing memory partitioning, when obtaining an empty new memory partitioning, described mobile terminal is by memory partitioning new described in described first parameter read-in.When described first parameter all successfully writes in described new memory partitioning by described mobile terminal, described mobile terminal obtains described second parameter of backup from described SD card or cloud server, by in memory partitioning new described in described second parameter read-in, with the upgrading of completion system.Namely described mobile terminal writes in described modemst1 subregion in described internal memory and described modemst2 subregion by needing the data revised in system upgrade process, when described mobile terminal successfully by all need the data of amendment to write in described modemst1 subregion in described internal memory and described modemst2 subregion time, described mobile terminal obtains the data of the system upgrade process need amendment of backup from described SD card or described cloud server, need in the described new memory partitioning of data write of amendment, with the upgrading of completion system by described.Further, in described system upgrade process, described mobile terminal is to the backup of described second parameter and recover to be undertaken by the instrument of the Backup Data in described SD card.When described mobile terminal receives system upgrade instruction, described mobile terminal is by the second parameter described in described instrument automated back-up; When described mobile terminal by memory partitioning new described in described first parameter read-in time, described mobile terminal recovers described second parameter automatically by described instrument.
The present embodiment, by obtaining in system upgrade process the parameter needing to revise and the parameter not needing amendment, does not need the parameter revised described in backup; Data in erasing memory partitioning, obtain new memory partitioning, and whether will need in memory partitioning new described in the parameter read-in or not to revise of the parameter of amendment and backup, completion system is upgraded.Achieve in the process using SD card upgrade system, first back up the data not needing amendment in system upgrade process, then by the data erase in tag memory subregion, carry out in the memory partitioning after data erase described in the parameter read-in or not to revise of the parameter of amendment and backup by needing again afterwards, avoid and carry out in system upgrade process at use SD card, the situation that amended parameter can not come into force and the parameter relevant to radio frequency cannot be recovered occurs, mobile terminal can normally be run after system upgrade.
With reference to a kind of high-level schematic functional block diagram that Fig. 4, Fig. 4 are acquisition module in the embodiment of the present invention.
In the present embodiment, described acquisition module 10 comprises:
Acquiring unit 11, for the parameter of the parameter and system redaction that obtain system legacy version;
Contrast unit 12, for the parameter of the parameter and described redaction that contrast described legacy version, obtains the parameter needing in described system upgrade process to revise, and as the first parameter, and does not need the parameter revised, as the second parameter, and backs up described second parameter.
When described mobile terminal needs to carry out system upgrade, the parameter of its system legacy version of described acquisition for mobile terminal and the parameter of system redaction.When after described acquisition for mobile terminal to the parameter of described system legacy version and the parameter of described system redaction, described mobile terminal contrasts the parameter of described system legacy version and the parameter of described system redaction, obtain the parameter needing in described system upgrade process to revise, using the described parameter of amendment that needs as the first parameter; Obtain the parameter not needing in described system upgrade process to revise, using the described parameter revised that do not need as the second parameter, and back up described second parameter.
Erasing module 20, for wiping the data in memory partitioning, obtains new memory partitioning;
When described mobile terminal obtains described first parameter in system upgrade process and described second parameter, described mobile terminal wipes the data in its memory partitioning, namely empty the file in described memory partitioning, obtain new memory partitioning, described new memory partitioning is a blank subregion.Wherein, described memory partitioning has two under normal circumstances, is designated as modemst1 and modemst2, i.e. modem data subregion.If when described modemst1 subregion and described modemst2 subregion are not empty, described mobile terminal then can not carry out write operation to it.
With reference to a kind of high-level schematic functional block diagram that Fig. 5, Fig. 5 are the first writing module in the embodiment of the present invention.
In the present embodiment, described first writing module 30 comprises:
Determining unit 31, for obtaining the identification information of described first parameter, determines the position of described first parameter in described new memory partitioning according to described identification information;
Writing unit 32, for according to the position of described first parameter in described new memory partitioning, by the correspondence position of memory partitioning new described in described first parameter read-in.
When described acquisition for mobile terminal is to described first parameter, obtain the identification information of described first parameter.Described mobile terminal determines the position of described first parameter in described new partitioned storage according to the identification information of described first terminal.Described mobile terminal according to described first parameter position in described new memory partitioning, by the correspondence position of memory partitioning new described in described first parameter read-in.
Second writing module 40, for when successfully by memory partitioning new described in described first parameter read-in time, by new memory partitioning described in described second parameter read-in of backup, upgrade with completion system.
When described first parameter all successfully writes in described new memory partitioning by described mobile terminal, described mobile terminal obtains described second parameter of backup from described SD card or cloud server, by in memory partitioning new described in described second parameter read-in, with the upgrading of completion system.
The present embodiment, by the parameter of comparison system legacy version and the parameter of system redaction, obtains the parameter needing to revise in system upgrade process and the parameter not needing amendment, realizes the difference upgrading of parameter in system upgrade process.
With reference to the high-level schematic functional block diagram that Fig. 6, Fig. 6 are present system update device second embodiment.
In the present embodiment, described system upgrade device comprises:
First judge module 50, for when receiving the instruction of system upgrade, judges whether current electric quantity is less than default electricity;
Processing module 60, if be less than described default electricity for described current electric quantity, does not then perform the instruction of described system upgrade;
When described mobile terminal receives the instruction of system upgrade, described mobile terminal judges whether current electric quantity is less than default electricity.If described mobile terminal judges that described current electric quantity is less than described default electricity, then do not perform the instruction of described system upgrade.Described default electricity is for arranging according to described system upgrade institute subfam. Spiraeoideae.As described in default electricity be 30% of total electricity.As when as described in mobile terminal current electric quantity account for 15% of described always electricity, be less than described default electricity 30%, described mobile terminal does not then perform the instruction of described system upgrade.
Described acquisition module 10, if be also greater than or equal to described default electricity for described current electric quantity, then obtain the parameter needing in system upgrade process to revise, as the first parameter, and obtain in described system upgrade process the parameter not needing to revise, as the second parameter, back up described second parameter.
If described mobile terminal judges that described current electric quantity is greater than or equal to described default electricity, described mobile terminal then obtains in described system upgrade process the parameter needing to revise, using the described parameter of amendment that needs as the first parameter; And obtain in described system upgrade process the parameter not needing to revise, using the described parameter revised that do not need as the second parameter, back up described second parameter.As when as described in current electric quantity account for 40% of described total electricity, be greater than described default electricity 30%, described mobile terminal then obtains in described system upgrade process the parameter needing to revise and the parameter not needing amendment.
Erasing module 20, for wiping the data in memory partitioning, obtains new memory partitioning;
When described mobile terminal obtains described first parameter in system upgrade process and described second parameter, described mobile terminal wipes the data in its memory partitioning, namely empty the file in described memory partitioning, obtain new memory partitioning, described new memory partitioning is a blank subregion.Wherein, described memory partitioning has two under normal circumstances, is designated as modemst1 and modemst2, i.e. modem data subregion.If when described modemst1 subregion and described modemst2 subregion are not empty, described mobile terminal then can not carry out write operation to it.
First writing module 30, for by memory partitioning new described in described first parameter read-in;
Second writing module 40, for when successfully by memory partitioning new described in described first parameter read-in time, by new memory partitioning described in described second parameter read-in of backup, upgrade with completion system.
Data in described mobile terminal erasing memory partitioning, when obtaining an empty new memory partitioning, described mobile terminal is by memory partitioning new described in described first parameter read-in.When described first parameter all successfully writes in described new memory partitioning by described mobile terminal, described mobile terminal obtains described second parameter of backup from described SD card or cloud server, by in memory partitioning new described in described second parameter read-in, with the upgrading of completion system.Namely described mobile terminal writes in described modemst1 subregion in described internal memory and described modemst2 subregion by needing the data revised in system upgrade process, when described mobile terminal successfully by all need the data of amendment to write in described modemst1 subregion in described internal memory and described modemst2 subregion time, described mobile terminal obtains the data of the system upgrade process need amendment of backup from described SD card or described cloud server, need in the described new memory partitioning of data write of amendment, with the upgrading of completion system by described.
Further, described system upgrade device also comprises:
Second judge module, for judging whether described first parameter all successfully writes in described new memory partitioning;
Described second writing module 40, if also all successfully write in described new memory partitioning for described first parameter, then by memory partitioning new described in described second parameter read-in of backup, upgrades with completion system;
Described first writing module 30, if also fail all successfully to write in described new memory partitioning for described first parameter, then in preset times scope by memory partitioning new described in described first parameter read-in.
When described mobile terminal by memory partitioning new described in described first parameter read-in time, described mobile terminal judges whether described first parameter all successfully writes in described new memory partitioning.If described first parameter all successfully writes in described memory partitioning, described mobile terminal then obtains the second parameter of backup from described SD card or in described cloud server, by memory partitioning new described in described second parameter read-in, with the upgrading of completion system.If described first parameter fails all successfully to write in described new memory partitioning, described mobile terminal then continues in memory partitioning new described in described first parameter read-in within the scope of preset times.Wherein, described preset times is arranged as the case may be, as can be set to 2 times, 3 times or 4 inferior.In the present embodiment, described preset times is 3 times.Namely when described first parameter fails all successfully to write in described new memory partitioning, described mobile terminal can continue to attempt in memory partitioning new described in described first parameter read-in, until the number of times that described mobile terminal is attempted reaches 3 times.All all successfully could not write in described new memory partitioning by described first parameter if described mobile terminal attempts that the number of times in memory partitioning new described in described first parameter read-in is reached 3 times, described mobile terminal then again obtains the first parameter in described system upgrade process and the second parameter or abandons the operation of this system upgrade.
The present embodiment is by when receiving the instruction of system upgrade, judge whether current electric quantity is less than default electricity, the instruction performing described system upgrade is determined whether by the magnitude relationship of current electric quantity and default electricity, prevent from occurring power-off in system upgrade process, cause the situation of system upgrade failure to occur.
The present invention further provides a kind of method for upgrading system.
With reference to the schematic flow sheet that Fig. 7, Fig. 7 are present system upgrade method first embodiment.
In the present embodiment, described method for upgrading system comprises:
Step S10, obtains the parameter needing in system upgrade process to revise, and as the first parameter, and obtains in described system upgrade process the parameter not needing to revise, as the second parameter, backs up described second parameter;
Mobile terminal in use due to the existence of some leaks, or in order to respond the demand of user, needs to carry out system upgrade.Described mobile terminal can utilize SD card to carry out system upgrade.The capacity that described SD card stores should be greater than the space taken required for system upgrade.The upgrading using SD card to carry out system can not exist and causes because data line is accidentally withdrawn the phenomenon of system upgrade failure to occur.
When described mobile terminal use described SD card carry out in system upgrade process, described mobile terminal according to the operation of described user, by the system upgrade packet replication of described system upgrade in the root directory of described SD card.When described mobile terminal is by after in described system upgrade packet replication to the root directory of described SD card, in described acquisition for mobile terminal system upgrade process, need the parameter revised, using the described parameter of amendment that needs as the first parameter; Described mobile terminal also obtains in system upgrade process the parameter not needing to revise, using the described parameter revised that do not need as the second parameter, and by described second parameter backup to described SD card or in cloud server.The parameter revised is not needed to be the dynamic N V parameter relevant to radio frequency and static NV parameter in described system upgrade process, but the described parameter revised that do not need includes but not limited to the described dynamic N V parameter relevant to radio frequency and static NV parameter, parameter the same with before system upgrade after can also being included in system upgrade, as as described in do not need revise parameter be IMEI (internationalmobileequipmentidentity, International Mobile Station Equipment Identification), the account information etc. such as ESN (ElectronicSerialNumber, Electronic Serial Number), telephone number.The parameter revised is needed to be some NV parameters relevant to communication protocol in described system upgrade process, described communication protocol comprises but is not limited to TCP/IP (TransportControlProtocol/InternetProtocol, transmission control protocol/Internet Protocol), NetBEUI (NetBiosEnhancedUserInterface) agreement, IPX/SPX (InternetWorkPacketExchange, internet packet switch/sequence packet switch).The described parameter of amendment that needs includes but not limited to the described NV parameter relevant to communication protocol, be also included in after system upgrade with system upgrade before different parameter.In the present embodiment, described mobile terminal includes but not limited to smart mobile phone, PC.
Step S20, the data in erasing memory partitioning, obtain new memory partitioning;
When described mobile terminal obtains described first parameter in system upgrade process and described second parameter, described mobile terminal wipes the data in its memory partitioning, namely empty the file in described memory partitioning, obtain new memory partitioning, described new memory partitioning is a blank subregion.Wherein, described memory partitioning has two under normal circumstances, is designated as modemst1 and modemst2, i.e. modem data subregion.If described modemst1 subregion and described modemst2 subregion are not empty, described mobile terminal then can not carry out write operation to it.
Step S30, by memory partitioning new described in described first parameter read-in;
Step S40, when successfully by memory partitioning new described in described first parameter read-in time, by new memory partitioning described in described second parameter read-in of backup, upgrade with completion system.
Data in described mobile terminal erasing memory partitioning, when obtaining an empty new memory partitioning, described mobile terminal is by memory partitioning new described in described first parameter read-in.When described first parameter all successfully writes in described new memory partitioning by described mobile terminal, described mobile terminal obtains described second parameter of backup from described SD card or cloud server, by in memory partitioning new described in described second parameter read-in, with the upgrading of completion system.Namely described mobile terminal writes in described modemst1 subregion in described internal memory and described modemst2 subregion by needing the data revised in system upgrade process, when described mobile terminal successfully by all need the data of amendment to write in described modemst1 subregion in described internal memory and described modemst2 subregion time, described mobile terminal obtains the data of the system upgrade process need amendment of backup from described SD card or described cloud server, need in the described new memory partitioning of data write of amendment, with the upgrading of completion system by described.Further, in described system upgrade process, described mobile terminal is to the backup of described second parameter and recover to be undertaken by the instrument of the Backup Data in described SD card.When described mobile terminal receives system upgrade instruction, described mobile terminal is by the second parameter described in described instrument automated back-up; When described mobile terminal by memory partitioning new described in described first parameter read-in time, described mobile terminal recovers described second parameter automatically by described instrument.
The present embodiment, by obtaining in system upgrade process the parameter needing to revise and the parameter not needing amendment, does not need the parameter revised described in backup; Data in erasing memory partitioning, obtain new memory partitioning, and whether will need in memory partitioning new described in the parameter read-in or not to revise of the parameter of amendment and backup, completion system is upgraded.Achieve in the process using SD card upgrade system, first back up the data not needing amendment in system upgrade process, then by the data erase in tag memory subregion, carry out in the memory partitioning after data erase described in the parameter read-in or not to revise of the parameter of amendment and backup by needing again afterwards, avoid and carry out in system upgrade process at use SD card, the situation that amended parameter can not come into force and the parameter relevant to radio frequency cannot be recovered occurs, mobile terminal can normally be run after system upgrade.
With reference to the schematic flow sheet that Fig. 8, Fig. 8 are present system upgrade method second embodiment.
In the present embodiment, described step S10 comprises:
Step S11, obtains the parameter of system legacy version and the parameter of system redaction;
Step S12, contrasts the parameter of described legacy version and the parameter of described redaction, obtains the parameter needing in described system upgrade process to revise, and as the first parameter, and does not need the parameter of amendment, as the second parameter, and backs up described second parameter.
When described mobile terminal needs to carry out system upgrade, the parameter of its system legacy version of described acquisition for mobile terminal and the parameter of system redaction.When after described acquisition for mobile terminal to the parameter of described system legacy version and the parameter of described system redaction, described mobile terminal contrasts the parameter of described system legacy version and the parameter of described system redaction, obtain the parameter needing in described system upgrade process to revise, using the described parameter of amendment that needs as the first parameter; Obtain the parameter not needing in described system upgrade process to revise, using the described parameter revised that do not need as the second parameter, and back up described second parameter.
Step S20, the data in erasing memory partitioning, obtain new memory partitioning;
When described mobile terminal obtains described first parameter in system upgrade process and described second parameter, described mobile terminal wipes the data in its memory partitioning, namely empty the file in described memory partitioning, obtain new memory partitioning, described new memory partitioning is a blank subregion.Wherein, described memory partitioning has two under normal circumstances, is designated as modemst1 and modemst2, i.e. modem data subregion.If when described modemst1 subregion and described modemst2 subregion are not empty, described mobile terminal then can not carry out write operation to it.
In the present embodiment, described step S30 comprises:
Step S31, obtains the identification information of described first parameter, determines the position of described first parameter in described new memory partitioning according to described identification information;
Step S32, according to the position of described first parameter in described new memory partitioning, by the correspondence position of memory partitioning new described in described first parameter read-in;
When described acquisition for mobile terminal is to described first parameter, obtain the identification information of described first parameter.Described mobile terminal determines the position of described first parameter in described new partitioned storage according to the identification information of described first terminal.Described mobile terminal according to described first parameter position in described new memory partitioning, by the correspondence position of memory partitioning new described in described first parameter read-in.
Step S40, when successfully by memory partitioning new described in described first parameter read-in time, by new memory partitioning described in described second parameter read-in of backup, upgrade with completion system.
When described first parameter all successfully writes in described new memory partitioning by described mobile terminal, described mobile terminal obtains described second parameter of backup from described SD card or cloud server, by in memory partitioning new described in described second parameter read-in, with the upgrading of completion system.
The present embodiment, by the parameter of comparison system legacy version and the parameter of system redaction, obtains the parameter needing to revise in system upgrade process and the parameter not needing amendment, realizes the difference upgrading of parameter in system upgrade process.
With reference to the schematic flow sheet that Fig. 9, Fig. 9 are for present system upgrade method the 3rd embodiment.
In the present embodiment, described method for upgrading system comprises:
Step S50, when receiving the instruction of system upgrade, judges whether current electric quantity is less than default electricity;
Step S60, if described current electric quantity is less than described default electricity, does not then perform the instruction of described system upgrade;
When described mobile terminal receives the instruction of system upgrade, described mobile terminal judges whether current electric quantity is less than default electricity.If described mobile terminal judges that described current electric quantity is less than described default electricity, then do not perform the instruction of described system upgrade.Described default electricity is for arranging according to described system upgrade institute subfam. Spiraeoideae.As described in default electricity be 30% of total electricity.As when as described in mobile terminal current electric quantity account for 15% of described always electricity, be less than described default electricity 30%, described mobile terminal does not then perform the instruction of described system upgrade.
If described current electric quantity is greater than or equal to described default electricity, then perform step S10, obtain the parameter needing in system upgrade process to revise, as the first parameter, and obtain in described system upgrade process the parameter not needing to revise, as the second parameter, back up described second parameter;
If described mobile terminal judges that described current electric quantity is greater than or equal to described default electricity, described mobile terminal then obtains in described system upgrade process the parameter needing to revise, using the described parameter of amendment that needs as the first parameter; And obtain in described system upgrade process the parameter not needing to revise, using the described parameter revised that do not need as the second parameter, back up described second parameter.As when as described in current electric quantity account for 40% of described total electricity, be greater than described default electricity 30%, described mobile terminal then obtains in described system upgrade process the parameter needing to revise and the parameter not needing amendment.
Step S20, the data in erasing memory partitioning, obtain new memory partitioning;
When described mobile terminal obtains described first parameter in system upgrade process and described second parameter, described mobile terminal wipes the data in its memory partitioning, namely empty the file in described memory partitioning, obtain new memory partitioning, described new memory partitioning is a blank subregion.Wherein, described memory partitioning has two under normal circumstances, is designated as modemst1 and modemst2, i.e. modem data subregion.If when described modemst1 subregion and described modemst2 subregion are not empty, described mobile terminal then can not carry out write operation to it.
Step S30, by memory partitioning new described in described first parameter read-in;
Step S40, when successfully by memory partitioning new described in described first parameter read-in time, by new memory partitioning described in described second parameter read-in of backup, upgrade with completion system.
Data in described mobile terminal erasing memory partitioning, when obtaining an empty new memory partitioning, described mobile terminal is by memory partitioning new described in described first parameter read-in.When described first parameter all successfully writes in described new memory partitioning by described mobile terminal, described mobile terminal obtains described second parameter of backup from described SD card or cloud server, by in memory partitioning new described in described second parameter read-in, with the upgrading of completion system.Namely described mobile terminal writes in described modemst1 subregion in described internal memory and described modemst2 subregion by needing the data revised in system upgrade process, when described mobile terminal successfully by all need the data of amendment to write in described modemst1 subregion in described internal memory and described modemst2 subregion time, described mobile terminal obtains the data of the system upgrade process need amendment of backup from described SD card or described cloud server, need in the described new memory partitioning of data write of amendment, with the upgrading of completion system by described.
Further, described method for upgrading system also comprises:
Judge whether described first parameter all successfully writes in described new memory partitioning;
If described first parameter all successfully writes in described new memory partitioning, then perform described by memory partitioning new described in described second parameter read-in of backup, with the step of completion system upgrading;
If described first parameter fails all successfully to write in described new memory partitioning, then continue execution in preset times scope described by the step in memory partitioning new described in described first parameter read-in.
When described mobile terminal by memory partitioning new described in described first parameter read-in time, described mobile terminal judges whether described first parameter all successfully writes in described new memory partitioning.If described first parameter all successfully writes in described memory partitioning, described mobile terminal then obtains the second parameter of backup from described SD card or in described cloud server, by memory partitioning new described in described second parameter read-in, with the upgrading of completion system.If described first parameter fails all successfully to write in described new memory partitioning, described mobile terminal then continues in memory partitioning new described in described first parameter read-in within the scope of preset times.Wherein, described preset times is arranged as the case may be, as can be set to 2 times, 3 times or 4 inferior.In the present embodiment, described preset times is 3 times.Namely when described first parameter fails all successfully to write in described new memory partitioning, described mobile terminal can continue to attempt in memory partitioning new described in described first parameter read-in, until the number of times that described mobile terminal is attempted reaches 3 times.All all successfully could not write in described new memory partitioning by described first parameter if described mobile terminal attempts that the number of times in memory partitioning new described in described first parameter read-in is reached 3 times, described mobile terminal then again obtains the first parameter in described system upgrade process and the second parameter or abandons the operation of this system upgrade.
The present embodiment is by when receiving the instruction of system upgrade, judge whether current electric quantity is less than default electricity, the instruction performing described system upgrade is determined whether by the magnitude relationship of current electric quantity and default electricity, prevent from occurring power-off in system upgrade process, cause the situation of system upgrade failure to occur.
These are only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize instructions of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (10)

1. a system upgrade device, is characterized in that, described system upgrade device comprises:
Acquisition module, for obtaining in system upgrade process the parameter needing to revise, as the first parameter, and obtaining in described system upgrade process the parameter not needing to revise, as the second parameter, backing up described second parameter;
Erasing module, for wiping the data in memory partitioning, obtains new memory partitioning;
First writing module, for by memory partitioning new described in described first parameter read-in;
Second writing module, for when successfully by memory partitioning new described in described first parameter read-in time, by new memory partitioning described in described second parameter read-in of backup, upgrade with completion system.
2. the system as claimed in claim 1 update device, is characterized in that, described acquisition module comprises:
Acquiring unit, for the parameter of the parameter and system redaction that obtain system legacy version;
Contrast unit, for the parameter of the parameter and described redaction that contrast described legacy version, obtains the parameter needing in described system upgrade process to revise, and as the first parameter, and does not need the parameter revised, as the second parameter, and backs up described second parameter.
3. system upgrade device as claimed in claim 2, it is characterized in that, described first writing module comprises:
Determining unit, for obtaining the identification information of described first parameter, determines the position of described first parameter in described new memory partitioning according to described identification information;
Writing unit, for according to the position of described first parameter in described new memory partitioning, by the correspondence position of memory partitioning new described in described first parameter read-in.
4. the system as claimed in claim 1 update device, is characterized in that, described system upgrade device also comprises:
First judge module, for when receiving the instruction of system upgrade, judges whether current electric quantity is less than default electricity;
Processing module, if be less than described default electricity for described current electric quantity, does not then perform the instruction of described system upgrade;
Described acquisition module, if be also greater than or equal to described default electricity for described current electric quantity, then obtains the parameter needing in system upgrade process to revise, as the first parameter, and obtain in described system upgrade process the parameter not needing to revise, as the second parameter, back up described second parameter.
5. the system upgrade device as described in any one of Claims 1-4, is characterized in that, described system upgrade device also comprises:
Second judge module, for judging whether described first parameter all successfully writes in described new memory partitioning;
Described second writing module, if also all successfully write in described new memory partitioning for described first parameter, then by memory partitioning new described in described second parameter read-in of backup, upgrades with completion system;
Described first writing module, if also fail all successfully to write in described new memory partitioning for described first parameter, then in preset times scope by memory partitioning new described in described first parameter read-in.
6. a method for upgrading system, is characterized in that, described method for upgrading system comprises the following steps:
Obtain the parameter needing in system upgrade process to revise, as the first parameter, and obtain in described system upgrade process the parameter not needing to revise, as the second parameter, back up described second parameter;
Data in erasing memory partitioning, obtain new memory partitioning;
By in memory partitioning new described in described first parameter read-in;
When successfully by memory partitioning new described in described first parameter read-in time, by new memory partitioning described in described second parameter read-in of backup, upgrade with completion system.
7. method for upgrading system as claimed in claim 6, is characterized in that, needs the parameter revised in described acquisition system upgrade process, as the first parameter, and obtain in described system upgrade process the parameter not needing to revise, as the second parameter, the step backing up described second parameter comprises:
The parameter of acquisition system legacy version and the parameter of system redaction;
Contrast the parameter of described legacy version and the parameter of described redaction, obtain the parameter needing in described system upgrade process to revise, as the first parameter, and do not need the parameter of amendment, as the second parameter, and back up described second parameter.
8. method for upgrading system as claimed in claim 7, is characterized in that, describedly step in memory partitioning new described in described first parameter read-in is comprised:
Obtain the identification information of described first parameter, determine the position of described first parameter in described new memory partitioning according to described identification information;
According to the position of described first parameter in described new memory partitioning, by the correspondence position of memory partitioning new described in described first parameter read-in.
9. method for upgrading system as claimed in claim 6, it is characterized in that, the parameter revised is needed in described acquisition system upgrade process, as the first parameter, and obtain in described system upgrade process the parameter not needing to revise, as the second parameter, before backing up the step of described second parameter, also comprise:
When receiving the instruction of system upgrade, judge whether current electric quantity is less than default electricity;
If described current electric quantity is less than described default electricity, then do not perform the instruction of described system upgrade;
If described current electric quantity is greater than or equal to described default electricity, then perform in described acquisition system upgrade process the parameter needing to revise, as the first parameter, and obtain in described system upgrade process the parameter not needing to revise, as the second parameter, back up the step of described second parameter.
10. the method for upgrading system as described in any one of claim 6 to 9, is characterized in that, described by after the step in memory partitioning new described in described first parameter read-in, also comprises:
Judge whether described first parameter all successfully writes in described new memory partitioning;
If described first parameter all successfully writes in described new memory partitioning, then perform described by memory partitioning new described in described second parameter read-in of backup, with the step of completion system upgrading;
If described first parameter fails all successfully to write in described new memory partitioning, then continue execution in preset times scope described by the step in memory partitioning new described in described first parameter read-in.
CN201511000808.0A 2015-12-28 2015-12-28 System upgrade device and method Active CN105511928B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511000808.0A CN105511928B (en) 2015-12-28 2015-12-28 System upgrade device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511000808.0A CN105511928B (en) 2015-12-28 2015-12-28 System upgrade device and method

Publications (2)

Publication Number Publication Date
CN105511928A true CN105511928A (en) 2016-04-20
CN105511928B CN105511928B (en) 2019-07-26

Family

ID=55719935

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511000808.0A Active CN105511928B (en) 2015-12-28 2015-12-28 System upgrade device and method

Country Status (1)

Country Link
CN (1) CN105511928B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105955774A (en) * 2016-04-29 2016-09-21 乐视控股(北京)有限公司 Software upgrading control method and device
CN106066806A (en) * 2016-06-06 2016-11-02 Tcl移动通信科技(宁波)有限公司 A kind of mobile terminal software update method and system
CN106507337A (en) * 2016-10-08 2017-03-15 努比亚技术有限公司 A kind of FOTA updating apparatus and method
CN106775672A (en) * 2016-11-30 2017-05-31 努比亚技术有限公司 The method and terminal of system version upgrading
CN107222341A (en) * 2017-05-27 2017-09-29 上海创功通讯技术有限公司 The method and electronic equipment updated for radio frequency protocol parameter
CN107911248A (en) * 2017-11-27 2018-04-13 北京百度网讯科技有限公司 Upgrade method and device
CN108429979A (en) * 2018-06-15 2018-08-21 歌尔科技有限公司 A kind of charging box upgrade method, charging box, wireless headset and TWS earphones
CN109739542A (en) * 2018-12-11 2019-05-10 成都智慧海派科技有限公司 A kind of method of high-pass platform nv parameter upgrading
CN109885325A (en) * 2019-02-26 2019-06-14 努比亚技术有限公司 Terminal system upgrade method, terminal and computer readable storage medium
CN111258608A (en) * 2020-01-16 2020-06-09 宁波三星医疗电气股份有限公司 Software upgrading method and device for terminal equipment and electronic system

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114461257B (en) * 2021-07-29 2023-03-24 荣耀终端有限公司 Operating system data configuration method, operating system data configuration device, storage medium and program product

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101110788A (en) * 2006-07-20 2008-01-23 阿里巴巴公司 Method and system for updating client software
JP2008243136A (en) * 2007-03-29 2008-10-09 Fujitsu Ltd Configuration change information analysis program, latest document determination program, configuration change information analyzing device, and latest document determination device
CN101694623A (en) * 2009-09-29 2010-04-14 上海夏新电子开发有限公司 Method for updating handheld device software
CN103186401A (en) * 2011-12-31 2013-07-03 北京新媒传信科技有限公司 Method for updating software system and configuration thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101110788A (en) * 2006-07-20 2008-01-23 阿里巴巴公司 Method and system for updating client software
JP2008243136A (en) * 2007-03-29 2008-10-09 Fujitsu Ltd Configuration change information analysis program, latest document determination program, configuration change information analyzing device, and latest document determination device
CN101694623A (en) * 2009-09-29 2010-04-14 上海夏新电子开发有限公司 Method for updating handheld device software
CN103186401A (en) * 2011-12-31 2013-07-03 北京新媒传信科技有限公司 Method for updating software system and configuration thereof

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105955774A (en) * 2016-04-29 2016-09-21 乐视控股(北京)有限公司 Software upgrading control method and device
CN106066806A (en) * 2016-06-06 2016-11-02 Tcl移动通信科技(宁波)有限公司 A kind of mobile terminal software update method and system
CN106066806B (en) * 2016-06-06 2020-06-09 Tcl移动通信科技(宁波)有限公司 Mobile terminal software updating method and system
CN106507337A (en) * 2016-10-08 2017-03-15 努比亚技术有限公司 A kind of FOTA updating apparatus and method
CN106775672A (en) * 2016-11-30 2017-05-31 努比亚技术有限公司 The method and terminal of system version upgrading
CN107222341A (en) * 2017-05-27 2017-09-29 上海创功通讯技术有限公司 The method and electronic equipment updated for radio frequency protocol parameter
CN107222341B (en) * 2017-05-27 2020-06-05 上海创功通讯技术有限公司 Method for updating radio frequency protocol parameters and electronic equipment
CN107911248A (en) * 2017-11-27 2018-04-13 北京百度网讯科技有限公司 Upgrade method and device
CN108429979A (en) * 2018-06-15 2018-08-21 歌尔科技有限公司 A kind of charging box upgrade method, charging box, wireless headset and TWS earphones
CN109739542A (en) * 2018-12-11 2019-05-10 成都智慧海派科技有限公司 A kind of method of high-pass platform nv parameter upgrading
CN109885325A (en) * 2019-02-26 2019-06-14 努比亚技术有限公司 Terminal system upgrade method, terminal and computer readable storage medium
CN111258608A (en) * 2020-01-16 2020-06-09 宁波三星医疗电气股份有限公司 Software upgrading method and device for terminal equipment and electronic system

Also Published As

Publication number Publication date
CN105511928B (en) 2019-07-26

Similar Documents

Publication Publication Date Title
CN105511928A (en) System upgrading device and method
CN107239302A (en) A kind of firmware upgrade method, terminal and server
CN105373440A (en) Fault detection and recovery apparatus and method
CN105549819A (en) Method and device for displaying background application information
CN104793849A (en) Application icon display method and device
CN105094812A (en) Method and device for switching applications
CN105117241A (en) Firmware upgrade method and apparatus
CN104955023A (en) Mobile terminal and method for updating network parameters
CN105187534A (en) Information backup equipment and method, and information backup system
CN105487750A (en) Application control method and apparatus and mobile terminal
CN104777979A (en) Terminal as well as touch operation method and device for same
CN104657181A (en) Method and device for mounting application program
CN105094532A (en) Method and device for data access
CN104978123A (en) Screen division method and apparatus
CN105471988A (en) contact person information pushing method, server and terminal
CN105677517A (en) Data backup device, terminal and data backup method
CN104731456A (en) Desktop widget display method and device
CN105095051A (en) Method and device for reminding working state of background application program
CN105426036A (en) Interface display upgrade method, apparatus and system for application
CN105278995A (en) Management method of application, system, server and mobile terminal
CN105487803A (en) Touch response method and mobile terminal
CN105263195A (en) Data transmission device and method
CN105100194A (en) Full Netcom mutual upgrading method and device based on redundant MBN
CN105204849A (en) Pressure test system and implementation method thereof
CN105446600A (en) Mobile terminal and application icon acquiring method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant