CN106657568B - A kind of method and apparatus for realizing safety call - Google Patents
A kind of method and apparatus for realizing safety call Download PDFInfo
- Publication number
- CN106657568B CN106657568B CN201610821195.5A CN201610821195A CN106657568B CN 106657568 B CN106657568 B CN 106657568B CN 201610821195 A CN201610821195 A CN 201610821195A CN 106657568 B CN106657568 B CN 106657568B
- Authority
- CN
- China
- Prior art keywords
- call
- linux
- suse
- modem
- secure communication
- 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
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/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
-
- 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/72484—User interfaces specially adapted for cordless or mobile telephones wherein functions are triggered by incoming communication events
Landscapes
- Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
Abstract
The invention discloses a kind of methods for realizing secure communication, are applied to mobile terminal, comprising: after detecting that user is made a phone call using the mode of secure communication, save telephone number, exit Android system service environment, restart (SuSE) Linux OS;After the starting of (SuSE) Linux OS kernel, starting is used for the audio codec of call and opens call access in (SuSE) Linux OS initialization init process, and starts modem and the modem is driven to initiate to call according to previously stored telephone number;After detecting the end of calling that the modem is initiated, Android system service environment is reentered.The present invention enables to realize safety call using the mobile terminal of Android system, avoids eavesdropping risk.
Description
Technical field
The present invention relates to field of terminal technology more particularly to a kind of method and apparatus for realizing safety call.
Background technique
A large amount of mobile terminal uses Android (Android) operating system at this stage, due to the characteristic of its open source, application
Program and function are numerous, while facilitating developer, also produce many drawbacks.
For example, illegal user can easily get Root authority (super keepe system permission) very much, or even
In the case that user absolutely not perceives, silence obtains the Root authority of user.Such as induction user downloads a game, only
As soon as attack code can be executed flashing by way of a Banner item (banner identification strip).So as to make monitoring users
Then sound, monitoring users dialog context are uploaded onto the server etc. by network and damage the behavior of user benefit.
Therefore, the scheme that a kind of safety call how is developed on fashionable current Android mobile terminal platform is to need
It solves the problems, such as.
Summary of the invention
Technical problem to be solved by the invention is to provide a kind of method and apparatus for realizing safety call, enable to make
Safety call is realized with the mobile terminal of Android system, avoids eavesdropping risk.
The embodiment of the invention provides a kind of methods for realizing secure communication, are applied to mobile terminal, comprising:
After detecting that user is made a phone call using the mode of secure communication, telephone number is saved, Android system service is exited
Environment restarts (SuSE) Linux OS;
After the starting of (SuSE) Linux OS kernel, starting is for conversing in (SuSE) Linux OS initialization init process
Audio codec and open call access, and start modem and drive the modem according to before protect
The telephone number deposited initiates calling;
After detecting the end of calling that the modem is initiated, Android system service environment is reentered.
The embodiment of the invention also provides a kind of devices for realizing secure communication, are applied to mobile terminal, comprising:
Secure communication detection module saves phone after detecting that user is made a phone call using the mode of secure communication
Number exits Android system service environment, restarts (SuSE) Linux OS;
Secure communication execution module, for being initialized in (SuSE) Linux OS after the starting of (SuSE) Linux OS kernel
Starting is used for the audio codec of call and opens call access in init process, and starts modem and drive institute
It states modem and initiates to call according to previously stored telephone number;In the calling knot for detecting that the modem is initiated
Shu Hou reenters Android system service environment.
A kind of method and apparatus for realizing safety call that the embodiment of the present invention proposes, mobile terminal detect that user uses
After the mode of secure communication is made a phone call, telephone number information is saved, desktop running environment is exited, restarting operating systems
Kernel opens call access in the inner nuclear layer driving audio codec of operating system after the kernel starting of operating system,
The inner nuclear layer of operating system reads the telephone number information and modem is driven to initiate calling;Detecting the modulation
After the end of calling that demodulator is initiated, desktop running environment is opened.The present invention enables to the mobile terminal using Android system
It realizes safety call, avoids eavesdropping risk.
Detailed description of the invention
The hardware structural diagram of Fig. 1 optional mobile terminal of each embodiment one to realize the present invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is a kind of method flow diagram for realizing safety call of the embodiment of the present invention;
Fig. 4 is a kind of schematic device for realizing safety call of the embodiment of the present invention;
Fig. 5 is the method flow diagram that safety call is realized in example 1 of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific 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.
The mobile terminal of each embodiment of the present invention is realized in description with reference to the drawings.In subsequent description, use
For indicate element such as " module ", " component " or " unit " suffix only for being conducive to explanation of the invention, itself
There is no specific meanings.Therefore, " module " can be used mixedly with " component ".
Mobile terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as moving
Phone, smart phone, laptop, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet computer), PMP
The mobile terminal of (portable media player), navigation device etc. and such as number 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 in addition to being used in particular for moving
Except the element of purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Fig. 1 to realize the present invention the optional mobile terminal of each embodiment one hardware configuration signal.
Mobile terminal 100 may include wireless communication unit 110, A/V (audio/video) input unit 120, user's input
Unit 130, sensing unit 140, output unit 150, memory 160, interface unit 170, controller 180 and power supply unit 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 fewer 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 components, allows mobile terminal 100 and wireless communication system
Or the radio communication between network.For example, wireless communication unit may include broadcasting reception module 111, mobile communication module
112, at least one of wireless Internet module 113, short range communication module 114 and location information module 115.
Broadcasting reception module 111 receives broadcast singal and/or broadcast from external broadcast management server via broadcast channel
Relevant information.Broadcast channel may include satellite channel and/or terrestrial channel.Broadcast management server, which can be, to 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 may include TV broadcast singal, 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 receives.Broadcast singal can exist in a variety of manners, for example, it can be with the electronics of digital multimedia broadcasting (DMB)
Program guide (EPG), digital video broadcast-handheld (DVB-H) electronic service guidebooks (ESG) etc. form and exist.Broadcast
Receiving module 111 can receive signal broadcast by using various types of broadcast systems.Particularly, broadcasting reception module 111
It can be wide by using such as multimedia broadcasting-ground (DMB-T), digital multimedia broadcasting-satellite (DMB-S), digital video
It broadcasts-holds (DVB-H), the Radio Data System of forward link media (MediaFLO@), received terrestrial digital broadcasting integrated service
(ISDB-T) etc. 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 the received broadcast singal of broadcasting reception module 111 and/
Or broadcast related information can store 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 at least one of server and/or receive from it radio signal.Such radio signal may include that voice is logical
Talk about signal, video calling signal or according to text and/or Multimedia Message transmission and/or received various types of data.
The Wi-Fi (Wireless Internet Access) of the support mobile terminal of wireless Internet module 113.The module can be internally or externally
It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved in the module may include WLAN (Wireless LAN) (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 short range communication.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 location information of mobile terminal.Location information module
Typical case be GPS (global positioning system).According to current technology, GPS module 115, which calculates, comes from three or more satellites
Range information and correct time information and the Information application triangulation for calculating, thus according to longitude, latitude
Highly accurately calculate three-dimensional current location information.Currently, it is defended for the method for calculating position and temporal information using three
Star and the error that calculated position and temporal information are corrected by using an other satellite.In addition, GPS module 115
It can be by Continuous plus current location information in real time come calculating speed information.
A/V input unit 120 is for receiving audio or video signal.A/V input unit 120 may include 121 He of camera
Microphone 1220, camera 121 is to the static map obtained in video acquisition mode or image capture mode by image capture apparatus
The image data of piece or video is handled.Treated, and picture frame may be displayed on display unit 151.At camera 121
Picture frame after reason can store in memory 160 (or other storage mediums) or carry out via wireless communication unit 110
It sends, two or more cameras 1210 can be provided according to the construction of mobile terminal.Microphone 122 can be in telephone relation mould
Sound (audio data) is received via microphone in formula, logging mode, speech recognition mode etc. operational mode, and can be incited somebody to action
Such acoustic processing is audio data.Audio that treated (voice) data can be converted in the case where telephone calling model
For the format output that can be sent to mobile communication base station via mobile communication module 112.Various types can be implemented in microphone 122
Noise eliminate (or inhibit) algorithm with eliminate noise that (or inhibition) generates during sending and receiving audio signal or
Person's interference.
The order that user input unit 130 can be inputted according to user generates key input data to control each of mobile terminal
Kind operation.User input unit 130 allows user to input various types of information, and may include keyboard, metal dome, touch
Plate (for example, the sensitive component of detection due to the variation of resistance, pressure, capacitor etc. caused by being contacted), idler wheel, rocking bar etc.
Deng.Particularly, when touch tablet is superimposed upon in the form of layer on display unit 151, touch screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 100, (for example, mobile terminal 100 opens or closes shape
State), the position of mobile terminal 100, user is for the presence or absence of contact (that is, touch input) of mobile terminal 100, mobile terminal
100 orientation, the acceleration or deceleration movement of mobile terminal 100 and direction etc., and generate for controlling mobile terminal 100
The order of operation or signal.For example, sensing unit 140 can sense when mobile terminal 100 is embodied as sliding-type mobile phone
The sliding-type phone is to open or close.In addition, sensing unit 140 be able to detect power supply unit 190 whether provide electric power or
Whether person's interface unit 170 couples with external device (ED).Sensing unit 140 may include that proximity sensor 1410 will combine below
Touch screen is described this.
Interface unit 170 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example,
External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing
Line data port, 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 storage and use each of mobile terminal 100 for verifying user
It plants information and may include subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM)
Etc..In addition, the device (hereinafter referred to as " identification device ") with identification module can take the form of smart card, therefore, know
Other device can be connect via port or other attachment devices with mobile terminal 100.Interface unit 170, which can be used for receiving, to be come from
The input (for example, data information, electric power etc.) of external device (ED) and the input received is transferred in mobile terminal 100
One or more elements can be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 100 is connect with external base, interface unit 170 may be used as allowing will be electric by it
Power, which is provided from pedestal to the path or may be used as of mobile terminal 100, allows the various command signals inputted from pedestal to pass through it
It is transferred to the path of mobile terminal.The various command signals or electric power inputted from pedestal, which may be used as mobile terminal for identification, is
The no signal being accurately fitted on pedestal.Output unit 150 is configured to provide with vision, audio and/or tactile manner defeated
Signal (for example, audio signal, vision signal, alarm signal, vibration signal etc.) out.Output unit 150 may include display
Unit 151, audio output module 152, alarm unit 153 etc..
Display unit 151 may be displayed on the information handled in mobile terminal 100.For example, when mobile terminal 100 is in electricity
When talking about call mode, display unit 151 can show and converse or other communicate (for example, text messaging, multimedia file
Downloading etc.) relevant user interface (UI) or graphic user interface (GUI).When mobile terminal 100 is in video calling mode
Or when image capture mode, display unit 151 can show captured image and/or received image, show video or figure
Picture and the UI or GUI of correlation function etc..
Meanwhile when display unit 151 and touch tablet 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 may 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 watch from outside, 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 100 may include two or more display units (or other display devices), for example, moving
Dynamic terminal may include outernal display unit (not shown) and inner display unit (not shown).Touch screen can be used for detecting touch
Input pressure and touch input position and touch input area.
Audio output module 152 can mobile terminal be in call signal reception pattern, call mode, logging mode,
It is when under the isotypes such as speech recognition mode, broadcast reception mode, wireless communication unit 110 is received or in memory 160
The audio data transducing audio signal of middle storage and to export be sound.Moreover, audio output module 152 can provide and movement
The relevant audio output of specific function (for example, call signal receives sound, message sink sound etc.) that terminal 100 executes.
Audio output module 152 may include loudspeaker, buzzer etc..
Alarm unit 153 can provide output notifying event to mobile terminal 100.Typical event can be with
Including calling reception, message sink, key signals input, touch input etc..Other than audio or video output, alarm unit
153 can provide output in different ways 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, vibration) to notify to user.By providing such tactile output, even if
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 audio output module 152.
Memory 160 can store the software program etc. of the processing and control operation that are executed by controller 180, Huo Zheke
Temporarily to store oneself data (for example, telephone directory, message, still image, video etc.) through exporting or will export.And
And memory 160 can store about the vibrations of various modes and audio signal exported when touching and being applied to touch screen
Data.
Memory 160 may include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, more
Media card, card-type memory (for example, SD or DX memory etc.), random access storage device (RAM), static random-access storage
Device (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read only memory
(PROM), magnetic storage, disk, CD etc..Moreover, mobile terminal 100 can execute memory with by network connection
The network storage device of 160 store function cooperates.
The overall operation of the usually control mobile terminal of controller 180.For example, controller 180 executes and voice communication, data
Communication, video calling etc. relevant control and processing.In addition, controller 180 may include for reproducing (or playback) more matchmakers
The multi-media module 1810 of volume data, multi-media module 1810 can construct in controller 180, or can be structured as and control
Device 180 processed separates.Controller 180 can be with execution pattern identifying processing, by the handwriting input executed on the touchscreen or figure
Piece draws input and is identified as character or image.
Power supply unit 190 receives external power or internal power under the control of controller 180 and provides operation each member
Electric power appropriate needed for part and component.
Various embodiments described herein can be to use the calculating of such as computer software, hardware or any combination thereof
Machine readable medium is implemented.Hardware is implemented, 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), controller, microcontroller, microprocessor, is designed to execute function described herein processor
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 with allow to execute the individual of at least one functions or operations
Software module is implemented.Software code can by the software application (or program) write with any programming language appropriate Lai
Implement, software code can store in memory 160 and be executed by controller 180.
So far, oneself is through describing mobile terminal according to its function.In the following, 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., which is used as, to be shown
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 100 as shown in Figure 1 may be constructed such that using via frame or grouping send data it is all if any
Line and wireless communication system and satellite-based communication system operate.
Referring now to Fig. 2 description communication system that wherein mobile terminal according to the present invention can operate.
Different air interface and/or physical layer can be used in such communication system.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) (particularly, 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 introduction is equally applicable to other types of system.
With reference to Fig. 2, cdma wireless communication system may include multiple mobile terminals 100, 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 form interface with the BSC275 that can be couple to base station 270 via back haul link.
Back haul link can be constructed according to any in several known interfaces, and the interface includes such as E1/T1, ATM, IP,
PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that system may include multiple BSC2750 as shown in Figure 2.
Each BS270 can service one or more subregions (or region), by multidirectional antenna or the day of direction specific direction
Each subregion of line covering is radially far from BS270.Alternatively, each subregion can be by two or more for diversity reception
Antenna covering.Each BS270, which may be constructed such that, supports multiple frequency distribution, and the distribution of each frequency 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 indicating single
BSC275 and at least one BS270.Base station can also be referred to as " cellular station ".Alternatively, each subregion of specific BS270 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 100 to receive the broadcast sent by BT295
Signal.In fig. 2 it is shown that several global positioning system (GPS) satellites 300.The help of satellite 300 positions multiple mobile terminals
At least one of 100.
In Fig. 2, multiple satellites 300 are depicted, it is understood that, it is useful to can use any number of satellite acquisition
Location information.GPS module 115 as shown in Figure 1 is generally configured to cooperate with satellite 300 to obtain desired positioning and believe
Breath.It substitutes GPS tracking technique or except GPS tracking technique, the other of the position that can track mobile terminal can be used
Technology.In addition, at least one 300 property of can choose of GPS satellite or extraly processing satellite dmb transmission.
As a typical operation of wireless communication system, BS270 receives the reverse link from various mobile terminals 100
Signal.Mobile terminal 100 usually participates in call, information receiving and transmitting and other types of communication.Certain base station 270 is received each anti-
It is handled in specific BS270 to link signal.The data of acquisition are forwarded to relevant BSC275.BSC provides call
The mobile management function of resource allocation and the coordination including the soft switching process between BS270.The number that BSC275 will also be received
According to MSC280 is routed to, the additional route service for forming interface with PSTN290 is provided.Similarly, PSTN290 with
MSC280 forms interface, and MSC and BSC275 form interface, and BSC275 controls BS270 correspondingly with by forward link signals
It is sent to mobile terminal 100.
Based on above-mentioned mobile terminal hardware configuration and communication system, technical solution of the present invention is proposed.
The technical solution of this paper, after user indicates safety call under Android dialing interface, system is directly restarted,
Before the initialization operation of Android platform, pass through ALSA (Advanced in Kernel (kernel) layer of (SuSE) Linux OS
Linux Sound Architecture, advanced Linux sound framework) instruction realizes to the operation of sound card, passes through AT
(Attention) operation to modem (Modem) is realized in instruction, is finally completed entire safety call process.This technology
The advantages of scheme, is only to realize the most basic function of sound card encoding and decoding access and modem call, because logical in safety
Android platform is also inactive during words, lacks the back-up environments such as file system, so backstage eavesdropping, data upload etc.
Malicious process does not have condition operation, therefore improves the safety of call.
As shown in figure 3, the embodiment of the present invention proposes a kind of method for realizing secure communication, it is applied to mobile terminal, comprising:
S310 after detecting that user is made a phone call using the mode of secure communication, saves telephone number, exits Android system
Service environment restarts (SuSE) Linux OS;
S320 starts in (SuSE) Linux OS initialization init process and uses after the starting of (SuSE) Linux OS kernel
In call audio codec and open call access, and start modem and drive the modem according to
Previously stored telephone number initiates calling;
S330 reenters Android system service environment after detecting the end of calling that the modem is initiated;
The method can also include following features:
It is optionally, described to detect that user is made a phone call using the mode of secure communication, comprising:
After the starting of Android system service environment, detect that user has selected the choosing of secure communication on the interface made a phone call
?;
Optionally, starting is used for the audio codec of call and opens in (SuSE) Linux OS initialization init process
Access is talked about in unblank, comprising:
ALSA (Advanced Linux Sound is used in (SuSE) Linux OS initialization init process
Architecture, advanced Linux sound framework) sendaisle and reception of the instruction unlatching for the audio codec of call
The gain of the sendaisle and receiving channel is arranged in channel;
Wherein, the ALSA instruction includes: tinymix instruction;
Optionally, starting is used for the audio codec of call and opens in (SuSE) Linux OS initialization init process
Before access is talked about in unblank, the method also includes:
The audio codec of call is registered and is configured in (SuSE) Linux OS initialization init process, comprising:
An audio codec example for call is created using ALSA tool, configures the chip-count of the audio codec
According to creating the functional component of the audio codec, registered to the audio codec;
Optionally, the starting modem and the modem is driven to be sent out according to previously stored telephone number
Play calling, comprising:
(SuSE) Linux OS initialization init process in using comprising the telephone number modem instruction with
Modem is communicated, and is indicated that the modem transfers to the telephone number, is initiated calling.
As shown in figure 4, the embodiment of the present invention proposes a kind of device for realizing secure communication, it is applied to mobile terminal, comprising:
Secure communication detection module 401 saves electricity after detecting that user is made a phone call using the mode of secure communication
Number is talked about, Android system service environment is exited, restarts (SuSE) Linux OS;
Secure communication execution module 402 is used for after the starting of (SuSE) Linux OS kernel, initial in (SuSE) Linux OS
Change starting in init process to be used for the audio codec of call and open call access, and starts modem and drive
The modem initiates to call according to previously stored telephone number;In the calling for detecting that the modem is initiated
After, reenter Android system service environment.
Optionally, secure communication detection module 401, for detecting that user is made a phone call using the mode of secure communication,
Include:
After the starting of Android system service environment, detect that user has selected the choosing of secure communication on the interface made a phone call
?;
Optionally, secure communication execution module 402 is used for starting in (SuSE) Linux OS initialization init process
In call audio codec and open call access, comprising:
It is opened and is used for using advanced Linux sound framework ALSA instruction in (SuSE) Linux OS initialization init process
The sendaisle and receiving channel of the audio codec of call, are arranged the gain of the sendaisle and receiving channel.
Wherein, the ALSA instruction includes: tinymix instruction;
Optionally, secure communication execution module 402 is used for starting in (SuSE) Linux OS initialization init process
In call audio codec and open call access before, also (SuSE) Linux OS initialization init process in register
And it is configured to the audio codec of call, comprising: create one for leading to using advanced Linux sound framework ALSA tool
The audio codec example of words, configures the chip data of the audio codec, creates the function of the audio codec
Energy component, registers the audio codec.
Optionally, secure communication execution module 402, for start modem and drive the modem according to
Previously stored telephone number initiates calling, comprising:
(SuSE) Linux OS initialization init process in using comprising the telephone number modem instruction with
Modem is communicated, and is indicated that the modem transfers to the telephone number, is initiated calling.
Example 1
As shown in figure 5, example 1 of the present invention provides a kind of method of safety call, comprising the following steps:
Step S501, user indicate to make a phone call by safety call mode under Android system service environment;
Wherein, on the interface made a phone call under Android system service environment, provide the option of safety call mode for
Family selection;
Step S502 saves telephone number, exits Android system service environment, restart (SuSE) Linux OS;
Step S503 starts (SuSE) Linux OS kernel;
Step S504 configures sound card (audio codec) using ALSA tool;
Wherein, custom code is run in the initialization init process of (SuSE) Linux OS, the custom code is used
In starting audio codec and call access is opened, and starts modem and drives the modem according to it
The telephone number of preceding preservation initiates calling;
ALSA (Advanced Linux Sound Architecture, advanced Linux sound framework) is operated in Linux
Audio and MIDI are provided in system, and (Musical Instrument Digital Interface, Musical Instrument Digital connect
Mouthful) support.In 2.6 serial kernels, ALSA has become the sound subsystem of default, for replacing in 2.4 serial kernels
OSS (Open Sound System, open sound system).
After 2.6 kernel of Linux, ALSA has become kernel standard configuration, therefore, for using 2.6 kernel of Linux
Android system, it is convenient to omit sound card adaptation procedure directly operates sound card by ALSA, opens and sends, receives required for call
Channel.
Specifically, sound card is configured using ALSA tool, may comprise steps of:
1) a sound card example snd_card is created.
struct snd_card*card;
int err;
....
Err=snd_card_create (index, id, THIS_MODULE, 0, &card);
The meaning of partial parameters in the example of the snd_card is shown in such as the following table 1.
Table 1
2) sound card chip data is configured
Data are mainly used for storing some resource informations of the sound card, such as interrupt resources, input/output interface resource (IO
Resource), DMA (Direct Memory Access, direct memory access) resource etc..
3) ID and name of setting driving (Driver)
The ID character string of the in store chip of driving (Driver) field of snd_card example, the space user (user)
(alsa-lib) will use the character string in the library ALSA, so it has to be ensured that the uniqueness of the ID.
4) functional component for creating sound card (belongs to logical device, such as PCM (pulse code modulation) component, Mixer is (mixed
Sound device) component etc.)
The various functional components of sound card are created, snd_device_new () next life is eventually called in the creation of each component
It is linked in the devices chained list of snd_card example at a snd_device example, and the snd_device example.
In general, the creation function of some common components has been provided in ALSA driving (alsa-driver), without straight
It connects and calls snd_device_new (), for example, function creation PCM component directly can be created using the component in ALSA driving:
PCM----snd_pcm_new()
5) sound card is registered
For Qualcomm's platform, on the mobile terminal for having used oneself sound card of the Qualcomm such as WCD9335,
BSP (Board Support Package, board suppot package) version has been completed above-mentioned configuration work.Sound card has directly
The condition of work.
Step S505 configures call access using Tinymix instruction;
Using Tinymix instruction unpack transmission (Tx) relevant to call access, the channel (Rx) is received, that is, can guarantee calling
Audio is normal afterwards;
With the citing of Qualcomm's platform mobile terminal, the mode for opening call related pathways is as follows:
Receiving direction:
Tinymix " RX1 MIX1 INP1 " value=" RX1 " (opens channel)
Tinymix " RX1 Digital Volume " value=" 84 " (gain configuration)
Sending direction:
Tinymix " IIR1 INP1 MUX " value=" DEC1 " (opens channel)
Tinymix " ADC1 Volume " value=" 8 " (gain configuration)
So far, required audio conditions of conversing have met.
Step S506 sends call instruction to modem Modem;
QMI (Qualcomm modem interface, the Qualcomm's modem of Qualcomm's platform can be passed through
Interface) mode or MTK (Lian Fake company) platform AT (Attention, Modem commands) instruction directly and Modem
It is communicated, completes call origination process;
Wherein, QMI is a kind of customized data-interface of Qualcomm, operating system application and bottom for terminal device
The data communication of layer module.
For being communicated using the QMI mode of Qualcomm's platform with Modem, when calling, will use the interface function of QCRIL
Information, example are conveyed to the side Modem by RPC (Remote Procedure Call Protocol, remote procedure call protocol)
As AMSS [Token ID 53, srv type 6, called number 10086, CLIR 0, TTY 0] message can be by interface letter
Number is converted into the information that Modem can be identified.
AT using MTK platform is instructed and is communicated with Modem, realizes that calling is then more simple, we directly adopt AT
The mode of instruction is called.
Wherein, the basic format of AT order are as follows: AT+ command character and related setting parameter;
Such as: ATDT0,10086
This order indicates to dial outside line 10086 using voice-frequency dialing mode.AT is leading character, and D is command character, table
Show that voice-frequency dialing is used in dialing, the expression of this parameter of T." 0 " is first dialled, delay disposal character late is indicated with comma thereafter, claims
For dialing amendment symbol.
Step S507, judges whether calling terminates, and is to then follow the steps S508, no to then follow the steps S507;
Step S508 starts Android system service environment.
It is mobile to solve traditional Android for a kind of method and apparatus for realizing safety call that the embodiment of the present invention proposes
Terminal has the risk for the privacy leakages such as recorded, monitored in communication process.Linux Kernel rank when desktop is inactive
Section is operated, the function that Lai Shixian makes a phone call by the instruction set of ALSA advanced audio framework, the configuration of tinymix access and Modem
Can, in the Linux Kernel stage, without file system, without data service channel, avoid recording that backstage may run,
Monitor etc. malicious process carry out storage and on the possibility sent, provide the guarantee of personal secrets for call.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes
Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (8)
1. a kind of method for realizing secure communication is applied to mobile terminal, comprising:
After detecting that user is made a phone call using the mode of secure communication, telephone number is saved, Android system service environment is exited,
Restart (SuSE) Linux OS;
After the starting of (SuSE) Linux OS kernel, sound of the starting for call in (SuSE) Linux OS initialization init process
Frequency codec simultaneously opens call access, and starts modem and drive the modem according to previously stored
Telephone number initiates calling;
After detecting the end of calling that the modem is initiated, Android system service environment is reentered;
The starting in (SuSE) Linux OS initialization init process for call audio codec and to open call logical
Before road, the method also includes:
The audio codec of call is registered and is configured in (SuSE) Linux OS initialization init process, comprising: is used
Advanced Linux sound framework ALSA tool creates an audio codec example for call, configures the audio and compiles solution
The chip data of code device, creates the functional component of the audio codec, registers to the audio codec.
2. according to the method described in claim 1, it is characterized by:
Starting is used for the audio codec of call and opens call access in (SuSE) Linux OS initialization init process,
Include:
It is opened using advanced Linux sound framework ALSA instruction for conversing in (SuSE) Linux OS initialization init process
Audio codec sendaisle and receiving channel, the gain of the sendaisle and receiving channel is set.
3. according to the method described in claim 1, it is characterized by:
The starting modem simultaneously drives the modem to initiate to call according to previously stored telephone number, packet
It includes:
Modem instruction and modulation comprising the telephone number are used in (SuSE) Linux OS initialization init process
Demodulator is communicated, and is indicated that the modem transfers to the telephone number, is initiated calling.
4. according to the method described in claim 1, it is characterized by:
It is described to detect that user is made a phone call using the mode of secure communication, comprising:
After the starting of Android system service environment, detect that user has selected the option of secure communication on the interface made a phone call.
5. a kind of device for realizing secure communication is applied to mobile terminal, comprising:
Secure communication detection module saves telephone number after detecting that user is made a phone call using the mode of secure communication,
Android system service environment is exited, (SuSE) Linux OS is restarted;
Secure communication execution module, for initializing init in (SuSE) Linux OS after the starting of (SuSE) Linux OS kernel
Starting is used for the audio codec of call and opens call access in process, and starts modem and drive the tune
Modulator-demodulator initiates to call according to previously stored telephone number;In the end of calling for detecting that the modem is initiated
Afterwards, Android system service environment is reentered;
The secure communication execution module is also used to initialize what starting in init process was used to converse in (SuSE) Linux OS
Audio codec and open call access before, also (SuSE) Linux OS initialization init process in register and configuration use
In the audio codec of call, comprising: create an audio for call using advanced Linux sound framework ALSA tool
Codec example configures the chip data of the audio codec, creates the functional component of the audio codec, right
The audio codec is registered.
6. device according to claim 5, it is characterised in that:
Secure communication execution module, for audio volume of the starting for call in (SuSE) Linux OS initialization init process
Decoder simultaneously opens call access, comprising:
It is opened using advanced Linux sound framework ALSA instruction for conversing in (SuSE) Linux OS initialization init process
Audio codec sendaisle and receiving channel, the gain of the sendaisle and receiving channel is set.
7. device according to claim 5, it is characterised in that:
Secure communication execution module, for starting modem and driving the modem according to previously stored phone
Number initiates calling, comprising:
Modem instruction and modulation comprising the telephone number are used in (SuSE) Linux OS initialization init process
Demodulator is communicated, and is indicated that the modem transfers to the telephone number, is initiated calling.
8. device according to claim 5, it is characterised in that:
Secure communication detection module, for detecting that user is made a phone call using the mode of secure communication, comprising:
After the starting of Android system service environment, detect that user has selected the option of secure communication on the interface made a phone call.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610821195.5A CN106657568B (en) | 2016-09-13 | 2016-09-13 | A kind of method and apparatus for realizing safety call |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610821195.5A CN106657568B (en) | 2016-09-13 | 2016-09-13 | A kind of method and apparatus for realizing safety call |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106657568A CN106657568A (en) | 2017-05-10 |
CN106657568B true CN106657568B (en) | 2019-08-30 |
Family
ID=58851841
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610821195.5A Active CN106657568B (en) | 2016-09-13 | 2016-09-13 | A kind of method and apparatus for realizing safety call |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106657568B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202043183U (en) * | 2010-12-22 | 2011-11-16 | 北京格林思通科技有限公司 | Short-distance wireless relay system |
CN102457618A (en) * | 2011-12-22 | 2012-05-16 | 苏州群凯信息系统有限公司 | Novel mobile communication terminal |
CN105897687A (en) * | 2015-12-30 | 2016-08-24 | 乐视致新电子科技(天津)有限公司 | Data transmission method and device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8254903B2 (en) * | 2009-01-30 | 2012-08-28 | Cassis International Pte. Ltd. | System and method for remotely operating a wireless device using a server and client architecture |
-
2016
- 2016-09-13 CN CN201610821195.5A patent/CN106657568B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202043183U (en) * | 2010-12-22 | 2011-11-16 | 北京格林思通科技有限公司 | Short-distance wireless relay system |
CN102457618A (en) * | 2011-12-22 | 2012-05-16 | 苏州群凯信息系统有限公司 | Novel mobile communication terminal |
CN105897687A (en) * | 2015-12-30 | 2016-08-24 | 乐视致新电子科技(天津)有限公司 | Data transmission method and device |
Also Published As
Publication number | Publication date |
---|---|
CN106657568A (en) | 2017-05-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105101366B (en) | Method for controlling mobile terminal and mobile terminal | |
CN105718027B (en) | The management method and mobile terminal of background application | |
CN105653729B (en) | A kind of device and method of recording file index | |
CN106535306B (en) | A kind of dormancy control method and terminal | |
CN105100476B (en) | A kind of mobile terminal unlocking device and method | |
CN104967573B (en) | A kind of monitoring method and terminal of data traffic | |
CN105721002B (en) | A kind of terminal filtering method, system, device and terminal can be filtered | |
CN105138400B (en) | Application program self-starting management method and device | |
CN104821990B (en) | Intelligent terminal realizes the method and intelligent terminal of shutdown alarm clock | |
CN105100673B (en) | Desktop sharing method and device based on VoLTE | |
CN107092505A (en) | The erecting device and method of a kind of application program, storage medium, terminal | |
CN105120054B (en) | Information processing method and mobile terminal | |
CN106095464B (en) | A kind of method and device of the seamless operation of application program | |
CN106126065A (en) | A kind of mobile terminal and double screen method for information display thereof | |
CN105049582B (en) | A kind of save set of calling record, method and display methods | |
CN104735254B (en) | terminal screen locking method and system | |
CN104954582B (en) | A kind of method and device for initiating speed dialling according to pressing touch-control | |
CN106412328B (en) | A kind of method and apparatus obtaining field feedback | |
CN106507454B (en) | A kind of wake-up control method and terminal | |
CN105049916B (en) | A kind of video recording method and device | |
CN105187663B (en) | Automatically the method and terminal conversed | |
CN105302457B (en) | Terminal control method and device | |
CN105100408B (en) | A kind of method and apparatus controlling mobile terminal | |
CN104935731B (en) | A kind of method and apparatus for protecting battery | |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |