An application automatic login method, system, device, and storage medium
By decompiling the application to obtain the login interface control identification information and automatically logging in, the problem of the application exiting the background and the token becoming invalid was solved, thus improving the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA PING AN LIFE INSURANCE CO LTD
- Filing Date
- 2022-07-21
- Publication Date
- 2026-05-26
Smart Images

Figure CN115203674B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer applications, and in particular to a method, system, device, and storage medium for automatic login of applications. Background Technology
[0002] Currently, smart terminals with data processing capabilities are being used more and more widely, including but not limited to smartphones, PDAs, tablets, and smart TVs. These smart terminals typically have an operating system installed, such as common portable operating systems like Android, Symbian, Windows Mobile, and Apple's iPhone OS. Based on the operating system of a smart terminal, various applications (apps) can be loaded and run. Some of these applications are built into the operating system, but most are third-party applications independent of the operating system.
[0003] With the development and widespread use of application terminals, users are using them more and more frequently. For security and other reasons, most application software has a login authentication mechanism, which usually requires entering a username and password for authentication. However, the token obtained after logging in has a short validity period. When the application is exited to the background, the token also expires, and users need to manually enter their account and password again, which consumes a lot of users' time. Summary of the Invention
[0004] The purpose of this application is to at least partially solve one of the technical problems existing in the related art.
[0005] Therefore, one objective of this application is to provide an automatic login method for applications, which enables automatic login of applications and helps to improve the user experience when using applications.
[0006] To achieve the above-mentioned technical objectives, the technical solutions adopted in the embodiments of this application include:
[0007] An automatic login method for an application includes the following steps:
[0008] Obtain the target application and login verification information;
[0009] The target application is decompiled to obtain the decompiled file of the target application;
[0010] Locate the identification information of the login interface control corresponding to the target application in the decompiled file;
[0011] The login verification information corresponding to the target application and the identification information of the login interface control are sent to the automatic login plugin so that the automatic login plugin can automatically log in to the target application.
[0012] The automatic login plugin performs automatic login through the following steps:
[0013] The login interface control corresponding to the target application is located based on the identification information of the login interface control.
[0014] Enter the login verification information in the login interface control and send a login command to the target application.
[0015] In addition, the application automatic login method according to the above embodiments of this application may also have the following additional technical features:
[0016] Furthermore, in one embodiment of this application, the automatic login method for the application further includes the following steps:
[0017] Locate the package name and login interface class name corresponding to the target application in the decompiled file;
[0018] Send the package name corresponding to the target application and the login interface class name to the automatic login plugin;
[0019] Get the package name and login interface class name of the current application;
[0020] The package name and login interface class name of the current application are matched with the package name and login interface class name obtained by the automatic login plugin to determine whether the current application is the target application.
[0021] Furthermore, in one embodiment of this application, the automatic login method for the application further includes the following steps:
[0022] Detect the login status of the target application;
[0023] When the target application is logged in as offline, an offline reminder message is generated.
[0024] Furthermore, in one embodiment of this application, the step of obtaining the target application and login verification information specifically includes:
[0025] Acquire the voice data of the person collected by the terminal device;
[0026] The voice data of the person is matched with the voiceprint database corresponding to the target person to determine whether the voice data of the person includes the target voice data.
[0027] When the voice data of the person includes target voice data, extract the target voice data;
[0028] Perform speech recognition on the target speech data to obtain the text content of the target speech data;
[0029] The text feature information of the text content is extracted to obtain login verification information.
[0030] Furthermore, in one embodiment of this application, the step of searching for the identification information of the login interface control corresponding to the target application in the decompiled file specifically includes:
[0031] The decompiled file is subjected to keyword recognition to determine whether it contains target file data.
[0032] When the decompiled file contains target file data, extract and save the target file data;
[0033] The target file data includes the identification information of the login interface control corresponding to the target application.
[0034] Furthermore, in one embodiment of this application, sending the login verification information corresponding to the target application and the identification information of the login interface control to the automatic login plugin specifically includes:
[0035] Package the login verification information corresponding to the target application and the identification information of the login interface control into a folder;
[0036] The folder is sent to the automatic login plugin so that, upon receiving it, the automatic login plugin can extract the login verification information and the identification information of the login interface control from the folder.
[0037] Furthermore, in one embodiment of this application, issuing a login instruction to the target application specifically includes:
[0038] The auxiliary services of the terminal device are invoked to click the login button in the login interface control.
[0039] On the other hand, embodiments of this application provide an automatic application login system, including:
[0040] The first module is used to obtain the target application and login verification information;
[0041] The second module is used to decompile the target application to obtain the decompiled file of the target application;
[0042] The third module is used to locate the identification information of the login interface control corresponding to the target application in the decompiled file.
[0043] The fourth module is used to send the login verification information corresponding to the target application and the identification information of the login interface control to the automatic login plugin, so that the automatic login plugin can automatically log in to the target application.
[0044] The automatic login plugin performs automatic login through the following modules:
[0045] The fifth module is used to find the login interface control corresponding to the target application based on the identification information of the login interface control.
[0046] The sixth module inputs the login verification information into the login interface control and sends a login command to the target application.
[0047] On the other hand, embodiments of this application provide an automatic application login device, including:
[0048] At least one processor;
[0049] At least one memory for storing at least one program;
[0050] When the at least one program is executed by the at least one processor, the at least one processor implements the above-described application automatic login method.
[0051] A computer-readable storage medium storing processor-executable instructions, characterized in that the processor-executable instructions, when executed by a processor, are used to implement the above-described application automatic login method.
[0052] The advantages and beneficial effects of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application:
[0053] This application discloses an automatic login method for applications, applicable to smart terminals including but not limited to smartphones, PDAs, tablets, and smart TVs. The method obtains a target application and login verification information; decompiles the target application to obtain a decompiled file; then, it searches the decompiled file for the identifier information of the login interface control corresponding to the target application; subsequently, it sends the login verification information and the identifier information of the login interface control to an automatic login plugin; then, it locates the login interface control corresponding to the target application based on the identifier information of the login interface control; the login verification information is entered into the login interface control, and a login command is sent to the target application. This method, by decompiling the target application requiring automatic login and using the identifier information of the decompiled login interface control to enable the automatic login plugin to automatically log in to the target application, effectively improves the problem of tokens becoming invalid when the application is exited to the background, thus avoiding the time wasted by users manually re-entering their account and password, and effectively improving the user experience. Attached Figure Description
[0054] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the following description is provided with accompanying drawings of the relevant technical solutions in the embodiments of this application or the prior art. It should be understood that the accompanying drawings described below are only for the purpose of clearly illustrating some embodiments of the technical solutions of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without any creative effort.
[0055] Figure 1 This is a schematic diagram illustrating the implementation environment of an application automatic login method provided in this embodiment of the application;
[0056] Figure 2 This is a flowchart illustrating an automatic login method for an application provided in an embodiment of this application;
[0057] Figure 3 This is a schematic diagram of the automatic login process in an application automatic login method provided in this application embodiment;
[0058] Figure 4 This is a flowchart illustrating the process of determining the target application in an automatic application login method provided in this application embodiment;
[0059] Figure 5 This is a flowchart illustrating the generation of a reminder message in an application automatic login method provided in this embodiment of the application.
[0060] Figure 6 Provided in the embodiments of this application Figure 2 A specific flowchart of step 110;
[0061] Figure 7 Provided in the embodiments of this application Figure 2 A specific flowchart of step 130 in the middle section;
[0062] Figure 8 Provided in the embodiments of this application Figure 2 A specific flowchart of step 140;
[0063] Figure 9 Provided in the embodiments of this application Figure 3 A specific flowchart of step 160 in the middle section;
[0064] Figure 10 This is a schematic diagram of the structure of an application automatic login system provided in the embodiments of this application;
[0065] Figure 11 This is a schematic diagram of the structure of an application automatic login device provided in the embodiments of this application. Detailed Implementation
[0066] The present application will be further described below with reference to the accompanying drawings and specific embodiments. The described embodiments should not be considered as limitations on the present application, and all other embodiments obtained by those skilled in the art without inventive effort are within the scope of protection of the present application.
[0067] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0068] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.
[0069] Before providing a further detailed description of the embodiments of this application, the nouns and terms involved in the embodiments of this application will be explained, and the nouns and terms involved in the embodiments of this application shall be interpreted as follows.
[0070] 1) Application (App): An application is typically a software program capable of performing a specific function. Examples include word processing programs, database programs, web browsers, development tools, drawing and image editing tools, and communication tools. Applications can utilize certain services of the computer's operating system, as well as services supported by other applications. These requests for interaction with the operating system or other applications are usually called Application Programming Interfaces (APIs). Applications are the counterpart to system software; they encompass various programming languages available to users, and collections of applications written in those languages. They are divided into application packages and user programs. Application packages are collections of programs designed to solve specific problems using a computer, primarily for user use. Application software is the software provided to meet the application needs of users in different fields and for different problems. It can broaden the application scope of a computer system and amplify the functionality of the hardware.
[0071] 2) A plugin (also known as an addin, addon, or add-on, or plug-in) is a program written according to a specific application programming interface (API). It can only run on the system platform specified by the program (and may support multiple platforms simultaneously), and cannot run independently of the designated platform. This is because plugins need to call function libraries or data provided by the original clean system. Many software programs have plugins, and there are countless types of plugins. For example, in Internet Explorer, after installing a relevant plugin, the web browser can directly call the plugin program to process specific types of files.
[0072] 3) Reverse engineering, also known as computer software reverse engineering, refers to the process of "reverse analysis and research" of another person's software target program (such as an executable program) to deduce the design elements used in that software product, such as its ideas, principles, structure, algorithms, processing procedures, and operating methods. In certain specific cases, it may be possible to deduce the source code. Decompilation can be used as a reference when developing one's own software, or directly applied to one's own software product.
[0073] 4) Token: In computer authentication, a token refers to a temporary token; in lexical analysis, it means a mark. It's generally used for invitations and system logins. A token can also be more colloquially called a code. Before some data transmissions, the code is verified, and different codes authorize different data operations. For example, the USB 1.1 protocol defines four types of data packets: token packets, data packets, handshake packets, and special packets. Continuous data exchange between the host and USB device can be divided into three stages: the first stage involves the host sending a token packet; different token packets contain different codes, instructing the device to perform different tasks. The second stage involves sending a data packet, and the third stage involves the device returning a handshake packet.
[0074] 4) Control: A control encapsulates data and methods. A control can have its own properties and methods. Properties are simple accessors to the control's data, while methods provide simple, visible functionality. The control creation process includes design, development, and debugging (the so-called 3Ds development workflow), followed by control usage. Designing controls is a demanding task. Developing controls yourself differs significantly from using controls for visual program development, requiring programmers to be proficient in object-oriented programming. The greatest significance of creating controls lies in encapsulating repetitive tasks; secondly, it allows for the expansion of existing control functionality.
[0075] The embodiments of this application can acquire and process relevant data based on artificial intelligence technology. Artificial intelligence (AI) refers to the theories, methods, technologies, and application systems that use digital computers or machines controlled by digital computers to simulate, extend, and expand human intelligence, perceive the environment, acquire knowledge, and use that knowledge to obtain optimal results.
[0076] Foundational technologies for artificial intelligence generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing, operating / interactive systems, and mechatronics. AI software technologies mainly encompass computer vision, robotics, biometrics, speech processing, natural language processing, and machine learning / deep learning.
[0077] In daily development, users are always required to log in with a username and password before they can access other page functions. However, the tokens obtained after login are usually short-lived and expire when the application is exited to the background. Each time a vulnerability is fixed or a UI element is modified, the application needs to be rerun, requiring users to manually enter their username and password. Since usernames and passwords cannot be hardcoded into the code, this forces users to manually enter them. This process can occur dozens of times a day, consuming a significant amount of development time.
[0078] To address the issue of multiple manual logins required for applications in related technologies, leading to low user efficiency and negatively impacting user experience, this application provides an automatic application login method, system, device, and storage medium. These are applicable to smart terminals including, but not limited to, smartphones, PDAs, tablets, and smart TVs. The method acquires a target application and login verification information; decompiles the target application to obtain a decompiled file; then, it searches the decompiled file for the identifier information of the login interface control corresponding to the target application; subsequently, it sends the login verification information and the identifier information of the login interface control to an automatic login plugin; then, it locates the corresponding login interface control based on the identifier information of the login interface control; the login verification information is entered into the login interface control, and a login command is sent to the target application. This method, by decompiling the target application requiring automatic login and using the identifier information of the decompiled login interface control to enable the automatic login plugin to automatically log in to the target application, effectively improves the problem of tokens becoming invalid when the application is exited to the background. This avoids users spending significant time manually re-entering their account and password, thus significantly improving the user experience.
[0079] Figure 1 This is a schematic diagram illustrating the implementation environment of an application automatic login method provided in an embodiment of this application. (Refer to...) Figure 1The main hardware and software components of this implementation environment include an operating terminal 101 and a server 102, which are communicatively connected. The application's automatic login method can be configured to execute independently on the operating terminal 101, independently on the server 102, or based on the interaction between the two. The choice can be made appropriately according to the actual application, and this embodiment does not impose specific limitations on this. Furthermore, the operating terminal 101 and the server 102 can be nodes in a blockchain, and this embodiment does not impose specific limitations on this either.
[0080] Specifically, the operating terminal 101 in this application may include, but is not limited to, any one or more of the following: smartwatch, smartphone, computer, personal digital assistant (PDA), smart voice interaction device, smart home appliance, or in-vehicle terminal. The server 102 may be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. The operating terminal 101 and the server 102 can establish a communication connection via a wireless network or wired network. This wireless network or wired network uses standard communication technologies and / or protocols. The network can be the Internet or any other network, including but not limited to any combination of Local Area Network (LAN), Metropolitan Area Network (MAN), Wide Area Network (WAN), mobile, wired or wireless network, private network, or virtual private network.
[0081] Figure 2 This is a flowchart of an automatic application login method provided in an embodiment of this application. The execution subject of this method can be at least one of an operating terminal or a server. Figure 2 This example illustrates how to configure the application's automatic login method for execution on the operating terminal. (Refer to...) Figure 2 The automatic login method for this application includes, but is not limited to, steps 110 to 140.
[0082] Step 110: Obtain the target application and login verification information.
[0083] In step 110, the target application refers to the application that the user needs to log in to automatically. The login verification information mainly includes the login account and login password. Specifically, in this embodiment, there are no restrictions on the acquisition channels of the target application and the login verification information. The target application can be downloaded directly from the app store on the smart terminal, or it can be obtained from other electronic devices and computer systems through data transmission interfaces or remote communication. The login verification information can be directly entered by the user on the smart terminal, or it can be obtained from other electronic devices and computer systems through data transmission interfaces or remote communication.
[0084] In the embodiments described herein, the specific technical details are illustrated using an Android-based APP as an example. The APP's software package format is APK file format. APK (Android application package) is an application package file format used by the Android operating system for distributing and installing mobile applications and middleware.
[0085] Step 120: Decompile the target application to obtain the decompiled file of the target application.
[0086] For an Android application's code to run on an Android device, it must first be compiled and then packaged into a file that the Android system can recognize and run. This file format that the Android system can recognize and run is called an "APK". An APK file contains compiled code files (.dex files), file resources, native resource files (assets), certificates, and a manifest file. Decompiling the target application is the process of obtaining these code files, file resources, native resource files, and certificates. For Android-based apps, whose packages are in APK format, decompilation tools can be used to decompile the APK package to obtain the layout files. These decompilation tools include, but are not limited to, Android Studio, apktool, and AXMLPrinter2.jar.
[0087] Step 130: Locate the identification information of the login interface control corresponding to the target application in the decompiled file.
[0088] In this step, it is necessary to traverse the decompiled files and search for the identification information of the login interface control corresponding to the target application. The login interface control has specific identification information, which records prompts for the user to enter information in the input box. These prompts are the keywords of the input box control. The corresponding login interface control can be found based on the keywords, and its identification information is recorded and saved.
[0089] Step 140: Send the login verification information corresponding to the target application and the identification information of the login interface control to the automatic login plugin so that the automatic login plugin can automatically log in to the target application.
[0090] In this step, the login verification information corresponding to the target application and the identification information of the login interface control need to be sent to the automatic login plugin, which then performs automatic login to the target application. Specifically, in this embodiment, there are no restrictions on the method of sending the login verification information and the identification information of the login interface control. The above information can be sent directly to the automatic login plugin, or it can be packaged first and then sent to the automatic login plugin.
[0091] Reference Figure 3 The automatic login plugin performs automatic login through the following steps:
[0092] Step 150: Locate the login interface control corresponding to the target application based on the identification information of the login interface control;
[0093] Step 160: Enter the login verification information in the login interface control and send a login command to the target application.
[0094] In steps 150-160, an automatic login plugin needs to be pre-configured on the smart terminal. Control commands are then issued to this plugin to control the smart terminal. The plugin locates the account input box, password input box, and login button control corresponding to the target application. The pre-obtained login account is entered into the account input box, and the pre-obtained login password is entered into the password input box. The plugin then issues a click command to the login button control (i.e., issues a login command) to achieve automatic login.
[0095] This application provides a method, system, device, and storage medium for automatic application login, applicable to smart terminals including but not limited to smartphones, PDAs, tablets, and smart TVs. The method obtains a target application and login verification information; decompiles the target application to obtain a decompiled file; then, it searches the decompiled file for the identifier information of the login interface control corresponding to the target application; subsequently, it sends the login verification information and the identifier information of the login interface control to an automatic login plugin; then, it locates the login interface control corresponding to the target application based on the identifier information of the login interface control; the login verification information is entered into the login interface control, and a login command is sent to the target application. This method, by decompiling the target application requiring automatic login and using the identifier information of the decompiled login interface control to enable the automatic login plugin to automatically log in to the target application, effectively improves the problem of tokens becoming invalid when the application is exited to the background, thus avoiding the time wasted by users manually re-entering their account and password, and effectively improving the user experience.
[0096] In addition, the application automatic login method according to the above embodiments of this application may also have the following additional technical features:
[0097] refer to Figure 4 As a further optional embodiment, in one embodiment of this application, the automatic application login method further includes the following steps:
[0098] Step 210: Locate the package name and login interface class name corresponding to the target application in the decompiled file;
[0099] Step 220: Send the package name corresponding to the target application and the login interface class name to the automatic login plugin;
[0100] Step 230: Obtain the package name and login interface class name corresponding to the current application;
[0101] Step 240: Match the package name and login interface class name of the current application with the package name and login interface class name obtained by the automatic login plugin to determine whether the current application is the target application.
[0102] In this embodiment, an automatic login plugin needs to be pre-set on the smart terminal. Control commands are issued to this plugin to control the smart terminal. The target application is run via the automatic login plugin, and then each screen of the target application's interface corresponds to an Activity. It is determined whether the Activity's identifier matches the identifier of the recorded password input box control. If so, the Activity searches for an input box control identifier that matches the recorded password input box control identifier. If found, the input box control is identified as a password input box control, and the interface corresponding to the Activity is identified as the login screen. Activity is one of the four most basic and commonly used components in Android. The four Android components are Activity, Service, Content Provider, and BroadcastReceiver. An Activity is an application component that provides a screen for user interaction to complete a task. All operations within an Activity are closely related to the user; it is a component responsible for user interaction and can display specified controls using setContentView(View). In an Android application, an Activity is typically a single screen that can display controls and listen for and handle user events in response. Activities communicate with each other via Intents.
[0103] refer to Figure 5 As a further optional embodiment, the application automatic login method further includes the following steps:
[0104] Step 310: Detect the login status of the target application;
[0105] Step 320: When the login status of the target application is offline, generate an offline reminder message.
[0106] In this embodiment, it is necessary to detect the login status of the target application. Specifically, in this embodiment, there is no restriction on the channel for obtaining the login status of the target application. When the obtained login status of the target application is offline, an offline reminder message is generated. The smart terminal will respond accordingly based on the reminder message, and the status feedback display will be achieved through indicator lights, sound, and the display module. The status feedback display method of the display module can be to directly remind the user in the form of text on the display screen of the smart terminal or the display interface of the APP. The text can be Chinese characters or other languages. Optionally, the offline reminder message can also be displayed by changing the display color of the preset offline reminder message prompt area from a first color (such as green) to a second color (such as red) on the display screen of the smart terminal or the display interface of the APP.
[0107] refer to Figure 6 As a further optional embodiment, the step of obtaining the target application and login verification information specifically includes:
[0108] Step 111: Acquire the voice data of the person collected by the terminal device;
[0109] Step 112: Match the voice data of the person with the voiceprint database corresponding to the target person to determine whether the voice data of the person includes the target voice data;
[0110] Step 113: When the voice data of the person includes target voice data, extract the target voice data;
[0111] Step 114: Perform speech recognition on the target speech data to obtain the text content of the target speech data;
[0112] Step 115: Extract the text feature information of the text content to obtain login verification information.
[0113] In this embodiment, user voice data can be collected, then speech recognition can be performed on the voice data to obtain corresponding text content, and then text feature information can be extracted from the text content to obtain login verification information. It is understood that the name of the target application can also be obtained for locating the corresponding target application.
[0114] The voice data mainly includes voice data collected by smart terminals. Specifically, before extracting text feature information, it is necessary to identify the voice data to determine whether it belongs to the user. Generally, voice data is unstructured, so feature extraction is required for easier processing. The extracted voiceprint features are then input into a corresponding machine learning model for comparison, and the model outputs the degree of similarity between the voiceprint features of the voice data and the voiceprint features of the target person to determine whether the voice data contains the target voice data.
[0115] During the matching process, a targeted machine learning model can be trained to calculate similarity, outputting the similarity between the acoustic feature information of the target person's voice data and the acoustic feature information of the target person's voice data. This similarity represents the degree of similarity between the acoustic feature information of the target person's voice data and the target person's voice data. When the similarity value reaches a certain threshold, it can be considered that the voiceprint features are identical, or that the target person's voice data includes the target person's voice data. Furthermore, in some embodiments, vector indexes can be set for the vector-based acoustic feature information to reduce the amount of data computation during the matching query process.
[0116] When extracting text feature information, the target speech data needs to be textualized first. Automatic Speech Recognition (ASR) technology can be used to perform speech recognition on the target speech data to obtain the text content of the target speech data. Then, the text feature information of the text content can be extracted. For example, the text content of the target speech data can be converted into structured data, such as vectors, through natural language processing technology, and the converted structured data can be used as text feature information.
[0117] Figure 7 As a further optional embodiment, the step of searching for the identification information of the login interface control corresponding to the target application in the decompiled file specifically includes:
[0118] Step 131: Perform keyword recognition on the decompiled file to determine whether the decompiled file contains target file data;
[0119] Step 132: When the decompiled file contains target file data, extract and save the target file data;
[0120] The target file data includes the identification information of the login interface control corresponding to the target application.
[0121] In this embodiment, it is necessary to traverse the decompiled files obtained from the decompilation process. A targeted machine learning model can be modeled and trained to identify keywords. Once target file data containing keywords is identified, the target file data is extracted and saved. Here, a labeled training dataset can be used for training. The training dataset can be input into the initialized keyword recognition model for training. Specifically, after inputting the data from the training dataset into the initialized keyword recognition model, the model outputs the recognition result, i.e., the keyword prediction result. The accuracy of the recognition model's prediction can be evaluated based on the keyword prediction result and the aforementioned labels, thereby updating the model's parameters. For the keyword recognition model, the accuracy of the model's prediction result can be measured by a loss function. The loss function is defined on a single training data point and is used to measure the prediction error of a training data point. Specifically, the loss value of the training data point is determined by the label of the single training data point and the model's prediction result for that training data point. In actual training, a training dataset contains a large number of training data points. Therefore, a cost function is generally used to measure the overall error of the training dataset. The cost function is defined on the entire training dataset and is used to calculate the average prediction error of all training data, which can better measure the model's prediction performance. For general machine learning models, the aforementioned cost function, plus a regularization term to measure model complexity, can serve as the training objective function. Based on this objective function, the loss value of the entire training dataset can be calculated. There are many commonly used loss functions, such as 0-1 loss function, squared loss function, absolute loss function, log loss function, cross-entropy loss function, etc., which can all be used as loss functions for machine learning models, and will not be elaborated on here. In the embodiments of this application, any one of these loss functions can be selected to determine the training loss value. Based on the training loss value, the backpropagation algorithm is used to update the model parameters. After several iterations, a trained keyword recognition model can be obtained. The specific number of iterations can be preset, or training can be considered complete when the accuracy requirement on the test set is met.
[0122] refer to Figure 8 As a further optional embodiment, in one embodiment of this application, sending the login verification information corresponding to the target application and the identification information of the login interface control to the automatic login plugin specifically includes:
[0123] Step 141: Package the login verification information corresponding to the target application and the identification information of the login interface control into a folder;
[0124] Step 142: Send the folder to the automatic login plugin so that the automatic login plugin can extract the login verification information and the identification information of the login interface control from the folder after receiving it.
[0125] In this embodiment, the login verification information corresponding to the target application and the identification information of the login interface control are packaged into a folder. This folder is sent to the automatic login plugin, and the login verification information and the identification information of the login interface control are decompressed from the folder. A file packaging tool that packages multiple files into an executable file provides resource protection and can also add passwords or serial numbers can be used to encrypt and compress files. Packaging files saves disk space and makes sending and receiving files faster, more convenient, and easier to manage. File packaging is particularly useful for transferring large amounts of images, music, and multiple video files.
[0126] To ensure data transmission security, the folders to be transmitted can be encrypted. Specifically, upon receiving an instruction to encrypt a file, the file to be encrypted is encrypted to obtain the encrypted target file, and key information corresponding to the encrypted target file is generated and stored. When file decompression is required, an authentication instruction is received to verify the user's login identity. After successful authentication, a list of encrypted target files corresponding to the verified identity is obtained. A file execution instruction is received based on this list, and the encrypted target file is invoked according to the instruction. The encrypted target file is then decrypted in memory using the key information corresponding to the encrypted target file, and the decrypted encrypted target file is executed.
[0127] For identity verification, facial recognition can be used. Specifically, after acquiring image data, feature extraction is required to obtain facial recognition features. Then, these facial recognition features are matched against target recognition features in a database containing the user's face to determine if the acquired image information includes the user's facial image information, thereby confirming whether the person performing the decompression operation is indeed the user.
[0128] refer to Figure 9 As a further optional embodiment, issuing a login command to the target application specifically includes:
[0129] Step 410: Call the auxiliary services of the terminal device to click the login button in the login interface control.
[0130] In this embodiment, Android Accessibility service is used as the technical foundation. Accessibility monitors interface changes to detect the current Activity class name and app package name. When the Activity class name and app package name match, the application corresponding to the Activity class name and app package name is confirmed as the application requiring automatic login. Then, using the method provided by Accessibility NodeInfo (setting text for controls by ID), the account and password controls are sequentially filled with the account and password set in the plugin.
[0131] Reference Figure 10 This application also provides an automatic application login system, which includes:
[0132] The first module 1010 is used to obtain the target application and login verification information;
[0133] The second module 1020 is used to decompile the target application to obtain the decompiled file of the target application;
[0134] The third module 1030 is used to find the identification information of the login interface control corresponding to the target application in the decompiled file;
[0135] The fourth module 1040 is used to send the login verification information corresponding to the target application and the identification information of the login interface control to the automatic login plugin, so that the automatic login plugin can automatically log in to the target application.
[0136] The automatic login plugin performs automatic login through the following modules:
[0137] The fifth module 1050 is used to find the login interface control corresponding to the target application based on the identification information of the login interface control.
[0138] The sixth module 1060 inputs the login verification information into the login interface control and sends a login command to the target application.
[0139] Understandable Figure 2 The content of the application automatic login method embodiments shown is applicable to the application automatic login system embodiments. The specific functions implemented by the application automatic login system embodiments are the same as those in this application automatic login system embodiment. Figure 2 The illustrated application automatic login method embodiment is the same, and the beneficial effects achieved are the same. Figure 2 The beneficial effects achieved by the illustrated application automatic login method embodiment are also the same.
[0140] Reference Figure 11 This application also discloses an automatic application login device, comprising:
[0141] At least one processor 1110;
[0142] At least one memory 1120 is used to store at least one program;
[0143] When at least one program is executed by at least one processor 1110, such that at least one processor 1110 performs as follows: Figure 2 The example shown is an embodiment of an application automatic login method.
[0144] It is understandable that, such as Figure 2 The content of the application automatic login method embodiments shown is applicable to the embodiments of this computer device, and the specific functions implemented by the embodiments of this computer device are the same as those shown. Figure 2 The application automatic login method shown in the embodiment is the same, and the beneficial effects achieved are the same as those described above. Figure 2 The beneficial effects achieved by the illustrated application automatic login method embodiment are also the same.
[0145] This application also discloses a computer-readable storage medium storing a processor-executable program, which, when executed by a processor, is used to implement, for example... Figure 2 The example shown is an embodiment of an application automatic login method.
[0146] It is understandable that, such as Figure 2 The content of the application automatic login method embodiments shown is applicable to the embodiments of this computer-readable storage medium. The specific functions implemented by the embodiments of this computer-readable storage medium are the same as those shown below. Figure 2 The application automatic login method shown in the embodiment is the same, and the beneficial effects achieved are the same as those described above. Figure 2 The beneficial effects achieved by the illustrated application automatic login method embodiment are also the same.
[0147] In some alternative embodiments, the functions / operations mentioned in the block diagrams may not occur in the order shown in the operation diagrams. For example, depending on the functions / operations involved, two consecutively shown blocks may actually be executed substantially simultaneously, or the blocks may sometimes be executed in reverse order. Furthermore, the embodiments presented and described in the flowcharts of this application are provided by way of example to provide a more comprehensive understanding of the technology. The disclosed methods are not limited to the operations and logic flows presented herein. Alternative embodiments are contemplated in which the order of various operations is changed and sub-operations described as part of a larger operation are executed independently.
[0148] Furthermore, although this application is described in the context of functional modules, it should be understood that, unless otherwise stated to the contrary, one or more of the functions and / or features may be integrated into a single physical device and / or software module, or one or more functions and / or features may be implemented in a separate physical device or software module. It is also understood that a detailed discussion of the actual implementation of each module is unnecessary for understanding this application. Rather, given the properties, functions, and internal relationships of the various functional modules in the apparatus disclosed herein, the actual implementation of the module will be understood within the scope of conventional technology for an engineer. Therefore, those skilled in the art can implement the application set forth in the claims using ordinary techniques without excessive experimentation. It is also understood that the specific concepts disclosed are merely illustrative and not intended to limit the scope of this application, which is determined by the full scope of the appended claims and their equivalents.
[0149] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0150] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device.
[0151] More specific examples of computer-readable media (a non-exhaustive list) include: electrical connections (electronic devices) having one or more wires, portable computer disk drives (magnetic devices), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Furthermore, computer-readable media can even be paper or other suitable media on which programs can be printed, because programs can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in computer memory.
[0152] It should be understood that various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0153] In the foregoing description of this specification, the references to terms such as "one embodiment," "another embodiment," or "some embodiments," etc., indicate that a specific feature, structure, material, or characteristic described in connection with an embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0154] Although embodiments of this application have been shown and described, those skilled in the art will understand that various changes, modifications, substitutions and variations can be made to these embodiments without departing from the principles and spirit of this application, the scope of which is defined by the claims and their equivalents.
[0155] The foregoing has provided a detailed description of the preferred embodiments of this application. However, this application is not limited to these embodiments. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of this application. All such equivalent modifications or substitutions are included within the scope defined by the claims of this application.
[0156] In the description of this specification, the references to terms such as "one embodiment," "another embodiment," or "some embodiments," etc., indicate that a specific feature, structure, material, or characteristic described in connection with an embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0157] Although embodiments of this application have been shown and described, those skilled in the art will understand that various changes, modifications, substitutions and variations can be made to these embodiments without departing from the principles and spirit of this application, the scope of which is defined by the claims and their equivalents.
Claims
1. An automatic login method for an application, characterized in that, Applied to a smart terminal, wherein the smart terminal is equipped with an automatic login plugin, the method includes the following steps: Obtain the target application and login verification information; The target application is decompiled to obtain the decompiled file of the target application; Locate the identification information of the login interface control corresponding to the target application in the decompiled file; Package the login verification information corresponding to the target application and the identification information of the login interface control into a folder; The folder is sent to the automatic login plugin, so that after receiving it, the automatic login plugin decompresses the login verification information and the identification information of the login interface control from the folder, so that the automatic login plugin can automatically log in to the target application. The automatic login plugin performs automatic login through the following steps: The login interface control corresponding to the target application is located based on the identification information of the login interface control. Enter the login verification information in the login interface control and send a login command to the target application; The step of sending the folder to the automatic login plugin so that the automatic login plugin, upon receiving it, decompresses the login verification information and the identification information of the login interface control from the folder includes: upon receiving an instruction to encrypt a file, encrypting the folder to obtain an encrypted target file, generating key information corresponding to the encrypted target file, and storing the key information in relation to the encrypted target file; when file decompression is required, receiving an authentication instruction to verify the user's login identity, obtaining a list of encrypted target files corresponding to the verified identity after successful authentication, receiving a file execution instruction through the encrypted target file list, calling the encrypted target file according to the file execution instruction, decrypting the encrypted target file in memory according to the key information corresponding to the encrypted target file, running the decrypted encrypted target file, and decompressing the login verification information and the identification information of the login interface control from the decrypted encrypted target file.
2. The application automatic login method according to claim 1, characterized in that, It also includes the following steps: Locate the package name and login interface class name corresponding to the target application in the decompiled file; Send the package name corresponding to the target application and the login interface class name to the automatic login plugin; Get the package name and login interface class name of the current application; The package name and login interface class name of the current application are matched with the package name and login interface class name obtained by the automatic login plugin to determine whether the current application is the target application.
3. The application automatic login method according to claim 1, characterized in that, It also includes the following steps: Detect the login status of the target application; When the target application is logged in as offline, an offline reminder message is generated.
4. The application automatic login method according to claim 1, characterized in that, The step of obtaining the target application and login verification information specifically includes: Acquire the voice data of the person collected by the terminal device; The voice data of the person is matched with the voiceprint database corresponding to the target person to determine whether the voice data of the person includes the target voice data. When the voice data of the person includes target voice data, extract the target voice data; Perform speech recognition on the target speech data to obtain the text content of the target speech data; The text feature information of the text content is extracted to obtain login verification information.
5. The application automatic login method according to claim 1, characterized in that, The step of searching for the identification information of the login interface control corresponding to the target application in the decompiled file specifically includes: The decompiled file is subjected to keyword recognition to determine whether it contains target file data. When the decompiled file contains target file data, extract and save the target file data; The target file data includes the identification information of the login interface control corresponding to the target application.
6. The application automatic login method according to any one of claims 1-5, characterized in that, The step of issuing a login command to the target application specifically includes: The auxiliary services of the terminal device are invoked to click the login button in the login interface control.
7. An application automatic login system, characterized in that, The system is applied to smart terminals, which are equipped with an automatic login plugin, and includes: The first module is used to obtain the target application and login verification information; The second module is used to decompile the target application to obtain the decompiled file of the target application; The third module is used to find the identification information of the login interface control corresponding to the target application in the decompiled file; The fourth module is used to package the login verification information corresponding to the target application and the identification information of the login interface control into a folder; send the folder to the automatic login plugin, so that after receiving it, the automatic login plugin decompresses the login verification information and the identification information of the login interface control from the folder; so that the automatic login plugin can automatically log in to the target application. The automatic login plugin performs automatic login through the following modules: The fifth module is used to find the login interface control corresponding to the target application based on the identification information of the login interface control. The sixth module is used to input the login verification information in the login interface control and send a login command to the target application; The step of sending the folder to the automatic login plugin so that the automatic login plugin, upon receiving it, decompresses the login verification information and the identification information of the login interface control from the folder includes: upon receiving an instruction to encrypt a file, encrypting the folder to obtain an encrypted target file, generating key information corresponding to the encrypted target file, and storing the key information in relation to the encrypted target file; when file decompression is required, receiving an authentication instruction to verify the user's login identity, obtaining a list of encrypted target files corresponding to the verified identity after successful authentication, receiving a file execution instruction through the encrypted target file list, calling the encrypted target file according to the file execution instruction, decrypting the encrypted target file in memory according to the key information corresponding to the encrypted target file, running the decrypted encrypted target file, and decompressing the login verification information and the identification information of the login interface control from the decrypted encrypted target file.
8. An application automatic login device, characterized in that, include: At least one processor; At least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor implements the application automatic login method as described in any one of claims 1-6.
9. A computer-readable storage medium storing processor-executable instructions, characterized in that, The processor-executable instructions, when executed by the processor, are used to implement the application automatic login method as described in any one of claims 1-6.