CN105446835A - Method and device for repairing system file - Google Patents

Method and device for repairing system file Download PDF

Info

Publication number
CN105446835A
CN105446835A CN201510983083.5A CN201510983083A CN105446835A CN 105446835 A CN105446835 A CN 105446835A CN 201510983083 A CN201510983083 A CN 201510983083A CN 105446835 A CN105446835 A CN 105446835A
Authority
CN
China
Prior art keywords
file
flash memory
brush machine
specified partition
machine file
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.)
Pending
Application number
CN201510983083.5A
Other languages
Chinese (zh)
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.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510983083.5A priority Critical patent/CN105446835A/en
Publication of CN105446835A publication Critical patent/CN105446835A/en
Pending legal-status Critical Current

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/1458Management of the backup or restore process
    • G06F11/1469Backup restoration techniques

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)

Abstract

The disclosure is a method and a device for repairing a system file belonging to the terminal technique field. The method comprises: obtaining a repairing instruction when the system file is damaged; reading a flash file from the first assigned sub-region of a flash memory according to the repairing instruction, wherein the flash file is a system file written to the first assigned sub-region when a device producer produces a device; writing the flash file to the second assigned sub-region of the flash memory so as to repair the system file, wherein the first assigned sub-region and the second assigned sub-region are mutually independent sub-regions in the flash memory. According to the invention, through storing the flash file to the first assigned sub-region of the flash memory, when the system file is damaged, the system file is repaired by the flash file stored in the first assigned sub-region without downloading a flash tool and the flash file from the network, therefore the repairing cost is saved, and the repairing complexity is reduced.

Description

