CN112804399B - Verification code receiving method, device and medium - Google Patents

Verification code receiving method, device and medium Download PDF

Info

Publication number
CN112804399B
CN112804399B CN202110011875.1A CN202110011875A CN112804399B CN 112804399 B CN112804399 B CN 112804399B CN 202110011875 A CN202110011875 A CN 202110011875A CN 112804399 B CN112804399 B CN 112804399B
Authority
CN
China
Prior art keywords
receive
verification code
display interface
terminal
receiving
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
Application number
CN202110011875.1A
Other languages
Chinese (zh)
Other versions
CN112804399A (en
Inventor
高毅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202110011875.1A priority Critical patent/CN112804399B/en
Publication of CN112804399A publication Critical patent/CN112804399A/en
Application granted granted Critical
Publication of CN112804399B publication Critical patent/CN112804399B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2133Verifying human interaction, e.g., Captcha

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The disclosure relates to a verification code receiving method, a device and a medium. The method comprises the following steps: when the display interface of the terminal is determined to be changed, judging whether the current display interface needs to receive the verification code; when the current display interface needs to receive the verification code, other applications except the current application are forbidden to receive and transmit the data packet and/or the priority of the current application for receiving and transmitting the data packet is improved; and the current application is the application to which the current display interface belongs. By adopting the method, the sending and receiving processes of the verification code can be accelerated, the waiting time of a user is reduced, and the use experience of the user is improved.

Description

Verification code receiving method, device and medium
Technical Field
The present disclosure relates to the field of intelligent terminal applications, and in particular, to a verification code receiving method, apparatus, and medium.
Background
The popularity of intelligent terminals (e.g., cell phones) has activated the mobile Application (APP) market, where numerous APPs such as bamboo shoots come on-line quickly in the spring after rain. At present, most users need operations such as registration, login and verification when using APP, and the short message verification code is used as a common carrier and applied to the operations.
The short message receiving verification code has multiple use scenes and high frequency, and under most conditions, a user may need to receive short messages such as a registration code, a verification code and the like as soon as possible to execute the next operation, otherwise, the use of the user is delayed. For example, in the online support scenario of the user, when the user uses the financial APP for payment, the user needs to receive the payment verification code, and the user can complete the payment operation after passing the user identity verification. If the user clicks the 'sending verification code', the short message verification code cannot be received in time or even cannot be received all the time, and great influence is caused on the use of the user.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a verification code receiving method, apparatus, and medium.
According to a first aspect of the embodiments of the present disclosure, there is provided an authentication code receiving method, applied to a terminal, the method including:
when the display interface of the terminal is determined to be changed, judging whether the current display interface needs to receive the verification code;
when the current display interface needs to receive the verification code, other applications except the current application are forbidden to receive and transmit the data packet and/or the priority of the current application for receiving and transmitting the data packet is improved;
and the current application is the application to which the current display interface belongs.
Wherein the method further comprises:
acquiring a telephone number for receiving the verification code;
judging whether the telephone number is one of SIM card numbers configured in the terminal;
and when the telephone number is one of the SIM card numbers, forbidding to transmit and receive data packets through other SIM card numbers except the telephone number.
Wherein the prohibiting of transceiving data packets via other SIM card numbers than the phone number comprises:
judging whether the telephone number is the number of a data card used for receiving and transmitting a data packet by the terminal;
and when the telephone number is not the number of the data card, prohibiting the terminal from receiving and transmitting data packets through the data card.
Wherein the prohibiting the terminal from transceiving the data packet through the data card includes:
and after receiving the verification code through the telephone number, allowing the terminal to recover to receive and transmit the data packet through the data card.
Wherein the method further comprises:
and when the current display interface does not need to receive the verification code, allowing the other applications to receive and transmit the data packet and recovering the priority of the current application to receive and transmit the data packet.
Wherein, the judging whether the current display interface needs to receive the verification code comprises:
acquiring a unique identifier of the current display interface;
acquiring a unique identification set of an interface for receiving a verification code;
and judging whether the current display interface needs to receive a verification code or not based on the unique identifier of the current display interface and the unique identifier set.
According to a second aspect of the embodiments of the present disclosure, there is provided an authentication code receiving apparatus applied to a terminal, the apparatus including:
the verification code interface identification module is set to judge whether the current display interface needs to receive the verification code or not when the display interface of the terminal is determined to change;
the data packet control module is set to prohibit other applications except the current application from receiving and sending data packets and/or improve the priority of the current application for receiving and sending the data packets when the current display interface needs to receive the verification code;
and the current application is the application to which the current display interface belongs.
Wherein the apparatus further comprises:
a number identification module, configured to acquire a phone number for receiving a verification code, and determine whether the phone number is one of SIM card numbers configured in the terminal;
the data packet control module is further configured to prohibit transceiving of data packets by other SIM card numbers than the phone number when the phone number is one of the SIM card numbers.
The number identification module is also configured to judge whether the telephone number is the number of a data card used by the terminal for receiving and sending data packets;
the data packet control module is further configured to prohibit the terminal from transceiving data packets through the data card when the phone number is not the number of the data card.
Wherein the packet control module is further configured to:
and after the terminal is forbidden to receive and transmit the data packet through the data card and the verification code is received through the telephone number, allowing the terminal to recover receiving and transmitting the data packet through the data card.
Wherein the packet control module is further configured to:
and when the current display interface does not need to receive the verification code, allowing the other applications to receive and transmit the data packet and recovering the priority of the current application to receive and transmit the data packet.
Wherein the verification code interface identification module is further configured to:
acquiring a unique identifier of the current display interface;
acquiring a unique identification set of the interface needing to receive the verification code;
and judging whether the current display interface needs to receive a verification code or not based on the unique identifier of the current display interface and the unique identifier set.
According to a third aspect of the embodiments of the present disclosure, there is provided an authentication code receiving apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to implement the steps of the above method when executing the executable instructions.
According to a fourth aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium having instructions therein, which when executed by a processor of an apparatus, enable the apparatus to perform the above-described method.
The disclosure provides a verification code receiving method which is applied to an intelligent terminal. The method comprises the following steps: when the display interface of the terminal is determined to be changed, judging whether the current display interface needs to receive the verification code; when the current display interface needs to receive the verification code, other applications except the current application are forbidden to receive and transmit the data packet and/or the priority of the current application for receiving and transmitting the data packet is improved. On one hand, the method can improve the sending efficiency of the data packet request of sending the verification code and send the data packet to the server as fast as possible; on the other hand, the method can reduce the interference possibly encountered in the receiving process of the verification code short message and accelerate the receiving operation of the short message. Therefore, the processes of sending and receiving the verification code can be accelerated, the waiting time of the user is reduced, and the use experience of the user is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a flowchart illustrating an authentication code receiving method according to an exemplary embodiment.
Fig. 2 is a flowchart illustrating an authentication code receiving method according to an exemplary embodiment.
Fig. 3 is a block diagram illustrating an authentication code receiving apparatus according to an example embodiment.
FIG. 4 is a block diagram illustrating an apparatus in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
When a user performs operations such as registration, login and payment through an intelligent terminal, the user often needs to receive a verification code through a short message, and the next operation can be executed only after the verification code passes verification. If the user clicks the 'sending verification code', the short message verification code cannot be received in time delay or even cannot be received all the time, and the use of the user is delayed.
The disclosure provides a verification code receiving method which is applied to an intelligent terminal. The method comprises the following steps: when the display interface of the terminal is determined to be changed, judging whether the current display interface needs to receive the verification code; when the current display interface needs to receive the verification code, other applications except the current application are forbidden to receive and transmit the data packet and/or the priority of the current application for receiving and transmitting the data packet is improved. On one hand, the method can improve the sending efficiency of the data packet request of sending the verification code and send the data packet to the server as fast as possible; on the other hand, the method can reduce the interference possibly encountered in the receiving process of the verification code short message and accelerate the receiving operation of the short message.
The verification code is obtained by receiving the short message, namely the short message is received through an SIM card arranged in the terminal, and the content of the short message comprises the verification code.
The terminal in the disclosure is a terminal which is provided with an SIM card and can receive a short message through the SIM card, such as a mobile phone, a PAD, a wearable device, and the like.
Fig. 1 is a flowchart illustrating an authentication code receiving method according to an exemplary embodiment, which is applied to a terminal, and as shown in fig. 1, the method includes the following steps:
step 101, when determining that the display interface of the terminal changes, judging whether the current display interface needs to receive a verification code;
102, when the current display interface needs to receive the verification code, prohibiting other applications except the current application from receiving and sending data packets and/or improving the priority of the current application for receiving and sending the data packets;
and the current application is the application to which the current display interface belongs.
In step 101, when the display interface of the terminal changes, the operating system running on the terminal can know that the display interface changes. At this time, whether the current display interface needs to receive the verification code is judged, and the judgment can be carried out according to the unique identifier of the current display interface. The specific judgment method is described by the following specific embodiment.
In step 102, when it is determined that the current display interface needs to receive the verification code, other applications except the current application are prohibited from receiving and sending data packets and/or the priority of receiving and sending data packets of the current application is increased. It should be noted that, the above-mentioned prohibiting the other applications except the current application from transmitting and receiving the data packet and raising the priority of transmitting and receiving the data packet by the current application may be performed alternatively or simultaneously. And when the current display interface does not need to receive the verification code, the operation is not executed, namely all the applications are allowed to receive and transmit the data packet, and the priority of the current application receiving and transmitting the data packet is not changed.
By adopting the method, the system can process the receiving and sending of the data packet containing the verification code preferentially, thereby improving the transmission efficiency of the data packet containing the verification code.
In an alternative embodiment, the method further comprises:
acquiring a telephone number for receiving the verification code;
judging whether the telephone number is one of SIM card numbers configured in the terminal;
and when the telephone number is one of the SIM card numbers, forbidding to transmit and receive data packets through other SIM card numbers except the telephone number.
In this embodiment, when the current display interface needs to receive the verification code, after the user inputs a phone number for receiving the verification code in the display interface, the phone number is acquired. Then, whether the phone number is one of the SIM card numbers configured in the terminal is judged. When only one SIM card exists in the terminal, judging whether the telephone number is the telephone number of the SIM card; when the terminal has a plurality of SIM cards, whether the telephone number is one of the SIM card numbers is judged.
When the telephone number is one of the SIM card numbers, the terminal is forbidden to transmit and receive data packets through other SIM card numbers except the telephone number, namely, the terminal is only allowed to transmit and receive data packets through the telephone number. Therefore, the terminal is prohibited from occupying system resources when receiving and sending data packets through other SIM card numbers, and the efficiency of receiving the short message of the verification code through the telephone number is improved.
In an alternative embodiment, said disabling transceiving data packets via a SIM card number other than said telephone number comprises:
judging whether the telephone number is the number of a data card used for receiving and transmitting a data packet by the terminal;
and when the telephone number is not the number of the data card, prohibiting the terminal from receiving and transmitting data packets through the data card.
When a plurality of SIM cards are inserted into a terminal, one of the SIM cards is usually selected to transmit and receive packets, and the selected SIM card is a data card used by the terminal to transmit and receive packets.
In this embodiment, it is determined whether the telephone number receiving the verification code is the number of the data card of the terminal, and when the telephone number is not the number of the data card, the influence on the reception of the verification code when the data card receives and transmits the data packet is avoided by prohibiting the terminal from receiving and transmitting the data through the data card.
In an optional embodiment, the prohibiting the terminal from transceiving the data packet through the data card includes:
and after receiving the verification code through the telephone number, allowing the terminal to recover to receive and transmit the data packet through the data card.
As described above, when the phone number receiving the authentication code is not the data card, the terminal is prohibited from transceiving the data packet through the data card. Then, when the verification code is received through the telephone number, the data packet is received and transmitted through the data card without influencing the reception of the verification code, so that the terminal is allowed to receive and transmit the data packet through the data card, and normal receiving and transmitting of the data packet are realized.
In an alternative embodiment, the method further comprises:
and when the current display interface does not need to receive the verification code, allowing the other applications to receive and transmit the data packet and recovering the priority of the current application to receive and transmit the data packet.
In the step 101, it is determined whether the current display interface needs to receive the verification code, and when it is determined that the current display interface needs to receive the verification code, other applications except the current application are prohibited from receiving and transmitting the data packet and/or the priority of receiving and transmitting the data packet of the current application is increased. When the display interface changes, whether the current display interface needs to receive the verification code or not is judged, and the current display interface does not need to receive the verification code is judged. When the currently displayed interface is the interface which needs to receive the verification code, some operations are performed for receiving the verification code more quickly, such as the operation in step 102. Therefore, when the current display interface is jumped from the display interface that needs to receive the verification code, some corresponding recovery operations need to be performed, which is specifically described as follows: other applications are allowed to receive and transmit the data packets, and the priority of the current application for receiving and transmitting the data packets is recovered.
For example, if it is determined that the other application has been prohibited from transmitting and receiving the packet, the other application is allowed to transmit and receive the packet; and if the priority of the current application is determined to be improved, restoring the priority of the current application.
In an optional embodiment, the determining whether the current display interface needs to receive the verification code includes:
acquiring a unique identifier of the current display interface;
acquiring a unique identification set of an interface needing to receive a verification code;
and judging whether the current display interface needs to receive a verification code or not based on the unique identifier of the current display interface and the unique identifier set.
Each display interface in the application has a corresponding unique identifier, and an operating system running on the terminal can acquire the unique identifier and identify the corresponding display interface through the unique identifier. Different operating systems, the form of this unique identifier may be different, but there will be a unique identifier corresponding to the display interface in the application. For example, in the Android system, the unique identifier of the display interface includes a "package name" and a "class name", for example, in a main interface of the desktop application, the unique identifier is: package name is com.
The operating system stores the unique identification of all the applications installed on the current terminal, which need to receive the verification code interface. For example, a database of the unique identifications of the interfaces requiring to receive the verification codes, i.e. a set of unique identifications, which contains the unique identifications of the interfaces requiring to receive the verification codes of the mainstream applications in the market, may be stored in the server. When the terminal installs an application, the operating system of the terminal can identify the package name of the application, and then based on the package name, the unique identifier of the verification code interface corresponding to the package name of the application is obtained from the database which is stored in the server and is about to receive the unique identifier of the verification code interface and is stored.
Therefore, when judging whether the current display interface needs to receive the verification code, the unique identifier of the current display interface is obtained, and then whether the unique identifier exists in the unique identifier set of the terminal installed application, which needs to receive the verification code interface, is judged. If yes, determining that the current display interface needs to receive the verification code; and if not, determining that the current display interface does not need to receive the verification code.
Specific embodiments according to the present disclosure are described below in conjunction with specific application scenarios. In this embodiment, the terminal is a mobile phone, and the system for implementing the method includes a verification code interface identification module, a verification code interface storage module, a data packet control module, and a number identification module.
And the verification code interface identification module is used for identifying an interface which needs to send the verification code in the application. The module can monitor the current display interface in real time through an operating system interface and acquire the unique identifier of the interface. When the display interface changes, whether the unique identification exists is searched in the verification code interface storage module according to the unique identification of the current display interface. If yes, sending a verification code interface command to the data packet control module; if not, a non-verification code interface command is sent to the data packet control module.
And the verification code interface storage module is positioned at the operating system end of the terminal and is used for storing the unique identifiers of all the applications which are installed in the terminal currently and need to receive the verification code interface. When the terminal installs an application, the operating system of the terminal can identify the package name of the application, then the unique identifier of the verification code interface corresponding to the package name of the application is obtained from a database which is stored in the server and is about to receive the unique identifier of the verification code interface based on the package name, and the unique identifier is stored in a verification code interface storage module.
And the data packet control module is used for controlling the sending and receiving of the data packet of the application. After receiving the instruction sent by the identifying code interface identifying module, the module executes different operations according to different instructions. When receiving the command of 'identifying code interface', other applications except the current application are suspended from receiving and sending data packets and/or the priority of the current application for receiving and sending data packets is improved, so that the system is operated to preferentially process the receiving of the identifying code data packets, and the transmission efficiency of the identifying code data packets is improved. When a non-verification code interface command is received, the pause operation of data packet transceiving of other applications except the current application is cancelled, and all applications in the terminal are allowed to transceive the data packets according to the preset priority. And after the data packet of the 'sending verification code' is sent, calling a system interface to monitor the condition of receiving the short message in the system, and if the verification code short message is received, calling the system interface to cancel the pause operation of other application data packet transmission in the system, thereby allowing each application to normally receive and send the data packet.
And the number identification module is used for identifying the telephone number which needs to receive the verification code and is input in the verification code interface and matching the identified telephone number with the SIM card number inserted in the terminal. If the identified telephone number is the number of an SIM card inserted in the terminal, calling a system interface to judge whether the SIM card of the number is a data card of a data network of the terminal. If yes, no operation is carried out, and all data packets are received and transmitted through a mobile network where the data card is located by default; if not, sending a pause data packet transceiving instruction to the data packet control module, so that the data packet control module calls a system interface to pause transceiving of the data packet through the data card after the data packet sending the verification code is finished. This is because if the data packet is always transmitted through the data card, it may affect the reception of the authentication code data packet through the SIM card (non-data card) corresponding to the telephone number. Therefore, the SIM card (non-data card) corresponding to the telephone number keeps continuous polling with the network, and receives the short message of the verification code in time.
Specifically, as shown in fig. 2, the method includes the steps of:
step 201, when the operating system determines that the display interface of the mobile phone changes, the verification code interface identification module obtains the unique identifier of the current display interface, and searches whether the unique identifier exists in the verification code interface storage module.
In step 202, the identifying module sends a "identifying code interface" command to the data packet control module when the unique identifier exists in the identifying code interface storage module.
In step 203, the data packet control module suspends the transceiving of data packets by other applications except the current application and increases the priority of the transceiving of data packets by the current application under the condition of receiving the command of the verification code interface.
In step 204, the number identification module identifies the phone number for receiving the verification code input in the verification code interface, and determines whether the phone number is one of the SIM card numbers inserted in the mobile phone.
In step 205, if the phone number is a SIM card number inserted in the mobile phone, the number identification module determines whether the SIM card is a data card of the mobile phone data network.
In step 206, if the card is not a data card, the number identification module sends a command of "suspend the data card to receive and transmit data packets" to the data packet control module.
Step 207, the data packet control module suspends the transceiving of the data packet by the data card when the data packet of the request to send the verification code is sent under the condition of receiving the command of suspending the transceiving of the data packet by the data card.
In step 208, after the data packet control module obtains the received verification code, the data packet control module cancels the pause operation of the data card for receiving and sending the data packet, and allows the data card to receive and send the data packet.
And step 209, after the verification code is input in the verification code interface and the next step is clicked, the display interface skips, and when the verification code interface identification module judges that the current display interface does not need to receive the verification code, a non-verification code interface command is sent to the data packet control module.
In step 210, the packet control module allows other applications to send and receive packets and restores the priority of the current application.
By adopting the method, the priority of sending the verification code data packet is improved by identifying the verification code interface, the receiving and sending of the data packets of other applications are suspended, and the data packet is sent to the server by the first priority, so that the sending efficiency of the request of sending the verification code data packet is improved, and the data packet is sent to the server as fast as possible. In addition, after the verification code data packet is sent, if the verification code short message is received through the non-data card, the data packet is stopped from being received and sent through the data card, and the verification code short message is ensured to be received as soon as possible through polling of the non-data card and a network, so that the interference possibly encountered in the receiving process of the verification code short message is reduced, and the short message receiving operation is accelerated.
The present disclosure also provides a verification code receiving apparatus, which is applied to a terminal, and the apparatus includes:
the verification code interface identification module 301 is configured to determine whether the current display interface needs to receive a verification code when the display interface of the terminal changes;
the data packet control module 302 is configured to prohibit other applications except the current application from receiving and sending data packets and/or improve the priority of the current application for receiving and sending data packets when the current display interface needs to receive the verification code;
and the current application is the application to which the current display interface belongs.
In an alternative embodiment, the apparatus further comprises:
a number identification module, configured to acquire a phone number for receiving a verification code, and determine whether the phone number is one of SIM card numbers configured in the terminal;
the packet control module 302 is further configured to prohibit transceiving of packets via SIM card numbers other than the phone number when the phone number is one of the SIM card numbers.
In an optional embodiment, the number identification module is further configured to determine whether the phone number is a number of a data card used by the terminal to send and receive a data packet;
the data packet control module 302 is further configured to prohibit the terminal from transceiving data packets via the data card when the phone number is not the number of the data card.
In an alternative embodiment, the packet control module 302 is further configured to:
and after the terminal is forbidden to receive and transmit the data packet through the data card and the verification code is received through the telephone number, allowing the terminal to recover receiving and transmitting the data packet through the data card.
In an alternative embodiment, the packet control module 302 is further configured to:
and when the current display interface does not need to receive the verification code, allowing the other applications to receive and transmit the data packet and recovering the priority of the current application to receive and transmit the data packet.
In an alternative embodiment, the verification code interface identification module 301 is further configured to:
acquiring a unique identifier of the current display interface;
acquiring a unique identification set of the interface needing to receive the verification code;
and judging whether the current display interface needs to receive a verification code or not based on the unique identifier of the current display interface and the unique identifier set.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
On one hand, the device can improve the sending efficiency of the data packet request of the 'sending verification code' and send the data packet to the server as fast as possible; on the other hand, the method can reduce the interference possibly encountered in the receiving process of the verification code short message and accelerate the receiving operation of the short message.
Fig. 4 is a block diagram illustrating an authentication code receiving apparatus 400 according to an example embodiment.
Referring to fig. 4, the apparatus 400 may include one or more of the following components: a processing component 402, a memory 404, a power component 406, a multimedia component 408, an audio component 410, an interface for input/output (I/O) 412, a sensor component 414, and a communication component 416.
The processing component 402 generally controls overall operation of the apparatus 400, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 402 can include one or more modules that facilitate interaction between the processing component 402 and other components. For example, the processing component 402 can include a multimedia module to facilitate interaction between the multimedia component 408 and the processing component 402.
The memory 404 is configured to store various types of data to support operations at the device 400. Examples of such data include instructions for any application or method operating on the device 400, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 404 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 406 provide power to the various components of device 400. Power components 406 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for apparatus 400.
The multimedia component 408 includes a screen that provides an output interface between the device 400 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 408 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 400 is in an operational mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 410 is configured to output and/or input audio signals. For example, audio component 410 includes a Microphone (MIC) configured to receive external audio signals when apparatus 400 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 404 or transmitted via the communication component 416. In some embodiments, audio component 410 also includes a speaker for outputting audio signals.
The I/O interface 412 provides an interface between the processing component 402 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 414 includes one or more sensors for providing various aspects of status assessment for the apparatus 400. For example, the sensor component 414 can detect the open/closed state of the device 400, the relative positioning of components, such as a display and keypad of the apparatus 400, the sensor component 414 can also detect a change in the position of the apparatus 400 or a component of the apparatus 400, the presence or absence of user contact with the apparatus 400, orientation or acceleration/deceleration of the apparatus 400, and a change in the temperature of the apparatus 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 414 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 416 is configured to facilitate wired or wireless communication between the apparatus 400 and other devices. The apparatus 400 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 416 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 416 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 400 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 404 comprising instructions, executable by the processor 420 of the apparatus 400 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein which, when executed by a processor of a mobile terminal, enable the mobile terminal to perform an authentication code receiving method, the method comprising: determining resource types to be configured on a terminal running the application and one or more parameter configurations included in each resource type aiming at the application; determining a resource allocation combination, wherein the resource allocation combination is composed of a plurality of groups of resource allocations, and each group of resource allocation comprises a parameter allocation of each resource type; acquiring a frame rate of a set scene of the application operated by the terminal in a set time period aiming at each group of resource configuration in the resource configuration combination; determining N groups of preferred resource configurations based on the frame rate, wherein N is a positive integer greater than or equal to 1; selecting a group of resource allocation from the N groups of preferred resource allocation; configuring a terminal based on parameters of the selected set of resource configurations to run the setting scenario of the application on the terminal.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (14)

1. An authentication code receiving method applied to a terminal, the method comprising:
when the display interface of the terminal is determined to be changed, judging whether the current display interface needs to receive the verification code;
when the current display interface needs to receive the verification code, other applications except the current application are forbidden to receive and transmit the data packet and/or the priority of the current application for receiving and transmitting the data packet is improved;
the current application is the application to which the current display interface belongs;
the terminal is provided with an SIM card and can receive the short message through the SIM card.
2. The method of claim 1, wherein the method further comprises:
acquiring a telephone number for receiving the verification code;
judging whether the telephone number is one of SIM card numbers configured in the terminal;
and when the telephone number is one of the SIM card numbers, forbidding to transmit and receive data packets through other SIM card numbers except the telephone number.
3. The method of claim 2, wherein said inhibiting transceiving data packets via a SIM card number other than said telephone number comprises:
judging whether the telephone number is the number of a data card used for receiving and transmitting a data packet by the terminal;
and when the telephone number is not the number of the data card, prohibiting the terminal from receiving and transmitting data packets through the data card.
4. The method of claim 3, wherein said inhibiting said terminal from transceiving data packets via said data card comprises:
and after receiving the verification code through the telephone number, allowing the terminal to recover to receive and transmit the data packet through the data card.
5. The method of claim 1, wherein the method further comprises:
and when the current display interface does not need to receive the verification code, allowing the other applications to receive and transmit the data packet and recovering the priority of the current application to receive and transmit the data packet.
6. The method of claim 1, wherein the determining whether the current display interface needs to receive a verification code comprises:
acquiring a unique identifier of the current display interface;
acquiring a unique identification set of an interface needing to receive a verification code;
and judging whether the current display interface needs to receive a verification code or not based on the unique identifier of the current display interface and the unique identifier set.
7. An authentication code receiving apparatus applied to a terminal, the apparatus comprising:
the verification code interface identification module is set to judge whether the current display interface needs to receive the verification code or not when the display interface of the terminal is determined to change;
the data packet control module is set to prohibit other applications except the current application from receiving and sending data packets and/or improve the priority of the current application for receiving and sending the data packets when the current display interface needs to receive the verification code;
the current application is the application to which the current display interface belongs;
the terminal is provided with an SIM card and can receive the short message through the SIM card.
8. The apparatus of claim 7, wherein the apparatus further comprises:
a number identification module, configured to acquire a phone number for receiving a verification code, and determine whether the phone number is one of SIM card numbers configured in the terminal;
the data packet control module is further configured to prohibit transceiving of data packets by other SIM card numbers than the phone number when the phone number is one of the SIM card numbers.
9. The apparatus of claim 8,
the number identification module is also configured to judge whether the telephone number is a number of a data card used by the terminal for receiving and transmitting data packets;
the data packet control module is further configured to prohibit the terminal from transceiving data packets through the data card when the phone number is not the number of the data card.
10. The apparatus of claim 9, wherein the packet control module is further configured to:
and after the terminal is forbidden to receive and transmit the data packet through the data card and the verification code is received through the telephone number, allowing the terminal to recover receiving and transmitting the data packet through the data card.
11. The apparatus of claim 7, wherein the packet control module is further configured to:
and when the current display interface does not need to receive the verification code, allowing the other applications to receive and transmit the data packet and recovering the priority of the current application to receive and transmit the data packet.
12. The apparatus of claim 7, wherein the captcha interface identification module is further configured to:
acquiring a unique identifier of the current display interface;
acquiring a unique identification set of the interface needing to receive the verification code;
and judging whether the current display interface needs to receive a verification code or not based on the unique identifier of the current display interface and the unique identifier set.
13. An authentication code receiving apparatus, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to carry out the steps of any of claims 1-6 when executing the executable instructions.
14. A non-transitory computer readable storage medium having instructions therein which, when executed by a processor of an apparatus, enable the apparatus to perform the method of any of claims 1-6.
CN202110011875.1A 2021-01-06 2021-01-06 Verification code receiving method, device and medium Active CN112804399B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110011875.1A CN112804399B (en) 2021-01-06 2021-01-06 Verification code receiving method, device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110011875.1A CN112804399B (en) 2021-01-06 2021-01-06 Verification code receiving method, device and medium

Publications (2)

Publication Number Publication Date
CN112804399A CN112804399A (en) 2021-05-14
CN112804399B true CN112804399B (en) 2022-03-01

Family

ID=75808479

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110011875.1A Active CN112804399B (en) 2021-01-06 2021-01-06 Verification code receiving method, device and medium

Country Status (1)

Country Link
CN (1) CN112804399B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106850225A (en) * 2015-12-04 2017-06-13 中国电信股份有限公司 Identifying code transfer approach and system
CN108810831A (en) * 2018-04-17 2018-11-13 平安科技(深圳)有限公司 Method for pushing, electronic device and the readable storage medium storing program for executing of short message verification code
CN111356091A (en) * 2018-12-21 2020-06-30 中国移动通信集团终端有限公司 Message sending and receiving method and terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8818432B2 (en) * 2011-05-25 2014-08-26 Moxa Inc. Method and integrated routing device for controlling remote systems via short messages
CN106170004B (en) * 2016-09-23 2020-11-20 北京小米移动软件有限公司 Method and device for processing verification code

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106850225A (en) * 2015-12-04 2017-06-13 中国电信股份有限公司 Identifying code transfer approach and system
CN108810831A (en) * 2018-04-17 2018-11-13 平安科技(深圳)有限公司 Method for pushing, electronic device and the readable storage medium storing program for executing of short message verification code
CN111356091A (en) * 2018-12-21 2020-06-30 中国移动通信集团终端有限公司 Message sending and receiving method and terminal

Also Published As

Publication number Publication date
CN112804399A (en) 2021-05-14

Similar Documents

Publication Publication Date Title
EP3301856B1 (en) Router management method, router and mobile terminal
CN106020943B (en) Application program double-opening method and device
CN105553963B (en) The control method and device of positioning service
EP3010187B1 (en) Method for upgrading and device and apparatus thereof
CN109219036B (en) Method and device for unbinding equipment and electronic equipment
CN110574484B (en) Random access method, device and storage medium
EP3226432B1 (en) Method and devices for sharing media data between terminals
CN105979501B (en) Resource allocation methods and device
CN107094094B (en) Application networking method and device and terminal
CN106537344A (en) A method and apparatus for managing application calls
US11347988B2 (en) Method and device for configuring NFC smart card
EP3407278A1 (en) Method and apparatus for reporting loss of card or device associated with account number or stolen of account number
CN113078921B (en) Data processing method, device and storage medium
CN107820300A (en) Network search method and device
US20230037475A1 (en) Network connection method and device and readable storage medium
US20220408238A1 (en) Verification information processing method and apparatus, terminal device and storage medium
CN109885360B (en) Data processing method, device and storage medium
CN112804399B (en) Verification code receiving method, device and medium
CN110865823A (en) Pre-installed application control method, pre-installed application control device and storage medium
EP3239880B1 (en) Legal installation package acquiring method and apparatus, computer program and recording medium
CN109491655A (en) A kind of incoming event processing method and processing device
CN113568828A (en) Abnormal terminal equipment identification method and device, electronic equipment and storage medium
CN106502719A (en) The method and device of the component of management application program
CN106846050B (en) Method, device and system for sending display notification
CN112020059B (en) NFC instruction processing method, NFC instruction processing device and storage medium

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