Summary of the invention
Technical matters to be solved by this invention provides a kind of os starting guard method and device; can in the system starting process of computing machine or portable terminal, protect operating system normally to start, avoid occurring repeatedly starting all and can't case of successful occur.
In order to address the above problem, the invention discloses a kind of os starting guard method, may further comprise the steps:
Start the operating system;
Before other application program launchings, start defence program;
The startup record of defence program analysis operation system checks whether startup last time is successful, if success then normally starts, otherwise, the then startup of application program in the shut-down operation system in the os starting process.
Further, described method also comprises:
If started successfully last time, then in this starts, will start record modification for starting failure, the clean boot tabulation of reading pre-stored, start the application program in the clean boot tabulation item by item, all will start record modification for to start successfully after the application program launching success.
Further, the standard that successfully starts of described decision operation system comprises:
The system performance stable threshold is set, whether stablizes to threshold interval according to system performance and determine whether operating system successfully starts; Or
In operating system, be provided with to start and finish sign, determine according to starting the end sign whether operating system successfully starts.
Further, the described defence program that started before other application program launchings comprises:
Defence program is added in the startup tabulation that operating system carries;
All application records in the startup tabulation that the deletion action system carries except that defence program.
Further, described method also comprises:
After each startup failure, the application records of uploading in the clean boot tabulation arrives server;
Server causes starting the application program of failure according to the application records analysis of uploading;
Server feeds back to defence program with analysis result;
Defence program provides respective handling according to feedback result.
Further, described method also comprises:
All application records in the clean boot tabulation that defence program is prestored offer the user; Or
The application records that causes starting failure that analysis is drawn offers the user.
Further, described method also comprises:
The user carries out respective handling according to the application records application programs of obtaining.
Further, described method also comprises:
When operating system was used defence program, defence program was recorded in normal application program started in the operating system, sets up the clean boot tabulation.
Further, described defence program is set up the process of clean boot tabulation and is:
The startup tabulation of storing in the scan operation system;
With in the startup of the operating system tabulation except that defence program normally application program started be recorded in during clean boot tabulates;
Application program in the startup tabulation of deletion action system except that defence program.
Further, described method also comprises:
Renewal clean boot tabulation.
Further, described renewal clean boot tabulation comprises:
The state variation of application program in the monitor operating system;
Judge whether the application program that state changes is the self-starting application program, if then upgrade the clean boot tabulation.
Further, described starting the operating system comprises:
Start the operating system in the portable terminal.
In order to address the above problem, the invention also discloses a kind of os starting guard method, may further comprise the steps:
Start the operating system;
Analysis operation system startup last time self process if started successfully last time, then allows operating system normally to start, otherwise, other process initiations beyond the then shut-down operation system.
In order to address the above problem, the invention also discloses a kind of os starting protective device, comprising:
The os starting module is used to start the operating system;
The defence program module is used for starting defence program before other application program launchings;
Start History Parser Module, be used for the startup record of analysis operation system, check whether startup last time is successful, if success then normally starts, otherwise, the then startup of application program in the shut-down operation system in the 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, then in starting, this will start record modification for starting failure, the clean boot tabulation of reading pre-stored, start the application program in the clean boot tabulation item by item, will start record modification then for to start successfully.
Further, described device also comprises:
Operating system successfully starts judge module, is used for determining to threshold interval whether operating system successfully starts according to system performance is whether stable; Or
Finish the whether successfully startup of the definite operating system of sign according to starting.
Further, described defence program startup module comprises:
The defence program adding device is used for adding defence program to startup tabulation that operating system carries;
The application records delete cells is used for startup tabulation all application records except that defence program that the deletion action system carries.
Further, described device also comprises:
Last transmission module, after each startup failure, the application records of uploading in the clean boot tabulation arrives server;
Analysis module is used for server causes starting failure according to the application records analysis of uploading application program;
Feedback module is used for server analysis result is fed back to defence program;
Processing module is used for defence program and provides respective handling according to feedback result.
Further, described device also comprises:
Prompting module, all application records that the clean boot that is used for that defence program is prestored is tabulated offer the user; The application records that causes starting failure that maybe analysis is drawn offers the user.
Further, described device also comprises:
Module is set up in the clean boot tabulation, is used for when operating system is used defence program, sets up the clean boot tabulation according to normal application program started in the operating system.
Further, described clean boot tabulation is set up module and is comprised:
Scanning element is used for the startup tabulation that the scan operation system stores;
Storage unit, the startup tabulation normal application program started except that defence program that is used for scanning is stored in the clean boot tabulation of defence program;
Delete cells, the application records in the startup tabulation of deletion action system except that defence program.
Further, described device also comprises:
Update module is used for the clean boot tabulation is upgraded.
Further, described update module comprises:
Condition Monitoring Unit is used for the state variation of monitor operating system application program;
The self-starting detecting unit is used for judging whether the application program that state changes is the self-starting application program, if then upgrade the clean boot tabulation.
Further, described device places in the portable terminal, is used for the os starting protection in the portable terminal.
In order to address the above problem, the invention also discloses a kind of os starting protective device, comprising:
The os starting module is used to start the operating system;
Operating system process analysis module is used for analysis operation system startup last time self process, if started successfully last time, then allows operating system normally to start, otherwise, other process initiations beyond the then shut-down operation system.
Compared with prior art, the present invention has the following advantages:
Whether os starting guard method of the present invention and device be by successfully judging for starting operating system last time in os starting; set up the clean boot tabulation by defence program; after starting, defence program writes down the application program that determines whether to start in the clean boot tabulation according to startup last time of operating system again; the situation that the operating system that can avoid causing because application program self is unusual repeatedly can't normally start also can avoid starting needing formatting system, losing situation such as user profile of being caused.
Further, judge successfully started last time after, at first be that this is started record modification for starting failure, after all successfully starting, all application programs again these are started record modification for to start successfully, can avoid in starting the application program process, occurring unexpected, and revise the situation that starts record, the starting state of being put down in writing in the assurance startup record is accurately and reliably.
In addition, for real-time update in the clean boot tabulation, can guarantee to start promptness, accuracy and the validity of protection.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, the present invention is further detailed explanation below in conjunction with the drawings and specific embodiments.
Os starting guard method of the present invention and device are applied to clients such as computing machine, mobile phone, are used for the starting up of client is protected, and it can be started normally.Concrete, the application's os starting guard method and device can realize by computer program, and be installed in the client, carries out by the operation of processor.
With reference to Fig. 1, the embodiment one of os starting guard method of the present invention is shown, may further comprise the steps:
Step 101 starts the operating system.
Start the operating system and to start according to user's order or according to starting predetermined start-up time.
Step 102 started defence program before other application program launchings.
Can in advance defence program be installed in the clients such as computing machine or mobile phone, when the client user starts the operating system of client, before other application program launchings, at first start defence program by operating system.Concrete, defence program can be added in the startup tabulation that operating system carries, when os starting, the defence program that starts in the tabulation also can self-starting.
In order to guarantee at os starting is that application program launching of defence program is only arranged; after in defence program being added to the startup tabulation that operating system carries, all application records in the startup tabulation that needs to carry in the deletion action system except that defence program.
Step 103, the startup record of defence program analysis operation system checks whether startup last time is successful, if success then normally starts the operating system, otherwise, the then startup of application program in the shut-down operation system in the os starting process.
Defence program can come the starting state of recording operation system according to actual startup situation in each back that starts, and covers record last time automatically, guarantees that the starting state of record is the actual conditions of preceding one-shot.For example,, then the starting state of storage can be revised as and start successfully if this starts successfully, otherwise, then the starting state of storing is revised as startup and fails.When each os starting, determine the operation that this need be done by the starting state of checking last time.
If the starting state of last time is failure, then illustrate in the self-starting application program, to have occurred unusually, may produce by some application programs unusually, also may be by the several application programs combination results.So, be recorded as in the startup of finding last time and start failure, defence program can be in the os starting process startup of other self-triggered programs in the 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, search the reason that can't normally start by the user.
With reference to Fig. 2, os starting guard method embodiment two of the present invention is shown, further, further comprising the steps of after the step 103 of embodiment one:
Step 201 is if started successfully last time, then in this starts, to start record modification for starting failure, the clean boot tabulation of reading pre-stored starts the application program in the clean boot tabulation item by item, all will start record modification for to start successfully after the application program launching success.
When the startup of last time is recorded as when starting successfully, then will start record and temporarily be revised as and start failure, this is failure to occur for fear of the application program in follow-up startup clean boot tabulation, and the situation that can't revise starting state occurs.For example; during application program in starting clean boot tabulation item by item; starting to a certain goes wrong; may cause the startup failure of operating system so; do not start record if do not revise in advance, when restarting next time, the starting state that writes down in the defence program still is the previous startup record in startup last time so; promptly start successfully the situation that this just may cause starting state really to be recorded.Therefore, need after all successfully starting, the application program in the clean boot tabulation will start record modification again for to start successfully.
Wherein, can determine by the system performance stable threshold is set in the standard that the decision operation system successfully starts, promptly whether stablize to threshold interval and determine whether operating system successfully starts according to system performance, for example, initialization system stable performance threshold value is made as if memory usage or CPU usage reduce to 30%.In addition, also can finish sign, determine according to starting the end sign whether operating system successfully starts by in operating system, being provided with to start.
Further, defence program can also provide analysis result when providing user reminding information, promptly may cause the normally tabulation of application program started of operating system.Application program in the tabulation can be all application programs in the clean boot tabulation, also can be to analyze the certain applications program that draws according to oneself.
Can realize by following manner according to oneself analyzing the certain applications program that draws: after each startup failure, the application records of uploading in the clean boot tabulation arrives server, and server causes starting the application program of failure according to the application records analysis of uploading.For example, in the operating system of different clients, all comprise some or certain several application program in the application records of the clean boot tabulation of uploading after the startup failure, server can be learnt by analysis, the possibility that these application programs cause starting failure is bigger, thereby obtains the application program that causes starting failure.Server obtains the application program that causes starting failure can feed back to defence program, and defence program provides respective handling according to feedback result.
In addition, the user can come according to the tabulation that defence program provides various programs are detected or handle accordingly.For example; according to selecting one of them application program to start in the tabulation that provides at defence program item by item; perhaps select wherein certain two or certain several program to start; cause operating system normally during application program started finding, then can delete this application program or it is repaired or the like operation.
With reference to Fig. 3, the embodiment three of os starting guard method of the present invention is shown, further, before step 101, also comprise the steps:
Step 301, when operating system was used defence program, defence program was recorded in normal application program started in the operating system, sets up the clean boot tabulation.
The foundation of clean boot tabulation can be set up by defence program when using for the first time after defence program is installed on operating system.Wherein the process of Jian Liing is as follows:
Step D1, the startup of storing in scan operation system tabulation.
Step D2 is in normally the application program started clean boot that is recorded in defence program is tabulated except that defence program in the startup of the operating system tabulation.
Step D3, the application records in the startup tabulation of deletion action system except that defence program.
Start tabulation because in operating system, generally all can carry one; be used to write down the application program that needs self-starting; defence program will all be stored in the clean boot tabulation except the application program the defence program self by the startup tabulation of storing in the scan operation system, and deletion starts the record of these application programs in the tabulation.When starting once more, the self-triggered program that is comprised in the startup tabulation 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:
Renewal clean boot tabulation.
In order to guarantee the promptness and the validity of clean boot tabulation, need the clean boot real-time update of tabulating specifically be may further comprise the steps:
Step S1, the state variation of application program in the monitor operating system.
State variation comprises the deletion of original application program, installation of new application program or the like.Installation and deletion information by application programs can get access to state change information.
Step S2 judges whether the application program that state changes is the self-starting application program, if then upgrade the clean boot tabulation.
If state variation is the deletion of original self-starting application program, upgrades the clean boot tabulation so and be corresponding application program record in the deletion clean boot tabulation.
If the installation of the stylish self-starting application program of state variation is upgraded the clean boot tabulation so for the corresponding application program record being added in the clean boot tabulation to this application records in the startup tabulation of storing in the deletion action system simultaneously.
With reference to Fig. 4, os starting guard method embodiment four of the present invention is shown, may further comprise the steps:
Step 401 starts the operating system.
Step 402, analysis operation system startup last time self process if started successfully last time, then allows operating system normally to start, otherwise, other process initiations beyond the then shut-down operation system.
Behind each os starting; defence program is noted self the startup process when time operating system; when operating system startup next time; by analysis to process; determine whether operating system started success 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 used for the os starting protection of portable terminal.
With reference to Fig. 5, the embodiment one of os starting protective device of the present invention is shown, each module in this system is meant the computer program of writing based on computerese, is stored in the client, and moves by processor.
The 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 is used to start the operating system.
Defence program starts module 20, is used for starting defence program before other application program launchings.
Start History Parser Module 30, be used for the startup record of analysis operation system, check whether startup last time is successful,, if success then normally starts, otherwise, the then startup of application program in the shut-down operation system in the os starting process.
With reference to Fig. 6, further, the os starting protective device also comprises and starts determination module 40, is used 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 analyzed.If started to be recorded as and start successfully the last time of operating system, then will start record modification for starting failure, the clean boot tabulation of reading pre-stored starts the application program in the clean boot tabulation item by item, will start record modification then for to start successfully.Started failure if started last time to be recorded as, other self-starting application programs in then stopping to start the operating system, and provide prompting message.
Further, the os starting protective device comprises that also operating system successfully starts judge module, is used for determining to threshold interval whether operating system successfully starts according to system performance is whether stable; Or according to starting the whether successfully startup of the definite operating system of end sign.
Further, defence program startup module comprises that defence program adds module and application records removing module.Wherein, the defence program adding device is used for adding defence program to startup tabulation that operating system carries.The application records delete cells is used for startup tabulation all application records except that defence program that the deletion action system carries.
Preferably, the os starting protective device also comprises transmission module, analysis module, feedback module and processing module.
Wherein, last transmission module, after each startup failure, the application records of uploading in the clean boot tabulation arrives server.
Analysis module is used for causing starting according to the application records analysis of uploading the application program of failure.
Feedback module is used for server analysis result is fed back to defence program.
Processing module is used for defence program and provides respective handling according to feedback result.
Further, the os starting protective device also comprises prompting module, and all application records that the clean boot that is used for that defence program is prestored is tabulated offer the user; The application records that causes starting failure that maybe analysis is drawn offers the user.
With reference to Fig. 7; the embodiment three of os starting protective device of the present invention is shown, further, comprises that also clean boot tabulation sets up module 50; be used for when operating system is used defence program, set up and storage security startup tabulation according to normal application program started in the operating system.
Concrete, the clean boot tabulation is set up module 50 and is comprised scanning element, storage unit and delete cells.
Scanning element is used for the startup tabulation that the scan operation system stores.
Storage unit, the startup tabulation normal application program started except that defence program that is used for scanning is stored in the clean boot tabulation of defence program.
Delete cells, the application records in the startup tabulation of deletion action system except that defence program.
Further, os starting protective device of the present invention also comprises update module, is used for the clean boot tabulation is upgraded.
Concrete, update module comprises Condition Monitoring Unit and self-starting detecting unit.
Condition Monitoring Unit is used for the state variation of monitor operating system application program.For example, installation of the deletion of original application program, new application program or the like.
The self-starting detecting unit is used for judging whether the application program that state changes is the self-starting application program, if then upgrade the clean boot tabulation.Wherein, the renewal safe list comprises a certain or multinomial application records in deletion or the interpolation clean boot tabulation.
With reference to Fig. 8, os starting protective device embodiment four of the present invention is shown, comprise os starting module 80 and operating system process analysis module 90.
Os starting module 80 is used to start the operating system.
Operating system process analysis module 90 is used for analysis operation system startup last time self process, if started successfully last time, then allows operating system normally to start, otherwise, other process initiations beyond the then shut-down operation system.
Os starting protective device of the present invention can place clients such as computing machine or mobile phone, and preferably, the operating system protection places in the portable terminal, is used for the os starting protection in the portable terminal.
Whether os starting guard method of the present invention and device be by successfully judging for starting operating system last time in os starting; set up the clean boot tabulation by defence program; after starting, defence program writes down the application program that determines whether to start in the clean boot tabulation according to startup last time of operating system again; the situation that the operating system that can avoid causing because application program self is unusual repeatedly can't normally start also can avoid starting needing formatting system, losing situation such as user profile of being caused.
Further, judge successfully started last time after, at first be that this is started record modification for starting failure, after all successfully starting, all application programs again these are started record modification for to start successfully, can avoid accident in starting the application program process, occurring, and revise the situation that starts record.The starting state of being put down in writing in the assurance startup record accurately and reliably.
In addition, for real-time update in the clean boot tabulation, can guarantee to start promptness, accuracy and the validity of protection.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed all is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.For system embodiment, because it is similar substantially to method embodiment, so description is fairly simple, relevant part gets final product referring to the part explanation of method embodiment.
More than os starting guard method provided by the present invention and device are described in detail, used specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.