Summary of the invention
The main technical problem to be solved in the present invention is, a kind of mobile terminal and starting-up method thereof are provided, and the data partition remaining space that solves existing mobile terminal system is less than the problem that can not start shooting after certain value.
For solving the problems of the technologies described above, the invention provides a kind of mobile terminal-opening method, comprising:
In the time that system spare space cannot meet normal boot-strap start-up routine, reception enters the instruction of system self-saving model and enters self-saving model;
Under described self-saving model, delete at least one default start cache file from the secure memory location of described mobile terminal system data partition, until that described system data subregion remaining space meets normal boot-strap start-up routine is required.
In an embodiment of the present invention, also comprise:
At the secure memory location of described system data subregion, the cache file of starting shooting described at least one is set.
In an embodiment of the present invention, at the secure memory location of described system data subregion, the cache file of starting shooting described at least one being set comprises:
Before described mobile terminal dispatches from the factory at the preset cache file of starting shooting described at least one of the secure memory location of described system data subregion;
Or,
In described mobile terminal-opening process, at the secure memory location of described system data subregion, the cache file of starting shooting described at least one is set;
Or,
In described mobile terminal shutdown process, at the secure memory location of described system data subregion, the cache file of starting shooting described at least one is set.
In an embodiment of the present invention, in described mobile terminal-opening or shutdown process, at the secure memory location of described system data subregion, the cache file of starting shooting described at least one is set and comprises:
Whether the described start cache file number that judges the current storage of described secure memory location is less than default number, as no, go to normal boot-strap or shutdown programm, in this way, judge whether the current residual space of described system data subregion enough arranges a described start cache file; In this way, at the secure memory location of described system data subregion, a described start cache file is set, until current residual insufficient space is to arrange a described start cache file or start cache file number equals default number, as no, go to normal boot-strap or shutdown programm.
In an embodiment of the present invention, also comprise: in described mobile terminal-opening process, when described system data subregion current residual insufficient space enough arranges a described start cache file, send the instruction that prompting user prestores insufficient space or sends force users deletion application program.
In an embodiment of the present invention, the secure memory location of described system data subregion be user access less than memory location.
In order to address the above problem, the present invention also provides a kind of mobile terminal, and described mobile terminal comprises command reception module, the module of saving oneself;
Described command reception module is in the time that system spare space cannot meet normal boot-strap start-up routine, and reception enters the instruction of system self-saving model and enters self-saving model;
The described module of saving oneself, under described self-saving model, is deleted at least one default start cache file from the secure memory location of described mobile terminal system data partition, until that described system data subregion remaining space meets normal boot-strap start-up routine is required.
In an embodiment of the present invention, described mobile terminal also comprises:
File arranges module, and described file arranges module for the cache file of starting shooting described at least one is set at the secure memory location of described system data subregion.
In an embodiment of the present invention, described file arranges module and at the secure memory location of described system data subregion, the cache file of starting shooting described at least one is set and is:
Before described mobile terminal dispatches from the factory, at the secure memory location of described system data subregion, the cache file of starting shooting described at least one is set;
Or,
In described mobile terminal-opening process, at the secure memory location of described system data subregion, the cache file of starting shooting described at least one is set;
Or,
In described mobile terminal shutdown process, at the secure memory location of described system data subregion, the cache file of starting shooting described at least one is set.
In an embodiment of the present invention, described mobile terminal also comprises
Alarm module, described alarm module is used in described mobile terminal-opening process, judge when described system data subregion current residual insufficient space enough arranges a described start cache file, send prompting user prestore insufficient space instruction or send force users and delete the instruction of application program.
The invention has the beneficial effects as follows:
Mobile terminal provided by the invention and starting-up method thereof, in the time that mobile terminal system data partition remaining space is less than certain value and causes starting shooting, receive and enter the instruction of system self-saving model and enter self-saving model; Under this self-saving model, delete at least one default start cache file from the secure memory location of mobile terminal system data partition, until that system data subregion remaining space meets normal boot-strap start-up routine is required; Visible, the present invention arranges start cache file by the data partition at mobile terminal system in advance, in when start when detecting that system data subregion remaining space is less than while starting shooting threshold value, the start cache file of setting is deleted to realize normal boot-strap to the enough spaces of system, and do not need to carry out brush machine, avoid causing the data that user stores leak or lose again brushing in machine process, improved the satisfaction that user experiences.
Embodiment
The present invention arranges start cache file by the data partition at mobile terminal system in advance, in when start when detecting that system data subregion remaining space is less than while starting shooting threshold value, the start cache file of setting is deleted to realize normal boot-strap to the enough spaces of system, and do not need to carry out brush machine, avoid causing the data that user stores leak or lose again brushing in machine process, improved the satisfaction that user experiences.By reference to the accompanying drawings the present invention is described in further detail below by embodiment.
Self-saving model in the present embodiment refers to according to normal boot-strap module and carries out in start process, causes can not normal boot-strap time because system data subregion remaining space is too small, the pattern that when realizing scheme provided by the invention and starting shooting, mobile terminal enters.
Based on above-mentioned explanation, refer to Fig. 1, this figure is depicted as the schematic flow sheet of mobile terminal-opening in the present embodiment, comprising:
Step 101: in the time that system spare space cannot meet normal boot-strap start-up routine, reception enters the instruction of system self-saving model and enters self-saving model;
Step 102: delete at least one default start cache file from the secure memory location of described mobile terminal system data partition, until that system data subregion remaining space meets normal boot-strap start-up routine is required.
The effect of cache file setting of starting shooting in the present embodiment is mainly for the ease of being system boot preemption storage space, so that system in start process because system data subregion remaining space is when inadequate, delete this file so that data partition remaining space meets the requirement of system boot.
In the present embodiment, the setting of start cache file number and size all can specifically be selected to arrange according to practical application scene, for example, a start cache file can be only set, meet system boot requisite space as long as meet the size of this start cache file, also the size of this start cache file is more than or equal to system boot requisite space; Certainly, when a start cache file is only set, the size that this start cache file also can be set is less than system boot requisite space, meets system boot requisite space as long as meet the remaining minimum space sum of size and system data area of this start cache file.Should be understood that, in the present embodiment, N(N also can be set and be more than or equal to 2) individual start cache file, the large I of each start cache file is more than or equal to system boot requisite space, or the size that each start cache file is set is more than or equal to system boot requisite space, or the size that each start cache file is set is less than system boot requisite space, as long as the big or small sum of N the cache file of starting shooting is more than or equal to system boot requisite space.
In the present embodiment, when start cache file arranges N, and the size of the cache file of respectively starting shooting is while being less than system boot requisite space, in above-mentioned steps 103, also can comprise:
Judge whether the current remaining space size in mobile terminal system data partition meets the desired space size of mobile terminal normal boot-strap, as no, go to from the secure memory location of mobile terminal system data partition and delete at least one default start cache file; And then judgement, until delete after start cache file, the whether desired space size of mobile terminal normal boot-strap of the current remaining space size of system data subregion.
Deleting start cache file by above-mentioned steps from the secure memory location of system data subregion has enough spaces to realize normal boot-strap to ensure system data subregion.
In the present embodiment, for fear of the start cache file setting in advance by user be not intended to delete, in the present embodiment the secure memory location of optimum decision system data partition be user access less than memory location.Certainly, the secure memory location that system data subregion also can be set is the memory location that user can access, and only need specify this file, especially, in the time that user deletes this file, points out the effect of this file of user; Or directly arrange this file only in start process could by user delete etc.
In the present embodiment, at the secure memory location of system data subregion, start cache file is set and specifically can produces start cache file by the corresponding interface of system; And the mode that start cache file is set in the present embodiment, includes but not limited to following three kinds of modes:
Mode one: before mobile terminal dispatches from the factory at preset at least one the start cache file of the secure memory location of system data subregion;
Mode two: in mobile terminal-opening process, at the secure memory location of system data subregion, at least one start cache file is set, then completes start;
Mode three: realize in shutdown process at mobile terminal, at the secure memory location of system data subregion, at least one start cache file is set, then complete shutdown.
For aforesaid way one, its implementation is fairly simple, does not repeat them here; But below in conjunction with accompanying drawing, aforesaid way two and mode three are specifically described for a better understanding of the present invention:
Shown in Figure 2, mobile terminal in start process the secure memory location of system data subregion arrange start cache file process as follows:
Step 201: the boot system of mobile terminal is opened;
Step 202: whether the secure memory location that judges system data subregion exists start cache file, and start cache file number whether reach default number, also judge whether the described start cache file number of the current storage of described secure memory location is less than default number; In this way, go to step 205, otherwise, go to step 203;
Step 203: whether the remaining space that judges current system data partition enough stores a start cache file, in this way, goes to step 204; Otherwise, go to step 205;
Step 204: at the secure memory location of system data subregion, start cache file is set, goes to step 202;
Step 205: go to normal boot-strap program and complete start.
Shown in Figure 3, mobile terminal in start process the secure memory location of system data subregion arrange start cache file process also can be as follows:
Step 301: the boot system of mobile terminal is opened;
Step 302: whether the secure memory location that judges system data subregion exists start cache file, and start cache file number whether reach default number, also judge whether the described start cache file number of the current storage of described secure memory location is less than default number; In this way, go to step 303, otherwise, go to step 306;
Step 303: calculate the number M that start cache file differs from;
Step 304: judge the whether enough store M of a remaining space start cache file of current system data partition, in this way, go to step 305; Otherwise, go to step 306;
Step 305: in the safe storage of system data subregion, start cache file is set, goes to step 306;
Step 306: go to normal boot-strap program and complete start.
Shown in Figure 4, mobile terminal in shutdown process the secure memory location of system data subregion arrange start cache file process as follows:
Step 401: the shutdown system that starts mobile terminal;
Step 402: whether the secure memory location that judges system data subregion exists start cache file, and start cache file number whether reach default number, also judge whether the described start cache file number of the current storage of described secure memory location is less than default number; In this way, go to step 403, otherwise, go to step 405;
Step 403: whether the remaining space that judges current system data partition enough stores a start cache file, in this way, goes to step 404; Otherwise, go to step 405;
Step 404: at the secure memory location of system data subregion, start cache file is set, goes to step 402;
Step 405: go to normal shutdown program and complete shutdown.
Shown in Figure 5, mobile terminal in shutdown process the secure memory location of system data subregion arrange start cache file process also can be as follows:
Step 501: the shutdown system that starts mobile terminal enters shutdown mode;
Step 502: whether the secure memory location that judges system data subregion exists start cache file, and start cache file number whether reach default number, also judge whether the described start cache file number of the current storage of described secure memory location is less than default number; In this way, go to step 503, otherwise, go to step 506;
Step 503: calculate the number M that start cache file differs from;
Step 504: judge the whether enough store M of a remaining space start cache file of current system data partition, in this way, go to step 505; Otherwise, go to step 506;
Step 505: at the secure memory location of system data subregion, M start cache file is set, goes to step 506;
Step 506: go to normal shutdown program and complete shutdown.
Known according to above-mentioned analysis, the present embodiment start cache file, except can be preset before dispatching from the factory, also can arrange start cache file in mobile terminal-opening and shutdown process.In the present embodiment, in start process, when judging that system data subregion current residual insufficient space arranges start when cache file, also can send prompting user the prestore instruction of insufficient space or the instruction of sending force users and delete application program.Certainly before Default Value, start is set when cache file by third party device, mobile terminal also can send prompting user the prestore instruction of insufficient space or the instruction of sending force users and delete application program.This enforcement is below so that in start process and shutdown process, as example, the present invention is described further:
In above-mentioned steps 203 and step 304, in the time judging that system data subregion current residual insufficient space arranges start cache file, after mobile terminal-opening completes, can send prompting user prestore insufficient space instruction or send force users and delete the instruction of application program, in the time sending prompting user and prestore the instruction of insufficient space, user can select to delete some unnecessary application programs according to this instruction, so that system data subregion remaining space enough produces start cache file; In the time sending force users deletion application program instructions, after mobile terminal-opening completes, can automatically go to Application Program Interface, prompting user deletes corresponding application program, and only have user to delete after some application program, just can operate and go to other operation interfaces.
Shown in Figure 6, the mobile terminal in the present embodiment can be the terminal such as smart mobile phone, IPAD, and it comprises command reception module, the module of saving oneself;
Command reception module is in the time that system spare space cannot meet normal boot-strap start-up routine, and reception enters the instruction of system self-saving model and enters self-saving model;
The module of saving oneself, under described self-saving model, is deleted at least one default start cache file from the secure memory location of described mobile terminal system data partition, until that described system data subregion remaining space meets normal boot-strap start-up routine is required.
The module of saving oneself in the present embodiment also can be used for from the secure memory location of system data subregion is deleted at least one default start cache file, go to before normal boot-strap program, judge whether current system data partition remaining space is greater than start threshold value, in this way, go to normal boot program and complete start; Otherwise, return from the secure memory location of system data subregion and delete at least one default start cache file, until system data subregion remaining space size meets system boot demand.
Shown in Figure 7, the mobile terminal in the present embodiment also comprises that file arranges module, and this file arranges module at least one start cache file is set at the secure memory location of system data subregion; This file arranges module and specifically can be system interface, and it arranges start cache file mode and also comprises and be not limited to above-mentioned three kinds of modes, also:
File arranges module and can be before mobile terminal dispatches from the factory at the secure memory location of system data subregion, the cache file of starting shooting described at least one be set;
Or in start process, file arranges module, at the secure memory location of system data subregion, at least one start cache file is set, and then returns to normal boot-strap program and realizes start;
Or in shutdown process, when the shutdown module of mobile terminal starts after the shutdown system of mobile terminal, file arranges module, at the secure memory location of described system data subregion, the cache file of starting shooting described at least one is set, and then returns to normal shutdown program and realizes shutdown.
Above-mentioned three kinds arrange start cache file concrete mode above be elaborated, do not repeating herein.
Shown in Figure 8, mobile terminal in the present embodiment also comprises alarm module, alarm module is used in mobile terminal-opening process, in the time judging that described system data subregion current residual insufficient space enough arranges described start cache file, send prompting user prestore insufficient space instruction or send force users and delete the instruction of application program; Above concrete send mode, be elaborated, do not repeat them here.
Visible, the present invention arranges start cache file by the data partition at mobile terminal system in advance, in when start when detecting that system data subregion remaining space is less than while starting shooting threshold value, the start cache file of setting is deleted to realize normal boot-strap to the enough spaces of system, and do not need to carry out brush machine, avoid causing the data that user stores leak or lose again brushing in machine process, improved the satisfaction that user experiences.
Above content is in conjunction with concrete embodiment further description made for the present invention, can not assert that specific embodiment of the invention is confined to these explanations.For general technical staff of the technical field of the invention, without departing from the inventive concept of the premise, can also make some simple deduction or replace, all should be considered as belonging to protection scope of the present invention.