Summary of the invention
Based on this, be necessary to provide a kind of multimedia message hold-up interception method based on Android platform.
A multimedia message hold-up interception method based on Android platform, comprising:
Initialization gateway when multimedia message module registration, and described gateway is sent to mobile phone kernel;
Multimedia message uid authority default conditions are set to inquiry state;
Kernel real time filtering network packet, checks and whether comprises the gateway of multimedia message and obtain multimedia message uid;
Sending multimedia message uid processes to framework layer prompting user.
What preferably, framework layer prompting user processed specifically comprises:
Whether framework layer inquiry user allows to send described multimedia message;
If user allows to send described multimedia message, the authority of described uid is modified to enable state and passes kernel back, and described multimedia message is issued;
If user does not allow to send described multimedia message, the authority of described uid can be modified to illegal state and pass kernel back, and kernel discards the MMS gateway being filled into, and described multimedia message is not issued.
Preferably, also comprise:
Often handle a network packet that comprises MMS gateway, the authority of uid is set to default conditions.
Adopt after the present invention, when multimedia message module is registered when mobile phone power-on, MMS gateway is sent to kernel, by Kernel Filtering network packet, in the time finding the network packet that comprises MMS gateway, processed by framewok layer prompting user, avoid mobile phone and sent out multimedia message because the factors such as Malware are stolen in the situation that failing to give notice user, helped to have retrieved user's economic loss.
Embodiment
In order to make relevant technical staff in the field understand better technical scheme of the present invention, below in conjunction with the accompanying drawing of embodiment of the present invention, technical scheme in embodiment of the present invention is clearly and completely described, obviously, described execution mode is only the present invention's part execution mode, rather than whole execution modes.
Consulting Fig. 1, Fig. 2, is a kind of multimedia message hold-up interception method based on Android platform provided by the invention, comprising:
Step S10, initialization gateway when multimedia message module registration, and described gateway is sent to mobile phone kernel;
Step S20, multimedia message uid authority default conditions are set to inquiry state;
Step S30, kernel real time filtering network packet, checks the gateway that whether comprises multimedia message;
Step S40, if kernel is found MMS gateway, obtains described multimedia message uid and sends to framework layer;
Step S50, framework layer prompting user processes.
Initialization gateway when multimedia message module is registered when above-mentioned steps is passed through mobile phone power-on, and send to kernel, when Kernel Filtering network packet, whether comprise MMS gateway by packet and judge, if comprise MMS gateway, think multimedia message network; Multimedia message uid authority is inquiry, whether sends multimedia message by framework layer inquiry user.Adopt after the present invention, the transmission of multimedia message is all determined by user oneself, has avoided the problem of sending out multimedia message of stealing of the factors such as Malware.
Concrete, framework layer prompting user processes and comprises:
Step S501, whether framework layer inquiry user allows to send described multimedia message;
If user allows to send described multimedia message, perform step S502, the authority of described uid is modified to enable state and passes kernel back, and described multimedia message is issued;
If user does not allow to send described multimedia message, perform step S503, the authority of described uid can be modified to illegal state and pass kernel back, and kernel discards the MMS gateway being filled into, and described multimedia message is not issued.
Step S501~step S503 has clearly demonstrated the process that framework layer prompting user processes, and determines by user whether multimedia message sends, the modification that the core of above-mentioned steps is uid, and whether user selects multimedia message to send, and is exactly the process of revising uid authority in fact.If user selects to send multimedia message, uid authority is revised as to permission, amended uid passes kernel back, and kernel sends multimedia message; If user selects not send multimedia message, uid authority is revised as and is forbidden, amended uid passes kernel back, and kernel discards MMS gateway, and multimedia message is not sent out.
In a preferred embodiment, the multimedia message hold-up interception method based on Android platform also comprises:
Often handle a network packet that comprises MMS gateway, the authority of uid is set to default conditions.
In the time of Kernel Filtering network packet, once find MMS gateway, multimedia message uid is sent to framework layer, and framework layer prompting user selects, and multimedia message uid authority is revised as and allows or forbid.No matter multimedia message uid authority is modified to and allows or forbid, but be never inquiry, in the time finding again the network packet of MMS gateway next time, can be sent out or lose, and no longer inquiring user.So be modified in multimedia message uid authority, and handle after a network that comprises MMS gateway, the uid authority of need to resetting, uid authority is reset to default conditions, inquire state, to find, after MMS gateway, to select whether to send described multimedia message by user next time.
Adopt after the present invention, when multimedia message module is registered when mobile phone power-on, MMS gateway is sent to kernel, by Kernel Filtering network packet, in the time finding the network packet that comprises MMS gateway, processed by framewok layer prompting user, avoid mobile phone and sent out multimedia message because the factors such as Malware are stolen in the situation that failing to give notice user, helped to have retrieved user's economic loss.
Below only expressed several execution mode of the present invention, it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction 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, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection range of patent of the present invention should be as the criterion with claims.