CN109101363A - Abnormal restoring method, device, smart machine and storage medium based on android system - Google Patents
Abnormal restoring method, device, smart machine and storage medium based on android system Download PDFInfo
- Publication number
- CN109101363A CN109101363A CN201710475936.3A CN201710475936A CN109101363A CN 109101363 A CN109101363 A CN 109101363A CN 201710475936 A CN201710475936 A CN 201710475936A CN 109101363 A CN109101363 A CN 109101363A
- Authority
- CN
- China
- Prior art keywords
- data
- file
- available space
- cleaning
- ratio value
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1415—Saving, restoring, recovering or retrying at system level
- G06F11/1417—Boot up procedures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1415—Saving, restoring, recovering or retrying at system level
- G06F11/1433—Saving, restoring, recovering or retrying at system level during software upgrading
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/14—Error detection or correction of the data by redundancy in operation
- G06F11/1402—Saving, restoring, recovering or retrying
- G06F11/1415—Saving, restoring, recovering or retrying at system level
- G06F11/1441—Resetting or repowering
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Software Systems (AREA)
- Stored Programmes (AREA)
- Telephone Function (AREA)
- Retry When Errors Occur (AREA)
Abstract
The invention discloses a kind of abnormal restoring method based on android system, device, smart machine and storage mediums, belong to technical field of intelligent equipment.This method comprises: after monitoring system or application program write-in critical data failure, judge whether the available space of data subregion is less than preset ratio value, if it is, file is cleared up according to preset strategy, so that the available space on data subregion reaches preset ratio value;Restart the smart machine.When the embodiment of the present invention is by monitoring that critical data is written due to failure caused by available space deficiency in system or application program, cleaning file Free up Memory is carried out to the influence degree of user sequence according to file is deleted, so that it is stuck or cannot be started up to solve Android system terminal system as caused by data subregion available space is insufficient.
Description
Technical field
The present invention relates to Android (Android system) field of terminal technology, more particularly to the abnormal restoring based on Android
Method, apparatus, equipment and storage medium.
Background technique
In recent years, the smart machine (such as set-top box, mobile phone, tablet computer) of android system has been increasingly becoming intelligence
The mainstream of equipment Market.With increasing for third-party application software and photo, the data file stored in smart machine is also more next
It is more, it will lead to Data subregion and be filled.Since critical data can be write when booting or system upgrade to Data subregion, and
In the insufficient situation of Data partition space, if system or application program need to be written information or data and can lead to data subregion
Stuck or even change brick caused (system, which enters state of paralysis, cannot be started up).This problem can not be serviced by using Recovery and be carried out
The mode of system upgrade solves, and this problem is frequently experienced in android system and also fails in the case where normally starting,
Network can not be connected at this time, therefore once occurs remotely to solve, and seriously affected user experience.
Summary of the invention
In view of this, the purpose of the present invention is to provide a kind of abnormal restoring method based on android system, device,
Smart machine and storage medium, to solve the smart machine of android system as caused by data subregion available space deficiency
The technical issues of system is stuck or even becomes brick.
It is as follows that the present invention solves technical solution used by above-mentioned technical problem:
According to an aspect of the present invention, the abnormal restoring method based on android system provided is set applied to intelligence
It is standby, this method comprises:
After monitoring system or application program write-in critical data failure, judge whether the available space of data subregion is less than
Preset ratio value, if it is, file is cleared up according to preset strategy, so that the available space of data subregion reaches preset
Ratio value;
Restart smart machine.
Preferably, file is cleared up according to preset strategy, until the available space on data subregion is greater than preset ratio
Value further comprises:
According to built-in SD card, application program redundant data, application data directory, application program installation directory and
The sequence of fault recovery Recovery service depth cleaning carries out cleaning file, and the available space of data subregion is judged in cleaning
Whether preset ratio value is reached, if it is, terminating cleaning file.
Preferably, mesh is installed according to built-in SD card, application program redundant data, application data directory, application program
Record, Recovery service depth cleaning sequence carry out cleaning file, while cleaning while judge data subregion available space whether
Reach preset ratio value, if it is, terminating cleaning file, further comprise:
Delete the file in built-in SD card under preset path;And judge whether the available space of data subregion reaches preset
Ratio value, if it is, terminating cleaning file;
Delete application program redundant data;And judge whether the available space of data subregion reaches preset ratio value, such as
Fruit is then to terminate to clear up file;
Traversal applications program data catalogue deletes the text that size in application data directory is greater than the first preset threshold
Part;One file of every deletion judges whether the available space of a data subregion reaches preset ratio value, if it is, terminating
File clean-up;
Traversal applications program installation directory deletes the text that size in application program installation directory is greater than the second preset threshold
Part;One file of every deletion judges whether the available space of a data subregion reaches preset ratio value, if it is, terminating
File clean-up;
Recovery service is called to carry out depth cleaning.
Preferably, the first preset threshold includes 50,000,000;Second preset threshold includes 50,000,000.
Preferably, preset ratio value includes 5%.
According to another aspect of the present invention, a kind of abnormal restoring device based on android system provided, is applied to
Smart machine, the device include:
Monitoring modular, for monitoring whether system or application program are written critical data failure;
Judgment module, for judging whether the available space of data subregion is less than preset ratio value;
Cleaning modul, for clearing up file according to preset strategy, so that the available space on data subregion reaches default
Ratio value;
Module is restarted, for restarting smart machine.
Preferably, cleaning modul is specifically used for:
According to built-in SD card, application program redundant data, application data directory, application program installation directory,
The sequence of Recovery service depth cleaning carries out cleaning file, judges whether the available space of data subregion reaches in cleaning
Preset ratio value, if it is, terminating cleaning file.
According to a further aspect of the invention, a kind of smart machine provided includes: that memory, processor and being stored in is deposited
On reservoir and the computer program that can run on a processor, above-mentioned be based on is realized when computer program is executed by processor
The step of abnormal restoring method of android system.
Preferably, smart machine includes mobile terminal or fixed terminal based on android system.
According to a further aspect of the invention, a kind of storage medium provided is stored thereon with abnormal restoring program, abnormal
The step of above-mentioned abnormal restoring method based on android system is realized when recovery routine is executed by processor.
Abnormal restoring method based on Android, device, smart machine and storage medium provided in an embodiment of the present invention,
When by monitoring system or application program write-in critical data to data subregion due to failure caused by available space deficiency,
Cleaning file Free up Memory is carried out to the influence degree sequence of user according to the file of deletion, to solve android system
Terminal system as caused by data subregion available space deficiency is stuck or cannot be started up.
Detailed description of the invention
The hardware structural diagram of Fig. 1 mobile terminal of each embodiment to realize the present invention.
Fig. 2 is the flow chart of the abnormal restoring method of the embodiment of the present invention 1.
Fig. 3 is the flow chart of the file clean-up method of the embodiment of the present invention 1.
Fig. 4 is the flow chart of the abnormal restoring method of the system boot of the embodiment of the present invention 2.
Fig. 5 is the function structure chart of the abnormal restoring device of the embodiment of the present invention 3.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
In order to be clearer and more clear technical problems, technical solutions and advantages to be solved, tie below
Drawings and examples are closed, the present invention will be described in further detail.It should be appreciated that specific embodiment described herein is only
To explain the present invention, it is not intended to limit the present invention.
In order to be clearer and more clear technical problems, technical solutions and advantages to be solved, tie below
Drawings and examples are closed, the present invention will be described in further detail.It should be appreciated that specific embodiment described herein is only
To explain the present invention, it is not intended to limit the present invention.
Smart machine can be implemented in a variety of manners.For example, smart machine described in the present invention may include such as
Set-top box, smart phone, smart phone, laptop, digit broadcasting receiver, PDA based on android system are (personal
Digital assistants), PAD (tablet computer), PMP (portable media player), the mobile terminals such as navigation device;Can also include
The fixed terminals such as digital TV, desktop computer based on android system.Hereinafter it is assumed that smart machine is mobile terminal.
However, it will be understood by those skilled in the art that other than the element for being used in particular for mobile purpose, implementation according to the present invention
The construction of mode can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting
Dynamic terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit
103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit
108, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1
Mobile terminal structure does not constitute restriction, and mobile terminal may include components more more or fewer than diagram, or combine certain
Component or different component layouts.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station
Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating
Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication
Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications
System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code
Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division
Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division
Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102
Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 shows
Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need
It to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100
When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or
The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103
Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears
Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode
Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out
Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited
Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike
Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042
Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can
To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model.
Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition)
The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear
Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture
(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;
The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,
The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal
Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with
And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby
(for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071
Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection
Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can
To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap
It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc.
It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel
1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can
The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically
It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example,
External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing
Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number
It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with
For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area
The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function
Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage
Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place
Managing device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated
Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main
Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Processor 110 also executes the following steps:
After monitoring system or application program write-in critical data failure, judge whether the available space of data subregion is less than
Preset ratio value, if it is, file is cleared up according to preset strategy, so that the available space of data subregion reaches preset
Ratio value;
Restart smart machine.
Preferably, file is cleared up according to preset strategy, until the available space on data subregion is greater than preset ratio
Value further comprises:
According to built-in SD card, application program redundant data, application data directory, application program installation directory and
The sequence of fault recovery Recovery service depth cleaning carries out cleaning file, and the available space of data subregion is judged in cleaning
Whether preset ratio value is reached, if it is, terminating cleaning file.
Preferably, mesh is installed according to built-in SD card, application program redundant data, application data directory, application program
Record, Recovery service depth cleaning sequence carry out cleaning file, while cleaning while judge data subregion available space whether
Reach preset ratio value, if it is, terminating cleaning file, further comprise:
Delete the file in built-in SD card under preset path;And judge whether the available space of data subregion reaches preset
Ratio value, if it is, terminating cleaning file;
Delete application program redundant data;And judge whether the available space of data subregion reaches preset ratio value, such as
Fruit is then to terminate to clear up file;
Traversal applications program data catalogue deletes the text that size in application data directory is greater than the first preset threshold
Part;One file of every deletion judges whether the available space of a data subregion reaches preset ratio value, if it is, terminating
File clean-up;
Traversal applications program installation directory deletes the text that size in application program installation directory is greater than the second preset threshold
Part;One file of every deletion judges whether the available space of a data subregion reaches preset ratio value, if it is, terminating
File clean-up;
Recovery service is called to carry out depth cleaning.
Preferably, the first preset threshold includes 50,000,000;Second preset threshold includes 50,000,000.
Preferably, preset ratio value includes 5%.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111
Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put
The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment one
As shown in Fig. 2, the embodiment of the present invention provides a kind of abnormal restoring method based on android system, it is applied to intelligence
Energy equipment, this method comprises:
S201, system or application program write-in critical data failure are monitored.
S1202, judge whether the available space of data subregion is less than preset ratio value, if so, step S103 is executed,
It is no to then follow the steps S104.
S203, file is cleared up according to preset strategy, until the available space on data subregion reaches preset ratio value.
Preferably, file is cleared up according to preset strategy, until the available space on data subregion is greater than preset ratio
Value further comprises:
According to built-in SD card, application program redundant data, application data directory, application program installation directory,
The sequence of Recovery service depth cleaning carries out cleaning file, judges whether the available space of data subregion reaches in cleaning
Preset ratio value, if it is, terminating cleaning file.
As shown in figure 3, step S103 further comprises:
File built in S2031, deletion in SD card under preset path;And judge whether the available space of data subregion reaches
Preset ratio value, if it is, terminating cleaning file.
S2032, application program redundant data is deleted;And judge whether the available space of data subregion reaches preset ratio
Value, if it is, terminating cleaning file.
S2033, traversal applications program data catalogue delete size in application data directory and are greater than the first preset threshold
File;One file of every deletion judges whether the available space of a data subregion reaches preset ratio value, if it is,
Ends file cleaning.
S2034, traversal applications program installation directory delete size in application program installation directory and are greater than the second preset threshold
File;One file of every deletion judges whether the available space of a data subregion reaches preset ratio value, if it is,
Ends file cleaning.
S2035, Recovery service is called to carry out depth cleaning.
S204, restarting smart machine.
Abnormal restoring method provided in an embodiment of the present invention based on Android, by monitoring system or using journey
Sequence be written critical data to data subregion due to available space it is insufficient caused by unsuccessfully when, according to the file of deletion to the shadow of user
The degree sequence of sound carries out cleaning file Free up Memory, to solve Android system terminal due to data subregion available space
System caused by deficiency is stuck or cannot be started up.
Embodiment two
As shown in figure 4, being illustrated so that smart machine is switched on as an example, in this example, it is assumed that preset ratio value is
5%, this method comprises:
S401, smart machine booting.
S402, judge whether writing system critical data fails, if it is, terminate process, it is no to then follow the steps S403.
Specifically, it is first determined whether critical data can be normally written, if write-in critical data failure, carries out
Otherwise S403 illustrates that data subregion does not occur and writes full exception for system, terminates process.
S403, judge whether data subregion available space is greater than 5%, if it is, going to step S414, otherwise execute step
Rapid S404.
File built in S404, deletion in SD card under preset path.
Specifically, successively deleting the content in following path when deleting built-in SD card:
/data/media/0
/mnt/media_rw/sdcard0
/mnt/shell/emulated
Such case is that whole deletions are carried out to the content under these paths.
S405, judge whether data subregion available space is greater than 5%, if it is, going to step S414, otherwise execute step
Rapid S406.
S406, application program redundant data is removed.
Specifically, each application program corresponds to the data of privately owned catalogue under deletion/data/data catalogue.
S407, judge whether data subregion available space is greater than 5%, if it is, going to step S414, otherwise execute step
Rapid S408.
S408, traversal applications program data catalogue delete the file that size is greater than first threshold.
Specifically, searching loop/data catalogue, deletes big file (for example being greater than 50M).In order to be caused most to user data
Small modifications, maintenance smart machine is fully functional, and every one big file of deletion just judges primary/data subregion available space size again
Whether 5% is greater than, once available space, which is greater than 5%, can restart smart machine.
S409, judge whether data subregion available space is greater than 5%, if it is, going to step S414, otherwise execute step
Rapid S410.
S410, judge whether to have traversed application data directory, if so, thening follow the steps S411, otherwise return to step
Rapid S408.
S411, traversal applications program installation directory delete the file that size is greater than the second preset threshold.
Finished specifically, (being greater than 50M) if all big files and deleting ,/data subregion available space size still less than
5%, then/data/app catalogue is cleared up, this operation will affect the application of user oneself installation, so last delete.
S412, judge whether data subregion available space is greater than 5%, if it is, going to step S414, otherwise execute step
Rapid S413.
S413, recovery service is called to carry out depth cleaning.
Specifically ,/data subregion available space size just can only still less than 5% if having cleared up/data/app catalogue
Depth cleaning is carried out, this process will remove the critical file that system core process etc. creates in critical directories, and restore intelligence
The default setting of energy equipment, this operation will lead to user information and all remove, so as a last resort.
S414, restarting smart machine.
The present embodiment is only illustrated so that smart machine is switched on as an example, and practical applicable scene includes but is not limited to following several
Kind situation:
1) when smart machine carries out system upgrade, if/data subregion has been occupied full, upgrading finishes carry out system optimization
When need to be written critical data to/data subregion, can cause as/system exception caused by data partition space is insufficient.At this time
The system exception restoration methods can be triggered, repair system is abnormal, so that smart machine be enable normally to start.
2) due in smart machine application program possess the permission to/data subregion write-in data, if some applies journey
Sequence constantly writes data to/data subregion, will lead to/data subregion is occupied full.At this point, if system boots up or restarts,
It needs to/data subregion write-in critical data, it will cause as/system exception caused by data partition space is insufficient.At this time
The system exception restoration methods can be triggered, repair system is abnormal, so that smart machine be enable normally to start.
If 3) to/data subregion data are constantly written in application program in smart machine, cause/data subregion is occupied full,
If system is needed dynamically in the process of running to/data subregion write-in critical data at this time, can also it cause due to/data points
System exception caused by area's insufficient space.The system exception restoration methods can be triggered at this time, and repair system is abnormal, to make intelligence
Equipment can normally start.
4) if to critical positions in/data subregion data are written in application program in smart machine, lead to/data subregion quilt
It takes, if needed in system operation at this time dynamically to/data subregion write-in critical data, can also cause due to/data points
System exception caused by area's insufficient space, not only need in this case pair/data subregion under general spatial clear up, also need
System space is cleared up, the root authority file that system permission can not operate is deleted, system exception recovery can be triggered at this time
Method, repair system is abnormal, so that smart machine be enable normally to start.
5) if data are written into/data subregion in system core process in smart machine, and generate large-scale critical file
Cause/data subregion is occupied full, if system boot or when operation, also need also to/data subregion write-in critical data at this time
Cause as/system exception caused by data partition space is insufficient, common cleaning is using the cleaning of no permission in this case
Lead to/the critical file that is occupied full of data subregion.
Embodiment three
According to another aspect of the present invention, a kind of abnormal restoring device based on android system provided, is applied to
Smart machine, the device include:
Monitoring modular 501, for monitoring whether system or application program are written critical data failure;
Judgment module 502, for judging whether the available space of data subregion is less than preset ratio value;
Cleaning modul 503, for clearing up file according to preset strategy, so that the available space on data subregion reaches pre-
If ratio value;
Module 504 is restarted, for restarting smart machine.
Preferably, cleaning modul 503 is specifically used for: according to built-in SD card, application program redundant data, application data
The sequence that catalogue, application program installation directory, Recovery service depth are cleared up carries out cleaning file, judges data in cleaning
Whether the available space of subregion reaches preset ratio value, if it is, terminating cleaning file.
It should be noted that above-mentioned apparatus embodiment and embodiment of the method belong to same design, specific implementation process is detailed
Carefully see embodiment of the method, and the technical characteristic in embodiment of the method is corresponding applicable in Installation practice, which is not described herein again.
In addition, being stored with abnormal restoring program, abnormal restoring on storage medium the present invention also provides a kind of storage medium
When program is executed by processor the step of the above-mentioned abnormal restoring method based on android system.
Abnormal restoring method based on Android, device, smart machine and storage medium provided in an embodiment of the present invention,
When by monitoring system or application program write-in critical data to data subregion due to failure caused by available space deficiency,
Cleaning file Free up Memory is carried out to the influence degree sequence of user according to the file of deletion, to solve android system
Terminal system as caused by data subregion available space deficiency is stuck or cannot be started up.
Preferred embodiments of the present invention have been described above with reference to the accompanying drawings, not thereby limiting the scope of the invention.This
Field technical staff without departing from the scope and spirit of the invention in made by any modifications, equivalent replacements, and improvements, should all this
Within the interest field of invention.
Claims (10)
1. a kind of abnormal restoring method based on android system is applied to smart machine, which is characterized in that this method comprises:
After monitoring system or application program write-in critical data failure, it is default to judge whether the available space of data subregion is less than
Ratio value, if it is, according to it is preset strategy clear up file so that the available space of data subregion reaches preset ratio
Value;
Restart the smart machine.
2. abnormal restoring method according to claim 1, which is characterized in that it is described that file is cleared up according to preset strategy,
Further comprise until the available space on data subregion is greater than preset ratio value:
According to built-in SD card, application program redundant data, application data directory, application program installation directory and failure
Restore Recovery service depth cleaning sequence carry out cleaning file, while cleaning while judge data subregion available space whether
Reach preset ratio value, if it is, terminating cleaning file.
3. abnormal restoring method according to claim 2, which is characterized in that described superfluous according to built-in SD card, application program
The sequence that remainder evidence, application data directory, application program installation directory, Recovery service depth are cleared up carries out cleaning text
Part judges whether the available space of data subregion reaches preset ratio value in cleaning, if it is, terminate cleaning file,
Further comprise:
Delete the file in built-in SD card under preset path;And judge whether the available space of data subregion reaches preset ratio
Value, if it is, terminating cleaning file;
Delete application program redundant data;And judge whether the available space of data subregion reaches preset ratio value, if so,
Then terminate to clear up file;
Traversal applications program data catalogue deletes the text that size in the application data directory is greater than the first preset threshold
Part;One file of every deletion judges whether the available space of a data subregion reaches preset ratio value, if it is, terminating
File clean-up;
Traversal applications program installation directory deletes the text that size in the application program installation directory is greater than the second preset threshold
Part;One file of every deletion judges whether the available space of a data subregion reaches preset ratio value, if it is, terminating
File clean-up;
Recovery service is called to carry out depth cleaning.
4. abnormal restoring method according to claim 3, which is characterized in that first preset threshold includes 50,000,000;Institute
Stating the second preset threshold includes 50,000,000.
5. abnormal restoring method described in -5 any one claims according to claim 1, which is characterized in that described preset
Ratio value includes 5%.
6. a kind of abnormal restoring device based on android system, it is applied to smart machine, which is characterized in that the device includes:
Monitoring modular, for monitoring whether system or application program are written critical data failure;
Judgment module, for judging whether the available space of data subregion is less than preset ratio value;
Cleaning modul, for clearing up file according to preset strategy, so that the available space on data subregion reaches preset ratio
Example value;
Module is restarted, for restarting the smart machine.
7. abnormal restoring device according to claim 6, which is characterized in that the cleaning modul is specifically used for:
According to built-in SD card, application program redundant data, application data directory, application program installation directory, Recovery
The sequence of service depth cleaning carries out cleaning file, judges whether the available space of data subregion reaches preset ratio in cleaning
Example value, if it is, terminating cleaning file.
8. a kind of smart machine, which is characterized in that the smart machine includes: memory, processor and is stored in the storage
On device and the computer program that can run on the processor, realized such as when the computer program is executed by the processor
The step of abnormal restoring method described in any one of claims 1 to 5.
9. smart machine according to claim 8, which is characterized in that the smart machine includes being based on android system
Mobile terminal or fixed terminal.
10. a kind of storage medium, which is characterized in that be stored with abnormal restoring program, the abnormal restoring on the storage medium
The abnormal restoring side based on android system as described in any one of claims 1 to 5 is realized when program is executed by processor
The step of method.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710475936.3A CN109101363B (en) | 2017-06-21 | 2017-06-21 | Exception recovery method and device based on Android system, intelligent equipment and storage medium |
PCT/CN2018/092188 WO2018233668A1 (en) | 2017-06-21 | 2018-06-21 | Android system-based abnormality recovery method and apparatus, smart device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710475936.3A CN109101363B (en) | 2017-06-21 | 2017-06-21 | Exception recovery method and device based on Android system, intelligent equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109101363A true CN109101363A (en) | 2018-12-28 |
CN109101363B CN109101363B (en) | 2023-09-22 |
Family
ID=64735502
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710475936.3A Active CN109101363B (en) | 2017-06-21 | 2017-06-21 | Exception recovery method and device based on Android system, intelligent equipment and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109101363B (en) |
WO (1) | WO2018233668A1 (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110049375A (en) * | 2019-03-25 | 2019-07-23 | 深圳市天威视讯股份有限公司 | For the application program installation method of Intelligent set top box, system and set-top box |
CN110083476A (en) * | 2019-04-23 | 2019-08-02 | 努比亚技术有限公司 | Application control method, terminal and computer readable storage medium |
CN110457136A (en) * | 2019-08-09 | 2019-11-15 | 四川虹美智能科技有限公司 | A kind of Android system clears up the method, apparatus and terminal device of file automatically |
CN112182652A (en) * | 2020-09-27 | 2021-01-05 | 广州朗国电子科技有限公司 | Method and device for protecting data partition from being fully written, storage medium and terminal equipment |
CN112333544A (en) * | 2020-11-09 | 2021-02-05 | 四川长虹电器股份有限公司 | Method for partitioned protection of Android smart television data |
CN113741980A (en) * | 2020-05-29 | 2021-12-03 | 青岛海信移动通信技术股份有限公司 | Electronic equipment starting method based on android system, electronic equipment and storage medium |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101078999A (en) * | 2006-05-26 | 2007-11-28 | 任永坚 | Method and system for accomplishing data backup and recovery |
CN101395602A (en) * | 2005-12-29 | 2009-03-25 | 亚马逊科技公司 | Method and apparatus for a distributed file storage and indexing service |
CN102656565A (en) * | 2009-10-26 | 2012-09-05 | 亚马逊技术股份有限公司 | Failover and recovery for replicated data instances |
CN103064675A (en) * | 2012-12-24 | 2013-04-24 | 广东欧珀移动通信有限公司 | Method and device for cleaning up redundant files in mobile terminal automatically |
CN103761306A (en) * | 2014-01-22 | 2014-04-30 | 深圳市欧珀通信软件有限公司 | Smart terminal file cleaning method and device |
US20140236902A1 (en) * | 2011-09-29 | 2014-08-21 | Beijing Qihoo Technology Company Limited | User Data Backup Method and Apparatus |
CN105068844A (en) * | 2015-08-26 | 2015-11-18 | 广东欧珀移动通信有限公司 | Method and apparatus for solving problem of no startup of Android terminal |
CN105589663A (en) * | 2015-12-23 | 2016-05-18 | 努比亚技术有限公司 | Mobile terminal and data processing method thereof |
CN106383748A (en) * | 2016-09-05 | 2017-02-08 | Tcl集团股份有限公司 | Cloud service-based storage space clearing method and system |
CN106598563A (en) * | 2016-10-19 | 2017-04-26 | 广东欧珀移动通信有限公司 | Method and device for restarting intelligent terminal, and intelligent terminal |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103077122B (en) * | 2013-01-14 | 2016-03-30 | 华为终端有限公司 | The management method of mobile terminal internal storage space and mobile terminal |
CN104657182B (en) * | 2015-03-05 | 2018-08-07 | 北京畅游天下网络技术有限公司 | System rubbish method for cleaning and device for mobile device |
-
2017
- 2017-06-21 CN CN201710475936.3A patent/CN109101363B/en active Active
-
2018
- 2018-06-21 WO PCT/CN2018/092188 patent/WO2018233668A1/en active Application Filing
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101395602A (en) * | 2005-12-29 | 2009-03-25 | 亚马逊科技公司 | Method and apparatus for a distributed file storage and indexing service |
CN101078999A (en) * | 2006-05-26 | 2007-11-28 | 任永坚 | Method and system for accomplishing data backup and recovery |
CN102656565A (en) * | 2009-10-26 | 2012-09-05 | 亚马逊技术股份有限公司 | Failover and recovery for replicated data instances |
US20140236902A1 (en) * | 2011-09-29 | 2014-08-21 | Beijing Qihoo Technology Company Limited | User Data Backup Method and Apparatus |
CN103064675A (en) * | 2012-12-24 | 2013-04-24 | 广东欧珀移动通信有限公司 | Method and device for cleaning up redundant files in mobile terminal automatically |
CN103761306A (en) * | 2014-01-22 | 2014-04-30 | 深圳市欧珀通信软件有限公司 | Smart terminal file cleaning method and device |
CN105068844A (en) * | 2015-08-26 | 2015-11-18 | 广东欧珀移动通信有限公司 | Method and apparatus for solving problem of no startup of Android terminal |
CN105589663A (en) * | 2015-12-23 | 2016-05-18 | 努比亚技术有限公司 | Mobile terminal and data processing method thereof |
CN106383748A (en) * | 2016-09-05 | 2017-02-08 | Tcl集团股份有限公司 | Cloud service-based storage space clearing method and system |
CN106598563A (en) * | 2016-10-19 | 2017-04-26 | 广东欧珀移动通信有限公司 | Method and device for restarting intelligent terminal, and intelligent terminal |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110049375A (en) * | 2019-03-25 | 2019-07-23 | 深圳市天威视讯股份有限公司 | For the application program installation method of Intelligent set top box, system and set-top box |
CN110083476A (en) * | 2019-04-23 | 2019-08-02 | 努比亚技术有限公司 | Application control method, terminal and computer readable storage medium |
CN110457136A (en) * | 2019-08-09 | 2019-11-15 | 四川虹美智能科技有限公司 | A kind of Android system clears up the method, apparatus and terminal device of file automatically |
CN113741980A (en) * | 2020-05-29 | 2021-12-03 | 青岛海信移动通信技术股份有限公司 | Electronic equipment starting method based on android system, electronic equipment and storage medium |
CN112182652A (en) * | 2020-09-27 | 2021-01-05 | 广州朗国电子科技有限公司 | Method and device for protecting data partition from being fully written, storage medium and terminal equipment |
CN112182652B (en) * | 2020-09-27 | 2021-10-08 | 广州朗国电子科技有限公司 | Method and device for protecting data partition from being fully written, storage medium and terminal equipment |
CN112333544A (en) * | 2020-11-09 | 2021-02-05 | 四川长虹电器股份有限公司 | Method for partitioned protection of Android smart television data |
Also Published As
Publication number | Publication date |
---|---|
WO2018233668A1 (en) | 2018-12-27 |
CN109101363B (en) | 2023-09-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109101363A (en) | Abnormal restoring method, device, smart machine and storage medium based on android system | |
CN107678876B (en) | Screen freezing monitoring and solving method, mobile terminal and computer readable storage medium | |
CN109828688A (en) | Screen damage processing method, mobile terminal and computer readable storage medium | |
CN106227350B (en) | The method and smart machine of operation control are carried out based on gesture | |
CN109697088A (en) | Application interface loading method, mobile terminal and computer readable storage medium | |
CN109814930A (en) | A kind of application loading method, device and mobile terminal | |
CN104869465A (en) | Video playing control method and device | |
CN103269374A (en) | Method, device and equipment for recording synchronization | |
CN107704133A (en) | Freeze screen monitoring with solving method, mobile terminal and computer-readable recording medium | |
CN109766119B (en) | Recovery partition upgrade method, terminal and computer readable storage medium | |
CN107704363A (en) | Freeze screen monitoring method, mobile terminal and computer-readable recording medium | |
CN109743724A (en) | A kind of management method and mobile terminal of embedded SIM card | |
CN107908492B (en) | Black screen detection method, mobile terminal and computer readable storage medium | |
CN111026674A (en) | Data storage method and electronic equipment | |
CN107908491A (en) | Card screen detection is with solving method, mobile terminal and computer-readable recording medium | |
CN107832191B (en) | Black screen detection method, mobile terminal and computer readable storage medium | |
CN107818036B (en) | Black screen detection method, mobile terminal and computer readable storage medium | |
CN105653112A (en) | Method and device for displaying floating layer | |
CN107766222B (en) | Black screen detection method, mobile terminal and computer readable storage medium | |
CN107872367B (en) | Black screen detection method, mobile terminal and computer readable storage medium | |
CN107341032B (en) | Data loading method, mobile terminal and computer readable storage medium | |
CN109284146A (en) | A kind of light application open method and mobile terminal | |
CN106371896B (en) | Virutal machine memory configuration method and device, mobile terminal | |
CN108228357A (en) | A kind of memory method for cleaning and mobile terminal | |
CN107770449A (en) | continuous shooting method, electronic equipment and storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |