CN104052855B - A kind of method and electronics that button sound is set - Google Patents
A kind of method and electronics that button sound is set Download PDFInfo
- Publication number
- CN104052855B CN104052855B CN201310076409.7A CN201310076409A CN104052855B CN 104052855 B CN104052855 B CN 104052855B CN 201310076409 A CN201310076409 A CN 201310076409A CN 104052855 B CN104052855 B CN 104052855B
- Authority
- CN
- China
- Prior art keywords
- electronic device
- key
- keyboard
- character string
- tone
- 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
- 238000000034 method Methods 0.000 title claims abstract description 71
- 238000004891 communication Methods 0.000 claims abstract description 83
- 230000008569 process Effects 0.000 claims abstract description 37
- 238000011084 recovery Methods 0.000 claims description 3
- 230000004044 response Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 2
- 238000005336 cracking Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
Landscapes
- Input From Keyboards Or The Like (AREA)
Abstract
The present invention discloses a kind of method and the electronics that arrange button sound, belongs to computer realm. Described method comprises: obtain digit strings; Described digit strings is used for setting up communication based on the foundation of described communication module with the 2nd electronics with described digit strings and is connected; Judge whether described digit strings belongs to preset number character string group, obtain judged result; Described preset number character string group is protected digit strings group; When described judged result represents that described digit strings belongs to preset number character string group, the button sound controlling to maintain the keyboard of the first electronics described in the process that is connected of communication at described first electronics and described 2nd electronics is closed or unifies to be converted to the first button sound by the different key sound of the different key of described keyboard. The present invention prevents lawless person from eavesdropping the button sound of electronics, it is to increase the security of electronics.
Description
Technical Field
The present invention relates to the field of computers, and in particular, to a method for setting a key tone and an electronic device.
Background
Recently, in China, many fraud cases of 'cracking passwords by listening to phone key tones' appear, when a user inputs a bank card account and a password through a keyboard of electronic equipment such as a mobile phone or a phone, a lawbreaker secretly records the key tone of the keyboard pressed by the user, the recorded key tone is analyzed by using audio software, the bank card account and the password of the user can be cracked, and the lawbreaker conducts fraud through the bank card account and the password of the user.
The existing electronic devices such as mobile phones and telephones do not have a security mechanism for preventing the novel fraud, so how to prevent lawless persons from eavesdropping the key tone and improve the security of the electronic devices is a problem which needs to be solved urgently at present.
Disclosure of Invention
In order to prevent lawless persons from eavesdropping the key tone and improve the safety of the electronic equipment, the invention provides a method for setting the key tone and the electronic equipment. The technical scheme is as follows:
a method for setting key tones is applied to first electronic equipment, wherein the first electronic equipment comprises a communication module, and the communication module is used for communication connection; the method comprises the following steps:
obtaining a numeric character string; the numeric character string is used for establishing communication connection with a second electronic device with the numeric character string based on the communication module;
judging whether the digital character string belongs to a preset digital character string group or not, and obtaining a judgment result; the preset digital character string group is a protected digital character string group;
and when the judgment result shows that the digital character string belongs to a preset digital character string group, controlling the key tone of the keyboard of the first electronic equipment to be closed or uniformly converting different key tones of different keys of the keyboard into a first key tone in the process of maintaining communication connection between the first electronic equipment and the second electronic equipment.
The controlling of the key tone closing of the keyboard of the first electronic device in the process of maintaining the communication connection between the first electronic device and the second electronic device includes:
and when the keyboard is called in the process of maintaining communication connection between the first electronic equipment and the second electronic equipment, closing the key tone of the keyboard of the first electronic equipment.
With the different key tones of the different keys of keyboard convert first key tone in unison, include:
setting different key tones corresponding to different keys of a keyboard of the first electronic device as a first key tone; or,
acquiring a first key tone corresponding to each key included in a keyboard of the first electronic device, and setting the key tone corresponding to each key into respective corresponding first key tones; or,
when a user inputs through a keyboard of the first electronic device, setting a key tone corresponding to each key included in the first electronic device as a first key tone; or,
when a user inputs through keys included in a keyboard of the first electronic device, first key tones corresponding to the keys are acquired, and the key tones corresponding to the keys are set to be the acquired first key tones.
The controlling of the key tone closing of the keyboard of the first electronic device in the process of maintaining the communication connection between the first electronic device and the second electronic device includes:
in the process of maintaining communication connection between the first electronic device and the second electronic device, setting the current contextual model of the first electronic device to be a mute model so as to close the key tone of the keyboard of the first electronic device.
Before the key tone of the keyboard of the first electronic device is turned off in the process that the first electronic device and the second electronic device maintain the communication connection, the control further includes:
and acquiring and recording the current contextual model of the first electronic equipment.
The method further comprises the following steps:
and if the communication connection maintained between the first electronic equipment and the second electronic equipment is hung up, restoring the key tone of the keyboard of the first electronic equipment.
The restoring the key tone of the keyboard of the first electronic device includes:
starting key tones of a keyboard of the first electronic equipment; or,
setting the contextual model of the first electronic device to be a recorded contextual model so as to recover the key tone of the keyboard of the first electronic device; or,
and obtaining the key tone corresponding to each key included in the keyboard of the first electronic device, and setting the key tone of each key included in the keyboard of the first electronic device as the respective corresponding key tone.
A method for setting touch tones, the method being applied to an electronic device, the method comprising:
obtaining a calling instruction;
responding to the calling instruction, calling and displaying a virtual keyboard;
determining an operation scene that the electronic equipment calls the virtual keyboard currently,
judging whether the operation scene meets a preset condition or not, and generating a judgment result;
and when the judgment result shows that the operation scene meets the preset condition, controlling the key tone of the keyboard of the electronic equipment to be closed in the called response process of the virtual keyboard or uniformly converting different key tones of different keys of the keyboard into a first key tone.
A first electronic device comprises a communication module, a first communication module and a second communication module, wherein the communication module is used for communication connection; the first electronic device includes:
a first obtaining module, configured to obtain a numeric character string; the numeric character string is used for establishing communication connection with a second electronic device with the numeric character string based on the communication module;
the second obtaining module is used for judging whether the digital character string belongs to a preset digital character string group or not and obtaining a judgment result; the preset digital character string group is a protected digital character string group;
and the control module is used for controlling the key tone of the keyboard of the first electronic device to be closed or converting different key tones of different keys of the keyboard into first key tones in a unified manner in the process of maintaining communication connection between the first electronic device and the second electronic device when the judgment result shows that the digital character string belongs to a preset digital character string group.
The control module is used for closing the key tone of the keyboard of the first electronic device when the keyboard is called in the process of maintaining the communication connection between the first electronic device and the second electronic device.
The control module includes:
the first setting unit is used for setting different key tones corresponding to different keys of a keyboard of the first electronic device into a first key tone; or,
the second setting unit is used for acquiring a first key tone corresponding to each key included in a keyboard of the first electronic device, and setting the key tone corresponding to each key into the corresponding first key tone; or,
the third setting unit is used for setting the key tone corresponding to each key included in the first electronic equipment into a first key tone when a user inputs through the keyboard of the first electronic equipment; or,
and the fourth setting unit is used for acquiring a first key tone corresponding to the key when the user inputs the key through the keyboard of the first electronic device, and setting the key tone corresponding to the key as the acquired first key tone.
The control module is configured to set a current contextual model of the first electronic device to a mute model in a process of maintaining communication connection between the first electronic device and the second electronic device, so as to close a key tone of a keyboard of the first electronic device.
The first electronic device further comprises:
and the third obtaining module is used for obtaining and recording the current contextual model of the first electronic equipment.
The first electronic device further comprises:
and the restoring module is used for restoring the key tone of the keyboard of the first electronic device if the communication connection maintained between the first electronic device and the second electronic device is hung up.
The recovery module includes:
the starting unit is used for starting the key tone of the keyboard of the first electronic equipment; or,
a fifth setting unit, configured to set a contextual model of the first electronic device to a recorded contextual model, so as to recover a key tone of a keyboard of the first electronic device; or,
a sixth setting unit, configured to obtain a key tone corresponding to each key included in the keyboard of the first electronic device, and set the key tone of each key included in the keyboard of the first electronic device to a respective corresponding key tone.
An electronic device, the electronic device comprising:
the obtaining module is used for obtaining a calling instruction;
the response module is used for responding to the calling instruction and calling and displaying a virtual keyboard;
a determining module, configured to determine an operation scenario in which the electronic device currently invokes the virtual keyboard,
the generating module is used for judging whether the operation scene meets a preset condition or not and generating a judgment result;
and the control module is used for controlling the key tone of the keyboard of the electronic equipment to be closed or uniformly converting different key tones of different keys of the keyboard into first key tones in the called response process of the virtual keyboard when the judgment result shows that the operation scene meets the preset condition.
In the embodiment of the invention, whether the obtained digital character string belongs to the preset digital character string group is judged, if the digital character string belongs to the preset digital character string group, the key tone of the keyboard of the first electronic device is controlled to be closed or different key tones of different keys of the keyboard are uniformly converted into the first key tone in the process of maintaining the communication connection between the first electronic device and the second electronic device, so that the key tone of the keyboard of the electronic device can be prevented from being intercepted by lawless persons, and the safety of the electronic device is improved.
Drawings
Fig. 1 is a flowchart of a method for setting a key tone according to embodiment 1 of the present invention;
fig. 2 is a flowchart of a method for setting a key tone according to embodiment 2 of the present invention;
fig. 3 is a flowchart of a method for setting a key tone according to embodiment 3 of the present invention;
fig. 4 is a flowchart of a method for setting a key tone according to embodiment 4 of the present invention;
fig. 5 is a schematic structural diagram of a first electronic device according to embodiment 5 of the present invention;
fig. 6 is a schematic structural diagram of an electronic device provided in embodiment 6 of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Example 1
Referring to fig. 1, an embodiment of the present invention provides a method for setting a touch tone, where the method is applied to a first electronic device, where the first electronic device includes a communication module, and the communication module is used for performing communication connection; the method comprises the following steps:
step 101: obtaining a numeric character string; the digital character string is used for establishing communication connection with second electronic equipment with the digital character string based on the communication module;
step 102: judging whether the digital character string belongs to a preset digital character string group or not to obtain a judgment result; presetting a digital character string group as a protected digital character string group;
step 103: and when the judgment result shows that the digital character string belongs to the preset digital character string group, controlling the key tone of the keyboard of the first electronic equipment to be closed or uniformly converting different key tones of different keys of the keyboard into the first key tone in the process of maintaining the communication connection between the first electronic equipment and the second electronic equipment.
In the embodiment of the invention, whether the obtained digital character string belongs to the preset digital character string group is judged, if the digital character string belongs to the preset digital character string group, the key tone of the keyboard of the first electronic device is controlled to be closed or different key tones of different keys of the keyboard are uniformly converted into the first key tone in the process of maintaining the communication connection between the first electronic device and the second electronic device, so that the key tone of the keyboard of the electronic device can be prevented from being intercepted by lawless persons, and the safety of the electronic device is improved.
Example 2
Referring to fig. 2, an embodiment of the present invention provides a method for setting a touch tone, including:
step 201: creating a preset digital character string group, wherein the preset digital character string group is a protected digital character string group;
specifically, one or more numeric strings included in a preset numeric string group input by a user are received.
One or more digital character strings included in the preset digital character string group are digital character strings which are needed by a user to prevent eavesdropping of key tones.
The user can input the preset number character string group needing to be protected to the first electronic equipment through a keyboard of the first electronic equipment. Accordingly, the step may be: and receiving a preset number character string group string needing to be protected, which is input by a user through a keyboard of the first electronic equipment.
Further, the preset numeric character string may be stored in a database.
After the preset numeric character string group input by the user is stored in the database, the user can use the numeric character string to make a call, and in the process of the call of the user, the first electronic device prevents eavesdropping on the key tone of the keyboard included in the first electronic device through the following steps 202 to 205.
Step 202: acquiring a numeric character string;
wherein, the user can input the numeric character string by using a keyboard of the first electronic equipment; accordingly, the step may be: a numeric character string entered by a user via a keypad of the first electronic device is received.
The first electronic device can be internally provided with an address book, the address book comprises one or more digital character strings, and a user can select one digital character string from the address book in the first electronic device; accordingly, the step may be: a numeric character string selected by a user is obtained from an address book of first electronic equipment.
The first electronic device comprises a communication module, the communication module is used for carrying out communication connection, the second electronic device is provided with the digital character string, the first electronic device can be in communication connection with the second electronic device through the communication module, and the first electronic device and the second electronic device can maintain the process of communication connection.
Step 203: judging whether the digital character string belongs to a preset digital character string group or not to obtain a judgment result;
and the obtained judgment result comprises that the numeric character string belongs to a preset numeric character string group or the numeric character string does not belong to the preset numeric character string group.
Step 204: if the judgment result shows that the digital character string belongs to a preset digital character string group, controlling the key tone of the keyboard of the first electronic equipment to be closed in the process of maintaining communication connection between the first electronic equipment and the second electronic equipment;
specifically, when the keyboard is called in the process of maintaining the communication connection between the first electronic device and the second electronic device, the key tone of the keyboard of the first electronic device is turned off.
In the process of maintaining communication connection between the first electronic device and the second electronic device, the user can call the keyboard of the first electronic device, and at the moment, the first electronic device can close the key tone of the keyboard.
In the embodiment of the present invention, when the numeric character string is determined to be the preset numeric character string group, the key tone of the keyboard of the first electronic device may be immediately turned off.
The interface for closing the touch tone can be called from the operating system of the first electronic device, and the touch tone of the keyboard of the first electronic device can be closed through the interface for closing the touch tone.
The operation of closing the key tone of the keyboard of the first electronic device may also be: and setting the current contextual model of the first electronic equipment into a mute mode so as to close the key tone of the keyboard of the first electronic equipment.
Further, before setting the current contextual model of the first electronic device to the mute mode, the method may further include: the current contextual model of the first electronic device can be obtained and recorded.
When the contextual model of the first electronic device is set to the silent mode and the user presses down the keyboard of the first electronic device, the keyboard of the first electronic device does not emit any key tone, so that the key tone of the keyboard of the first electronic device is turned off.
The interface for acquiring the contextual model can be called from the operating system of the first electronic device, the current contextual model of the first electronic device is acquired through the interface for acquiring the contextual model, the interface for setting the contextual model is called from the operating system of the first electronic device, and the current contextual model of the first electronic device is set to the mute mode through the interface for setting the contextual model.
If the judgment result shows that the digital character string does not belong to the preset digital character string group, the first electronic equipment directly maintains the communication connection process with the second electronic equipment according to the digital character string.
Step 205: when the communication connection between the first electronic device and the second electronic device is disconnected, the key tone of the keyboard of the first electronic device is recovered.
Specifically, when the communication connection maintained between the first electronic device and the second electronic device is disconnected, the key tone of the keyboard of the first electronic device is turned on; or setting the scene mode of the first electronic equipment to be the recorded scene mode.
The method comprises the steps of calling an interface for setting a contextual model from an operating system of the first electronic equipment, and setting the current contextual model of the first electronic equipment from a mute mode to a recorded contextual model through the interface for setting the contextual model according to the recorded contextual model.
In the embodiment of the invention, whether the obtained digital character string belongs to the preset digital character string group is judged, if the digital character string belongs to the preset digital character string group, the key tone of the keyboard of the first electronic device is controlled to be closed or different key tones of different keys of the keyboard are uniformly converted into the first key tone in the process of maintaining the communication connection between the first electronic device and the second electronic device, so that the key tone of the keyboard of the electronic device can be prevented from being intercepted by lawless persons, and the safety of the electronic device is improved.
Example 3
Referring to fig. 3, an embodiment of the present invention provides a method for setting a touch tone, including:
step 301: creating a preset digital character string group, wherein the preset digital character string group is a protected digital character string group;
specifically, one or more numeric strings included in a preset numeric string group input by a user are received.
One or more digital character strings included in the preset digital character string group are digital character strings which are needed by a user to prevent eavesdropping of key tones.
The user can input the preset number character string group needing to be protected to the first electronic equipment through a keyboard of the first electronic equipment. Accordingly, the step may be: and receiving a preset number character string group string needing to be protected, which is input by a user through a keyboard of the first electronic equipment.
Further, the preset numeric character string may be stored in a database.
Step 302: receiving a first key tone input by a user, and storing the first key tone input by the user;
the user can input a first key tone to the first electronic device, or can select a key included in the keyboard of the first electronic device, and input a first key tone for the selected key.
Correspondingly, if the user selects the keys included in the keyboard of the first electronic device and inputs a first key tone for the selected keys, the key code of the key selected by the user and the first key tone corresponding to the key input by the user can be obtained, and the key code of the key and the first key tone corresponding to the key are stored in the corresponding relationship between the key code and the first key tone.
The first electronic device may be configured to set a first key tone in advance, or a corresponding first key tone may be set for each key included in the keyboard of the first electronic device, and the key code and the first key tone of each key included in the keyboard of the first electronic device are stored in the correspondence between the key code and the first key tone.
After the steps 301 and 302 are executed, the user can use the digitizer to make a call, and during the call, the first electronic device prevents eavesdropping on the key tone of the keyboard included in the first electronic device through the following steps 303 to 205.
Step 303: acquiring a numeric character string;
wherein, the user can input the numeric character string by using a keyboard of the first electronic equipment; accordingly, the step may be: a numeric character string entered by a user via a keypad of the first electronic device is received.
The first electronic device can be internally provided with an address book, the address book comprises one or more digital character strings, and a user can select one digital character string from the address book in the first electronic device; accordingly, the step may be: a numeric character string selected by a user is obtained from an address book of first electronic equipment.
The first electronic device comprises a communication module, the communication module is used for carrying out communication connection, the second electronic device is provided with the digital character string, the first electronic device can be in communication connection with the second electronic device through the communication module, and the first electronic device and the second electronic device can maintain the process of communication connection.
Step 304: judging whether the digital character string belongs to a preset digital character string group or not to obtain a judgment result;
and the obtained judgment result comprises that the numeric character string belongs to a preset numeric character string group or the numeric character string does not belong to the preset numeric character string group.
Step 305: if the judgment result shows that the digital character string belongs to a preset digital character string group, uniformly converting the key tones of different keys of the keyboard of the first electronic equipment into first key tones;
specifically, if the determination result indicates that the numeric character string belongs to the preset numeric character string group, setting a key tone corresponding to each key included in the keyboard of the first electronic device as a first key tone; or,
acquiring a first key tone corresponding to each key included in a keyboard of first electronic equipment, and setting the key tone corresponding to each key into the corresponding first key tones respectively; or,
when a user inputs through a keyboard of first electronic equipment, setting key tones of the keyboard of the first electronic equipment into a first key tone; or,
when a user inputs through keys included in a keyboard of the first electronic device, a first key tone corresponding to the key is acquired, and the key tone corresponding to the key is set to be the acquired first key tone.
The operation of obtaining the first key tone corresponding to each key included in the keyboard of the first electronic device may be:
the method comprises the steps of obtaining a key code of each key included in a keyboard of the first electronic device, and obtaining a first key tone corresponding to each key included in the first electronic device from a corresponding relation between the stored key code and the first key tone according to the key code of each key included in the keyboard of the first electronic device.
The obtaining of the first key tone corresponding to the key may be:
acquiring a key code corresponding to the key, acquiring a first key tone corresponding to the key from the stored correspondence between the key code and the first key tone according to the key code corresponding to the key, and setting the key tone corresponding to the key as the acquired first key tone.
The key tone of the keyboard of the first electronic device is an initial key tone of the first electronic device when the first electronic device leaves a factory, that is, the key tone of the keyboard of the first electronic device is a key tone set in the first electronic device by a manufacturer of the first electronic device when the manufacturer produces the first electronic device.
Step 306: when the communication connection between the first electronic device and the second electronic device is disconnected, the key tone of the keyboard of the first electronic device is recovered.
Specifically, when the communication connection maintained between the first electronic device and the second electronic device is disconnected, the key tone corresponding to each key included in the keyboard of the first electronic device is obtained, and the key tones of each key included in the keyboard of the first electronic device are respectively set to the respective corresponding key tones.
In the embodiment of the invention, whether the obtained digital character string belongs to the preset digital character string group is judged, and if the digital character string belongs to the preset digital character string group, the key tone of the first electronic device is set as the first key tone, so that lawless persons can be prevented from eavesdropping the key tone of the keyboard of the first electronic device, and the safety of the first electronic device is improved.
Example 4
Referring to fig. 4, an embodiment of the present invention provides a method for setting a touch tone, where the method is applied to an electronic device, and the method includes:
step 401: obtaining a calling instruction;
the user can input a calling instruction to the electronic equipment, wherein the calling instruction is used for calling the virtual keyboard of the electronic equipment.
Step 402: responding to the calling instruction, calling and displaying a virtual keyboard;
and after obtaining the calling instruction, the electronic equipment responds to the calling instruction and calls and displays a virtual keyboard.
Step 403: determining an operation scene of the electronic equipment for calling the virtual keyboard currently;
the operation scenario may include a scenario of inputting a user account, inputting a user password, or performing online payment by a user.
The determining, according to the area where the input cursor is located, an operation scenario in which the electronic device currently calls the virtual keyboard may be: if the input cursor is located in the area for inputting the user account, determining the operation scene as the input user account; if the input cursor is located in the area for inputting the user password, determining the operation scene as the input user password; and if the input cursor is positioned in an input box of the webpage for payment, determining that the running scene is online payment for the user.
Step 404: judging whether the operation scene meets a preset condition or not, and generating a judgment result;
the predetermined condition may be a preset operation scene, that is, whether the operation scene is a preset operation scene is determined.
Step 405: and when the judgment result shows that the operation scene meets the preset condition, controlling the key tone of the keyboard of the electronic equipment to be closed in the called response process of the virtual keyboard or uniformly converting different key tones of different keys of the keyboard into a first key tone.
In the embodiment of the invention, the operation scene of the electronic equipment for calling the virtual keyboard currently is determined, and when the operation scene meets the preset condition, the key tone of the keyboard of the electronic equipment is controlled to be closed or different key tones of different keys of the keyboard are uniformly converted into the first key tone in the response process of the virtual keyboard called this time, so that lawless persons can be prevented from eavesdropping the key tone of the keyboard of the electronic equipment, and the safety of the electronic equipment is improved.
Example 5
Referring to fig. 5, an embodiment of the present invention provides a first electronic device, where the first electronic device includes a communication module, and the communication module is configured to perform communication connection; the first electronic device includes:
a first obtaining module 501, configured to obtain a numeric character string; the numeric character string is used for establishing communication connection with a second electronic device with the numeric character string based on the communication module;
a second obtaining module 502, configured to determine whether the numeric character string belongs to a preset numeric character string group, and obtain a determination result; the preset digital character string group is a protected digital character string group;
a control module 503, configured to control, when the determination result indicates that the numeric character string belongs to a preset numeric character string group, to turn off a key tone of a keyboard of the first electronic device or uniformly convert different key tones of different keys of the keyboard into a first key tone in a process that the first electronic device maintains a communication connection with the second electronic device.
The control module 503 is configured to close a key tone of the keyboard of the first electronic device when the keyboard is called in the process of maintaining the communication connection between the first electronic device and the second electronic device.
Wherein the control module 503 comprises:
the first setting unit is used for setting different key tones corresponding to different keys of a keyboard of the first electronic device into a first key tone; or,
the second setting unit is used for acquiring a first key tone corresponding to each key included in a keyboard of the first electronic device, and setting the key tone corresponding to each key into the corresponding first key tone; or,
the third setting unit is used for setting the key tone corresponding to each key included in the first electronic equipment into a first key tone when a user inputs through the keyboard of the first electronic equipment; or,
and the fourth setting unit is used for acquiring a first key tone corresponding to the key when the user inputs the key through the keyboard of the first electronic device, and setting the key tone corresponding to the key as the acquired first key tone.
The control module 503 is configured to set a current contextual model of the first electronic device to a mute mode in a process of maintaining communication connection between the first electronic device and the second electronic device, so as to turn off a key tone of a keyboard of the first electronic device.
Further, the first electronic device further includes:
and the third obtaining module is used for obtaining and recording the current contextual model of the first electronic equipment.
Further, the first electronic device further includes:
and the restoring module is used for restoring the key tone of the keyboard of the first electronic device if the communication connection maintained between the first electronic device and the second electronic device is hung up.
Wherein the recovery module comprises:
the starting unit is used for starting the key tone of the keyboard of the first electronic equipment; or,
a fifth setting unit, configured to set a contextual model of the first electronic device to a recorded contextual model, so as to recover a key tone of a keyboard of the first electronic device; or,
a sixth setting unit, configured to obtain a key tone corresponding to each key included in the keyboard of the first electronic device, and set the key tone of each key included in the keyboard of the first electronic device to a respective corresponding key tone.
In the embodiment of the invention, whether the obtained digital character string belongs to the preset digital character string group is judged, if the digital character string belongs to the preset digital character string group, the key tone of the keyboard of the first electronic device is controlled to be closed or different key tones of different keys of the keyboard are uniformly converted into the first key tone in the process of maintaining the communication connection between the first electronic device and the second electronic device, so that the key tone of the keyboard of the electronic device can be prevented from being intercepted by lawless persons, and the safety of the electronic device is improved.
Example 6
Referring to fig. 6, an embodiment of the present invention provides an electronic device, including:
an obtaining module 601, configured to obtain a call instruction;
a response module 602, configured to respond to the call instruction, call and display a virtual keyboard;
a determining module 603, configured to determine an operation scenario in which the electronic device currently invokes the virtual keyboard,
a generating module 604, configured to determine whether the operating scene meets a predetermined condition, and generate a determination result;
a control module 605, configured to control, when the determination result indicates that the operation scenario satisfies a predetermined condition, to turn off a key tone of the keyboard of the electronic device in a response process in which the virtual keyboard is called this time, or to uniformly convert different key tones of different keys of the keyboard into a first key tone.
In the embodiment of the invention, the operation scene of the electronic equipment for calling the virtual keyboard currently is determined, and when the operation scene meets the preset condition, the key tone of the keyboard of the electronic equipment is controlled to be closed or different key tones of different keys of the keyboard are uniformly converted into the first key tone in the response process of the virtual keyboard called this time, so that lawless persons can be prevented from eavesdropping the key tone of the keyboard of the electronic equipment, and the safety of the electronic equipment is improved.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
Claims (12)
1. A method for setting key tones is applied to a first electronic device, wherein the first electronic device comprises a communication module, and the communication module is used for communication connection; the method comprises the following steps:
obtaining a numeric character string; the numeric character string is used for establishing communication connection with a second electronic device with the numeric character string based on the communication module;
judging whether the digital character string belongs to a preset digital character string group or not, and obtaining a judgment result; the preset digital character string group is a protected digital character string group;
when the judgment result shows that the digital character string belongs to a preset digital character string group, controlling the key tone of the keyboard of the first electronic device to be closed or uniformly converting different key tones of different keys of the keyboard into a first key tone in the process of maintaining communication connection between the first electronic device and the second electronic device;
and if the communication connection maintained between the first electronic equipment and the second electronic equipment is hung up, restoring the key tone of the keyboard of the first electronic equipment.
2. The method of claim 1, wherein the controlling key tones of a keyboard of the first electronic device to be turned off while the first electronic device is communicatively connected to the second electronic device comprises:
and when the keyboard is called in the process of maintaining communication connection between the first electronic equipment and the second electronic equipment, closing the key tone of the keyboard of the first electronic equipment.
3. The method of claim 1, wherein said collectively converting different key tones of different keys of the keyboard to a first key tone comprises:
setting different key tones corresponding to different keys of a keyboard of the first electronic device as a first key tone; or,
acquiring a first key tone corresponding to each key included in a keyboard of the first electronic device, and setting the key tone corresponding to each key into respective corresponding first key tones; or,
when a user inputs through a keyboard of the first electronic device, setting a key tone corresponding to each key included in the first electronic device as a first key tone; or,
when a user inputs through keys included in a keyboard of the first electronic device, first key tones corresponding to the keys are acquired, and the key tones corresponding to the keys are set to be the acquired first key tones.
4. The method of claim 1, wherein the controlling key tones of a keyboard of the first electronic device to be turned off while the first electronic device is communicatively connected to the second electronic device comprises:
in the process of maintaining communication connection between the first electronic device and the second electronic device, setting the current contextual model of the first electronic device to be a mute model so as to close the key tone of the keyboard of the first electronic device.
5. The method of claim 4, wherein the controlling further comprises, before a key tone of a keyboard of the first electronic device is turned off while the first electronic device is communicatively connected to the second electronic device:
and acquiring and recording the current contextual model of the first electronic equipment.
6. The method of claim 1, wherein the restoring the key tones of the keyboard of the first electronic device comprises:
starting key tones of a keyboard of the first electronic equipment; or,
setting the contextual model of the first electronic device to be a recorded contextual model so as to recover the key tone of the keyboard of the first electronic device; or,
and obtaining the key tone corresponding to each key included in the keyboard of the first electronic device, and setting the key tone of each key included in the keyboard of the first electronic device as the respective corresponding key tone.
7. A first electronic device, comprising a communication module, wherein the communication module is configured to perform communication connection; the first electronic device includes:
a first obtaining module, configured to obtain a numeric character string; the numeric character string is used for establishing communication connection with a second electronic device with the numeric character string based on the communication module;
the second obtaining module is used for judging whether the digital character string belongs to a preset digital character string group or not and obtaining a judgment result; the preset digital character string group is a protected digital character string group;
the control module is used for controlling the key tones of the keyboard of the first electronic device to be turned off or uniformly converting different key tones of different keys of the keyboard into first key tones in the process of maintaining communication connection between the first electronic device and the second electronic device when the judgment result shows that the numeric character string belongs to a preset numeric character string group;
and the restoring module is used for restoring the key tone of the keyboard of the first electronic device if the communication connection maintained between the first electronic device and the second electronic device is hung up.
8. The first electronic device of claim 7,
the control module is used for closing the key tone of the keyboard of the first electronic device when the keyboard is called in the process of maintaining the communication connection between the first electronic device and the second electronic device.
9. The first electronic device of claim 7, wherein the control module comprises:
the first setting unit is used for setting different key tones corresponding to different keys of a keyboard of the first electronic device into a first key tone; or,
the second setting unit is used for acquiring a first key tone corresponding to each key included in a keyboard of the first electronic device, and setting the key tone corresponding to each key into the corresponding first key tone; or,
the third setting unit is used for setting the key tone corresponding to each key included in the first electronic equipment into a first key tone when a user inputs through the keyboard of the first electronic equipment; or,
and the fourth setting unit is used for acquiring a first key tone corresponding to the key when the user inputs the key through the keyboard of the first electronic device, and setting the key tone corresponding to the key as the acquired first key tone.
10. The first electronic device of claim 7,
the control module is configured to set a current contextual model of the first electronic device to a mute model in a process of maintaining communication connection between the first electronic device and the second electronic device, so as to close a key tone of a keyboard of the first electronic device.
11. The first electronic device of claim 10, wherein the first electronic device further comprises:
and the third obtaining module is used for obtaining and recording the current contextual model of the first electronic equipment.
12. The first electronic device of claim 7, wherein the recovery module comprises:
the starting unit is used for starting the key tone of the keyboard of the first electronic equipment; or,
a fifth setting unit, configured to set a contextual model of the first electronic device to a recorded contextual model, so as to recover a key tone of a keyboard of the first electronic device; or,
a sixth setting unit, configured to obtain a key tone corresponding to each key included in the keyboard of the first electronic device, and set the key tone of each key included in the keyboard of the first electronic device to a respective corresponding key tone.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310076409.7A CN104052855B (en) | 2013-03-11 | 2013-03-11 | A kind of method and electronics that button sound is set |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310076409.7A CN104052855B (en) | 2013-03-11 | 2013-03-11 | A kind of method and electronics that button sound is set |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104052855A CN104052855A (en) | 2014-09-17 |
CN104052855B true CN104052855B (en) | 2016-06-01 |
Family
ID=51505201
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310076409.7A Active CN104052855B (en) | 2013-03-11 | 2013-03-11 | A kind of method and electronics that button sound is set |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104052855B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104423937B (en) * | 2013-08-23 | 2019-05-31 | 中兴通讯股份有限公司 | A kind of key voice handling method, device and the terminal of terminal |
CN106506787A (en) * | 2016-11-29 | 2017-03-15 | 深圳天珑无线科技有限公司 | A kind of method of number input protection and terminal |
CN107257416A (en) * | 2017-07-19 | 2017-10-17 | 北京小米移动软件有限公司 | Processing method, device and the terminal of digital keys input |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1564564A (en) * | 2004-04-02 | 2005-01-12 | 南京大学 | Setup method and device for chaos secret telephone |
CN101447112A (en) * | 2008-12-31 | 2009-06-03 | 中国建设银行股份有限公司 | Method for ensuring telephone bank safe input, system and equipment thereof |
CN102904725A (en) * | 2012-10-22 | 2013-01-30 | 广东欧珀移动通信有限公司 | Password input method, device and mobile terminal |
CN102932515A (en) * | 2012-10-15 | 2013-02-13 | 广东欧珀移动通信有限公司 | A method and terminal for improving dial-up security |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2084892A4 (en) * | 2006-04-26 | 2010-11-03 | Gabriel Cabelli | System and method for dial tones screening |
-
2013
- 2013-03-11 CN CN201310076409.7A patent/CN104052855B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1564564A (en) * | 2004-04-02 | 2005-01-12 | 南京大学 | Setup method and device for chaos secret telephone |
CN101447112A (en) * | 2008-12-31 | 2009-06-03 | 中国建设银行股份有限公司 | Method for ensuring telephone bank safe input, system and equipment thereof |
CN102932515A (en) * | 2012-10-15 | 2013-02-13 | 广东欧珀移动通信有限公司 | A method and terminal for improving dial-up security |
CN102904725A (en) * | 2012-10-22 | 2013-01-30 | 广东欧珀移动通信有限公司 | Password input method, device and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN104052855A (en) | 2014-09-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104182662B (en) | Hiding and deployment method, system and the mobile terminal of hide application program | |
CN101141722B (en) | Secure mobile phone based on user voice features and its implementation method | |
EP3410257B1 (en) | Method for quickly starting application service, and terminal | |
US9513790B2 (en) | Electronic device and method for unlocking screen of electronic device | |
US11138982B2 (en) | Method of controlling terminal using context awareness and terminal therof | |
CN103019599B (en) | Electronic equipment and unlocking screen method thereof | |
CN102163996B (en) | Communication control system and method | |
CN103729134A (en) | Apparatus and method for unlocking screen and executing operation in a portable terminal | |
CN105956444A (en) | Private application display method and device and terminal equipment | |
CN103034414A (en) | Electronic equipment and screen unlocking method thereof | |
CN103853993A (en) | Information processing method and electronic equipment | |
CN104090688B (en) | The cipher-code input method and device of a kind of mobile terminal | |
CN104052855B (en) | A kind of method and electronics that button sound is set | |
CN104008326A (en) | Apparatus and method for managing security of terminal | |
CN104346550A (en) | Information processing method and electronic equipment | |
CN105320868B (en) | The encryption method and mobile terminal of application program | |
EP3244333B1 (en) | Method and device for concealing personal information on calling interface | |
CN105120056A (en) | Communication control method and terminal | |
CN107153788A (en) | A kind of cipher-code input method and device, a kind of device for Password Input | |
WO2017000343A1 (en) | Fingerprint unlocking method and terminal | |
JP2016058816A (en) | Information terminal and information terminal system | |
CN103279296A (en) | Stroke command operation processing method based on intelligent terminal and system thereof | |
CN105635390A (en) | Display method and display system for diphone multi-frequency signal and terminal | |
CN108681463A (en) | Implementation method, device, computer equipment and the storage medium of IVR flows | |
CN111125742A (en) | File management method, intelligent terminal and device with storage function |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |