CN106598563A - Method and device for restarting intelligent terminal, and intelligent terminal - Google Patents

Method and device for restarting intelligent terminal, and intelligent terminal Download PDF

Info

Publication number
CN106598563A
CN106598563A CN201610913257.5A CN201610913257A CN106598563A CN 106598563 A CN106598563 A CN 106598563A CN 201610913257 A CN201610913257 A CN 201610913257A CN 106598563 A CN106598563 A CN 106598563A
Authority
CN
China
Prior art keywords
preset
space size
protection file
application
intelligent terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610913257.5A
Other languages
Chinese (zh)
Inventor
帅朝春
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610913257.5A priority Critical patent/CN106598563A/en
Publication of CN106598563A publication Critical patent/CN106598563A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/162Delete operations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/1737Details of further file system functions for reducing power consumption or coping with limited storage space, e.g. in mobile devices

Abstract

The invention is applicable to the field of intelligent terminals and provides a method and a device for restarting an intelligent terminal, and the intelligent terminal. The method comprises the steps of when a system restarting command of the intelligent terminal is acquired, counting a free space of a system; when the free space of the system is smaller than a preset threshold value, deleting a preset first protection file so as to release the space occupied by the preset first protection file, wherein the space occupied by the preset first protection file is at least greater than or equal to a size of data needing to be written in a system restarting process; and loading the data needing to be written in a system starting process so as to realize restarting of the system. Through the abovementioned method, the problem of incapability of starting of the intelligent terminal caused by an insufficient memory when the system restarts can be avoided.

Description

