CN105791552B - A kind of SMS processing method, device and mobile terminal - Google Patents
A kind of SMS processing method, device and mobile terminal Download PDFInfo
- Publication number
- CN105791552B CN105791552B CN201610105460.XA CN201610105460A CN105791552B CN 105791552 B CN105791552 B CN 105791552B CN 201610105460 A CN201610105460 A CN 201610105460A CN 105791552 B CN105791552 B CN 105791552B
- Authority
- CN
- China
- Prior art keywords
- short message
- intercepted
- termination number
- refuse messages
- default
- 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
- 238000003672 processing method Methods 0.000 title claims abstract description 18
- 238000000034 method Methods 0.000 claims abstract description 50
- 238000012545 processing Methods 0.000 claims abstract description 32
- 238000012986 modification Methods 0.000 claims abstract description 20
- 230000004048 modification Effects 0.000 claims abstract description 20
- 238000004891 communication Methods 0.000 claims description 48
- 230000006854 communication Effects 0.000 claims description 48
- 230000006870 function Effects 0.000 claims description 27
- 238000001514 detection method Methods 0.000 claims description 18
- 238000012217 deletion Methods 0.000 claims description 13
- 230000037430 deletion Effects 0.000 claims description 13
- 230000008569 process Effects 0.000 claims description 13
- 238000012216 screening Methods 0.000 claims description 13
- 238000003780 insertion Methods 0.000 claims description 8
- 230000037431 insertion Effects 0.000 claims description 8
- 239000000284 extract Substances 0.000 claims description 5
- 238000000605 extraction Methods 0.000 claims description 5
- 235000013399 edible fruits Nutrition 0.000 claims description 2
- 230000005540 biological transmission Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 3
- 238000001914 filtration Methods 0.000 description 3
- 230000007246 mechanism Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000010168 coupling process Methods 0.000 description 2
- 238000005859 coupling reaction Methods 0.000 description 2
- 238000000151 deposition Methods 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 230000006399 behavior Effects 0.000 description 1
- 230000007175 bidirectional communication Effects 0.000 description 1
- 230000000903 blocking effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 239000013589 supplement Substances 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/7243—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
- H04M1/72436—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for text messaging, e.g. short messaging services [SMS] or e-mails
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/12—Detection or prevention of fraud
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/12—Messaging; Mailboxes; Announcements
- H04W4/14—Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Business, Economics & Management (AREA)
- General Business, Economics & Management (AREA)
- Human Computer Interaction (AREA)
- Telephone Function (AREA)
- Telephonic Communication Services (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a kind of SMS processing method, device and mobile terminal, method therein includes: the short message for obtaining operating system and receiving;Judge whether short message needs to handle based on default rule, if it is, judging whether the short message application for being arranged to default;If being not configured to the short message application of default, short message operating right is obtained by using the open function of operating system, and handle short message, processing includes: interception, modification, automatic-answering back device.SMS processing method, device and mobile terminal of the invention; short message operating right can be obtained in the state of being not configured to default short message application; progress short message managing is more convenient and improves user experience; it being capable of effective catching rubbish short message; and a possibility that erroneous judgement occurs can be reduced; intercepting efficiency is high, improves the safety of user data and can protect privacy of user.
Description
Technical field
The present invention relates to mobile communication technology field more particularly to a kind of SMS processing methods, device and mobile terminal.
Background technique
Currently, popularizing with mobile phone, mobile phone is increasingly becoming communication tool indispensable in people's life.Short message service
Because its reason such as convenient, fast and cheap, is generally received and is widely used by vast Mobile Phone Consumption person, but with short
The short message of the development of communication service, advertisement SMS, the short message with deception property and other illegal contents starts more and more, rubbish
Short message starts to perplex numerous mobile phone users, and user is also increasing for the complaint of refuse messages.In order to short from various rubbish
The puzzlement of letter, the built-in blacklist function of the mobile phones of many manufacturers, allows user to create addition black and white lists, and referred to according to user
Fixed filtering rule is intercepted for the short message of the number in list.In the prior art, the application in smart phone is to short message
It carries out operation and needs to obtain default short message application permission, need user's manual setting due to obtaining default short message application permission, make
With inconvenience, and in the case where short message application permission is defaulted in no acquisition, then it cannot achieve the management function to short message, shadow
Ring the impression used to user short message.
Summary of the invention
In view of this, the invention solves a technical problem be to provide a kind of SMS processing method, device and movement
Terminal.
A kind of SMS processing method, comprising: obtain the short message that operating system receives;Based on described in default rule judgement
Whether short message, which needs, is handled, if it is, judging whether the short message application for being arranged to default;If being not configured to default
Short message application then obtains short message operating right by using the open function of operating system, and handles the short message, institute
Stating processing includes: interception, modification, automatic-answering back device.
According to one embodiment of present invention, further, the function open by using operating system obtains short
Letter operating right includes: to obtain short message using the SetMode method of AppOpsManager example in Android system to operate
Permission;Wherein, the short message operating right includes: insertion, modification, deletion.
According to one embodiment of present invention, further, carrying out processing to the short message includes: to be sieved based on refuse messages
Choosing rule judges whether the short message is refuse messages, if it is, intercepting the short message and depositing the intercepted short message
Storage issues the notice that prompt receives refuse messages to short message memory block is intercepted in notification bar.
According to one embodiment of present invention, further, comprising: the refuse messages screening rule includes at least one
Keyword;The content for the short message that will acquire is matched with the keyword, if the content of the short message and at least one
A keyword matches, it is determined that the short message is refuse messages and is intercepted;The keyword includes: to give a discount, is preferential, special
Valence, popularization.
According to one embodiment of present invention, further, carrying out processing to the short message includes: that acquisition transmission is described short
The termination number of letter detects in address list whether be stored with the termination number;When detecting not stored institute in the address list
When stating termination number, it whether there is communications records between detection and the termination number;When detect with the termination number it
Between be not present communications records when, the content of the short message is matched with the contact information in the address list;It is described
It is people's information include: name of contact person, contact phone or contact addresses;When the Web content and the contact information
When mismatch, it is determined that the short message is refuse messages and is intercepted.
According to one embodiment of present invention, further, with the presence or absence of logical between the detection and the termination number
Letter record includes: detecting whether to be transmitted across short message to the termination number, if it is not, then between the determining and described termination number not
There are communications records;Or, detecting whether to dial the termination number, if it is not, then between the determining and described termination number not
There are communications records;Or, whether detection and the air time of the termination number are greater than preset time threshold, if it is not, then really
Communications records are not present between the fixed and described termination number.
According to one embodiment of present invention, further, carrying out processing to the short message includes: to judge whether to be set as
Mode is automatically replied, if it is, automatically replying preset SMS to the sender of the short message.
According to one embodiment of present invention, further, comprising: receive the instruction for showing intercepted short message;It calculates
The total number of intercepted short message, and the item number for the intercepted short message that can be shown according to every page of display interface obtains always showing page
Number;Paging extracts the intercepted short message stored in local cache and is sent to the display interface process;In the display interface
It is upper to show intercepted short message by page.
A kind of short message processing device, comprising: short message obtains module, the short message received for obtaining operating system;Short message
Management module, for judging whether the short message needs to handle based on default rule, if it is, judging whether to be arranged to
The short message application of default;If being not configured to the short message application of default, obtained by using the open function of operating system
Short message operating right, and the short message is handled, the processing includes: interception, modification, automatic-answering back device.
A kind of mobile terminal, including short message processing device as described above.
SMS processing method, device and mobile terminal of the invention, the acquisition in the short message application for being not configured to default
Short message operating right can operate short message, and progress short message managing is more convenient and improves user experience, can be effective
Catching rubbish short message, and a possibility that erroneous judgement occurs can be reduced, intercepting efficiency is high.
The additional aspect of the present invention and advantage will be set forth in part in the description, these will become from the following description
Obviously, or practice through the invention is recognized.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only
Some embodiments of the present invention, for those of ordinary skill in the art, without any creative labor, also
Other attached drawings can be obtained according to these attached drawings:
Fig. 1 is the flow chart of one embodiment of SMS processing method according to the present invention;
Fig. 2 is the flow chart of refuse messages judgement in one embodiment of SMS processing method according to the present invention;
Fig. 3 is the modular structure schematic diagram of one embodiment of short message processing device according to the present invention.
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, and for explaining only the invention, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singular " one " used herein, " one
It is a ", " described " and "the" may also comprise plural form.It is to be further understood that being arranged used in specification of the invention
Diction " comprising " refer to that there are the feature, integer, step, operation, element and/or component, but it is not excluded that in the presence of or addition
Other one or more features, integer, step, operation, element, component and/or their group.It should be understood that when we claim member
Part is " connected " or when " coupled " to another element, it can be directly connected or coupled to other elements, or there may also be
Intermediary element.In addition, " connection " used herein or " coupling " may include being wirelessly connected or wirelessly coupling.It is used herein to arrange
Diction "and/or" includes one or more associated wholes for listing item or any cell and all combinations.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (including technology art
Language and scientific term), there is meaning identical with the general understanding of those of ordinary skill in fields of the present invention.Should also
Understand, those terms such as defined in the general dictionary, it should be understood that have in the context of the prior art
The consistent meaning of meaning, and unless idealization or meaning too formal otherwise will not be used by specific definitions as here
To explain.
Those skilled in the art of the present technique are appreciated that " terminal " used herein above, " terminal device " both include wireless communication
The equipment of number receiver, only has the equipment of the wireless signal receiver of non-emissive ability, and including receiving and emitting hardware
Equipment, have on bidirectional communication link, can execute two-way communication reception and emit hardware equipment.This equipment
It may include: honeycomb or other communication equipments, shown with single line display or multi-line display or without multi-line
The honeycomb of device or other communication equipments;PCS (Personal Communications Service, PCS Personal Communications System), can
With combine voice, data processing, fax and/or communication ability;PDA (Personal Digital Assistant, it is personal
Digital assistants), it may include radio frequency receiver, pager, the Internet/intranet access, web browser, notepad, day
It goes through and/or GPS (Global Positioning System, global positioning system) receiver;Conventional laptop and/or palm
Type computer or other equipment, have and/or the conventional laptop including radio frequency receiver and/or palmtop computer or its
His equipment." terminal " used herein above, " terminal device " can be it is portable, can transport, be mounted on the vehicles (aviation,
Sea-freight and/or land) in, or be suitable for and/or be configured in local runtime, and/or with distribution form, operate in the earth
And/or any other position operation in space." terminal " used herein above, " terminal device " can also be communication terminal, on
Network termination, music/video playback terminal, such as can be PDA, MID (Mobile Internet Device, mobile Internet
Equipment) and/or mobile phone with music/video playing function, it is also possible to the equipment such as smart television, set-top box.
Those skilled in the art of the present technique are appreciated that remote network devices used herein above comprising but be not limited to count
The cloud that calculation machine, network host, single network server, multiple network server collection or multiple servers are constituted.Here, Yun Youji
It is constituted in a large number of computers or network servers of cloud computing (Cloud Computing), wherein cloud computing is distributed computing
One kind, a super virtual computer consisting of a loosely coupled set of computers.In the embodiment of the present invention, distal end
It can be realized and be communicated by any communication mode between the network equipment, terminal device and WNS server, including but not limited to, is based on
The mobile communication of 3GPP, LTE, WIMAX, based on TCP/IP, the computer network communication of udp protocol and based on bluetooth, infrared
The low coverage wireless transmission method of transmission standard.
It will be appreciated by those skilled in the art that so-called " application ", " application program ", " application software " and class of the invention
It is same concept well known to those skilled in the art like the concept of statement, refers to and instructed by series of computation machine and related data
The computer software for being suitable for electronics operation of the organic construction of resource.Unless specified, this name itself is not by programming language
Type, rank, the operating system of operation of also not rely by it or platform are limited.In the nature of things, this genus also not by appoint
The terminal of what form is limited.
In the following embodiments, by taking the intelligent terminal for being equipped with android system as an example, the principle of the present invention is carried out
Exemplary description, however this description is only exemplary, the scope of the present invention is not limited to this, and the principle of the present invention can also be with
Suitable for being equipped with the intelligent terminal of other operating systems (such as Linux, iOS, Windows Phone, Symbian etc.).
Fig. 1 is the flow chart of one embodiment of SMS processing method according to the present invention, as shown in Figure 1:
Step 101, the short message that operating system receives is obtained.
Step 102, judge whether short message needs to handle based on default rule, if it is, judgement operates in movement eventually
Whether this application program on end is arranged to the short message application of default.Default rule can be a variety of rule of client's setting
Then, such as filtering junk short messages rule, black and white lists etc., or the rule of server setting is simultaneously sent to and operates in movement
Application program in terminal.
Step 103, if being arranged to the short message application of default, the processing of short message is directly carried out.If be not set
For the short message application of default, then short message operating right is obtained by using the open function of operating system, and to short message at
Reason, processing includes: interception, modification, automatic-answering back device etc..
SMS processing method of the invention can obtain short message in the state of being not configured to default short message application
Operating right operates short message, for example, reparation, deletion, insertion, automatic-answering back device etc. so that short message managing more it is convenient simultaneously
Improve user experience.
Short message behaviour can be obtained by using the open function of operating system when mobile terminal starts application program
Make permission, short message operating right can also be obtained by using the open function of operating system when judging that short message needs to handle.
Usually when judgement needs to carry out short message processing, first determine whether this application program is arranged to the short message application of default.
The several operation systems of mobile terminal have opened the function or interface for obtaining short message operating right, for example,
A variety of permissions have been opened to third application in android4.4 later version, rights management function is integrated in systems.
AppOpsManager class provides the method for modification authority, can use reflection mechanism to call AppOpsManager, then benefit
The permission that short message operates is opened to application with the setMode method of AppOpsManager class.JAVA reflection mechanism is can to move
The method that state calls object can call any one object its any one method and category in operating status
Property.Short message operating right, short message operation are obtained using the SetMode method of AppOpsManager example in Android system
Permission includes: insertion, modification, deletion etc., can be made using not needing to obtain default short message application permission and can carry out to short message
Operation.
SMS processing method in above-described embodiment can be realized non-silent in Android4.4-Android5.x system
Recognize short message to apply to functions such as the modifications of short message, in the case where not having to setting default short message application, executes the addition to short message
With the operation such as delete, solve when realizing in Android4.4-5.x system with short message relevant operation function, need to be arranged
The problem of being applied for default short message.
In one embodiment, after receiving the broadcast singal that booting is completed, start a service, in service again
The dynamic receiver of short message broadcast is registered, setting priority is highest.The dynamic receiver registered in service compares mobile phone
System Priority intercept short message, and after intercepting short message close short message broadcast.It can also be obtained using other existing modes
Take short message.When receiving short message, short message is handled based on default rule, a variety of processing can be carried out.
For example, the mobile phone bodyguard application being mounted in Android4.4-Android5.x system, starting mobile phone bodyguard application
Re-register the dynamic receiver of short message broadcast in service afterwards, setting priority is highest.When mobile phone bodyguard application connects
When receiving short message, needs to intercept short message based on judgements such as preset filtering junk short messages rule, black and white lists, modify
Operation.Mobile phone bodyguard application judges then to call using reflection mechanism currently without the short message application for being arranged to default
AppOpsManager recycles the setMode method of AppOpsManager class to open short message operation to mobile phone bodyguard application
Permission.After the permission for obtaining short message operation, mobile phone bodyguard, which applies, the operation such as intercepts to short message, modifies.Alternatively, mobile phone
Bodyguard's application on startup i.e. by the setMode method of AppOpsManager class obtain short message operation permission,.
In one embodiment, according to the content of the short message of intercepting and capturing and preset refuse messages screening rule, sentence
Whether disconnected short message is refuse messages, if it is, intercepting short message and storing intercepted short message to interception short message memory block.It blocks
Truncating letter memory block can be set in memory or local cache, also can store on the server, and issue in notification bar
Prompt receives the notice of refuse messages.Also it can store the relevant information of the short message intercepted, for example, erasing time, position
It sets.
If short message is non-junk short message, short message of letting pass, and shown on the terminal device.By intercepting at rule
The short message of reason still there may be accidentally intercepting, after intercepting rule process, can carry out supplement judgement to short message again, with true
It protects the interception carried out to short message or clearance is reasonably, if unreasonable, can restore to the short message after interception, from
And allow in time restore the short message accidentally intercepted.
Refuse messages screening rule includes at least one keyword, content and the keyword progress for the short message that will acquire
Match, if the content of short message matches at least one keyword, it is determined that short message is refuse messages and is intercepted.Keyword
Include: give a discount, preferential, special price, promote, carve a seal, certificates handling, invoice etc..
The content of " hello: providing profession and carves a seal/certificates handling etc. " for example, include in short message, in preset keyword
It include " carving a seal ", " certificates handling ", by matching the content of short message and preset keyword, in available short message
Appearance " carves a seal " with two keywords and " certificates handling " matches, and thus can determine that short message is refuse messages.Or include in short message
When contents such as " hello: ticket are dismissed in here generation booting for a long time ", short message content matches with keyword " invoice ", thus can determine short
Letter is refuse messages.
Also black, the white list that short message can be set, judge whether received short message belongs to the short message of white list, are, put
Row, judges whether received short message belongs to the short message of blacklist, is just to intercept, otherwise lets pass.
Fig. 2 is the flow chart of refuse messages judgement in one embodiment of SMS processing method according to the present invention, such as Fig. 2
It is shown:
Step 201, the termination number for sending short message is obtained, detects in address list whether be stored with termination number.
Step 202, when detecting not stored termination number in address list, with the presence or absence of logical between detection and termination number
Letter record.
It step 203, will be in the content and address list of short message when detecting between termination number there is no communications records
Contact information matched.Contact information includes: name of contact person, contact phone or contact addresses etc..
Step 204, when Web content and contact information mismatch, it is determined that short message is refuse messages and is blocked
It cuts, and intercepted short message is stored to short message memory block is intercepted, prompt is issued in notification bar and receives the logical of refuse messages
Know.
Whether there is communications records between detection and termination number includes multiple rule: detecting whether to send to termination number
Short message is crossed, if it is not, then communications records are not present between determining and termination number;Or, detecting whether to dial termination number, such as
Fruit is no, it is determined that communications records are not present between termination number;Or, detection and termination number air time whether be greater than it is pre-
If time threshold, if it is not, then there is no communications records etc. between determining and termination number.
It is greater than preset time threshold when the air time of the corresponding number of short message and present terminal, determines that the number is acquaintance
The information that common number or the note number are sent may be the information useful to terminal user, then the short message of letting pass, and prompt
This number is put into address list by user.Before receiving short message, present terminal number actively number corresponding with short message into
Went communication, then the short message of letting pass.
In one embodiment, judge whether to be set as the mode of automatically replying, if it is, automatically reply preset SMS to
The sender of short message.For example, safe driving of vehicle mode is arranged when driving, preset SMS is automatically replied to caller or short
Believe sender, automatically replying preset SMS can be word content, be also possible to one section of preset recording etc., so that driving
Member's answer short message bring security risk in driving vehicle processes, ensure that the safe driving of driver.
When user needs to check intercepted short message, intercepted short message is shown by display interface.Display is received to be blocked
The instruction for truncating letter, calculates the total number of intercepted short message, and the intercepted short message that can be shown according to every page of display interface
Item number obtain always showing number of pages, paging extracts the intercepted short message that stores in local cache and is simultaneously sent to display interface process,
Intercepted short message is shown by page in the display interface.
The intercepted short message being stored in memory and local cache is extracted, intercepted short message can be saved in memory simultaneously
In local cache, therefore, need to carry out duplicate removal processing at the extraction.For example, being stored according to the attribute of short message, content judgement
Whether the short message in memory and local cache is same short message, if it is, the short message saved in memory is only extracted, by one
Short message calculates.The item number for calculating the short message extracted, according to preset threshold, i.e., the item number of the short message of every page of display interface display,
Paging is carried out to short message, obtains always showing number of pages.
For example, the total number for the different intercepted short messages being stored in memory and local cache is 300, user is pre-
If every page of display interface display short message be 30, calculate paged data one and share page 10.Display interface process hair
May include which page shown at present in the idsplay order sent, 30 intercepted short messages corresponding with number of pages are sent to display
Interface process, display interface show this 30 short messages, and intercepted short message can be shown by page.
The idsplay order of display interface process transmission is received, which page is shown before idsplay order middle finger is settled, based on pre-
The a plurality of intercepted short message in paged data corresponding with number of pages is extracted in first calculating.It, can after intercepted short message is extracted in paging
Interprocess communication is carried out in the form of through Socket or system message, sends display interface for the intercepted short message of paging
Process.Due to taking the mode of Pagination Display, it is possible to reduce the burst of data enables a system to more stable operation.
User checks intercepted short message, the intercepted short message on display interface is clicked, in the display interface to user
The function of deleting and restore intercepted short message is provided, intercepted short message is deleted or is reverted to based on the selection of user is normal short
Letter.
The SMS processing method provided in above-described embodiment, can effective catching rubbish short message, and erroneous judgement hair can be reduced
A possibility that raw, intercepting efficiency is high, improves the safety of user data and can protect privacy of user.
The present invention provides a kind of short message processing device, receives as shown in Fig. 2, short message obtains the acquisition of module 31 operating system
Short message.Short message managing module 32 is based on default rule and judges whether short message needs to handle, if it is, judging whether to be set
It is set to the short message application of default;If being not configured to the short message application of default, by using the open function of operating system
Short message operating right is obtained, and the short message is handled, processing includes: interception, modification, automatic-answering back device.
In an implementation reason, short message managing module 32 includes: authority acquiring unit 321, and authority acquiring unit 321 exists
Short message operating right is obtained using the SetMode method of AppOpsManager example in Android system.Short message operating right
It include: insertion, modification, deletion etc..
Short message managing module 32 is based on refuse messages screening rule and judges whether short message is refuse messages, if it is, blocking
It truncates letter and stores intercepted short message to short message memory block is intercepted, prompt is issued in notification bar and receives refuse messages
Notice.
Refuse messages screening rule includes at least one keyword, the content for the short message that short message managing module 32 will acquire with
Keyword is matched, if the content of short message matches at least one keyword, it is determined that short message is gone forward side by side for refuse messages
Row intercepts.
Short message managing module 32 obtains the termination number for sending short message, detects in address list whether be stored with termination number.
When detecting not stored termination number in address list, the detection of short message managing module 32 between termination number with the presence or absence of communicating
Record, when detecting between termination number there is no communications records, short message managing module 32 is by the content and communication of short message
Contact information in record is matched, and when Web content and contact information mismatch, the determination of short message managing module 32 is short
Letter is refuse messages and is intercepted.
Short message managing module 32 detects whether to be transmitted across short message to termination number, if it is not, then it is determining with termination number it
Between be not present communications records;Or, short message managing module 32 detects whether to dial termination number, if it is not, then determining and terminal
Communications records are not present between number;Or, short message managing module 32 detection and termination number air time whether be greater than it is default
Time threshold, if it is not, then communications records are not present between determining and termination number.Short message managing module 32 judges whether to be arranged
For the mode of automatically replying, if it is, automatically replying preset SMS to the sender of short message.
Command reception module 33 receives the instruction for showing intercepted short message.It is intercepted to intercept the calculating of short message extraction module 34
The intercepted short message of notice total number, and the item number for the intercepted short message that can be shown according to every page of display interface is always shown
Show number of pages, paging extracts the intercepted short message stored in local cache and is sent to display interface process.It presses in the display interface
Page shows intercepted short message.Short message operation module 35 is intercepted to provide a user deletion in the display interface and restore intercepted short message
Function, normal short message is deleted or reverted to intercepted short message based on the selection of user.
In one embodiment, the present invention provides a kind of mobile terminal, including short message processing device as above.
The embodiment of the invention provides following technical schemes:
1. a kind of SMS processing method, comprising:
Obtain the short message that operating system receives;
Judge whether the short message needs to handle based on default rule, if it is, judging whether to be arranged to default
Short message application;
If being not configured to the short message application of default, short message operation is obtained by using the open function of operating system
Permission, and the short message is handled, the processing includes: interception, modification, automatic-answering back device.
2. the method as described in 1, the function open by using operating system obtains short message operating right and includes:
Short message operating right is obtained using the SetMode method of AppOpsManager example in Android system;
Wherein, the short message operating right includes: insertion, modification, deletion.
3. the method as described in 2, carrying out processing to the short message includes:
Judge whether the short message is refuse messages based on refuse messages screening rule, if it is, intercepting the short message
And store the intercepted short message to short message memory block is intercepted, prompt is issued in notification bar receives the logical of refuse messages
Know.
4. the method as described in 3, comprising:
The refuse messages screening rule includes at least one keyword;
The content for the short message that will acquire is matched with the keyword, if the content of the short message and at least one
A keyword matches, it is determined that the short message is refuse messages and is intercepted;
The keyword includes: discounting, preferential, special price, popularization.
5. the method as described in 4, carrying out processing to the short message includes:
The termination number for sending the short message is obtained, detects in address list whether be stored with the termination number;
When detecting the not stored termination number in the address list, whether deposited between detection and the termination number
In communications records;
When detecting between the termination number there is no communications records, by the content of the short message and the communication
Contact information in record is matched;The contact information includes: name of contact person, contact phone or contact person
Location;
When the Web content and the contact information mismatch, it is determined that the short message is refuse messages and carries out
It intercepts.
6. the method as described in 5 includes: with the presence or absence of communications records between the detection and the termination number
It detects whether to be transmitted across short message to the termination number, if it is not, then not depositing between the determining and described termination number
In communications records;Or,
It detects whether to dial the termination number, if it is not, then determining that there is no communicate between the termination number
Record;Or,
Whether detection is greater than preset time threshold with air time of the termination number, if it is not, then it is determining with it is described
Communications records are not present between termination number.
7. the method as described in 1, carrying out processing to the short message includes:
Judge whether to be set as the mode of automatically replying, if it is, automatically replying preset SMS to the transmission of the short message
Side.
8. the method as described in 3, comprising:
Receive the instruction for showing intercepted short message;
Calculate the total number of intercepted short message, and the item number for the intercepted short message that can be shown according to every page of display interface
It obtains always showing number of pages;
Paging extracts the intercepted short message stored in local cache and is sent to the display interface process;
Intercepted short message is shown by page on the display interface.
9. the method as described in 8, comprising:
Deletion is provided a user on the display interface and restores the function of intercepted short message, and the selection based on user will
Normal short message is deleted or reverted to intercepted short message.
10. a kind of short message processing device, comprising:
Short message obtains module, the short message received for obtaining operating system;
Short message managing module, for judging whether the short message needs to handle based on default rule, if it is, judgement
Whether the short message application of default is arranged to;If being not configured to the short message application of default, opened by using operating system
The function of putting obtains short message operating right, and handles the short message, and the processing includes: interception, modification, answers automatically
It answers.
11. the device as described in 10, it is characterised in that:
The short message managing module, comprising:
Authority acquiring unit is obtained for the SetMode method in Android system using AppOpsManager example
Take short message operating right;The short message operating right includes: insertion, modification, deletion.
12. the device as described in 11, it is characterised in that:
The short message managing module is also used to judge whether the short message is that rubbish is short based on refuse messages screening rule
Letter is sent out in notification bar if it is, intercepting the short message and storing the intercepted short message to short message memory block is intercepted
Prompt receives the notice of refuse messages out.
13. the device as described in 12, it is characterised in that:
The refuse messages screening rule includes at least one keyword;
The content for the short message that the short message managing module will acquire is matched with the keyword, if described short
The content of letter matches at least one keyword, it is determined that the short message is refuse messages and is intercepted;
Wherein, the keyword includes: discounting, preferential, special price, popularization.
14. the device as described in 11, it is characterised in that:
Whether the short message managing module obtains the termination number for sending the short message, detect described in being stored in address list
Termination number;
When detecting the not stored termination number in the address list, the short message managing module detection and the end
It holds and whether there is communications records between number;
When detecting between the termination number there is no communications records, the short message managing module is by the short message
Content matched with the contact information in the address list;The contact information includes: name of contact person, contact person
Phone or contact addresses;
When the Web content and the contact information mismatch, the short message managing module determines that the short message is
Refuse messages are simultaneously intercepted.
15. the device as described in 14, it is characterised in that:
The short message managing module detects whether to be transmitted across short message to the termination number, if it is not, then it is determining with it is described
Communications records are not present between termination number;Or,
The short message managing module detects whether to dial the termination number, if it is not, then the determining and terminal number
Communications records are not present between code;Or,
Whether the short message managing module detection and the air time of the termination number are greater than preset time threshold, if
It is no, it is determined that communications records are not present between the termination number.
16. the method as described in 10, it is characterised in that:
The short message managing module judges whether to be set as the mode of automatically replying, if it is, automatically replying preset SMS
To the sender of the short message.
17. the device as described in 12, comprising:
Command reception module, for receiving the instruction for showing intercepted short message;
Short message extraction module is intercepted, for calculating the total number of the intercepted short message of intercepted notice, and according to display circle
The item number for the intercepted short message that every page of face can be shown obtains always showing number of pages;It is stored in paging extraction local cache intercepted
Short message is simultaneously sent to the display interface process;
Wherein, intercepted short message is shown by page on the display interface.
18. the device as described in 17, comprising:
Short message operation module is intercepted, for providing a user deletion on the display interface and restoring intercepted short message
Normal short message is deleted or reverted to intercepted short message based on the selection of user by function.
19. a kind of mobile terminal, it is characterised in that:
Including the short message processing device as described in 10 to 18 any one.
SMS processing method, device and the mobile terminal provided in above-described embodiment is answered being not configured to default short message
Short message operating right can be obtained in the state of, short message is operated, and progress short message managing is more convenient and improves use
Family experience, can effective catching rubbish short message, and a possibility that erroneous judgement occurs can be reduced, intercepting efficiency is high, improves number of users
According to safety and can protect privacy of user.
The above is only some embodiments of the invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.
Claims (19)
1. a kind of SMS processing method characterized by comprising
Obtain the short message that operating system receives;
Judge whether the short message needs to handle based on default rule, if it is, judging whether to be arranged to the short of default
Letter application;
If being not configured to the short message application of default, short message operating rights is obtained by using the open function of operating system
Limit, and the short message is handled, the processing includes: interception, modification, automatic-answering back device.
2. the method as described in claim 1, which is characterized in that the function open by using operating system obtains short message
Operating right includes:
Short message operating right is obtained using the SetMode method of AppOpsManager example in Android system;
Wherein, the short message operating right includes: insertion, modification, deletion.
3. method according to claim 2, which is characterized in that carrying out processing to the short message includes:
Judge whether the short message is refuse messages based on refuse messages screening rule, if it is, intercepting the short message and inciting somebody to action
The intercepted short message is stored to short message memory block is intercepted, and the notice that prompt receives refuse messages is issued in notification bar.
4. method as claimed in claim 3 characterized by comprising
The refuse messages screening rule includes at least one keyword;
The content for the short message that will acquire is matched with the keyword, if the content of the short message and at least one pass
Keyword matches, it is determined that the short message is refuse messages and is intercepted;
The keyword includes: discounting, preferential, special price, popularization.
5. method as claimed in claim 4, carrying out processing to the short message includes:
The termination number for sending the short message is obtained, detects in address list whether be stored with the termination number;
When detecting the not stored termination number in the address list, with the presence or absence of logical between detection and the termination number
Letter record;
It, will be in the content of the short message and the address list when detecting between the termination number there is no communications records
Contact information matched;The contact information includes: name of contact person, contact phone or contact addresses;
When Web content and the contact information mismatch, it is determined that the short message is refuse messages and is intercepted.
6. method as claimed in claim 5, which is characterized in that the detection between the termination number with the presence or absence of communicating
Record includes:
It detects whether to be transmitted across short message to the termination number, if it is not, then there is no logical between the determining and described termination number
Letter record;Or,
It detects whether to dial the termination number, if it is not, then communications records are not present between the determining and described termination number;
Or,
Whether detection and the air time of the termination number are greater than preset time threshold, if it is not, then the determining and terminal
Communications records are not present between number.
7. the method as described in claim 1, which is characterized in that carrying out processing to the short message includes:
Judge whether to be set as the mode of automatically replying, if it is, automatically replying preset SMS to the sender of the short message.
8. method as claimed in claim 3 characterized by comprising
Receive the instruction for showing intercepted short message;
The total number of intercepted short message is calculated, and the item number for the intercepted short message that can be shown according to every page of display interface obtains
Total display number of pages;
Paging extracts the intercepted short message stored in local cache and is sent to the display interface process;
Intercepted short message is shown by page on the display interface.
9. method according to claim 8 characterized by comprising
Deletion is provided a user on the display interface and restores the function of intercepted short message, and the selection based on user will be blocked
It truncates letter and deletes or revert to normal short message.
10. a kind of short message processing device characterized by comprising
Short message obtains module, the short message received for obtaining operating system;
Short message managing module, for judging whether the short message needs to handle based on default rule, if it is, judging whether
It is arranged to the short message application of default;If being not configured to the short message application of default, open by using operating system
Function obtains short message operating right, and handles the short message, and the processing includes: interception, modification, automatic-answering back device.
11. device as claimed in claim 10, it is characterised in that:
The short message managing module, comprising:
Authority acquiring unit, it is short for using the SetMode method of AppOpsManager example to obtain in Android system
Believe operating right;The short message operating right includes: insertion, modification, deletion.
12. device as claimed in claim 11, it is characterised in that:
The short message managing module is also used to judge whether the short message is refuse messages based on refuse messages screening rule, such as
Fruit is then to intercept the short message and store the intercepted short message to short message memory block is intercepted, and issues and mentions in notification bar
Show the notice for receiving refuse messages.
13. device as claimed in claim 12, it is characterised in that:
The refuse messages screening rule includes at least one keyword;
The content for the short message that the short message managing module will acquire is matched with the keyword, if the short message
Content matches at least one keyword, it is determined that the short message is refuse messages and is intercepted;
Wherein, the keyword includes: discounting, preferential, special price, popularization.
14. device as claimed in claim 11, it is characterised in that:
The short message managing module obtains the termination number for sending the short message, detects in address list whether be stored with the terminal
Number;
When detecting the not stored termination number in the address list, the short message managing module detection and the terminal number
It whether there is communications records between code;
When detecting between the termination number there is no communications records, the short message managing module will be in the short message
Appearance is matched with the contact information in the address list;The contact information includes: name of contact person, contact phone
Or contact addresses;
When Web content and the contact information mismatch, the short message managing module determines that the short message is refuse messages
And it is intercepted.
15. device as claimed in claim 14, it is characterised in that:
The short message managing module detects whether to be transmitted across short message to the termination number, if it is not, then the determining and terminal
Communications records are not present between number;Or,
The short message managing module detects whether to dial the termination number, if it is not, then it is determining with the termination number it
Between be not present communications records;Or,
Whether the short message managing module detection and the air time of the termination number are greater than preset time threshold, if not,
Communications records are then not present between determination and the termination number.
16. device as claimed in claim 10, it is characterised in that:
The short message managing module judges whether to be set as the mode of automatically replying, if it is, automatically replying preset SMS to institute
State the sender of short message.
17. device as claimed in claim 12 characterized by comprising
Command reception module, for receiving the instruction for showing intercepted short message;
Short message extraction module is intercepted, for calculating the total number of the intercepted short message of intercepted notice, and it is every according to display interface
The item number for the intercepted short message that page can be shown obtains always showing number of pages;The intercepted short message stored in local cache is extracted in paging
And it is sent to the display interface process;
Wherein, intercepted short message is shown by page on the display interface.
18. device as claimed in claim 17 characterized by comprising
Short message operation module is intercepted, for providing a user deletion on the display interface and restoring the function of intercepted short message
Can, normal short message is deleted or reverted to intercepted short message based on the selection of user.
19. a kind of mobile terminal, it is characterised in that:
Including the short message processing device as described in claim 10 to 18 any one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610105460.XA CN105791552B (en) | 2016-02-25 | 2016-02-25 | A kind of SMS processing method, device and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610105460.XA CN105791552B (en) | 2016-02-25 | 2016-02-25 | A kind of SMS processing method, device and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105791552A CN105791552A (en) | 2016-07-20 |
CN105791552B true CN105791552B (en) | 2019-03-12 |
Family
ID=56402278
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610105460.XA Active CN105791552B (en) | 2016-02-25 | 2016-02-25 | A kind of SMS processing method, device and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105791552B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106227610A (en) * | 2016-07-25 | 2016-12-14 | 珠海市魅族科技有限公司 | Electronic equipment and message treatment method thereof |
CN108287863B (en) * | 2017-11-30 | 2020-07-21 | 维沃移动通信有限公司 | Message record cleaning method and device |
CN108718365A (en) * | 2018-05-18 | 2018-10-30 | Oppo(重庆)智能科技有限公司 | Message treatment method, device, terminal and storage medium |
CN114245323B (en) * | 2021-12-15 | 2023-03-28 | 平安科技(深圳)有限公司 | Message processing method and device, computer equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012174821A1 (en) * | 2011-06-22 | 2012-12-27 | 中兴通讯股份有限公司 | Method and system for monitoring spam short message and monitoring processing device |
CN103152738A (en) * | 2011-12-07 | 2013-06-12 | 腾讯科技(深圳)有限公司 | Method and device of intelligent intercept |
CN103929317A (en) * | 2007-09-21 | 2014-07-16 | 华为技术有限公司 | Method, devices and systems for controlling Push message |
CN105187646A (en) * | 2015-09-08 | 2015-12-23 | 小米科技有限责任公司 | Short message intercepting method and device |
CN105306712A (en) * | 2015-10-27 | 2016-02-03 | 上海斐讯数据通信技术有限公司 | Management method and management system of notification message |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150156194A1 (en) * | 2013-12-04 | 2015-06-04 | Symantec Corporation | Certificate status delivery through a local endpoint |
-
2016
- 2016-02-25 CN CN201610105460.XA patent/CN105791552B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103929317A (en) * | 2007-09-21 | 2014-07-16 | 华为技术有限公司 | Method, devices and systems for controlling Push message |
WO2012174821A1 (en) * | 2011-06-22 | 2012-12-27 | 中兴通讯股份有限公司 | Method and system for monitoring spam short message and monitoring processing device |
CN103152738A (en) * | 2011-12-07 | 2013-06-12 | 腾讯科技(深圳)有限公司 | Method and device of intelligent intercept |
CN105187646A (en) * | 2015-09-08 | 2015-12-23 | 小米科技有限责任公司 | Short message intercepting method and device |
CN105306712A (en) * | 2015-10-27 | 2016-02-03 | 上海斐讯数据通信技术有限公司 | Management method and management system of notification message |
Also Published As
Publication number | Publication date |
---|---|
CN105791552A (en) | 2016-07-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111343081B (en) | Information display method and electronic equipment | |
EP3200487B1 (en) | Message processing method and apparatus | |
US20140164437A1 (en) | Selective management of mobile device data in an enterprise environment | |
US20100299152A1 (en) | Selective Management of Mobile Devices in an Enterprise Environment | |
CN110321036A (en) | A kind of communication means, terminal and computer readable storage medium | |
US20080228890A1 (en) | System and method for pushing activated instant messages | |
CN105791552B (en) | A kind of SMS processing method, device and mobile terminal | |
CN104683301B (en) | Password storage method and device | |
EP1347612A3 (en) | Mobile communication terminal, information processing apparatus, relay server apparatus, information processing system, and information processing method | |
CN102368841B (en) | Remote control method and device of mobile short message | |
CN104486727A (en) | Mobile phone anti-theft method and system based on Android system | |
CN104244206B (en) | A kind of SMS processing method, device and terminal unit | |
CN107171894A (en) | The method of terminal device, distributed high in the clouds detecting system and pattern detection | |
CN103246847B (en) | A kind of method and apparatus of macrovirus killing | |
CN103813000A (en) | Mobile terminal and search method thereof | |
EP2040497B1 (en) | Tracking mobile communication devices | |
CN106453402A (en) | Data processing method and device | |
CN104391629A (en) | Method for sending message in orientation manner, method for displaying message, server and terminal | |
CN101017522A (en) | Method and device for preventing mobile terminal from being infracting by virus | |
CN106790915A (en) | Number Reorganization control method, device and corresponding server and mobile terminal | |
CN106681884A (en) | System call monitoring method and device | |
CN101917685A (en) | Short message answering system and method for mobile communication terminal | |
CN114303350A (en) | Information processing method, device and storage medium | |
CN102325096A (en) | Method for realizing communication content life management, terminal thereof and system thereof | |
CN106713635B (en) | mobile terminal and short message processing method and device thereof |
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 | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220729 Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015 Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Patentee before: Qizhi software (Beijing) Co.,Ltd. |
|
TR01 | Transfer of patent right |