The method that system file is repaired and device
Technical field
The disclosure relates to field of terminal technology, particularly relates to a kind of method of repairing system file and device.
Background technology
In recent years, along with the fast development of Android operation system, Android operation system is widely used in terminal.In use, due to the faulty operation of user, the destruction of Virus, system file is caused often to be damaged.But once system file is damaged, terminal cannot normally be run, now need to repair system file.
Mainly through the mode of brush machine, system file is repaired at present.Concrete repair process is as follows:
The first step, terminal downloads brush machine instrument and brush machine file from network, and this brush machine file is unspoiled system file;
Second step, downloaded brush machine instrument is installed in designated computer by terminal;
3rd step, driver is installed in designated computer by terminal, and is connected by data line and designated computer;
4th step, designated computer deletes original system file, and uses the brush machine instrument installed to be written in terminal by brush machine file, thus realizes the reparation to system file.
Summary of the invention
The disclosure provides a kind of method of repairing system file and device.
According to the first aspect of disclosure embodiment, provide a kind of method of repairing system file, described method comprises:
When system file damages, obtain and repair instruction;
According to described reparation instruction, from the first specified partition of flash memory, read brush machine file, described brush machine file is device fabrication business is written to described first specified partition system file when production equipment;
Described brush machine file is written to the second specified partition of described flash memory, to repair described system file;
Wherein, described first specified partition and described second specified partition are subregion separate in described flash memory.
Alternatively, described when system file damages, obtain and repair instruction, comprising:
When system failure, the appointing system file in running memory;
In the process of described appointing system running paper, display specified option;
When the touch control operation to described specified option being detected, generate described reparation instruction.
Alternatively, described according to described reparation instruction, from the first specified partition of flash memory, after reading brush machine file, also comprise:
Judge from the first specified partition of described flash memory, whether successfully read described brush machine file;
If successfully read described brush machine file from the first specified partition of described flash memory, then perform the step described brush machine file being written to the second specified partition of described flash memory;
If unsuccessful reading described brush machine file, then show the first information from the first specified partition of described flash memory, described first information reads unsuccessfully for pointing out described brush machine file.
Alternatively, described described brush machine file is written to the second specified partition of described flash memory before, comprising:
Described system file is deleted from the second specified partition of described flash memory;
Described the second specified partition described brush machine file being written to described flash memory, comprising:
By described brush machine file decompression in the second specified partition of described flash memory.
Alternatively, described described brush machine file is written to the second specified partition of described flash memory after, also comprise:
Judge whether described brush machine file is successfully written in the second specified partition of described flash memory;
Be written in the second specified partition of described flash memory if described brush machine file is unsuccessful, then show the second information, for pointing out, described brush machine file is unsuccessful to be written in the second specified partition of described flash memory described second information.
According to the second aspect of disclosure embodiment, provide a kind of device repaired system file, described device comprises:
Acquisition module, for when system file damages, obtains and repairs instruction;
Read module, for according to described reparation instruction, from the first specified partition of flash memory, read brush machine file, described brush machine file is device fabrication business is written to described first specified partition system file when production equipment;
Writing module, for described brush machine file being written to the second specified partition of described flash memory, to repair described system file;
Wherein, described first specified partition and described second specified partition are subregion separate in described flash memory.
Alternatively, described acquisition module, for when system failure, the appointing system file in running memory; In the process of described appointing system running paper, display specified option; When the touch control operation to described specified option being detected, generate described reparation instruction.
Alternatively, described device also comprises:
Whether the first judge module, successfully read described brush machine file for judging from the first specified partition of described flash memory;
Said write module, for when successfully reading described brush machine file from the first specified partition of described flash memory, is written to the second specified partition of described flash memory by described brush machine file;
First display module, for when during unsuccessful reading described brush machine file, showing the first information from the first specified partition of described flash memory, described first information reads unsuccessfully for pointing out described brush machine file.
Alternatively, described device also comprises:
Removing module, for deleting described system file from the second specified partition of described flash memory;
Said write module, for by described brush machine file decompression in the second specified partition of described flash memory.
Alternatively, described device also comprises:
Second judge module, for judging whether described brush machine file is successfully written in the second specified partition of described flash memory;
Second display module, for when described brush machine file is unsuccessful be written in the second specified partition of described flash memory time, show the second information, for pointing out, described brush machine file is unsuccessful to be written in the second specified partition of described flash memory described second information.
According to the third aspect of disclosure embodiment, a kind of device repaired system file is provided, comprises:
Processor;
For the storer of the executable instruction of storage of processor;
Wherein, described processor is configured to:
When system file damages, obtain and repair instruction;
According to described reparation instruction, from the first specified partition of flash memory, read brush machine file, described brush machine file is device fabrication business is written to described first specified partition system file when production equipment;
Described brush machine file is written to the second specified partition of described flash memory, to repair described system file;
Wherein, described first specified partition and described second specified partition are subregion separate in described flash memory.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect:
By brush machine file being stored into the first specified partition of flash memory, when system file is damaged, without the need to downloading brush machine instrument and brush machine file from network, by the brush machine file stored in the first specified partition, can repair system file, not only save rehabilitation cost, and reduce reparation complexity.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in instructions and to form the part of this instructions, shows and meets embodiment of the present disclosure, and is used from instructions one and explains principle of the present disclosure.
Fig. 1 is a kind of process flow diagram to the method that system file is repaired according to an exemplary embodiment.
Fig. 2 is a kind of process flow diagram to the method that system file is repaired according to an exemplary embodiment.
Fig. 3 is the schematic diagram of the device fabrication business production run according to an exemplary embodiment.
Fig. 4 is the schematic diagram to the whole process that system file is repaired according to an exemplary embodiment.
Fig. 5 is a kind of structural representation to the device that system file is repaired according to an exemplary embodiment.
Fig. 6 is a kind of block diagram to the device that system file is repaired according to an exemplary embodiment.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Embodiment described in following exemplary embodiment does not represent all embodiments consistent with the disclosure.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present disclosure are consistent.
Fig. 1 is a kind of process flow diagram to the method that system file is repaired according to an exemplary embodiment, and as shown in Figure 1, the method for repairing system file, in terminal, comprises the following steps.
In a step 101, when system file damages, obtain and repair instruction.
In a step 102, according to reparation instruction, from the first specified partition of flash memory, read brush machine file, this brush machine file is device fabrication business is written to the first specified partition system file when production equipment.
In step 103, brush machine file is written to the second specified partition of flash memory, to repair system file.
Wherein, the first specified partition and the second specified partition are subregion separate in flash memory.
The method that disclosure embodiment provides, by brush machine file being stored into the first specified partition of flash memory, when system file is damaged, without the need to downloading brush machine instrument and brush machine file from network, by the brush machine file stored in the first specified partition, can repair system file, not only save rehabilitation cost, and reduce reparation complexity.
In another embodiment of the present disclosure, when system file damages, obtain and repair instruction, comprising:
When system failure, the appointing system file in running memory;
In the process of appointing system running paper, display specified option;
When the touch control operation to specified option being detected, generating and repairing instruction.
In another embodiment of the present disclosure, according to reparation instruction, from the first specified partition of flash memory, after reading brush machine file, also comprise:
Judge whether successfully read brush machine file from the first specified partition of flash memory;
If successfully read brush machine file from the first specified partition of flash memory, then perform the step of the second specified partition brush machine file being written to flash memory;
If unsuccessful reading brush machine file, then show the first information from the first specified partition of flash memory, the first information reads unsuccessfully for pointing out brush machine file.
In another embodiment of the present disclosure, before brush machine file being written to the second specified partition of flash memory, comprising:
System file is deleted from the second specified partition of flash memory;
Brush machine file is written to the second specified partition of flash memory, comprises:
By brush machine file decompression in the second specified partition of flash memory.
In another embodiment of the present disclosure, after brush machine file being written to the second specified partition of flash memory, also comprise:
Judge whether brush machine file is successfully written in the second specified partition of flash memory;
Be written in the second specified partition of flash memory if brush machine file is unsuccessful, then show the second information, for pointing out, brush machine file is unsuccessful to be written in the second specified partition of flash memory the second information.
Above-mentioned all alternatives, can adopt and combine arbitrarily formation embodiment of the present disclosure, this is no longer going to repeat them.
Fig. 2 is a kind of process flow diagram to the method that system file is repaired according to an exemplary embodiment, and as shown in Figure 2, the method for repairing system file, in terminal, comprises the following steps.
In step 201, when system file damages, terminal obtains repairs instruction.
In the present embodiment, terminal can for being provided with the smart machine such as intelligent television, network machine top box, smart mobile phone, telepilot of Andriod system file and recovery system file.Wherein, Andriod system file is the topmost system file of terminal, Andriod system file is stored in the flash memory of terminal usually, can whether Andriod system file damage and decide terminal and normally run, and the system file in fact will repaired in the present embodiment is Andriod system file; Recovery system file is a system file minimum in terminal, recovery system file is generally stored in the internal memory of terminal, recovery system file is independent of outside Andriod system file, belong to emergency system file, damage at Andriod system file, when terminal cannot run Andriod system file, recovery system file still can normally run, and the appointing system file in fact described in the present embodiment is recovery system file.
Due to the reason such as faulty operation or viral subversive of user, damaging appears in system file in operational process, terminal is caused normally to run, the system file to damaging is needed to repair, now user is by the specific keys of touch control terminal, triggering terminal runs appointing system file, and generates reparation instruction, and then according to repairing instruction realization to the reparation of the system file damaged.For this process, concrete can see following steps 2011 ~ 2013 when implementing:
2011, when system failure, the appointing system file in terminal operating internal memory.
When system file damages, user can press specific keys in terminal or key combination, and triggering terminal runs recovery system file, or, terminal detects that family presses specific keys in terminal or key combination etc. in a specific way, runs recovery system file.Alternatively, specific keys in terminal is pressed in a specific way or key combination can be: press specific keys or key combination continuously with pre-determined number, press specific keys or key combination etc. with predetermined duration.
2012, in the process of appointing system running paper, terminal demonstration specified option.
Recovery system file in the present embodiment is different from existing recovery system file, specific file is with the addition of in recovery system file in the present embodiment, this specific file is in recovery system file operational process, can be shown as a specified option, this specified option can for restoring factory's system option etc. in the present embodiment.
2013, when the touch control operation to specified option being detected, terminal generates repairs instruction.
When system file damages, if user wishes to repair system file, user can this specified option of touch-control, when terminal detects the touch control operation of user to specified option, generate and repair instruction, this reparation instruction is used for triggering terminal by running recovery system file, to perform the reparation flow process to system file.
In step 202., terminal, according to reparation instruction, from the first specified partition of flash memory, reads brush machine file.
In order to improve the stability of system, simplify the complexity that system file is repaired, the flash memory of terminal is divided into multiple partition holding, is respectively the first specified partition, the second specified partition etc., and this first specified partition and this second specified partition are subregion separate in flash memory.Wherein, first specified partition is for storing brush machine file, this brush machine file is device fabrication business is written to the first specified partition system file when production equipment, this first specified partition can called after backup subregion, can certainly the subregion of other titles of called after, for the title of this first specified partition, can be arranged voluntarily by user; Second specified partition is used for storage system file, such as, store Andriod system file etc.
In the present embodiment, when brush machine file is written to the first specified partition of flash memory by device fabrication business, can adopt as following step 2021 ~ 2022.
2021, in the process of production equipment, device fabrication business is reserved first specified partition on flash memory in advance.
2022, the brush machine file of the system of dispatching from the factory is written in the first specified partition by device fabrication business.
For said process, also can see the schematic diagram of the device fabrication business production run described in Fig. 3.In device fabrication process, device fabrication business creates backup subregion in advance in a flash memory, and the brush machine file of the system of dispatching from the factory is written to backup subregion, thus the system file in produced equipment when damaging in follow-up operation process, unspoiled system file can be got from this backup subregion.
Owing to storing the brush machine file that device fabrication business writes in the first specified partition in the present embodiment, therefore, when receiving reparation instruction, terminal, by running recovery system file, can read brush machine file from the first specified partition.In addition, because recovery system file is stored in the internal memory of terminal, in order to realize the reparation to system file, terminal after reading brush machine file from the first specified partition of flash memory, also be stored in internal memory by read brush machine file, subsequent terminal, when repairing system file, can read brush machine file from internal memory, and brush machine file is written in the second specified partition of flash memory, to realize the reparation to system file.
In step 203, whether terminal judges successfully reads brush machine file from the first specified partition of flash memory, if not, performs step 204, if so, performs step 205.
In order to prevent the brush machine file that reads from the first specified partition of flash memory imperfect, terminal is caused successfully to repair the system file of terminal, after read brush machine file from flash memory, terminal also will judge whether successfully read brush machine file from the first specified partition of flash memory.During concrete judgement, terminal can obtain the description document of brush machine file, and this description document is for describing the attribute information such as file type, file size of brush machine file.According to this description document, terminal can judge whether successfully read brush machine file from the first specified partition of flash memory, if the attribute information of the brush machine file read is consistent with the attribute information described by description document, then can determine successfully to read brush machine file from the first specified partition of flash memory; If the attribute information of the brush machine file read and the attribute information described by description document inconsistent, then can determine unsuccessful reading brush machine file from the first specified partition of flash memory.
In step 204, terminal demonstration first information.
When determining unsuccessful reading brush machine file from the first specified partition of flash memory, terminal is also by display first information.Wherein, what the first information may be displayed on terminal makes mistakes in picture, this first information reads unsuccessfully for pointing out brush machine file, and the content of this first information can be " sorry, this fails and read brush machine file from the first specified partition " etc.
So far, terminal this reparation flow process of system file is terminated, if user wants to continue to repair system file, user can touch-control specified option again, generate with triggering terminal and repair instruction, and again from the first specified partition, read brush machine file according to this reparation instruction.
In step 205, brush machine file is written to the second specified partition of flash memory, to repair system file by terminal.
Storage space due to flash memory is limited, in order to avoid in system file repair process because of memory space inadequate, cause repairing failure, terminal is before the second specified partition brush machine file being written to flash memory, first system file can be deleted from the second specified partition of flash memory, from internal memory, then obtain brush machine file.Generally for saving storage space, in the present embodiment flash memory the first specified partition in the brush machine file that stores in the brush machine file that stores and internal memory be packed data, and terminal directly can not run packed data, therefore, after obtain brush machine file from internal memory, terminal also by adopting the decompression algorithm of specifying by second specified partition of the brush machine file decompression in internal memory to flash memory, to repair system file.
In step 206, whether terminal judges brush machine file is successfully written in the second specified partition of flash memory, and if so, flow process terminates, and if not, performs step 207.
When brush machine file is written to the second specified partition of flash memory by running recovery system file by terminal, the brush machine file write may be damaged, according to the system file damaged, terminal cannot successfully be repaired system file, therefore, after the second specified partition brush machine file being written to flash memory, terminal also will judge whether brush machine file is successfully written in the second specified partition of flash memory.During concrete judgement, terminal can obtain criteria check code and first check code of brush machine file, this criteria check code is calculated according to the brush machine file stored in internal memory by terminal, this first check code is calculated according to the brush machine file in the second specified partition of write flash memory by terminal, afterwards, this criteria check code and the first check code compare by terminal, if criteria check code is identical with the first check code, then can determine that brush machine file is successfully written in the second specified partition of flash memory, flow process terminates; If criteria check code is not identical with the first check code, then can determines that brush machine file is unsuccessful and be written in the second specified partition of flash memory.
In step 207, terminal demonstration second information.
When determining that brush machine file is unsuccessful and being written in the second specified partition of flash memory, terminal is also by display second information.Wherein, what the second information may be displayed on terminal makes mistakes in picture, for pointing out, brush machine file is unsuccessful to be written in the second specified partition of flash memory this second information, the content of this second information can be " sorry, this fails brush machine file to be successfully written in the second specified partition of flash memory " etc.
So far, terminal this reparation flow process of system file is terminated, if user wants to continue to repair system file, user can touch-control specified option again, generate with triggering terminal and repair instruction, and again from the first specified partition, read brush machine file according to this reparation instruction, and then again brush machine file is written in the second specified partition of flash memory.
For above-mentioned whole process of repairing system file, for the ease of understanding, will be described for Fig. 4 below.
Fig. 4 is the schematic diagram to the whole process that system file is repaired.When system file damages, user is by pressing specific keys in terminal or combination button, and triggering terminal runs recovery system file.In the process that recovery system file runs, terminal demonstration reduction Default Value button, this reduction Default Value button of user's touch-control, terminal detect user to reduction dispatch from the factory button touch control operation after, generate and repair instruction, and according to generated reparation instruction, from the first specified partition of flash memory, read brush machine file.Complete in order to ensure read brush machine file, terminal also will judge whether successfully read brush machine file from the first specified partition of flash memory, if successfully read brush machine file from the first specified partition of flash memory, then this brush machine file is written in the second specified partition of flash memory, if unsuccessful reading brush machine file from the first specified partition of flash memory, then show picture of makeing mistakes, this picture of makeing mistakes shows the first information, and this first information reads unsuccessfully for pointing out brush machine file.In order to avoid the brush machine file corruption in the second specified partition being written to flash memory, cause system file repairing failure, terminal is after the second specified partition brush machine file being written to flash memory, also will judge whether brush machine file is successfully written in the second specified partition of flash memory, if brush machine file is successfully written in the second specified partition of flash memory, then the reparation flow process of system file is terminated; Be written in the second specified partition of flash memory if brush machine file is unsuccessful, then show picture of makeing mistakes, this picture of makeing mistakes shows the second information, and for pointing out, brush machine file is unsuccessful to be written in the second specified partition of flash memory this second information.
It should be noted that, the file be damaged in usual system file can be solely limited several, thus in the process that system file is repaired, terminal is when getting brush machine file, system file can be deleted, and by brush machine file being written to the second specified partition of flash memory, realize repairing system file, certainly, in order to saving resource, terminal, when repairing system file, also can be repaired for the file damaged, and without the need to whole system files is deleted.
The method that disclosure embodiment provides, by brush machine file being stored into the first specified partition of flash memory, when system file is damaged, without the need to downloading brush machine instrument and brush machine file from network, by the brush machine file stored in the first specified partition, can repair system file, not only save rehabilitation cost, and reduce reparation complexity.
Fig. 5 is a kind of apparatus structure schematic diagram repaired system file according to an exemplary embodiment.With reference to Fig. 5, this device comprises: acquisition module 501, read module 502 and writing module 503.
This acquisition module 501 is configured to when system file damages, and obtains and repairs instruction;
This read module 502 is configured to according to reparation instruction, and from the first specified partition of flash memory, read brush machine file, this brush machine file is device fabrication business is written to the first specified partition system file when production equipment;
This writing module 503 is configured to the second specified partition brush machine file being written to flash memory, to repair system file;
Wherein, the first specified partition and the second specified partition are subregion separate in flash memory.
In another embodiment of the present disclosure, this acquisition module 501 is configured to when system failure, the appointing system file in running memory; In the process of appointing system running paper, display specified option; When the touch control operation to specified option being detected, generating and repairing instruction.
In another embodiment of the present disclosure, this device also comprises: the first judge module and the first display module.
This first judge module is configured to judge whether successfully read brush machine file from the first specified partition of flash memory;
This writing module 503 is configured to, when successfully reading brush machine file from the first specified partition of flash memory, brush machine file is written to the second specified partition of flash memory;
This first display module is configured to when during unsuccessful reading brush machine file, showing the first information from the first specified partition of flash memory, and the first information reads unsuccessfully for pointing out brush machine file.
In another embodiment of the present disclosure, this device also comprises: removing module.
This removing module is configured to system file to delete from the second specified partition of flash memory;
This writing module 503 is configured to brush machine file decompression in the second specified partition of flash memory.
In another embodiment of the present disclosure, this device also comprises: the second judge module and the second display module.
This second judge module is configured to judge whether brush machine file is successfully written in the second specified partition of flash memory;
This second display module be configured to when brush machine file is unsuccessful be written in the second specified partition of flash memory time, show the second information, for pointing out, brush machine file is unsuccessful to be written in the second specified partition of flash memory this second information.
The device that disclosure embodiment provides, by brush machine file being stored into the first specified partition of flash memory, when system file is damaged, without the need to downloading brush machine instrument and brush machine file from network, by the brush machine file stored in the first specified partition, can repair system file, not only save rehabilitation cost, and reduce reparation complexity.
About the device in above-described embodiment, wherein the concrete mode of modules executable operations has been described in detail in about the embodiment of the method, will not elaborate explanation herein.
Fig. 6 is a kind of block diagram to the device 600 that system file is repaired according to an exemplary embodiment.Such as, device 600 can be mobile phone, computing machine, digital broadcast terminal, messaging devices, game console, tablet device, Medical Devices, body-building equipment, personal digital assistant etc.
With reference to Fig. 6, device 600 can comprise following one or more assembly: processing components 602, storer 604, power supply module 606, multimedia groupware 608, audio-frequency assembly 610, I/O (I/O) interface 612, sensor module 614, and communications component 616.
The integrated operation of the usual control device 600 of processing components 602, such as with display, call, data communication, camera operation and record operate the operation be associated.Processing components 602 can comprise one or more processor 620 to perform instruction, to complete all or part of step of above-mentioned method.In addition, processing components 602 can comprise one or more module, and what be convenient between processing components 602 and other assemblies is mutual.Such as, processing components 602 can comprise multi-media module, mutual with what facilitate between multimedia groupware 608 and processing components 602.
Storer 604 is configured to store various types of data to be supported in the operation of device 600.The example of these data comprises for any application program of operation on device 600 or the instruction of method, contact data, telephone book data, message, picture, video etc.Storer 604 can be realized by the volatibility of any type or non-volatile memory device or their combination, as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), ROM (read-only memory) (ROM), magnetic store, flash memory, disk or CD.
The various assemblies that power supply module 606 is device 600 provide electric power.Power supply module 606 can comprise power-supply management system, one or more power supply, and other and the assembly generating, manage and distribute electric power for device 600 and be associated.
Multimedia groupware 608 is included in the screen providing an output interface between described device 600 and user.In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input signal from user.Touch panel comprises one or more touch sensor with the gesture on sensing touch, slip and touch panel.Described touch sensor can the border of not only sensing touch or sliding action, but also detects the duration relevant to described touch or slide and pressure.In certain embodiments, multimedia groupware 608 comprises a front-facing camera and/or post-positioned pick-up head.When device 600 is in operator scheme, during as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside multi-medium data.Each front-facing camera and post-positioned pick-up head can be fixing optical lens systems or have focal length and optical zoom ability.
Audio-frequency assembly 610 is configured to export and/or input audio signal.Such as, audio-frequency assembly 610 comprises a microphone (MIC), and when device 600 is in operator scheme, during as call model, logging mode and speech recognition mode, microphone is configured to receive external audio signal.The sound signal received can be stored in storer 604 further or be sent via communications component 616.In certain embodiments, audio-frequency assembly 610 also comprises a loudspeaker, for output audio signal.
I/O interface 612 is for providing interface between processing components 602 and peripheral interface module, and above-mentioned peripheral interface module can be keyboard, some striking wheel, button etc.These buttons can include but not limited to: home button, volume button, start button and locking press button.
Sensor module 614 comprises one or more sensor, for providing the state estimation of various aspects for device 600.Such as, sensor module 614 can detect the opening/closing state of device 600, the relative positioning of assembly, such as described assembly is display and the keypad of device 600, the position of all right pick-up unit 600 of sensor module 614 or device 600 1 assemblies changes, the presence or absence that user contacts with device 600, the temperature variation of device 600 orientation or acceleration/deceleration and device 600.Sensor module 614 can comprise proximity transducer, be configured to without any physical contact time detect near the existence of object.Sensor module 614 can also comprise optical sensor, as CMOS or ccd image sensor, for using in imaging applications.In certain embodiments, this sensor module 614 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 616 is configured to the communication being convenient to wired or wireless mode between device 600 and other equipment.Device 600 can access the wireless network based on communication standard, as WiFi, 2G or 3G, or their combination.In one exemplary embodiment, communications component 616 receives from the broadcast singal of external broadcasting management system or broadcast related information via broadcast channel.In one exemplary embodiment, described communications component 616 also comprises near-field communication (NFC) module, to promote junction service.Such as, can based on radio-frequency (RF) identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology, ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 600 can be realized, for performing said method by one or more application specific integrated circuit (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD) (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components.
In the exemplary embodiment, additionally provide a kind of non-transitory computer-readable recording medium comprising instruction, such as, comprise the storer 604 of instruction, above-mentioned instruction can perform said method by the processor 620 of device 600.Such as, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc.
The device that disclosure embodiment provides, by brush machine file being stored into the first specified partition of flash memory, when system file is damaged, without the need to downloading brush machine instrument and brush machine file from network, by the brush machine file stored in the first specified partition, can repair system file, not only save rehabilitation cost, and reduce reparation complexity.
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is performed by the processor of mobile terminal, make mobile terminal can perform a kind of method of repairing system file, described method comprises:
When system file damages, obtain and repair instruction;
According to reparation instruction, from the first specified partition of flash memory, read brush machine file, brush machine file is device fabrication business is written to the first specified partition system file when production equipment;
Brush machine file is written to the second specified partition of flash memory, to repair system file;
Wherein, the first specified partition and the second specified partition are subregion separate in flash memory.
In another embodiment of the present disclosure, when system file damages, obtain and repair instruction, comprising:
When system failure, the appointing system file in running memory;
In the process of appointing system running paper, display specified option;
When the touch control operation to specified option being detected, generating and repairing instruction.
In another embodiment of the present disclosure, according to reparation instruction, from the first specified partition of flash memory, after reading brush machine file, also comprise:
Judge whether successfully read brush machine file from the first specified partition of flash memory;
If successfully read brush machine file from the first specified partition of flash memory, then perform the step of the second specified partition brush machine file being written to flash memory;
If unsuccessful reading brush machine file, then show the first information from the first specified partition of flash memory, the first information reads unsuccessfully for pointing out brush machine file.
In another embodiment of the present disclosure, before brush machine file being written to the second specified partition of flash memory, comprising:
System file is deleted from the second specified partition of flash memory;
Brush machine file is written to the second specified partition of flash memory, comprises:
By brush machine file decompression in the second specified partition of flash memory.
In another embodiment of the present disclosure, after brush machine file being written to the second specified partition of flash memory, also comprise:
Judge whether brush machine file is successfully written in the second specified partition of flash memory;
Be written in the second specified partition of flash memory if brush machine file is unsuccessful, then show the second information, for pointing out, brush machine file is unsuccessful to be written in the second specified partition of flash memory the second information.
The non-transitory computer-readable recording medium that disclosure embodiment provides, by brush machine file being stored into the first specified partition of flash memory, when system file is damaged, without the need to downloading brush machine instrument and brush machine file from network, by the brush machine file stored in the first specified partition, can repair system file, not only save rehabilitation cost, and reduce reparation complexity.
Those skilled in the art, at consideration instructions and after putting into practice disclosed herein disclosing, will easily expect other embodiment of the present disclosure.The application is intended to contain any modification of the present disclosure, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present disclosure and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Instructions and embodiment are only regarded as exemplary, and true scope of the present disclosure and spirit are pointed out by claim below.
Should be understood that, the disclosure is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.The scope of the present disclosure is only limited by appended claim.

Claims (11)

1. to the method that system file is repaired, it is characterized in that, described method comprises:
When system file damages, obtain and repair instruction;
According to described reparation instruction, from the first specified partition of flash memory, read brush machine file, described brush machine file is device fabrication business is written to described first specified partition system file when production equipment;
Described brush machine file is written to the second specified partition of described flash memory, to repair described system file;
Wherein, described first specified partition and described second specified partition are subregion separate in described flash memory.
2. method according to claim 1, is characterized in that, described when system file damages, and obtains and repairs instruction, comprising:
When system failure, the appointing system file in running memory;
In the process of described appointing system running paper, display specified option;
When the touch control operation to described specified option being detected, generate described reparation instruction.
3. method according to claim 1, is characterized in that, described according to described reparation instruction, from the first specified partition of flash memory, after reading brush machine file, also comprises:
Judge from the first specified partition of described flash memory, whether successfully read described brush machine file;
If successfully read described brush machine file from the first specified partition of described flash memory, then perform the step described brush machine file being written to the second specified partition of described flash memory;
If unsuccessful reading described brush machine file, then show the first information from the first specified partition of described flash memory, described first information reads unsuccessfully for pointing out described brush machine file.
4. method according to claim 1, is characterized in that, described described brush machine file is written to the second specified partition of described flash memory before, comprising:
Described system file is deleted from the second specified partition of described flash memory;
Described the second specified partition described brush machine file being written to described flash memory, comprising:
By described brush machine file decompression in the second specified partition of described flash memory.
5. method according to claim 1, is characterized in that, described described brush machine file is written to the second specified partition of described flash memory after, also comprise:
Judge whether described brush machine file is successfully written in the second specified partition of described flash memory;
Be written in the second specified partition of described flash memory if described brush machine file is unsuccessful, then show the second information, for pointing out, described brush machine file is unsuccessful to be written in the second specified partition of described flash memory described second information.
6. to the device that system file is repaired, it is characterized in that, described device comprises:
Acquisition module, for when system file damages, obtains and repairs instruction;
Read module, for according to described reparation instruction, from the first specified partition of flash memory, read brush machine file, described brush machine file is device fabrication business is written to described first specified partition system file when production equipment;
Writing module, for described brush machine file being written to the second specified partition of described flash memory, to repair described system file;
Wherein, described first specified partition and described second specified partition are subregion separate in described flash memory.
7. device according to claim 6, is characterized in that, described acquisition module, for when system failure, and the appointing system file in running memory; In the process of described appointing system running paper, display specified option; When the touch control operation to described specified option being detected, generate described reparation instruction.
8. device according to claim 6, is characterized in that, described device also comprises:
Whether the first judge module, successfully read described brush machine file for judging from the first specified partition of described flash memory;
Said write module, for when successfully reading described brush machine file from the first specified partition of described flash memory, is written to the second specified partition of described flash memory by described brush machine file;
First display module, for when during unsuccessful reading described brush machine file, showing the first information from the first specified partition of described flash memory, described first information reads unsuccessfully for pointing out described brush machine file.
9. device according to claim 6, is characterized in that, described device also comprises:
Removing module, for deleting described system file from the second specified partition of described flash memory;
Said write module, for by described brush machine file decompression in the second specified partition of described flash memory.
10. device according to claim 6, is characterized in that, described device also comprises:
Second judge module, for judging whether described brush machine file is successfully written in the second specified partition of described flash memory;
Second display module, for when described brush machine file is unsuccessful be written in the second specified partition of described flash memory time, show the second information, for pointing out, described brush machine file is unsuccessful to be written in the second specified partition of described flash memory described second information.
11. 1 kinds of devices repaired system file, is characterized in that, comprising:
Processor;
For the storer of the executable instruction of storage of processor;
Wherein, described processor is configured to:
When system file damages, obtain and repair instruction;
According to described reparation instruction, from the first specified partition of flash memory, read brush machine file, described brush machine file is device fabrication business is written to described first specified partition system file when production equipment;
Described brush machine file is written to the second specified partition of described flash memory, to repair described system file;
Wherein, described first specified partition and described second specified partition are subregion separate in described flash memory.
CN201510983083.5A 2015-12-24 2015-12-24 Method and device for repairing system file Pending CN105446835A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510983083.5A CN105446835A (en) 2015-12-24 2015-12-24 Method and device for repairing system file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510983083.5A CN105446835A (en) 2015-12-24 2015-12-24 Method and device for repairing system file

Publications (1)

Publication Number Publication Date
CN105446835A true CN105446835A (en) 2016-03-30

Family

ID=55557067

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510983083.5A Pending CN105446835A (en) 2015-12-24 2015-12-24 Method and device for repairing system file

Country Status (1)

Country Link
CN (1) CN105446835A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109684125A (en) * 2018-12-26 2019-04-26 上海创功通讯技术有限公司 A kind of method, apparatus, equipment and storage medium for repairing DDR physical damage
CN110267260A (en) * 2019-06-17 2019-09-20 Oppo广东移动通信有限公司 Brush machine method, apparatus, terminal and computer readable storage medium
CN113254030A (en) * 2021-04-09 2021-08-13 联合汽车电子有限公司 Vehicle-mounted microprocessor software emergency refreshing method, device, storage medium and system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101986269A (en) * 2010-10-22 2011-03-16 福建鑫诺通讯技术有限公司 Method for implementing machine refreshing through network under Android platform
CN102867044A (en) * 2012-09-05 2013-01-09 深圳市网卓信息科技有限公司 Method for synchronizing files at PC (personal computer) end by mobile terminal
CN103019775A (en) * 2012-11-28 2013-04-03 北京小米科技有限责任公司 Method, device and equipment for flashing for terminal equipment
CN103024547A (en) * 2012-12-28 2013-04-03 北京赛科世纪数码科技有限公司 Start control method, start control device and digital television set-top box
CN103729210A (en) * 2013-12-06 2014-04-16 广东欧珀移动通信有限公司 Method and device for supporting intelligent terminals of multiple sorts of modes with one flashing package
CN104391720A (en) * 2014-11-29 2015-03-04 广东好帮手电子科技股份有限公司 Rearview mirror box upgrading method based on Android system and rearview mirror box
CN104461778A (en) * 2014-11-26 2015-03-25 珠海迈越信息技术有限公司 Factory default recovery method and system and terminal
CN104636171A (en) * 2015-03-04 2015-05-20 深圳市欧珀通信软件有限公司 Upgrading method and device and mobile device
CN105045630A (en) * 2015-07-28 2015-11-11 广东欧珀移动通信有限公司 Method and device for carrying out production line reinstallation on mobile terminals and mobile terminal

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101986269A (en) * 2010-10-22 2011-03-16 福建鑫诺通讯技术有限公司 Method for implementing machine refreshing through network under Android platform
CN102867044A (en) * 2012-09-05 2013-01-09 深圳市网卓信息科技有限公司 Method for synchronizing files at PC (personal computer) end by mobile terminal
CN103019775A (en) * 2012-11-28 2013-04-03 北京小米科技有限责任公司 Method, device and equipment for flashing for terminal equipment
CN103024547A (en) * 2012-12-28 2013-04-03 北京赛科世纪数码科技有限公司 Start control method, start control device and digital television set-top box
CN103729210A (en) * 2013-12-06 2014-04-16 广东欧珀移动通信有限公司 Method and device for supporting intelligent terminals of multiple sorts of modes with one flashing package
CN104461778A (en) * 2014-11-26 2015-03-25 珠海迈越信息技术有限公司 Factory default recovery method and system and terminal
CN104391720A (en) * 2014-11-29 2015-03-04 广东好帮手电子科技股份有限公司 Rearview mirror box upgrading method based on Android system and rearview mirror box
CN104636171A (en) * 2015-03-04 2015-05-20 深圳市欧珀通信软件有限公司 Upgrading method and device and mobile device
CN105045630A (en) * 2015-07-28 2015-11-11 广东欧珀移动通信有限公司 Method and device for carrying out production line reinstallation on mobile terminals and mobile terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
小虎: ""MIUI果冻豆随你折腾"", 《电脑报 合订本》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109684125A (en) * 2018-12-26 2019-04-26 上海创功通讯技术有限公司 A kind of method, apparatus, equipment and storage medium for repairing DDR physical damage
CN110267260A (en) * 2019-06-17 2019-09-20 Oppo广东移动通信有限公司 Brush machine method, apparatus, terminal and computer readable storage medium
CN110267260B (en) * 2019-06-17 2022-03-01 Oppo广东移动通信有限公司 Flashing method, device, terminal and computer readable storage medium
CN113254030A (en) * 2021-04-09 2021-08-13 联合汽车电子有限公司 Vehicle-mounted microprocessor software emergency refreshing method, device, storage medium and system
CN113254030B (en) * 2021-04-09 2024-04-16 联合汽车电子有限公司 Method, device, storage medium and system for refreshing software of vehicle-mounted microprocessor in emergency

Similar Documents

Publication Publication Date Title
CN104536848B (en) Firmware restoration method, apparatus and terminal
CN105094903A (en) Method and device for upgrading firmware
CN104484200A (en) Method and device for updating firmware
CN104238875A (en) Application corner mark addition method and device
CN105225096A (en) The disposal route of reminder announced message, device and terminal
CN105488112A (en) Information pushing method and device
CN104375828A (en) Method and device for optimizing memory
CN104679599A (en) Application program duplicating method and device
CN105553963A (en) Control method and device of positioning services
CN104536783A (en) Method and device for setting reserved space
CN104951377A (en) Exception handling method and device for smart home terminal
CN104793969A (en) Application program unloading method and device
CN105335062A (en) Information editing operation processing method and apparatus
CN104331166A (en) Set operation revocation method, set operation revocation device and electronic equipment
CN105446768A (en) System upgrading method and apparatus
CN105094904A (en) Application program installation method and device
CN104615546A (en) File data management method and device
CN104503690A (en) Arrangement method and device for application icons
CN105487773A (en) Screen capturing method and device
CN105354017A (en) Information processing method and apparatus
CN105426210A (en) Method and device for upgrading system
CN105187671A (en) Recording method and device
CN105446835A (en) Method and device for repairing system file
CN104714826A (en) Application theme loading method and device
CN105550213A (en) Picture browsing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160330

RJ01 Rejection of invention patent application after publication