CN104239163B - Software repair and device - Google Patents

Software repair and device Download PDF

Info

Publication number
CN104239163B
CN104239163B CN201310244544.8A CN201310244544A CN104239163B CN 104239163 B CN104239163 B CN 104239163B CN 201310244544 A CN201310244544 A CN 201310244544A CN 104239163 B CN104239163 B CN 104239163B
Authority
CN
China
Prior art keywords
master routine
operating file
software
eigenwert
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310244544.8A
Other languages
Chinese (zh)
Other versions
CN104239163A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201310244544.8A priority Critical patent/CN104239163B/en
Priority to TW102145461A priority patent/TWI494755B/en
Priority to PCT/CN2014/076713 priority patent/WO2014201915A1/en
Publication of CN104239163A publication Critical patent/CN104239163A/en
Application granted granted Critical
Publication of CN104239163B publication Critical patent/CN104239163B/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/08Error detection or correction by redundancy in data representation, e.g. by using checking codes
    • G06F11/10Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's
    • G06F11/1004Adding special bits or symbols to the coded information, e.g. parity check, casting out 9's or 11's to protect a block of data words, e.g. CRC or checksum
    • 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)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a kind of software repair and device.Described method comprises: judge that whether the master routine of software is damaged according to the eigenwert of master routine, if so, then obtain the relation information of master routine and the master routine backed up in advance; The master routine of described breakage is repaired by the relation information of the master routine that backs up in advance and master routine; Run the master routine after described reparation.Described device comprises: master routine judge module, for judging that according to the eigenwert of master routine whether the master routine of described software is damaged, and if so, then announcement information acquisition module; Described data obtaining module is for obtaining the relation information of master routine and the described master routine backed up in advance; Master routine repairs module, for being repaired the master routine of described breakage by the relation information of the described master routine that backs up in advance and described master routine; Repair and run module, for running the master routine after described reparation.Adopting the present invention without the need to expending flow, departing from internet and also can carry out software reparation.

Description

Software repair and device
Technical field
The present invention relates to Computer Applied Technology, particularly relate to a kind of software repair and device.
Background technology
Thering is provided more and more abundanter function often through installing a large amount of software for user in operating system platform, bringing great convenience to user.But meanwhile, the situation that user cannot run the software of installation also happens occasionally, therefore, the software to installing is needed to repair.
Traditional software reparation is by internet access services device, obtains that corresponding installation kit realizes, need to expend flow, depart from internet and then cannot carry out the reparation of software to download.
Summary of the invention
Based on this, be necessary the technical matters then cannot carrying out software reparation for disengaging internet, provide a kind of without the need to expending flow, departing from the software repair that internet also can carry out software reparation.
In addition, there is a need to provide a kind of without the need to expending flow, departing from the software prosthetic device that internet also can carry out software reparation.
A kind of software repair, comprises the steps:
Judge that whether the master routine of described software is damaged according to the eigenwert of master routine, if so, then
Obtain the relation information of master routine and the described master routine backed up in advance;
The master routine of described breakage is repaired by the relation information of the described master routine that backs up in advance and described master routine;
Run the master routine after described reparation.
A kind of software prosthetic device, comprising:
Master routine judge module, for judging that according to the eigenwert of master routine whether the master routine of described software is damaged, if so, then announcement information acquisition module;
Described data obtaining module is for obtaining the relation information of master routine and the described master routine backed up in advance;
Master routine repairs module, for being repaired the master routine of described breakage by the relation information of the described master routine that backs up in advance and described master routine;
Repair and run module, for running the master routine after described reparation.
Above-mentioned software repair and device, judge that whether the master routine of this software is damaged according to the eigenwert of master routine, if the master routine determining this software is damaged, then obtain the relation information of master routine and the master routine backed up in advance, damaged master routine is repaired by the relation information of the master routine that backs up in advance and master routine, the master routine finally reruned after repairing, now departs from the reparation that internet also can carry out software, without the need to expending flow.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of software repair in an embodiment;
Fig. 2 is the process flow diagram of software repair in another embodiment;
Fig. 3 triggers by the operation of master routine in Fig. 2 to carry out scanned for checkout to the operating file of software, obtains the method flow diagram of abnormal operating file;
Fig. 4 is the method flow diagram repairing abnormal operating file in Fig. 2;
Fig. 5 is the structural representation of software prosthetic device in an embodiment;
Fig. 6 is the structural representation of software prosthetic device in another embodiment;
Fig. 7 is the structural representation of scanned for checkout module in Fig. 6;
Fig. 8 is the structural representation that in Fig. 6, operating file repairs module;
Fig. 9 is the structural representation of the terminal of operating software prosthetic device in an embodiment.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
As shown in Figure 1, in one embodiment, a kind of software repair, comprises the steps:
According to the eigenwert of master routine, step S110, judges that whether the master routine of this software is damaged, if so, then enters step S130, if not, then enter step S190.
In the present embodiment, during the operation operating software run by trigger software, to the eigenwert of master routine be obtained and be stored in local with master routine characteristic of correspondence value, and then by judging the eigenwert of master routine and being stored in the whether consistent with master routine characteristic of correspondence value of this locality, if not consistent, then illustrate that master routine can not run, the master routine of this software is damaged, need to repair master routine, if master routine can run, then directly run the master routine of this software.
Step S130, obtains the relation information of master routine and the master routine backed up in advance.
In the present embodiment, result in current master routine due to master routine breakage cannot run, and therefore will obtain the relation information of master routine and this master routine backed up in this locality.Wherein, the relation information of this master routine is by the directory information at master routine place when including this software installation and installation file structural information, when the directory information at this master routine place will indicate installation, where master routine is placed on, and the file that installation file structural information is then used to indicate file and the generation produced in the catalogue that this software can be correlated with at master routine is when mounted registered the need of with system interaction.
Step S150, repairs damaged master routine by the relation information of the master routine that backs up in advance and master routine.
In the present embodiment, catalogue when this software completes installation corresponding to master routine is obtained according to the relation information of master routine, the placement location of master routine during to obtain this software installation, according to this placement location, the master routine of breakage is replaced with the master routine backed up in advance acquired, now, the master routine of this software is by state when reverting to installation.
Step S170, runs the master routine after repairing.
Step S190, the master routine of operating software.
In the present embodiment, the master routine determining software is not damaged, then do not need to carry out any reparation to master routine, directly runs master routine.
In one embodiment, before above-mentioned steps S110, the method also comprises:
Backup install after the master routine that obtains and operating file, and master routine and the eigenwert corresponding to operating file and relation information.
In the present embodiment, in operating system platform during software installation, the initial all data of this software and relation information will be collected, and be stored in local to complete the backup of this software, wherein, the master routine obtained after collected data include installation and other file being different from master routine, i.e. operating file; Collected relation information is then the directory information and installation file structural information that produce after installing, and the directory tree structure that the directory information produced after installing produces after being used to indicate and installing, can know by directory tree structure the position that a certain file is placed; Installation file structural information will produce file for identifying which catalogue, and the file produced is registered the need of with system interaction.
As shown in Figure 2, in one embodiment, the method also comprises:
Step S210, is triggered by the operation of master routine and carries out scanned for checkout to the operating file of software, obtain abnormal operating file.
In the present embodiment, the operating file of scanning software, whether correct with the operating file of verification software, and then obtain there occurs abnormal operating file, the operating file of this exception may have occurred breakage, disappearance and redundancy etc.
Step S230, repairs abnormal operating file.
In the present embodiment, repaired by the data of local backup and the operating file of relation information to exception, the operating file of the exception obtained to make scanned for checkout is all repaired, achieve the local restore of software, and then ensure that the order of software is run, even if make user still cannot can repair smoothly and there occurs abnormal software by connecting Internet network.
As shown in Figure 3, in one embodiment, above-mentioned steps S210 comprises:
Step S211, the eigenwert obtaining the eigenwert corresponding to operating file and back up in this locality.
In the present embodiment, eigenwert that is that back up when the eigenwert backed up in this locality is software installation and correct operating file corresponding to operating file can be the informative abstract value of correct operating file, such as, and cryptographic hash (HASH value); Also can be the numerical value that size, date created and signature etc. to operating file are calculated by message digest algorithm, accordingly, the eigenwert backed up in this locality will be the same form with the eigenwert corresponding to operating file, namely back up the eigenwert in this locality and the eigenwert corresponding to operating file will be all the form of eigenwert, also can be all other some forms.
Step S213, judges that whether the eigenwert corresponding to operating file is consistent with the eigenwert backed up in this locality, if not, then enters step S215, if then enter step S217.
In the present embodiment, judge that whether operating file is abnormal according to eigenwert, that is, the eigenwert of operating file and the eigenwert corresponding to the correct operating file backed up in this locality are carried out consistance judgement, to obtain the eigenwert operating file not consistent with the eigenwert corresponding to the correct operating file backed up in this locality, this operating file is abnormal operating file.
Step S215, location obtains abnormal operating file.
In the present embodiment, in several operating files, orient abnormal operating file, directly the operating file of exception is repaired so that follow-up.
Step S217, runs this operating file.
In the present embodiment, if operating file is without exception, directly runs this operating file, do not need to carry out any reparation.
As shown in Figure 4, in one embodiment, above-mentioned steps S230 comprises:
Step S231, obtains the relation information at abnormal operating file place.
In the present embodiment, after obtaining abnormal operating file, need the software carrying out repairing the operating file place that can sequentially run to operating file.Corresponding relation information is obtained according to the catalogue at the operating file place of exception.
Step S233, searches the operating file obtaining local backup according to relation information.
In the present embodiment, because the operating file of exception mostly there occurs the situations such as breakage, disappearance or redundancy, therefore, when abnormal operating file and software installation, correct operating file is in same directory, namely abnormal operating file and correct operating file are positioned over same position, can search the operating file obtaining the local backup corresponding with the operating file of exception according to relation information in this locality.
Step S235, replacing abnormal operating file is search the operating file obtained.
In the present embodiment, obtain abnormal operating file position according to relation information, the operating file of exception is replaced with the operating file position according to exception the operating file searched and obtain, and then complete the reparation that the operating file of exception is carried out.
In addition, if monitor operating file disappearance, then obtain the relation information at the operating file place of disappearance, and then the operating file of backup is obtained according to the catalogue in relation information, carry out reduction by the operating file of operating file to disappearance of backup to recover, even if to make the situation that there occurs operating file disappearance in software also can carry out local recovery smoothly, ensure that the trouble-free operation of software.
In above-mentioned software repair, monitor to know to software and there occurs abnormal master routine or operating file, abnormal operating file is identified according to the eigenwert of local backup, pass through carried out local backup to repair the program of exception or operating file, do not need access internet can accurately identify abnormal master routine or operating file, and then can be repaired the software of self breakage by local backup.
As shown in Figure 5, in one embodiment, a kind of software prosthetic device, comprises master routine judge module 110, data obtaining module 130, master routine repairs module 150, reparation runs module 170 and master routine runs module 190.
Master routine judge module 110, for judging that according to the eigenwert of master routine whether the master routine of software is damaged, if so, then announcement information acquisition module 130, if not, then notifies that master routine runs module 190.
In the present embodiment, during the operation operating software run by trigger software, master routine judge module 110 will obtain the eigenwert of master routine and be stored in local with master routine characteristic of correspondence value, and then by judging the eigenwert of master routine and being stored in the whether consistent with master routine characteristic of correspondence value of this locality, if not consistent, then illustrate that master routine can not run, the master routine of this software is damaged, need to repair master routine, if master routine can run, then notify that master routine runs the master routine that module 190 directly runs this software.
Data obtaining module 130, for obtaining the relation information of master routine and the master routine backed up in advance.
In the present embodiment, result in current master routine due to master routine breakage cannot run, and therefore data obtaining module 130 will obtain the relation information of master routine and this master routine backed up in this locality.Wherein, the relation information of this master routine is by the directory information at master routine place when including this software installation and installation file structural information, when the directory information at this master routine place will indicate installation, where master routine is placed on, and the file that installation file structural information is then used to indicate file and the generation produced in the catalogue that this software can be correlated with at master routine is when mounted registered the need of with system interaction.
Master routine repairs module 150, and the relation information for the master routine by backing up in advance and master routine repairs damaged master routine.
In the present embodiment, master routine repairs the catalogue that module 150 obtains when this software completes installation corresponding to master routine according to the relation information of master routine, the placement location of master routine during to obtain this software installation, according to this placement location, the master routine of breakage is replaced with the master routine backed up in advance acquired, now, the master routine of this software is by state when reverting to installation.
Repair and run module 170, for running the master routine after reparation.
Master routine runs module 190, not damaged to the master routine of software for the operation judges run by trigger software, then the master routine of operating software.
In the present embodiment, the master routine determining software is not damaged, then do not need to carry out any reparation to master routine, and master routine runs module 190 and directly runs master routine.
In one embodiment, above-mentioned software prosthetic device also comprises backup module 210, and this backup module 210 is for the master routine that obtains after backing up installation and operating file, and master routine and the eigenwert corresponding to operating file and relation information.
In the present embodiment, in operating system platform during software installation, backup module 210 will collect the initial all data of this software and relation information, and be stored in local to complete the backup of this software, wherein, the master routine that data collected by backup module 210 obtain after including installation and other file being different from master routine, i.e. operating file; Relation information collected by backup module 210 is then the directory information and installation file structural information that produce after installing, the directory tree structure that the directory information produced after installing produces after being used to indicate and installing, can know by directory tree structure the position that a certain file is placed; Installation file structural information will produce file for identifying which catalogue, and the file produced is registered the need of with system interaction.
As shown in Figure 6, in one embodiment, said apparatus also comprises scanned for checkout module 310 and operating file reparation module 330.
Scanned for checkout module 310, during for being triggered the operating file to software by the operation of master routine, line scanning verification, obtains abnormal operating file.
In the present embodiment, the operating file of scanned for checkout module 310 scanning software, whether correct with the operating file of verification software, and then obtain there occurs abnormal operating file, the operating file of this exception may have occurred breakage, disappearance and redundancy etc.
Operating file repairs module 330, for repairing abnormal operating file.
In the present embodiment, operating file is repaired module 330 and is repaired by the data of local backup and the operating file of relation information to exception, the operating file of the exception obtained to make scanned for checkout is all repaired, achieve the local restore of software, and then ensure that the order of software is run, even if make user still cannot can repair smoothly and there occurs abnormal software by connecting Internet network.
As shown in Figure 7, in one embodiment, above-mentioned scanned for checkout module 310 comprises feature acquiring unit 311, consistance judging unit 313, document alignment unit 315 and running paper unit 317.
Feature acquiring unit 311, for the eigenwert obtained corresponding to operating file and the eigenwert backed up in this locality.
In the present embodiment, eigenwert that is that back up when the eigenwert backed up in this locality is software installation and correct operating file corresponding to operating file can be the informative abstract value of correct operating file, such as, and cryptographic hash (HASH value); Also can be the numerical value that size, date created and signature etc. to operating file are calculated by message digest algorithm, accordingly, the eigenwert backed up in this locality will be the same form with the eigenwert corresponding to operating file, namely back up the eigenwert in this locality and the eigenwert corresponding to operating file will be all the form of eigenwert, also can be all other some forms.
Consistance judging unit 313, whether consistent with the eigenwert backed up in this locality for judging the eigenwert corresponding to operating file, if not, then circular document positioning unit 315, if so, then circular document running unit 317.
In the present embodiment, according to eigenwert, consistance judging unit 313 judges that whether operating file is abnormal, that is, the eigenwert of operating file and the eigenwert corresponding to the correct operating file backed up in this locality are carried out consistance judgement, to obtain the eigenwert operating file not consistent with the eigenwert corresponding to the correct operating file backed up in this locality, this operating file is abnormal operating file.
Document alignment unit 315, obtains abnormal operating file for locating.
In the present embodiment, document alignment unit 315 orients abnormal operating file in several operating files, directly repairs the operating file of exception so that follow-up.
Running paper unit 317, for running this operating file.
In the present embodiment, if operating file is without exception, running paper unit 317 directly runs this operating file, does not need to carry out any reparation.
As shown in Figure 8, in one embodiment, above-mentioned operating file reparation module 330 comprises relation information acquiring unit 331, searches unit 333 and replacement unit 335.
Relation information acquiring unit 331, for obtaining the relation information at abnormal operating file place.
In the present embodiment, after obtaining abnormal operating file, need the software carrying out repairing the operating file place that can sequentially run to operating file.Relation information acquiring unit 331 obtains corresponding relation information according to the catalogue at the operating file place of exception.
Search unit 333, for searching the operating file obtaining local backup according to relation information.
In the present embodiment, because the operating file of exception mostly there occurs the situations such as breakage, disappearance or redundancy, therefore, when abnormal operating file and software installation, correct operating file is in same directory, namely abnormal operating file and correct operating file are positioned over same position, search unit 333 and can search the operating file obtaining the local backup corresponding with the operating file of exception in this locality according to relation information.
Replacement unit 335 is search the operating file obtained for replacing abnormal operating file.
In the present embodiment, replacement unit 335 obtains abnormal operating file position according to relation information, the operating file of exception is replaced with the operating file position according to exception the operating file searched and obtain, and then complete the reparation that the operating file of exception is carried out.
In addition, if replacement unit 335 monitors operating file disappearance, then obtain the relation information at the operating file place of disappearance, and then the operating file of backup is obtained according to the catalogue in relation information, carry out reduction by the operating file of operating file to disappearance of backup to recover, even if to make the situation that there occurs operating file disappearance in software also can carry out local recovery smoothly, ensure that the trouble-free operation of software.
In above-mentioned software prosthetic device, monitor to know to software and there occurs abnormal master routine or operating file, abnormal operating file is identified according to the eigenwert of local backup, pass through carried out local backup to repair the program of exception or operating file, do not need access internet can accurately identify abnormal master routine or operating file, and then can be repaired the software of self breakage by local backup.
Above-mentioned software repair and device, judge that whether the master routine of this software is damaged according to the eigenwert of master routine, if the master routine determining this software is damaged, then obtain the relation information of master routine and the master routine backed up in advance, damaged master routine is repaired by the relation information of the master routine that backs up in advance and master routine, the master routine finally reruned after repairing, now departs from the reparation that internet also can carry out software, without the need to expending flow.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random store-memory body (RandomAccessMemory, RAM) etc.
The embodiment of the present invention additionally provides the terminal of another kind of operating software prosthetic device, and as shown in Figure 9, for convenience of explanation, illustrate only the part relevant to the embodiment of the present invention, concrete ins and outs do not disclose, and please refer to embodiment of the present invention method part.This terminal can for comprising mobile phone, panel computer, PDA (PersonalDigitalAssistant, personal digital assistant), POS (PointofSales, point-of-sale terminal), the terminal device arbitrarily such as vehicle-mounted computer, take terminal as mobile phone be example:
Shown in Fig. 9 is the block diagram of the part-structure of the mobile phone relevant to the terminal that the embodiment of the present invention provides.With reference to figure 9, mobile phone comprises: radio frequency (RadioFrequency, RF) parts such as circuit 910, storer 920, input block 930, display unit 940, sensor 950, voicefrequency circuit 960, Wireless Fidelity (wirelessfidelity, WiFi) module 970, processor 980 and power supply 990.It will be understood by those skilled in the art that the handset structure shown in Fig. 9 does not form the restriction to mobile phone, the parts more more or less than diagram can be comprised, or combine some parts, or different parts are arranged.
Concrete introduction is carried out below in conjunction with Fig. 9 each component parts to mobile phone:
RF circuit 910 can be used for receiving and sending messages or in communication process, the reception of signal and transmission, especially, after being received by the downlink information of base station, process to processor 980; In addition, the up data of design are sent to base station.Usually, RF circuit includes but not limited to antenna, at least one amplifier, transceiver, coupling mechanism, low noise amplifier (LowNoiseAmplifier, LNA), diplexer etc.In addition, RF circuit 90 can also by radio communication and network and other devices communicatings.Above-mentioned radio communication can use arbitrary communication standard or agreement, include but not limited to global system for mobile communications (GlobalSystemofMobilecommunication, GSM), general packet radio service (GeneralPacketRadioService, GPRS), CDMA (CodeDivisionMultipleAccess, CDMA), Wideband Code Division Multiple Access (WCDMA) (WidebandCodeDivisionMultipleAccess, WCDMA), Long Term Evolution (LongTermEvolution, LTE)), Email, Short Message Service (ShortMessagingService, SMS) etc.
Storer 920 can be used for storing software program and module, and processor 980 is stored in software program and the module of storer 920 by running, thus performs various function application and the data processing of mobile phone.Storer 920 mainly can comprise storage program district and store data field, and wherein, storage program district can store operating system, application program (such as sound-playing function, image player function etc.) etc. needed at least one function; Store data field and can store the data (such as voice data, phone directory etc.) etc. created according to the use of mobile phone.In addition, storer 920 can comprise high-speed random access memory, can also comprise nonvolatile memory, such as at least one disk memory, flush memory device or other volatile solid-state parts.
Input block 930 can be used for the numeral or the character information that receive input, and generation arranges with the user of mobile phone 900 and function controls the input of relevant key signals.Particularly, input block 930 can comprise contact panel 931 and other input equipments 932.Contact panel 931, also referred to as touch-screen, user can be collected or neighbouring touch operation (such as user uses any applicable object or the operations of annex on contact panel 931 or near contact panel 931 such as finger, stylus) thereon, and drive corresponding coupling arrangement according to the formula preset.Optionally, contact panel 931 can comprise touch detecting apparatus and touch controller two parts.Wherein, touch detecting apparatus detects the touch orientation of user, and detects the signal that touch operation brings, and sends signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and converts it to contact coordinate, then gives processor 980, and the order that energy receiving processor 980 is sent also is performed.In addition, the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave can be adopted to realize contact panel 931.Except contact panel 931, input block 930 can also comprise other input equipments 932.Particularly, other input equipments 932 can include but not limited to one or more in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, control lever etc.
Display unit 940 can be used for the various menus showing information or the information being supplied to user and the mobile phone inputted by user.Display unit 940 can comprise display panel 941, optionally, the form such as liquid crystal display (LiquidCrystalDisplay, LCD), Organic Light Emitting Diode (OrganicLight-EmittingDiode, OLED) can be adopted to configure display panel 941.Further, contact panel 931 can cover display panel 941, when contact panel 931 detects thereon or after neighbouring touch operation, send processor 980 to determine the type of touch event, on display panel 941, provide corresponding vision to export with preprocessor 980 according to the type of touch event.Although in fig .9, contact panel 931 and display panel 941 be as two independently parts to realize input and the input function of mobile phone, but in certain embodiments, can by integrated to contact panel 931 and display panel 941 and realize the input and output function of mobile phone.
Mobile phone 900 also can comprise at least one sensor 950, such as optical sensor, motion sensor and other sensors.Particularly, optical sensor can comprise ambient light sensor and proximity transducer, and wherein, ambient light sensor the light and shade of environmentally light can regulate the brightness of display panel 941, proximity transducer when mobile phone moves in one's ear, can cut out display panel 941 and/or backlight.As the one of motion sensor, accelerometer sensor can detect the size of all directions (are generally three axles) acceleration, size and the direction of gravity can be detected time static, can be used for identifying the application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating) of mobile phone attitude, Vibration identification correlation function (such as passometer, knock) etc.; As for mobile phone also other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared ray sensor, do not repeat them here.
Voicefrequency circuit 960, loudspeaker 961, microphone 962 can provide the audio interface between user and mobile phone.Voicefrequency circuit 960 can by receive voice data conversion after electric signal, be transferred to loudspeaker 961, by loudspeaker 961 be converted to voice signal export; On the other hand, the voice signal of collection is converted to electric signal by microphone 962, voice data is converted to after being received by voicefrequency circuit 960, after again voice data output processor 980 being processed, through RF circuit 910 to send to such as another mobile phone, or export voice data to storer 920 to process further.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user to send and receive e-mail by WiFi module 970, browse webpage and access streaming video etc., and its broadband internet wireless for user provides is accessed.Although Fig. 9 shows WiFi module 970, be understandable that, it does not belong to must forming of mobile phone 900, can omit in the scope of essence not changing invention as required completely.
Processor 980 is control centers of mobile phone, utilize the various piece of various interface and the whole mobile phone of connection, software program in storer 920 and/or module is stored in by running or performing, and call the data be stored in storer 920, perform various function and the process data of mobile phone, thus integral monitoring is carried out to mobile phone.Optionally, processor 980 can comprise one or more processing unit; Preferably, processor 980 accessible site application processor and modem processor, wherein, application processor mainly processes operating system, user interface and application program etc., and modem processor mainly processes radio communication.Be understandable that, above-mentioned modem processor also can not be integrated in processor 980.
Mobile phone 900 also comprises the power supply 990 (such as battery) of powering to all parts, preferably, power supply can be connected with processor 980 logic by power-supply management system, thus realizes the functions such as management charging, electric discharge and power managed by power-supply management system.
Although not shown, mobile phone 900 can also comprise camera, bluetooth module etc., does not repeat them here.
In embodiments of the present invention, the processor 980 included by this terminal also has following functions:
Judge that whether the master routine of software is damaged according to the eigenwert of master routine, if so, then
Obtain the relation information of master routine and the master routine backed up in advance;
Damaged master routine is repaired by the relation information of the master routine that backs up in advance and master routine;
Run the master routine after repairing.
Further, the operation judges run by trigger software is not damaged to the master routine of software, then the master routine of operating software.
Further, also comprise:
Triggered by the operation of master routine and scanned for checkout is carried out to the operating file of software, obtain abnormal operating file;
Repair abnormal operating file.
Further, triggered by the operation of master routine and carry out scanned for checkout to the operating file of software, the step obtaining abnormal operating file comprises:
The eigenwert obtaining the eigenwert corresponding to operating file and back up in this locality;
Judge that whether the eigenwert corresponding to operating file is consistent with the eigenwert backed up in this locality, if not, then
Location obtains abnormal operating file.
Further, the step of repairing abnormal operating file comprises:
Obtain the relation information at abnormal operating file place;
The operating file obtaining local backup is searched according to relation information;
Replacing abnormal operating file is search the operating file obtained.
Further, carried out the whether damaged step of the master routine of the operation judges software run by trigger software before, also comprise:
Backup install after the master routine that obtains and operating file, and master routine and the eigenwert corresponding to operating file and relation information.
The above embodiment only have expressed several embodiment of the present invention, and it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.

Claims (8)

1. a software repair, comprises the steps:
Judge that whether the master routine of described software is damaged according to the eigenwert of master routine, if so, then
Obtain the relation information of master routine and the described master routine backed up in advance;
The master routine of described breakage is repaired by the relation information of the described master routine that backs up in advance and described master routine;
Run the master routine after described reparation;
Triggered by the operation of described master routine and scanned for checkout is carried out to the operating file of described software, obtain abnormal operating file;
Repair described abnormal operating file, concrete, obtain the relation information at described abnormal operating file place; The operating file obtaining local backup is searched according to described relation information; Replace described abnormal operating file for described in search the operating file obtained.
2. method according to claim 1, is characterized in that, described method also comprises:
The master routine determining described software according to the eigenwert of master routine is not damaged, then run the master routine of described software.
3. method according to claim 1, is characterized in that, the described operation by described master routine triggers carries out scanned for checkout to the operating file of described software, and the step obtaining abnormal operating file comprises:
The eigenwert obtaining the eigenwert corresponding to described operating file and back up in this locality;
Judge that whether the eigenwert corresponding to described operating file is consistent with the eigenwert backed up in this locality, if not, then
Location obtains described abnormal operating file.
4. method according to claim 1, is characterized in that, before the described eigenwert according to master routine judges the step whether master routine of described software is damaged, described method also comprises:
Backup install after the master routine that obtains and operating file, and described master routine and the eigenwert corresponding to operating file and relation information.
5. a software prosthetic device, is characterized in that, comprising:
Master routine judge module, for judging that according to the eigenwert of master routine whether the master routine of described software is damaged, if so, then announcement information acquisition module;
Described data obtaining module is for obtaining the relation information of master routine and the described master routine backed up in advance;
Master routine repairs module, for being repaired the master routine of described breakage by the relation information of the described master routine that backs up in advance and described master routine;
Repair and run module, for running the master routine after described reparation;
Scanned for checkout module, being carried out scanned for checkout for being triggered by the operation of described master routine to the operating file of described software, obtaining abnormal operating file;
Operating file repairs module, for repairing described abnormal operating file;
Described operating file is repaired module and is comprised:
Relation information acquiring unit, for obtaining the relation information at described abnormal operating file place;
Search unit, for searching the operating file obtaining local backup according to described relation information;
Replacement unit, for replace described abnormal operating file for described in search the operating file obtained.
6. device according to claim 5, is characterized in that, described device also comprises:
Master routine runs module, not damaged for the master routine determining described software according to the eigenwert of master routine, then run the master routine of described software.
7. device according to claim 5, is characterized in that, described scanned for checkout module comprises:
Feature acquiring unit, for the eigenwert obtained corresponding to described operating file and the eigenwert backed up in this locality;
Consistance judging unit, whether consistent with the eigenwert backed up in this locality for judging the eigenwert corresponding to described operating file, if not, then circular document positioning unit;
Described document alignment unit obtains described abnormal operating file for locating.
8. device according to claim 5, is characterized in that, described device also comprises:
Backup module, for the master routine that obtains after backing up installation and operating file, and described master routine and the eigenwert corresponding to operating file and relation information.
CN201310244544.8A 2013-06-19 2013-06-19 Software repair and device Active CN104239163B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201310244544.8A CN104239163B (en) 2013-06-19 2013-06-19 Software repair and device
TW102145461A TWI494755B (en) 2013-06-19 2013-12-10 Method,device and computer readable storage component for software repair
PCT/CN2014/076713 WO2014201915A1 (en) 2013-06-19 2014-05-04 Software repair method and apparatus, and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310244544.8A CN104239163B (en) 2013-06-19 2013-06-19 Software repair and device

