A kind of method and device processing running of mobile terminal interim card problem
Technical field
The present invention relates to field of computer technology, particularly to a kind of method processing running of mobile terminal interim card problem and
Device.
Background technology
With the development of mobile communication technology and mobile terminal, mobile terminal is gradually popularized in people's life.Mobile
After long-play, the application running in system gets more and more the operating system of terminal, and what one side internal memory was run should
With shared, on the other hand because internal memory is not that distribution in order can produce internal memory space, this partial memory space can't be by
System is utilized, and therefore leads to running of mobile terminal speed more and more slower, feels to be exactly running of mobile terminal interim card to user,
Solving the most direct method of this problem is exactly to restart mobile terminal.
Restart mobile terminal in prior art and be divided into two processes, first process is that operating system is carried out by mobile terminal
Restart;Second process be the operating system of mobile terminal when carrying out restarting process, by operating system nucleus process
Middle interactive service process sends the order of disconnection of wireless network to bottom hardware chip, searches for after the normal startup of system to be operated
Available wireless network, then registration adds wireless network.
Restart mobile terminal and be divided into two processes, and this two processes typically can take a few minutes, if wireless network
In the case of bad, the time needed for this process can be more long, therefore leads to solve the problems, such as that operating system interim card takes too long, effect
Rate is low.
Content of the invention
In order to solve problem of the prior art, embodiments provide a kind of process running of mobile terminal interim card problem
Method and device.Described technical scheme is as follows:
In a first aspect, a kind of method processing running of mobile terminal interim card problem provided in an embodiment of the present invention includes:
Receive the order nullifying mobile terminal;
According to the instruction of described order, obtain the application layer process that described mobile terminal is currently running;
The application layer process being currently running described in termination;
Obtain starting up's item in the system configuration of described mobile terminal operating system, and load described starting up
?.
In the first possible implementation of first aspect, the described instruction according to described order, obtain described shifting
The application layer process that dynamic terminal is currently running, comprising:
According to the instruction of described order, obtain all processes being currently running;
According to the mark of application layer process, the described all processes being currently running obtain application layer process.
In conjunction with the first possible implementation of described first aspect or described first aspect, in the possible reality of second
In existing mode, described acquisition starting up's item in the system configuration of operating system, and load described starting up's item, comprising:
The startup information of described starting up's item, wherein said starting up's item is obtained in the system configuration of operating system
At least include servicing and applying;
It is described service and application establishment process according to described startup information, and be loaded onto in internal memory.
The first possible implementation in conjunction with described first aspect or described first aspect or described first aspect
The possible implementation of second, before receiving the order nullifying mobile terminal described in the third possible implementation,
Methods described also includes:
Receive the order nullifying mobile terminal by log off option, described log off option is to be set in advance in described movement
The option of the confession user operation in terminal.
Second aspect, another kind of device processing running of mobile terminal interim card problem provided in an embodiment of the present invention, described
Device includes:
Receiver module, for receiving the order nullifying mobile terminal;
Acquisition module, for the instruction according to described order, obtains the application layer process that described mobile terminal is currently running;
Terminate module, for the application layer process being currently running described in terminating;
Opening module, for obtaining starting up's item in the system configuration of described mobile terminal operating system, and loads
Described starting up's item.
In the first possible implementation of second aspect, described acquisition module, comprising:
First acquisition unit, for the instruction according to described order, obtains all processes being currently running;
Second acquisition unit, for the mark according to application layer process, obtains in the described all processes being currently running
Application layer process.
In conjunction with the first possible implementation of described second aspect or described first aspect, in the possible reality of second
In existing mode, described opening module, comprising:
3rd acquiring unit, for obtaining the startup information of described starting up's item in the system configuration of operating system,
Wherein said starting up's item at least includes servicing and applying;
Open unit, for being described service and application establishment process according to described startup information, and be loaded onto in internal memory.
The first possible implementation in conjunction with described first aspect or described first aspect or described first aspect
The possible implementation of second, described receiver module specifically for:
Receive the order nullifying mobile terminal by log off option, described log off option is to be set in advance in described movement
The option of the confession user operation in terminal.
Technical scheme provided in an embodiment of the present invention has the benefit that
By terminating the application layer process being currently running it is achieved that solving mobile terminal in the case of not restarting mobile terminal
Run the problem of interim card, the time of saving improves the operational efficiency of operating system.
Brief description
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, will make to required in embodiment description below
Accompanying drawing be briefly described it should be apparent that, drawings in the following description are only some embodiments of the present invention, for
For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings
Accompanying drawing.
Fig. 1 is the method flow diagram of the process running of mobile terminal interim card problem that the embodiment of the present invention one provides;
Fig. 2 is the method flow diagram of the process running of mobile terminal interim card problem that the embodiment of the present invention two provides;
Fig. 3 is the apparatus structure schematic diagram of the process running of mobile terminal interim card problem that the embodiment of the present invention three provides;
Fig. 4 is the apparatus structure schematic diagram of the process running of mobile terminal interim card problem that the embodiment of the present invention four provides;
Fig. 5 is the structural representation of the mobile terminal that the embodiment of the present invention five provides.
Specific embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to embodiment party of the present invention
Formula is described in further detail.
Embodiment one
Embodiments provide a kind of method processing running of mobile terminal interim card problem, referring to Fig. 1, method flow
Including:
101: receive the order nullifying mobile terminal;
102: according to the instruction of described order, obtain the application layer process that described mobile terminal is currently running;
103: the application layer process being currently running described in termination;
104: obtain starting up's item in the system configuration of described mobile terminal operating system, and load described start and open
Dynamic item.
In the case that the application layer process that the embodiment of the present invention is currently running by termination is not it is achieved that restart mobile terminal
Solve the problems, such as running of mobile terminal interim card, the time of saving improves the operational efficiency of operating system.
Embodiment two
Embodiments provide a kind of method processing running of mobile terminal interim card problem, referring to Fig. 2, method flow
Including:
201: receive the order nullifying mobile terminal.
Optionally, the order nullifying mobile terminal can be received by log off option, described log off option is to set in advance
Put the option of the confession user operation in described mobile terminal.In the original setting of the operating system of mobile terminal " shutdown ", " weight
Open " system option menu in increase an option, " nullifies " option, for receive user operation mobile terminal " cancellation "
Option and produce cancellation mobile terminal order, this order be used for start mobile terminal execution nullify mobile terminal operation.
Optionally, using receiving voice or the order that the modes such as gesture to receive cancellation mobile terminal can also be received.
202: according to the instruction of described order, obtain the application layer process that described mobile terminal is currently running.
Because the internal memory that the main cause of operating system interim card is mobile terminal is occupied full, in order to reach quick reboot operation
The purpose of system, terminates to the process in mobile terminal, that is, carry out emptying the operation of internal memory.But internal memory is occupied full
Phenomenon, be due to application layer process is excessive or application layer process committed memory after the internal memory crack phenomenon that produces cause, should
Corresponding with level process is the application of various user installation or starting up's item of operating system acquiescence loading in start, wherein
Service in starting up's item and application broadly fall into application layer process.During emptying internal memory, system-level process need not be by end
Only, only application layer process need to be terminated.Wherein, system-level process is the primary condition of operating system, has these to be
Irrespective of size process, operating system could normally be run, therefore these system-level processes be when operating system normally starts at first by
Create and be out used for supporting the normal operation of system, and application layer process is auxiliary operation system after operating system normally starts
The service running and the corresponding process of application for executing user installation.
Therefore step 202 can particularly as follows:
2021: according to the instruction of described order, obtain all processes being currently running.
2022: according to the mark of application layer process, the described all processes being currently running obtain application layer process.
Mark in different operating system for the application layer process is not necessarily identical, for example: in Android operation system, should
It is to create by parent process to get with level process, and parent process is then systemserver process, system-level process is then direct
Created out by operating system.Therefore can judge to be currently running as mark by parent process systemserver process
Whether process is application layer process.Wherein parent process refers to create the process of one or more subprocess.
203: the application layer process being currently running described in termination.
Terminate application layer process method can be by parent process be systemserver process terminate, will mobile terminal
Application layer process in system all terminates.
204: obtain starting up's item in the system configuration of described mobile terminal operating system, and load described start and open
Dynamic item.
Mobile terminal can inquire about, in start or after restarting, the starting up's item needing to load first in system configuration, including
The service of system and start need the application of automatic running, and wherein service is a kind of system-level application.Therefore step 204 can
With particularly as follows:
2041: obtain the startup information of described starting up's item, wherein said start in the system configuration of operating system
Startup item at least includes servicing and applying.
The content of starting up's item is preserved, including service and application in the system configuration of operating system.Mobile terminal
The process carrying out loading starting up's item is needed, this process is in system configuration after the application layer process run in terminating internal memory
The middle startup information obtaining each starting up's item, wherein startup information include the startup position servicing and applying, in registration
The contents such as the state in table.
2042: establishment process for described service and is applied according to described startup information, and is loaded onto in internal memory.
For servicing and applying establishment process and to be loaded onto the process of internal memory be prior art, here do not repeat.
The embodiment of the present invention is passed through to terminate the application layer process that is currently running, and reload starting up's item it is achieved that
Solve the problems, such as running of mobile terminal interim card in the case of not restarting mobile terminal, save the time of reboot operation system,
And improve the operational efficiency of operating system.
Embodiment three
Embodiments provide a kind of device processing running of mobile terminal interim card problem, referring to Fig. 3, this device bag
Include:
Receiver module 301, for receiving the order nullifying mobile terminal;
Acquisition module 302, for the instruction according to described order, the application that the described mobile terminal of acquisition is currently running is grading
Journey;
Terminate module 303, for the application layer process being currently running described in terminating;
Opening module 304, for obtaining starting up's item in the system configuration of described mobile terminal operating system, and plus
Carry described starting up's item.
In the case that the application layer process that the embodiment of the present invention is currently running by termination is not it is achieved that restart mobile terminal
Solve the problems, such as running of mobile terminal interim card, the time of saving improves the operational efficiency of operating system.
Example IV
Embodiments provide a kind of device processing running of mobile terminal interim card problem, referring to Fig. 4, this device bag
Include:
Receiver module 401, for receiving the order nullifying mobile terminal;
Acquisition module 402, for the instruction according to described order, the application that the described mobile terminal of acquisition is currently running is grading
Journey.
Because the internal memory that the main cause of operating system interim card is mobile terminal is occupied full, in order to reach quick reboot operation
The purpose of system, terminates to the process in mobile terminal, that is, carry out emptying the operation of internal memory.But internal memory is occupied full
Phenomenon, be due to application layer process is excessive or application layer process committed memory after the internal memory crack phenomenon that produces cause, should
It is application or the operating system starting up that acquiescence loads in start of the various user installation being created out with level process
, the wherein service in starting up's item and application broadly falls into application layer process.System-level process during emptying internal memory
Need not be terminated, only need to terminate application layer process.Wherein, system-level process is the primary condition of operating system, has
These system-level processes, operating system could normally be run, and therefore these system-level processes are normally to start in operating system
When be created out at first and run for supporting that system is normal, and application layer process be operating system is normal start after assist
The service of operating system and the corresponding process of application for executing user installation.
Terminate module 403, for the application layer process being currently running described in terminating.
Terminate application layer process method can be by parent process be systemserver process terminate, will mobile terminal
Application layer process in system all terminates.
Opening module 404, for obtaining starting up's item in the system configuration of described mobile terminal operating system, and plus
Carry described starting up's item.
Mobile terminal can inquire about, in start or after restarting, the starting up's item needing to load first in system configuration, including
The service of system and start need the application of automatic running, and wherein service is a kind of system-level application.
Optionally, receiver module 401 receives the order nullifying mobile terminal by log off option, and described log off option is
It is set in advance in the option of the confession user operation in described mobile terminal.
Log off option is set in advance in the option of operating system, the life of the cancellation mobile terminal sending for receive user
Order.Increase an option in the system configuration of the operating system of mobile terminal, " nullify " option, for receive user operation
" cancellation " option of mobile terminal and the order of cancellation mobile terminal that produces, this order is used for starting mobile terminal and executes cancellation
The operation of mobile terminal.
Wherein, described acquisition module 402, comprising:
First acquisition unit 4021, for the instruction according to described order, obtains all processes being currently running.
Second acquisition unit 4022, for the mark according to application layer process, in the described all processes being currently running
Obtain application layer process.
Mark in different operating system for the application layer process is not necessarily identical, for example: in Android operation system, should
It is to create by parent process to get with level process, and parent process is then systemserver process, system-level process is then direct
It is created out.Therefore can judge as mark the process that is currently running whether by parent process systemserver process
For application layer process.Wherein parent process refers to create the process of one or more subprocess.
Wherein, described opening module 404, comprising:
3rd acquiring unit 4041, the startup for obtaining described starting up's item in the system configuration of operating system is believed
Breath, wherein said starting up's item at least includes servicing and applying.
The content of starting up's item is preserved, including service and application in the system configuration of operating system.Mobile terminal
The process carrying out loading starting up's item is needed, this process is in system configuration after the application layer process run in terminating internal memory
The middle startup information obtaining each starting up's item, wherein startup information include the startup position servicing and applying, in registration
The contents such as the state in table.
Open unit 4042, for being described service and application establishment process according to described startup information, and be loaded onto interior
In depositing.
In the case that the application layer process that the embodiment of the present invention is currently running by termination is not it is achieved that restart mobile terminal
Solve the problems, such as running of mobile terminal interim card, the time of saving improves the operational efficiency of operating system.
Embodiment five
Embodiments provide a kind of mobile terminal, referring to Fig. 5.Including:
Memorizer 501, receptor 502 and at least one processor 503.
Be stored with described memorizer 501 designated program data, and described processor 503 calls in described memorizer 501
The program data being stored.
Described receptor 502 is used for receiving the order nullifying mobile terminal.
Optionally, described receptor 502 receives the order nullifying mobile terminal, described log off option by log off option
It is the option of the confession user operation being set in advance in described mobile terminal.
The instruction of the described order that described processor 503 receives according to receptor 502, is obtaining described mobile terminal
The application layer process run;The application layer process being currently running described in termination;Join in the system of described mobile terminal operating system
Put middle acquisition starting up's item, and load described starting up's item;
Wherein said memorizer 501 is additionally operable to store the intermediate result that described processor 503 produces, and intermediate result includes should
With contents such as level processes.
The described instruction according to described order, obtains the application layer process that described mobile terminal is currently running, comprising:
According to the instruction of described order, obtain all processes being currently running;
According to the mark of application layer process, the described all processes being currently running obtain application layer process.
Mark in different operating system for the application layer process is not necessarily identical, for example: in Android operation system, should
It is to create by parent process to get with level process, and parent process is then systemserver process, system-level process is then direct
It is created out.Therefore can judge as mark the process that is currently running whether by parent process systemserver process
For application layer process.Wherein parent process refers to create the process of one or more subprocess.
Described acquisition starting up's item in the system configuration of operating system, and load described starting up's item, comprising:
The startup information of described starting up's item, wherein said starting up's item is obtained in the system configuration of operating system
At least include servicing and applying.
The content of starting up's item is preserved, including service and application in the system configuration of operating system.Mobile terminal
After the application layer process run in terminating internal memory, load the process of starting up's item, system configuration obtains each start
The startup information of startup item, wherein startup information include the startup position servicing and applying, in state in registration table etc.
Hold.
It is described service and application establishment process according to described startup information, and be loaded onto in internal memory.
In the case that the application layer process that the embodiment of the present invention is currently running by termination is not it is achieved that restart mobile terminal
Solve the problems, such as running of mobile terminal interim card, the time of saving improves the operational efficiency of operating system.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can pass through hardware
To complete it is also possible to the hardware being instructed correlation by program is completed, described program can be stored in a kind of computer-readable
In storage medium, storage medium mentioned above can be read only memory, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all spirit in the present invention and
Within principle, any modification, equivalent substitution and improvement made etc., should be included within the scope of the present invention.