Summary of the invention
Technical matters to be solved by this invention is to provide a kind of os starting guard method and device; can in the system starting process of computing machine or mobile terminal, protect operating system normally to start, avoid occurring repeatedly starting all successfully situation and occur.
In order to address the above problem, the invention discloses a kind of os starting guard method, comprise the following steps:
Start the operating system;
Starting protection program before other application program launchings;
The startup record of defence program analysis operation system, checks that whether startup last time is successful, if success normally starts, otherwise, the startup of application program in shut-down operation system in os starting process.
Further, described method also comprises:
If started last time successfully,, in this starts, will start record modification for to start unsuccessfully, the clean boot list of reading pre-stored, start item by item the application program in clean boot list, all after application program launching success, will start record modification for to start successfully.
Further, the standard that described decision operation system successfully starts comprises:
System performance stable threshold is set, according to system performance, whether stablizes to threshold interval and determine whether operating system successfully starts; Or
In operating system, arrange to start and finish sign, according to starting end sign, determine whether operating system successfully starts.
Further, described before other application program launchings starting protection program comprise:
Defence program is added in the startup list that operating system carries;
All application records in the startup list that deletion action system carries except defence program.
Further, described method also comprises:
After starting unsuccessfully, the application records of uploading in clean boot list arrives server at every turn;
Server causes starting failed application program according to the application records analysis of uploading;
Server feeds back to defence program by analysis result;
Defence program provides respective handling according to feedback result.
Further, described method also comprises:
All application records in the clean boot list that defence program is prestored offer user; Or
Causing that analysis is drawn starts failed application records and offers user.
Further, described method also comprises:
User carries out respective handling according to the application records application programs of obtaining.
Further, described method also comprises:
When operating system is used defence program, defence program is recorded in the normal application program starting in operating system, sets up clean boot list.
Further, described defence program is set up the process of clean boot list and is:
The startup list of storing in scan operation system;
By in the startup list of operating system except defence program the normal application records starting in clean boot list;
Application program in the startup list of deletion action system except defence program.
Further, described method also comprises:
Upgrade clean boot list.
Further, described renewal clean boot list comprises:
The state variation of application program in monitor operating system;
Judge whether the application program that state changes is self-starting application program, if so, upgrades clean boot list.
Further, described in, start the operating system and comprise:
Start the operating system in mobile terminal.
In order to address the above problem, the invention also discloses a kind of os starting guard method, comprise the following steps:
Start the operating system;
Analysis operation system startup last time self process, if started last time successfully, allows operating system normally to start, otherwise, other process initiations beyond shut-down operation system.
In order to address the above problem, the invention also discloses a kind of os starting protective device, comprising:
Os starting module, for starting the operating system;
Defence program module, for starting protection program before other application program launchings;
Start History Parser Module, for the startup record of analysis operation system, check that whether startup last time is successful, if success normally starts, otherwise, the startup of application program in shut-down operation system in os starting process.
Further, described device also comprises:
Start determination module, if started to be recorded as and start successfully the last time of operating system, in starting, this will start record modification for to start unsuccessfully, the clean boot list of reading pre-stored, start item by item the application program in clean boot list, then will start record modification for to start successfully.
Further, described device also comprises:
Operating system successfully starts judge module, for whether stablizing according to system performance to threshold interval, determines whether operating system successfully starts; Or
According to starting, finish the whether successfully startup of the definite operating system of sign.
Further, described defence program startup module comprises:
Defence program adding device, the startup list carrying for defence program being added to operating system;
Application records delete cells, all application records of the startup list carrying for deletion action system except defence program.
Further, described device also comprises:
Upper transmission module, after starting unsuccessfully, the application records of uploading in clean boot list arrives server at every turn;
Analysis module, causes starting failed application program for server according to the application records analysis of uploading;
Feedback module, feeds back to defence program for server by analysis result;
Processing module, provides respective handling for the protection of program according to feedback result.
Further, described device also comprises:
Prompting module, offers user for all application records of clean boot list that defence program is prestored; Causing of maybe analysis being drawn starts failed application records and offers user.
Further, described device also comprises:
Module is set up in clean boot list, for when operating system is used defence program, according to the normal application program starting in operating system, sets up clean boot list.
Further, described clean boot list is set up module and is comprised:
Scanning element, the startup list of storing for scan operation system;
Storage unit, for by the startup list scanning except defence program the normal application storage starting in the clean boot list of defence program;
Delete cells, the application records in the startup list of deletion action system except defence program.
Further, described device also comprises:
Update module, for upgrading clean boot list.
Further, described update module comprises:
Condition Monitoring Unit, for the state variation of monitor operating system application program;
Self-starting detecting unit, for judging whether the application program that state changes is self-starting application program, if so, upgrades clean boot list.
Further, described device is placed in mobile terminal, for the os starting protection in mobile terminal.
In order to address the above problem, the invention also discloses a kind of os starting protective device, comprising:
Os starting module, for starting the operating system;
Operating system process analysis module, for analysis operation system startup last time self process, if started last time successfully, allows operating system normally to start, otherwise, other process initiations beyond shut-down operation system.
Compared with prior art, the present invention has the following advantages:
Os starting guard method of the present invention and device are by os starting, for operating system, whether startup last time successfully judges; by defence program, set up clean boot list; after starting, defence program according to starting record the last time of operating system, determines whether to start the application program in clean boot list again; the situation that the operating system that can avoid causing because application program self is abnormal repeatedly cannot normally start, also can avoid starting and caused need formatting system, lose the situations such as user profile.
Further, in judgement after successfully started last time, first be that this is started to record modification for to start unsuccessfully, after all successfully starting, all application programs again these are started to record modification for to start successfully, can avoid occurring in starting application program process unexpected, and revise the situation that starts record, the starting state of recording in assurance startup record is accurately and reliably.
In addition, for real-time update in clean boot list, can guarantee promptness, accuracy and the validity of starting protection.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.
Os starting guard method of the present invention and application of installation, in clients such as computing machine, mobile phones, are protected for the starting up to client, can start normally.Concrete, the application's os starting guard method and device can be realized by computer program, and are installed in client, by the operation of processor, carry out.
With reference to Fig. 1, the embodiment mono-of os starting guard method of the present invention is shown, comprise the following steps:
Step 101, starts the operating system.
Start the operating system and can start or according to starting predetermined start-up time according to user's order.
Step 102, starting protection program before other application program launchings.
Can in advance defence program be installed in the clients such as computing machine or mobile phone, when client user starts the operating system of client, before other application program launchings by operating system starting protection program first.Concrete, defence program can be added in the startup list that operating system carries, when os starting, the defence program starting in list also can self-starting.
In order to guarantee at os starting, be only to have application program launching of defence program; after in defence program being added to the startup list that operating system carries, all application records in the startup list that needs to carry in deletion action system except defence program.
Step 103, the startup record of defence program analysis operation system, checks that whether startup last time is successful, if success normally starts the operating system, otherwise, the startup of application program in shut-down operation system in os starting process.
Defence program can record the starting state of operating system after each startup according to actual startup situation, and automatically covers record last time, the actual conditions that the starting state that guarantees record is front one-shot.For example, if this starts successfully, the starting state of storage can be revised as and start successfully, otherwise, the starting state of storage is revised as and is started unsuccessfully.When each os starting, by checking that the starting state of last time determines the operation that this need to be done.
If the starting state of last time is unsuccessfully, illustrate and in self-starting application program, occurred extremely, extremely may being produced by some application programs, also may be produced by several application combination.So, in the startup of finding last time, be recorded as and start unsuccessfully, defence program can be in os starting process the startup of other self-triggered programs in shut-down operation system, to guarantee the normal startup of operating system.Further, after the normal startup of operating system, can also provide user reminding information, by user, be searched the reason that cannot normally start.
With reference to Fig. 2, os starting guard method embodiment bis-of the present invention is shown, further, further comprising the steps of after the step 103 of embodiment mono-:
Step 201, if started last time successfully, in this starts, to start record modification for to start unsuccessfully, the clean boot list of reading pre-stored, starts the application program in clean boot list item by item, all after application program launching success, will start record modification for to start successfully.
When the startup of last time is recorded as while starting successfully, startup record is temporarily revised as and is started unsuccessfully, this is to occur unsuccessfully for fear of the application program in follow-up startup clean boot list, and cannot revise the situation appearance of starting state.For example; when application program in starting item by item clean boot list; starting to a certain goes wrong; may cause so the startup failure of operating system; if do not revise in advance and start record, when restarting next time, the starting state recording in defence program is still the previous startup record in startup last time so; start successfully the situation that this just may cause starting state to be really recorded.Therefore, need until after the application program in clean boot list all successfully starts, then will start record modification for to start successfully.
Wherein, the standard successfully starting in decision operation system can be determined by system performance stable threshold is set, according to system performance, whether stablize to threshold interval and determine whether operating system successfully starts, for example,, if initialization system stable performance threshold value is made as memory usage or CPU usage is down to 30%.In addition, also can finish sign by arranging to start in operating system, according to starting end sign, determine whether operating system successfully starts.
Further, defence program, when providing user reminding information, can also provide analysis result, may cause the list of the application program that operating system cannot normally start.Application program in list can be all application programs in clean boot list, can be also to analyze according to oneself the certain applications program drawing.
According to oneself analyzing the certain applications program drawing, can realize by following manner: after starting unsuccessfully at every turn, the application records of uploading in clean boot list arrives server, and server causes starting failed application program according to the application records analysis of uploading.For example, in the operating system of different clients, in the application records of the clean boot list of uploading after starting unsuccessfully, all comprise some or certain several application program, server can be learnt by analysis, it is larger that these application programs cause starting failed possibility, thereby obtain, causes starting failed application program.Server obtains and causes starting failed application program and can feed back to defence program, and defence program provides respective handling according to feedback result.
In addition, the list that user can provide according to defence program detects various programs or processes accordingly.For example; according to selecting item by item one of them application program to start in the list providing at defence program; or select wherein certain two or certain several program to start; finding while causing application program that operating system cannot normally start, can delete this application program or it is repaired etc. to operation.
With reference to Fig. 3, the embodiment tri-of os starting guard method of the present invention is shown, further, before step 101, also comprise the steps:
Step 301, when operating system is used defence program, defence program is recorded in the normal application program starting in operating system, sets up clean boot list.
The foundation of clean boot list can be installed on after operating system at defence program, while using for the first time, by defence program, sets up.The process of wherein setting up is as follows:
Step D1, the startup list of storing in scan operation system.
Step D2, by the startup list of operating system except defence program the normal application records starting in the clean boot list of defence program.
Step D3, the application records in the startup list of deletion action system except defence program.
Because generally all can carry one in operating system, start list; for recording the application program that needs self-starting; defence program is all stored in the application program except defence program self in clean boot list by the startup list of storing in scan operation system, and deletes the record that starts these application programs in list.When again starting, the self-triggered program comprising in the startup list that operating system carries just only comprises defence program, and this just can make defence program start along with the startup of operating system, and controls the startup of other programs.
Further, after step 301, also comprise the steps:
Upgrade clean boot list.
In order to guarantee promptness and the validity of clean boot list, need to, to clean boot list real-time update, specifically comprise the following steps:
Step S1, the state variation of application program in monitor operating system.
State variation comprises the deletion of original application program, installation of new application program etc.Installation and deletion information by application programs can get state change information.
Step S2, judges whether the application program that state changes is self-starting application program, if so, upgrades clean boot list.
If state variation is the deletion of original self-starting application program, upgrade so clean boot list for deleting application records corresponding in clean boot list.
If the installation of the stylish self-starting application program of state variation, upgrades clean boot list so for corresponding application records is added in clean boot list, this application records in the startup list of simultaneously storing in deletion action system.
With reference to Fig. 4, os starting guard method embodiment tetra-of the present invention is shown, comprise the following steps:
Step 401, starts the operating system.
Step 402, analysis operation system startup last time self process, if started last time successfully, allows operating system normally to start, otherwise, other process initiations beyond shut-down operation system.
After each os starting; defence program is recorded self the startup process when time operating system; when operating system startup next time; by the analysis to process; determine whether operating system started successfully last time, and determine whether to allow operating system other process initiations in addition according to judged result.
Preferably, os starting guard method of the present invention is for the os starting protection of mobile terminal.
With reference to Fig. 5, the embodiment mono-of os starting protective device of the present invention is shown, the modules in this system refers to the computer program of writing based on computerese, is stored in client, and moves by processor.
Os starting protective device comprises that os starting module 10, defence program start module 20, start History Parser Module 30 and start determination module 40.
Os starting module 10, for starting the operating system.
Defence program starts module 20, for starting protection program before other application program launchings.
Start History Parser Module 30, for the startup record of analysis operation system, check that whether startup last time is successful,, if success normally starts, otherwise, the startup of application program in shut-down operation system in os starting process.
With reference to Fig. 6, further, os starting protective device also comprises and starts determination module 40, for according to starting the follow-up start-up course that operating system determined in record the last time that starts the operating system that History Parser Module 30 analyzes.If started to be recorded as and start successfully the last time of operating system, will start record modification for to start unsuccessfully, the clean boot list of reading pre-stored, starts the application program in clean boot list item by item, then will start record modification for to start successfully.If started to be recorded as and start unsuccessfully last time, stop other self-starting application programs in starting the operating system, and provide prompting message.
Further, os starting protective device also comprises that operating system successfully starts judge module, for whether stablizing according to system performance to threshold interval, determines whether operating system successfully starts; Or finish the whether successfully startup of the definite operating system of sign according to starting.
Further, defence program startup module comprises that defence program adds module and application records removing module.Wherein, defence program adding device, the startup list carrying for defence program being added to operating system.Application records delete cells, all application records of the startup list carrying for deletion action system except defence program.
Preferably, os starting protective device also comprises transmission module, analysis module, feedback module and processing module.
Wherein, upper transmission module, after starting unsuccessfully, the application records of uploading in clean boot list arrives server at every turn.
Analysis module, for causing starting failed application program according to the application records analysis of uploading.
Feedback module, feeds back to defence program for server by analysis result.
Processing module, provides respective handling for the protection of program according to feedback result.
Further, os starting protective device also comprises prompting module, for all application records of clean boot list that defence program is prestored, offers user; Causing of maybe analysis being drawn starts failed application records and offers user.
With reference to Fig. 7; the embodiment tri-of os starting protective device of the present invention is shown, further, also comprises that clean boot list sets up module 50; for when operating system is used defence program, according to normal application program foundation the storage security starting in operating system, start list.
Concrete, clean boot list is set up module 50 and is comprised scanning element, storage unit and delete cells.
Scanning element, the startup list of storing for scan operation system.
Storage unit, for by the startup list scanning except defence program the normal application storage starting in the clean boot list of defence program.
Delete cells, the application records in the startup list of deletion action system except defence program.
Further, os starting protective device of the present invention also comprises update module, for clean boot list is upgraded.
Concrete, update module comprises Condition Monitoring Unit and self-starting detecting unit.
Condition Monitoring Unit, for the state variation of monitor operating system application program.For example, installation of the deletion of original application program, new application program etc.
Self-starting detecting unit, for judging whether the application program that state changes is self-starting application program, if so, upgrades clean boot list.Wherein, upgrading safe list comprises deletion or adds certain the one or more application records in clean boot list.
With reference to Fig. 8, os starting protective device embodiment tetra-of the present invention is shown, comprise os starting module 80 and operating system process analysis module 90.
Os starting module 80, for starting the operating system.
Operating system process analysis module 90, for analysis operation system startup last time self process, if started last time successfully, allows operating system normally to start, otherwise, other process initiations beyond shut-down operation system.
Os starting protective device of the present invention can be placed in the clients such as computing machine or mobile phone, and preferably, operating system protection is placed in mobile terminal, for the os starting protection in mobile terminal.
Os starting guard method of the present invention and device are by os starting, for operating system, whether startup last time successfully judges; by defence program, set up clean boot list; after starting, defence program according to starting record the last time of operating system, determines whether to start the application program in clean boot list again; the situation that the operating system that can avoid causing because application program self is abnormal repeatedly cannot normally start, also can avoid starting and caused need formatting system, lose the situations such as user profile.
Further, in judgement after successfully started last time, first be that this is started to record modification for to start unsuccessfully, after all successfully starting, all application programs again these are started to record modification for to start successfully, can avoid in starting application program process, occurring surprisingly, and revise the situation that starts record.The starting state of recording in assurance startup record accurately and reliably.
In addition, for real-time update in clean boot list, can guarantee promptness, accuracy and the validity of starting protection.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, and each embodiment stresses is the difference with other embodiment, between each embodiment identical similar part mutually referring to.For system embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part is referring to the part explanation of embodiment of the method.
Above os starting guard method provided by the present invention and device are described in detail, applied specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment is just for helping to understand method of the present invention and core concept thereof; , for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention meanwhile.