CN102508734B - Operating system recovery method and intelligent equipment - Google Patents

Operating system recovery method and intelligent equipment Download PDF

Info

Publication number
CN102508734B
CN102508734B CN201110297161.8A CN201110297161A CN102508734B CN 102508734 B CN102508734 B CN 102508734B CN 201110297161 A CN201110297161 A CN 201110297161A CN 102508734 B CN102508734 B CN 102508734B
Authority
CN
China
Prior art keywords
operating system
field value
attribute field
preset attribute
smart machine
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.)
Expired - Fee Related
Application number
CN201110297161.8A
Other languages
Chinese (zh)
Other versions
CN102508734A (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.)
TCL Corp
Original Assignee
TCL Corp
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 TCL Corp filed Critical TCL Corp
Priority to CN201110297161.8A priority Critical patent/CN102508734B/en
Publication of CN102508734A publication Critical patent/CN102508734A/en
Application granted granted Critical
Publication of CN102508734B publication Critical patent/CN102508734B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention is applicable to the technical field of computers, and provides an operating system recovery method and intelligent equipment. The method includes steps: detecting a preset attribute field value; judging whether the current operating system is abnormal or not according to the preset attribute field value; restarting the current system to enter a recovery mode when the current operating system is abnormal; and sending system recovery requests to a server in the recovery mode to enable the server to return corresponding operating system recovery files according to the system recovery requests, and recovering the operating system according to the returned operating system recovery files. The intelligent equipment can automatically detect abnormal conditions during starting and operation and recover the system according to the operating system recovery files acquired from the server, no standby system is needed and a user does not need to involve in the recovery process, cost of door-to-door service is reduced for maintenance personnel, and intelligent abnormal detection and recovery of the system are realized.

Description

