Invention content
The main technical problem to be solved in the present invention is to provide a kind of mobile terminal and its starting-up method, solves existing shifting
The problem of data partition remaining space of dynamic terminal system after certain value less than that cannot be switched on.
In order to solve the above technical problems, the present invention provides a kind of mobile terminal-opening method, including:
When system data partition remaining space can not meet normal boot-strap startup program, receive and enter system self-saving model
Instruction enters self-saving model;
Under the self-saving model, deleted from the secure memory location of the mobile terminal system data partition at least one
Preset booting cache file, until the system data partition remaining space meets needed for normal boot-strap startup program.
In an embodiment of the present invention, it further includes:
In the secure memory location of the system data partition, at least one booting cache file is set.
In an embodiment of the present invention, at least one institute is set in the secure memory location of the system data partition
Booting cache file is stated to include:
It is preset at least one described in the secure memory location of the system data partition before mobile terminal manufacture
Be switched on cache file;
Or,
It is at least one in the secure memory location setting of the system data partition during the mobile terminal-opening
The booting cache file;
Or,
It is at least one in the secure memory location setting of the system data partition in the mobile terminal shutdown process
The booting cache file.
In an embodiment of the present invention, in the mobile terminal-opening or shutdown process, in the system data
At least one booting cache file of secure memory location setting of subregion includes:
Judge whether the currently stored booting cache file number of the secure memory location is less than predetermined number, such as
It is no, normal boot-strap or shutdown programm are gone to, if so, judging whether the current residual space of the system data partition is set enough
One booting cache file;If so, the secure memory location in the system data partition sets a booting slow
File is deposited, until current residual space is not enough to the booting cache file of setting one or booting cache file number equal to pre-
If until number, if not, going to normal boot-strap or shutdown programm.
In an embodiment of the present invention, it further includes:During the mobile terminal-opening, the system data point
When area's current residual space is insufficient to the booting cache file of setting one, sends prompting user and prestore and insufficient space or send out
User is forced to delete the instruction of application program.
In an embodiment of the present invention, the secure memory location of the system data partition for user access less than
Storage location.
To solve the above-mentioned problems, the present invention also provides a kind of mobile terminal, the mobile terminal includes command reception
Module, module of saving oneself;
Described instruction receiving module is used for when system data partition remaining space can not meet normal boot-strap startup program,
It receives and enters the instruction of system self-saving model into self-saving model;
The module of saving oneself is used under the self-saving model, from the secure storage of the mobile terminal system data partition
At least one preset booting cache file is deleted in position, is opened until the system data partition remaining space meets normal boot-strap
Needed for dynamic program.
In an embodiment of the present invention, the mobile terminal further includes:
File setup module, the file setup module are used to set in the secure memory location of the system data partition
At least one booting cache file.
In an embodiment of the present invention, the file setup module is in the secure storage position of the system data partition
Installing at least one booting cache file is:
It is at least one described in the secure memory location setting of the system data partition before mobile terminal manufacture
Be switched on cache file;
Or,
It is at least one in the secure memory location setting of the system data partition during the mobile terminal-opening
The booting cache file;
Or,
It is at least one in the secure memory location setting of the system data partition in the mobile terminal shutdown process
The booting cache file.
In an embodiment of the present invention, the mobile terminal further includes
Alarm module, the alarm module are used for during the mobile terminal-opening, judge the system data point
When area's current residual space is insufficient to set a booting cache file, the instruction that user is prompted to prestore insufficient space is sent
Or send out the instruction that user is forced to delete application program.
The beneficial effects of the invention are as follows:
Mobile terminal and its starting-up method provided by the invention, when mobile terminal system data partition remaining space is less than one
When definite value causes to be switched on, receive and enter the instruction of system self-saving model into self-saving model;Under the self-saving model, from movement
The secure memory location of terminal system data partition deletes at least one preset booting cache file, until system data partition
Remaining space meets needed for normal boot-strap startup program;As it can be seen that the present invention is by advance in the data partition of mobile terminal system
Setting booting cache file, then will setting in booting when detecting that system data partition remaining space is less than booting threshold value
Booting cache file delete so that the enough space of system to be given to realize normal boot-strap, without carrying out brush machine, avoid again
The data that user stores is caused to leak or lose during brush machine, improves the satisfaction of user experience.
Specific embodiment
The present invention in the data partition of mobile terminal system by setting booting cache file in advance, in booting when detection
To system data partition remaining space be less than booting threshold value when, then by the booting cache file of setting delete with give system enough
Normal boot-strap is realized in space, without carrying out brush machine, the data that user is caused to store during brush machine again is avoided to leak
Or lose, improve the satisfaction of user experience.The present invention is made below by specific embodiment combination attached drawing further detailed
It describes in detail bright.
Self-saving model in the present embodiment refers to during being booted up according to normal boot-strap module, because of system data partition
When remaining space is too small to lead to be unable to normal boot-strap, realize that mobile terminal when scheme provided by the invention boots up is entered
Pattern.
Based on above description, Fig. 1 is referred to, which show the flow diagram of mobile terminal-opening in the present embodiment,
Including:
Step 101:When system data partition remaining space can not meet normal boot-strap startup program, receive and enter system
Self-saving model instruction enters self-saving model;
Step 102:At least one preset open is deleted from the secure memory location of the mobile terminal system data partition
Machine cache file, until system data partition remaining space meets needed for normal boot-strap startup program.
In the present embodiment be switched on cache file setting effect primarily to convenient for for system boot preempt memory space,
So that system in start process because system data partition remaining space it is inadequate when, delete this document so that data partition is remaining empty
Between meet the requirement of system boot.
In the present embodiment, the setting of the cache file number that is switched on and size all can specifically be selected according to practical application scene
Setting is selected, for example, a booting cache file can only be set, as long as the size for meeting the booting cache file meets system boot
The size of required space namely the booting cache file is more than or equal to space needed for system boot;Certainly, only setting one
During booting cache file, the size that may also set up the booting cache file is less than space needed for system boot, is opened as long as meeting this
The sum of the size of machine cache file and the remaining minimum space in system data area meet space needed for system boot.It should manage
Solution in the present embodiment, can also set N (N is more than or equal to 2) a booting cache file, each the big of cache file that be switched on
The small size more than or equal to space needed for system boot or each booting cache file of setting is more than or equal to needed for system boot
The size of space or each booting cache file of setting is less than space needed for system boot, as long as N number of booting cache file is big
It is the sum of small to be more than or equal to space needed for system boot.
In the present embodiment, when booting cache file setting is N number of, and the size of each booting cache file is less than system boot
During required space, it may also include in above-mentioned steps 103:
Judge whether the current remaining space size of mobile terminal system data partition meets mobile terminal normal boot-strap institute
It is required that space size, if not, go to deleted from the secure memory location of mobile terminal system data partition it is at least one default
Booting cache file;Then judge again, until after deleting booting cache file, the current remaining space of system data partition is big
It is small whether the space size required by mobile terminal normal boot-strap.
Booting cache file is deleted to ensure system number from the secure memory location of system data partition by above-mentioned steps
There are enough spaces to realize normal boot-strap according to subregion.
In the present embodiment, in order to avoid pre-set booting cache file is unintentionally deleted by user, in the present embodiment
The secure memory location of optimum decision system data partition for user access less than storage location.Certainly, it may also set up system data
The secure memory location of subregion is the storage location that user can access, and only this document need to be illustrated, especially existed
When user deletes this document, the effect of user's this document is prompted;Or directly setting this document could quilt only in start process
User's deletion etc..
In the present embodiment, it can specifically pass through in the secure memory location of system data partition setting booting cache file and be
Corresponding interface of uniting generates booting cache file;And in the present embodiment, the mode of setting booting cache file includes but unlimited
In following three kinds of modes:
Mode one:It is slow in the preset at least one booting of the secure memory location of system data partition before mobile terminal manufacture
Deposit file;
Mode two:It is at least one in the secure memory location setting of system data partition during mobile terminal-opening
Be switched on cache file, then completes booting;
Mode three:In mobile terminal realizes shutdown process, set at least in the secure memory location of system data partition
One booting cache file, then completes shutdown.
For aforesaid way one, realization method is fairly simple, and details are not described herein;But in order to be better understood from this hair
It is bright, aforesaid way two and mode three are specifically described below in conjunction with the accompanying drawings:
Shown in Figure 2, mobile terminal is opened in start process in the setting of the secure memory location of system data partition
The process of machine cache file is as follows:
Step 201:The boot system of mobile terminal is opened;
Step 202:Judge that the secure memory location of system data partition is slow with the presence or absence of booting cache file and booting
Whether the number for depositing file reaches preset number namely judges the currently stored booting of the secure memory location
Whether cache file number is less than predetermined number;If so, going to step 205, otherwise, step 203 is gone to;
Step 203:Judge whether the remaining space of current system data partition stores a booting cache file enough, such as
It is to go to step 204;Otherwise, step 205 is gone to;
Step 204:In the secure memory location setting booting cache file of system data partition, step 202 is gone to;
Step 205:It goes to normal booting procedure and completes booting.
Shown in Figure 3, mobile terminal is opened in start process in the setting of the secure memory location of system data partition
The process of machine cache file can also be as follows:
Step 301:The boot system of mobile terminal is opened;
Step 302:Judge that the secure memory location of system data partition is slow with the presence or absence of booting cache file and booting
Whether the number for depositing file reaches preset number namely judges the currently stored booting of the secure memory location
Whether cache file number is less than predetermined number;If so, going to step 303, otherwise, step 306 is gone to;
Step 303:Calculate the poor number M of booting cache file;
Step 304:Judge whether the remaining space of current system data partition stores M booting cache file enough, such as
It is to go to step 305;Otherwise, step 306 is gone to;
Step 305:In the secure storage setting booting cache file of system data partition, step 306 is gone to;
Step 306:It goes to normal booting procedure and completes booting.
Shown in Figure 4, mobile terminal is opened in shutdown process in the setting of the secure memory location of system data partition
The process of machine cache file is as follows:
Step 401:Start the shutdown system of mobile terminal;
Step 402:Judge that the secure memory location of system data partition is slow with the presence or absence of booting cache file and booting
Whether the number for depositing file reaches preset number namely judges the currently stored booting of the secure memory location
Whether cache file number is less than predetermined number;If so, going to step 403, otherwise, step 405 is gone to;
Step 403:Judge whether the remaining space of current system data partition stores a booting cache file enough, such as
It is to go to step 404;Otherwise, step 405 is gone to;
Step 404:In the secure memory location setting booting cache file of system data partition, step 402 is gone to;
Step 405:It goes to normal shutdown program and completes shutdown.
Shown in Figure 5, mobile terminal is opened in shutdown process in the setting of the secure memory location of system data partition
The process of machine cache file can also be as follows:
Step 501:The shutdown system for starting mobile terminal enters shutdown mode;
Step 502:Judge that the secure memory location of system data partition is slow with the presence or absence of booting cache file and booting
Whether the number for depositing file reaches preset number namely judges the currently stored booting caching of the secure memory location
Whether file number is less than predetermined number;If so, going to step 503, otherwise, step 506 is gone to;
Step 503:Calculate the poor number M of booting cache file;
Step 504:Judge whether the remaining space of current system data partition stores M booting cache file enough, such as
It is to go to step 505;Otherwise, step 506 is gone to;
Step 505:M booting cache file is set in the secure memory location of system data partition, goes to step 506;
Step 506:It goes to normal shutdown program and completes shutdown.
According to above-mentioned analysis it is found that the present embodiment be switched on cache file in addition to can before manufacture it is preset other than, can also move
Setting booting cache file in dynamic starting up of terminal and shutdown process.In the present embodiment, in start process, when judging system number
According to subregion current residual space deficiency set booting cache file when, can also send out prompting user prestore insufficient space instruction or
Send out the instruction that user is forced to delete application program.Certainly before default setting, booting caching is set by third party device
During file, mobile terminal, which can also send out the instruction that user is prompted to prestore insufficient space or send out, forces user to delete application program
Instruction.The present invention is described further in start process and shutdown process for this implementation below:
In above-mentioned steps 203 and step 304, delay when judging that the setting of system data partition current residual space deficiency is switched on
When depositing file, after the completion of mobile terminal-opening, the instruction that user is prompted to prestore insufficient space can be transmitted or send out and force user
The instruction of application program is deleted, when sending the instruction that user is prompted to prestore insufficient space, user can select delete according to the instruction
Except some extra application programs, so that system data partition remaining space generates booting cache file enough;It is forced when sending
When user deletes application program instructions, after the completion of mobile terminal-opening, Application Program Interface can be automatically gone to, user is prompted to delete
Except corresponding application program, and after only user deletes certain application programs, operation could be carried out and go to other operation interfaces.
Shown in Figure 6, the mobile terminal in the present embodiment can be the terminals such as smart mobile phone, IPAD, including instruction
Receiving module, module of saving oneself;
Command reception module is used for when system data partition remaining space can not meet normal boot-strap startup program, is received
Enter self-saving model into the instruction of system self-saving model;
Module of saving oneself is used under the self-saving model, from the secure memory location of the mobile terminal system data partition
At least one preset booting cache file is deleted, starts journey until the system data partition remaining space meets normal boot-strap
Needed for sequence.
Module of saving oneself in the present embodiment can also be used to delete from the secure memory location of system data partition at least one
After preset booting cache file, before going to normal booting procedure, judge whether current system data partition remaining space is more than
Be switched on threshold value, if so, going to normal boot program completes booting;Otherwise, it returns from the secure storage position of system data partition
It puts and deletes at least one preset booting cache file, until system data partition remaining space size meets system boot need
It asks.
Shown in Figure 7, the mobile terminal in the present embodiment further includes file setup module, and this document setup module is used
In the secure memory location in system data partition, at least one booting cache file is set;This document setup module is concretely
System interface, setting booting cache file mode also include and be not limited to above-mentioned three kinds of modes namely:
File setup module can be before mobile terminal dispatches from the factory in the secure memory location setting at least one of system data partition
A booting cache file;
Or in start process, file setup module sets at least one open in the secure memory location of system data partition
Machine cache file is then back to normal booting procedure and realizes booting;
Or in shutdown process, after the shutdown module of mobile terminal starts the shutdown system of mobile terminal, file setting
Module sets at least one booting cache file in the secure memory location of the system data partition, is then back to normal
Shutdown programm realizes shutdown.
It has been described in detail above the concrete mode of above-mentioned three kinds of settings booting cache file, has not repeated herein.
Shown in Figure 8, the mobile terminal in the present embodiment further includes alarm module, and alarm module is used for mobile whole
It holds in start process, when judging that the system data partition current residual space is insufficient to set the booting cache file,
It sends the instruction that user is prompted to prestore insufficient space or sends out the instruction that user is forced to delete application program;In specific sending method
Face has been described in detail, and details are not described herein.
As it can be seen that it is of the invention by setting booting cache file in the data partition of mobile terminal system in advance, in booting
When detecting that system data partition remaining space is less than booting threshold value, then the booting cache file of setting is deleted to give system
Normal boot-strap is realized in enough spaces, without carrying out brush machine, avoids the money that user is caused to store during brush machine again
Material leaks or loses, and improves the satisfaction of user experience.
The above content is combine specific embodiment further description made for the present invention, it is impossible to assert this hair
Bright specific implementation is confined to these explanations.For those of ordinary skill in the art to which the present invention belongs, it is not taking off
Under the premise of from present inventive concept, several simple deduction or replace can also be made, should all be considered as belonging to the protection of the present invention
Range.