CN107135298A - Call blocking method and apparatus - Google Patents
Call blocking method and apparatus Download PDFInfo
- Publication number
- CN107135298A CN107135298A CN201710242751.8A CN201710242751A CN107135298A CN 107135298 A CN107135298 A CN 107135298A CN 201710242751 A CN201710242751 A CN 201710242751A CN 107135298 A CN107135298 A CN 107135298A
- Authority
- CN
- China
- Prior art keywords
- incoming call
- call
- event
- dynamic
- incoming
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/66—Substation equipment, e.g. for use by subscribers with means for preventing unauthorised or fraudulent calling
- H04M1/663—Preventing unauthorised calls to a telephone set
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
Abstract
The present invention discloses a kind of call blocking method and apparatus, and the call blocking method comprises the following steps:Calling event is monitored in application framework layer;When listening to calling event, the present system time for receiving the calling event is recorded, and continues monitoring incoming call and hangs up event;When listening to the incoming call in the first preset time and hanging up event, the incoming information of the calling event is preserved to dynamic incoming call list;When the incoming information that the dynamic incoming call list is preserved reaches preparatory condition, start call blocking.The present invention has the effect for improving call blocking efficiency.
Description
Technical field
The present invention relates to field of terminal technology, more particularly to call blocking method and apparatus.
Background technology
At present, exist on the market malice dialer software exhale it is dead you, i.e., initiate to dial to destination number, and stand after the switch
Quarter is hung up, and then successively repeats.Generally this malice incoming call is typically all the incoming call of not display of calling number.
At present on the market, the anti-harassment class on Android system Android applies very many, such as Tencent mobile phone manager, 360
Mobile phone bodyguard, Kingsoft mobile phone bodyguard etc..Because by Android OS design frameworks, their call blocking is realized, is all passed through
Receive the broadcast transmitted by com.android.phone processes and realize.
But, because Android RIL JAVA response logic is realized in com.android.phone, also
It is to say, when there is incoming call, just can externally sends broadcast afterwards first via com.android.phone processing.This causes using upper
The scheme stated realizes call blocking, can all jump to system call interface UI, can just be hung up afterwards.Therefore, existing shielding is disliked
Anticipate the application of dialing, shielding malicious call that can not be rapidly and efficiently.
The content of the invention
The main object of the present invention is to provide call blocking method and apparatus, it is intended to improve call blocking efficiency, improves and uses
Experience at family.
To achieve the above object, a kind of call blocking method proposed by the present invention, for the mobile terminal of Android system, institute
Call blocking method is stated to comprise the following steps:
Calling event is monitored in application framework layer;
When listening to calling event, record receives the present system time of the calling event, and continues to monitor
Incoming call hangs up event;
When listening to the incoming call in the first preset time and hanging up event, the incoming information of the calling event is preserved
To dynamic incoming call list;
When the incoming information that the dynamic incoming call list is preserved reaches preparatory condition, start call blocking.
It is preferred that, also include step when the monitoring incoming call hangs up event:
Incoming call connection event is monitored, and caller ID is obtained according to the incoming call connection event;
It is not space-time in the caller ID of acquisition, preserves current call number;
It is described when listening to the incoming call in the first preset time and hanging up event, preserve the incoming call of the calling event
The step of information to dynamic incoming call list, specifically includes:
When listened in the first preset time it is described incoming call hang up event when, the current call number is saved in dynamic
State caller ID inventory, obtains the duration of the calling event and is saved in dynamic incoming call duration inventory.
It is preferred that, it is described when the incoming information that the dynamic incoming call list is preserved reaches preparatory condition, start incoming call
The step of interception, specifically includes:
When the size of the dynamic incoming call duration inventory is more than predetermined threshold value, start call blocking.
It is preferred that, include the step of the call blocking:
When the number of incoming call is matched with the dynamic caller ID inventory, or when the number of incoming call is spacing, hang up
Or connect and hanging up calling;
When the number of incoming call is mismatched with the dynamic caller ID inventory, and the duration of calling event is less than the
During two preset times, the number of incoming call is added to the dynamic caller ID inventory.
It is preferred that, step is also included after the step of starting call blocking:
Next calling event is not heard in the 3rd preset time after incoming call is hung up, then closes call blocking, and
Discharge the dynamic incoming call list.
Present invention also offers a kind of call blocking device, for the mobile terminal of Android system, the call blocking side
Method includes:
First monitors module, for monitoring calling event in application framework layer;
Second monitors module, for when listening to calling event, record to receive the current system of the calling event
Time, and continue monitor incoming call hang up event;
Preserving module, for when listening to the incoming call in the first preset time and hanging up event, preserving the incoming call
The incoming information of event is to dynamic incoming call list;
Blocking module, for when the incoming information that the dynamic incoming call list is preserved reaches preparatory condition, starting and
Electricity is intercepted.
It is preferred that, the second monitoring module also includes when hanging up event for the monitoring incoming call:
Incoming call connection event is monitored, and caller ID is obtained according to the incoming call connection event;
It is not space-time in the caller ID of acquisition, preserves current call number;
The preserving module be used for when listened in the first preset time it is described incoming call hang up event when, preserve it is described come
The incoming information of electric event to dynamic incoming call list includes:
When listened in the first preset time it is described incoming call hang up event when, the current call number is saved in dynamic
State caller ID inventory, obtains the duration of the calling event and is saved in dynamic incoming call duration inventory.
It is preferred that, the incoming information that the blocking module is used to be preserved when the dynamic incoming call list reaches preparatory condition
When, starting call blocking includes:
When the size of the dynamic incoming call duration inventory is more than predetermined threshold value, start call blocking.
It is preferred that, the blocking module includes for call blocking:
When the number of incoming call is matched with the dynamic caller ID inventory, or when the number of incoming call is spacing, hang up
Or connect and hanging up calling;
When the number of incoming call is mismatched with the dynamic caller ID inventory, and the duration of calling event is less than the
During two preset times, the number of incoming call is added to the dynamic caller ID inventory.
It is preferred that, the call blocking device also includes:
Release module, for not hearing next calling event in the 3rd preset time after incoming call is hung up, is then closed
Call blocking, and discharge the dynamic incoming call list.
Call blocking method provided by the present invention, passes through wireless the connecing of the application framework layer framework in Android
The mechanism that incoming call system is monitored in a set of customization is added in mouthful layer RIL, then by the current mechanism of the RIL layers of Android system itself,
Come realize for this frequent incoming call and quickly hang up without caller show number or show random number disturbance incoming call.From
And make it that malice incoming call is shielded before com.android.phone is accessed to, it is to avoid enter incoming call UI and of short duration the tinkle of bells
Phenomenon, reached shielding speed faster with more efficient effect.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Structure according to these accompanying drawings obtains other accompanying drawings.
Fig. 1 is the optional hardware architecture diagram of mobile terminal one for realizing each embodiment of the invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the flow chart of call blocking method first embodiment of the present invention;
Fig. 4 is the flow chart of call blocking method second embodiment of the present invention;
Fig. 5 is the flow chart of call blocking method 3rd embodiment of the present invention;
Fig. 6 is the flow chart that step shown in Fig. 5 starts call blocking step;
Fig. 7 is the flow chart of call blocking method fourth embodiment of the present invention;
Fig. 8 is the module diagram of the embodiment of call blocking device one of the present invention.
The realization, functional characteristics and advantage of the object of the invention will be described further referring to the drawings in conjunction with the embodiments.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Describe to realize the mobile terminal of each embodiment of the invention referring now to accompanying drawing.In follow-up description, use
For represent element such as " module ", " part " or " unit " suffix only for be conducive to the present invention explanation, itself
Not specific meaning.Therefore, " module " can be used mixedly with " part ".
Mobile terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as moving
Phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet personal computer), PMP
The mobile terminal of (portable media player), guider etc. and such as numeral TV, desktop computer etc. are consolidated
Determine terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that, except being used in particular for movement
Outside the element of purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 is the hardware architecture diagram for realizing each optional mobile terminal of embodiment one of the invention.
Mobile terminal 1 00 can include wireless communication unit 110, A/V (audio/video) input block 120, user's input
Unit 130, sensing unit 140, output unit 150, memory 160, interface unit 170, controller 180 and power subsystem 190
Etc..Fig. 1 shows the mobile terminal with various assemblies, it should be understood that being not required for implementing all groups shown
Part.More or less components can alternatively be implemented.The element of mobile terminal will be discussed in more detail below.
Wireless communication unit 110 generally includes one or more assemblies, and it allows mobile terminal 1 00 and wireless communication system
Or the radio communication between network.For example, wireless communication unit 110 can include broadcasting reception module 111, mobile communication mould
At least one in block 112, wireless Internet module 113, short range communication module 114 and location information module 115.
Broadcasting reception module 111 receives broadcast singal and/or broadcast via broadcast channel from external broadcast management server
Relevant information.Broadcast channel can include satellite channel and/or terrestrial channel.Broadcast management server can be generated and sent
The broadcast singal and/or broadcast related information generated before the server or reception of broadcast singal and/or broadcast related information
And send it to the server of terminal.Broadcast singal can include TV broadcast singals, radio signals, data broadcasting
Signal etc..Moreover, broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast phase
Closing information can also provide via mobile communications network, and in this case, broadcast related information can be by mobile communication mould
Block 112 is received.Broadcast singal can exist in a variety of manners, for example, it can be with DMB (DMB) electronics
The form of program guide (EPG), the electronic service guidebooks (ESG) of digital video broadcast-handheld (DVB-H) etc. and exist.Broadcast
Receiving module 111 can receive signal broadcast by using various types of broadcast systems.Especially, broadcasting reception module 111
Can be wide by using such as multimedia broadcasting-ground (DMB-T), DMB-satellite (DMB-S), digital video
Broadcast-hand-held (DVB-H), the Radio Data System of forward link media (MediaFLO), received terrestrial digital broadcasting integrated service
Etc. (ISDB-T) digit broadcasting system receives digital broadcasting.Broadcasting reception module 111, which may be constructed such that, to be adapted to provide for extensively
Broadcast the various broadcast systems and above-mentioned digit broadcasting system of signal.Via broadcasting reception module 111 receive broadcast singal and/
Or broadcast related information can be stored in memory 160 (or other types of storage medium).
Mobile communication module 112 sends radio signals to base station (for example, access point, node B etc.), exterior terminal
And in server at least one and/or receive from it radio signal.Such radio signal can be logical including voice
Talk about signal, video calling signal or the various types of data for sending and/or receiving according to text and/or Multimedia Message.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.The module can be internally or externally
It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by the module can include WLAN (WLAN) (Wi-Fi), Wibro
(WiMAX), Wimax (worldwide interoperability for microwave accesses), HSDPA (high-speed downlink packet access) etc..
Short range communication module 114 is the module for supporting junction service.Some examples of short-range communication technology include indigo plant
Tooth TM, radio frequency identification (RFID), Infrared Data Association (IrDA), ultra wide band (UWB), purple honeybee TM etc..
Location information module 115 is the module for checking or obtaining the positional information of mobile terminal.Location information module
Typical case be GPS (global positioning system).According to current technology, GPS module 115, which is calculated, comes from three or more satellites
Range information and correct time information and for the Information application triangulation of calculating so that according to longitude, latitude
Highly accurately calculate three-dimensional current location information.Currently, defended for calculating the method for position and temporal information using three
Star and the position calculated by using other satellite correction and the error of temporal information.In addition, GPS module 115
Can be by Continuous plus current location information in real time come calculating speed information.
A/V input blocks 120 are used to receive audio or video signal.A/V input blocks 120 can include the He of camera 121
Microphone 122, the static images that 121 pairs of camera is obtained in video acquisition mode or image capture mode by image capture apparatus
Or the view data of video is handled.Picture frame after processing may be displayed on display unit 151.Handled through camera 121
Picture frame afterwards can be stored in memory 160 (or other storage mediums) or be sent out via wireless communication unit 110
Send, two or more cameras 121 can be provided according to the construction of mobile terminal.Microphone 122 can be in telephone calling model, note
Sound (voice data) is received via microphone in record pattern, speech recognition mode etc. operational mode, and can be by so
Acoustic processing be voice data.Audio (voice) data after processing can be converted in the case of telephone calling model can
The form output of mobile communication base station is sent to via mobile communication module 112.Microphone 122 can implement various types of make an uproar
Sound eliminates (or suppression) algorithm to eliminate the noise or dry that (or suppression) produces during receiving and sending audio signal
Disturb.
The order that user input unit 130 can be inputted according to user generates key input data to control each of mobile terminal
Plant operation.User input unit 130 allows user to input various types of information, and can include keyboard, metal dome, touch
Plate (for example, detection due to being touched caused by resistance, pressure, electric capacity etc. change sensitive component), roller, rocking bar etc.
Deng.Especially, when touch pad is superimposed upon on display unit 151 in the form of layer, touch-screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 1 00, (for example, mobile terminal 1 00 opens or closes shape
State), the position of mobile terminal 1 00, user is for the presence or absence of contact (that is, touch input) of mobile terminal 1 00, mobile terminal
The acceleration or deceleration movement of 100 orientation, mobile terminal 1 00 and direction etc., and generate for controlling mobile terminal 1 00
The order of operation or signal.For example, when mobile terminal 1 00 is embodied as sliding-type mobile phone, sensing unit 140 can be sensed
The sliding-type phone is opening or closing.In addition, sensing unit 140 can detect power subsystem 190 whether provide electric power or
Whether person's interface unit 170 couples with external device (ED).Sensing unit 140, which can include proximity transducer 141, to be combined below
This is described touch-screen.
Interface unit 170 is connected the interface that can pass through as at least one external device (ED) with mobile terminal 1 00.For example,
External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing
Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Identification module can be that storage is used to verify that user uses each of mobile terminal 1 00
Plant information and subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) can be included
Etc..In addition, the device (hereinafter referred to as " identifying device ") with identification module can take the form of smart card, therefore, know
Other device can be connected via port or other attachment means with mobile terminal 1 00.Interface unit 170 can be used for reception and come from
The input (for example, data message, electric power etc.) of external device (ED) and the input received is transferred in mobile terminal 1 00
One or more elements can be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 1 00 is connected with external base, interface unit 170 may be used as allowing by it by electricity
Power provides to the path of mobile terminal 1 00 from base or may be used as allowing passing through it from the various command signals that base is inputted
It is transferred to the path of mobile terminal.The various command signals or electric power inputted from base may be used as being used to recognize that mobile terminal is
The no signal being accurately fitted within base.Output unit 150 is configured to provide defeated with vision, audio and/or tactile manner
Go out signal (for example, audio signal, vision signal, alarm signal, vibration signal etc.).Output unit 150 can include display
Unit 151, dio Output Modules 152, alarm unit 153 etc..
Display unit 151 may be displayed on the information handled in mobile terminal 1 00.For example, when mobile terminal 1 00 is in electricity
When talking about call mode, display unit 151 can be shown with conversing or other communicating (for example, text messaging, multimedia file
Download etc.) related user interface (UI) or graphic user interface (GUI).When mobile terminal 1 00 is in video calling pattern
Or during image capture mode, display unit 151 can show the image of capture and/or the image of reception, show video or figure
UI or GUI of picture and correlation function etc..
Meanwhile, when display unit 151 and touch pad in the form of layer it is superposed on one another to form touch-screen when, display unit
151 may be used as input unit and output device.Display unit 151 can include liquid crystal display (LCD), thin film transistor (TFT)
In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least
It is a kind of.Some in these displays may be constructed such that transparence to allow user to be watched from outside, and this is properly termed as transparent
Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific
Desired embodiment, mobile terminal 1 00 can include two or more display units (or other display devices), for example, moving
Dynamic terminal can include outernal display unit (not shown) and inner display unit (not shown).Touch-screen can be used for detection to touch
Input pressure and touch input position and touch input area.
Dio Output Modules 152 can mobile terminal be in call signal reception pattern, call mode, logging mode,
It is that wireless communication unit 110 is received or in memory 160 when under the isotypes such as speech recognition mode, broadcast reception mode
The voice data transducing audio signal of middle storage and it is output as sound.Moreover, dio Output Modules 152 can be provided and movement
The audio output (for example, call signal receives sound, message sink sound etc.) for the specific function correlation that terminal 100 is performed.
Dio Output Modules 152 can include loudspeaker, buzzer etc..
Alarm unit 153 can provide output to notify event to mobile terminal 1 00.Typical event can be with
Including calling reception, message sink, key signals input, touch input etc..In addition to audio or video is exported, alarm unit
153 can provide output in a different manner with the generation of notification event.For example, alarm unit 153 can be in the form of vibration
Output is provided, when receiving calling, message or some other entrance communications (incomingcommunication), alarm list
Member 153 can provide tactile output (that is, vibrating) to notify to user.Exported by providing such tactile, even in
When the mobile phone of user is in the pocket of user, user also can recognize that the generation of various events.Alarm unit 153
The output of the generation of notification event can be provided via display unit 151 or dio Output Modules 152.
Memory 160 can store software program of the processing performed by controller 180 and control operation etc., Huo Zheke
Temporarily to store the data that has exported or will export (for example, telephone directory, message, still image, video etc.).And
And, memory 160 can store the vibration of various modes on being exported when touching and being applied to touch-screen and audio signal
Data.
Memory 160 can include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, many
Media card, card-type memory (for example, SD or DX memories etc.), random access storage device (RAM), static random-access storage
Device (SRAM), read-only storage (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory
(PROM), magnetic storage, disk, CD etc..Moreover, mobile terminal 1 00 can be with performing memory by network connection
The network storage device cooperation of 160 store function.
The overall operation of the generally control mobile terminal of controller 180.For example, controller 180 is performed and voice call, data
Communication, video calling etc. related control and processing.In addition, controller 180 can include being used to reproduce (or playback) many matchmakers
The multi-media module 181 of volume data, multi-media module 181 can be constructed in controller 180, or can be structured as and control
Device 180 is separated.Controller 180 can be with execution pattern identifying processing, by the handwriting input performed on the touchscreen or picture
Draw input and be identified as character or image.
Power subsystem 190 receives external power or internal power under the control of controller 180 and provides operation each member
Appropriate electric power needed for part and component.
Various embodiments described herein can be with use such as computer software, hardware or its any combination of calculating
Machine computer-readable recording medium is implemented.Implement for hardware, embodiment described herein can be by using application-specific IC
(ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can
Programming gate array (FPGA), processor, controller, microcontroller, microprocessor, it is designed to perform function described herein
At least one of electronic unit is implemented, and in some cases, such embodiment can be implemented in controller 180.
For software implementation, the embodiment of such as process or function can be with allowing to perform the single of at least one function or operation
Software module is implemented.Software code can by the software application (or program) write with any appropriate programming language Lai
Implement, software code can be stored in memory 160 and be performed by controller 180.
So far, mobile terminal is described according to its function.Below, for the sake of brevity, will description such as folded form,
Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc. is as showing
Example.Therefore, the present invention can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal.
Mobile terminal 1 00 as shown in Figure 1 may be constructed such that using via frame or packet transmission data it is all if any
Line and wireless communication system and satellite-based communication system are operated.
The communication system for describing wherein be operated according to the mobile terminal of the present invention referring now to Fig. 2.
Such communication system can use different air interfaces and/or physical layer.For example, used by communication system
Air interface includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and universal mobile communications system
System (UMTS) (especially, Long Term Evolution (LTE)), global system for mobile communications (GSM) etc..As non-limiting example, under
The description in face is related to cdma communication system, but such teaching is equally applicable to other types of system.
With reference to Fig. 2, cdma wireless communication system can include multiple mobile terminal 1s 00, multiple base stations (BS) 270, base station
Controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is configured to and Public Switched Telephony Network (PSTN)
290 form interface.MSC280 is also structured to the BSC275 formation interfaces with that can be couple to base station 270 via back haul link.
Back haul link can be constructed according to any of some known interfaces, the interface include such as E1/T1, ATM, IP,
PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that system can include multiple BSC275 as shown in Figure 2.
Each BS270 can service one or more subregions (or region), by multidirectional antenna or the day of sensing specific direction
Each subregion of line covering is radially away from BS270.Or, each subregion can be by two or more for diversity reception
Antenna is covered.Each BS270 may be constructed such that the multiple frequency distribution of support, and each frequency distribution has specific frequency spectrum
(for example, 1.25MHz, 5MHz etc.).
What subregion and frequency were distributed, which intersects, can be referred to as CDMA Channel.BS270 can also be referred to as base station transceiver
System (BTS) or other equivalent terms.In this case, term " base station " can be used for broadly representing single
BSC275 and at least one BS270.Base station can also be referred to as " cellular station ".Or, specific BS270 each subregion can be claimed
For multiple cellular stations.
As shown in Figure 2, broadcast singal is sent to the mobile terminal operated in system by broadcsting transmitter (BT) 295
100.Broadcasting reception module 111 as shown in Figure 1 is arranged at mobile terminal 1 00 to receive the broadcast sent by BT295
Signal.In fig. 2 it is shown that several global positioning system (GPS) satellites 300.Satellite 300 helps to position multiple mobile terminals
At least one in 100.
In fig. 2, multiple satellites 300 are depicted, it is understood that be, it is possible to use any number of satellite obtains useful
Location information.GPS module 115 as shown in Figure 1 is generally configured to coordinate with satellite 300 to obtain desired positioning letter
Breath.GPS tracking techniques or outside GPS tracking techniques are substituted, the other of the position that can track mobile terminal can be used
Technology.In addition, at least one gps satellite 300 can optionally or additionally handle satellite dmb transmission.
As a typical operation of wireless communication system, BS270 receives the reverse link from various mobile terminal 1s 00
Signal.Mobile terminal 1 00 generally participates in call, information receiving and transmitting and other types of communication.It is each anti-that certain base station 270 is received
Handled to link signal in specific BS270.The data of acquisition are forwarded to the BSC275 of correlation.BSC provides call
Resource allocation and the mobile management function of coordination including the soft switching process between BS270.BSC275 is also by the number received
According to MSC280 is routed to, it is provided for the extra route service with PSTN290 formation interfaces.Similarly, PSTN290 with
MSC280 formation interfaces, MSC and BSC275 formation interface, and BSC275 correspondingly control BS270 with by forward link signals
It is sent to mobile terminal 1 00.
Based on above-mentioned mobile terminal hardware configuration and communication system, each embodiment of the inventive method is proposed.
Fig. 3 is refer to, call blocking method first embodiment of the present invention is described next for the mobile terminal of Android system
Electric hold-up interception method comprises the following steps:
Step S301, calling event EVENT_INCOMING_RING is monitored in application framework layer Framework.
Wherein it is possible to Framework register a Handler go lasting monitoring CallManager and
CallNotifier state.
Step S302, when listening to calling event, record receives the present system time of the calling event
INCOMING_RING_CURRENT_TIME, and continue monitor incoming call hang up event EVENT_DISCONNECT.
Wherein, when listening to calling event, counter INCOMING_RING_COUNT can be started and received to record
The number of times of calling event, to be used as the foundation for subsequently determining whether malice incoming call.
Step S303, when listening to the incoming call in the first preset time Nd and hanging up event, preserves the incoming call thing
The incoming information of part is to dynamic incoming call list ArrayList.
The incoming information of the calling event can include caller ID, incoming call number of times, incoming call duration, and incoming call
Interval time etc..First preset time Nd can be 0.5s, 1s or 2s etc., i.e., receive the incoming call thing according to record
The present system time of part, and present system time carry out calculating difference, and the difference is less than the first preset time Nd, then is determined as
Malice is sent a telegram here.
Step S304, when the incoming information that the dynamic incoming call list is preserved reaches preparatory condition, starts incoming call and blocks
Cut.
The preparatory condition can be send a telegram here number of times, the individual event of incoming call duration or continuous incoming call number of times or multinomial bar
The combination of part.Start call blocking when, can according to preset rules to malice number and without number incoming call shield.
The present embodiment, by adding a set of in Android application framework layer framework radio interface layer RIL
The mechanism of incoming call system is monitored in customization, then by the current mechanism of the RIL layers of Android system itself, to realize for this frequent
Incoming call and the disturbance incoming call that number or display random number are shown without caller quickly hung up.So that malice incoming call is connecing
Enter and shielded to before com.android.phone, it is to avoid enter the phenomenon of incoming call UI and of short duration the tinkle of bells, reached shielding speed
Degree faster with more efficient effect.
Fig. 4 is refer to, call blocking method second embodiment of the present invention, the present embodiment is right based on first embodiment
Step S303 is adjusted, and has increased step newly.It is specific as follows:
Step S401, it is identical with the step S301 in first embodiment, it will not be repeated here.
Step S402, it is identical with the step S302 in first embodiment, it will not be repeated here.
Step S403, monitor incoming call connection event EVENT_NEW_RINGING_CONNECTION, and according to it is described come
Electrical connection event obtains caller ID IncomingNumber.
Step S404, is not space-time in the caller ID IncomingNumber of acquisition, preserves current call number.For example
Caller ID IncomingNumber is preserved to current call number IncomingNumberCurrent.
Step S405, when listened in the first preset time Nd it is described incoming call hang up event when, by the current call
Number is saved in dynamic caller ID inventory IncomingNumberList, obtains duration and the guarantor of the calling event
It is stored to dynamic incoming call duration inventory INCOMING_DURATION_LIST.
The duration of the calling event, can by obtain monitor calling event arrival cable address break event when
Between, and carry out mathematic interpolation acquisition;Can also be by starting counter when monitoring calling event, when monitoring to carry out cable address
Stop counter during disconnected event and obtain.
Step S406, it is identical with the step S302 in first embodiment, it will not be repeated here.
The present embodiment, caller ID is obtained by monitoring incoming call connection event, and combines the incoming call duration, then may be used
It is normal incoming call or malicious call with more accurate understanding current Number incoming call, and reaches the effect of Accurate Interception.
Fig. 5 is refer to, call blocking method 3rd embodiment of the present invention, the present embodiment is right based on second embodiment
Step S406 is adjusted.It is specific as follows:
Step S501, it is identical with the step S401 in second embodiment, it will not be repeated here.
Step S502, it is identical with the step S402 in second embodiment, it will not be repeated here.
Step S503, it is identical with the step S403 in second embodiment, it will not be repeated here.
Step S504, it is identical with the step S404 in second embodiment, it will not be repeated here.
Step S505, it is identical with the step S405 in second embodiment, it will not be repeated here.
Step S506, when the size of the dynamic incoming call duration inventory is more than predetermined threshold value Ni, starts incoming call and blocks
Cut.
The present embodiment, it is by judging the size of dynamic incoming call duration inventory, then simple with Rule of judgment, judge knot
The effect that fruit determines.Certainly, in other embodiments, it can also judge whether incoming call number of times exceedes threshold value, send a telegram here the duration
It is cumulative whether exceed threshold value, or whether the average incoming call duration every time exceedes threshold value etc..
Include incorporated by reference to referring to Fig. 6, the step of the call blocking:
Step S601, when the number of incoming call is matched with the dynamic caller ID inventory, or when the number of incoming call is sky
When, hang up or connect and hanging up calling.
Step S602, when number and the dynamic caller ID inventory of incoming call are mismatched, and calling event continues
When time is less than the second preset time, the number of incoming call is added to the dynamic caller ID inventory.Wherein, described second is pre-
If the time, can also be identical with the first preset time and be set to Nd.
The present embodiment, is sent a telegram here by shielding the number in the dynamic caller ID inventory, and caller ID is space-time
Incoming call, then can accurately limit malice and send a telegram here frequent incoming call.Further, by will not add the dynamic caller ID
Inventory, but the malice incoming call still quickly hung up is added to the dynamic caller ID inventory, then can reach Fast Learning
Change the malice incoming call of number, further enhance the function of shielding malice incoming call.
It refer to Fig. 7, call blocking method fourth embodiment of the present invention, the present embodiment is based on first embodiment, newly
Increase step, it is specific as follows:
Step S701, it is identical with the step S301 in second embodiment, it will not be repeated here.
Step S702, it is identical with the step S302 in second embodiment, it will not be repeated here.
Step S703, it is identical with the step S303 in second embodiment, it will not be repeated here.
Step S704, it is identical with the step S304 in second embodiment, it will not be repeated here.
Step S705, next calling event is not heard in the 3rd preset time Nn after incoming call is hung up, then closes and
Electricity is intercepted, and discharges the dynamic incoming call list.
Due to closing call blocking, all dynamic incoming call lists, such as INCOMING_DURATION_ can be discharged
LIST and IncomingNumberList.
The present embodiment, call blocking function is stopped by setting, and release dynamics incoming call list, then can save energy consumption
Resource is taken with reducing, and can be detected when next time when malice is sent a telegram here and be again started up this interception mechanism.
Fig. 8 is refer to, it is described for the mobile terminal of Android system present invention also offers a kind of call blocking device
Call blocking method includes:
First monitors module 1100, for monitoring calling event EVENT_INCOMING_ in application framework layer Framework
RING。
Wherein it is possible to Framework register a Handler go lasting monitoring CallManager and
CallNotifier state.
Second monitors module 1200, for when listening to calling event, record to receive the current of the calling event
System time INCOMING_RING_CURRENT_TIME, and continue monitor incoming call hang up event EVENT_DISCONNECT.
Wherein, when listening to calling event, counter INCOMING_RING_COUNT can be started and received to record
The number of times of calling event, to be used as the foundation for subsequently determining whether malice incoming call.
Preserving module 1300, for when listened in the first preset time Nd it is described incoming call hang up event when, preserve institute
The incoming information of calling event is stated to dynamic incoming call list ArrayList.
The incoming information of the calling event can include caller ID, incoming call number of times, incoming call duration, and incoming call
Interval time etc..First preset time Nd can be 0.5s, 1s or 2s etc., i.e., receive the incoming call thing according to record
The present system time of part, and present system time carry out calculating difference, and the difference is less than the first preset time Nd, then is determined as
Malice is sent a telegram here.
Blocking module 1400, for when the incoming information that the dynamic incoming call list is preserved reaches preparatory condition, opening
Dynamic call blocking.
The preparatory condition can be send a telegram here number of times, the individual event of incoming call duration or continuous incoming call number of times or multinomial bar
The combination of part.Start call blocking when, can according to preset rules to malice number and without number incoming call shield.
The present embodiment, by adding a set of in Android application framework layer framework radio interface layer RIL
The mechanism of incoming call system is monitored in customization, then by the current mechanism of the RIL layers of Android system itself, to realize for this frequent
Incoming call and the disturbance incoming call that number or display random number are shown without caller quickly hung up.So that malice incoming call is connecing
Enter and shielded to before com.android.phone, it is to avoid enter the phenomenon of incoming call UI and of short duration the tinkle of bells, reached shielding speed
Degree faster with more efficient effect.
It is preferred that, the second monitoring module 1200 also includes when hanging up event for the monitoring incoming call:
Incoming call connection event EVENT_NEW_RINGING_CONNECTION is monitored, and according to the incoming call connection event
Obtain caller ID IncomingNumber.
It is not space-time in the caller ID IncomingNumber of acquisition, preserves current call number.For example will incoming call number
Code IncomingNumber is preserved to current call number IncomingNumberCurrent.
The preserving module 1300 be used for when listened in the first preset time Nd it is described incoming call hang up event when, preserve
The incoming information of the calling event to dynamic incoming call list includes:
When listened in the first preset time Nd it is described incoming call hang up event when, the current call number is saved in
Dynamic caller ID inventory IncomingNumberList, obtains the duration of the calling event and is saved in dynamic
Electric duration inventory INCOMING_DURATION_LIST.
The duration of the calling event, can by obtain monitor calling event arrival cable address break event when
Between, and carry out mathematic interpolation acquisition;Can also be by starting counter when monitoring calling event, when monitoring to carry out cable address
Stop counter during disconnected event and obtain.
The present embodiment, caller ID is obtained by monitoring incoming call connection event, and combines the incoming call duration, then may be used
It is normal incoming call or malicious call with more accurate understanding current Number incoming call, and reaches the effect of Accurate Interception.
It is preferred that, the incoming information that the blocking module 1400 is used to being preserved when the dynamic incoming call list reaches default
During condition, starting call blocking includes:
When the size of the dynamic incoming call duration inventory is more than predetermined threshold value Ni, start call blocking.
The present embodiment, it is by judging the size of dynamic incoming call duration inventory, then simple with Rule of judgment, judge knot
The effect that fruit determines.Certainly, in other embodiments, it can also judge whether incoming call number of times exceedes threshold value, send a telegram here the duration
It is cumulative whether exceed threshold value, or whether the average incoming call duration every time exceedes threshold value etc..
It is preferred that, the blocking module 1400 includes for call blocking:
When the number of incoming call is matched with the dynamic caller ID inventory, or when the number of incoming call is spacing, hang up
Or connect and hanging up calling.
When the number of incoming call is mismatched with the dynamic caller ID inventory, and the duration of calling event is less than the
During two preset times, the number of incoming call is added to the dynamic caller ID inventory.Wherein, second preset time,
Can be identical with the first preset time and be set to Nd.
The present embodiment, is sent a telegram here by shielding the number in the dynamic caller ID inventory, and caller ID is space-time
Incoming call, then can accurately limit malice and send a telegram here frequent incoming call.Further, by will not add the dynamic caller ID
Inventory, but the malice incoming call still quickly hung up is added to the dynamic caller ID inventory, then can reach Fast Learning
Change the malice incoming call of number, further enhance the function of shielding malice incoming call.
It is preferred that, the call blocking device also includes:
Release module 1500, for not hearing next calling event in the 3rd preset time Nn after incoming call is hung up,
Call blocking is then closed, and discharges the dynamic incoming call list.
Due to closing call blocking, all dynamic incoming call lists, such as INCOMING_DURATION_ can be discharged
LIST and IncomingNumberList.
The present embodiment, call blocking function is stopped by setting, and release dynamics incoming call list, then can save energy consumption
Resource is taken with reducing, and can be detected when next time when malice is sent a telegram here and be again started up this interception mechanism.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property is included, so that process, method, article or device including a series of key elements not only include those key elements, and
And also including other key elements being not expressly set out, or also include for this process, method, article or device institute inherently
Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this
Also there is other identical element in process, method, article or the device of key element.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Understood based on such, technical scheme is substantially done to prior art in other words
Going out the part of contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are to cause a station terminal equipment (can be mobile terminal, calculate
Machine, server, air conditioner, or network equipment etc.) perform method described in each of the invention embodiment.
The preferred embodiments of the present invention are these are only, are not intended to limit the scope of the invention, it is every to utilize this hair
Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of call blocking method, the mobile terminal for Android system, it is characterised in that the call blocking method includes
Following steps:
Calling event is monitored in application framework layer;
When listening to calling event, record receives the present system time of the calling event, and continues to monitor incoming call
Hang up event;
When listening to the incoming call in the first preset time and hanging up event, the incoming information of the calling event is preserved to dynamic
State incoming call list;
When the incoming information that the dynamic incoming call list is preserved reaches preparatory condition, start call blocking.
2. call blocking method as claimed in claim 1, it is characterised in that also include when the monitoring incoming call hangs up event
Step:
Incoming call connection event is monitored, and caller ID is obtained according to the incoming call connection event;
It is not space-time in the caller ID of acquisition, preserves current call number;
It is described when listening to the incoming call in the first preset time and hanging up event, preserve the incoming information of the calling event
The step of to dynamic incoming call list, specifically includes:
When listened in the first preset time it is described incoming call hang up event when, by the current call number be saved in dynamic come
Electric number list, obtains the duration of the calling event and is saved in dynamic incoming call duration inventory.
3. call blocking method as claimed in claim 2, it is characterised in that described to work as what the dynamic incoming call list was preserved
When incoming information reaches preparatory condition, the step of starting call blocking specifically includes:
When the size of the dynamic incoming call duration inventory is more than predetermined threshold value, start call blocking.
4. call blocking method as claimed in claim 3, it is characterised in that include the step of the call blocking:
When the number of incoming call is matched with the dynamic caller ID inventory, or when the number of incoming call is spacing, hang up or
Connect and hanging up calling;
When the number and the dynamic caller ID inventory mismatch of incoming call, and the duration of calling event is pre- less than second
If during the time, the number of incoming call is added into the dynamic caller ID inventory.
5. call blocking method as claimed in claim 1, it is characterised in that also include after the step of starting call blocking
Step:
Next calling event is not heard in the 3rd preset time after incoming call is hung up, then closes call blocking, and discharge
The dynamic incoming call list.
6. a kind of call blocking device, the mobile terminal for Android system, it is characterised in that the call blocking method bag
Include:
First monitors module, for monitoring calling event in application framework layer;
Second monitors module, for when listening to calling event, recording the present system time for receiving the calling event,
And continue monitoring incoming call and hang up event;
Preserving module, for when listening to the incoming call in the first preset time and hanging up event, preserving the calling event
Incoming information to dynamic incoming call list;
Blocking module, is blocked for when the incoming information that the dynamic incoming call list is preserved reaches preparatory condition, starting incoming call
Cut.
7. call blocking device as claimed in claim 6, it is characterised in that described second monitors module monitors for described
Incoming call also includes when hanging up event:
Incoming call connection event is monitored, and caller ID is obtained according to the incoming call connection event;
It is not space-time in the caller ID of acquisition, preserves current call number;
The preserving module is used to, when listening to the incoming call in the first preset time and hanging up event, preserve the incoming call thing
The incoming information of part to dynamic incoming call list includes:
When listened in the first preset time it is described incoming call hang up event when, by the current call number be saved in dynamic come
Electric number list, obtains the duration of the calling event and is saved in dynamic incoming call duration inventory.
8. call blocking device as claimed in claim 7, it is characterised in that the blocking module is used for when the dynamic incoming call
When the incoming information that inventory is preserved reaches preparatory condition, starting call blocking includes:
When the size of the dynamic incoming call duration inventory is more than predetermined threshold value, start call blocking.
9. call blocking device as claimed in claim 8, it is characterised in that the blocking module includes for call blocking:
When the number of incoming call is matched with the dynamic caller ID inventory, or when the number of incoming call is spacing, hang up or
Connect and hanging up calling;
When the number and the dynamic caller ID inventory mismatch of incoming call, and the duration of calling event is pre- less than second
If during the time, the number of incoming call is added into the dynamic caller ID inventory.
10. call blocking device as claimed in claim 6, it is characterised in that the call blocking device also includes:
Release module, for not hearing next calling event in the 3rd preset time after incoming call is hung up, then closes incoming call
Intercept, and discharge the dynamic incoming call list.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710242751.8A CN107135298A (en) | 2017-04-14 | 2017-04-14 | Call blocking method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710242751.8A CN107135298A (en) | 2017-04-14 | 2017-04-14 | Call blocking method and apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107135298A true CN107135298A (en) | 2017-09-05 |
Family
ID=59715872
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710242751.8A Pending CN107135298A (en) | 2017-04-14 | 2017-04-14 | Call blocking method and apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107135298A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108684032A (en) * | 2018-03-30 | 2018-10-19 | 广东欧珀移动通信有限公司 | Intercept setting method and relevant device |
CN109474734A (en) * | 2017-09-08 | 2019-03-15 | 阿里巴巴集团控股有限公司 | Recognition methods, device and the terminal of type of call |
CN112600749A (en) * | 2020-10-27 | 2021-04-02 | 百果园技术(新加坡)有限公司 | Expired call identification method, device, terminal and storage medium |
CN113377556A (en) * | 2021-06-30 | 2021-09-10 | Tcl通讯(宁波)有限公司 | Method for realizing non-invasive communication service of Android platform |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103619003A (en) * | 2013-11-20 | 2014-03-05 | 北京奇虎科技有限公司 | Call/ short message intercepting method and device of mobile device |
CN104144414A (en) * | 2013-07-16 | 2014-11-12 | 腾讯科技(深圳)有限公司 | Information intercepting method and device |
CN104348947A (en) * | 2013-07-30 | 2015-02-11 | 腾讯科技(深圳)有限公司 | Method and device of managing incoming call of mobile terminal |
US20160119483A1 (en) * | 2014-06-23 | 2016-04-28 | Invariant Telecom | Voip voice and messaging application |
CN106534464A (en) * | 2016-11-30 | 2017-03-22 | 依偎科技(南昌)有限公司 | Call processing method and terminal |
-
2017
- 2017-04-14 CN CN201710242751.8A patent/CN107135298A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104144414A (en) * | 2013-07-16 | 2014-11-12 | 腾讯科技(深圳)有限公司 | Information intercepting method and device |
CN104348947A (en) * | 2013-07-30 | 2015-02-11 | 腾讯科技(深圳)有限公司 | Method and device of managing incoming call of mobile terminal |
CN103619003A (en) * | 2013-11-20 | 2014-03-05 | 北京奇虎科技有限公司 | Call/ short message intercepting method and device of mobile device |
US20160119483A1 (en) * | 2014-06-23 | 2016-04-28 | Invariant Telecom | Voip voice and messaging application |
CN106534464A (en) * | 2016-11-30 | 2017-03-22 | 依偎科技(南昌)有限公司 | Call processing method and terminal |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109474734A (en) * | 2017-09-08 | 2019-03-15 | 阿里巴巴集团控股有限公司 | Recognition methods, device and the terminal of type of call |
CN108684032A (en) * | 2018-03-30 | 2018-10-19 | 广东欧珀移动通信有限公司 | Intercept setting method and relevant device |
CN108684032B (en) * | 2018-03-30 | 2021-05-18 | Oppo广东移动通信有限公司 | Interception setting method and related equipment |
CN112600749A (en) * | 2020-10-27 | 2021-04-02 | 百果园技术(新加坡)有限公司 | Expired call identification method, device, terminal and storage medium |
CN112600749B (en) * | 2020-10-27 | 2023-02-17 | 百果园技术(新加坡)有限公司 | Expired call identification method, device, terminal and storage medium |
CN113377556A (en) * | 2021-06-30 | 2021-09-10 | Tcl通讯(宁波)有限公司 | Method for realizing non-invasive communication service of Android platform |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106231087B (en) | A kind of method and apparatus of front and back sides dual-screen display device false-touch prevention | |
CN104735255B (en) | Multi-screen display method and system | |
CN104731512B (en) | The method, apparatus and terminal that picture is shared | |
CN106027795B (en) | A kind of switching method and terminal of double-sided screen | |
CN104821990B (en) | Intelligent terminal realizes the method and intelligent terminal of shutdown alarm clock | |
CN104965665B (en) | A kind of information processing method and device, terminal | |
CN104796956A (en) | Mobile terminal network switching method and mobile terminal | |
CN106911850A (en) | Mobile terminal and its screenshotss method | |
CN105120054B (en) | Information processing method and mobile terminal | |
CN106131280A (en) | Mobile terminal and associated person information acquisition methods | |
CN107135298A (en) | Call blocking method and apparatus | |
CN104968027A (en) | Wi-Fi control method and apparatus | |
CN105430258A (en) | Method and device for taking self-timer group photos | |
CN107295140A (en) | A kind of detection method of earphone, device and terminal | |
CN106993084A (en) | The method, device and mobile terminal that a kind of control information is shown | |
CN106095464A (en) | A kind of method and device of the seamless operation of application program | |
CN107071161A (en) | The aggregation display method and mobile terminal of icon in a kind of status bar | |
CN106681768A (en) | Process control method and electronic equipment | |
CN106550133A (en) | Calling identification device and method | |
CN106681722A (en) | Process processing method and electronic device | |
CN106125898A (en) | The method and device of screen rotation | |
CN106161790A (en) | A kind of mobile terminal and control method thereof | |
CN106484534A (en) | Control method for the mobile terminal of displaying and control device | |
CN104780260A (en) | Method for controlling volume of mobile terminal and mobile terminal | |
CN105974437B (en) | A kind of method, apparatus and terminal promoting terminal applies performance |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170905 |