Operating system recovery method and smart machine
Technical field
The invention belongs to communication technical field, particularly relate to a kind of operating system recovery method and smart machine.
Background technology
Along with the development of computer technology, various operating system continues to bring out, Android (Android) operating system is due to its intercommunity and open feature, the service of a lot of high-quality experience is brought to user, such as, under Android operation system platform, can develop and use the application program of various characteristic, therefore, the smart machine (smart mobile phone, TV) of android system is adopted to get more and more at present.
Android smart machine allows user to install Android application voluntarily, and the application of intelligent terminal of can upgrading and system, but along with installing the increase of application, the possibility of operating system exception is caused also to improve, as the phenomenon that start cannot start or run-time exception is restarted, occur needing user to have standby system just may recover extremely in operating system, often user does not have the custom of standby system, even if or having backed up operating system, user is making the also more complicated of the operation in rejuvenation.
Therefore, prior art is carried out in processing procedure the operating system of Android smart machine is abnormal, if user selects self backup operation system, then due to the complexity of rejuvenation, Consumer's Experience can be made poor.
Summary of the invention
The object of the embodiment of the present invention is to provide a kind of operating system recovery method, being intended to solve prior art carries out in processing procedure to the operating system of Android smart machine is abnormal, if user selects self backup operation system, then due to the complexity of rejuvenation, the technical matters that Consumer's Experience is poor can be made.
The embodiment of the present invention is achieved in that a kind of operating system recovery method, and described method comprises the steps:
Detect preset attribute field value, judge whether current operation system occurs exception according to described preset attribute field value;
When judging that described current operation system occurs abnormal, then restart current system and enter reforestation practices;
Under described reforestation practices, to server transmitting system recovery request, to make server return corresponding operating system recovery file according to described System recover request, and according to the described operating system recovery file returned, Recovery processing is carried out to operating system.
Further, according to described preset attribute field value, described detection preset attribute field value, judges whether current operation system occurs that abnormal step specifically comprises:
When the timing time preset arrives, judge whether operating system starts complete;
It is complete if judge, described operating system is not activated, then detect preset attribute field value, judges described preset attribute field value further whether in specialized range;
When judging that described preset attribute field value is in specialized range, then add a process to described preset attribute field value, returning execution described when the timing time arrival preset, judging whether operating system starts complete step;
When judging that described preset attribute field value is not in specialized range, then judge that described operating system occurs abnormal.
Further, according to described preset attribute field value, described detection preset attribute field value, judges whether current operation system occurs that abnormal step is specially:
Release time under monitoring current operation system after system service extremely;
When being greater than default reboot time when recovered, then detect preset attribute field value, judge described preset attribute field value further whether in specialized range;
When judging that described preset attribute field value is in specialized range, then add a process to described preset attribute field value, return perform system service under monitoring current operation system abnormal after the step of release time;
When judging that described preset attribute field value is not in specialized range, then judge that described operating system occurs abnormal.
Further, described to server transmitting system recovery request, to make server return corresponding operating system recovery file according to described System recover request, and according to the described operating system recovery file returned, the step that operating system carries out Recovery processing is specially:
To the information of server transmitting system recovery request and current smart machine, with the download address making described server end return corresponding operating system recovery file;
Receive the download address of the described operating system recovery file of described server feedback;
According to the download address of described operating system recovery file, download corresponding operating system recovery file from described server;
According to the operating system recovery file of described download, Recovery processing is carried out to operating system.
Further, described operating system recovery file is the file recovered the wrong file in operating system, or to the file that whole operating system is recovered.
Further, the packets of information of described current smart machine is containing the operating system version information of smart machine and the unit type information of smart machine.
The embodiment of the present invention additionally provides another kind of smart machine, and described smart machine comprises:
According to described preset attribute field value, abnormal deciding means, for detecting preset attribute field value, judges whether current operation system occurs exception;
Restart unit, for when judging that described current operation system occurs abnormal, then restart current system and enter reforestation practices;
Recovery unit, for under described reforestation practices, to server transmitting system recovery request, to make server return corresponding operating system recovery file according to described System recover request, and according to the described operating system recovery file returned, Recovery processing is carried out to operating system.
Further, described abnormal deciding means comprises:
First judge module, for when the timing time preset arrives, judges whether operating system starts complete;
Second judge module, if it is complete to judge that described operating system is not activated for the first judge module, then detect preset attribute field value, judge described preset attribute field value whether in specialized range further, when judging that described preset attribute field value is in specialized range, then add a process to described preset attribute field value, and start the first judge module, when judging that described preset attribute field value is not in specialized range, then judge that described operating system occurs abnormal.
Further, described abnormal deciding means also comprises:
First monitoring modular, if judge that described os starting is complete for the first judge module, then the release time under monitoring current operation system after system service extremely;
3rd judge module, for being greater than default reboot time release time when the first monitoring module monitors, then detect preset attribute field value, judge described preset attribute field value whether in specialized range further, when judging that described preset attribute field value is in specialized range, then a process is added to described preset attribute field value, trigger the first monitoring modular perform system service under monitoring current operation system abnormal after the step of release time, when judging that described preset attribute field value is not in specialized range, then judge that described operating system occurs abnormal.
Further, described abnormal deciding means comprises:
Second monitoring modular, for monitor system service under current operation system abnormal after release time;
4th judge module, for when the second monitoring module monitors is greater than default reboot time release time, then detect preset attribute field value, judge described preset attribute field value whether in specialized range further, when judging that described preset attribute field value is in specialized range, then a process is added to described preset attribute field value, trigger the second monitoring modular perform system service under monitoring current operation system abnormal after the step of release time, when judging that described preset attribute field value is not in specialized range, then judge that described operating system occurs abnormal.
Further, described recovery unit comprises:
Sending module, for the information to server transmitting system recovery request and current smart machine, with the download address making described server end return corresponding operating system recovery file;
Receiver module, for receiving the download address of the described operating system recovery file of described server feedback;
Download module, for the download address according to described operating system recovery file, downloads corresponding operating system recovery file from described server;
Recover module, for the operating system recovery file according to described download, Recovery processing is carried out to operating system.
In embodiments of the present invention, according to preset attribute field value, smart machine can judge whether current operation system occurs exception, such as, start and abnormal conditions when running, when detecting extremely, then to server transmitting system recovery request, corresponding operating system recovery file is returned according to System recover request to make server, and according to the operating system recovery file returned, Recovery processing is carried out to operating system, thus also rejuvenation is participated in without the need to user without the need to user ID system, decrease maintenance personal to make house calls cost, achieve the intellectuality of system anomaly detection and recovery.
Accompanying drawing explanation
Fig. 1 is the realization flow figure of the operating system recovery method that the embodiment of the present invention one provides;
Fig. 2 is the realization flow figure of the operating system recovery method that the embodiment of the present invention two provides;
Fig. 3 is the realization flow figure of the operating system recovery method that the embodiment of the present invention three provides;
Fig. 4 is the realization flow figure of the operating system recovery method that the embodiment of the present invention four provides;
Fig. 5 is the structural drawing of the smart machine that the embodiment of the present invention five provides;
Fig. 6 is the structural drawing of the smart machine that the embodiment of the present invention six provides;
Fig. 7 is the structural drawing of the smart machine that the embodiment of the present invention seven provides.
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.
Below in conjunction with specific embodiment, realization of the present invention is described in detail:
embodiment one
The application scenarios of the embodiment of the present invention can be by client end/server end (C/S, Client/Server) network system formed, wherein, client can be the smart machine based on Android operation system, such as smart mobile phone, intelligent television etc.Be described below by way of the rejuvenation of specific embodiment to recovery system, Fig. 1 shows the realization flow figure of the operating system recovery method that the embodiment of the present invention one provides, and details are as follows:
In step S101, smart machine detects preset attribute field value, judges whether current operation system occurs exception according to preset attribute field value.
When Android system initialization, distribution shared section key is carried out memory attribute by Android, and attribute is that the overall situation is visible in the entire system, and each attribute has a title and value, is used for register system to arrange or the information of message exchange between process.
In Android property system, an attribute field property.BootComplete is increased in the embodiment of the present invention, whether this attribute field value reflects operating system abnormal, the embodiment of the present invention detects the attribute field value of this property.BootComplete, judges whether current operating system occurs exception according to this attribute field value.If so, then perform step S102, otherwise again detect default attribute field value at interval Preset Time or exit operating system recovery process.
In step s 102, when judging that current operation system occurs abnormal, then restart current system and enter reforestation practices.
In embodiments of the present invention, the reforestation practices that current operation system enters when occurring abnormal can be the mini system existed that walks abreast with main system, be stored in different partition holdings, reforestation practices and normal boot-strap pattern can be guided by same boot, guide when needs normally start the operating system main system to start and enter normal boot-strap pattern, guide when needs recovery system and enter reforestation practices.
In step s 103, in recovery mode, smart machine, to server transmitting system recovery request, to make server return corresponding operating system recovery file according to System recover request, and carries out Recovery processing according to the operating system recovery file returned to operating system.
In the present embodiment, the operating system recovery file that the server in communication network returns can be the file recovered the wrong file in operating system, or to the file that whole operating system is recovered, rejuvenation is specifically as follows file and replaces.
In the embodiment of the present invention, according to preset attribute field value, smart machine can judge whether current operation system occurs exception, such as, start and abnormal conditions when running, when detecting extremely, then to server transmitting system recovery request, corresponding operating system recovery file is returned according to System recover request to make server, and according to the operating system recovery file returned, Recovery processing is carried out to operating system, thus, also rejuvenation is participated in without the need to user without the need to user ID system, decrease maintenance personal to make house calls cost, achieve the intellectuality of system anomaly detection and recovery.
Further, in the operating system recovery method that the embodiment of the present invention provides, the process performing step S103 specifically comprises:
1, smart machine is to server transmitting system recovery request, with the download address making server end return corresponding operating system recovery file.
In the present embodiment, while transmitting system recovery request, can also send the information of smart machine to server, the packets of information of smart machine is containing the information such as the operating system version information of smart machine and the unit type of smart machine.In the present embodiment, smart machine can report recovery request by http agreement to server, and by information reporting servers such as current operating system version and hardware versions.
2, server is according to System recover request, sends the download address of corresponding operating system recovery file to smart machine.
Concrete, server according to the information of the System recover request received and smart machine, can search the download address with the operating system recovery file of smart machine system matches, and the concurrent download address stating and search served is to smart machine.
3, the download address of the operating system recovery file of smart machine reception server transmission.
4, smart machine is according to the download address of operating system recovery file, downloads corresponding operating system recovery file from server.
In the present embodiment, server can according to the download request of smart machine, send corresponding operating system recovery file to smart machine, such as, if smart machine information shows that the version of the operating system of the use of this smart machine is 1.0 versions, then send the System recover file of 1.0 versions of server stores to this smart machine.
5, smart machine is according to the operating system recovery file downloaded, and carries out Recovery processing to operating system.
It should be noted that, the operating system of server end backup intelligence equipment, operating system can be obtained from server time abnormal with the operating system of convenient smart machine to recover, but because the operating system version of different intelligent equipment use may be different, so server should back up is the existing all operations system version of client, also can distinguish information such as the unit type of custom end intelligent equipment, ardware model numbers simultaneously.
embodiment two
Below by way of the processing procedure occurring system exception in specific embodiment description operation system boot process, show the realization flow figure of the operating system recovery method that the embodiment of the present invention two provides see Fig. 2, Fig. 2, details are as follows:
In step s 201, when the timing time preset arrives, judge whether operating system starts complete.
In embodiments of the present invention, above-mentioned default timing time can be that of system on average starts cycle length, or also can be the time set according to actual needs, at this not in order to limit the present invention.
In step S202, if when the time of presetting arrives, judge that operating system is not activated and completely then detect preset attribute field value, judge preset attribute field value whether in specialized range further.
In the present embodiment, perform step S202 first, default attribute field value can not exceed the scope of regulation, then perform step S203.If when again performing step S202 follow-up, default attribute field value may exceed the scope of regulation, when exceeding preset range volume, judge that operating system occurs abnormal, performing step S204.Wherein, the specialized range of preset attribute field value can be arranged as required, and such as specialized range can be 0-2.
In step S203, a process is added to preset attribute field value, and return execution step S201.
Concrete, after returning execution step S201, continue, when the timing time preset arrives, to judge whether operating system starts complete, if after two or more default timing time, operating system is still not activated complete, then illustrate that current operation system occurs abnormal, preset attribute field value is through repeatedly adding after 1 simultaneously, will exceed specialized range, and then triggering system rejuvenation, restart system and enter reforestation practices.
In step S204, decision system occurs abnormal.
In step S205, when judging that current operation system occurs abnormal, then restart current system and enter reforestation practices.
In step S206, in recovery mode, to server transmitting system recovery request, to make server return corresponding operating system recovery file according to System recover request, and according to the operating system recovery file returned, Recovery processing is carried out to operating system.
In the present embodiment, the implementation of the step S102-S103 in the execution of step S205-S206 and above-described embodiment one is similar, and details are see the description of above-described embodiment one.
In embodiments of the present invention, the monitoring system on time, if when the time of presetting arrives, operating system is not activated complete, then judge whether system occurs exception by monitoring preset attribute field value, when judging that current operation system occurs abnormal, then enter reforestation practices after restarting and recover.Carry out System recover when the embodiment of the present invention can be implemented in system start-up time exception, and participate in rejuvenation without the need to user, decrease maintenance personal and to make house calls cost.Simultaneously, the present embodiment is by repeatedly judging and accurately can judging to the judgement of preset attribute field value the exception that starting operating system process occurs, first time is avoided to judge that the on time exceedes default timing time and triggering system rejuvenation, reduce unnecessary System recover, better adaptability.
embodiment three
Fig. 3 shows the realization flow figure of the operating system recovery method that the embodiment of the present invention three provides, and details are as follows:
In step S301, when the timing time preset arrives, judge whether operating system starts complete.
In the present embodiment, when the timing time preset arrives, it is complete if judge, operating system is not activated, then perform step S302, judge whether operating system occurs exception further; If judge, os starting is complete, then perform step S305, the release time under monitoring current operation system after system service extremely.
In step s 302, detect preset attribute field value, judge preset attribute field value further whether in specialized range.
In step S303, a process is added to preset attribute field value, and return execution step S301.
In step s 304, decision system occurs abnormal, then perform step S309.
In the present embodiment, the implementation of the step S202-S204 in the implementation of step S302-S304 and above-described embodiment two is similar, and details are see the description of above-described embodiment two.
In step S305, the release time under monitoring current operation system after system service extremely.
In the present embodiment, after system startup is complete, the start-up time after the service extremely of smart machine monitoring current system.Wherein, the service of current system can comprise servicemanager service, zygote service (servicemanager service is be mutually related with zygote service) etc.
If the release time under monitoring current operation system after system service is extremely less than default reboot time, then illustrate that current operation system is normally restarted.
In step S306, when recovered, be greater than default reboot time, then detect preset attribute field value, judge preset attribute field value further whether in specialized range.
In the present embodiment, if under monitoring current operation system system service abnormal after release time be greater than default reboot time, then detect default attribute field, judge preset attribute field value further whether in specialized range.
If judge, preset attribute field value is in specialized range, then illustrate that current operation system still can normally be run, do not need to perform rejuvenation immediately, then perform step S307; If judge, preset attribute field value exceeds specialized range, then perform step S308, judges that operating system occurs abnormal, and enter reforestation practices.Wherein, the averaging time that the reboot time preset normally can start according to system service is determined.
In step S307, then a process is added to preset attribute field value.
In the present embodiment, after a process is added to preset attribute field value, return and perform step S305, after waiting for that the system service monitoring other next time is abnormal, then carry out judgement preset attribute field value.
In step S308, decision system occurs abnormal, then perform step S309.
In step S309, when judging that current operation system occurs abnormal, then restart current system and enter reforestation practices.
In step S310, in recovery mode, to server transmitting system recovery request, to make server return corresponding operating system recovery file according to System recover request, and according to the operating system recovery file returned, Recovery processing is carried out to operating system.
In the present embodiment, the implementation of the step S102-S103 in the execution of step S309-S310 and above-described embodiment one is similar, and details are see the description of above-described embodiment one.
In embodiments of the present invention, when the timing time preset arrives, if os starting is complete, then monitoring judges that the service in system operation is abnormal further, and the release time of the service in current system is when being greater than default reboot time, judge preset attribute field value whether in specialized range further, so when preset attribute field value exceedes specialized range triggering system rejuvenation.The embodiment of the present invention can realize carrying out recovering timely, automatically to the exception in starting operating system and operational process, considers the situation that operating system may occur, better adaptability comprehensively.
embodiment four
Occur abnormal rejuvenation below by way of service in specific embodiment description operation system operation, as shown in Figure 4, Fig. 4 shows the realization flow figure of the operating system recovery method that the embodiment of the present invention four provides, and details are as follows:
In step S401, the release time under monitoring current operation system after system service extremely.
In the present embodiment, after system startup is complete, the start-up time after the service extremely of smart machine monitoring current system.Wherein, the service of current system can comprise servicemanager service, zygote service (servicemanager service is be mutually related with zygote service) etc.
If the release time under monitoring current operation system after system service is extremely less than default reboot time, then illustrate that current operation system is normally restarted.
In step S402, when monitoring is greater than default reboot time release time, then detect preset attribute field value, judge preset attribute field value further whether in specialized range.
In the present embodiment, if under monitoring current operation system system service abnormal after release time be greater than default reboot time, then detect default attribute field, judge preset attribute field value further whether in specialized range.
If judge, preset attribute field value is in specialized range, then illustrate that current operation system can recover normal operation, do not need to perform rejuvenation immediately, then perform step S403;
If judge, preset attribute field value exceeds specialized range, then perform step S404, judges that operating system occurs abnormal.Wherein, the averaging time that the reboot time preset normally can start according to system service is determined.
In step S403, then a process is added to preset attribute field value.
In the present embodiment, after a process is added to preset attribute field value, return and perform step S401, after monitoring another system service extremely next time, then carry out judgement preset attribute field value.
In step s 404, decision system occurs abnormal.
In step S405, when judging that current operation system occurs abnormal, then restart current system and enter reforestation practices.
In step S406, in recovery mode, to server transmitting system recovery request, to make server return corresponding operating system recovery file according to System recover request, and according to the operating system recovery file returned, Recovery processing is carried out to operating system.
In the present embodiment, the implementation of the step S102-S103 in the execution of step S405-S406 and above-described embodiment one is similar, and details are see the description of above-described embodiment one.
In embodiments of the present invention, release time under monitoring current operation system after system service extremely, when monitoring is greater than default reboot time release time, then by judging that preset attribute field value judges whether operating system process occurs exception, when judging that current operation system runs appearance exception, then enter reforestation practices after restarting and recover.The system recovery method that the embodiment of the present invention provides can to realize without the need to user ID system also, also without the need to rejuvenation that user participates in, decrease maintenance personal to make house calls cost, simultaneously, by repeatedly judging and can accurately judge the judgement of preset attribute field value the exception occurred in operating system process, judge that to avoid first time monitoring is greater than default reboot time and triggering system rejuvenation release time, reduce unnecessary System recover, better adaptability.
embodiment five
Fig. 5 shows the structural drawing of the smart machine that the embodiment of the present invention five provides, and for convenience of explanation, illustrate only the part relevant to the embodiment of the present invention, and this smart machine can be intelligent television, smart mobile phone etc.
The intelligent apparatus of the embodiment of the present invention comprises abnormal deciding means 51, restarts unit 52 and recovery unit 53.
According to described preset attribute field value, abnormal deciding means 51, for detecting preset attribute field value, judges whether current operation system occurs exception.
When restarting unit 52 for judging that when abnormal deciding means 51 described current operation system occurs abnormal, then restart current system and enter reforestation practices.
Recovery unit 53 is under described reforestation practices, to server transmitting system recovery request, to make server return corresponding operating system recovery file according to described System recover request, and according to the described operating system recovery file returned, Recovery processing is carried out to operating system.
Further, the recovery unit 53 in the present embodiment comprises: sending module 531, receiver module 532, download module 533 and recovery module 534.
Sending module 531 for the information to server transmitting system recovery request and current smart machine, with the download address making described server end return corresponding operating system recovery file.
Receiver module 532 is for receiving the download address of the described operating system recovery file of described server feedback.
Download module 533, for the download address according to described operating system recovery file, downloads corresponding operating system recovery file from described server.
Recover module 534 for the operating system recovery file according to described download, Recovery processing is carried out to operating system.
The smart machine that the embodiment of the present invention provides can be used in the embodiment of the method one of aforementioned correspondence, and details, see the description of above-described embodiment one, do not repeat them here.In the present embodiment, according to preset attribute field value, the smart machine of client can judge whether current operation system occurs exception, such as, start and abnormal conditions when running, when detecting extremely, then to server transmitting system recovery request, corresponding operating system recovery file is returned according to System recover request to make server, and according to the operating system recovery file returned, Recovery processing is carried out to operating system, also rejuvenation is participated in without the need to user without the need to user ID system, decrease maintenance personal to make house calls cost, achieve the intellectuality of system anomaly detection and recovery.
embodiment six
Fig. 6 shows the structural drawing of the smart machine that the embodiment of the present invention six provides, and for convenience of explanation, illustrate only the part relevant to the embodiment of the present invention, and this smart machine can be intelligent television, smart mobile phone etc.
The intelligent apparatus of the embodiment of the present invention comprises abnormal deciding means 61, restarts unit 62 and recovery unit 63.
Abnormal deciding means 61 in the present embodiment comprises: the first judge module 611 and the second judge module 612.
First judge module 611, for when the timing time preset arrives, judges whether operating system starts complete;
If for the first judge module 611, the second judge module 612 judges that described operating system is not activated complete, then detect preset attribute field value, judge described preset attribute field value whether in specialized range further, when judging that described preset attribute field value is in specialized range, then add a process to described preset attribute field value, to judge whether operating system starts complete when the timing time preset arrives then to trigger the first judge module 611.
Further, the abnormal deciding means 61 in the present embodiment can also comprise: the first monitoring modular 613 and the 3rd judge module 614.
If for the first judge module 611, the first monitoring modular 613 judges that described os starting is complete, then the release time under monitoring current operation system after system service extremely.
3rd judge module 614 is for being greater than default reboot time release time when the first monitoring modular 613 is monitored, then detect preset attribute field value, judge described preset attribute field value whether in specialized range further, when judging that described preset attribute field value is in specialized range, then a process is added to described preset attribute field value, trigger the first monitoring modular 613 perform system service under monitoring current operation system abnormal after the step of release time, when judging that described preset attribute field value is not in specialized range, then judge that described operating system occurs abnormal.
The smart machine that the embodiment of the present invention provides can be used in the embodiment of the method two, three of aforementioned correspondence, and details, see the description of above-described embodiment two, three, do not repeat them here.
embodiment seven
Fig. 7 shows the structural drawing of the smart machine that the embodiment of the present invention seven provides, and for convenience of explanation, illustrate only the part relevant to the embodiment of the present invention, and this smart machine can be smart mobile phone, intelligent television etc.
The intelligent apparatus of the embodiment of the present invention comprises abnormal deciding means 71, restarts unit 72 and recovery unit 73.
Abnormal deciding means 73 in the present embodiment comprises: the second monitoring modular 731 and the 4th judge module 732.
Second monitoring modular 731 for monitor system service under current operation system abnormal after release time;
When 4th judge module 732 is greater than default reboot time for monitoring when the second monitoring modular 731 release time, then detect preset attribute field value, judge described preset attribute field value whether in specialized range further, when judging that described preset attribute field value is in specialized range, then a process is added to described preset attribute field value, trigger the second monitoring modular 731 perform system service under monitoring current operation system abnormal after the step of release time, when judging that described preset attribute field value is not in specialized range, then judge that described operating system occurs abnormal.
The smart machine that the embodiment of the present invention provides can be used in the embodiment of the method four of aforementioned correspondence, and details, see the description of above-described embodiment four, do not repeat them here.
It should be noted that in said apparatus and system embodiment, included unit is carry out dividing according to function logic, but is not limited to above-mentioned division, as long as can realize corresponding function; In addition, the concrete title of each functional unit, also just for the ease of mutual differentiation, is not limited to protection scope of the present invention.
In addition, one of ordinary skill in the art will appreciate that all or part of step realized in the various embodiments described above method is that the hardware that can carry out instruction relevant by program has come, corresponding program can be stored in a computer read/write memory medium, described storage medium, as ROM/RAM, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1. an operating system recovery method, is characterized in that, described method comprises the steps:
Detect preset attribute field value, judge whether current operation system occurs exception according to described preset attribute field value, described detection preset attribute field value, judge whether current operation system occurs abnormal comprising according to described preset attribute field value:
When the timing time preset arrives, judge whether operating system starts complete, it is complete if judge, described operating system is not activated, then detect preset attribute field value, judge described preset attribute field value whether in specialized range further, when judging that described preset attribute field value is in specialized range, then a process is added to described preset attribute field value, return execution described when the timing time arrival preset, judge whether operating system starts complete step, when judging that described preset attribute field value is not in specialized range, then judge that described operating system occurs abnormal,
When judging that described current operation system occurs abnormal, then restart current system and enter reforestation practices, reforestation practices and normal boot-strap pattern are guided by same boot, guide when needs normally start the operating system main system to start and enter normal boot-strap pattern, guide when needs recovery system and enter reforestation practices;
Under described reforestation practices, to the information of server transmitting system recovery request and current smart machine, the packets of information of described smart machine contains the unit type information of the current operating system version of smart machine and smart machine, to make the System recover request of server according to reception and the information of smart machine, search the download address with the operating system recovery file of smart machine system matches, the concurrent download address stating and search served is to smart machine;
The download address of the operating system recovery file that smart machine reception server sends;
Smart machine, according to the download address of operating system recovery file, downloads corresponding operating system recovery file from server, and carries out Recovery processing according to the described operating system recovery file returned to operating system.
2. the method for claim 1, is characterized in that, described method also comprises the steps:
If judge, described os starting is complete, then the release time under monitoring current operation system after system service extremely;
Be greater than default reboot time when recovered, then detect preset attribute field value, judge described preset attribute field value further whether in specialized range;
When judging that described preset attribute field value is in specialized range, then add a process to described preset attribute field value, return perform system service under monitoring current operation system abnormal after the step of release time;
When judging that described preset attribute field value is not in specialized range, then judge that described operating system occurs abnormal.
3. the method for claim 1, is characterized in that, described detection preset attribute field value, judges whether current operation system occurs that abnormal step is specially according to described preset attribute field value:
Release time under monitoring current operation system after system service extremely;
When being greater than default reboot time when recovered, then detect preset attribute field value, judge described preset attribute field value further whether in specialized range;
When judging that described preset attribute field value is in specialized range, then add a process to described preset attribute field value, return perform system service under monitoring current operation system abnormal after the step of release time;
When judging that described preset attribute field value is not in specialized range, then judge that described operating system occurs abnormal.
4. the method for claim 1, is characterized in that, described operating system recovery file is the file recovered the wrong file in operating system, or to the file that whole operating system is recovered.
5. a smart machine, is characterized in that, described smart machine comprises:
Abnormal deciding means, for detecting preset attribute field value, judge whether current operation system occurs exception according to described preset attribute field value, described abnormal deciding means comprises:
First judge module, for when the timing time preset arrives, judges whether operating system starts complete;
Second judge module, when judging that described operating system is not activated complete for the first judge module, then detect preset attribute field value, judge described preset attribute field value whether in specialized range further, when judging that described preset attribute field value is in specialized range, then add a process to described preset attribute field value, to judge whether operating system starts complete when the timing time preset arrives then to trigger the first judge module; Restart unit, for when judging that described current operation system occurs abnormal, then restart current system and enter reforestation practices, reforestation practices and normal boot-strap pattern are guided by same boot, guide when needs normally start the operating system main system to start and enter normal boot-strap pattern, guide when needs recovery system and enter reforestation practices;
Recovery unit, for under described reforestation practices, to the information of server transmitting system recovery request and current smart machine, the packets of information of described smart machine contains the unit type information of the current operating system version information of smart machine and smart machine, to make the System recover request of server according to reception and the information of smart machine, search the download address with the operating system recovery file of smart machine system matches, the concurrent download address stating and search served is to smart machine;
The download address of the operating system recovery file that smart machine reception server sends;
Send the information of smart machine, the packets of information of described smart machine is containing the operating system version information of smart machine and the unit type information of smart machine, to make server can according to the System recover request received and the information of smart machine, search the download address with the operating system recovery file of smart machine system matches, the concurrent download address stating and search served is to smart machine;
The download address of the operating system recovery file that smart machine reception server sends;
Smart machine, according to the download address of operating system recovery file, downloads corresponding operating system recovery file from server, and carries out Recovery processing according to the described operating system recovery file returned to operating system.
6. smart machine as claimed in claim 5, it is characterized in that, described abnormal deciding means also comprises:
First monitoring modular, if judge that described os starting is complete for the first judge module, then the release time under monitoring current operation system after system service extremely;
3rd judge module, for being greater than default reboot time release time when the first monitoring module monitors, then detect preset attribute field value, judge described preset attribute field value whether in specialized range further, when judging that described preset attribute field value is in specialized range, then a process is added to described preset attribute field value, trigger the first monitoring modular perform system service under monitoring current operation system abnormal after the step of release time, when judging that described preset attribute field value is not in specialized range, then judge that described operating system occurs abnormal.
7. smart machine as claimed in claim 5, it is characterized in that, described abnormal deciding means comprises:
Second monitoring modular, for monitor system service under current operation system abnormal after release time;
4th judge module, for when the second monitoring module monitors is greater than default reboot time release time, then detect preset attribute field value, judge described preset attribute field value whether in specialized range further, when judging that described preset attribute field value is in specialized range, then a process is added to described preset attribute field value, trigger the second monitoring modular perform system service under monitoring current operation system abnormal after the step of release time, when judging that described preset attribute field value is not in specialized range, then judge that described operating system occurs abnormal.
8. smart machine as claimed in claim 5, it is characterized in that, described recovery unit comprises:
Sending module, for the information to server transmitting system recovery request and current smart machine, with the download address making described server end return corresponding operating system recovery file;
Receiver module, for receiving the download address of the described operating system recovery file of described server feedback;
Download module, for the download address according to described operating system recovery file, downloads corresponding operating system recovery file from described server;
Recover module, for the operating system recovery file according to described download, Recovery processing is carried out to operating system.
CN201110297161.8A 2011-09-30 2011-09-30 Operating system recovery method and intelligent equipment Expired - Fee Related CN102508734B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110297161.8A CN102508734B (en) 2011-09-30 2011-09-30 Operating system recovery method and intelligent equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110297161.8A CN102508734B (en) 2011-09-30 2011-09-30 Operating system recovery method and intelligent equipment

