Information transmission method, terminal equipment, chip system and storage medium

By detecting the information type and request type of the first application, the target information is determined from the clipboard, solving the problem of clipboard information leakage, achieving security and accuracy in information transmission, and improving user experience.

CN121957930APending Publication Date: 2026-05-01HUAWEI DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
HUAWEI DEVICE CO LTD
Filing Date
2024-10-31
Publication Date
2026-05-01

AI Technical Summary

Technical Problem

Information in the clipboard can be read by any application, posing a risk of information leakage and reducing user experience.

Method used

By detecting the information type and request type of the first application, the target information is determined from the clipboard, and only information related to the first application is transmitted. Access control is performed using system services to ensure the security and accuracy of information transmission.

Benefits of technology

It reduces the risk of information leakage, improves user experience, ensures the compliance and security of information transmission, and reduces access to unnecessary information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121957930A_ABST
    Figure CN121957930A_ABST
Patent Text Reader

Abstract

The invention provides an information transmission method, terminal equipment, a chip system and a storage medium, and the method comprises the steps: when an information obtaining request of a first application for a clipboard is detected, obtaining the clipboard based on the type of information which can be requested by the first application and / or the type of information requested by the first application; and determining target information from the information of the clipboard. Therefore, the target information related to the first application in the information of the clipboard can be transmitted to the first application based on the type of the information requested by the first application and / or the type of the information requested by the first application; the information leakage risk possibly caused by the information irrelevant to the first application transmitted to the first application is avoided, the risk of privacy information leakage is further reduced, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

An information transmission method, terminal device, chip system, and storage medium Technical Field

[0001] This application relates to the field of terminals, and more particularly to an information transmission method, terminal equipment, chip system, and storage medium. Background Technology

[0002] The clipboard is a region in memory used to transfer and share information between various applications. Users can copy information from one application to another using the clipboard. However, information in the clipboard can be read by any application, potentially posing a risk of information leakage and degrading the user experience. Summary of the Invention

[0003] This application provides an information transmission method, terminal device, chip system, and storage medium, which can reduce the risk of information leakage and improve the user experience.

[0004] In a first aspect, an information transmission method is provided, the method comprising: upon detecting a request from a first application for information access to the clipboard, determining target information from information in the clipboard based on the type of information that the first application can request and / or the type of information requested by the first application; and transmitting the target information to the first application.

[0005] The method can be executed by the terminal device, or by a module (such as a processor, chip, or chip system) applied in the terminal device, or by a logic module or software that can implement all or part of the functions of the terminal device.

[0006] The above solution, based on the type of information that the first application can request and / or the type of information requested by the first application, transmits the target information related to the first application from the clipboard information to the first application. This avoids transmitting information unrelated to the first application, which could lead to information leakage risks, further reducing the risk of privacy information leakage and improving user experience.

[0007] In one possible implementation, the method is executed by a system service. This system service is used for access control of the clipboard.

[0008] In one possible implementation, the system service resides in the framework layer of the terminal device.

[0009] It should be understood that the type of target information is a target type, wherein the target type belongs to the type of information that the first application can request; or, the target type belongs to the type of information requested by the first application; or, the target type belongs to both the type of information that the first application can request and the type of information requested by the first application.

[0010] The information retrieval request may include the type of information requested by the first application. Of course, the information retrieval request may also not include the type of information requested by the first application.

[0011] In one possible implementation, if the information retrieval request carries the type of information requested by the first application, and the terminal device stores the type of information that the first application can request, then the target type belongs to both the type of information that the first application can request and the type of information requested by the first application.

[0012] In one possible implementation, if the information retrieval request does not carry the type of information requested by the first application, but the terminal device stores the type of information that the first application can request, the target type belongs to the type of information that the first application can request.

[0013] In one possible implementation, if the information retrieval request carries the type of information requested by the first application, and the terminal device does not store the type of information that the first application can request, the target type belongs to the type of information requested by the first application.

[0014] It should be understood that the type of information that the first application can request refers to the type of information that the first application has the permission to request. The type of information requested by the first application refers to the type of information that the first application actually requests.

[0015] In one possible implementation, upon detecting a request from a first application to retrieve information from the clipboard, target information is determined from the clipboard information based on the type of information that the first application can request and / or the type of information requested by the first application. This includes: determining a target type based on the type of information that the first application can request and / or the type of information requested by the first application; for each target type, detecting whether information of type target type exists in the clipboard information; if the detection result indicates that information of type target type exists in the clipboard information, determining the target information from the clipboard information based on the target type. Wherein, the target type belongs to the type of information that the first application can request, and belongs to the type of information requested by the first application; or, the target type belongs to the type of information that the first application can request; or, the target type belongs to the type of information requested by the first application.

[0016] In one possible implementation, the number of target information items can be at least one.

[0017] In one possible implementation, determining the target information from the clipboard information includes: determining target information corresponding to one target type or target information corresponding to multiple target types from the clipboard information. A target type can be one of the following: address, phone number, date, ID card number, verification code, bank card number, or link. Multiple target types can be a combination of the following: address, phone number, date, ID card number, verification code, bank card number, and link.

[0018] In one possible implementation, the information retrieval request does not carry the type of information requested by the first application, but the terminal device stores the types of information that the first application can request. Based on the types of information that the first application can request, target information is determined from the clipboard information. The types of information that the first application can request can be used as target types, and the number of target types can be at least one. For each target type, if information of the target type is detected in the clipboard information, that information of the target type is used as the target information; or, for each target type, if information of the target type is detected in the clipboard information, the information with the most recent write time among the target type's information is used as the target information. Alternatively, the information with the most recent write time among multiple target types is determined as the target information.

[0019] The above solution filters the clipboard information based on the types of information that the first application can request, thereby obtaining the target information. This achieves precise information filtering, ensures that the type of target information conforms to the requested permissions, reduces access to irrelevant information by the first application, and lowers the risk of information leakage caused by unnecessary information exposure.

[0020] In one possible implementation, the information retrieval request carries the type of information requested by the first application, and the terminal device also stores the types of information that the first application can request. A target type can be defined as a type common to both the type of information requested by the first application and the types of information that the first application can request; the number of target types can be at least one. For each target type, if information of the target type is detected in the clipboard, that information of the target type is used as the target information; or, for each target type, if information of the target type is detected in the clipboard, the information with the most recent write time among the target type's information is used as the target information.

[0021] The above solution verifies the type of information requested by the first application and determines the target information from the clipboard based on the matched type (i.e., the common type mentioned above). This prevents non-compliant information retrieval requests (such as tampered information retrieval requests) from being directly processed, thereby ensuring the security of clipboard information access, preventing access operations that may infringe on user privacy, and enhancing the security of clipboard information access.

[0022] In one possible implementation, the information retrieval request carries the type of information requested by the first application, but the terminal device does not store the type of information that the first application can request. Target information can be determined from the clipboard information based on the type of information requested by the first application. The type of information requested by the first application can be used as the target type, and the number of target types can be at least one. For each target type, if information of the target type is detected in the clipboard information, the information of the target type is used as the target information; or, for each target type, if information of the target type is detected in the clipboard information, the information with the most recent write time among the target type's information is used as the target information.

[0023] The above solution filters the clipboard information based on the type of information requested by the first application to obtain the target information, achieving accurate information filtering and ensuring that the type of target information meets the requirements (i.e., meets the current request). This reduces the first application's access to irrelevant information and lowers the risk of information leakage caused by unnecessary information exposure.

[0024] In one possible implementation, based on the type of information that the first application can request and / or the type of information requested by the first application, the target information is determined from the clipboard information. This includes: for each target type, if there is information in the clipboard information of the target type with a write time within a target time period, then some or all of the information of the target type with a write time within the target time period is determined as the target information. For example, the information of the target type with a write time within the target time period that has the most recent write time is determined as the target information. The number of target types is at least one.

[0025] The above solution can filter clipboard information based on target type and write time to obtain target information, achieving precise information filtering. This ensures that the target information type meets the requested permissions and / or requirements, while also guaranteeing the timeliness of the target information. It reduces the first application's access to old or irrelevant information, lowering the risk of information leakage due to unnecessary exposure. Furthermore, it ensures the relevance, usability, and effectiveness of the information delivered to the first application, further enhancing the user experience.

[0026] It should be understood that write time refers to the point in time when information is written to the clipboard or the point in time when information is stored in the clipboard.

[0027] Type detection and write time detection can be performed simultaneously, or type detection can be performed first, followed by write time detection. Alternatively, write time detection can be performed first, followed by type detection. Type detection checks whether the clipboard contains information of the target type. Write time detection checks whether the clipboard contains information whose write time falls within the target time period. This application does not impose a restriction on the order of type detection and write time detection.

[0028] In one possible implementation, the type of information that the first application can request is obtained in one of the following ways: pre-set by the user; obtained from the installation package of the first application; or obtained from the configuration file associated with the installation package of the first application.

[0029] In one possible implementation, the target information is determined from the clipboard information based on the target type and the matching rules corresponding to the target type. The target type can be a first type or a second type.

[0030] The target information can be information matched based on matching rules from information of type target in the clipboard.

[0031] The above scheme, based on the matching rules corresponding to the target type, filters the information in the clipboard that is of the target type to obtain the target information, thereby reducing the risk of misjudgment and omission due to type identification and improving the accuracy of the determined target information.

[0032] In one possible implementation, the information retrieval request carries the matching rules corresponding to the target type.

[0033] In one possible implementation, the target type is a second type, such as a link; the matching rule for the second type is a regular expression or other expression containing wildcards.

[0034] In one possible implementation, there are multiple target types, and at least one target information can be determined from clipboard information based on matching rules corresponding to multiple target types and second types. The multiple target types can be multiple second types, or the multiple target types can include at least one first type and at least one second type. For example, a second type could be a link.

[0035] The above solution considers that multiple target types may include information types defined and used internally by the first application but not widely recognized externally—i.e., second types. Based on matching rules corresponding to multiple target types and second types, target information can be determined from clipboard information, reducing the risk of misjudgment or omission due to type identification and improving the accuracy of the determined target information. It prevents the extracted target information from being incompatible or unusable by the first application due to potential misjudgment or omission in type identification, thus enhancing the effectiveness, relevance, and usability of the transmitted target information.

[0036] The first type is the public type, which is a widely recognized type. This type includes one of the following: address, phone number, date, ID card number, verification code, bank card number, etc. The second type includes all other types besides the first type, i.e., private types. Private types refer to information types defined and used internally within the application and not widely recognized externally. An example of a private type is a link.

[0037] In one possible implementation, at least one target information is determined from clipboard information based on multiple target types, matching rules corresponding to the second type, and the write time of clipboard information. The multiple target types can be multiple second types, or the multiple target types include at least one first type and at least one second type.

[0038] The above solution can determine target information from clipboard information based on multiple target types, matching rules corresponding to the second type, and writing time. This reduces the risk of misjudgment or omission due to type identification and reduces access to old information in the clipboard, thereby improving the effectiveness, relevance, practicality, and timeliness of the determined target information.

[0039] In one possible implementation, at least one target information is determined from clipboard information based on the target type, the matching rules corresponding to the target type, and the write time of the clipboard information. The target type is either a first type or a second type.

[0040] The above solution considers the target type, the corresponding matching rules, and the writing time. It filters clipboard information to obtain the target information, reducing the risk of misjudgment and omission due to type identification, thus preventing the extracted target information from being incompatible or unusable by the first application. Furthermore, it reduces access to old information, further improving the accuracy of the identified target information. This ensures the relevance, practicality, and effectiveness of the information delivered to the first application, further enhancing the user experience.

[0041] In one possible implementation, the target time period is the time period before the information retrieval request is detected, and the time elapsed since the information retrieval request was detected is the target time period.

[0042] In one possible implementation, each application corresponds to the same target duration, meaning all applications adhere to a single duration limit. When implementing access control for the clipboard, the set target duration is managed and controlled uniformly across all applications.

[0043] Based on the above solution, unified management of target durations improves the convenience of time management, simplifies related time management processes, and thus reduces the system load.

[0044] In one possible implementation, the target duration can be managed separately, meaning each application has its own target duration. The target duration for each application can be the same or different. The target duration for different applications can be user-defined. Alternatively, the target duration for different applications can be automatically determined by the terminal device.

[0045] The above solution, which manages the target duration for different applications separately, enables more refined time management and improves the flexibility of target duration settings.

[0046] For example, the time when the information retrieval request is detected is, say, time t0, the target duration is 30 seconds, and the target time period is (t0-30 seconds, t0).

[0047] In one possible implementation, the target time period is the time period preceding the current time that is equal to the target time.

[0048] The target time can be any time within a time period that is before the time the information acquisition request is detected and the time elapsed since the information acquisition request was detected is a preset duration. For example, if the time the information acquisition request is detected is t0 and the preset duration is 3 seconds, the target time can be any time within (t0-3s, t0), which can be represented as tn. The target duration for the first application is 30 seconds, and the target time period is (tn-30s, tn).

[0049] The above scheme uses a target duration to determine a target time period, allowing for filtering of clipboard information based on the write time within that period to identify the target information. This ensures the timeliness of the identified target information, reduces the first application's access to older clipboard information, and lowers the risk of information leakage due to the exposure of this information. Furthermore, it avoids unnecessary processing by the first application due to older information, reducing its computational complexity.

[0050] In one possible implementation, multiple applications include a first application, and the target duration is obtained by determining the target duration corresponding to the first application based on the identification information of the first application and a first correspondence relationship, wherein the first correspondence relationship characterizes the correspondence between the application and the duration.

[0051] The first correspondence can be set by the user or determined automatically by the terminal device.

[0052] The above solutions enable more refined time management and increase the flexibility of setting target durations.

[0053] In one possible implementation, a target duration is set for each application based on the frequency of historical clipboard accesses and / or the application's security level. This process is repeated to obtain the duration for each application across multiple applications, thereby establishing a first correspondence.

[0054] The above solution not only improves the precision of time management, but also strengthens information security and privacy protection, making clipboard access management more in line with actual application scenarios and user needs.

[0055] In one possible implementation, the information delivery method includes detecting whether there is information of type target type and written within a target time period in the clipboard information if one or more of the following conditions are met: information is written to the clipboard within the target time period; or, the first application is a non-risk application.

[0056] Based on the above scheme, if one or more conditions are met, checking whether there is information in the clipboard of the target type and whose write time is within the target time period can avoid meaningless type detection and write time detection, thereby reducing unnecessary resource consumption and improving the overall system operating efficiency.

[0057] In one possible implementation, the target information originates from a second application, and the target information is passed to a first application, including: passing the target information to the first application if the first application has permission to read information from the second application.

[0058] Based on the above scheme, target information from the second application in the clipboard is only passed to the first application if the first application has permission to read information from the second application. This provides a security guarantee for the first application's access to information in the clipboard, ensuring the compliance of information transmission and effectively preventing information leakage and misuse.

[0059] In one possible implementation, the information transmission method includes determining at least one application capable of reading information from the second application based on the identification information and a second correspondence of the second application, wherein the second correspondence represents the correspondence between the application and other applications capable of reading information from the application; and determining that the first application has permission to read information from the second application if a first application exists among the at least one application.

[0060] In one possible implementation, passing the target information to the first application includes: passing the target information to the first application if the first application is a non-risk application.

[0061] Based on the above solution, the legality and security of information transmission are ensured, and the risk of target information being leaked to risky applications is avoided.

[0062] In one possible implementation, the first application being a non-risk application can be determined upon detecting an information retrieval request, or the first application being a non-risk application can be determined before detecting an information retrieval request.

[0063] In a second aspect, embodiments of this application provide a terminal device, which includes a processor and a memory. The memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that the terminal device performs any of the methods in the first aspect.

[0064] Thirdly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when executed by a processor, causes the processor to perform any of the methods in the first aspect.

[0065] Fourthly, embodiments of this application provide a computer program product, which includes computer program code, such that when the computer program code is run by a terminal device, the terminal device executes any one of the methods in the first aspect.

[0066] Fifthly, embodiments of this application provide a chip system, which includes a processing circuit and a storage medium storing computer program instructions; when the computer program instructions are executed by the processing circuit, they implement any of the methods in the first aspect.

[0067] Optionally, the processing circuitry in the above-mentioned chip system can be replaced by a processor, and the storage medium can be replaced by a memory. Optionally, the chip system may also include a communication interface for enabling communication between the chip system and external devices.

[0068] The beneficial effects of the technical solutions in the second to fifth aspects of this application can be referred to the beneficial effects of the technical solutions in the first aspect, and will not be repeated here. Attached Figure Description

[0069] Figure 1 is a schematic diagram of the structure of a terminal device provided in an embodiment of this application;

[0070] Figure 2 is a schematic diagram of the software structure of a terminal device provided in an embodiment of this application;

[0071] Figure 3 is a schematic diagram of interface changes of a terminal device in the related technology provided in the embodiments of this application;

[0072] Figure 4 is a flowchart illustrating an information transmission method 400 provided in an embodiment of this application;

[0073] Figure 5 is a schematic diagram of the information layout of a clipboard provided in an embodiment of this application.

[0074] Figure 6 is a schematic diagram of information reading in the information transmission method provided in the embodiments of this application;

[0075] Figure 7 is a flowchart illustrating another information transmission method 700 provided in an embodiment of this application;

[0076] Figure 8 is a flowchart illustrating another information transmission method 800 provided in an embodiment of this application;

[0077] Figure 9 is a schematic diagram of the interface changes of a terminal device for an information transmission method provided in an embodiment of this application;

[0078] Figure 10 is a schematic diagram showing the changes in the display interface of a terminal device for another information transmission method provided in an embodiment of this application;

[0079] Figure 11 is a schematic diagram of the structure of a terminal device provided in an embodiment of this application. Detailed Implementation

[0080] The technical solutions in the embodiments of this application will now be described with reference to the accompanying drawings.

[0081] In the description of the embodiments of this application, unless otherwise stated, " / " means "or"; for example, A / B can mean A or B; "and / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist; for example, A and / or B can mean: A exists alone, A and B exist simultaneously, or B exists alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more.

[0082] Hereinafter, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first," "second," or "third" may explicitly or implicitly include one or more of that feature.

[0083] This application provides a terminal device for executing the information transmission method provided in this application. In some embodiments of this application, the terminal device may be a mobile phone, tablet computer, wearable device, in-vehicle device, augmented reality (AR) / virtual reality (VR) device, laptop computer, ultra-mobile personal computer (UMPC), netbook, personal digital assistant (PDA), etc., or may be other devices or apparatuses capable of information transmission. This application does not limit the specific type of terminal device.

[0084] For example, FIG1 is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application.

[0085] As shown in Figure 1, the terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 130, a universal serial bus (USB) interface 140, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, buttons 170, and a display screen 180.

[0086] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the terminal device 100. In other embodiments of this application, the terminal device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0087] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0088] The controller can serve as the central nervous system and command center of the terminal device 100. The controller can generate operation control signals based on the instruction opcode and timing signals to control the fetching and execution of instructions.

[0089] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0090] The processor 110 and the display screen 180 communicate through a display serial interface (DSI) to realize the display function of the terminal device 100.

[0091] The wireless communication function of the terminal device 100 can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.

[0092] Antennas 1 and 2 are used to transmit and receive electromagnetic wave signals. The structures of antennas 1 and 2 in Figure 1 are merely an example. Each antenna in terminal device 100 can be used to cover one or more communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with a tuning switch.

[0093] The terminal device 100 implements display functions through a GPU, a display screen 180, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 180 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0094] The display screen 180 is used to display images, videos, etc. The display screen 180 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Mini LED, a MicroLED, a Micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the terminal device 100 may include one or N display screens 180, where N is a positive integer greater than 1.

[0095] The external storage interface 120 can be used to connect an external storage card, such as a Micro SD card, to expand the storage capacity of the terminal device 100. The external storage card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external storage card.

[0096] Buttons 170 include a power button, volume buttons, etc. Buttons 170 can be mechanical buttons or touch-sensitive buttons. Terminal device 100 can receive button input and generate key signal inputs related to user settings and function control of terminal device 100.

[0097] The software system of terminal device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This application embodiment uses a layered Android system as an example to exemplify the software structure of terminal device 100.

[0098] Figure 2 is a software structure block diagram of the terminal device 100 according to an embodiment of this application.

