Detailed description of the invention
Here will illustrate exemplary embodiment in detail, its example represents in the accompanying drawings.Explained below relates to
During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous key element.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the embodiment of the present invention.On the contrary, they be only with
The example of apparatus and method consistent in terms of some that described in detail in appended claims, the embodiment of the present invention.
In order to solve when the terminal of user occurs abnormal, it usually needs user's brush machine processes, and then may cause terminal
The problem scrapped, the embodiment of the present invention provide firstly a kind of terminal control method, applies in the terminal, as it is shown in figure 1, the party
Method may include steps of:
In step s 110, when the system operation exception of terminal being detected, control terminal and enter system reparation pattern.
Along with the increase of the nonvolatile storage read-write data times such as the Nor Flash in terminal, Nand Flash, Nor
Occur that the probability of abnormal data also can be greatly increased on the nonvolatile storages such as Flash, Nand Flash, once Nor Flash
Or the non-dynamic file on Nand Flash, as abnormal data occur in system subregion, boot subregion etc., it will usually cause terminal
Cannot normally use.Therefore, the terminal in the embodiment of the present invention occurs extremely referring to Nor Flash or Nand Flash in terminal
On non-dynamic file in occur that improper phenomenon occurs in the terminal that abnormal data causes.The exception of this terminal make terminal without
Method is run normally so that user cannot normally use this terminal, and at this moment terminal can enter system and repair pattern.
The operating system installed due to different types of terminal is different, installs Android system with terminal in the embodiment of the present invention
As a example by illustrate.
In the step s 120, when getting user's system resumes operation in system reparation pattern, obtain in terminal
The system prestored in backup subregion installs file.
Terminal in the embodiment of the present invention enters system and repairs pattern, as a example by Android operation system, refers to that terminal enters
The recovery page, this recovery page is included a series of function choosing-item, and supports to be selected the control of terminal by remote controller
Select, in this recovery page option, including: the options such as factory reset, system recovery and system upgrade.
When getting the option operations that user selects system recovery in the recovery page, obtain the backup in terminal
The system prestored in subregion installs file.Wherein, in the embodiment of the present invention, pre-set a backup subregion in terminal,
And the system installation file of terminal is stored in this backup subregion.It is a complete system bag that this system installs file, logical
Cross this system installation file and terminal can be reinstalled system.Certainly, this system installs the version of file and the current of terminal
Version is corresponding, and once terminal occurs abnormal, can install literary composition by the system being stored in advance on terminal backup subregion storage
Terminal is reset system by part, in order to terminal, can be properly functioning after refitting system.
In step s 130, system is installed file to be deployed in terminal.
Owing to terminal occurs that abnormal reason is mainly the non-dynamic file on Nor Flash or Nand Flash, as
System subregion, boot subregion etc. occur that abnormal data is caused, and therefore, are deployed in the process of terminal system is installed file
In, need the relevant partitions such as the boot subregion in terminal, system subregion are formatted, different with eliminate on these subregions
Regular data, if there being flash bad block can also repair it, then installing file by system and being installed in terminal.
The terminal control method provided in the embodiment of the present invention, when operation exception occurs in system terminal being detected, needs
Terminal to be controlled enters system and repairs pattern, when getting user's system resumes operation in this system reparation pattern, obtains
Take and back up in subregion the system prestored in terminal file is installed, and this system installation Documents Department is deployed in terminal.Due to
When the system of terminal occurs abnormal, it is the most all to draw owing to the non-dynamic generation data of some default subregions occur abnormal
Rise, hence with the system that prestores, file is installed and terminal is reset system, the abnormal number in default subregion can be eliminated
According to so that the system of terminal can be properly functioning, it is to avoid terminal may be caused when terminal occurs abnormal impaired because of user's brush machine
Problem.
As the refinement of Fig. 1 method, in order to determine the system whether operation exception of terminal, in the another reality that the present invention provides
Execute in example, as in figure 2 it is shown, the method can also comprise the steps:
In step S140, whether the default subregion of detection terminal there is abnormal data.
When abnormal data occurs in default subregion terminal being detected, in step S150, determine that the system of terminal is different
Often run.
Default subregion in the embodiment of the present invention, refers to the subregions such as the boot subregion in terminal, system subregion.Due to
Above-mentioned default subregion belongs to non-dynamic generation file, abnormal data occurs in the most above-mentioned default subregion, can give the system of terminal
Properly functioning cause serious consequence, it is likely that cause the misoperation of system, cause user cannot normally use terminal, therefore need
Whether the default subregion of terminal to be detected there is abnormal data, in the default subregion detect terminal, abnormal data occurs
Time, it is possible to determine that the system exception of terminal runs.
As the refinement of Fig. 2 method, in the another embodiment that the present invention provides, as it is shown on figure 3, step S140 is all right
Comprise the steps:
In step s 141, when starting up of terminal, whether detection terminal can normally enter desktop starter.
When terminal can not normally enter desktop starter, in step S142, determine in the default subregion of terminal and occur
Abnormal data.
In the embodiment of the present invention, the system of terminal is as a example by Android operation system, when starting up of terminal, can start in terminal
Operating system, if the operating system of terminal is normal, then the desktop starter in Android system can be normally entered
Launcher, if system can not enter launcher, or produces abnormal conditions, such as launcher card when launcher enters
Pause, dodge situations such as moving back, it is likely that be because in the default subregion of terminal occurring in that abnormal data is caused.Therefore, the present invention is real
Execute in example and can normally enter whether launcher abnormal data occurs in the default subregion judge terminal with detection terminal.
As the refinement of Fig. 1 method, in the another embodiment that the present invention provides, as shown in Figure 4, step S130 is all right
Comprise the steps:
In step S131, by the default partition format in terminal.
In step S132, system is installed file and is installed in terminal.
Owing to terminal occurs that abnormal reason is mainly the non-dynamic file on Nor Flash or Nand Flash, as
System subregion, boot subregion etc. occur that abnormal data is caused, and therefore, are deployed in the process of terminal system is installed file
In, need the relevant partitions such as the boot subregion in terminal, system subregion are formatted, different with eliminate on these subregions
Regular data, if there being flash bad block can also repair it, and installs file by system and is installed in terminal.
The system that is previously stored with in the backup subregion of terminal in the embodiment of the present invention installs file, every time to terminal
During system upgrade, it is also desirable to this system is installed document upgrading, it is up-to-date version to ensure that this system installs file, therefore,
As the refinement of Fig. 1 method, in the another embodiment that the present invention provides, as it is shown in figure 5, the method can also include walking as follows
Rapid:
In step S160, it is judged that whether terminal gets system update request.
When terminal gets system update request, in step S170, obtain system update packet.
In step S180, by system update bag, the system prestored on backup subregion is installed file and update.
When terminal gets system update request, the system that can get explanation terminal has up-to-date version, at this moment eventually
End can obtain the packet of renewal, such as, download from server.After terminal gets system update packet, can be to system
Upgrade.At this moment, when terminal gets system update packet, the system to prestoring in backup subregion is needed to install
File is upgraded, and is up-to-date version to ensure that the system prestored in backup subregion installs file.
The terminal control method provided in the embodiment of the present invention, when operation exception occurs in system terminal being detected, needs
Terminal to be controlled enters system and repairs pattern, when getting user's system resumes operation in this system reparation pattern, obtains
Take and back up in subregion the system prestored in terminal file is installed, and this system installation Documents Department is deployed in terminal.Due to
When the system of terminal occurs abnormal, it is the most all to draw owing to the non-dynamic generation data of some default subregions occur abnormal
Rise, hence with the system that prestores, file is installed and terminal is reset system, the abnormal number in default subregion can be eliminated
According to so that the system of terminal can be properly functioning, it is to avoid terminal may be caused when terminal occurs abnormal impaired because of user's brush machine
Problem.And the system being stored in advance in backup subregion can also be installed file and is updated by the embodiment of the present invention, with
Just the system of terminal is reinstalled constantly, so that the system after reinstalling is needing to utilize this system to install file
New version.
By the description of above embodiment of the method, those skilled in the art is it can be understood that arrive the present invention in fact
Execute example to add the mode of required general hardware platform by software and realize, naturally it is also possible to by hardware, but a lot of situation
Lower the former be more preferably embodiment.Based on such understanding, the technical scheme of the embodiment of the present invention is the most in other words to existing
The part having technology to contribute can embody with the form of software product.
It addition, as the realization to the various embodiments described above, the embodiment of the present invention additionally provides a kind of terminal control mechanism, should
Device is positioned in terminal, and as shown in Figure 6, this device includes: control unit 10, file obtaining unit 20, system install Documents Department
Administration's unit 30 He, wherein,
Control unit 10, for when the system operation exception of described terminal being detected, controls described terminal and enters system
Reparation pattern;
File obtaining unit 20, is used for when getting user's system resumes operation in described system reparation pattern,
Obtain and in described terminal, back up the system installation file prestored in subregion;
System installs file deployment unit 30, is deployed in described terminal by described system installation file.
In still another embodiment of the process, based on Fig. 6, as it is shown in fig. 7, described device also includes:
Whether anomaly data detection unit 40, there is abnormal data in the default subregion detecting described terminal;
System exception runs and determines unit 50, for there is abnormal data in the default subregion detect described terminal
Time, determine that the system exception of described terminal runs.
In still another embodiment of the process, based on Fig. 7, as shown in Figure 8, described anomaly data detection unit 40, including:
Desktop starter detection module 41, for when described starting up of terminal, detects whether described terminal can normally enter
Desktop starter;
Abnormal data determines module 42, for when described terminal can not normally enter desktop starter, determines described end
There is abnormal data in the default subregion of end.
In still another embodiment of the process, based on Fig. 7, as it is shown in figure 9, described system installs file deployment unit 30, bag
Include:
Preset partition format module 31, for by the default partition format in described terminal;
System file installs module 32, for described system installation file is installed to described terminal.
In still another embodiment of the process, based on Fig. 6, as shown in Figure 10, this device also includes:
More newly requested judging unit 60, is used for judging whether described terminal gets system update request;
More new data packets acquiring unit 70, for when described terminal gets system update request, obtaining system update
Packet;
System installs file updating block 80, for being prestored on described backup subregion by described system update bag
System install file update.
About the device in above-described embodiment, wherein modules performs the concrete mode of operation in relevant the method
Embodiment in be described in detail, explanation will be not set forth in detail herein.
The terminal control mechanism provided in the embodiment of the present invention, when operation exception occurs in system terminal being detected, needs
Terminal to be controlled enters system and repairs pattern, when getting user's system resumes operation in this system reparation pattern, obtains
Take and back up in subregion the system prestored in terminal file is installed, and this system installation Documents Department is deployed in terminal.Due to
When the system of terminal occurs abnormal, it is the most all to draw owing to the non-dynamic generation data of some default subregions occur abnormal
Rise, hence with the system that prestores, file is installed and terminal is reset system, the abnormal number in default subregion can be eliminated
According to so that the system of terminal can be properly functioning, it is to avoid terminal may be caused when terminal occurs abnormal impaired because of user's brush machine
Problem.And the system being stored in advance in backup subregion can also be installed file and is updated by the embodiment of the present invention, with
Just the system of terminal is reinstalled constantly, so that the system after reinstalling is needing to utilize this system to install file
New version.
The embodiment of the present invention also provides for a kind of terminal, and as shown in figure 11, this terminal 210 includes: at least one processor
211, at least one bus 212, at least one communication interface 213 and at least one memorizer 214, wherein,
Memorizer 211 is used for storing computer executed instructions;Memorizer 204 can include read only memory and random access memory
Memorizer, and provide instruction and data to processor 201.A part for memorizer 204 can also include that non-volatile random is deposited
Access to memory (NVRAM, Non-Volatile Random Access Memory);
Processor 211 is connected by bus 212 with communication interface 213, memorizer 214;
In an embodiment of the invention, when computer runs, processor 211 performs the meter of storage in memorizer 214
Calculation machine performs instruction, and processor 211 can perform the step in embodiment illustrated in fig. 1, be used for:
When the system operation exception of described terminal being detected, control described terminal and enter system reparation pattern;
When getting user's system resumes operation in described system reparation pattern, obtain backup point in described terminal
The system prestored in district installs file;
Described system installation file is deployed in described terminal.
It is understood that the embodiment of the present invention can be used in numerous general or special purpose computing system environment or configuration.
Such as: personal computer, server computer, handheld device or portable set, laptop device, multicomputer system, base
In the system of microprocessor, set top box, programmable consumer-elcetronics devices, network PC, minicomputer, mainframe computer, bag
Include distributed computing environment of any of the above system or equipment etc..
The embodiment of the present invention can be described in the general context of computer executable instructions, example
Such as program module.Usually, program module include perform particular task or realize the routine of particular abstract data type, program,
Object, assembly, data structure etc..The embodiment of the present invention can also be put into practice in a distributed computing environment, distributed at these
In computing environment, the remote processing devices connected by communication network perform task.In a distributed computing environment,
Program module may be located in the local and remote computer-readable storage medium including storage device.
It should be noted that in this article, such as the relational terms of " first " and " second " or the like is used merely to one
Individual entity or operation separate with another entity or operating space, and not necessarily require or imply these entities or operate it
Between exist any this reality relation or order.And, term " includes ", " comprising " or its any other variant are intended to
Contain comprising of nonexcludability, so that include that the process of a series of key element, method, article or equipment not only include those
Key element, but also include other key elements being not expressly set out, or also include for this process, method, article or set
Standby intrinsic key element.In the case of there is no more restriction, statement " including ... " key element limited, it is not excluded that
Other identical element is there is also in including the process of described key element, method, article or equipment.
Those skilled in the art, after considering description and putting into practice inventive embodiments disclosed herein, will readily occur to this
Other embodiment of bright embodiment.The application is intended to any modification of the embodiment of the present invention, purposes or adaptability and becomes
Changing, these modification, purposes or adaptations are followed the general principle of the embodiment of the present invention and include the embodiment of the present invention
Undocumented common knowledge in the art or conventional techniques means.Description and embodiments is considered only as exemplary,
The true scope of the embodiment of the present invention and spirit are pointed out by claim below.
It should be appreciated that the embodiment of the present invention is not limited to accurate knot described above and illustrated in the accompanying drawings
Structure, and various modifications and changes can carried out without departing from the scope.The scope of the embodiment of the present invention is only by appended right
Require to limit.