Publications (2)

Publication Number Publication Date
CN102508734A CN102508734A (en) 2012-06-20
CN102508734B true CN102508734B (en) 2015-06-03

Family

ID=46220826

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110297161.8A Expired - Fee Related CN102508734B (en) 2011-09-30 2011-09-30 Operating system recovery method and intelligent equipment

Country Status (1)

Country Link
CN (1) CN102508734B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103513996A (en) * 2012-06-21 2014-01-15 Tcl集团股份有限公司 Android system recovery method of terminal equipment and terminal equipment
CN103970564A (en) * 2014-04-23 2014-08-06 京信通信系统(中国)有限公司 Automatic repairing and upgrading method of embedded operating system and embedded operating system with automatic repairing and upgrading functions
CN105099765B (en) * 2015-06-29 2018-07-24 小米科技有限责任公司 Data-updating method and device
CN105373440A (en) * 2015-11-02 2016-03-02 努比亚技术有限公司 Fault detection and recovery apparatus and method
CN105607972B (en) * 2015-12-28 2019-06-18 Tcl集团股份有限公司 A kind of method and device repaired extremely
CN105634806A (en) * 2015-12-29 2016-06-01 深圳市瑞铭无限科技有限公司 Updating method and apparatus for intelligent terminal APP
CN106411583A (en) * 2016-09-21 2017-02-15 努比亚技术有限公司 Application server repairing device and method
CN108205480B (en) * 2017-12-28 2021-10-26 大众问问(北京)信息科技有限公司 Abnormity processing method and device, intelligent rearview mirror and storage medium
CN110825565B (en) * 2019-11-06 2022-02-25 珠海格力电器股份有限公司 Control method and system for restoring factory settings of electrical appliance
CN111078471B (en) * 2019-12-06 2023-09-05 深圳创维-Rgb电子有限公司 System fault recovery method and device for display device and computer storage medium
CN113806139B (en) * 2021-06-15 2023-04-07 荣耀终端有限公司 Operating system recovery method, operating system recovery device, storage medium and computer program product

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1299483A (en) * 1998-04-30 2001-06-13 英特尔公司 Initializing and restarting operating systems
CN1881944A (en) * 2005-06-03 2006-12-20 Qnx软件操作系统德国有限公司 Improved distributed kernel operating system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1322426C (en) * 2003-02-12 2007-06-20 微星科技股份有限公司 Method and apparatus for restoring mapping files in system embedded electronic device
GB2421669A (en) * 2004-12-22 2006-06-28 Siemens Ag Method for restoring a link in a communication ring system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1299483A (en) * 1998-04-30 2001-06-13 英特尔公司 Initializing and restarting operating systems
CN1881944A (en) * 2005-06-03 2006-12-20 Qnx软件操作系统德国有限公司 Improved distributed kernel operating system