[0099] It should be understood that a layered architecture can divide software into several layers, each with a clear role and division of labor; the layers can communicate with each other through software interfaces.

[0100] As shown in Figure 2, the Android system can be divided into four layers: from top to bottom, the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer. The application layer can include a series of application packages. The application framework layer can also be simply referred to as the framework layer. System services used for clipboard access control reside in this framework layer.

[0101] As shown in Figure 2, the application package may include applications such as camera, gallery, calendar, map, navigation, WLAN, Bluetooth, music, and video.

[0102] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.

[0103] As shown in Figure 2, the application framework layer may include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.

[0104] The window manager is used to manage windowed applications. It can retrieve screen size, determine the presence of a status bar, lock the screen, and capture screenshots, among other things.

[0105] Content providers store and retrieve data, making that data accessible to applications. This data can include videos, images, audio, phone calls made and received, browsing history and bookmarks, phone books, and more.

[0106] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views.

[0107] The phone manager is used to provide communication functions for terminal device 100. For example, it manages call status (including connection, hang-up, etc.).

[0108] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.

[0109] The notification manager allows applications to display notification information in the status bar. It can be used to convey informational messages and can disappear automatically after a short time without user interaction.

[0110] The Android runtime consists of core libraries and a virtual machine. The Android runtime is responsible for scheduling and managing the Android system.

[0111] The core library consists of two parts: one part is the functionalities that need to be called by the Java language, and the other part is the Android core library.

[0112] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.

[0113] The system library can include multiple functional modules, such as: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES for embedded systems) and 2D graphics engines (e.g., Skia graphics library (SGL)).

[0114] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.

[0115] The media library supports playback and recording of various audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, Moving Picture Experts Group Audio Layer III (MP3), Advanced Audio Coding (AAC), Adaptive Multi-rate (AMR), Joint Photographic Experts Group (JPG), and Portable Network Graphics (PNG).

[0116] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0117] A 2D graphics engine is a graphics engine for 2D drawing.

[0118] The kernel layer is the layer between hardware and software. The kernel layer contains at least the display driver, camera driver, audio driver, and sensor driver.

[0119] For ease of understanding, the following embodiments of this application will take the terminal device shown in Figures 1 and 2 as an example, and in conjunction with the accompanying drawings and application scenarios, will specifically illustrate the information transmission method provided by the embodiments of this application.

[0120] The clipboard, as a system function, is used to transfer and share information between applications. Currently, to improve the efficiency of page navigation within an application, when a user clicks the application's icon, the application automatically reads the most recently written information from the clipboard. When the information read by the application is a page navigation link for that application, the application automatically displays a navigation card on its interface. When the user clicks the navigation card, the application can then display the page indicated by the navigation link.

[0121] For example, the terminal device is a mobile phone, which runs an application A that provides instant messaging services. The first interface 31 shown in Figure 3(a) is the dialog interface of application A. When the user long-presses a page jump link for a target product of shopping application B shared by a friend on the first interface 31, the phone displays a second interface 32 as shown in Figure 3(b). The second interface 32 contains a prompt box for the page jump link. The user can click the "copy" option in the prompt box, then exit the dialog interface and open an interface containing the icon of application B, such as the third interface 33 containing the icon of application B as shown in Figure 3(c). When the user clicks the icon of application B in the third interface 33, application B can automatically read the most recently written information from the clipboard. When application B recognizes that the read information is a page jump link to its target product, it can display a fourth interface 34 as shown in Figure 3(d), where the fourth interface 34 contains a product page jump card. When a user clicks the redirect card on the product page, the page indicated by the redirect link will be displayed, which is the product details page, providing the user with a smooth and efficient shopping experience. Application B, for example, is XX Mall.

[0122] The above example illustrates how user-copied information can redirect to a page for a target product in shopping application B. Of course, if a user copies other information, such as bank card numbers, phone numbers, addresses, or other private details, and then clicks on application B's icon, application B will still automatically read this information. This poses a risk of information leakage, potentially leading to a series of security issues and a degraded user experience.

[0123] Based on this, this application provides an information transmission method 400, which is applied to a terminal device, specifically a system service for controlling access to the clipboard on the terminal device. The terminal device is, for example, a mobile phone. Figure 4 is a flowchart illustrating an information transmission method 400 provided in this application. As shown in Figure 4, the information transmission method 400 includes steps S401 to S402. This method 400 is not limited to the specific order shown in Figure 4. It should be understood that in other embodiments, the order of some steps in this method 400 can be interchanged according to actual needs, or some steps can be omitted or deleted. The following provides a detailed explanation of each step of this method 400.

[0124] S401. Upon detecting a request from the first application to retrieve information from the clipboard, the target information is determined from the information in the clipboard based on the type of information that the first application can request and / or the type of information requested by the first application.

[0125] The types of information that the first application can request can be obtained before a request for clipboard information is detected from the first application. The types of information that the first application can request refer to the types of information that the first application has permission to request. The types of information that the first application requests refer to the types of information that the first application actually requests.

[0126] In the embodiments of this application, the type of information that the first application can request can be obtained in any of the following ways, which are explained in detail below.

[0127] Method 1: The types of information that the first application can request are set by the user.

[0128] Specifically, the terminal device can respond to user operations and determine the type of information that at least one type of application can request, where the at least one type of application includes the first application. Upon detecting a request from the first application for information access to the clipboard, the type of the first application can be determined, and the type of information that such an application can request is taken as the type of information that the first application can request.

[0129] For example, the terminal device's settings interface has a tab for users to manage access permissions for various applications to the clipboard. Users can click this tab to access the permission configuration page and select the types of information that at least one type of application can request. This at least one type of application includes a first application. The terminal device can respond to the user's action (i.e., the selection action) to determine the types of information that the at least one type of application can request. These at least one type of application includes applications such as shopping applications, navigation applications, and mobile financial services applications. For example, if the first application is a shopping application, then the types of information that shopping applications can request will be used as the types of information that the first application can request.

[0130] The above solution allows users to control the types of information that at least one type of application can request, enhancing their control over the information accessed to the clipboard by these applications. This makes the information obtained from the clipboard by these applications more aligned with individual needs, improving the user experience. Furthermore, it helps prevent unauthorized applications from reading private information, reducing the risk of information leakage and misuse, and enhancing overall information security.

[0131] Method 2: The type of information that the first application can request is obtained from the installation package of the first application.

[0132] The installation package contains the initial types of information that the first application can request.

[0133] In one possible implementation, when downloading and installing the first application, the installation package of the first application can be parsed to obtain the initial type of information that the first application can request, and the initial type can be determined as the type of information that the first application can request.

[0134] For example, the first application is a mobile financial services application C, which can be downloaded and installed by the user from an app store. By parsing the installation package of application C, the initial types of information that application C can request can be obtained, and these initial types are used as the types of information that application C can request, such as phone numbers and bank card numbers.

[0135] The above solution can determine the type of information that the first application can request when the first application is installed, thus improving the timeliness of determining the type of information that the first application can request.

[0136] Of course, after obtaining the initial types of information that the first application can request, the initial types can be modified in response to the user's modification operation to obtain the types of information that the first application can request. The modification operation can be, for example, an add operation or a delete operation. A delete operation is used to delete at least one type from the initial types. An add operation is used to add a new type.

[0137] For example, the initial types might be phone numbers and bank card numbers. A user performs a modification operation to remove the bank card number type. In response to the user's modification operation, the terminal device can delete the bank card number type from the initial types, obtaining the type of information that the first application can request, such as a phone number.

[0138] The above solution can obtain the initial types that the first application can request when the first application is installed. Subsequently, the user can modify the initial types according to their needs to obtain the types that the first application can request, thereby controlling the access permissions of privacy information and ensuring that privacy information is not transmitted or abused unnecessarily.

[0139] Method 3: The type of information that the first application can request is obtained from the configuration file associated with the first application's installation package.

[0140] The configuration file contains the initial types of information that the first application can request.

[0141] For example, the first application is a mobile financial services application C, which can be downloaded and installed by the user from an app store. During the installation process, the configuration file associated with the installation package can be parsed to obtain the initial types of information that the first application can request, and the initial types are determined as the types of information that the first application can request.

[0142] The above solution can determine the type of information that the first application can request when the first application is installed, thus improving the timeliness of determining the type of information that the first application can request.

[0143] Of course, after obtaining the initial types of information that the first application can request, the initial types can be modified in response to the user's modification operation to obtain the types of information that the first application can request. The modification operation can be, for example, an add operation or a delete operation. A delete operation is used to delete at least one type from the initial types. An add operation is used to add a new type.

[0144] For example, the initial types might be phone numbers and bank card numbers. A user performs a modification operation to remove the bank card number type. In response to the user's modification operation, the terminal device can delete the bank card number type from the initial types, obtaining the type of information that the first application can request, such as a phone number.

[0145] The above solution can obtain the initial types that the first application can request when the first application is installed. Subsequently, the user can modify the initial types according to their needs to obtain the types that the first application can request, thereby controlling the access permissions of privacy information and ensuring that privacy information is not transmitted or abused unnecessarily.

[0146] The information retrieval request may include the type of information requested by the first application; of course, the information retrieval request may also not include the type of information requested by the first application.

[0147] In one possible implementation, the information retrieval request carries the type of information requested by the first application. The type of information requested by the first application can be obtained by parsing the information retrieval request. The type of information requested by the first application is determined by the first application based on the current business logic.

[0148] For example, the first application could be a shopping application B. When a user clicks the icon of application B, the terminal device can launch application B in response to the user's click. During the launch of application B, a request to retrieve information from the clipboard can be generated and transmitted to the terminal device's system service. Upon detecting this request, the system service can parse it to determine the type of information requested by application B. This allows the system to subsequently transmit target information to the first application based on the type of information requested, reducing unnecessary information transmission and processing, thereby improving overall performance and information transmission efficiency.

[0149] It should be understood that the type of information that the first application can request can be referred to as the type of information that the first application can request, and the type of information that the first application requests can be referred to as the type of information requested by the first application.

[0150] It should be understood that clipboard information refers to the content that the user has copied or cut and stored in the clipboard. Terminal devices can detect information retrieval requests in real-time or periodically.

[0151] For example, an information retrieval request may be sent to the system service by the first application during startup. Alternatively, the information retrieval request may occur to the system service during the first application's business processing. This information retrieval request can also be called an information read request, used to retrieve / read relevant information from the clipboard.

[0152] It should be understood that the clipboard can store various forms of information, including text, images, binary data, etc. The types of information in the clipboard can be categorized according to its purpose and / or format. For example, the types of information in the clipboard can be specifically divided into Type 1 and Type 2.

[0153] The first type is the public type, which is widely recognized. This type includes one of the following: address, phone number, date, ID card number, verification code, bank card number, etc. The second type includes all other types besides the first type, i.e., private types. Private types refer to information types defined and used internally within the application and not widely known externally, such as links. Address information is used to uniquely identify a specific geographical location.

[0154] In the embodiments of this application, the type of target information is a target type, wherein the target type belongs to the type of information that the first application can request, and belongs to the type of information requested by the first application; or, the target type belongs to the type of information that the first application can request; or, the target type belongs to the type of information requested by the first application.

[0155] In this embodiment, a target type can be determined based on the type of information that the first application can request and / or the type of information requested by the first application. The number of target types can be at least one. For each target type, it can be detected whether information of the target type exists in the clipboard information. If the detection result indicates that information of the target type exists in the clipboard information, the target information is determined from the clipboard information based on the target type. Specifically, the target type belongs to the type of information that the first application can request, and belongs to the type of information requested by the first application; or, the target type belongs to the type of information that the first application can request; or, the target type belongs to the type of information requested by the first application. The target type is either a first type or a second type. The final number of target information obtained can be at least one.

[0156] The following explains how to determine target information from clipboard information based on target type.

[0157] The method of determining target information from clipboard information based on target type is explained, with the target type belonging to the type of information that the first application can request.

[0158] In one possible implementation, the information retrieval request does not carry the type of information requested by the first application, but the terminal device stores the types of information that the first application can request. Target information can be determined from the clipboard information based on the types of information that the first application can request. The types of information that the first application can request can be used as target types, and the number of target types can be at least one. For each target type, if information of the target type is detected in the clipboard information, the information of that target type is used as the target information; or, for each target type, if information of the target type is detected in the clipboard information, the information with the most recent write time among the target type's information is used as the target information. Alternatively, the information with the most recent write time among multiple target types is determined as the target information.

[0159] For example, the types of information that the first application can request can be used as target types. For instance, there are three target types: Type 1, Type 2, and Type 3. For Type 1, if Type 1 information is detected in the clipboard, it is used as the target information. For Type 2, if Type 2 information is detected in the clipboard, it is also determined as the target information. For Type 3, if Type 3 information is not detected in the clipboard, subsequent processing based on Type 3 will be terminated. In this process, multiple target information types are determined, including information of Type 1 and Type 2. The first application, for example, is an application C that provides mobile financial services; Type 1 could be a phone number, Type 2 could be a bank card number, and Type 3 could be an ID card number.

[0160] Of course, the most recently written information from type 1 information can also be used as the target information, as can the most recently written information from type 2 information; in this case, there are two target information. Alternatively, the most recently written information can be determined from both type 1 and type 2 information; in this case, there is one target information.

[0161] The above solution filters the clipboard information based on the types of information that the first application can request, thereby achieving precise information filtering, ensuring that the type of target information conforms to the requested permissions, reducing the first application's access to irrelevant information, and lowering the risk of information leakage caused by unnecessary information exposure.

[0162] The method of determining target information from clipboard information based on target type is explained, specifically, the target type belongs to the type of information that the first application can request, and also belongs to the type of information requested by the first application.

[0163] In one possible implementation, the information retrieval request carries the type of information requested by the first application, and the terminal device also stores the types of information that the first application can request. A target type can be defined as a type common to both the type of information requested by the first application and the types of information that the first application can request; the number of target types can be at least one. For each target type, if information of the target type is detected in the clipboard, that information of the target type is used as the target information; or, for each target type, if information of the target type is detected in the clipboard, the information with the most recent write time among the target type's information is used as the target information.

[0164] For example, the first application can request three types of information, such as type 1, type 2, and type 3; the first type requests two types of information, such as type 2 and type 3. The common type between the types of information requested by the first application and the types of information requested by the first type is taken as the target type, with two target types: type 2 and type 3. For type 2, if type 2 information is detected in the clipboard, the type 2 information is taken as the target information. For type 3, if type 3 information is detected in the clipboard, the type 3 information is also taken as the target information. In this process, multiple target information is determined, including information of type 2 and information of type 3. The first application, for example, is an application C that provides mobile financial services; type 1 could be a phone number, type 2 could be a bank card number, and type 3 could be an ID card number.

[0165] Of course, the information with the most recent writing time in type 2 information can also be used as the target information, as well as the information with the most recent writing time in type 3 information; the number of target information is 2.

[0166] In another example, the first application can request three types of information, such as type 1, type 2, and type 3; the first type requests two types of information, such as type 3 and type 4. The common type between the types of information requested by the first application and the types of information requested by the first type is designated as the target type. There is one target type, which is type 3. For type 3, if information of type 3 is detected in the clipboard, it is used as the target information. Alternatively, the most recently written information among the type 3 information is used as the target information. Type 4 information is not used as the target information in this process because, although type 4 is information requested by the first application, it does not belong to the types of information that the first application can request. In other words, type 4 does not meet the permission requirements.

[0167] The above solution verifies the type of information requested by the first application and determines the target information from the clipboard based on the matched type (i.e., the common type mentioned above). This prevents non-compliant information retrieval requests (such as tampered information retrieval requests) from being directly processed, thereby ensuring the security of clipboard information access, preventing access operations that may infringe on user privacy, and enhancing the security of clipboard information access.

[0168] The method of determining target information from clipboard information based on target type is explained, with the target type belonging to the type of information requested by the first application.

[0169] In one possible implementation, the information retrieval request carries the type of information requested by the first application. The target information can be determined from the clipboard information based on the type of information requested by the first application. The type of information requested by the first application can be used as the target type, and there can be at least one target type. For each target type, if information of the target type is detected in the clipboard information, the information of the target type is used as the target information; or, for each target type, if information of the target type is detected in the clipboard information, the information with the most recent write time among the target type's information is used as the target information.

[0170] For example, the type of information requested by the first application can be used as the target type. There are two target types: Type 1 and Type 2. For Type 1, if Type 1 information is detected in the clipboard, it is used as the target information. For Type 2, if Type 2 information is detected in the clipboard, it is also used as the target information. In this process, multiple target information is determined, including information of Type 2 and information of Type 3.

[0171] Of course, the most recently written information in type 1 information can be used as the target information, and the most recently written information in type 2 information can also be used as the target information.

[0172] The above solution filters the clipboard information based on the type of information requested by the first application to obtain the target information, achieving accurate information filtering and ensuring that the type of target information meets the requirements (i.e., meets the current request). This reduces the first application's access to irrelevant information and lowers the risk of information leakage caused by unnecessary information exposure.

[0173] Figure 5 shows a schematic diagram of the clipboard information arrangement. As shown in Figure 5, a total of 7 pieces of information are written to the clipboard: information 51, information 52, information 53, information 54, information 55, information 56, and information 57. These are arranged in chronological order of their writing time: information 57, information 56, information 55, information 54, information 53, information 52, and information 51, with information 51 being the most recently written information. This information is written to the clipboard by at least one application on the phone in response to the user's copy operation. The first application could be, for example, a shopping application B, with one target type. The target type could be a second type (i.e., a private type), such as a link. When an application B requests information from the clipboard, the application can respond to the request by using the target type information from the clipboard as the target information, such as information 52, information 55, and information 56. Alternatively, the most recently written information from the target type information in the clipboard can be used as the target information, such as information 52. Wherein, the target type belongs to the type of information that the first application can request, and belongs to the type of information requested by the first application; or, the target type belongs to the type of information that the first application can request; or, the target type belongs to the type of information requested by the first application.

[0174] The detection of whether information of type target exists in the clipboard can be achieved in the following way:

[0175] Method 1: When writing information to the clipboard, record the type of the information being written. This type can be a first type (such as a phone number or bank card number) or a second type (such as a link). The first type is a public type, and the second type is a private type. Upon receiving an information retrieval request, for each target type, match the target type with the recorded type to determine if information of the target type exists in the clipboard. The target type can be either the first type or the second type.

[0176] Specifically, when writing information to the clipboard, the system service can automatically identify the type of the information being written and record that type. Upon receiving an information retrieval request, for each target type, the system can directly match the target type with the recorded types to obtain a matching result. If the matching result indicates that the target type exists among the recorded types, then it is determined that the clipboard contains information of the target type. If the matching result indicates that the target type does not exist among the recorded types, then it is determined that the clipboard does not contain information of the target type.

[0177] For example, the system service automatically identifies the type of information written. For information types that the system service can identify, it records them as the first type, such as address, phone number, date, ID card number, verification code, or bank card number. When the target type is an address, the target type information can be something like "XX Province XX City XX...". For information types that the system service cannot identify, it records them as the second type, i.e., a private type, such as a link. This link could be a page redirect link to the target product, a video redirect link, etc.

[0178] Method 2: When writing information to the clipboard, the type of the written information is not recorded. Upon receiving an information retrieval request, the matching rule corresponding to the target type is obtained, and the clipboard information is checked for information of the target type based on the matching rule. If information matching the target type exists in the clipboard, it is determined that information of the target type exists in the clipboard. If information matching the target type does not exist in the clipboard, it is determined that information of the target type does not exist in the clipboard. The target type can be either a first type or a second type. The matching rule corresponding to the target type can be, for example, a regular expression or other expression containing wildcards.

[0179] In one possible implementation, the number of target types can be at least one, and at least one target type is a first type. The matching rule corresponding to the first type can be obtained by the system service from pre-stored matching rules based on the first type, or the matching rule can be downloaded by the system service from the network based on the first type.

[0180] In another possible implementation, there can be only one target type, which is a second type, such as a link. The matching rule corresponding to this second type can be carried in the information retrieval request, and the system service can parse the information retrieval request to obtain the matching rule corresponding to the second type.

[0181] In another possible implementation, there are multiple target types, including a first type and a second type. The matching rule for the first type can be obtained by the system service from pre-stored matching rules based on the first type, or it can be downloaded by the system service from the network based on the first type. The matching rule for the second type can be carried in the information retrieval request, and the system service can parse the information retrieval request to obtain the matching rule for the second type.

[0182] The following provides a detailed explanation of several specific implementation methods for determining target information from clipboard information based on target type and write time.

[0183] In one possible implementation, there is at least one target type. For each target type, if information of the target type with a write time within the target time period is detected in the clipboard information, some or all of the information of the target type with a write time within the target time period is determined as target information. For example, the information of the target type with the most recent write time within the target time period is determined as target information.

[0184] For example, as shown in Figure 5, all information in the clipboard that is of the target type and whose write time falls within the target time period is used as the target information, such as information 52 and information 55. Alternatively, the information in the clipboard that is of the target type and whose write time falls within the target time period is used as the most recently written information, such as information 52.

[0185] Type detection and write time detection can be performed simultaneously, or type detection can be performed first, followed by write time detection. Alternatively, write time detection can be performed first, followed by type detection. Type detection checks if the clipboard contains information of the target type. Write time detection checks if the clipboard contains information whose write time falls within the target time period.

[0186] The following section provides a detailed explanation of how to determine target information from clipboard information based on target type and write time, distinguishing the order of type detection and write time detection.

[0187] In one possible implementation, there is at least one target type. For each target type, if information of type target type is detected in the clipboard information, the information of type target type in the clipboard information is filtered based on the write time to obtain the target information.

[0188] The target information can be the information with the most recent write time among existing information of the target type. Alternatively, it can detect whether information of the target type exists with a write time within the target time period; if such information does exist, all or part of that information within the target type with a write time within the target time period is identified as the target information. For example, the target information could be the information with the most recent write time among information of the target type and written within the target time period.

[0189] In another possible implementation, we can first check if there is any information in the clipboard whose write time falls within the target time period. If so, we then check if any of this information contains information of the target type. If such information does exist, we use all or part of this target type information as the target information. For example, if the target type information exists, we use the most recently written information of the target type within the target time period as the target information.

[0190] For example, the target time period is the time period before the information retrieval request is detected, and the duration between the detection of the information retrieval request and the detection of the information retrieval request is the target duration. As shown in Figure 6(a), the time when the information retrieval request is detected is t0, the target duration is T, T can be 30 seconds, and the target time period is (t0-T, t0). When there is information in the clipboard whose write time is within (t0-T, t0), it is checked whether there is information of the target type among the information whose write time is within (t0-T, t0). If there is information of the target type among the information within (t0-T, t0), the information of the target type among the information within (t0-T, t0) is taken as the target information. As shown in Figure 6(b), the information whose write time is within (t0-T, t0) is, for example, information 61 and information 62, and the information of the target type in information 61 and information 62 can be taken as the target information. Wherein, if the types of information 61 and information 62 are different target types, information 61 and information 62 can both be taken as target information. If information 61 and information 62 are of the same target type, the information with the most recent writing time in information 61 and information 62 can be used as the target information, such as information 61.

[0191] Among the methods described above, filtering clipboard information based on target type and write time achieves precise information filtering. This ensures that the target information type meets the requested permissions and / or requirements, while also guaranteeing the timeliness of the target information. It reduces the first application's access to old or irrelevant information, lowering the risk of information leakage due to unnecessary exposure. Furthermore, it ensures the relevance, usability, and effectiveness of the information delivered to the first application, further enhancing the user experience.

[0192] In one possible implementation, multiple applications include the first application, and these multiple applications correspond to the same target duration, meaning that the target duration is uniformly managed.

[0193] In another possible implementation, the target duration is set independently and is not uniformly managed. Different applications may have different target durations.

[0194] The target duration corresponding to the first application can be obtained in the following way: the target duration is determined based on the identification information of the first application and the first correspondence relationship, whereby the first correspondence relationship represents the correspondence between the application and the duration.

[0195] The following provides a detailed explanation of how to determine target information from clipboard information based on target type and corresponding matching rules.

[0196] In one possible implementation, if the clipboard contains information of the target type, the target information is obtained by filtering the clipboard information based on the target type and its corresponding matching rules. The target information can be information matched from the clipboard information of the target type according to the matching rules. The target type can be either a first type or a second type. The matching rules corresponding to the target type can be carried in the information retrieval request.

[0197] In one possible implementation, if the clipboard contains information of the target type, the target information is obtained by filtering the clipboard information based on the target type, the matching rules corresponding to the target type, and the write time. The number of target types can be at least one, and the target type can be either a first type or a second type.

[0198] For example, for each target type, the information in the clipboard that is of the target type can be represented as the first information, and the information matched by the matching rules in the first information can be represented as the second information. The target information can be the information in the second information that was written most recently; or, the target information can be all or part of the information in the second information whose writing time falls within the target time period, such as the target information being the information in the second information whose writing time falls within the target time period that was written most recently.

[0199] When the target type is type 1, the matching rule corresponding to type 1 can be obtained by the system service from pre-stored matching rules based on type 1, or the matching rule corresponding to type 1 can be downloaded by the system service from the network based on type 1. When the target type is type 2, the matching rule corresponding to type 2 can be carried in the information retrieval request. Specifically, type 2 can be, for example, a link.

[0200] The above scheme, based on the matching rules corresponding to the target type, filters the information in the clipboard that is of the target type to obtain the target information, thereby reducing the risk of misjudgment and omission due to type identification and improving the accuracy of the determined target information.

[0201] In one possible implementation, there is one target type, which is a second type. When information of the second type is detected in the clipboard, information matched according to the matching rule corresponding to the second type is retrieved from the second type information in the clipboard, and this information is used as the target information. The matching rule corresponding to the second type is used to further filter the information of the second type.

[0202] For example, the first application is application C, and the target type is the second type, such as a link. The information retrieval request from application C carries matching rules corresponding to the second type. The system service can determine information of the second type from the clipboard information. This second type of information could be, for example, a page redirect link for a target product in application B or a video redirect link for video browsing application C. Subsequently, the matching rules corresponding to the second type are used to determine the target information from the second type of information. This target information is the video redirect link for application C. The matching rules corresponding to the second type are used to identify and extract information of types defined and used internally by application C but not widely recognized externally.

[0203] Of course, target information can also be obtained by filtering the information matched by the matching rules corresponding to the second type based on the write time. For example, the target information could be the information with the most recent write time among the information matched by the matching rule; or, the target information could be all or part of the information matched by the matching rule whose write time falls within the target time period. For instance, the target information could be the information with the most recent write time among the information matched by the matching rule whose write time falls within the target time period.

[0204] In one possible implementation, there are multiple target types. Target information is determined from clipboard information based on matching rules corresponding to multiple target types and second types. The multiple target types are either multiple second types, or the multiple target types include at least one first type and at least one second type.

[0205] For example, taking a target type of two, namely a first type (e.g., a phone number) and a second type (e.g., a link), the information in the clipboard of the first type can be used as the target information. For the second type, the information in the clipboard of the second type that matches the matching rule corresponding to that second type is used as the target information. This process can yield multiple target information entries.

[0206] The above solution considers that multiple target types may include information types defined and used internally by the first application but not widely recognized externally—i.e., second types. Based on matching rules corresponding to multiple target types and second types, target information can be determined from clipboard information, reducing the risk of misjudgment or omission due to type identification and improving the accuracy of the determined target information. It prevents the extracted target information from being incompatible or unusable by the first application due to potential misjudgment or omission in type identification, thus enhancing the effectiveness, relevance, and usability of the transmitted target information.

[0207] In one possible implementation, there are multiple target types. Target information is determined from clipboard information based on multiple target types, matching rules corresponding to the second type, and the write time. Here, the multiple target types are multiple second types, or the multiple target types include at least one first type and at least one second type.

[0208] For example, taking two target types as an example, the two target types are a first type (e.g., a phone number) and a second type (e.g., a link). For the first type, the most recently written information in the clipboard can be used as the target information; or, all or part of the information in the first type whose writing time falls within the target time period can be used as the target information, for example, the most recently written information in the first type whose writing time falls within the target time period can be used as the target information. For the second type, the most recently written information in the clipboard that matches the matching rule corresponding to the second type can be used as the target information; or, all or part of the information in the clipboard that matches the matching rule corresponding to the second type whose writing time falls within the target time period can be used as the target information, for example, the most recently written information in the clipboard that falls within the target time period can be used as the target information.

[0209] The above scheme determines target information from clipboard information based on multiple target types, matching rules corresponding to the second type, and writing time. This reduces the risk of misjudgment or omission due to type identification and reduces access to old information in the clipboard, thereby improving the effectiveness, relevance, practicality, and timeliness of the determined target information.

[0210] S402, Pass the target information to the first application.

[0211] In this embodiment, the system service can pass the target information to the first application through an inter-process communication mechanism. Alternatively, the system service can call a specific API provided by the first application to pass the target information to the first application.

[0212] In one possible implementation, if the first application is a non-risk application, the target information is passed to the first application.

[0213] It should be understood that risky apps are applications that pose security risks or threaten user information (such as privacy information). These applications may contain malware, viruses, adware, etc. Risky apps may collect or disseminate users' private information, such as personal information and bank card numbers, without the user's consent. Non-risky apps refer to applications other than risky apps, which may not pose a threat to users' privacy information.

[0214] Based on the above solution, a security guarantee can be provided for information transmission, preventing the target information from being transmitted to risky applications, thereby avoiding the risk of the target information being misused or leaked, and thus ensuring the legality and security of information transmission.

[0215] Specifically, determining that the first application is a non-risk application can be achieved in the following ways:

[0216] In one possible implementation, a whitelist of risky applications is obtained. The identifier information of the first application is matched against the identifier information of the risky applications in the whitelist. If a match is found, the first application is determined to be a risky application. If no match is found, the first application is determined to be a non-risky application. The whitelist of risky applications can be downloaded by the terminal device from the network. The identifier information of the first application can be the name of the first application.

[0217] Specifically, determining that the first application is a non-risk application can be performed before the target information is transmitted to the first application. For example, determining that the first application is a non-risk application can be performed before an information retrieval request is detected, or it can be performed upon detecting an information retrieval request.

[0218] In one possible implementation, the target information originates from a second application, and the target information is passed to the first application in the following way: determine whether the first application has permission to read the information of the second application, and if the first application has permission to read the information of the second application, pass the target information to the first application.

[0219] In cases where the first application does not have permission to read information from the second application, the target information is not transmitted to the first application. This can be done by not sending any information to the first application, or by sending a message to the first application indicating that the first application does not have permission to read information from the clipboard.

[0220] Based on the above scheme, target information from the second application in the clipboard is only passed to the first application if the first application has permission to read information from the second application. This provides a security guarantee for the first application's access to information in the clipboard, ensuring the compliance of information transmission and effectively preventing information leakage and misuse.

[0221] In one possible implementation, determining whether a first application has permission to read information from a second application can be achieved by: identifying at least one application capable of reading information from the second application based on the identification information of the second application and a second correspondence, wherein the second correspondence represents the correspondence between an application and other applications capable of reading information from that application; and determining that the first application has permission to read information from the second application if the first application exists among at least one application.

[0222] The second correspondence can be obtained in the following way:

[0223] Method 1 and Method 2 correspondences are generated in response to user input operations.

[0224] For example, when a user performs a content copy operation on the current application's interface, the current application can respond to the user's copy operation by displaying a prompt message. This prompt message advises the user to select another application from the application options that can read information from the current application. The user selects the recipient of the information based on the prompt message. Subsequently, the system service determines other applications that can receive information from the current application based on the user's selection, thereby establishing a second correspondence.

[0225] In another example, users can configure the settings interface to specify which other applications can read information about that application category. The system service responds to the user's settings by retrieving this list of compatible applications, thus establishing a second mapping.

[0226] Method 2: The second correspondence is generated based on user feedback information from historical application visits.

[0227] The user feedback information can be derived from the historical application access information recorded locally on the terminal device. Alternatively, the user feedback information can be external feedback information about historical application access obtained from the network.

[0228] For example, taking each of multiple applications as an example, user feedback information about historical visits to the application can be downloaded from the network. Then, based on this user feedback information, the system service identifies at least one other application that can read the information of the current application. This process is repeated for multiple applications, that is, at least one other application that can read its information is identified for each application. Finally, the system service integrates this information to construct a second correspondence, which represents the association between each application and the other applications that can read its information.

[0229] In one possible implementation, if the first application has permission to read information from the second application, and the first application is a non-risk application, the target information is passed to the first application. This ensures the legality and security of information transmission, avoiding the risk of the target information being leaked to a risky application.

[0230] This application provides an information transmission method that, upon detecting a request from a first application for information access from the clipboard, determines target information from the clipboard information based on the type of information that the first application can request and / or the type of information requested by the first application; and then transmits the target information to the first application. In this way, target information related to the first application from the clipboard information can be transmitted to the first application based on the type of information that the first application can request and / or the type of information requested by the first application, avoiding the risk of information leakage that might result from transmitting irrelevant information to the first application, further reducing the risk of privacy information leakage and improving user experience.

[0231] Figure 7 is a flowchart illustrating another information transmission method 700 provided in an embodiment of this application. This information transmission method 700 is applied to a terminal device, specifically a system service on the terminal device for controlling access to the clipboard. The terminal device is, for example, a mobile phone. This method 700 is a refinement of the information transmission method 400 shown in Figure 4. This method 700 is not limited to the specific order shown in Figure 7. It should be understood that in other embodiments, the order of some steps in this method 700 can be interchanged according to actual needs, or some steps can be omitted or deleted. The steps of this method 700 are explained in detail below.

[0232] S701. If a request for information to be obtained from the clipboard is detected by the first application, check whether one or more of the following conditions are met: information is written to the clipboard during the target time period; or, the first application is a non-risk application.

[0233] In this embodiment of the application, the target time period can be a time period before the time when the information acquisition request is detected, and the time elapsed since the time when the information acquisition request is detected is the target time period.

[0234] Each application corresponds to the same target duration, meaning all applications adhere to a single duration limit. When implementing access control for the clipboard, the set target duration is managed and controlled uniformly across all applications.

[0235] For example, each application corresponds to the same target duration, such as 30 seconds, and the time when the information retrieval request is detected is time t0. Then the target time period can be (t0-30s, t0).

[0236] The above solution unifies the management of target duration, promotes the convenience of time management, simplifies related time management processes, and thus reduces the system load.

[0237] Of course, target durations can also be managed individually, meaning each application has its own target duration. The target durations for each application can be the same or different. Target durations for different applications can be user-defined, or they can be automatically determined by the terminal device.

[0238] For example, each application has a different target duration. For instance, shopping application B has a target duration of 30 seconds, mobile financial service application C has a target duration of 40 seconds, and map navigation application D has a target duration of 50 seconds. The time when the information retrieval request is detected is time t0. When the first application is shopping application B, the target time period can be (t0-30s, t0). When the first application is mobile financial service application C, the target time period is (t0-40s, t0). When the first application is map navigation application D, the target time period is (t0-50s, t0).

[0239] The above solution, which manages the target duration for different applications separately, enables more refined time management and improves the flexibility of target duration settings.

[0240] In one possible implementation, multiple applications include a first application, and the target duration corresponding to the first application is obtained by: determining the target duration corresponding to the first application based on the identification information of the first application and a first correspondence relationship, wherein the first correspondence relationship characterizes the correspondence between the application and the duration.

[0241] The identification information of the first application can be carried in the information retrieval request. The terminal device can parse the information retrieval request to obtain the identification information of the first application. The identification information of the first application is used to uniquely identify the first application, and the identification information of the first application may be, for example, the name of the first application. The first correspondence can be set by the user or automatically determined by the terminal device.

[0242] The following provides a detailed explanation of how the terminal device automatically determines the first correspondence.

[0243] In one possible implementation, the terminal device can set the duration corresponding to an application based on the frequency of historical clipboard accesses and / or the security level of the application, and repeat this process to obtain the duration corresponding to each application in multiple applications, thereby establishing a first correspondence.

[0244] The above solution sets the corresponding time limit for each application based on the frequency of its historical clipboard access and / or the application's security level. This approach not only improves the granularity of time management but also strengthens information security and privacy protection, making clipboard access management more aligned with real-world application scenarios and user needs.

[0245] The frequency of historical clipboard access can be determined in the following ways:

[0246] Method 1: Determine based on local records, that is, determine based on the clipboard access records of the application on the terminal device.

[0247] Method 2: Obtain via network download. This involves downloading clipboard access records from other terminal devices and determining the frequency of the application's historical clipboard access based on these records. The clipboard access records can be provided by third-party software management tools, for example.

[0248] For example, for each application, the frequency of historical clipboard access can be the average frequency of the same application accessing the clipboard on different terminal devices.

[0249] The security level of an application can be determined in the following ways:

[0250] Method 1: User-defined settings: Allows users to set the security level of the application according to their personal privacy and security needs and the specific purpose of the application.

[0251] Method 2: Assessment Based on Historical Usage Feedback: This method automatically determines the security level of an application by collecting and analyzing historical usage feedback. This feedback can come from two sources: First, local usage feedback, which can be collected directly from the terminal device. Second, network-shared feedback, where the terminal device can download historical usage feedback from other users.

[0252] The following example illustrates how to set the corresponding duration for an application based on the frequency of its historical clipboard access and / or its security level.

[0253] For example, taking the setting of application duration based on the frequency of historical clipboard access and the application's security level as an example, a pre-set frequency weight and security weight can be obtained. For each application, the frequency weight can be multiplied by the frequency of historical clipboard access to obtain a first weight, and the security weight can be multiplied by the application's security level to obtain a second weight. Subsequently, the first and second weights are added to obtain a target weight. Based on the target weight and a third correspondence, the duration corresponding to the application is determined. The third correspondence represents the relationship between the weight and the duration.

[0254] The frequency weights for different applications can be different; the security weights for different applications can also be different.

[0255] Furthermore, for each application, a baseline duration can be obtained. Based on the comparison between the calculated target weight and the preset weight, the baseline duration for each application is adjusted to obtain its corresponding duration. For example, if the comparison result indicates that the target weight is greater than or equal to the preset weight, it suggests that the application has high access timeliness or potential risks. In this case, the baseline duration can be reduced to control the application's access to the clipboard within a shorter time period, thereby enhancing information security and privacy protection. If the comparison result indicates that the target weight is less than the preset weight, it suggests that the application's access timeliness is relatively low or the risks are relatively controllable. In this case, the baseline duration can be appropriately increased to allow the application to access the clipboard within a longer time period, thus balancing user experience and application security requirements. The amount by which the baseline duration is increased or decreased depends on the difference between the target weight and the preset weight. The baseline duration for different applications can be the same or different.

[0256] For example, taking the setting of application duration based on the frequency of application's historical clipboard access as an example, for each application, the duration corresponding to the application is determined based on the frequency of the application's historical clipboard access and the fourth correspondence relationship. Here, the fourth correspondence relationship represents the correspondence between frequency and duration. This fourth correspondence relationship can be preset.

[0257] Of course, a baseline duration can also be obtained for the application. This involves comparing the frequency of the application's historical clipboard access with a preset frequency, and adjusting the baseline duration based on the comparison result. For example, if the comparison result indicates that the application's historical clipboard access frequency is greater than or equal to the preset frequency, it indicates that the application has high access timeliness, and the baseline duration can be reduced. Conversely, if the comparison result indicates that the application's historical clipboard access frequency is less than the preset frequency, it indicates that the application's access timeliness is low, and the baseline duration can be increased. The amount by which the baseline duration is increased or decreased depends on the difference between the application's historical clipboard access frequency and the preset frequency.

[0258] Another example involves setting a duration for an application based on its security level. A higher security level means the application is less likely to leak information after reading the clipboard. For each application, a baseline duration can be obtained. Based on a comparison between the security level and a preset level, the baseline duration can be adjusted to obtain the application's actual duration. For instance, if the comparison indicates the security level is greater than or equal to the preset level, the baseline duration can be increased. If the comparison indicates the security level is less than the preset level, the baseline duration can be decreased.

[0259] The above solution allows applications with high historical clipboard access frequency or low security levels to set a shorter duration to determine the target time period. Subsequently, write time detection is performed based on the target time period. If information is written within the target time period, the target information is identified from the clipboard information whose write time falls within the target time period. This limits the scope of clipboard reads by the application from a temporal perspective, thereby reducing the risk of privacy leaks.

[0260] S702. If the conditions are met, for each target type, check whether there is information in the clipboard that is of the target type and whose writing time is within the target time period.

[0261] Wherein, the target type belongs to the type of information that the first application can request, and belongs to the type of information requested by the first application; or, the target type belongs to the type of information that the first application can request; or, the target type belongs to the type of information requested by the first application.

[0262] Type detection and write time detection can be performed simultaneously, or type detection can be performed first, followed by write time detection. Alternatively, write time detection can be performed first, followed by type detection. This application does not impose a limitation on the order of type detection and write time detection in its embodiments.

[0263] It should be noted that S703 or S705 can be executed after S702.

[0264] S703. If there is information in the clipboard of type target type and written time within the target time period, the information of type target type and written time within the target time period shall be used as the target information.

[0265] S704. If there is information in the clipboard of type target type and written time within the target time period, the information with the most recent writing time among the information of type target type and written time within the target time period shall be used as the target information.

[0266] S705, Pass the target information to the first application.

[0267] The implementation process of S705 is the same as that of S402 in the aforementioned embodiments. For details, please refer to the specific implementation process of S402 in the aforementioned embodiments. This application embodiment will not repeat the details here.

[0268] In this embodiment of the application, if neither of the following conditions is met: information is written to the clipboard within the target time period, or the first application is a non-risk application, the information retrieval request is rejected.

[0269] It should be noted that the descriptions of the same steps and contents in the embodiments of this application as in other embodiments can be referred to the descriptions in other embodiments, and will not be repeated here.

[0270] This application provides an information transmission method that filters clipboard information based on target type and write time to obtain target information. This achieves precise information filtering, ensuring that the target information type meets the requested permissions and / or the requirements, while also guaranteeing the timeliness of the target information. This reduces access to old information and information unrelated to the first application, lowering the risk of information leakage due to unnecessary information exposure. Furthermore, it ensures the relevance, usability, and effectiveness of the information transmitted to the first application, further enhancing the user experience. Simultaneously, this method prevents malicious or unauthorized applications from accessing private information, further reducing the risk of unauthorized acquisition of private information and enhancing the overall security of the system.

[0271] Figure 8 is a flowchart illustrating an information transmission method 800 according to another embodiment of this application. This information transmission method 800 is applied to a terminal device, specifically a system service on the terminal device for controlling access to the clipboard. The terminal device is, for example, a mobile phone, on which application A and application B are installed; the first application is application B. This method 800 is a refinement of the information transmission method 400 shown in Figure 4. This method 800 is not limited to the specific order shown in Figure 8. It should be understood that in other embodiments, the order of some steps in this method 800 can be interchanged according to actual needs, or some steps can be omitted or deleted. The steps of this method 800 are explained in detail below.

[0272] S801, Application A determines the copy information selected by the user.

[0273] S802, Application A sends a write operation command to the system service to write the copied information to the clipboard.

[0274] S803, the system service responds to the write operation command and writes the copied information to the clipboard.

[0275] Figure 9 shows the interface changes of a terminal device in a specific scenario when the information transmission method provided in this paper is applied. The information transmission method shown in Figure 8 will be explained below with reference to Figure 9.

[0276] For example, the fifth interface 91 shown in Figure 9(a) is the dialog interface of application A. When the user first copies the page jump link of the target product of application B (a shopping application) shared by a friend through this dialog interface, application A can send a write operation instruction 81 to the system service. The system service can respond to the write operation instruction 81 by writing the copied information, namely the page jump link of the target product of application B, to the clipboard. Next, if the user then copies the video jump link of application C (a video browsing application) shared by a friend through the fifth interface 91, application A can send a write operation instruction 82 to the system service. The system service can respond to the write operation instruction 82 by writing the copied information, namely the video jump link of application C, to the clipboard. Among them, the information most recently written to the clipboard is the video jump link of application C.

[0277] S804, in response to user operation, sends a request to the system service to retrieve information about the clipboard.

[0278] Among them, user action can be the user clicking the icon of application B.

[0279] For example, after a user sequentially copies the page redirection link of the target product in application B and the video redirection link in application C, they can close the dialog interface of application A and open an interface containing the icon of application B, such as the sixth interface 92 containing the icon of application B shown in Figure 9(b). When the user clicks the icon of application B in the sixth interface 92, the terminal device responds to the user's click operation and, during the process of launching application B, application B sends a request to the system service to retrieve information from the clipboard.

[0280] S805: When a system service detects an information retrieval request, it checks whether any information has been written to the clipboard within the target time period.

[0281] Specifically, the system checks if there is any information in the clipboard whose write time falls within the target time period. If such information exists, it is determined that information was written to the clipboard during the target time period. If no such information exists, it is determined that no information was written to the clipboard during the target time period.

[0282] For example, the time when the information retrieval request is detected is t0, the target duration of application B is 30 seconds, and the target time period is (t0-30 seconds, t0).

[0283] In this embodiment of the application, if no information is written to the clipboard within the target time period, the request to obtain the information is rejected.

[0284] S806. If information is detected being written to the clipboard within the target time period, for each target type, check whether there is information of the target type among the information whose writing time is within the target time period.

[0285] Wherein, the target type belongs to the type of information that the first application can request, and belongs to the type of information requested by the first application; or, the target type belongs to the type of information that the first application can request; or, the target type belongs to the type of information requested by the first application.

[0286] It should be noted that the target type involved in S806 and how the target type is determined can be referred to the relevant implementation process in the aforementioned embodiment S401, which will not be repeated here in this application embodiment.

[0287] S807. If there is information of type target type in the information written within the target time period, obtain the matching rule corresponding to the target type. For example, the target type is the second type (for example, the second type is a link).

[0288] The matching rules corresponding to the target type can be carried in the information retrieval request.

[0289] If the information written within the target time period does not contain information of the target type, the request to obtain the information will be rejected.

[0290] S808. The information within the target time period that matches the matching rule corresponding to the target type in the target type information is taken as the target information, and this target information is passed to application B. The matching rule corresponding to this target type is used to identify and extract information defined and used internally by application B that is not widely known externally.

[0291] The target information is the page redirection link for the target product of application B.

[0292] In this embodiment, the target type information in the information written within the target time period can be a page jump link for the target product of application B and a video jump link for application C. Based on the matching rules corresponding to the target type, the target information determined from the target type information in the information written within the target time period is the page jump link for the target product of application B. Application B can display the seventh interface 93 shown in Figure 9(c) based on the target information transmitted by the system service. The seventh interface 93 includes a product page jump card. When the user clicks the product page jump card, the mobile phone can display the page indicated by the product page jump card, that is, the details page of the target product, to provide the user with a smooth and efficient shopping experience.

[0293] The above solution, when a user clicks the icon of application B, does not read the most recently written information from the clipboard (i.e., the video link from application C) as in related technologies. Instead, it extracts relevant and timely target information from the clipboard based on the target type, the corresponding matching rules, and the write time, and then provides this target information to application B. This improves the accuracy, reliability, and security of information transmission. It avoids the first application obtaining irrelevant or outdated information that would prevent it from providing online shopping services to the user, and also avoids the risk of information leakage due to irrelevant or outdated information, thus improving the user experience.

[0294] In this case, if the target duration for application B is, for example, 30 seconds, and the user fails to click the icon of application B within 30 seconds of copying the video redirect link, but instead clicks it after the 30 seconds have expired, the phone will not display screen 93 (the seventh screen). This is because the access validity period of the target product's page redirect link has expired; that is, the writing time of the target product's page redirect link is no longer within the target time period, and application B cannot read the target product's page redirect link.

[0295] It should be noted that the descriptions of the same steps and contents in the embodiments of this application as in other embodiments can be referred to the descriptions in other embodiments, and will not be repeated here.

[0296] This application provides an information transmission method that filters clipboard information based on target type and write time to obtain target information. This achieves precise information filtering, ensuring that the target information type meets the requested permissions and / or the requirements, while also guaranteeing the timeliness of the target information. This reduces the first application's access to old information and information unrelated to the first application, lowering the risk of information leakage due to unnecessary information exposure. Furthermore, it ensures the relevance, usability, and effectiveness of the information transmitted to the first application, further enhancing the user experience.

[0297] Figures 9 and 10 are schematic diagrams showing the interface changes of the terminal device in specific scenarios when applying the information transmission methods shown in Figures 4, 7, and 8. The following explanation uses a mobile phone as the terminal device and combines Figures 9 and 10 to illustrate the interface changes of the terminal device in detail.

[0298] For example, the fifth interface 91 shown in Figure 9(a) is the dialog interface of application A. When a user first copies a page jump link for a target product of shopping application B shared by a friend from this dialog interface, and then copies a video jump link for video browsing application C shared by a friend from the same dialog interface, the phone's system service can respond to the user's two copy operations in sequence, writing the information copied by the user to the clipboard. Among them, the information most recently written to the clipboard is the video jump link of application C.

[0299] Next, the user can close the dialog box of application A and open the interface containing the icon of application B, such as the sixth interface 92 containing the icon of application B shown in Figure 9(b). When the user clicks the icon of application B in the sixth interface 92, the phone can respond to the user's click operation on the icon of application B and display the seventh interface 93 shown in Figure 9(c). The seventh interface 93 contains a product page jump card. When the user clicks the product page jump card, the phone can display the page indicated by the product page jump card, that is, the details page of the target product, to provide the user with a smooth and efficient shopping experience.

[0300] When a user is not interested in the content of the product details page, they can close the page. Then, by clicking the icon of application C on the sixth interface 92, the phone responds to the user's click on the icon and displays the eighth interface 1001 shown in Figure 11. This eighth interface 1001 includes a video redirect card. When the user clicks this video redirect card, the phone can display the video playback interface indicated by the card to provide video playback service to the user.

[0301] Specifically, the system service detects an information retrieval request from application B at time t0. The target duration for application B is, for example, 30 seconds. The time it takes for the page redirection link of the target product in application B to be written to the clipboard (i.e., the write time) falls within (t0-30 seconds, t0). The system service detects an information retrieval request from application C at time t1. The target duration for application C is also, for example, 30 seconds. The write time for the video redirection link in application C falls within (t1-30 seconds, t1).