The method for restarting of intelligent terminal, device and intelligent terminal
Technical field
The embodiment of the present invention belongs to intelligent terminal field, more particularly to a kind of method for restarting of intelligent terminal, device and intelligence Can terminal.
Background technology
Currently, the application that may be installed intelligent terminal is more and more, when installed in intelligent terminal application it is more, installation Also bigger using corresponding data volume, now, substantial amounts of data volume causes the free space of intelligent terminal to be insufficient for intelligence The happy operation of terminal.The insufficient space of intelligent terminal can cause the operation of intelligent terminal the phenomenons such as slack-off, interim card occur, maximum Harm be if intelligent terminal does not have space can use, to cannot be started up once restarting and so will cause intelligent terminal, use Only return or change the intelligent terminal in family.
Traditional method for preventing insufficient space from causing intelligent terminal and can not start shooting is to point out user cleaning caching, but by The internal memory taken in caching is less, thus only cleaning caching be also difficult to effectively solving low memory cause to restart rear intelligent terminal without The problem of method start.
The content of the invention
Embodiments provide a kind of method for restarting of intelligent terminal, device and intelligent terminal, it is intended to solve existing Method in, when intelligent terminal needs to restart, because low memory causes to restart the problem that rear intelligent terminal cannot be started up.
Embodiment of the present invention first aspect, there is provided a kind of method for restarting of intelligent terminal, methods described includes:
When the system reboot for getting intelligent terminal is instructed, the remaining space size of statistical system;
When the remaining space size of system is less than predetermined threshold value, the first preset protection file is deleted, it is described to discharge The space size that the first preset protection file takes;The space size that the preset first protection file takes at least above Or need the size of data of write equal to system starting process;
The data that loading system start-up course need to write, to realize restarting for system.
The second aspect of the embodiment of the present invention, there is provided a kind of rebooting device of intelligent terminal, described device includes:
System spare spatial statistical units, for before the system reboot of intelligent terminal, the remaining space of statistical system to be big It is little;
First protection file deletes unit, for when the remaining space size of system is less than predetermined threshold value, deleting preset The first protection file, to discharge the space size that the preset first protection file takes;The first preset protection The space size that file takes is at least greater than or equal to system starting process needs the size of data of write;
System reboot unit, for the data that loading system start-up course need to write, to realize restarting for system.
The third aspect of the embodiment of the present invention, there is provided a kind of intelligent terminal, the intelligent terminal includes:
Processor, during for instructing in the system reboot for getting intelligent terminal, the remaining space size of statistical system; When the remaining space size of system is less than predetermined threshold value, preset first protection file is deleted, to discharge described preset first The space size that protection file takes;The space size that the first preset protection file takes is at least greater than or equal to system Start-up course needs the size of data of write;The data that loading system start-up course need to write, to realize restarting for system.
In embodiments of the present invention, the space size for being taken due to the preset first protection file at least above or wait The size of data of write is needed in system starting process, thereby it is ensured that deleting what is discharged after the first preset protection file Space size meets the requirement of remaining space size required during system reboot, so as to avoid during system reboot due to low memory The problem that caused intelligent terminal cannot be started up.
Description of the drawings
Fig. 1 is a kind of flow chart of the method for restarting of intelligent terminal that first embodiment of the invention is provided;
Fig. 2 is a kind of structure chart of the rebooting device of intelligent terminal that second embodiment of the invention is provided;
Fig. 3 is a kind of block diagram of the part-structure of the mobile phone of intelligent terminal correlation that third embodiment of the invention is provided;
Fig. 4 is a kind of schematic block diagram of intelligent terminal that fourth embodiment of the invention is provided.
Specific embodiment
In order that the objects, technical solutions and advantages of the present invention become more apparent, it is right below in conjunction with drawings and Examples The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the present invention, and It is not used in the restriction present invention.
In the embodiment of the present invention, when the system reboot for getting intelligent terminal is instructed, the remaining space of statistical system is big It is little, when the remaining space size of system is less than predetermined threshold value, the first preset protection file is deleted, it is described preset to discharge The space size that first protection file takes, the data that loading system start-up course need to write, to realize restarting for system.
In order to illustrate technical solutions according to the invention, illustrate below by specific embodiment.
Embodiment one:
Fig. 1 shows a kind of flow chart of the method for restarting of intelligent terminal that first embodiment of the invention is provided, and describes in detail such as Under:
Step S11, when the system reboot for getting intelligent terminal is instructed, the remaining space size of statistical system.
When the system spare insufficient space of intelligent terminal occurs artificial or system exception to be needed to restart, before loading system The remaining space size of judgement system.
Alternatively, during intelligent terminal's use, user can constantly install application (APP), constantly using APP, Dependency degree of the user to APP is reacted by recording the access times and/or frequency of the APP on intelligent terminal, for example, will be a certain In the section time, minimum front 10 APP of access times and/or frequency find out, and form the application of TOP10, record at intelligent end In the text at end, i.e., before step S11, including:
The usage frequency and/or access times of each application of A1, statistics on intelligent terminal.
A2, determine the relatively low N number of application of usage frequency and/or access times, the N is integer, N is more than or equal to 1.Tool Body ground, the big I of N is determined by the space size using occupancy, for example, is preset when the space size that 2 applications take is more than Capacity-threshold, then another N be equal to 2, otherwise, continue increase N.
When lower using access times and/or frequency, show that user is lower to the dependency degree of the application.
Step S12, when the remaining space size of system is less than predetermined threshold value, deletes the first preset protection file, with Discharge the space size that the first preset protection file takes;The space size that the first preset protection file takes Being at least greater than or equal to system starting process needs the size of data of write.
Wherein, minimum space when predetermined threshold value is for system reboot needed for loading data, such as, it is assumed that the residue of system When space is less than 16M, system loads are may result in not, lead to not start, then the predetermined threshold value is set to into 16M.
Specifically, when intelligent terminal starts shooting for the first time, preset first protection file, the sky that the first protection file is occupied Between size and system starting process need the size of data of write.Because each system needs the data of write big in start-up course It is little may be different, therefore, can space size that according to actual needs preset first protection file takes, but need to ensure preset the The space size that one protection file takes is at least greater than or equal to system starting process needs the size of data of write, it is preferable that So that the space size that the first preset protection file takes is equal to 2 times of system starting process and needs the size of data of write.
Step S13, the data that loading system start-up course need to write, to realize restarting for system.
Write is needed because the space size of the first preset protection file is at least greater than or equal to system starting process Size of data, therefore, the first preset protection file is deleted, after discharging the space that the first preset protection file takes, Ensure that the data that enough space loading system start-up courses need to write such that it is able to successfully realize restarting for system.
Alternatively, during user uses intelligent terminal, it may be necessary to through multiple reboot operation, i.e., in the step After rapid S13, including:
Preset second protection file, so that subsequently restarting for system can be realized by deleting the second protection file.Institute The size for stating the second protection file is equal to the difference of the space size that system spare space size normally runs with default system, Repeat the step after system reboot every time, until system spare space size it is big less than the space of the normal operation of default system It is little.
When intelligent terminal is after restarting for the first time, the first preset protection file is deleted, after end is restarted, Preset second protection file, so, when restarting next time, can discharge corresponding sky by deleting the second preset protection file Between.Certainly, when intelligent terminal is again after restarting for the second time, due to deleting the second preset protection file, therefore, when weight After opening end, preset new protection file is needed, for the ease of description, follow-up preset new protection file is referred to as second Protection file, repeats the step, until system spare space size is less than the space size that default system is normally run.
Alternatively, after step S13, including:
Judge whether also there is the second preset protection file.Protect file or deletion pre- there is no preset second When the remaining space size of system is less than predetermined threshold value after the second protection file put, by usage frequency and/or access times, from Low to high to delete application, the system spare space size after application is deleted is more than or equal to predetermined threshold value.
Specifically, when there is the second preset protection file, the second preset protection file is deleted, should due to deleting Preset second protects the space discharged after file still less than predetermined threshold value, therefore, then delete usage frequency and/or access times Minimum application, judges that the remaining space size of now system, whether still less than predetermined threshold value, if so, then continues to delete using frequency The relatively low application of rate and/or access times, if it is not, then no longer deleting application.
Alternatively, due in a practical situation, it is understood that there may be but user is not frequently used wishes to continue to answering for reservation again With, therefore, the application deleted in order to more accurately delete user to wish, then after step S13, including:
Judge whether also there is the second preset protection file.Protect file or deletion pre- there is no preset second When the remaining space size of system is less than predetermined threshold value after the second protection file put, by the application for having counted distribution feelings are used Condition, preferential deletion uses application pockety, and the system spare space size after application is deleted is more than or equal to pre- If threshold value.
Specifically, use distribution situation of each application is counted in advance, and for example, statistics application is from being installed to current time Use time point, according to the use time point of statistics the use distribution situation of application is determined, when application is made at set intervals It is uniform, the application that the application is wished to retain for user with the use distribution for once, showing the application;When the use point of application When cloth is uneven, the application that the application may not wish reservation for user.Further, by application use distribution situation with should Access times and/or usage frequency are combined and select which kind of application deleted, and with further the precision that application is deleted is improved.Example Such as, when the access times and/or usage frequency of two applications (A is applied and B applications) are closer to, but using for A applications is distributed compared with B Using use be more evenly distributed, then preferentially delete B application.
In first embodiment of the invention, when the system reboot for getting intelligent terminal is instructed, the residue of statistical system is empty Between size, when the remaining space size of system is less than predetermined threshold value, delete preset first protection file, it is described pre- to discharge The space size that the first protection file put takes, the data that loading system start-up course need to write, to realize restarting for system. Write is needed because the space size that the first preset protection file takes is at least greater than or equal to system starting process Size of data, thereby it is ensured that deleting the space size discharged after the first preset protection file meets system reboot when institute The requirement of the remaining space size for needing, so as to avoid what is cannot be started up due to intelligent terminal caused by low memory during system reboot Problem.
It should be understood that in embodiments of the present invention, the size of the sequence number of above-mentioned each process is not meant to the elder generation of execution sequence Afterwards, the execution sequence of each process should determine with its function and internal logic, and should not be to the implementation process structure of the embodiment of the present invention Into any restriction.
Embodiment two:
Fig. 2 shows a kind of structure chart of the rebooting device of intelligent terminal that second embodiment of the invention is provided, the intelligence The rebooting device of terminal can be applicable in various mobile terminals, and the mobile terminal can include Jing wireless access networks RAN and one Or the user equipment that multiple core nets are communicated, the user equipment can be mobile phone (or being referred to as " honeycomb " phone), tool Have computer of mobile device etc., for example, user equipment can also be portable, pocket, hand-held, built-in computer or The vehicle-mounted mobile device of person, they exchange voice and/or data with wireless access network.Again for example, the mobile device can include Smart mobile phone, panel computer, Jia Jiaoji, personal digital assistant PDA, point-of-sale terminal POS or vehicle-mounted computer etc..For the ease of saying It is bright, illustrate only the part related to the embodiment of the present invention.
The rebooting device of the intelligent terminal includes:The protection file of system spare spatial statistical units 21, first deletes unit 22nd, system reboot unit 23.Wherein:
System spare spatial statistical units 21, for before the system reboot of intelligent terminal, the remaining space of statistical system Size.
Alternatively, the rebooting device of the intelligent terminal includes:
Usage frequency statistic unit, for counting usage frequency of each application on intelligent terminal and/or making Use number of times;
Usage frequency sequencing unit, the N number of application relatively low for determining usage frequency and/or access times, the N is whole Number, N is more than or equal to 1.Specifically, the big I of N is determined by the space size that application takes.
First protection file deletes unit 22, for when the remaining space size of system is less than predetermined threshold value, deleting pre- The the first protection file put, to discharge the space size that the first preset protection file takes;The first preset guarantor The space size that shield file takes is at least greater than or equal to system starting process needs the size of data of write.
Wherein, minimum space when predetermined threshold value is for system reboot needed for loading data.Specifically, in intelligent terminal When once starting shooting, preset first protection file, the space size that the first protection file is occupied needs to write with system starting process The size of data for entering.Preferably so that the space size that the first preset protection file takes is equal to 2 times of system starting process to be needed The size of data to be write.
System reboot unit 23, for the data that loading system start-up course need to write, to realize restarting for system.
Alternatively, the rebooting device of the intelligent terminal includes:
Second protection file preset unit, for the preset second protection file, subsequently to pass through to delete described second Protection file realizes restarting for system;The size of the second protection file is equal to system spare space size and default system The difference of the space size of normal operation, repeats the step after each system reboot, until system spare space size is less than pre- If the normal operation of system space size.
When intelligent terminal is after restarting for the first time, the first preset protection file is deleted, after end is restarted, Preset second protection file, so, when restarting next time, can discharge corresponding sky by deleting the second preset protection file Between.Certainly, when intelligent terminal is again after restarting for the second time, due to deleting the second preset protection file, therefore, when weight After opening end, preset new protection file is needed, for the ease of description, follow-up preset new protection file is referred to as second Protection file, repeats the step, until system spare space size is less than the space size that default system is normally run.
Alternatively, the rebooting device of the intelligent terminal includes:
Unit is deleted in first application, for judging whether also to there is the second preset protection file;It is preset not existing Second protection file or when deleting the remaining space size of system after preset second protection file and being less than predetermined threshold value, by making With frequency and/or access times, application is deleted from low to high, the system spare space size after application is deleted is more than or waits In predetermined threshold value.
Specifically, when there is the second preset protection file, the second preset protection file is deleted, should due to deleting Preset second protects the space discharged after file still less than predetermined threshold value, therefore, then delete usage frequency and/or access times Minimum application, judges that the remaining space size of now system, whether still less than predetermined threshold value, if so, then continues to delete using frequency The relatively low application of rate and/or access times, if it is not, then no longer deleting application.
Alternatively, due in a practical situation, it is understood that there may be but user is not frequently used wishes to continue to answering for reservation again With, therefore, in order to more accurately delete the application that user wishes deletion, then the rebooting device of the intelligent terminal includes:
Unit is deleted in second application, for judging whether also to there is the second preset protection file;It is preset not existing When the remaining space size of system is less than predetermined threshold value after the second preset protection file of second protection file or deletion, by The application of statistics uses distribution situation, and preferential deletion uses application pockety, the system spare after application is deleted Space size is more than or equal to predetermined threshold value.
Specifically, use distribution situation of each application is counted in advance, and for example, statistics application is from being installed to current time Use time point, according to the use time point of statistics the use distribution situation of application is determined, when application is made at set intervals It is uniform, the application that the application is wished to retain for user with the use distribution for once, showing the application;When the use point of application When cloth is uneven, the application that the application may not wish reservation for user.Further, by application use distribution situation with should Access times and/or usage frequency are combined and select which kind of application deleted, and with further the precision that application is deleted is improved.Example Such as, when the access times and/or usage frequency of two applications (A is applied and B applications) are closer to, but using for A applications is distributed compared with B Using use be more evenly distributed, then preferentially delete B application.
In second embodiment of the invention, the space size taken due to the preset first protection file at least above or Equal to the size of data that system starting process needs write, thereby it is ensured that delete being discharged after the first preset protection file Space size meet the requirement of remaining space size required during system reboot, so as to avoid during system reboot due to internal memory not The problem that intelligent terminal cannot be started up caused by foot.
Embodiment three:
Fig. 3 is illustrated that the frame of the part-structure of the mobile phone related to the intelligent terminal of third embodiment of the invention offer Figure.With reference to Fig. 3, mobile phone includes:It is radio frequency (Radio Frequency, RF) circuit 310, memorizer 320, input block 330, aobvious Show the parts such as unit 340, sensor 350, voicefrequency circuit 360, wireless module 370, processor 380 and power supply 390.Ability Field technique personnel are appreciated that the handset structure illustrated in Fig. 3 does not constitute the restriction to mobile phone, can include more more than illustrating Or less part, or some parts are combined, or different part arrangements.
Each component parts of mobile phone are specifically introduced with reference to Fig. 3:
RF circuits 310 can be used to receiving and sending messages or communication process in, the reception and transmission of signal, especially, by base station After downlink information is received, process to processor 380;In addition, up data is activation will be designed to base station.Generally, RF circuits bag Include but be not limited to antenna, at least one amplifier, transceiver, bonder, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..Additionally, RF circuits 310 can also be communicated by radio communication with network and other equipment. Above-mentioned radio communication can be using arbitrary communication standard or agreement, including but not limited to global system for mobile communications (Global System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE)), Email, Short Message Service (Short Messaging Service, SMS) etc..
Memorizer 320 can be used to store software program and module, and processor 380 is stored in memorizer 320 by operation Software program and module, so as to perform various function application and the data processing of mobile phone.Memorizer 320 can mainly include Storing program area and storage data field, wherein, the application journey that storing program area can be needed for storage program area, at least one function Sequence (such as sound-playing function, image player function etc.) etc.;Storage data field can be stored and use what is created according to mobile phone Data (such as voice data, phone directory etc.) etc..Additionally, memorizer 320 can include high-speed random access memory, can be with Including nonvolatile memory, for example, at least one disk memory, flush memory device or other volatile solid-states Part.
Input block 330 can be used for the numeral or character information of receives input, and produce the user's setting with mobile phone 300 And the key signals input that function control is relevant.Specifically, input block 330 may include contact panel 331 and other inputs Equipment 332.Contact panel 331, also referred to as touch screen, user can be collected thereon or neighbouring touch operation (such as user makes With the operation of any suitable object such as finger, stylus or adnexa on contact panel 331 or near contact panel 331), and Corresponding attachment means are driven according to formula set in advance.Optionally, contact panel 331 may include touch detecting apparatus and touch Touch two parts of controller.Wherein, touch detecting apparatus detect the touch orientation of user, and detect the letter that touch operation brings Number, transmit a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into Contact coordinate, then give processor 380, and the order sent of receiving processor 380 and can be performed.Furthermore, it is possible to using The polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave realize contact panel 331.It is defeated except contact panel 331 Entering unit 330 can also include other input equipments 332.Specifically, other input equipments 332 can include but is not limited to physics One or more in keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc..
Display unit 340 can be used for show by user input information or be supplied to user information and mobile phone it is various Menu.Display unit 340 may include display floater 341, optionally, can adopt liquid crystal display (Liquid Crystal Display, LCD), the form such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) it is aobvious to configure Show panel 341.Further, contact panel 331 can cover display floater 341, when contact panel 331 detect it is thereon or attached After near touch operation, processor 380 is sent to determine the type of touch event, with preprocessor 880 according to touch event Type corresponding visual output is provided on display floater 341.Although in figure 3, contact panel 331 and display floater 341 Be as two independent parts realizing input and the input function of mobile phone, but in some embodiments it is possible to by touch-control Panel 331 and display floater 341 be integrated and input that realize mobile phone and output function.
Mobile phone 300 may also include at least one sensor 350, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to environment Adjusting the brightness of display floater 341, proximity transducer can close display floater to the light and shade of light when mobile phone is moved in one's ear 341 and/or backlight.Used as one kind of motion sensor, (generally three axles) add in the detectable all directions of accelerometer sensor The size of speed, can detect that size and the direction of gravity when static, can be used to recognize application (the such as horizontal/vertical screen of mobile phone attitude Switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;As for mobile phone also The other sensors such as configurable gyroscope, barometer, drimeter, thermometer, infrared ray sensor, will not be described here.
Voicefrequency circuit 360, speaker 361, microphone 362 can provide the audio interface between user and mobile phone.Audio-frequency electric The signal of telecommunication after the voice data for receiving conversion can be transferred to speaker 361 by road 360, and by speaker 361 sound is converted to Signal output;On the other hand, the acoustical signal of collection is converted to the signal of telecommunication by microphone 362, is turned after being received by voicefrequency circuit 360 Be changed to voice data, then after voice data output processor 380 is processed, Jing RF circuits 310 to be sent to such as another mobile phone, Or voice data is exported to memorizer 320 so as to further process.
Wireless module is based on short range wireless transmission technology, and mobile phone can help user's transmitting-receiving electricity by wireless module 370 Sub- mail, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and has accessed.Although Fig. 3 shows Go out wireless module 370, but it is understood that, it is simultaneously not belonging to must be configured into for mobile phone 300, completely can be as needed Omit in the essential scope for do not change invention.
Processor 380 is the control centre of mobile phone, using various interfaces and the various pieces of connection whole mobile phone, is led to Cross operation or perform the software program and/or module that are stored in memorizer 320, and call and be stored in memorizer 320 Data, perform the various functions and processing data of mobile phone, so as to carry out integral monitoring to mobile phone.Optionally, processor 380 can be wrapped Include one or more processing units;Preferably, processor 380 can integrated application processor and modem processor, wherein, should Operating system, user interface and application program etc. are mainly processed with processor, modem processor mainly processes radio communication. It is understood that above-mentioned modem processor can not also be integrated in processor 380.
Mobile phone 300 also includes the power supply 390 (such as battery) powered to all parts, it is preferred that power supply can be by electricity Management system is logically contiguous with processor 380, so as to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.
Although not shown, mobile phone 300 can also include photographic head, bluetooth module etc., will not be described here.
In embodiments of the present invention, the processor 380 included by the terminal also has following functions:A kind of intelligent terminal's Method for restarting, methods described includes:
When the system reboot for getting intelligent terminal is instructed, the remaining space size of statistical system;
When the remaining space size of system is less than predetermined threshold value, the first preset protection file is deleted, it is described to discharge The space size that the first preset protection file takes;The space size that the preset first protection file takes at least above Or need the size of data of write equal to system starting process;
The data that loading system start-up course need to write, to realize restarting for system.
Further,
In the data that the loading system start-up course need to write, to realize the restarting of system after, including:
Preset second protection file, so that subsequently restarting for system can be realized by deleting the second protection file;Institute The size for stating the second protection file is equal to the difference of the space size that system spare space size normally runs with default system, Repeat the step after system reboot every time, until system spare space size it is big less than the space of the normal operation of default system It is little.
Further,
Described before the system reboot of intelligent terminal, before the remaining space size of statistical system, including:
The usage frequency and/or access times of each application of the statistics on intelligent terminal;
Determine the relatively low N number of application of usage frequency and/or access times, the N is integer, and N is more than or equal to 1.
Further,
In the data that the loading system start-up course need to write, to realize the restarting of system after, including:
Judge whether also there is the second preset protection file;Protect file or deletion pre- there is no preset second When the remaining space size of system is less than predetermined threshold value after the second protection file put, by usage frequency and/or access times, from Low to high to delete application, the system spare space size after application is deleted is more than or equal to predetermined threshold value.
Further,
In the data that the loading system start-up course need to write, to realize the restarting of system after, including:
Judge whether also there is the second preset protection file;Protect file or deletion pre- there is no preset second When the remaining space size of system is less than predetermined threshold value after the second protection file put, by the application for having counted distribution feelings are used Condition, preferential deletion uses application pockety, and the system spare space size after application is deleted is more than or equal to pre- If threshold value.
Example IV:
Fig. 4 is a kind of schematic block diagram of intelligent terminal that fourth embodiment of the invention is provided, the intelligence as depicted Terminal can include:One or more processors 401 (only illustrate one) in figure;One or more input equipments 402 are (in figure only Illustrate one), one or more outut device 403 (one is only illustrated in figure), memorizer 404 and display 405.Above-mentioned process Device 401, input equipment 402, outut device 403, memorizer 404 and display 405 are connected by bus 406.Memorizer 402 is used In store instruction, processor 401 is used to perform the instruction of the storage of memorizer 404.Wherein:
The processor 401, during for instructing in the system reboot for getting intelligent terminal, the remaining space of statistical system Size;When the remaining space size of system is less than predetermined threshold value, the first preset protection file is deleted, it is described preset to discharge First protection file take space size;The space size that the preset first protection file takes at least above or wait The size of data of write is needed in system starting process;The data that loading system start-up course need to write, to realize the weight of system Open.
It should be appreciated that in embodiments of the present invention, the processor 401 can be CPU (Central Processing Unit, CPU), the processor can also be other general processors, digital signal processor (Digital Signal Processor, DSP), special IC (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other FPGAs Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at Reason device can also be any conventional processor etc..
Input equipment 402 can include that Trackpad, fingerprint adopt sensor (for gathering the finger print information and fingerprint of user Directional information), mike, data receiver interface etc..Outut device 403 can include display (LCD etc.), speaker, data Transmission interface etc..
The memorizer 404 can include read only memory and random access memory, and to processor 401 provide instruction and Data.The a part of of memorizer 404 can also include nonvolatile RAM.For example, memorizer 404 can also be deposited The information of storage device type.
Display 405 can be used for display by the information of user input or be supplied to information of user etc..Display 405 can be wrapped Display floater is included, optionally, liquid crystal display (Liquid Crystal Display, LCD), organic light-emitting diodes can be adopted Manage forms such as (Organic Light-Emitting Diode, OLED) to configure display floater.Further, the display 405 may also include contact panel, and the contact panel can cover display floater, when contact panel detect it is thereon or neighbouring After touch operation, processor 401 is sent to determine the type of touch event, with preprocessor 401 according to the class of touch event Type provides on a display panel corresponding visual output.
In implementing, processor 401, input equipment 402, outut device 403 described in the embodiment of the present invention, deposit Reservoir 404 and display 405 can perform described in the embodiment of the Memory adjustments method of terminal provided in an embodiment of the present invention Implementation, also can perform the implementation described in embodiment two described in terminal, will not be described here.
Those of ordinary skill in the art are it is to be appreciated that the list of each example with reference to the embodiments described herein description Unit and algorithm steps, being capable of being implemented in combination in electronic hardware or computer software and electronic hardware.These functions are actually Performed with hardware or software mode, depending on the application-specific and design constraint of technical scheme.Professional and technical personnel Each specific application can be used different methods to realize described function, but this realization it is not considered that exceeding The scope of the present invention.
Those skilled in the art can be understood that, for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be described here.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method, can be with Realize by another way.For example, device embodiment described above is only schematic, for example, the unit Divide, only a kind of division of logic function can have other dividing mode, such as multiple units or component when actually realizing Can with reference to or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, it is shown or The coupling each other for discussing or direct-coupling or communication connection can be the indirect couplings by some interfaces, device or unit Close or communicate to connect, can be electrical, mechanical or other forms.
The unit as separating component explanation can be or may not be it is physically separate, it is aobvious as unit The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can according to the actual needs be selected to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.
If the function is realized and as independent production marketing or when using using in the form of SFU software functional unit, can be with In being stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words The part contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be individual People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the invention. And aforesaid storage medium includes:USB flash disk, portable hard drive, read only memory (ROM, Read-Only Memory), random access memory are deposited Reservoir (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, all should contain Cover within protection scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.

Claims (11)

1. a kind of method for restarting of intelligent terminal, it is characterised in that methods described includes:
When the system reboot for getting intelligent terminal is instructed, the remaining space size of statistical system;
When the remaining space size of system is less than predetermined threshold value, the first preset protection file is deleted, it is described preset to discharge First protection file take space size;The space size that the preset first protection file takes at least above or wait The size of data of write is needed in system starting process;
The data that loading system start-up course need to write, to realize restarting for system.
2. method according to claim 1, it is characterised in that in the data that the loading system start-up course need to write, After to realize the restarting of system, including:
Preset second protection file, so that subsequently restarting for system can be realized by deleting the second protection file;Described The size of two protection files is equal to the difference of the space size that system spare space size normally runs with default system, each Repeat the step after system reboot, until system spare space size is less than the space size that default system is normally run.
3. method according to claim 2, it is characterised in that described before the system reboot of intelligent terminal, department of statistic Before the remaining space size of system, including:
The usage frequency and/or access times of each application of the statistics on intelligent terminal;
Determine the relatively low N number of application of usage frequency and/or access times, the N is integer, and N is more than or equal to 1.
4. method according to claim 3, it is characterised in that in the data that the loading system start-up course need to write, After to realize the restarting of system, including:
Judge whether also there is the second preset protection file;Protect file or deletion preset there is no preset second When the remaining space size of system is less than predetermined threshold value after second protection file, by usage frequency and/or access times, from it is low to Height deletes application, and the system spare space size after application is deleted is more than or equal to predetermined threshold value.
5. method according to claim 2, it is characterised in that in the data that the loading system start-up course need to write, After to realize the restarting of system, including:
Judge whether also there is the second preset protection file;Protect file or deletion preset there is no preset second When the remaining space size of system is less than predetermined threshold value after second protection file, distribution situation is used by the application for having counted, it is excellent First delete and use application pockety, the system spare space size after application is deleted is more than or equal to default threshold Value.
6. a kind of rebooting device of intelligent terminal, it is characterised in that described device includes:
System spare spatial statistical units, for before the system reboot of intelligent terminal, the remaining space size of statistical system;
First protection file deletes unit, for when the remaining space size of system is less than predetermined threshold value, deleting preset the One protection file, to discharge the space size that the first preset protection file takes;The first preset protection file The space size of occupancy is at least greater than or equal to system starting process needs the size of data of write;
System reboot unit, for the data that loading system start-up course need to write, to realize restarting for system.
7. device according to claim 6, it is characterised in that described device includes:
Second protection file preset unit, for the preset second protection file, subsequently to be protected by deleting described second File realizes restarting for system;It is normal with default system that the size of the second protection file is equal to system spare space size The difference of the space size of operation, repeats the step after each system reboot, until system spare space size is less than default The space size that system is normally run.
8. device according to claim 7, it is characterised in that described device includes:
Usage frequency statistic unit, for counting usage frequency of each application on intelligent terminal and/or using secondary Number;
Usage frequency sequencing unit, the N number of application relatively low for determining usage frequency and/or access times, the N be integer, N More than or equal to 1.
9. device according to claim 8, it is characterised in that described device includes:
Unit is deleted in first application, for judging whether also to there is the second preset protection file;There is no preset second When the remaining space size of system is less than predetermined threshold value after the second preset protection file of protection file or deletion, by using frequency Rate and/or access times, delete from low to high application, and the system spare space size after application is deleted is more than or equal to pre- If threshold value.
10. device according to claim 7, it is characterised in that described device includes:
Unit is deleted in second application, for judging whether also to there is the second preset protection file;There is no preset second Protection file or when deleting the remaining space size of system after preset second protection file and being less than predetermined threshold value, by counting Application use distribution situation, preferential deletion uses application pockety, the system spare space after application is deleted Size is more than or equal to predetermined threshold value.
11. a kind of intelligent terminal, it is characterised in that the intelligent terminal includes:
Processor, during for instructing in the system reboot for getting intelligent terminal, the remaining space size of statistical system;In system Remaining space size when being less than predetermined threshold value, preset first protection file is deleted, to discharge the first preset protection The space size that file takes;The space size that the first preset protection file takes is at least greater than or equal to system start-up Process needs the size of data of write;The data that loading system start-up course need to write, to realize restarting for system.
CN201610913257.5A 2016-10-19 2016-10-19 Method and device for restarting intelligent terminal, and intelligent terminal Pending CN106598563A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610913257.5A CN106598563A (en) 2016-10-19 2016-10-19 Method and device for restarting intelligent terminal, and intelligent terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610913257.5A CN106598563A (en) 2016-10-19 2016-10-19 Method and device for restarting intelligent terminal, and intelligent terminal

Publications (1)

Publication Number Publication Date
CN106598563A true CN106598563A (en) 2017-04-26

Family

ID=58556241

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610913257.5A Pending CN106598563A (en) 2016-10-19 2016-10-19 Method and device for restarting intelligent terminal, and intelligent terminal

Country Status (1)

Country Link
CN (1) CN106598563A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107678978A (en) * 2017-10-12 2018-02-09 深圳辉烨通讯技术有限公司 A kind of memory space processing method and processing device of intelligent terminal
CN109101363A (en) * 2017-06-21 2018-12-28 中兴通讯股份有限公司 Abnormal restoring method, device, smart machine and storage medium based on android system
CN110457136A (en) * 2019-08-09 2019-11-15 四川虹美智能科技有限公司 A kind of Android system clears up the method, apparatus and terminal device of file automatically

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102867041A (en) * 2012-09-03 2013-01-09 东莞宇龙通信科技有限公司 Terminal and storage space management method
US9063847B2 (en) * 2011-04-19 2015-06-23 Dell Products, Lp System and method for managing space allocation within a file system
CN105589663A (en) * 2015-12-23 2016-05-18 努比亚技术有限公司 Mobile terminal and data processing method thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9063847B2 (en) * 2011-04-19 2015-06-23 Dell Products, Lp System and method for managing space allocation within a file system
CN102867041A (en) * 2012-09-03 2013-01-09 东莞宇龙通信科技有限公司 Terminal and storage space management method
CN105589663A (en) * 2015-12-23 2016-05-18 努比亚技术有限公司 Mobile terminal and data processing method thereof

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109101363A (en) * 2017-06-21 2018-12-28 中兴通讯股份有限公司 Abnormal restoring method, device, smart machine and storage medium based on android system
CN109101363B (en) * 2017-06-21 2023-09-22 中兴通讯股份有限公司 Exception recovery method and device based on Android system, intelligent equipment and storage medium
CN107678978A (en) * 2017-10-12 2018-02-09 深圳辉烨通讯技术有限公司 A kind of memory space processing method and processing device of intelligent terminal
CN110457136A (en) * 2019-08-09 2019-11-15 四川虹美智能科技有限公司 A kind of Android system clears up the method, apparatus and terminal device of file automatically

Similar Documents

Publication Publication Date Title
CN104135500B (en) The method and system that prompting application upgrades
CN106126562A (en) A kind of pop-up hold-up interception method and terminal
CN106406892A (en) A shortcut function display method and device for applications and a terminal apparatus
CN106096361A (en) A kind of unlocked by fingerprint method and mobile terminal
CN108112063A (en) Electric quantity managing method, power management device, terminal and readable storage medium storing program for executing
CN105739699B (en) A kind of control method and terminal device of message notifying
CN106227588A (en) The creation method of a kind of multi-instance object, device and mobile terminal
CN105278937A (en) Method and device for displaying pop-up box messages
CN106155557B (en) A kind of virtual key display methods and mobile terminal
CN106095456A (en) User is guided to download the method for application program, device and mobile terminal
CN106528212A (en) Application starting method and terminal
CN104407804A (en) Screen capturing method and screen capturing device as well as electronic device
CN106445336A (en) Fast acquisition method for electronic resource and mobile terminal
CN106445596A (en) Method and device for managing setting items
CN106201547A (en) Method, device and the mobile terminal that a kind of message based on mobile terminal shows
CN106528638A (en) Method for deleting backup data, and mobile terminal
CN106250122A (en) A kind of information cuing method and device
CN106506815A (en) A kind of application enables method and relevant device
CN106227563A (en) The data processing method of a kind of application program and relevant device
CN106648460B (en) Step counting data filtering method and intelligent terminal
CN106598563A (en) Method and device for restarting intelligent terminal, and intelligent terminal
CN105208276B (en) The photographic method and device of mobile terminal
CN109101328A (en) The method, apparatus of mobile terminal and application program running background
CN106339864A (en) Electronic resource acquisition method and mobile terminal
CN106791074A (en) Song information display methods, device and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170426

RJ01 Rejection of invention patent application after publication