CN116546449A - Implementation method and system for intercepting message verification code of android application - Google Patents
Implementation method and system for intercepting message verification code of android application Download PDFInfo
- Publication number
- CN116546449A CN116546449A CN202310502083.3A CN202310502083A CN116546449A CN 116546449 A CN116546449 A CN 116546449A CN 202310502083 A CN202310502083 A CN 202310502083A CN 116546449 A CN116546449 A CN 116546449A
- Authority
- CN
- China
- Prior art keywords
- application
- android
- verification code
- user
- short message
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000012795 verification Methods 0.000 title claims abstract description 49
- 238000000034 method Methods 0.000 title claims abstract description 23
- 238000004891 communication Methods 0.000 abstract description 4
- 238000010586 diagram Methods 0.000 description 7
- 230000000903 blocking effect Effects 0.000 description 3
- 238000013475 authorization Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000012550 audit Methods 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/12—Messaging; Mailboxes; Announcements
- H04W4/14—Short messaging services, e.g. short message services [SMS] or unstructured supplementary service data [USSD]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W12/00—Security arrangements; Authentication; Protecting privacy or anonymity
- H04W12/80—Arrangements enabling lawful interception [LI]
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Technology Law (AREA)
- Computer Security & Cryptography (AREA)
- Telephone Function (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a method and a system for realizing a truncated message verification code of an android application, belongs to the technical field of mobile applications, and aims to solve the technical problem of how to realize the reading authority of the android application on communication type short messages. The method comprises the following steps: guiding a user to set authority of the android application, so that the application obtains the authority of the android application for reading the notification short message content; and a broadcast receiver BroadcastReceiver registered for receiving the short message, when the android system receives the short message, the android system sends a broadcast Intnt with an action name of android.
Description
Technical Field
The invention relates to the technical field of mobile application, in particular to a method and a system for realizing an android application truncated message verification code.
Background
When the android mobile application is used, for safety verification related consideration, verification codes are frequently sent to a mobile phone of a user, after receiving a short message of the verification codes, the user fills the verification codes in the short message into the application, and then performs related verification operation. In order to facilitate user operation, many application developers can automatically intercept verification codes and fill the verification codes into the applications after the user mobile phone receives the verification code short messages, so that the application is returned to the system background after the user receives the short messages, the verification code short messages are checked, and then the application is filled, the operation steps of the user are simplified, and the usability of the application is increased. The process flow diagram is shown.
The main implementation technical method of the function is as follows:
when the system receives the short message, it will send a broadcast Intent with the action name of android.provider.Telephony.SMS_RECEIVED, which stores the RECEIVED short message content.
After receiving the short message broadcast Intent, the BroadcastReceiver reads the content in the Intent, recognizes the verification code by using the regular expression, and fills the verification code into an input box of the post-application.
However, due to the safe upgrade of the android system and the system optimization of the domestic mainstream mobile phone manufacturer, the android application has no permission to read the notification type short message, and the permission can only be manually operated by a user to be authorized to the application, and the application cannot automatically obtain the permission by calling the api of the application permission type, and the flow is shown in a figure 2.
Thus, the function of automatically blocking the truncated trust verification code is not effective on some handsets.
How to realize the reading authority of the android application to the communication type short message is a technical problem to be solved.
Disclosure of Invention
The technical task of the invention is to provide the realization method and the system for the android application to intercept the short message verification code, so as to solve the technical problem of how to realize the reading authority of the android application to the communication type short message.
In a first aspect, the invention provides a method for implementing an android application truncated message verification code, which comprises the following steps:
guiding a user to set authority of the android application, so that the application obtains the authority of the android application for reading the notification short message content;
and a broadcast receiver BroadcastReceiver registered for receiving the short message, when the android system receives the short message, the android system sends a broadcast Intnt with an action name of android.
Preferably, after receiving the short message broadcast Intnt, the BroadcastReceiver reads the content in the Intnt and recognizes the verification code through the regular expression.
Preferably, guiding the user to perform authority setting on the android application comprises the following operations:
prompting the user: the application permission is limited by the system, and the user is prompted to manually set;
providing an operation button through an android application, wherein the function to be realized by the operation button is to open the application setting of the android mobile phone, and enter an application permission setting page;
after clicking the operation button, the user enters the application setting of the mobile phone, opens an application permission setting page, and sets according to application prompts;
after the setting is completed, the user performs authentication.
Preferably, the android mobile phone opening application setting is realized through an Intent provided by an android system, and the actions of the Intent are set as follows:
Settings.ACTION_APPLICATION_DETAILS_SETTINGS。
in a second aspect, the present invention provides a system for implementing an android application truncated message blocking verification code, configured to execute the method for implementing an android application truncated message blocking verification code according to any one of the first aspect, where the system includes:
the guiding module is used for guiding a user to set the permission of the android application, so that the application obtains the permission of the android application for reading the notification short message content;
the short message identification module is used for executing the following steps: and a broadcast receiver BroadcastReceiver registered for receiving the short message, when the android system receives the short message, the android system sends a broadcast Intnt with an action name of android.
Preferably, after receiving the short message broadcast Intnt, the BroadcastReceiver reads the content in the Intnt and recognizes the verification code through the regular expression.
Preferably, the guiding module is configured to perform the following:
prompting the user: the application permission is limited by the system, and the user is prompted to manually set;
providing an operation button through an android application, wherein the function to be realized by the operation button is to open the application setting of the android mobile phone, and enter an application permission setting page;
after clicking the operation button, the user enters the application setting of the mobile phone, opens an application permission setting page, and sets according to application prompts;
after the setting is completed, the user performs authentication.
Preferably, the android mobile phone opening application setting is realized through an Intent provided by an android system, and the actions of the Intent are set as follows:
Settings.ACTION_APPLICATION_DETAILS_SETTINGS。
the realization system for the android application truncated message verification code has the following advantages: the user is guided to read the notification short message for application authorization, so that the usability of the application is improved, and meanwhile, a solution is provided for the requirement of the operation Shang Weibao that the application needs to automatically read the short message verification code.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments or the description of the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
The invention is further described below with reference to the accompanying drawings.
FIG. 1 is a block flow diagram of a conventional application read notification message;
FIG. 2 is a block flow diagram of a conventional application for reading notification message permissions;
fig. 3 is a schematic diagram of an application permission setting page when a user is guided to perform permission setting in the implementation method of the android application truncated message verification code in embodiment 1;
fig. 4 is a schematic diagram of an application permission setting page when a user is guided to perform permission setting in the implementation method of the android application truncated message verification code in embodiment 1;
fig. 5 is a schematic diagram of an application permission setting page when a user is guided to perform permission setting in the implementation method of the android application truncated message verification code in embodiment 1;
fig. 6 is a schematic diagram of user verification effect when guiding a user to perform authority setting in the implementation method of the android application truncated message verification code in embodiment 1.
Detailed Description
The invention will be further described with reference to the accompanying drawings and specific examples, so that those skilled in the art can better understand the invention and implement it, but the examples are not meant to limit the invention, and the technical features of the embodiments of the invention and the examples can be combined with each other without conflict.
The embodiment of the invention provides a method and a system for realizing a truncated message verification code of an android application, which are used for solving the technical problem of how to realize the reading authority of the android application to a communication type short message.
Example 1:
the invention discloses an implementation method of an android application truncated message verification code, which comprises the following steps:
s100, guiding a user to set authority of the android application, so that the application obtains the authority of the android application for reading the notification short message content;
s200, registering a broadcast receiver BroadcastReceiver for receiving the short message, when the android system receives the short message, sending a broadcast Intent with an action name of android.provider.Telephony.SMS_RECEIVED, wherein the broadcast Intent stores the RECEIVED short message content, and after the BroadcastReceiver receives the short message broadcast Intnt, the BroadcastReceiver reads the content in the Intnt and identifies the verification code.
The main steps of step S100 of this embodiment for guiding the user to set the permission on the android application are as follows:
(1) Prompting the user: the application authority is limited by the system and needs to be set manually;
(2) The android application provides operation buttons, and the functions to be realized by the operation buttons are opening setting information. The mobile phone opening application setting is an Intent provided by an android system, and the action of the Intent is set as follows: SETTINGS. Action_application_details_settings.
(3) After clicking the button, the user opens an application permission setting page, and the user sets according to the application prompt, as shown in fig. 3-5;
(4) After the setup is completed, the user can perform authentication. Such as: dialing: 1008611 10086 can automatically send a short message, and if the application can normally read the notification short message and display the notification short message on a page, the function can be normally used. The verification effect is shown in fig. 6.
In step S200, after receiving the short message broadcast content, the BroadcastReceiver reads the content in the content and recognizes the verification code through the regular expression.
The method guides the user to read the notification short message for application authorization, increases the usability of the application, and provides a solution for the requirement of the operation Shang Weibao that the application needs to automatically read the short message verification code.
Example 2:
the invention discloses a realization system for intercepting a message verification code by android application, which comprises a guide module and a message identification module, wherein the system can execute the method disclosed in the embodiment 1.
The guiding module is used for guiding a user to set the permission of the android application, so that the application obtains the permission of the android application for reading the notification short message content.
The guiding module in this embodiment is configured to perform the following operations:
(1) Prompting the user: the application authority is limited by the system and needs to be set manually;
(2) The android application provides operation buttons, and the functions to be realized by the operation buttons are opening setting information. The mobile phone opening application setting is an Intent provided by an android system, and the action of the Intent is set as follows: SETTINGS. Action_application_details_settings.
(3) After the user clicks the button, an application permission setting page is opened, and the user sets according to the application prompt;
(4) After the setup is completed, the user can perform authentication. Such as: dialing: 1008611 10086 can automatically send a short message, and if the application can normally read the notification short message and display the notification short message on a page, the function can be normally used.
The short message identification module is used for executing the following steps: when the android system receives the short message, the broadcast receiver BroadcastReceiver sends a broadcast Intnt with an action name of android.provider.Telephony.SMS_RECEIVED, the broadcast Intent stores the RECEIVED short message content, and the BroadcastReceiver reads the content in the Intent and identifies the verification code after receiving the short message broadcast Intnt.
In this embodiment, after receiving the short message broadcast Intnt, the BroadcastReceiver reads the content in the Intnt, and identifies the verification code through the regular expression.
While the invention has been illustrated and described in detail in the drawings and in the preferred embodiments, the invention is not limited to the disclosed embodiments, and it will be appreciated by those skilled in the art that the code audits of the various embodiments described above may be combined to produce further embodiments of the invention, which are also within the scope of the invention.
Claims (8)
1. The implementation method of the android application truncated message verification code is characterized by comprising the following steps of:
guiding a user to set authority of the android application, so that the application obtains the authority of the android application for reading the notification short message content;
and a broadcast receiver BroadcastReceiver registered for receiving the short message, when the android system receives the short message, the android system sends a broadcast Intnt with an action name of android.
2. The method for implementing the android application truncated message verification code according to claim 1, wherein BroadcastReceiver receives the content in the Intnt after broadcasting the Intnt, and recognizes the verification code through a regular expression.
3. The method for implementing the android application truncated message verification code according to claim 1 or 2, wherein guiding the user to set the authority of the android application comprises the following operations:
prompting the user: the application permission is limited by the system, and the user is prompted to manually set;
providing an operation button through an android application, wherein the function to be realized by the operation button is to open the application setting of the android mobile phone, and enter an application permission setting page;
after clicking the operation button, the user enters the application setting of the mobile phone, opens an application permission setting page, and sets according to application prompts;
after the setting is completed, the user performs authentication.
4. The method for implementing the android application truncated message verification code according to claim 3, wherein the android application opening application setting is implemented through an Intint provided by an android system, and the action of the Intint is set as follows: SETTINGS. Action_application_details_settings.
5. An implementation system of an android application truncated message verification code, which is used for executing an implementation method of an android application truncated message verification code according to any one of claims 1 to 4, and the system comprises:
the guiding module is used for guiding a user to set the permission of the android application, so that the application obtains the permission of the android application for reading the notification short message content;
the short message identification module is used for executing the following steps: and a broadcast receiver BroadcastReceiver registered for receiving the short message, when the android system receives the short message, the android system sends a broadcast Intnt with an action name of android.
6. The system for implementing the android application truncated message verification code according to claim 5, wherein the BroadcastReceiver receives the content in the Intnt after broadcasting the Intnt, and identifies the verification code through a regular expression.
7. The system for implementing the android application truncated trust verification code according to claim 5 or 6, wherein the guiding module is configured to perform the following:
prompting the user: the application permission is limited by the system, and the user is prompted to manually set;
providing an operation button through an android application, wherein the function to be realized by the operation button is to open the application setting of the android mobile phone, and enter an application permission setting page;
after clicking the operation button, the user enters the application setting of the mobile phone, opens an application permission setting page, and sets according to application prompts;
after the setting is completed, the user performs authentication.
8. The system for implementing the android application truncated message verification code according to claim 7, wherein the android application opening application setting is implemented through an Intint provided by an android system, and the action of the Intint is set as follows: SETTINGS. Action_application_details_settings.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310502083.3A CN116546449A (en) | 2023-05-06 | 2023-05-06 | Implementation method and system for intercepting message verification code of android application |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310502083.3A CN116546449A (en) | 2023-05-06 | 2023-05-06 | Implementation method and system for intercepting message verification code of android application |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116546449A true CN116546449A (en) | 2023-08-04 |
Family
ID=87453693
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310502083.3A Pending CN116546449A (en) | 2023-05-06 | 2023-05-06 | Implementation method and system for intercepting message verification code of android application |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116546449A (en) |
-
2023
- 2023-05-06 CN CN202310502083.3A patent/CN116546449A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104753882B (en) | Network service verification method, system and server | |
EP3528160A1 (en) | Method, system and terminal for encrypting/decrypting application program on communication terminal | |
RU2004105275A (en) | METHOD FOR STARTING AN APPLICATION USING A MOBILE STATION | |
CN110049062B (en) | Verification code verification method, device, system, server, electronic equipment and storage medium | |
US20150007348A1 (en) | Method and apparatus for managing user provided access tokens | |
CN105577375A (en) | Identity authentication method and device | |
CN100459816C (en) | Encrypted information processing method and terminal | |
US9716990B2 (en) | Method to disable a network access application in a secure element | |
AU2010288520B2 (en) | A chip card, an electronic system, a method being implemented by a chip card and a computer program product | |
KR20120039536A (en) | Method for performing ussd services in a telecommunications network | |
KR101409790B1 (en) | Remote control method between mobile telephone using program in mobile telephone | |
CN116546449A (en) | Implementation method and system for intercepting message verification code of android application | |
CN113407427A (en) | Verification information processing method and device, terminal equipment and storage medium | |
KR102054424B1 (en) | Service providing system and method for security supporting multi-channel authentication with user equipment, and non-transitory computer readable medium having computer program recorded thereon | |
KR20100060302A (en) | Method for processing caller and mobile phone, program recording medium | |
CN102547661B (en) | Method and device for establishing communication between Android system and telecommunications smart card | |
CN107318055A (en) | Screen unlocking method and device of mobile terminal | |
KR20030091161A (en) | Function remote locking method for mobile communication device | |
US8978050B2 (en) | Program calling method, and mobile device | |
CN110366161B (en) | Card opening method and device, related equipment and storage medium | |
KR102616704B1 (en) | Service providing system and method for security of lost terminal | |
CN109145572A (en) | User authen method, device and storage medium and electronic equipment | |
KR102150580B1 (en) | System for voice call service using distal assistance device, method thereof and non-transitory computer readable medium having computer program recorded thereon | |
KR102399456B1 (en) | System for voice call service using distal assistance device, method thereof and non-transitory computer readable medium having computer program recorded thereon | |
CN102694903A (en) | Method and apparatus for data communication |
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 |