The content of the invention
Based on this, it is necessary to provide a kind of multimedia message hold-up interception method based on Android platform.
A kind of multimedia message hold-up interception method based on Android platform, including:
Multimedia message module initializes gateway when registering, and the gateway is sent to mobile phone kernel;
Multimedia message uid authority default conditions are arranged to inquiry state;
Kernel real time filtering network bag, check whether the gateway comprising multimedia message and obtain multimedia message uid;
Send multimedia message uid and give the prompting user's processing of framework layers.
Preferably, what framework layers prompting user was handled specifically includes:
Framework layers ask the user whether to allow to send the multimedia message;
If user allows to send the multimedia message, the authority of the uid is modified to permission state and passes kernel back, described
Multimedia message is issued;
If user does not allow to send the multimedia message, the authority of the uid can be modified to illegal state and pass kernel back,
Kernel discards the MMS gateway being filled into, and the multimedia message is not issued.
Preferably, in addition to:
A network bag for including MMS gateway has often been handled, has been default conditions uid priority assignation.
After the present invention, MMS gateway is sent to kernel when multimedia message module is registered during mobile phone power-on, by Kernel Filtering
Network bag, when finding the network bag comprising MMS gateway, by the prompting user's processing of framewok layers, mobile phone is avoided because disliking
The factors such as software of anticipating steal hair multimedia message in the case where failing to give notice user, help to have retrieved the economic loss of user.
Embodiment
In order that relevant technical staff in the field more fully understands technical scheme, below in conjunction with of the invention real
The accompanying drawing of mode is applied, the technical scheme in embodiment of the present invention is clearly and completely described, it is clear that described reality
Apply mode only a part of embodiment of the present invention, rather than whole embodiments.
It is a kind of multimedia message hold-up interception method based on Android platform provided by the invention refering to Fig. 1, Fig. 2, including:
Step S10, multimedia message module initializes gateway when registering, and the gateway is sent to mobile phone kernel;
Step S20, multimedia message uid authority default conditions are arranged to inquiry state;
Step S30, kernel real time filtering network bag, check whether to include the gateway of multimedia message;
Step S40, if kernel finds MMS gateway, obtain the multimedia message uid and be sent to framework layers;
The prompting user's processing of step S50, framework layer.
Gateway is initialized when multimedia message module is registered when above-mentioned steps pass through mobile phone power-on, and is sent to kernel, Kernel Filtering
During network bag, whether MMS gateway is included to judge, if including MMS gateway, then it is assumed that be multimedia message network by packet;It is color
Uid authorities are believed for inquiry, i.e., are asked the user whether to send multimedia message by framework layers.After the present invention, the transmission of multimedia message is all
Determined by user oneself, avoid the problem of stealing hair multimedia message of the factors such as Malware.
Specifically, the prompting user's processing of framework layers includes:
Step S501, framework layer asks the user whether to allow to send the multimedia message;
If user allows to send the multimedia message, step S502 is performed, i.e., described uid authority is modified to permission state
And pass kernel back, the multimedia message is issued;
If user does not allow to send the multimedia message, perform step S503, the uid authority and can be modified to forbid shape
State simultaneously passes kernel back, and kernel discards the MMS gateway being filled into, and the multimedia message is not issued.
The process of framework layers prompting user's processing is clearly stated in step S501~step S503, i.e., is determined by user
Determine whether multimedia message sends, the core of above-mentioned steps is uid modification, and user selects whether multimedia message sends, and is exactly to change uid in fact
The process of authority.If user selects to send multimedia message, uid authorities are revised as allowing, amended uid passes kernel, kernel back
Multimedia message is sent;If user's selection does not send multimedia message, uid authorities are revised as forbidding, amended uid passes back interior
Core, kernel discard MMS gateway, and multimedia message is not sent.
In a preferred embodiment, the multimedia message hold-up interception method based on Android platform also includes:
A network bag for including MMS gateway has often been handled, has been default conditions uid priority assignation.
When Kernel Filtering network bag, once finding MMS gateway, multimedia message uid is sent to framework layers,
The prompting user's selection of framework layers, i.e., be revised as multimedia message uid authorities to allow or forbid.No matter multimedia message uid authorities are repaiied
It is changed to allow or forbids, but be definitely not to inquire, when finding the network bag of MMS gateway again next time, then can be sent or lost
Fall, and no longer inquire user.So changed in multimedia message uid authorities, and after having handled a network comprising MMS gateway, need
Uid authorities are reset, i.e., uid authorities is reset to default conditions, that is, inquires state, after finding MMS gateway so as to next time, by
User chooses whether to send the multimedia message.
After the present invention, MMS gateway is sent to kernel when multimedia message module is registered during mobile phone power-on, by Kernel Filtering
Network bag, when finding the network bag comprising MMS gateway, by the prompting user's processing of framewok layers, mobile phone is avoided because disliking
The factors such as software of anticipating steal hair multimedia message in the case where failing to give notice user, help to have retrieved the economic loss of user.
Only express the several embodiments of the present invention above, its describe it is more specific and in detail, but can not therefore and
It is interpreted as the limitation to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, do not taking off
On the premise of present inventive concept, various modifications and improvements can be made, these belong to protection scope of the present invention.Cause
This, the protection domain of patent of the present invention should be determined by the appended claims.