CN105653200B - The method and device of write-in limitation is carried out to ROM specified path in mobile terminal - Google Patents
The method and device of write-in limitation is carried out to ROM specified path in mobile terminal Download PDFInfo
- Publication number
- CN105653200B CN105653200B CN201410681851.7A CN201410681851A CN105653200B CN 105653200 B CN105653200 B CN 105653200B CN 201410681851 A CN201410681851 A CN 201410681851A CN 105653200 B CN105653200 B CN 105653200B
- Authority
- CN
- China
- Prior art keywords
- specified path
- rom
- instruction information
- write
- white list
- 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.)
- Active
Links
Landscapes
- Stored Programmes (AREA)
Abstract
The invention discloses the methods that ROM specified path in a kind of pair of mobile terminal carries out write-in limitation, comprising the following steps: is monitored to specified path;When monitoring in the presence of the instruction of spatial variations for causing the specified path, acquisition instruction information;Judge whether the free space after the spatial variations of the specified path is lower than preset threshold;If being lower than the preset threshold, further judge whether the program for sending described instruction information belongs to default white list;If belonging to the default white list, allow to execute described instruction information;If being not belonging to the default white list, do not allow to execute described instruction information.This method can guarantee the stabilization of whole system as a result, avoid the occurrence of the abnormal situation of critical services.The invention also discloses the devices that ROM specified path in a kind of pair of mobile terminal carries out write-in limitation.
Description
Technical field
The present invention relates to field of communication technology, in particular to ROM specified path carries out write-in limit in a kind of pair of mobile terminal
ROM specified path carries out the device of write-in limitation in the method for system and a kind of pair of mobile terminal.
Background technique
On mobile terminals after installation application, the ROM Space in mobile terminal can be consumed, when ROM Space is depleted to centainly
When degree, the transformed space of system is inadequate, will cause serv-fail.In the related technology, generalling use system implementations is
Threshold values is taken to protect the gross space of ROM, still, the relevant technologies have the drawback that, pre- when can be used space to be lower than in ROM Space
If when threshold value, not allowing to consume the instruction execution of ROM Space, even if being important service, to influence the stability of system.Cause
This, there are improved needs for the relevant technologies.
Summary of the invention
The present invention is directed to solve at least some of the technical problems in related technologies.
For this purpose, an object of the present invention is to provide ROM specified paths in a kind of pair of mobile terminal to carry out write-in limitation
Method, this method can guarantee the stabilization of the whole system of mobile terminal.
It is another object of the present invention to propose that ROM specified path in a kind of pair of mobile terminal carries out the dress of write-in limitation
It sets.
The side that write-in limitation is carried out to ROM specified path in mobile terminal that embodiment proposes according to an aspect of the present invention
Method, comprising the following steps: specified path is monitored;When monitor in the presence of cause the specified path spatial variations finger
When enabling, acquisition instruction information;Judge whether the free space after the spatial variations of specified path is lower than preset threshold;If low
In the preset threshold, then further judge whether the program for sending described instruction information belongs to default white list;If belonged to
The default white list then allows to execute described instruction information;If being not belonging to the default white list, do not allow to execute institute
State command information.
The method for carrying out write-in limitation to ROM specified path in mobile terminal proposed according to embodiments of the present invention, is referring to
When determining the free space after path spacing changes lower than preset threshold, further judge whether the program for sending command information belongs to
In default white list, if belonging to default white list, allow to execute described instruction information, if being not belonging to default white list,
Do not allow then to execute described instruction information, thereby may be ensured that the stabilization of the whole system of mobile terminal, avoid the occurrence of important clothes
The abnormal situation of business.
The dress that write-in limitation is carried out to ROM specified path in mobile terminal that embodiment proposes according to an aspect of the present invention
It sets, comprising: monitoring module causes the space of the specified path to become for being monitored to specified path when monitoring to exist
When the instruction of change, acquisition instruction information;Judgment module, whether the free space after spatial variations for judging specified path
Lower than preset threshold, if being lower than the preset threshold, further judge whether the program for sending described instruction information belongs to
Default white list allows to execute described instruction information if belonging to the default white list, if be not belonging to it is described preset it is white
List does not allow then to execute described instruction information.
What is proposed according to embodiments of the present invention carries out the device of write-in limitation to ROM specified path in mobile terminal, passes through
Monitoring module is monitored specified path, and free space after judgment module judges specified path spatial variations is lower than pre-
If when threshold value, further judging whether the program for sending command information belongs to default white list, if belonging to default white list,
Allow to execute described instruction information, if being not belonging to default white list, does not allow to execute described instruction information, so as to protect
The stabilization for demonstrate,proving the whole system of mobile terminal avoids the occurrence of the abnormal situation of critical services.
Detailed description of the invention
Fig. 1 is the stream of the method according to an embodiment of the present invention that write-in limitation is carried out to ROM specified path in mobile terminal
Cheng Tu;
Fig. 2 is the method according to an embodiment of the invention for carrying out write-in limitation to ROM specified path in mobile terminal
In specified path is monitored by the system calling process in monitoring system kernel flow chart;
Fig. 3 be accord to a specific embodiment of that present invention to ROM specified path in mobile terminal carry out write-in limitation
The flow chart that application layer monitors in method;
Fig. 4 be accord to a specific embodiment of that present invention to ROM specified path in mobile terminal carry out write-in limitation
The flow chart that the write-in of specified partition or specified directory is controlled in method;
Fig. 5 be accord to a specific embodiment of that present invention to ROM specified path in mobile terminal carry out write-in limitation
The flow chart of method;And
Fig. 6 is the side of the device according to an embodiment of the present invention that write-in limitation is carried out to ROM specified path in mobile terminal
Frame schematic diagram.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached
The embodiment of figure description is exemplary, it is intended to is used to explain the present invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings describe the embodiment of the present invention to ROM in mobile terminal (Read Only Memory, it is read-only to deposit
Reservoir) specified path carry out write-in limitation method and device.
Fig. 1 is the stream of the method according to an embodiment of the present invention that write-in limitation is carried out to ROM specified path in mobile terminal
Cheng Tu.ROM is read-only memory, is used to storing data data.As shown in Figure 1, method includes the following steps:
S1: specified path is monitored.
Wherein, it should be noted that specified path can be specified partition or specified directory.
A specific embodiment according to the present invention, is monitored i.e. step S1 to specified path and specifically includes: passing through prison
System calling process in control system kernel is monitored specified path, wherein system calling process includes write-in process
(SYS_WRITE), deletion process (SYS_DEL) and update process (SYS_CRETE).
According to one embodiment of present invention, as shown in Fig. 2, by the system calling process in monitoring system kernel to finger
Determine path and be monitored to specifically include:
S10: whether detection system calling process occurs.
S11: if the system calling process of detecting has occurred, further judge whether ROM defencive function has been turned on.
S12: if it is determined that ROM defencive function has been turned on, then judge whether the path that system calling process is related to belongs to finger
Determine path, wherein the acquisition instruction information when belonging to specified path.
S2: when monitoring in the presence of the instruction of spatial variations for causing specified path, acquisition instruction information.
S3: judge whether the free space after the spatial variations of specified path is lower than preset threshold.
Wherein, preset threshold can for specified path workable for user space multiplied by preset ratio, preset ratio can be
2%-5%, it is generally the case that space is bigger, preset ratio suitably becomes smaller.For example, the specified path space workable for user
When for 260M, preset ratio desirable 3%, preset threshold can approximation be taken as 8M, i.e. 260M*3%.
S4: if being lower than preset threshold, further judge whether the program for sending command information belongs to default white list.
Wherein, default white list may include preset multiple system-level processes.
It should be noted that lists in default white list is important system-level process.For example, white list is preset
It can be com.process.systemui (process of system UI Interface Control), com.process.phone (system mobile phone service
Process), the com.process.setting process of control (system SETTING), system_server (system service into
Journey) and zygote (the incubator process of other processes and service, since it produces other application processes) etc..
S5: if belonging to default white list, allow to execute instruction information.
S6: if being not belonging to default white list, do not allow to execute instruction information.
According to another embodiment of the invention, the method for write-in limitation being carried out to ROM specified path in mobile terminal, also
If including: to belong to default white list, first identifier such as TRUE is set by the contact mark in kernel, wherein when interior
When contact in core is identified as first identifier, allow to execute instruction information;It, will be in kernel if being not belonging to default white list
Contact mark is set as second identifier such as FALSE wherein, when the contact in kernel is identified as second identifier, does not allow to execute
Command information.Judge whether to execute instruction information by contact mark as a result, i.e., if contact mark is set as TRUE, permits
Permitted to execute instruction information;If contact mark is set as FALSE, do not allow to execute instruction information.
Specifically, the method for the embodiment of the present invention specifically includes following three parts, is adopted in kernel first
Sample followed by carries out the monitoring of application layer, is finally the control of the write-in to specified partition or specified directory.Separately below to three
A part is described in detail.
Sampling process is as follows in kernel:
Firstly the need of the determining command path being monitored, i.e. specified partition or specified directory, for example, by DATA
For subregion is as specified partition, when having information change in DATA subregion (such as write-in, update, deletion etc. can cause letter
Breath variation), carry out data sampling.In particular it is necessary to change the original mechanism of kernel, that is, judge the road that system calling process is related to
Diameter whether the catalogue under DATA subregion or DATA subregion, if the catalogue under DATA subregion or DATA subregion, on
It is replaced when road report diameter using DATA, and the write-in of the system call interfaces in kernel, modification and deletion and link etc. is changed
Processing is all added to the notification event that need to be monitored, and is reported to the monitoring finger daemon of application layer.
The monitoring of application layer is as follows:
A monitoring finger daemon DATA_PT_CHECK process can be designed in application layer, for monitoring tracking specified partition
Or the notification event of specified directory reported initializes notification event when monitoring notification event, and setting pair
The sampling channel answered directly is reported with monitoring the spatial variations situation of specified partition or specified directory for example, notice can be used
The mode of mechanism engagement poll is sampled, and can be primary every 3 milliseconds of samplings.Later, if specified partition in kernel
Or catalogue is when having space change, obtains the current idle space of this specified directory or subregion, and by current idle space and default
Threshold value is compared, and determines that the mark of the contact in the kernel i.e. contact of DATA subregion controls the value of information according to comparison result, with
Determine whether current state has been to enter controlled state, i.e. whether current idle space is less than preset threshold.
Specifically, as shown in figure 3, the monitoring of application layer specifically includes the following steps:
S101:inotify_init is initialized.
S102:inotify_add_watch is monitored DATA subregion.
S103: the current idle space of DATA subregion is obtained by statfs system.
S104:WHILE (1) enters circularly monitoring.
That is, one Infinite Cyclic of setting can monitor spatial variations in real time when monitoring process starts.
S105:poll (&pfd, 1,3000), sampled into multiplexer channel, to be obtained in the spatial variations of DATA subregion
Spatial variations information.
S106: judge whether to get spatial variations information.If so, thening follow the steps S107;If it is not, then executing step
Rapid S109.
For example, spatial variations information can are as follows:
sys/board_properties/data_pt_check
"/sys/board_properties/data_pt_size"
"/sys/board_properties/data_pt_limit_size"
It is pre- to can determine whether the free space data_pt_size after the variation of DATA partition space is lower than by above-mentioned contact
If threshold value data_pt_limit_size.S107: it is pre- to judge whether the free space after the spatial variations of DATA subregion is less than
If threshold value.If so, thening follow the steps S108;If not, thening follow the steps S109.
S108: TRUE, return step S104 are set by the contact mark in kernel.
S109: FALSE, return step S104 are set by the contact mark in kernel.
It is as follows to the write-in control process of specified partition or specified directory:
When data are written to inner nuclear layer in client layer, when the system that client layer calls kernel write-in calls function, can divide
Following Jin Hang not judge: whether ROM defencive function has been turned on;Judge whether the free space after specified path spatial variations is low
In preset threshold;Whether the path that system calling process is related to belongs to specified path such as DATA subregion;Send command information
Whether program belongs to default white list, determines the need for being written according to above judging result as a result,.That is, using
Information needed for layer obtains judgement, and the mark of the contact in kernel is set.Kernel is directed to the state of contact mark, is written in kernel
When according to application layer provide information judge whether to really be written.
Specifically, as shown in figure 4, to the write-in of specified partition or specified directory control specifically includes the following steps:
S201: calling system calling process SYS_WRITE.
S202: judge whether ROM defencive function has been turned on.If so, thening follow the steps S203;If it is not, then terminating, no
Booting ROM defencive function.
Wherein, the starting state of ROM defencive function can identify true according to the corresponding contact of ROM defencive function in kernel
It is fixed.
S203: judge whether the free space after the spatial variations of DATA subregion is lower than preset threshold.If it is, holding
Row step S204;If not, thening follow the steps S207.
Wherein, can judge whether the free space after the spatial variations of DATA subregion is low by the mark of the contact in kernel
In preset threshold, in other words, if contact is identified as TRUE, the free space after spatial variations is lower than preset threshold;If
Contact is identified as FALSE, then the free space after spatial variations is higher than preset threshold.
It should be noted that it is specifically according to step S208 that whether the free space after spatial variations, which is lower than preset threshold,
In contact judge.
S204: judge whether the path that system calling process is related to belongs to DATA subregion.If so, thening follow the steps
S205;If not, thening follow the steps S207.
S205: judge whether the program for sending command information belongs to default white list.If so, thening follow the steps S207;
If not, thening follow the steps S206.
S206: not allowing to be written, while the contact mark in kernel is updated to FALSE, terminates.
S207: allowing to be written, while the contact mark in kernel is updated to TRUE, terminates.
S208:sys/board_properties/data_pt_check
"/sys/board_properties/data_pt_size"
"/sys/board_properties/data_pt_limit_size"
That is, it is default for judging whether various conditions meet, specifically, by checking that above-mentioned contact can determine whether
Whether the free space data_pt_size after the variation of DATA partition space is lower than preset threshold data_pt_limit_size.
Generally speaking, the system calling process in system kernel can be supervised by the monitoring finger daemon of application layer
Control, monitoring specified partition or specified directory has when information or spatial variations (for example, write-in, update, deletion etc. cause letter
Breath or spatial variations), obtain corresponding information, compare calculate check the spatial variations for referring to specified partition or specified directory it
Whether free space afterwards is lower than preset threshold, and the contact in kernel then is arranged according to comparison result and identifies, application layer provides
The default white list that excludes of needs, it reversely compares, when the program for sending command information belongs to default white list, then
The write-in of specified partition perhaps catalogue is just needed to be implemented and has arrived limit value even if usable space or use space is low
In preset threshold.When the system that client layer calls kernel SYS_WRITE write-in calls function, respectively specify that path spacing changes
Whether the path that whether free space later is lower than preset threshold, system calling process is related to belongs to specified path such as DATA
Whether subregion and the program for sending command information belong to default white list, to determine whether needing to be written.
Specifically, as shown in figure 5, the method for the invention for carrying out write-in limitation to ROM specified path in mobile terminal has
Body the following steps are included:
S301: the monitoring finger daemon DATA_PT_CHECK of application layer is monitored.
Specific monitoring process such as Fig. 3 embodiment describes, and which is not described herein again.
S302: calling system calling process SYS_WRITE, SYS_DEL or SYS_CRETE.
Such as calling process SYS_WRITE, step S304 can be performed.
S303: being monitored system calling process SYS_WRITE, SYS_DEL and SYS_CRETE, and on being changed
Offer monitoring finger daemon DATA_PT_CHECK.
S304: judge whether ROM defencive function has been turned on.If so, thening follow the steps S305;If it is not, then terminating, no
Booting ROM defencive function.
S305: judge whether the free space after the spatial variations of DATA subregion is lower than preset threshold.If it is, holding
Row step S306;If not, thening follow the steps S309.
Wherein, can judge whether the free space after the spatial variations of DATA subregion is low by the mark of the contact in kernel
In preset threshold.It should be noted that it is specifically according to step that whether the free space after spatial variations, which is lower than preset threshold,
Contact in S310 judges.
S306: judge whether the path that system calling process is related to belongs to DATA subregion.If so, thening follow the steps
S307;If not, thening follow the steps S309.
S307: judge whether the program for sending command information belongs to default white list.If so, thening follow the steps S309;
If not, thening follow the steps S308.
S308: not allowing to be written, while the contact mark in kernel is updated to FALSE, terminates.
S309: allowing to be written, while the contact mark in kernel is updated to TRUE, terminates.
S310:sys/board_properties/data_pt_check
"/sys/board_properties/data_pt_size"
"/sys/board_properties/data_pt_limit_size"。
Specifically, can determine whether the free space data_pt_ after the variation of DATA partition space by the above-mentioned contact of inspection
Whether size is lower than preset threshold data_pt_limit_size.
To sum up, the method that write-in limitation is carried out to ROM specified path in mobile terminal proposed according to embodiments of the present invention,
When the free space after specified path spatial variations is lower than preset threshold, further judgement, which sends the program of command information, is
It is no to belong to default white list, if belonging to default white list, allow to execute described instruction information, if being not belonging to preset white name
It is single, then do not allow to execute described instruction information, thereby may be ensured that the stabilization of the whole system of mobile terminal, avoid the occurrence of important
The abnormal situation of service.
In order to realize above-described embodiment, the present invention also proposes that ROM specified path carries out write-in limit in a kind of pair of mobile terminal
The device of system.
Fig. 6 is the side of the device according to an embodiment of the present invention that write-in limitation is carried out to ROM specified path in mobile terminal
Frame schematic diagram.As shown in fig. 6, the device includes monitoring module 1 and judgment module 2.
There are the spatial variations for causing specified path for being monitored to specified path, when monitoring in monitoring module 1
When instruction, acquisition instruction information, wherein it should be noted that specified path can be specified partition or specified directory.Judgment module
Whether the free space after 2 spatial variations for judging specified path is lower than preset threshold, if being lower than preset threshold,
Further judge whether the program for sending command information belongs to default white list, if belonging to default white list, allows to execute
Command information does not allow to execute instruction information if being not belonging to default white list.
Wherein, default white list includes preset multiple system-level processes.It should be noted that being listed in default white list
Be important system-level process.For example, default white list can be the com.process.systemui (interface system UI control
The process of system), com.process.phone (process of system mobile phone service), com.process.setting (system
The processes of SETTING control), system_server (system service process) and the zygote (hatching of other processes and service
Device process, since it produces other application processes) etc..
In addition, it is necessary to be illustrated, preset threshold can be the space of specified path workable for user multiplied by default
Ratio, preset ratio can be 2%-5%, and usual situation down space is bigger, preset ratio suitably becomes smaller.For example, when user can make
When the space of specified path is 260M, preset ratio desirable 3%, preset threshold can approximation be taken as 8M, i.e. 260M*3%.
A specific embodiment according to the present invention, monitoring module 1 pass through the system calling process in monitoring system kernel
Specified path is monitored, system calling process includes write-in process (SYS_WRITE), deletion process (SYS_DEL) and more
New process (SYS_CRETE).
According to one embodiment of present invention, monitoring module 1 is specifically used for whether detection system calling process occurs, if
The system calling process of detecting has occurred, then further judges whether ROM defencive function has been turned on, if it is determined that ROM protects function
It can have been turned on, then judge whether the path that system calling process is related to belongs to specified path, wherein be obtained when belonging to specified path
Instruction fetch information.
According to another embodiment of the invention, judgment module 2 is also used to, if belonging to default white list, by kernel
In contact mark be set as first identifier such as TRUE, if being not belonging to default white list, the contact in kernel is identified
It is set as second identifier such as FALSE, wherein when the contact in kernel is identified as first identifier, allow to execute instruction information,
When the contact in kernel is identified as second identifier, do not allow to execute instruction information.
To sum up, what is proposed according to embodiments of the present invention carries out the device of write-in limitation to ROM specified path in mobile terminal,
Specified path is monitored by monitoring module, free space after judgment module judges specified path spatial variations is low
When preset threshold, further judge whether the program for sending command information belongs to default white list, presets white name if belonged to
It is single, then allow to execute described instruction information, if being not belonging to default white list, does not allow to execute described instruction information, thus
The stabilization that can guarantee the whole system of mobile terminal avoids the occurrence of the abnormal situation of critical services.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not
It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office
It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field
Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples
It closes and combines.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance
Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or
Implicitly include at least one this feature.In the description of the present invention, the meaning of " plurality " is at least two, such as two, three
It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes
It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion
Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussed suitable
Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be of the invention
Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use
In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for
Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction
The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set
It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass
Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment
It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings
Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory
(ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits
Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable
Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media
His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned
In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage
Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware
Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal
Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene
Programmable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries
It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium
In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, each functional unit in each embodiment of the present invention can integrate in a processing module
It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould
Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as
Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer
In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above
The embodiment of the present invention is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as to limit of the invention
System, those skilled in the art can be changed above-described embodiment, modify, replace and become within the scope of the invention
Type.
Claims (10)
1. the method that ROM specified path carries out write-in limitation in a kind of pair of mobile terminal, which comprises the following steps:
Specified path is monitored;
When monitoring in the presence of the instruction of spatial variations for causing the specified path, acquisition instruction information;
Judge whether the current idle space of the specified path is lower than preset threshold;
If being lower than the preset threshold, further judges whether the program for sending described instruction information belongs to and preset white name
It is single;
If belonging to the default white list, allow to execute described instruction information;And
If being not belonging to the default white list, do not allow to execute described instruction information.
2. the method for carrying out write-in limitation to ROM specified path in mobile terminal as described in claim 1, which is characterized in that
Described be monitored to specified path specifically includes:
The specified path is monitored by the system calling process in monitoring system kernel, wherein the system is called
Process includes write-in process, deletion process and update process.
3. the method for carrying out write-in limitation to ROM specified path in mobile terminal as claimed in claim 2, which is characterized in that
The system calling process by monitoring system kernel, which is monitored the specified path, to be specifically included:
Detect whether the system calling process occurs;
If detecting that the system calling process has occurred, further judge whether ROM defencive function has been turned on;
If it is determined that the ROM defencive function has been turned on, then whether the path for judging that the system calling process is related to belongs to institute
State specified path, wherein described instruction information is obtained when belonging to the specified path.
4. the method for carrying out write-in limitation to ROM specified path in mobile terminal as described in claim 1, which is characterized in that
The default white list includes preset multiple system-level processes.
5. the method for carrying out write-in limitation to ROM specified path in mobile terminal as described in claim 1, which is characterized in that
Further include:
If belonging to the default white list, first identifier is set by the contact mark in kernel, wherein when the kernel
In contact when being identified as the first identifier, allow to execute described instruction information;And
If being not belonging to the default white list, second identifier is set by the contact mark in kernel, wherein when described interior
When contact in core is identified as the second identifier, do not allow to execute described instruction information.
6. ROM specified path carries out the device of write-in limitation in a kind of pair of mobile terminal characterized by comprising
There are the spatial variations for causing the specified path when monitoring for being monitored to specified path in monitoring module
When instruction, acquisition instruction information;
Judgment module, for judging whether the current idle space of the specified path is lower than preset threshold, if lower than described
Preset threshold then further judges whether the program for sending described instruction information belongs to default white list, if belonged to described pre-
If white list, then allow to execute described instruction information, if being not belonging to the default white list, does not allow to execute described instruction
Information.
7. the device of write-in limitation is carried out to ROM specified path in mobile terminal as claimed in claim 6, which is characterized in that
The monitoring module is monitored the specified path by the system calling process in monitoring system kernel, wherein described
System calling process includes write-in process, deletion process and update process.
8. the device of write-in limitation is carried out to ROM specified path in mobile terminal as claimed in claim 7, which is characterized in that
The monitoring module, specifically for detecting whether the system calling process occurs, if detecting that the system is called
Process has occurred, then further judges whether ROM defencive function has been turned on, if it is determined that the ROM defencive function has been turned on, then
Whether the path for judging that the system calling process is related to belongs to the specified path, wherein when belonging to the specified path
Obtain described instruction information.
9. the device of write-in limitation is carried out to ROM specified path in mobile terminal as claimed in claim 6, which is characterized in that
The default white list includes preset multiple system-level processes.
10. the device of write-in limitation is carried out to ROM specified path in mobile terminal as claimed in claim 6, which is characterized in that
The judgment module is also used to, if belonging to the default white list, sets first for the contact mark in kernel
Mark sets second identifier for the contact mark in kernel, wherein when described if being not belonging to the default white list
When contact in kernel is identified as the first identifier, allow to execute described instruction information, when the contact mark in the kernel
When for the second identifier, do not allow to execute described instruction information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410681851.7A CN105653200B (en) | 2014-11-24 | 2014-11-24 | The method and device of write-in limitation is carried out to ROM specified path in mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410681851.7A CN105653200B (en) | 2014-11-24 | 2014-11-24 | The method and device of write-in limitation is carried out to ROM specified path in mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105653200A CN105653200A (en) | 2016-06-08 |
CN105653200B true CN105653200B (en) | 2019-05-17 |
Family
ID=56480079
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410681851.7A Active CN105653200B (en) | 2014-11-24 | 2014-11-24 | The method and device of write-in limitation is carried out to ROM specified path in mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105653200B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107016099A (en) * | 2017-04-10 | 2017-08-04 | 国家电网公司 | The folder space monitoring maintenance system and method for class Unix system server |
CN112749411A (en) * | 2021-01-14 | 2021-05-04 | 上海商米科技集团股份有限公司 | Hierarchical management and control method and system for android file system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001265650A (en) * | 2000-03-15 | 2001-09-28 | Omron Corp | Memory resource using condition monitoring device and memory resource using condition monitoring method |
CN101251827A (en) * | 2007-02-19 | 2008-08-27 | 株式会社东芝 | Information storage device and stored data processing method |
CN103530235A (en) * | 2013-10-18 | 2014-01-22 | 北京奇虎科技有限公司 | Method and device for clearing internal storage in mobile terminal |
-
2014
- 2014-11-24 CN CN201410681851.7A patent/CN105653200B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001265650A (en) * | 2000-03-15 | 2001-09-28 | Omron Corp | Memory resource using condition monitoring device and memory resource using condition monitoring method |
CN101251827A (en) * | 2007-02-19 | 2008-08-27 | 株式会社东芝 | Information storage device and stored data processing method |
CN103530235A (en) * | 2013-10-18 | 2014-01-22 | 北京奇虎科技有限公司 | Method and device for clearing internal storage in mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN105653200A (en) | 2016-06-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106961352B (en) | Monitoring system and monitoring method | |
CN106528791B (en) | A kind of method and device of sending out notice message | |
CN106569585B (en) | A kind of method and terminal managing program process | |
US8539509B2 (en) | Event queue managing device and event queue managing method | |
CN106095551A (en) | The method and apparatus showing media file | |
US20130055271A1 (en) | Apparatus and method for controlling polling | |
CN104252350B (en) | A kind of method and apparatus of picture in loading list box | |
CN109597798A (en) | Network file delet method, device, computer equipment and storage medium | |
CN105653200B (en) | The method and device of write-in limitation is carried out to ROM specified path in mobile terminal | |
EP2615551A1 (en) | Abnormality inspection device, central processing unit, and abnormality inspection method | |
CN106878525A (en) | A kind of incoming information reminds the display methods and device at interface | |
CN113742068A (en) | Task scheduling method, device, equipment, storage medium and computer program product | |
CN106453904A (en) | Information reminding method and terminal | |
CN105607831B (en) | The control method and device of pop-up | |
CN111555959A (en) | User-defined control global popup notification processing method and device | |
CN108400885A (en) | A kind of service availability detection method, device and electronic equipment | |
CN107861855A (en) | A kind of method, terminal, system and computer-readable recording medium for reducing abnormal power consumption | |
CN106980402B (en) | Method and device for judging reset calibration and terminal | |
CN106534399B (en) | The detection method and device of VSM division | |
CN107193679A (en) | A kind of disaster recovery method and system | |
CN106066796A (en) | Message reminding method and device and mobile terminal | |
CN111147347A (en) | Prompting method and device for user message in group communication | |
CN109901893A (en) | The method for managing data flow of applet | |
US20110099564A1 (en) | Program calling system and method | |
CN109495544A (en) | A kind of message data treating method and apparatus and computer equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |