Summary of the invention
The technical problem to be solved in the present invention is, for the drawbacks described above of prior art, it is provided that a kind of method and mobile terminal processing suspicious harassing and wrecking information for mobile terminal.The method providing a kind of effective process mobile phone suspicious harassing and wrecking information.Solve the technical problem that it is how to judge that the type of process is type of foundation, or application type.And how the corresponding relation of announcement information Yu process is presented to user, enable users to make and reasonably judge whether to receive this information.
It is as follows that the present invention solves the technical scheme that technical problem used:
A kind of method processing suspicious harassing and wrecking information for mobile terminal, wherein, including:
A, in advance the process of mobile terminal is divided into basis process and application process two class;
B, when mobile terminal has detected that notification message arrives, extract the appointment information in notification message, mate with the process run in mobile terminal, find out and record the process being associated with this notification message;
The type of the process being associated with notification message that C, judgement are found out is basis process or application process;
D, then directly receive this notification message when the type of process being associated with notification message is basic process when judging;
Then show the source-information of notification message when the type judging the process being associated with notification message is application process, and show whether one receive the menu selection item of announcement information to choose whether to receive announcement information for user;When selecting to receive, then continue to this information and retain associated process;When selecting rejection, this notification message will be ignored and receive the process closedown that user operation instruction chooses whether to be associated.
The described method processing suspicious harassing and wrecking information for mobile terminal, wherein, described step B specifically includes:
B1, when mobile terminal has detected that notification message arrives, extract from notification message its with mobile terminal in the interactive information of a certain process, i.e. specify information, this appointment information include notification message and is obtained the data of the machine address by process;
B2, utilizing this appointment information to mate with the process just run in mobile terminal, can find out the process mutual with notification message, record stores this process content.
The described method processing suspicious harassing and wrecking information for mobile terminal, wherein, described step D includes:
D1, when judging that the type of process being associated with notification message is basic process or safety applications process type, then directly receive message, flow process terminates.
The described method processing suspicious harassing and wrecking information for mobile terminal, wherein, described step D also includes:
D2, when judging that the type of process being associated with notification message then shows the source-information of notification message when being application process, and show whether one receive the menu selection item of announcement information to choose whether to receive announcement information for user, enter step D3 when selecting to be, enter step D5 when selecting no;
D3, when receive user operational order select receive described notification message, then control continue to this notification message;And eject a menu and choose whether, by being set to security procedure with this notification message associated process, to proceed to step D4 when being for user;
D4, when receive user operational order select will be set to security procedure with this notification message associated process, then controlling hereafter relevant to this process all message will directly be received;
D5, do not receive message when selecting, then control to ignore this message, and provide a menu to choose whether to close related linear program for user, proceed to step D6;
D6, closing or retain the process that is associated according to the selection of user, and provide a menu to choose whether to report this message for user, when being, the operational order receiving user is reported by mail or webpage mode, then exits flow process when no.
The described method processing suspicious harassing and wrecking information for mobile terminal, wherein, described step D3 also includes:
D31, when user does not select to be will to be set to security procedure with this notification message associated process, then control this process and be still that unknown process, hereafter have the message relevant to this process to come in, then prompt the user to choose whether reception.
The described method processing suspicious harassing and wrecking information for mobile terminal, wherein, described basis process be mobile terminal when dispatching from the factory in the process run, described application process is that user is by installing the process of various application program launchings.
A kind of mobile terminal, wherein, including:
Process sort module, for the process of mobile terminal being classified in advance, is divided into basis process and application process;
Extract and search module, for when mobile terminal has detected that notification message arrives, extracting the appointment information in notification message, and mate with the process run in mobile terminal, find out and record the process being associated with this notification message;
Judge module, for judging that the type of the process being associated with notification message found out is basis process or application process,
Processing and control module, for then directly receiving this notification message when the type judging the process being associated with notification message is basis process;Then show the source-information of notification message when the type judging the process being associated with notification message is application process, and show whether one receive the menu selection item of announcement information to choose whether to receive announcement information for user;When selecting to receive, then continue to this information and retain associated process;When selecting rejection, this notification message will be ignored and receive the process closedown that user operation instruction chooses whether to be associated.
Described mobile terminal, wherein, described processing and control module includes:
First control unit, for being basis process or safety applications process type when the type judging the process being associated with notification message, then directly receives message, and flow process terminates.
Described mobile terminal, wherein, described processing and control module also includes:
Second control unit, for then showing the source-information of notification message when the type judging the process being associated with notification message is application process, and shows whether one receive the menu selection item of announcement information to choose whether to receive announcement information for user;
3rd control unit, for selecting to receive described notification message when the operational order receiving user, then controls to continue to this notification message;And eject a menu and choose whether to be set to security procedure with this notification message associated process for user;
4th control unit, for being set to security procedure with this notification message associated process when the operational order selection receiving user, then controlling hereafter relevant to this process all message will directly be received;
5th control unit, for not receiving message when selection, then control to ignore this message, and provide a menu to choose whether to close related linear program for user, the process that is associated is closed or is retained in selection according to user, and provides a menu to choose whether to report this message, when being for user, the operational order receiving user is reported by mail or webpage mode, then exits flow process when no.
Described mobile terminal, wherein, described basis process be mobile terminal when dispatching from the factory in the process run, described application process is that user is by installing the process of various application program launchings.
Method and the mobile terminal processing suspicious harassing and wrecking information for mobile terminal provided by the present invention, it makes mobile terminal etc. add New function: have the function processing suspicious harassing and wrecking information, rubbish and harassing and wrecking information can be effectively treated, make the clear and definite rubbish of user and the source of harassing and wrecking information, make correct operation for user and reliable basis is provided, the puzzlement preventing rubbish and harassing and wrecking information to bring to user, provides users with the convenient.
Detailed description of the invention
For making the purpose of the present invention, technical scheme and advantage clearer, clear and definite, the present invention is described in more detail for the embodiment that develops simultaneously referring to the drawings.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
The present invention processes in the embodiment of the method for suspicious harassing and wrecking information for mobile terminal, as a example by mobile phone, first, mobile phone process is classified, will be referred to as basis process in the process run when dispatching from the factory, the process that user comes in by installing various application program bands is referred to as application process.
The various announcement informations issued on server, including normal announcement information and rubbish and advertising message, be typically all by with the process interaction that runs in mobile phone, such as got the address of the machine by process, be subsequently sent to mobile phone.Meanwhile, different user may have different attitudes to identical announcement information, uses and provide a menu selection item whether receiving announcement information to choose whether to receive announcement information for user in the present embodiment.
The operation principle of the present embodiment is the application process run in mobile phone and announcement information to be mated, obtain the process being associated with this information, then corresponding relation is passed through interface display to user, the relevant informations such as the source telling this information of user, allow user choose whether to receive this information simultaneously, as user agrees to, then continue to this information and retain associated process;As user rejects, this message will be ignored and ask the user whether to close the process being associated.
Referring to Fig. 1, Fig. 1 is the flow chart that the present invention processes the preferred embodiment of the method for suspicious harassing and wrecking information for mobile terminal.As it is shown in figure 1, the method for the mobile terminal suspicious harassing and wrecking information of process of the present embodiment includes:
S100, in advance the process of mobile terminal is divided into basis process and application process two class.Described basis process is above-mentioned mobile terminal when dispatching from the factory in the process run, and described application process is above-mentioned user by installing the process of various application program launchings.Preferably set up a tabulation, basis process and application process are separately positioned in different lists, owing to being carried when basis process belongs to and dispatches from the factory, application of dispatching from the factory is in lock-out state, so base application typically will not increase after user uses mobile terminal, so the total quantity of basis process is the most changeless in tabulation, and application process can be downloaded installation along with user or unload various application program and occur changing.So, the application process in classification class table is continually changing, mobile terminal is in real time according to the information of application process in the operation real-time update tabulation of user.
S200, when mobile terminal has detected that notification message arrives, extract the appointment information in notification message, and mate with the process run in mobile terminal, find out and record the process being associated with this notification message.
From notification message, extract itself and the interactive information of a certain process in mobile terminal, i.e. specify information, this appointment information includes notification message and is obtained the data of the machine address by process.Utilizing this appointment information to mate with the process just run in mobile terminal, can find out the process mutual with notification message, record stores this process content.Concrete matching process is found out the process mutual with notification message and is belonged to prior art, does not repeats them here.
The type of the process being associated with notification message that S300, judgement are found out is basis process or application process.
The type of the process recorded in previous step is judged by mobile terminal, by checking that its position in described tabulation i.e. can determine that it is basis process or application process.
It is preferred that for application process, user can be chosen whether to be set to safety applications process as required.Be not belonging to safety applications process then belongs to unknown applications process.During automatic decision, judge to be belonging to basis process or safety applications process or unknown applications process simultaneously.
The how type of automatic decision process, when implementing, can be by whitelist(close friend's list) by the way of, first process (and basis process) preset in mobile phone is added in whitelist, afterwards the safety applications process that user selects also is added thereto.So, in judge process, only need to mate with the process in whitelist, match if do not looked for, then can determine that this process is unknown applications process.The following is and simply judge type of message with what C language realized and add the code of whitelist:
Function1:mainentryfunctionofmessagehandle
voidmessage_handle_main(Process_ID,Message_ID)
{
if(process_in_white_list(Process_ID))
{
receive_message(Message_ID);
exit();
}
else
{
display_popup(Process_ID,Message_ID);/*Popupscreentoletuserconfirmreceivethemessageornot*/
}
}
Function2:whenusersconfirmtosettheprocessassafeprocess
voidset_safe_process(Process_ID)
{
add_to_white_list(Process_ID);/*Addprocessintowhitelist*/
}
S400, then directly receive this notification message when the type of process being associated with notification message is basic process when judging.
If being sent to the notification message of mobile terminal by basis process interaction to be usually base application version updating, repair leak, plug-in download and the documentary whip etc. about base application, so, for such notification message, mobile terminal directly receives.
Certainly, safety applications process is selected to trust due to user, so its message pushed is typically also useful message, so also directly receiving.
Then show the source-information of notification message when the type judging the process being associated with notification message is application process, and show whether one receive the menu selection item of announcement information to choose whether to receive announcement information for user;When selecting to receive, then continue to this information and retain associated process;When selecting rejection, this notification message will be ignored and receive the process closedown that user operation instruction chooses whether to be associated.
Owing to application process can be employed developer for junk information such as advertisements, so after coupling confirms as application process, the corresponding relation of the source of notification message i.e. notification message Yu process is shown to user, the informing of general side on the screen of the mobile terminal shows, or shows with the form of pop-up window.If user is not owing to showing on mobile terminal side or the most above-mentioned prompting and temporarily not dealing with announcement information, then again show this notification message source-information after separated in time.Have ensured that information can be dealt with by user in time.
A menu selection item whether receiving announcement information is also had so that notification message, after learning notification message source, is made the process whether received by user accordingly with what notification message source-information showed.After user selects to receive, then mobile terminal performs information and receives instruction, and gives tacit consent to the process that reservation is relevant to notification message.After user selects rejection, the most not receive this notification message, and continue to eject a menu item whether closing associated process.Finally according to the selection of user, associated process is processed.
It is preferred that after the notification message that user couple is mutual with a certain application process makes the selection receiving or not receiving, mobile terminal records the number of processes of user's notification message relevant to this application process automatically, and calculates acceptance rate.When there being notification message, then the notification message acceptance rate information of this process is shown together with the source-information of notification message by mobile terminal by user.After the notification message of a certain process reaches certain received quantity, its acceptance rate is the highest, such as more than 90% even 100%, then can determine whether that the notification message that this process is relevant is selected to receive by user always, the notification message after this application process can directly be given tacit consent to reception by mobile terminal.Such setting ensure that the situation pushing Weather information to weather forecast application every day.Certainly, it is possible in the menu item whether display receives, arrange whether trust the notification message that this application process is relevant, after selecting to trust, this process becomes safety applications process, it is possible to directly receive the notification message relevant to this application process.
The described method processing suspicious harassing and wrecking information for mobile terminal, wherein, described step S400 includes:
S410, when judging that the type of process being associated with notification message is basic process or safety applications process type, then directly receive message, flow process terminates.
During for dispatching from the factory, just with the basic process installed, mobile terminal can directly receive relative notification message.The application program that user oneself is installed, one embodiment is, one safety applications list is set, user is allowed to add the safety applications process that oneself is trusted, after mobile terminal judges that the process relevant to notification message is application process, also to mate with safety applications list process, if the security procedure in safety applications list, then directly receive information.
Another embodiment is mentioned above to arrange whitelist, adds in whitelist by process (and basis process) preset in mobile phone, the safety applications process that user selects also is added thereto afterwards.So, in judge process, only need to mate with the process in whitelist, match if do not looked for, then can determine that this process is unknown applications process.
The described method processing suspicious harassing and wrecking information for mobile terminal, wherein, described step S400 also includes:
S420, when judging that the type of process being associated with notification message then shows the source-information of notification message when being application process, and show whether one receive the menu selection item of announcement information to choose whether to receive announcement information for user, enter step S430 when selecting to be, enter step S450 when selecting no.
S430, when receive user operational order select receive described notification message, then control continue to this notification message;And eject a menu and choose whether, by being set to security procedure with this notification message associated process, to proceed to step S440 when being for user.
S440, when receive user operational order select will be set to security procedure with this notification message associated process, then controlling hereafter relevant to this process all message will directly be received.If in the time afterwards, a certain security procedure has also pushed the notification message that user is not desired to receive, then user can select to remove this process described safety applications list, cancels the trust of its security procedure.Afterwards, mobile terminal takes the processing method identical with the notification message being normally applied process for the notification message that this process is relevant.
S450, do not receive message when selecting, then control to ignore this message, and provide a menu to choose whether to close related linear program for user, proceed to step S460;
Owing to some thread is running background, user may be to the work of this thread and do not know about.Therefore, when display first selects, for user, the menu whether closing thread, it is preferred that, show this ongoing task of thread, such as down loading updating simultaneously, preserve and arrange, prevent user and blindly select to close threading operation because of not knowing about, cause the mission failure being carrying out.
S460, closing or retain the process that is associated according to the selection of user, and provide a menu to choose whether to report this message for user, when being, the operational order receiving user is reported by mail or webpage mode, then exits flow process when no.
After selecting to report this information, automatic spring mail writes interface, and receiver's address arranges combobox list.Showing report information center, Ministry of Industry and Information's junk information report mailbox etc. in table, mail body parts is encoded with the information of this notification message content and associated process automatically, and user only need to click and send.Body part also has user to write content part, writes relevant information for user oneself.
When being reported by form web page, after user selects to report this information, the related web page such as automatic spring report information center is filled in for user.
The described method processing suspicious harassing and wrecking information for mobile terminal, wherein, described step S430 also includes:
S431, when user does not select to be will to be set to security procedure with this notification message associated process, then control this process and be still that unknown process, hereafter have the message relevant to this process to come in, then prompt the user to choose whether reception.
Mobile terminal records the counting user message sink rate to a certain process automatically, after the notification message of a certain process reaches certain received quantity, its acceptance rate is the lowest, list less than 10% even 0 in, and this process unknown process not yet, then can determine whether that user selects refusal to the notification message that this process is relevant always, mobile terminal can directly rejection to the notification message after this application process.And over time, display to the user that this process pushes the quantity of useless notification message, frequency etc., and a menu whether unloading the relevant application of this application process is provided.In application shop, also according to the quantity of application propelling movement junk information and the feedback of frequency and user, the application too much pushing junk information is removed shop, in order to avoid user is after installing this application, receive the puzzlement of junk information.
Below by way of a concrete Application Example, the method for the present invention is described in further detail:
If Fig. 2 is the method flow diagram that the present invention processes the preferred embodiment of mobile terminal suspicious harassing and wrecking information.
S10, beginning.
S11, receive announcement information.When mobile terminal has detected that notification message arrives, before this notification message is processed, first carry out step S12.
S12, coupling draw and record the process of being associated.I.e. extract the appointment information in notification message and enter matching module, matching module is provided with the tabulation of process in a mobile terminal, including basis process, safety applications process and unknown applications process, appointment information includes the progress information mutual with this notification message, will mate with tabulation by this progress information, if process or safety applications process based on mating the associated process of this notification message, then enter step S20, if the associated process mating this notification message is unknown applications process, then enter step S30.
S20, this associated process is defined as basis process or safety applications process, then enters step S21.
S21, this notification message of mobile terminal automatic reception are also shown to user.Then enter step S50 and terminate flow process.
S30, this associated process is defined as unknown applications process, then enters step S31.
S31, display to the user that the source-information of this notification message, i.e. show relative progress information.There is provided whether menu queries user continues to this information, if user selects to receive, then enter step S32.
S32, mobile terminal receive this notification message.Complete at message sink and after being shown to user, perform step S33.
S33, providing a user with a menu whether associated process is set to security procedure, if user selects no, will perform step S34, this not being entered plan is set to security procedure, enters step S50 afterwards and terminates.If user selects, then perform step S35, this process is set to security procedure, enter step S50 afterwards, terminate.
If user selects not receive this notification message, then enter step S40, ignore this notification message.Perform step S41 afterwards.
S41, provide a user with a menu selection item whether closing associated process, if user selects to be then to enter step S42, close associated process.When selecting no, perform step S43, associated process is not closed.Step S44 is performed after associated process has been performed the process whether closed.
S44, providing a menu to choose whether to report this message for user, when being, perform step S45, the operational order receiving user is reported by mail or webpage mode, performs step S50 afterwards, terminates.When selecting not report, directly perform step S50 and terminate.
Therefore, embodiments provide a kind of method processing suspicious harassing and wrecking information for mobile terminal.The method providing a kind of effective process mobile phone suspicious harassing and wrecking information.Solve and how to judge that the type of process is type of foundation, or application type.And how the corresponding relation of announcement information Yu process is presented to user, enable users to make and reasonably judge whether to receive this information.
Based on above-described embodiment, the present invention also provides for mobile terminal embodiment, a kind of mobile terminal as described in Figure 3, wherein, and including:
Process sort module 100, for the process of mobile terminal being classified in advance, is divided into basis process and application process;As detailed above.
Extract and search module 200, for when mobile terminal has detected that notification message arrives, extracting the appointment information in notification message, and mate with the process run in mobile terminal, find out and record the process being associated with this notification message;As detailed above.
Judge module 300, for judging that the type of the process being associated with notification message found out is basis process or application process;As detailed above.
Processing and control module 400, for then directly receiving this notification message when the type judging the process being associated with notification message is basis process;Then show the source-information of notification message when the type judging the process being associated with notification message is application process, and show whether one receive the menu selection item of announcement information to choose whether to receive announcement information for user;When selecting to receive, then continue to this information and retain associated process;When selecting rejection, this notification message will be ignored and receive the process closedown that user operation instruction chooses whether to be associated;As detailed above.
Wherein, as shown in Figure 4, described processing and control module 400 includes:
First control unit 410, for being basis process or safety applications process type when the type judging the process being associated with notification message, then directly receives message, and flow process terminates;As detailed above.
Second control unit 420, for then showing the source-information of notification message when the type judging the process being associated with notification message is application process, and shows whether one receive the menu selection item of announcement information to choose whether to receive announcement information for user;As detailed above.
3rd control unit 430, for selecting to receive described notification message when the operational order receiving user, then controls to continue to this notification message;And eject a menu and choose whether to be set to security procedure with this notification message associated process for user;As detailed above.
4th control unit 440, for being set to security procedure with this notification message associated process when the operational order selection receiving user, then controlling hereafter relevant to this process all message will directly be received;As detailed above.
5th control unit 450, for not receiving message when selection, then control to ignore this message, and provide a menu to choose whether to close related linear program for user, the process that is associated is closed or is retained in selection according to user, and provides a menu to choose whether to report this message, when being for user, the operational order receiving user is reported by mail or webpage mode, then exits flow process when no;As detailed above.
In sum, the present invention can be a application program that can judge and process suspicious harassing and wrecking information of exploitation when implementing, such as, if to use on Android system, so this program can be designed to one and can install APK file, and suspicious information can be processed after downloading and install this program by user.It is preferred that the application program of this process suspicious information automatically obtains highest weight limit or is given application program highest weight limit by user.
Method and the mobile terminal processing suspicious harassing and wrecking information for mobile terminal provided by the present invention, it makes mobile terminal etc. add the function processing suspicious harassing and wrecking information, rubbish and harassing and wrecking information can be effectively treated, make the clear and definite rubbish of user and the source of harassing and wrecking information, make correct operation for user and reliable basis is provided, the puzzlement preventing rubbish and harassing and wrecking information to bring to user, provides users with the convenient.
It should be appreciated that the application of the present invention is not limited to above-mentioned citing, for those of ordinary skills, can be improved according to the above description or convert, all these modifications and variations all should belong to the protection domain of claims of the present invention.