Also Published As

Publication number Publication date
CN102508734A (en) 2012-06-20

Similar Documents

Publication Publication Date Title
CN102508734B (en) Operating system recovery method and intelligent equipment
US20220179682A1 (en) Task processing method, apparatus, and system based on distributed system
CN100492305C (en) Fast restoration method of computer system and apparatus
CN103136012B (en) Computer system and update method of basic input-output system thereof
CN103428333B (en) Mobile terminal, server and errors repair method
CN101594613A (en) The method of terminal equipment and upgrading thereof, system
CN102244669B (en) Software upgrading method in stacking equipment and stacking equipment
CN104601203A (en) Dynamic connection parameter regulation method and device for low-power consumption Bluetooth equipment
CN102880527B (en) Data recovery method of baseboard management controller
CN105573777B (en) Method and device for controlling service in application
CN109361542A (en) The fault handling method of client, device, system, terminal and server
CN109976886B (en) Kernel remote switching method and device
CN104750574A (en) Firmware recovery method and device of network equipment
CN102891762A (en) System and method for continuously processing network data
CN102521060A (en) Pseudo halt solving method of high-availability cluster system based on watchdog local detecting technique
CN111309388B (en) Automatic rollback system and method for system software version of equipment
CN103336698A (en) Wifi equipment software upgrading method, wifi equipment and system
CN101237355B (en) Service monitoring method, and network monitoring device
CN109992280A (en) A kind of method, terminal installation and the storage device of embedded software upgrading
CN201047943Y (en) Fast recovery equipment of computer system
CN105988882B (en) A kind of application software fault repairing method and terminal device
CN105072185B (en) A kind of TR069 long-distance monitoring methods, system and communication apparatus
CN106293499B (en) A kind of file acquisition method and baseboard management controller, basic input output system
CN103235728B (en) The installation method of preset third-party application and device in Android terminal
CN114826981B (en) System and method for realizing application resident in cloud mobile phone

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150603

CF01 Termination of patent right due to non-payment of annual fee