Publications (2)

Publication Number Publication Date
CN104239163A CN104239163A (en) 2014-12-24
CN104239163B true CN104239163B (en) 2016-04-13

Family

ID=52103922

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310244544.8A Active CN104239163B (en) 2013-06-19 2013-06-19 Software repair and device

Country Status (3)

Country Link
CN (1) CN104239163B (en)
TW (1) TWI494755B (en)
WO (1) WO2014201915A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105183508B (en) * 2015-08-26 2019-02-15 北京元心科技有限公司 The monitoring method and intelligent terminal of application program in containment system
CN107276789B (en) * 2017-05-19 2020-12-01 太仓鸿羽智能科技有限公司 Log uploading method and device and computer readable storage medium
CN107608707A (en) * 2017-07-31 2018-01-19 努比亚技术有限公司 Application detection method, terminal and readable storage medium storing program for executing with hot repair function
CN108509291B (en) * 2018-02-27 2019-09-10 Oppo广东移动通信有限公司 Application program is operating abnormally restorative procedure and system and mobile terminal
CN110825396B (en) * 2019-10-31 2023-07-25 Oppo(重庆)智能科技有限公司 Exception handling method and related equipment
CN111679938A (en) * 2020-06-08 2020-09-18 深圳市豪恩汽车电子装备股份有限公司 Motor vehicle software operation device and method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1371050A (en) * 2001-02-20 2002-09-25 英业达股份有限公司 Method of generating application program with self test and self repair function
US7472420B1 (en) * 2008-04-23 2008-12-30 Kaspersky Lab, Zao Method and system for detection of previously unknown malware components
CN102402470A (en) * 2011-12-19 2012-04-04 青岛海信网络科技股份有限公司 Method and device for automatically correcting error of program of flash memory and repairing program of flash memory
CN103034560A (en) * 2011-09-29 2013-04-10 腾讯科技(深圳)有限公司 Method, device and system of restoring applied software

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6067410A (en) * 1996-02-09 2000-05-23 Symantec Corporation Emulation repair system
JP2001297021A (en) * 2000-04-12 2001-10-26 Nec Software Hokkaido Ltd Data restoring method and recording medium having program for implementing data restoring method recorded thereon
CN1277211C (en) * 2003-05-06 2006-09-27 联想(北京)有限公司 Repair method for computer operation system
US8255998B2 (en) * 2005-08-16 2012-08-28 Emc Corporation Information protection method and system
TW200723018A (en) * 2005-12-14 2007-06-16 Inventec Corp Image file data pre-installation system and method
TW200725406A (en) * 2005-12-27 2007-07-01 Inventec Besta Co Ltd Booting program backup system and method thereof
CN101425028B (en) * 2007-10-31 2012-01-25 华硕电脑股份有限公司 Computer system and method for repairing firmware of the computer system
CN101950263A (en) * 2010-09-27 2011-01-19 深圳市江波龙电子有限公司 Method and system for repairing storage equipment as well as storage equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1371050A (en) * 2001-02-20 2002-09-25 英业达股份有限公司 Method of generating application program with self test and self repair function
US7472420B1 (en) * 2008-04-23 2008-12-30 Kaspersky Lab, Zao Method and system for detection of previously unknown malware components
CN103034560A (en) * 2011-09-29 2013-04-10 腾讯科技(深圳)有限公司 Method, device and system of restoring applied software
CN102402470A (en) * 2011-12-19 2012-04-04 青岛海信网络科技股份有限公司 Method and device for automatically correcting error of program of flash memory and repairing program of flash memory