[0302] It should be noted that if the writing time of the page jump link for the target product of application B is not within (t0-30S, t0), the system service will reject the information retrieval request from application B. Application B will not obtain the page jump link for the target product and will not display the seventh interface 93 shown in Figure 9(c), but will instead display the default shopping interface of application B. Similarly, if the writing time of the video jump link for application C is not within (t1-30S, t1), the system service will reject the information retrieval request from application C. Application C will not obtain the video jump link, and the phone will not display the eighth interface 1001 shown in Figure 10, but will instead display the default video browsing interface of application C.

[0303] Based on the above solution, the scope of information read from the clipboard by the application is limited at the time level by the target duration, thereby reducing the number of times clipboard information is transmitted, reducing the risk of leakage of user privacy information, and protecting user privacy.

[0304] In related technologies, when a user first copies the page redirect link of the target product in application B, and then copies the video redirect link in application C, no other information is copied. At any time, when the user clicks the icon of application C, application C will read the most recently written information from its clipboard, namely the video redirect link of application C. That is, even if the user clicks the icon of application C a day or more later, application C will still read the video redirect link and can display the eighth interface 1001 shown in Figure 10 to the user based on that video redirect link. However, the timeliness of the information read by application C is poor; the information read may no longer be what the user needs, thus reducing the user experience.

[0305] When a user clicks the icon of application B at any time, application B reads the most recently written information from its clipboard, namely the video link to application C. This video link to application C is not information defined and used internally by application C, and application B cannot further process it to display an interface containing a link card. In other words, application B does not respond to the video link to application C, nor can it obtain the page link for the target product from application B to provide online shopping services to the user, thus degrading the user experience.

[0306] In summary, the information transmission method provided in this application embodiment ensures that the type of the determined target information conforms to the requested permissions and / or the type of the target information meets the requirements, while also guaranteeing the timeliness of the target information. This reduces the first application's access to old information and information unrelated to the first application, lowering the risk of information leakage due to unnecessary information exposure. Furthermore, it ensures the relevance, practicality, and effectiveness of the information transmitted to the first application, further enhancing the user experience.

[0307] The information transmission method provided by the embodiments of this application has been described above with reference to Figures 4, 7 and 8. In the various embodiments of this application, unless otherwise specified or logically conflicting, the terms and / or descriptions between the various embodiments are consistent and can be referenced by each other. The technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationship.

[0308] It is understood that, in order to achieve the above functions, the terminal device includes the corresponding hardware structure and / or software modules for executing each function. Those skilled in the art should readily recognize that, based on the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application. This application can divide the information transmission method into functional units based on the above method examples; for example, each function can be divided into separate functional units, or two or more functions can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit. It should be noted that the unit division in this application is illustrative and only represents one logical functional division; other division methods may exist in actual implementation.

[0309] The terminal device provided in the embodiments of this application will be described in detail below with reference to Figure 11. It should be understood that the description of the device embodiments corresponds to the description of the method embodiments. Therefore, for the sake of brevity, the contents not described in detail can be referred to the method embodiments above.

[0310] Figure 11 shows a schematic diagram of the structure of a terminal device provided in this application. The dashed lines in Figure 11 indicate that the unit or module is optional. The terminal device 11 can be used to implement the methods described in the above method embodiments. The terminal device 11 can be a terminal device or a chip (system).

[0311] Terminal device 11 includes one or more processors 1101, which can support the terminal device 11 in implementing the methods in the above-described method embodiments. The processor 1101 can be a general-purpose processor or a dedicated processor. For example, the processor 1101 can be a central processing unit (CPU). The CPU can be used to control the terminal device 11, execute software programs, and process data from the software programs. Terminal device 11 may also include a communication unit 1105 for implementing signal input (reception) and output (transmission).

[0312] The terminal device 11 described above can be a chip (system) that includes a memory and a processor, wherein the processor is configured to execute a computer program stored in the memory to implement the methods shown in the various embodiments described above.

[0313] The communication unit 1105 may be an input and / or output circuit of the chip (system), or the communication unit 1105 may be a communication interface of the chip (system), and the chip (system) may be a component of the terminal device 11.

[0314] For example, the communication unit 1105 may be a transceiver of the terminal device 11, or the communication unit 1105 may be a transceiver circuit of the terminal device 11. The terminal device 11 may include one or more memories 1102, which store a program 1104. The program 1104 may be executed by the processor 1101 to generate instructions 1103, causing the processor 1101 to execute the method described in the above method embodiments according to the instructions 1103. Optionally, the memory 1102 may also store data. Optionally, the processor 1101 may also read the data stored in the memory 1102, which may be stored at the same memory address as the program 1104, or the data may be stored at a different memory address than the program 1104.

[0315] The processor 1101 and memory 1102 can be configured separately or integrated together, for example, integrated on the system-on-chip (SOC) of the terminal device. For details on how the processor 1101 performs the bag detection method, please refer to the relevant description in the method embodiments.

[0316] It should be understood that the steps of the above method embodiments can be implemented by hardware logic circuits or software instructions in the processor 1101. The processor 1101 may be a CPU, a digital signal processor (DSP), a field programmable gate array (FPGA), or other programmable logic devices, such as discrete gates, transistor logic devices, or discrete hardware components.

[0317] This application also provides a computer program product that, when executed by processor 1101, implements the method of any of the method embodiments in this application. The computer program product can be stored in memory 1102, for example, as program 1104. Program 1104 undergoes preprocessing, compilation, assembly, and linking processes to ultimately be converted into an executable object file that can be executed by processor 1101.

[0318] This application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a computer, implements the method of any of the method embodiments of this application. The computer program may be a high-level language program or an executable object program.

[0319] The computer-readable storage medium is, for example, memory 1102. Memory 1102 can be volatile memory or non-volatile memory, or memory 1102 can include both volatile and non-volatile memory. The non-volatile memory can be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example, but not limitation, many forms of RAM are available, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced Synchronous DRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM).

[0320] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process and technical effects of the above-described apparatus and equipment can be referred to the corresponding processes and technical effects in the foregoing method embodiments, and will not be repeated here.

[0321] The systems, apparatuses, and methods disclosed in the embodiments provided in this application can be implemented in other ways. For example, some features of the method embodiments described above may be omitted or not performed. The apparatus embodiments described above are merely illustrative; the division of units is only a logical functional division, and in actual implementation, there may be other division methods. Multiple units or components may be combined or integrated into another system. Furthermore, the coupling between units or components can be direct or indirect, including electrical, mechanical, or other forms of connection.

[0322] The above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

[0323] Finally, the above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. An information transmission method, characterized in that, The method includes: upon detecting a request from a first application for information access to the clipboard, determining target information from the clipboard information based on the type of information that the first application can request and / or the type of information requested by the first application; and transmitting the target information to the first application.

2. The method according to claim 1, characterized in that, The type of the target information is a target type, wherein the target type belongs to the type of information that the first application can request, and belongs to the type of information requested by the first application; or, the target type belongs to the type of information that the first application can request; or, the target type belongs to the type of information requested by the first application.

3. The method according to claim 2, characterized in that, The step of determining target information from the clipboard information based on the type of information that the first application can request and / or the type of information requested by the first application includes: if there is information in the clipboard information of the type of the target type and whose write time is within the target time period, determining some or all of the information of the type of the target type and whose write time is within the target time period as the target information; or, determining the information of the type of the target type and whose write time is within the target time period with the most recent write time as the target information.

4. The method according to any one of claims 1 to 3, characterized in that, The target information is the information in the clipboard whose type is the target type, and whose write time is the closest to the write time in the information within the target time period.

5. The method according to claim 3 or 4, characterized in that, The target time period is the time period before the time the information acquisition request is detected, and the time elapsed since the time the information acquisition request is detected is the target time period.

6. The method according to claim 5, characterized in that, Multiple applications correspond to the same target duration, and the multiple applications include the first application.

7. The method according to claim 5, characterized in that, The target duration is obtained by determining the target duration based on the identification information of the first application and the first correspondence relationship, wherein the first correspondence relationship represents the correspondence between the application and the duration.

8. The method according to any one of claims 2 to 7, characterized in that, The target information is determined from the clipboard information based on the target type and the matching rules corresponding to the target type.

9. The method according to claim 8, characterized in that, The information retrieval request carries the matching rules corresponding to the target type.

10. The method according to claim 8 or 9, characterized in that, The target type is a link, and the matching rule corresponding to the target type is a regular expression.

11. The method according to any one of claims 2 to 10, characterized in that, The target type is either a first type or a second type; the first type is one of the following: address, telephone number, date, ID card number, verification code, or bank card number; the second type is a link.

12. The method according to any one of claims 1 to 11, characterized in that, The type of information that the first application can request is obtained in one of the following ways: pre-set by the user; obtained from the installation package of the first application; or obtained from the configuration file associated with the installation package of the first application.

13. The method according to any one of claims 1 to 12, characterized in that, The target information originates from the second application, and the step of transmitting the target information to the first application includes: transmitting the target information to the first application when the first application has permission to read information from the second application.

14. The method according to claim 13, characterized in that, The method further includes: determining at least one application capable of reading information from the second application based on the identification information of the second application and a second correspondence, wherein the second correspondence represents the correspondence between the application and other applications capable of reading information from the application; and determining that the first application has permission to read information from the second application if the first application exists among the at least one application.

15. The method according to claim 14, characterized in that, The second correspondence is generated in response to the user's input operation, or the second correspondence is generated based on user feedback information from historical application visits.

16. The method according to any one of claims 1 to 15, characterized in that, Before transmitting the target information to the first application, the method further includes: determining that the first application is a non-risk application.

17. The method according to any one of claims 1 to 16, characterized in that, The information transmission method is executed by the system service of the terminal device used for access control of the clipboard.

18. The method according to claim 17, characterized in that, The system service resides in the framework layer of the terminal device.

19. A terminal device, characterized in that, include: A processor coupled to a memory for storing programs or instructions, which, when executed by the processor, cause the terminal device to perform the method according to any one of claims 1 to 18.

20. A chip system, characterized in that, The chip system includes a memory and a processor, the processor being configured to execute a computer program stored in the memory to implement the method as described in any one of claims 1 to 18.

21. A computer-readable storage medium having a computer program or instructions stored thereon, characterized in that, When the computer program or instructions are executed, they cause the computer to perform the method as described in any one of claims 1 to 18.

22. A computer program product, characterized in that, It includes computer program instructions that cause the computer to perform the method as described in any one of claims 1 to 18.