Also Published As

Publication number Publication date
WO2014201915A1 (en) 2014-12-24
TW201500916A (en) 2015-01-01
CN104239163A (en) 2014-12-24
TWI494755B (en) 2015-08-01

Similar Documents

Publication Publication Date Title
CN104239163B (en) Software repair and device
CN104252379B (en) Picture thumbnail display packing and device
CN103530040B (en) Object element moving method, device and electronic equipment
CN103677899B (en) The method and apparatus of application program is installed
CN106066686B (en) A kind of information processing method and terminal device
CN104298666B (en) Webpage sharing method and device
CN104965721A (en) Method and apparatus for updating an application
CN104516812A (en) Method and device for testing software
CN104636047A (en) Method and device for operating objects in list and touch screen terminal
CN105278937A (en) Method and device for displaying pop-up box messages
CN104135728B (en) Method for connecting network and device
CN103473163A (en) Application program detection method and device
CN104978176A (en) Application program interface calling method and device
CN104572430A (en) Method, device and system for testing terminal application interface
CN108572908B (en) Information feedback method and device
CN106775827A (en) A kind of application program update method and device, computer equipment
CN105260087A (en) Information display method and terminal
CN103310009A (en) Method, device and terminal for updating webpage data
CN103366104A (en) Method and device for controlling accessing of application
CN104133752B (en) The method for supervising of operating platform and device
CN104850274A (en) Method and device for realizing key function by infrared induction
CN104750730A (en) Display method and display device implemented by browsers
CN105278925A (en) Method and device for refuse cleaning of uninstalled software
CN104123210A (en) Method, device and system for testing performance of browser
US20160314036A1 (en) Method and Apparatus for Repairing Dynamic Link Library File

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant