Data processing method, electronic equipment and readable medium
By detecting copy and pasting operations in smart terminal devices, only sending data to authorized applications and generating desensitization marks, the problem of copy content leakage caused by the clipboard mechanism is solved, ensuring the security of user information and the smoothness of application.
Patent Information
- Application Number
- CN202310725353.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-16
- Publication Date
- 2024-12-17
AI Technical Summary
In smart terminal devices, the problem of copy content leakage caused by the clipboard mechanism, especially the user's personal information is read and utilized by non-target applications without authorization, affecting the user's privacy and normality of life.
By detecting the user's copy and paste operations, copy data is sent only to the user-authorized applications or target applications, ensuring that only the user-initiated paste operations or authorized applications can be detected to obtain the copied content, and a desensitization identifier is generated when storing the copied data. Protect user's personal information.
It effectively avoids non-user authorized applications to obtain copied content, prevent information leakage, ensures the security of users' personal information, and ensures the smoothness and user experience of the application.
Smart Images

Figure CN119150338A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of information security technology, and in particular to a data processing method, an electronic device and a readable medium. Background Art
[0002] The clipboard is a common tool in smart terminals such as mobile phones and tablets, used to transfer and share information between documents or applications, such as transferring user-copied data between documents or applications.
[0003] When users use the clipboard, there is a problem of leakage of copied content. For example, if a user copies a piece of text in application A and then pastes the copied text in application B, when the user opens application C, application C will automatically read the copied text. However, application C is not the target application where the user wants to paste the copied content, and the behavior of application C reading the copied content causes the leakage of user information. In addition, if the copied content contains the user's personal information, and application C improperly uses the user's personal information, it will affect the user's normal life. Summary of the invention
[0004] In order to solve the problem of leakage of copied content, an embodiment of the present application provides a data processing method, an electronic device and a readable medium.
[0005] In a first aspect, an embodiment of the present application provides a data processing method, which is applied to an electronic device, and the data processing method includes: detecting a copy operation on first data of a first application, and storing the first data; detecting a paste request for the first data by a second application; and corresponding to the second application satisfying a first condition, sending the stored first data to the second application, and the first condition includes: the second application is an application pre-authorized by the user.
[0006] It can be understood that the first application can be a copy application or a copy source application in the embodiment of the present application; the second application can be a paste application in the embodiment of the present application. The copy operation can be a copy operation in which the user selects to copy content on the touch screen of the electronic device, a copy operation initiated by voice, a copy operation initiated by a cursor (such as a mouse), a copy operation initiated by a gesture, a copy operation controlled by a key, etc. The paste request can be a paste request initiated by the second application when it detects the user's paste operation, or it can be a paste request spontaneously initiated by the second application. The paste operation can be a paste operation in which the user selects to paste content on the touch screen of the electronic device, a paste operation initiated by voice, a paste operation initiated by a cursor (such as a mouse), a paste operation initiated by a gesture, a paste operation controlled by a key, etc.
[0007] It can be understood that the second application can be a paste target application, that is, an application authorized by the user to access the copied content, or an application that detects the paste operation performed by the user; it can also be a paste non-target application, that is, an application that is not authorized by the user and has not detected the paste operation performed by the user, but requests access to the copied content.
[0008] The embodiment of the present application implements that only the paste target application or the user-authorized application that detects that the user has initiated a paste operation can obtain the first data, thereby avoiding the problem of non-user-authorized applications obtaining the first data and causing the first data to be leaked.
[0009] In a possible implementation, corresponding to the second application not satisfying the first condition, the stored first data is not sent to the second application, and the first condition includes: the second application is the application corresponding to the user's paste operation.
[0010] The embodiments of the present application avoid the problem that an application that is not authorized by the user or an application that does not detect that a paste operation is initiated by the user obtains the first data, causing leakage of the first data.
[0011] In a possible implementation, corresponding to the second application not satisfying the first condition and determining that the first data includes private information, the stored first data is not sent to the second application.
[0012] It is understandable that private information may include the user's personal information, such as the user's ID number, bank card number, bank card password, salary and other information.
[0013] The embodiments of the present application avoid the problem of non-user-authorized applications or applications that do not detect that the user has initiated a paste operation obtaining the user's personal information, thereby causing the user's personal information to be leaked.
[0014] In a possible implementation, corresponding to the second application not satisfying the first condition and the first data not including private information, the stored first data is sent to the second application.
[0015] In some embodiments, when a paste request is received, if the first data does not include private information, the first data is returned regardless of whether the second application satisfies the first condition, thereby ensuring the security of the user's personal information and the smoothness of the application.
[0016] In a possible implementation, storing the first data includes: generating a desensitized identifier of the private information in the first data in response to determining that the first data includes the private information; and storing the first data in association with the desensitized identifier of the first data.
[0017] For example, if it is determined that the first data includes an ID number, such as Bxxxxxxxxxxxxxxxxx, or that a field of the first data includes an ID number, such as Bxxxxxxxxxxxxxxxxxxxx, a desensitized identifier "ID number" is generated, and the first data is associated with the "ID number" and stored, so that when a request to paste the user's ID number is received, the user's ID number can be sent to the second application in a timely manner.
[0018] In one possible implementation, generating a desensitized identifier for private information in the first data includes: corresponding to the first data including N1 types of private information, generating N2 desensitized identifiers, where N2 is greater than or equal to N1; wherein, if N1 is equal to 1, the N2 desensitized identifiers include desensitized identifiers corresponding to the N1 types of private information; if N1 is greater than 1, the N2 desensitized identifiers include desensitized identifiers corresponding to the N1 types of private information and a summarized desensitized identifier of the first data.
[0019] For example, if it is identified that the first data only includes the identity card number "Bxxxxxxxxxxxxxxxxx" or the field of the first data only includes the identity card number "Bxxxxxxxxxxxxxxxxx", a desensitized identifier "identity card number" is generated.
[0020] For example, if it is recognized that the first data includes the identity card number "Bxxxxxxxxxxxxxxxxx" and the bank card number "Cxxxxxxxxxxxxxxx", the desensitized identifiers "identity card number" and "bank card number" are generated, and a summarized desensitized identifier "PII" is generated for the first data.
[0021] In one possible implementation, the first data is stored in association with a desensitized identifier of the first data, including: if N2 is equal to 1, the first data is stored in association with the desensitized identifier of the first data; if N2 is greater than 1, each type of private information in the first data is stored in association with the corresponding desensitized identifier, and the generalized desensitized identifier is stored in association with the first data.
[0022] For example, the first data only includes the ID number "Bxxxxxxxxxxxxxxxxx", and the desensitized identifier only includes the ID number, then the first data is stored in association with the ID number.
[0023] For example, the first data includes the ID number "Bxxxxxxxxxxxxxxxxx" and the bank card number "Cxxxxxxxxxxxxxxx", the desensitized identifier includes "ID number" and "bank card number", and the summarized desensitized identifier includes "PII", then "Bxxxxxxxxxxxxxxxxx" is stored in association with the "ID number", and "Cxxxxxxxxxxxxxxx" is stored in association with the "bank card number", and the first data is stored in association with "PII".
[0024] In one possible implementation, a desensitized identifier of the first data is displayed; a user's selection operation on the desensitized identifier of the first data is detected; and the stored first data is sent to the second application, including: sending data corresponding to the desensitized identifier selected in the selection operation in the stored first data to the second application.
[0025] For example, if it is detected that the user clicks on the ID number option on the interface of the electronic device, the information corresponding to the stored ID number is sent to the second application.
[0026] In a possible implementation, corresponding to the first data satisfying the second condition, the first data and the associated storage information of the first data are deleted.
[0027] In the embodiment of the present application, by deleting the first data and the associated storage information of the first data, the memory space occupied by the first data can be reduced and the first data can be prevented from being tracked.
[0028] For example, when the first data meets the second condition, "Bxxxxxxxxxxxxxxxxx" and "ID number" are deleted.
[0029] In a possible implementation, the second condition includes at least one of the following: a deletion operation of the user on the first data is detected; and a storage time of the first data meets a time threshold.
[0030] In one possible implementation, the electronic device includes a third application, which includes a write module, a storage module, a detection module, and a read module; wherein the write module sends the first data to the storage module after detecting a copy operation on the first data of the first application; the storage module is used to store the first data; the detection module is used to determine whether the second application meets the first condition in response to a paste request, and obtain the first data from the storage module if the second application meets the first condition, and send the first data to the read module; the read module is used to send the first data to the second application.
[0031] It can be understood that the third application can be the clipboard of the embodiment of the present application.
[0032] The embodiment of the present application determines the type of the second application that sends the paste request through the detection module in the third application, thereby ensuring that only the paste target application or the user-authorized application that detects the paste operation initiated by the user can obtain the first data, thereby avoiding the problem of non-user-authorized applications or applications that do not detect the paste operation initiated by the user obtaining the first data, thereby causing the first data to be leaked.
[0033] In a second aspect, an embodiment of the present application provides an electronic device, comprising: a memory for storing instructions executed by one or more processors of the electronic device, and a processor, which is one of the one or more processors of the electronic device, for implementing any data processing method provided by the above-mentioned first aspect and various possible implementations of the above-mentioned first aspect.
[0034] In a third aspect, an embodiment of the present application provides a readable medium having instructions stored thereon, which, when executed on an electronic device, enables the electronic device to implement any data processing method provided by the first aspect and various possible implementations of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 According to an embodiment of the present application, a schematic diagram of a clipboard framework is shown;
[0036] Figure 2 According to an embodiment of the present application, a schematic diagram of data identification is shown;
[0037] Figure 3 According to an embodiment of the present application, a schematic diagram of a system module of a clipboard is shown;
[0038] Figure 4 According to an embodiment of the present application, an interactive schematic diagram of a data processing method is shown;
[0039] Figure 5 According to an embodiment of the present application, a schematic diagram of a mobile phone interface change is shown in which a user initiates a copy operation in the memo interface 101 of the mobile phone, but does not initiate a paste operation in the browser application interface 102;
[0040] Figure 6 According to an embodiment of the present application, a schematic diagram of a mobile phone interface change is shown when a clipboard security protection mode is enabled and a user initiates a copy operation in the memo interface 101 of the mobile phone but does not initiate a paste operation in the browser application interface 102;
[0041] Figure 7 According to an embodiment of the present application, a schematic diagram of a display interface of a browser interface 103 showing an immediate deletion option 404 is shown;
[0042] Figure 8 According to an embodiment of the present application, a schematic diagram of a display interface for pasting and copying data is shown;
[0043] Figure 9a According to an embodiment of the present application, a schematic diagram of a display interface for pasting an ID card number is shown;
[0044] Figure 9bAccording to an embodiment of the present application, a schematic diagram of a display interface for pasting a communication address is shown;
[0045] Fig.10 According to an embodiment of the present application, a schematic diagram of a system module of a clipboard with a security protection mode is shown;
[0046] Fig.11 According to an embodiment of the present application, a flow chart of a data processing method in which a clipboard has security protection mode enabled is shown;
[0047] Fig.12 According to an embodiment of the present application, a flow chart of a data processing method is shown in which a clipboard has a security protection mode turned on and the copied content does not include private information;
[0048] Fig.13 According to an embodiment of the present application, an interactive schematic diagram of a data processing method of a clipboard with a security protection mode is shown;
[0049] Fig.14 According to an embodiment of the present application, an interactive schematic diagram of a data processing method when a clipboard is in two states: a security protection mode is turned on and a security protection mode is turned off is shown;
[0050] Fig.15 According to an embodiment of the present application, an interactive schematic diagram of a data processing method with a clipboard in a security protection mode is shown;
[0051] Fig.16 According to an embodiment of the present application, an interactive schematic diagram of a data processing method for storing copied content in association with a desensitized identifier is shown;
[0052] Fig.17 According to an embodiment of the present application, an interactive schematic diagram of a data processing method for instantly deleting the copied content and the corresponding desensitization mark stored in the clipboard is shown;
[0053] Fig.18 According to an embodiment of the present application, an interactive schematic diagram of a data processing method for selectively pasting copied content according to multiple desensitization identifiers is shown;
[0054] Fig.19 According to an embodiment of the present application, an interactive schematic diagram of a data processing method for selecting and pasting corresponding whole or segmented copied content according to multiple desensitization identifiers is shown;
[0055] Fig. 20 According to an embodiment of the present application, a structural schematic diagram of an electronic device 10 is shown. DETAILED DESCRIPTION
[0056] The illustrative embodiments of the present application include, but are not limited to, a data processing method, an electronic device, and a readable medium.
[0057] It can be understood that the technical solution of the present application is applicable to electronic devices that can provide a clipboard application software operating environment, for example, including but not limited to mobile phones, smart watches, tablet computers, vehicle-mounted devices, laptop computers, ultra-mobile personal computers (UMPC), netbooks, personal digital assistants (PDA), etc. The embodiments of the present invention do not impose any restrictions on the specific types of electronic devices. Among them, the clipboard can be an application software that can provide copy and paste functions, such as a system clipboard and an input method clipboard of an electronic device.
[0058] The following is an introduction to the clipboard framework in the electronic device system framework. Figure 1 As shown, when the electronic device adopts the Android system, the clipboard framework includes a copying application, a clipboard, and a pasting application. The copying application, the clipboard, and the pasting application are introduced below.
[0059] The copy application is used to write the copied data to the clipboard. The copy application includes a content provider, which is an interface for sharing data between applications and is used to parse complex data. The copy application can be any application in the application software of the electronic device that can use the clipboard, such as a memo application, a chat application, a conference application, a shopping application, a music application, etc.
[0060] The clipboard includes a clipboard manager (clipboardmanager), which is used to perform clip operations, obtain copy data, and write the copy data to the pasting application. The clipboard manager includes a clip description (clipdescription) and a clip data.item (clipdata.item).
[0061] It can be understood that, corresponding to the process of copying data by the copy application, the copy application needs to store the copied data, i.e., the clipdata object, in the clip object (clip) of the clipboard manager. The clipdata contains one or more clipdata.item objects and a clipdescription object. Corresponding to the process of pasting the copied data by the paste application, the paste application needs to obtain its available multipurpose internet mail extensions (MIME) type from the clipdescription and obtain the copied data from the clipdata.item or the content provider referenced by the clipdata.item.
[0062] The clip description includes clip metadata (clipmetadata), which can be a MIME type array. Clip data.item is a data item (dataitem), and clip data.item includes test data, uniform resource identifier (uniformresourceidentifier, URI) data and intent data. Among them, test data is a text string; URI data is data copied from the content provider by the clipboard; intent data is data that supports copying application shortcuts.
[0063] The paste application is used to obtain the copied data from the clipboard. The memory area of the paste application can record the MIME type and URI of the copied data. The paste application can be any application in the application software of the electronic device that can use the clipboard, such as a memo application, a chat application, a conference application, a shopping application, a music application, etc.
[0064] for Figure 1 In the clipboard framework shown, simple text data can be directly saved in the stack, that is, stored in the clipboard, while complex data requires the stack and the heap to complete together. The address is stored in the stack, and the address points to the data in the corresponding heap memory, that is, stored as a reference (such as URI data), so that the content provider can find the data to be pasted based on the reference and parse the complex data. Among them, the data structure of simple text data is relatively simple, such as text strings and text, etc.; the data structure of complex data is relatively complex, such as arrays, binary stream data, application resources, etc.
[0065] for Figure 1 In the clipboard framework shown, the method of copying data from the application to the clipboard may include the following process:
[0066] (1) Get the system clipboard.
[0067] It can be understood that the copy application first obtains the handle of the clipboard manager object to create a clip object.
[0068] (2) Copy the data to a new clip object (clip).
[0069] It can be understood that the copy application copies the copied data, ie, the clip data, into the created clip object.
[0070] (3) Place the new clip object (clip) on the clipboard (clipboard).
[0071] It can be understood that the copy application stores the created clip object in the clipboard.
[0072] (4) Add personal content to the clipboard (settings allow copying of personal content).
[0073] It is understandable that the copy application can set sensitive data, such as personal content, to be accessible, and store the information that the personal content can be accessed in the clip description, and then store the clip description in the clipboard.
[0074] Among them, corresponding to the copied data that does not include personal content, it can be Figure 2 Corresponding to the copied data including personal content, such as the copied data including "my password", it can be identified by Figure 2 The b mark in is used to mark it.
[0075] for Figure 1 In the clipboard framework shown, the method for pasting the copied data from the clipboard by the pasting application may include the following process:
[0076] (5) Get the system clipboard.
[0077] It can be understood that the pasting application can obtain the clipboard manager object through the corresponding code.
[0078] (6) Copy data from the clipboard (generally only the most recently copied data is obtained).
[0079] It can be understood that the pasting application can obtain the clipping data.item to obtain the copied data through the clipping data.item.
[0080] (7) Get the clipboard as text.
[0081] It can be understood that the pasting application can paste the obtained copied data as text.
[0082] Combine the following Figure 3 To the clipboard (i.e. Figure 1The system modules of the clipboard shown in the figure are introduced.
[0083] like Figure 3 As shown, the clipboard includes a writing module, a storage module, a reading module and a display module. The functions of the writing module, the storage module, the reading module and the display module are first introduced below.
[0084] The writing module is used to obtain the copied or clipped content copied by the user in the copy source application window (such as the application window of the chat application) of the copy source application, that is, to obtain the input information of the data source window.
[0085] The storage module is used to store the input information of the data source window sent by the writing module, and send the input information of the data source window to the display module or the reading module.
[0086] The readout module is used to output information corresponding to the paste operation to the paste target application window corresponding to the paste operation when detecting that the user initiates a paste operation in the paste target application window (such as the application window of the shopping application).
[0087] The display module is used to receive the user's operation on the clipboard and display the copied or cut content stored in the storage module.
[0088] The following describes the processing procedure of the clipboard detecting a copy operation or a paste operation based on the above modules.
[0089] like Figure 3 As shown, it can be understood that when a user initiates a copy operation in the copy source application window of the electronic device's copy source application, the clipboard's write module obtains the copy or cut content entered by the user in the copy source application window, and stores the copy or cut content in the clipboard's storage module. When the read module receives a paste operation initiated by the paste target application window of the paste target application, the copy or cut content corresponding to the paste operation is output to the paste target application window. When the storage module receives a paste request sent by the paste non-target application window of the paste non-target application that accesses the clipboard without user authorization, the copy or cut content corresponding to the paste operation is output. That is, even if the user is not authorized or no user initiates a paste operation, the paste non-target application can obtain the copy or cut content stored in the clipboard through the storage module.
[0090] Below Figure 4For example, a method for a user to copy data from a copy source application (i.e., copy application) of an electronic device to a paste target application (i.e., paste application) is described in detail. Among them, the electronic device includes an operating system and an application layer; the operating system includes a clipboard, and the application layer includes a copy source application, a paste target application, and a paste non-target application. The copy source application is an application that detects a copy operation initiated by a user (such as a chat application); the paste target application is an application that detects a paste operation initiated by a user (such as a shopping application); the paste non-target application is an application that is not opened or authorized by the user, or an application that does not detect a paste operation initiated by the user. In some embodiments, the application layer can be incorporated into the operating system, that is, the operating system also includes an application layer, which is not limited here.
[0091] 401: The user initiates a copy operation to the copy source application.
[0092] It can be understood that the copy source application can be any application in the application software that can use the clipboard, such as a memo application, a chat application, a conference application, a shopping application, a music application, etc.
[0093] In an embodiment of the present application, the copy operation initiated by the user can be a copy operation selected by the user on the touch screen of the electronic device, a copy operation initiated by voice, a copy operation initiated by a cursor (such as a mouse), a copy operation initiated by a gesture, a copy operation controlled by a button, etc.
[0094] 402: The source application writes the copied content to the clipboard.
[0095] For example, the copy source application is a memo application. The memo application writes the copied content (such as the ID card number "Bxxxxxxxxxxxxxxxxx") to the clipboard.
[0096] 403: The clipboard stores the copied content.
[0097] 404: The user initiates a paste operation to the target application.
[0098] In an embodiment of the present application, the paste operation initiated by the user can be a paste operation in which the user selects paste content on the touch screen of the electronic device, a paste operation initiated by voice, a paste operation initiated by a cursor (such as a mouse), a paste operation initiated by a gesture, a paste operation controlled by buttons, etc.
[0099] For example, a user initiates a paste operation in a search bar of a browser application, such as long pressing the search bar, to paste the copied content in the clipboard.
[0100] The method for pasting the copied content on the clipboard is introduced below through steps 405-410. The method for pasting when the user initiates a paste operation in the paste target application is first introduced below in conjunction with steps 405-407.
[0101] 405: The paste target application reads the copied content from the clipboard under user triggering.
[0102] It can be understood that the user trigger may refer to a user's paste operation, and the user paste operation detected by the paste target application may be a paste operation in which the user selects to paste content on a touch screen of an electronic device, a paste operation initiated by voice, a paste operation initiated by a cursor (such as a mouse), a paste operation initiated by a gesture, a paste operation controlled by a key, etc. When the paste target application detects the user trigger, it may send a request to the clipboard to read the copied content.
[0103] 406: The clipboard returns the copied content to the paste target application.
[0104] 407: The paste target application pastes the copied content into the input box.
[0105] In conjunction with steps 408 - 410 , a pasting method for initiating a pasting operation by a non-target application without user triggering is described below.
[0106] 408: Paste Non-target application reads copied content from the clipboard without user triggering.
[0107] 409: The clipboard returns the copied content to the non-target application.
[0108] 410: Paste non-target application to obtain copied content.
[0109] For example, Figure 5 As shown in interface a in FIG, after the user selects the ID card number "Bxxxxxxxxxxxxxxxxx" in the memo interface 101 of the mobile phone and clicks the copy option 201, the clipboard obtains and stores "Bxxxxxxxxxxxxxxxxx". Figure 5 As shown in interface b in FIG. 1 , when the user opens the browser application and there is no user operation (including paste operation), the browser application interface 102 of the mobile phone will pop up a window to prompt that the browser application has read the clipboard information 202. When the user clicks the input box 203 of the browser application interface 102, as shown in FIG. Figure 5As shown in the c interface in FIG. 1 , the browser application interface 103 is displayed. The browser application interface 103 displays "Bxxxxxxxxxxxxxxxxx" read from the clipboard by the browser application in the form of searching for the Bxxxxxxxxxxxxxxxxx control 204; and displays "Bxxxxxxxxxxxxxxxxx" stored in the clipboard in the form of clicking to paste the Bxxxxxxxxxxxxxxxxxxxx control 205. The user can paste Bxxxxxxxxxxxxxxxxxxxx by clicking to search for the Bxxxxxxxxxxxxxxxxx control 204 or clicking to paste the Bxxxxxxxxxxxxxxxxxxxx control 205. However, the browser application is not the paste target application for the user to paste Bxxxxxxxxxxxxxxxxxxxx.
[0110] From the above analysis, it can be found that the copied content entered by the user into the clipboard can be accessed by all applications at will, and the risk of data abuse is high. In addition, since the clipboard records the user's purely local input behavior, the user's private information, such as the user's personal information, appears frequently, and the risk of information leakage is high.
[0111] In order to solve the problem of leakage of copied content, an embodiment of the present application provides a data processing method, which includes: the user can customize the settings that allow applications to access the copied data (or copied content) stored in the clipboard, such as authorizing applications that can access the copied data stored in the clipboard in the system's settings application. When the clipboard obtains a paste request, it is determined whether the pasting application that sends the paste request is a user-authorized application or whether it is a paste target application corresponding to the paste operation performed by the user. If it is determined that the pasting application is neither a user-authorized application nor a paste target application, the copied data corresponding to the paste request is not returned to the pasting application. If it is determined that the pasting application is a user-authorized application or a paste target application, the copied data corresponding to the paste request is returned to the pasting application.
[0112] The following describes a scenario in which a browser application (paste application) requests to read the clipboard, taking the case where the browser application (paste application) is neither a user-authorized application nor a paste target application as an example.
[0113] For example, Figure 6 As shown in interface a in FIG, after the user selects the ID card number "Bxxxxxxxxxxxxxxxxx" in the memo interface 101 of the mobile phone and clicks the copy option 401, the clipboard stores "Bxxxxxxxxxxxxxxxxx". Figure 6 As shown in interface b in FIG. 1 , when the user enters the browser application interface 102, the browser application cannot read Bxxxxxxxxxxxxxxxxx stored in the clipboard, so it will not be displayed. Figure 5The browser application shown in the interface b reads the clipboard information 202.
[0114] In this way, only the paste target application or user-authorized application where the user initiates the paste operation can obtain the copied data, avoiding the problem of unauthorized applications or applications that do not detect that the user has initiated the paste operation obtaining the copied data, causing the leakage of copied data, such as user personal information.
[0115] In some embodiments, it is possible to first determine whether the copied data stored in the clipboard includes private information. If the copied data stored in the clipboard does not include the user's private information, there is no need to determine the type of the pasting application, that is, regardless of the type of the pasting application, the copied data corresponding to the paste request is returned; if the copied data stored in the clipboard includes the user's private information, the copied data corresponding to the paste request is returned only to the pasting application that is the user-authorized application or the pasting target application. Thus, when the clipboard receives a paste request, the type of the pasting application is further determined only when the copied data stored in the clipboard includes private information, avoiding determining the type of the pasting application every time a paste request is received, while ensuring the security of the user's personal information, the fluency of the application is guaranteed.
[0116] For example, when the clipboard receives a paste request, if it is determined that the latest copy data stored in the clipboard includes private information (such as an ID number), the type of the paste application that sent the paste request is determined, and based on the type of the paste application, it is determined whether to send the copy data corresponding to the paste request. If it is determined that the latest copy data stored in the clipboard does not include private information, the copy data corresponding to the paste request is returned to the paste application.
[0117] In some embodiments, the type of pasting application may be determined first, and then it may be determined whether the copied data stored in the clipboard includes private information. That is, the type of pasting application may be determined first, and if it is determined that the pasting application is a user-authorized application or a pasting target application, the copied data corresponding to the pasting request is returned to the pasting application; if it is determined that the pasting application is neither a user-authorized application nor a pasting target application, it may be determined whether the copied data stored in the clipboard includes private information, and whether to send the copied data corresponding to the pasting request is determined based on whether the copied data stored in the clipboard includes private information.
[0118] For example, when the clipboard receives a paste request, if it is determined that the pasting application is a user-authorized application or a paste target application, the copied data corresponding to the paste request is returned to the pasting application. If it is determined that the pasting application is neither a user-authorized application nor a paste target application, it is determined whether the copied data stored in the clipboard includes private information. If it is determined that the copied data corresponding to the paste request includes the user's private information, such as the user's ID number or bank card number, the copied data corresponding to the paste request is not returned to the pasting application. If it is determined that the copied data corresponding to the paste request does not include the user's private information, the copied data corresponding to the paste request is returned to the pasting application.
[0119] In some embodiments, after the copied data is pasted into the input box corresponding to the paste request, the user can click the immediate delete option to delete the corresponding copied data stored in the clipboard, thereby reducing the memory space occupied by the clipboard and preventing historical data from being tracked.
[0120] For example, Figure 7 As shown, after the copied data "Bxxxxxxxxxxxxxxxxx" is pasted into the input box 403, the browser interface 103 displays whether to delete immediately option 404. When it is detected that the user clicks the yes option 405, the ID card number "Bxxxxxxxxxxxxxxxxx" stored in the clipboard is deleted.
[0121] In some embodiments, when the time from when the copied data is pasted to the input box corresponding to the paste request meets a time threshold, the corresponding copied data stored in the clipboard is deleted.
[0122] In some embodiments, when the time for which the copied data is stored in the clipboard meets a time threshold, the copied data stored in the clipboard is deleted.
[0123] In an embodiment of the present application, when the clipboard obtains a copy request, the copy data corresponding to the copy request is obtained, and the copy data is identified. When it is identified that the copy data includes private information, such as when the user's ID number or bank card number is identified, a desensitization mark corresponding to the private information in the copy data is generated, and the copy data is associated with the desensitization mark and stored. Among them, the desensitization mark can be represented in the form of metadata, data type, copy sequence number, desensitization mask, identifier, etc., either singly or in combination.
[0124] It is understandable that the number of desensitized identifiers of the copied data depends on the number of types of private information in the copied data. For example, if it is identified that the copied data only includes one piece of private information, such as the user's ID card number, a desensitized identifier "ID card number (ID card)" is generated, and the copied data is associated with the "ID card number" and stored, so that when a request to paste the user's ID card number is received, the user's ID card number is returned in a timely manner.
[0125] In some embodiments, when the copied data is identified as one or more paragraphs of text and the copied data includes multiple private information, a corresponding desensitizing identifier is generated for each private information in the copied data, and each private information in the copied data is associated with the corresponding desensitizing identifier and stored.
[0126] For example, if it is recognized that the copied data includes the ID number "Bxxxxxxxxxxxxxxxxx" or the field of the copied data includes the ID number "Bxxxxxxxxxxxxxxxxx", a desensitized identifier "ID number" is generated. If it is recognized that the copied data also includes the bank card number "Cxxxxxxxxxxxxxxx" or the field of the copied data includes the bank card number "Cxxxxxxxxxxxxxxx", a desensitized identifier "Bank card number (Bankcard)" is generated. The ID number "Bxxxxxxxxxxxxxxxxxxxx" is stored in association with the "ID number", and the bank card number "Cxxxxxxxxxxxxxxx" is stored in association with the "Bank card number".
[0127] In some embodiments, when it is identified that the copied data is one or more paragraphs of text and the copied data includes multiple private information, a corresponding desensitization mark can be generated for each private information in the copied data, and a general desensitization mark can be generated for the copied data. The copied data is stored in association with the general desensitization mark, and each private information in the copied data is stored in association with the corresponding desensitization mark.
[0128] For example, if it is recognized that the copied data includes the ID number "Bxxxxxxxxxxxxxxxxx" or the field of the copied data includes the ID number "Bxxxxxxxxxxxxxxxxx", a desensitized identifier "ID number" is generated; if it is recognized that the copied data also includes the bank card number "Cxxxxxxxxxxxxxxx" or the field of the copied data includes the bank card number "Cxxxxxxxxxxxxxxx", a desensitized identifier "bank card number" is generated, and a generalized desensitized identifier "PII" is generated for the copied data. The ID number "Bxxxxxxxxxxxxxxxxx" is stored in association with the "ID number", the bank card number "Cxxxxxxxxxxxxxxx" is stored in association with the "bank card number", and the copied data is stored in association with "PII".
[0129] In an embodiment of the present application, when a user initiates a paste request in the paste application interface of an electronic device, the paste application interface can also display at least one desensitized identifier of the copied data stored in the clipboard, so that the user can paste the corresponding copied data based on the desensitized identifier.
[0130] The following takes the pasting application as the paste target application, and the copied data stored in the clipboard has a desensitized identifier. For example, the copied data is the ID number "Bxxxxxxxxxxxxxxxxx", and the desensitized identifier is "ID number" as an example. The method of returning the copied data corresponding to the paste request to the pasting application is introduced.
[0131] like Figure 8 As shown, when the user initiates a paste operation in the input box 402 of the browser application interface 103 (such as long pressing the input box 402), the browser application interface 103 displays the search ID number option 403 generated by the browser application and the click to paste ID number option 404 generated by the clipboard. The user can click the search ID number option 403 or click the paste ID number option 404 to paste the "Bxxxxxxxxxxxxxxxxx" stored in the clipboard to the input box 402.
[0132] The following takes the case where the copied data stored in the clipboard has multiple content identifiers and the pasting application is the pasting target application as an example to introduce a method for returning the copied data corresponding to the paste request to the pasting application.
[0133] For example, the copied data stored in the clipboard is a piece of text, and the copied data includes the user's name, ID number, mobile phone number, email address, etc. The desensitized identifier corresponding to the text content includes the name, ID number, mobile phone number, email address, etc. Figure 9a As shown, when the user clicks the input box 161 corresponding to the ID number* on the mobile phone information filling page 160 and initiates a paste operation (such as long pressing the input box 161), the mobile phone information filling page 160 can display a selected paste option 162 for the user to select the paste content. When the user clicks the ID number option 163, the ID number stored in the clipboard is written into the input box 161 corresponding to the ID number*.
[0134] For example, the copied data stored in the clipboard is a piece of text, and the copied data includes the user's name, mobile phone number, mailing address, company name, etc. The desensitized identifier corresponding to the text content includes the name, mobile phone number, mailing address, company name, etc. Figure 9b As shown, after the user clicks the input box 171 corresponding to the detailed address on the express information filling page 170 of the mobile phone and initiates a paste operation (such as long pressing the input box 171), the express information filling page 170 of the mobile phone can display a paste option 172 after selection. When the user clicks the communication address option 173, the communication address stored in the clipboard is written into the input box 171 corresponding to the detailed address.
[0135] In this way, the user can paste the corresponding copied data to the target location according to actual needs, thereby improving the user experience.
[0136] like Fig.10 As shown, Fig.10 A schematic diagram of the architecture of a clipboard in an electronic device provided in an embodiment of the present application is shown. Fig.10 The system architecture shown includes multiple functional units, Figure 3 The difference between the system architecture shown is that the configuration module, identification module, desensitization module and detection module are newly added. The connection relationship between the modules is as follows Fig.10 As shown below. The functions of the new modules are first introduced.
[0137] The configuration module is used to receive the user's personalized settings. For example, receiving the user's switching instruction to determine whether the clipboard runs a security protection mode according to the switching instruction; receiving the user's trust instruction to determine the application that the user authorizes to access the copied content according to the trust instruction; receiving the user's scheduled deletion instruction to delete the copied content stored in the clipboard according to the scheduled deletion instruction.
[0138] The identification module is used to identify the sensitive key fields of the copied content sent by the storage module, and divide the copied content sent by the storage module according to the sensitive key fields.
[0139] The desensitizing module is used to desensitize the sensitive key fields of the copied content sent by the identification module, generate a corresponding desensitizing identifier, and send the desensitizing identifier and the copied content to the storage module.
[0140] The detection module is used to detect whether the paste request is sent by the user authorized application or the paste target application; detect the copy source application of the copy content obtained by the writing module; detect whether the pasting application is the paste target application; or detect whether the pasting application is a paste non-target application.
[0141] In the embodiment of the present application, when the detection module determines that the pasting application is a paste non-target application, the reading module does not output the copied content, that is, the paste non-target application window of the paste non-target application cannot obtain the copied content.
[0142] It can be understood that since the clipboard provided in the embodiment of the present application can desensitize the copied content (ie, data stream), thereby enhancing the security of the data stream, the data stream in the embodiment of the present application is recorded as a security-protected data stream.
[0143] It can be understood that Fig.10In the system architecture shown, when a user initiates a copy operation in the copy source application window of the copy source application of the electronic device, the writing module of the clipboard obtains the copied or cut content of the copy source application window of the copy source application, and stores the copied or cut content in the storage module of the clipboard. The storage module sends the obtained copy or cut content to the recognition module to identify the sensitive keywords in the copy or cut content through the recognition module, and divides the copy or cut content, and then sends the divided copy or cut content to the desensitization module. The desensitization module desensitizes the divided copy or cut content and generates a corresponding desensitization identifier, which is then associated and stored in the storage module.
[0144] When the readout module receives a paste request, if the detection module determines that the pasting application is a paste target application or a user-authorized application, the copied content is returned. If the detection module determines that the pasting application is a paste non-target application, the copied content is not returned. In this way, the paste non-target application cannot obtain the copied content stored in the clipboard through the readout module.
[0145] The data processing method provided in the embodiment of the present application is described in detail below. The data processing method in the embodiment of the present application is applied to electronic equipment. Fig.11 A schematic diagram of a data processing method according to an embodiment of the present application is shown, and the data processing method includes:
[0146] 1101: A copy operation was detected.
[0147] In an embodiment of the present application, the copy operation detected by the clipboard can be a copy operation in which the user selects to copy content on the touch screen of the electronic device, a copy operation initiated by voice, a copy operation initiated by a cursor (such as a mouse), a copy operation initiated by a gesture, a copy operation controlled by a button, etc.
[0148] 1102: Identify whether the copied content corresponding to the copy operation includes private information. If the judgment result is yes, go to 1103: generate a desensitized mark for the copied content, and store the copied content in association with the desensitized mark; if the judgment result is no, go to 1104: detect a paste request.
[0149] In the embodiment of the present application, the writing module of the clipboard obtains the copy content corresponding to the copy operation and stores the copy content in the storage module of the clipboard. The storage module sends the obtained copy content to the identification module to identify whether the copy content includes private information (i.e., sensitive keywords), such as identity card number, bank card number, bank card password, salary and other information.
[0150] 1103: Generate a desensitized identifier for the copied content, and store the copied content in association with the desensitized identifier.
[0151] In an embodiment of the present application, if the identification module identifies private information (i.e., sensitive keywords) in the copied content, the copied content is divided and then sent to the desensitization module. The desensitization module desensitizes the divided copied content and generates a corresponding desensitization mark, which is then associated and stored in the storage module.
[0152] For example, when it is recognized that the copied content includes private information, such as the user's ID number or bank card number, a desensitized identifier corresponding to the private information in the copied content is generated, and the copied content is stored in association with the desensitized identifier.
[0153] For example, if it is recognized that the copied content includes the user's ID number, a desensitized identifier "ID number" is generated, and the copied content is stored in association with the "ID number" so that when a request to paste the user's ID number is received, the user's ID number can be returned in a timely manner.
[0154] In some embodiments, when the copied content is identified as one or more paragraphs of text and the copied content includes multiple private messages, a corresponding desensitizing identifier is generated for each private message in the copied content, and each private message in the copied content is associated with the corresponding desensitizing identifier and stored.
[0155] For example, if it is recognized that the copied content includes the ID number "Bxxxxxxxxxxxxxxxxx" or the field of the copied content includes the ID number "Bxxxxxxxxxxxxxxxxx", a desensitized identifier "ID number" is generated; if it is recognized that the copied content also includes the bank card number "Cxxxxxxxxxxxxxxx" or the field of the copied content also includes the bank card number "Cxxxxxxxxxxxxxxx", a desensitized identifier "bank card number" is generated. The ID number "Bxxxxxxxxxxxxxxxxx" is associated with the "ID number" and stored, and the bank card number "Cxxxxxxxxxxxxxxx" is associated with the "bank card number" and stored.
[0156] In some embodiments, when it is identified that the copied content is one or more paragraphs of text, and the copied content includes multiple private information, a corresponding desensitization mark is generated for each private information in the copied content, and a summary desensitization mark is generated for the copied content. The copied content is stored in association with the summary desensitization mark, and each private information in the copied content is stored in association with the corresponding desensitization mark.
[0157] For example, if it is recognized that the copied content includes the ID number "Bxxxxxxxxxxxxxxxxx" or the field of the copied content includes the ID number "Bxxxxxxxxxxxxxxxxx", a desensitized identifier "ID number" is generated; if it is recognized that the copied content also includes the bank card number "Cxxxxxxxxxxxxxxx" or the field of the copied content includes the bank card number "Cxxxxxxxxxxxxxxx", a desensitized identifier "bank card number" is generated, and a generalized desensitized identifier "PII" is generated for the copied content. The ID number "Bxxxxxxxxxxxxxxxxx" is stored in association with the "ID number", the bank card number "Cxxxxxxxxxxxxxxx" is stored in association with the "bank card number", and the copied content is stored in association with "PII".
[0158] In an embodiment of the present application, when it is identified that the copied content written to the clipboard contains private information, a desensitizing identifier corresponding to the private information contained in the copied content is generated, and the copied content is associated with the desensitizing identifier and stored, so that the copied content has controlled paste protection.
[0159] 1104: A paste request was detected.
[0160] In an embodiment of the present application, the paste request detected by the clipboard may include a paste request initiated when the paste target application detects a paste operation initiated by the user. The paste operation may be a paste operation in which the user selects the paste content on the touch screen of the electronic device, a paste operation initiated by voice, a paste operation initiated by a cursor (such as a mouse), a paste operation initiated by a gesture, a paste operation controlled by a button, etc.
[0161] In an embodiment of the present application, when a user initiates a paste operation in an application interface of an electronic device, a desensitizing identifier can be selected in the application interface of the electronic device to paste the copied content corresponding to the desensitizing identifier. The desensitizing identifier can be represented in the form of metadata, data type, copy sequence number, desensitizing mask, identifier, etc., either singly or in combination.
[0162] The following takes the case where the copied data stored in the clipboard has a desensitized label, such as the copied data is the ID number "Bxxxxxxxxxxxxxxxxx" and the desensitized label is "ID number" as an example to introduce the method for the user to paste the ID number.
[0163] For example, Figure 8As shown, when the user clicks the input box 402 of the browser application interface 103, the browser application interface 103 displays the search ID number option 403 generated by the browser application and the click to paste ID number option 404 generated by the clipboard. The user can paste "Bxxxxxxxxxxxxxxxxx" stored in the clipboard to the input box 402 by clicking the search ID number option 403 or clicking the paste ID number option 404.
[0164] The following takes the case where the copied data stored in the clipboard has multiple content identifiers and the pasting application is the pasting target application as an example to introduce a method for determining that the pasting application is a paste request sent in response to a paste operation performed by the user and sending the copied data corresponding to the paste request to the pasting application.
[0165] For example, the copied data stored in the clipboard is a piece of text, and the copied data includes the user's name, ID number, mobile phone number, email address, etc. The desensitized identifier corresponding to the text content includes the name, ID number, mobile phone number, email address, etc. Figure 9a As shown, when the user clicks the input box 161 corresponding to the ID number* on the mobile phone information filling page 160 and initiates a paste operation (such as long pressing the input box 161), the mobile phone information filling page 160 can display a selected paste option 162 for the user to select the paste content. When the user clicks the ID number option 163, the ID number stored in the clipboard is written into the input box 161 corresponding to the ID number*.
[0166] For example, the copied data stored in the clipboard is a piece of text, and the copied data includes the user's name, mobile phone number, mailing address, company name, etc. The desensitized identifier corresponding to the text content includes the name, mobile phone number, mailing address, company name, etc. Figure 9b As shown, after the user clicks the input box 171 corresponding to the detailed address on the express information filling page 170 of the mobile phone and initiates a paste operation (such as long pressing the input box 171), the express information filling page 170 of the mobile phone can display a paste option 172 after selection. When the user clicks the communication address option 173, the communication address stored in the clipboard is written into the input box 171 corresponding to the detailed address.
[0167] In an embodiment of the present application, the paste request detected by the clipboard may be sent by a paste target application, that is, an application authorized by the user to access the copied content, or an application that detects the paste operation performed by the user; it may also be sent by a paste non-target application, that is, an application that is not authorized by the user and has not detected the paste operation performed by the user, but requests access to the copied content.
[0168] The user authorizes the application to access the copied content in a manner that includes: the user authorizes application A to access the copied content in a clipboard setting interface (or a system setting interface). When the clipboard configuration module receives the user's authorization that application A can access the copied content, the access rights of application A are stored.
[0169] 1105: Determine whether the pasting application sending the paste request is a user-authorized application or a paste target application. If the determination result is yes, go to 1106: send the copied content corresponding to the paste request to the pasting application; if the determination result is no, go to 1107: do not send the copied content corresponding to the paste request.
[0170] In some embodiments, when the clipboard obtains a paste request, if the pasting application is neither the user-authorized application nor the paste target application, it is determined whether the copy content of the paste request includes the user's private information, such as the user's personal information. If the copy content corresponding to the paste request includes the user's private information, such as the user's ID number or bank card number, then go to step 1107: do not send the copy content corresponding to the paste request. If it is determined that the copy content corresponding to the paste request does not include the user's private information, then go to step 1106: send the copy content corresponding to the paste request to the pasting application.
[0171] 1106: Send the copied content corresponding to the paste request to the pasting application.
[0172] 1107: Do not send the copied content corresponding to the paste request.
[0173] In some embodiments, after the copied content is pasted into the input box corresponding to the paste request, the user can click the immediate delete option to delete the corresponding copied content stored in the clipboard.
[0174] For example, Figure 7 As shown, after the copied content "Bxxxxxxxxxxxxxxxxx" is pasted into the input box 403, the browser interface 102 displays an immediate deletion option 404. After receiving the user click on the yes option 405, the "Bxxxxxxxxxxxxxxxxx" stored in the clipboard is deleted.
[0175] In some embodiments, when the time from when the copied content is pasted to the input box corresponding to the paste request meets a time threshold, the corresponding copied content stored in the clipboard is deleted.
[0176] In the embodiment of the present application, only applications initiated by the user or authorized by the user can obtain the copied content, thereby preventing applications that are not authorized by the user or that do not detect the paste request initiated by the user from obtaining the copied content and causing leakage of the copied content.
[0177] The data processing method provided in the embodiment of the present application is described in detail below. Fig.11 The difference between the illustrated embodiments is that the data processing method of the embodiments of the present application introduces a processing method for copying content that does not include private information. Fig.12 A schematic diagram of a data processing method according to an embodiment of the present application is shown, and the data processing method includes:
[0178] 1201: A copy operation was detected.
[0179] In an embodiment of the present application, the copy operation detected by the clipboard can be a copy operation in which the user selects to copy content on the touch screen of the electronic device, a copy operation initiated by voice, a copy operation initiated by a cursor (such as a mouse), a copy operation initiated by a gesture, a copy operation controlled by a button, etc.
[0180] 1202: It is recognized that the copied content corresponding to the copy operation does not include private information.
[0181] For example, the copied content is: the four heat treatment processes are annealing, normalizing, quenching and tempering. The recognition module recognizes that the copied content does not include private information, so the desensitization module does not generate a desensitization mark for the copied content, that is, the copied content does not have a desensitization mark.
[0182] It can be understood that when it is identified that the copied content corresponding to the copy operation includes private information, the above steps 1103-1107 are executed and will not be repeated here.
[0183] 1203: A paste request was detected.
[0184] In an embodiment of the present application, the paste request detected by the clipboard may include a paste request sent by a paste target application when it detects a paste operation initiated by a user. The paste operation may be a paste operation in which the user selects paste content on the touch screen of the electronic device, a paste operation initiated by voice, a paste operation initiated by a cursor (such as a mouse), a paste operation initiated by a gesture, a paste operation controlled by a key, etc. The paste request may also be sent by a paste non-target application.
[0185] It can be understood that the copied content requested by the paste request is the copied content most recently stored in the clipboard, that is, the four heat treatments are annealing, normalizing, quenching, and tempering. Since the copied content does not have a desensitization mark, the desensitization mark will not be displayed in the paste application interface.
[0186] 1204: Send the copied content corresponding to the paste request to the pasting application.
[0187] In an embodiment of the present application, since the copied content corresponding to the paste request does not include private information, such as the user's personal information, regardless of whether the paste request is an application authorized by the user or a paste target application corresponding to a paste operation performed by the user, the copied content corresponding to the paste request is returned to the pasting application, thereby ensuring the security of the copied content while ensuring the smoothness of the application.
[0188] The data processing method provided in the embodiment of the present application is described in detail below. The data processing method in the embodiment of the present application is applied to electronic devices and is introduced below using a mobile phone as an example. Fig.13 An interactive schematic diagram of a data processing method according to an embodiment of the present application is shown, and the data processing method includes:
[0189] 1301: A user initiates a replication operation to a replication source application.
[0190] It can be understood that the copy source application can be any application in the application software that can use the clipboard, such as a memo application, a chat application, a conference application, a shopping application, a music application, etc.
[0191] In an embodiment of the present application, the copy operation initiated by the user can be a copy operation in which the user selects the copy content on the touch screen of the electronic device, a copy operation initiated by voice, a copy operation initiated by a cursor (such as a mouse), a copy operation initiated by a gesture, a copy operation controlled by a button, etc.
[0192] 1302: The copy source application writes the copied content to the clipboard.
[0193] For example, the copy source application is a memo application. The memo application writes the copied content (such as the ID card number "Bxxxxxxxxxxxxxxxxx") to the clipboard.
[0194] 1303: The clipboard recognizes private information in the copied content.
[0195] It is understandable that private information can be the user's personal information, such as ID number, bank card number, bank card password, salary and other information.
[0196] 1304: The clipboard generates a desensitized tag for private information.
[0197] For example, when the copied content is the ID card number "Bxxxxxxxxxxxxxxxxx", when the clipboard recognizes that the copied content includes private information, a desensitized identifier for the copied content is generated, such as a desensitized identifier "ID card number".
[0198] 1305: The clipboard stores the copied content in association with the identifier.
[0199] For example, the clipboard stores the copied content "Bxxxxxxxxxxxxxxxxx" in association with the desensitized identifier "ID number".
[0200] 1306: The user initiates a paste operation to the paste target application.
[0201] In an embodiment of the present application, the paste operation initiated by the user can be a paste operation in which the user selects paste content on the touch screen of the electronic device, a paste operation initiated by voice, a paste operation initiated by a cursor (such as a mouse), a paste operation initiated by a gesture, a paste operation controlled by buttons, etc.
[0202] For example, a user initiates a paste operation in a search bar of a browser application to paste the copied content in a clipboard.
[0203] 1307: The paste target application pastes the copied content according to the identifier.
[0204] It can be understood that the above-mentioned paste target application pastes the copied content according to the identifier, which is equivalent to the paste target application detecting a paste operation initiated by the user or detecting a desensitized identifier selected by the user.
[0205] 1308: The paste target application requests the clipboard to read the copied content out of the clipboard.
[0206] It can be understood that when the paste target application obtains the paste operation initiated by the user, it requests the clipboard to read the copied content corresponding to the paste operation initiated by the user out of the clipboard.
[0207] 1309: The clipboard allows pasting and returns the specified copied content to the paste target application.
[0208] It can be understood that since the paste operation is initiated by the user, the clipboard permits the paste and returns the requested copied content to the paste target application.
[0209] 1310: The paste target application pastes the copied content into the input box.
[0210] 1311: The non-target application of the paste requests the clipboard to read the copied content out of the clipboard.
[0211] In some embodiments, when the paste non-target application recognizes that the clipboard includes copied content, the paste non-target application requests the clipboard to read the copied content out of the clipboard.
[0212] For example, when the shopping application recognizes that the content copied to the clipboard includes the height and weight information of the user, the shopping application requests the clipboard to read the copied content out of the clipboard.
[0213] 1312: The clipboard does not allow pasting and returns null or an identifier or error code to the non-target application for pasting.
[0214] For example, the clipboard returns an empty or desensitized identifier "ID number" or "Paste failed" to a non-target application.
[0215] 1313: Paste to non-target application cannot paste or can only read the logo.
[0216] In some embodiments, when the copy content requested to be pasted by the non-target application includes private information, the non-target application cannot obtain the requested copy content, and can only obtain an empty or desensitized identifier or error code. When the copy content requested to be pasted by the non-target application does not include private information, the requested copy content is returned, thereby ensuring the security of the copied content and the smoothness of the application.
[0217] In the embodiment of the present application, when the clipboard obtains the copied content, the copied content is first identified, desensitized, and marked, and then associated and stored. When the clipboard receives a paste request, the access to the copied content is restricted according to the type of the copied content accessed by the paste request and the initiator of the paste request, so that only the application that detects the paste operation performed by the user or the application authorized by the user can obtain the copied content.
[0218] The data processing method provided in the embodiment of the present application is described in detail below. Fig.13 The difference between the illustrated embodiments is that the data processing method of the embodiments of the present application introduces data processing methods for two states of the clipboard: the security protection mode is turned on and the security protection mode is turned off. Fig.14 An interactive schematic diagram of a data processing method according to an embodiment of the present application is shown, and the data processing method includes:
[0219] 1401: A user initiates a replication operation to a replication source application.
[0220] For the above method of initiating a copy operation from a user to a copy source application, see Fig.13 Step 1301 of the illustrated embodiment will not be described in detail here.
[0221] 1402: The copy source application selects the copy content.
[0222] It can be understood that the copy source application can select corresponding copy content in response to the user's copy operation.
[0223] 1403: The source application writes the copied content to the clipboard.
[0224] For the method of writing the copied content to the clipboard, see Fig.13 Step 1302 of the illustrated embodiment will not be described in detail here.
[0225] The following describes a method for switching (alt) the security protection mode in conjunction with steps 1404-1405.
[0226] 1404: The copied contents of the clipboard are pasted under control.
[0227] It can be understood that when the security protection mode is turned on, the copied content stored in the clipboard is pasted in a controlled manner. That is, when it is recognized that the copied content includes private information, only the paste target application that detects the paste operation initiated by the user or the application authorized by the user can obtain the copied content corresponding to the paste operation.
[0228] Among them, the user can customize whether to turn on the security protection mode, for example, whether to turn on the security protection mode in the system's settings application.
[0229] For example, when the security protection mode is turned on, after the user copies data, such as copying an ID card, bank card, mailing address, and other data containing the user's personal information, when the clipboard recognizes that the copied content includes private information (i.e., the user's personal information), the copied content will be pasted in a controlled manner, that is, the application will be allowed to access and paste the copied data only after the user's authorization or confirmation. Among them, during the controlled paste process, the copied content is detected, desensitized, marked, and then stored, and access to the copied content is strictly controlled, such as limiting the ability of only users to trigger paste. The method for detecting, desensitizing, marking, and storing copied content is described in detail in the following sections. Figure 15-19 The embodiments shown are introduced only and will not be described in detail here.
[0230] 1405: The copied content of the clipboard is pasted without control.
[0231] It is understood that when the security protection mode is turned off, the copied content stored in the clipboard is not pasted in a controlled manner. That is, when the paste target application or the paste non-target application requests the clipboard to read the copied content stored in the clipboard, the copied content is returned regardless of whether the copied content includes private information.
[0232] 1406: The user initiates a paste operation to the paste target application.
[0233] For the above method of initiating a paste operation from a user to a paste target application, see Fig.13 Step 1306 of the illustrated embodiment will not be described in detail here.
[0234] In conjunction with steps 1407-1413, the following introduces a data processing method when the clipboard switches to controlled paste of copied content, that is, when the clipboard turns on the security protection mode.
[0235] 1407: The target application confirms the paste.
[0236] It can be understood that the above-mentioned confirmation of the paste by the paste target application is equivalent to the paste target application receiving the paste operation initiated by the user or detecting the desensitizing mark selected by the user.
[0237] 1408: The paste target application requests to read the clipboard.
[0238] It can be understood that when the paste target application detects the paste operation initiated by the user, it requests the clipboard to read the copied content corresponding to the paste operation out of the clipboard.
[0239] 1409: The clipboard allows pasting and returns the copied content to the paste target application.
[0240] It can be understood that, since the paste operation is initiated by the user, the clipboard permits the paste and returns the copied content requested by the paste target application to the paste target application.
[0241] 1410: The paste target application pastes the copied content into the input box.
[0242] 1411: Paste non-target application sends a request to read the clipboard.
[0243] In some embodiments, when the paste non-target application recognizes that there is copied content in the clipboard, the application requests the clipboard to read the copied content out of the clipboard.
[0244] For example, when the financial management application recognizes that there is copied content in the clipboard, such as when the copied content includes the user's salary information, it requests the clipboard to read the copied content out of the clipboard.
[0245] 1412: The clipboard sends a message to the non-target application that paste is not allowed and does not return the copied content.
[0246] For example, the clipboard returns a message to the non-target application that the paste is not allowed and a desensitized label "ID number" or "Paste failed".
[0247] 1413: Paste to non-target application cannot be pasted.
[0248] 1414: The user initiates a paste operation.
[0249] In combination with steps 1415-1421, the following describes the pasting method when the clipboard is switched to uncontrolled pasting of copied content, that is, when the clipboard security protection mode is turned off.
[0250] 1415: The target application confirms the paste.
[0251] 1416: The target application requests to read the clipboard.
[0252] 1417: The clipboard returns the copied content to the paste target application.
[0253] It is understandable that when the security protection mode is turned off, the copied content stored in the clipboard is not pasted in a controlled manner. That is, when the paste target application requests the clipboard to read the copied content stored in the clipboard, the copied content is returned regardless of whether the copied content includes private information.
[0254] 1418: The paste target application pastes the copied content into the input box.
[0255] 1419: Paste non-target application sends a request to read the clipboard.
[0256] 1420: The clipboard returns the copied content to the non-target application.
[0257] It is understood that when the security protection mode is turned off, the copied content stored in the clipboard is not pasted in a controlled manner. That is, when the non-target application requests the clipboard to read the copied content stored in the clipboard, the copied content is returned regardless of whether the copied content includes private information.
[0258] 1421: Paste the copied content to a non-target application.
[0259] In an embodiment of the present application, when the clipboard obtains the copied content, it is determined whether the copied content is controlled to be pasted according to whether the security protection mode is turned on or not. When the security protection mode is turned on, the copied content stored in the clipboard is controlled to be pasted, and the clipboard restricts access to the copied content according to the type of the copied content accessed by the paste request and the pasting application, so that only the application that detects the paste operation performed by the user or the application authorized by the user can obtain the copied content. When the security protection mode is turned off, the copied content stored in the clipboard is not controlled to be pasted. That is, when a pasting application (such as a paste target application or a paste non-target application) requests the clipboard to read the copied content stored in the clipboard, the copied content is sent to the pasting application regardless of whether the copied content includes private information.
[0260] The following example takes the electronic device as a mobile phone and the copied content as the ID card number. Fig.14 In the illustrated embodiment, the data processing method when the copied content is controlled to be pasted is described in detail. Fig.15 An interactive schematic diagram of a corresponding data processing method is shown, and the data processing method includes:
[0261] 1501: The user initiates a copy operation (such as copying an ID number).
[0262] For example, the user copies the ID number "Bxxxxxxxxxxxxxxxxx" in the copy source application (such as a chat application) of the mobile phone.
[0263] 1502: The source application writes the ID number to the clipboard.
[0264] For example, the copy source application (such as a chat application) writes the ID number "Bxxxxxxxxxxxxxxxxx" to the clipboard.
[0265] 1503: The clipboard recognizes the ID number.
[0266] It can be understood that when the clipboard turns on the security protection mode, when the clipboard obtains the copied content, such as the ID number, the application identifier of the copied content and the copy source application is written into the timestamp association record, and whether the copied content includes private information (i.e., the user's personal information) is identified, such as whether the copied content is the ID number or whether the ID number is included in the field of the copied content. If it is detected that the copied content includes private information (i.e., the user's personal information), the copied content is securely stored, such as encrypted storage.
[0267] 1504: The clipboard stores the ID number securely.
[0268] 1505: The clipboard's ID number is protected from controlled pasting.
[0269] It can be understood that when the clipboard is in security protection mode, if it is recognized that the copied content includes private information (ie, the user's personal information), the copied content will be securely stored and the copied content will be protected by controlled pasting.
[0270] 1506: The user initiates a paste operation (such as pasting an ID number).
[0271] For example, the user opens a paste target application (such as a shopping application) and initiates an operation to paste the ID card number.
[0272] In conjunction with steps 1507-1510, the following describes a method for switching the clipboard to copy content authorized or pasted by the user.
[0273] 1507: The target application confirms the paste.
[0274] It can be understood that the above-mentioned confirmation of the paste by the paste target application is equivalent to the paste target application detecting the paste operation initiated by the user or detecting the desensitizing mark selected by the user.
[0275] 1508: The target application requests to read the clipboard.
[0276] It can be understood that when the paste target application detects the paste operation initiated by the user, it requests the clipboard to read the copied content corresponding to the paste operation out of the clipboard.
[0277] 1509: The clipboard allows pasting and returns the copied content (ID number) to the paste target application.
[0278] It can be understood that since the paste operation is initiated by the user, the clipboard allows the paste and returns the ID number to the paste target application.
[0279] 1510: The target application pastes the ID number into the input box.
[0280] The following introduces a method for processing data when the paste request is not authorized by the user or the paste request is in conjunction with steps 1511-1513.
[0281] 1511: Paste non-target application sends a request to read the clipboard.
[0282] In some embodiments, when the paste non-target application recognizes that the clipboard includes copied content, the paste non-target application requests the clipboard to read the copied content out of the clipboard.
[0283] For example, when the financial management application recognizes that there is copied content in the clipboard, it requests the clipboard to read the copied content out of the clipboard.
[0284] 1512: The clipboard sends a "no paste allowed" message to the non-target application and does not return the copied content.
[0285] For example, the clipboard returns a message to the non-target application indicating that the paste is not allowed and a desensitized mark "ID number" or "Paste failed".
[0286] 1513: Paste to non-target application cannot be pasted.
[0287] In the embodiment of the present application, when the user turns on the security protection mode and the clipboard obtains the copied content, the private information in the copied content (i.e., the user's personal information) is identified and the paste permission is set, that is, the private information can only be read by the paste target application or the application authorized by the user, and the copy content read by the non-target application is empty, thereby protecting the security of the copied content and the smoothness of the application operation. Therefore, the embodiment of the present application avoids the abuse of copied content, cuts off the path for non-paste target applications to steal clipboard private information, protects the user's private information from being leaked to applications or objects that the user does not intend to disclose, and safeguards the interests of the user.
[0288] The following example takes the electronic device as a mobile phone and the copied content as the ID card number. Fig.13 In the illustrated embodiment, the method in which the clipboard stores the copied content in association with the identifier is described in detail. Fig.16 The embodiment shown and Fig.15 The difference between the illustrated embodiments is that, in the process of storing the copied content containing private information, a corresponding desensitizing identifier is generated, and the desensitizing identifier is associated with the copied content and stored. Fig.16 A schematic diagram of a data processing method according to an embodiment of the present application is shown, and the data processing method includes:
[0289] 1601: The user initiates a copy operation (such as copying an ID number).
[0290] For example, the user copies the ID number "Bxxxxxxxxxxxxxxxxx" in the copy source application (such as a chat application) of the mobile phone.
[0291] 1602: The source application writes the ID number to the clipboard.
[0292] 1603: The clipboard recognizes the ID number.
[0293] In the embodiment of the present application, when the clipboard opens the security protection mode, after obtaining the copied content, such as the ID number, the copied content and the application identifier of the copy source application are written into the timestamp association record. And it is identified whether the copied content includes private information, such as identifying whether the copied content is the ID number or whether the ID number is included in the field of the copied content.
[0294] 1604: The clipboard generates the identifier "ID number".
[0295] In an embodiment of the present application, if it is detected that the copied content includes private information, a desensitized mark corresponding to the private information is generated.
[0296] For example, if the clipboard recognizes that the copied content includes an ID number, a desensitized label "ID number" is generated.
[0297] 1605: The clipboard stores the ID number in association with the identifier “ID number”.
[0298] In an embodiment of the present application, when the clipboard is running in security protection mode, when it is recognized that the copied content written to the clipboard contains private information (such as user's personal information), a desensitizing identifier corresponding to the copied content is generated, and the copied content is associated with the corresponding desensitizing identifier and stored, so that the copied content has controlled paste protection.
[0299] 1606: The user initiates a paste operation (such as pasting an ID number).
[0300] In an embodiment of the present application, when a user opens a paste target application (such as a shopping application) and initiates a paste operation, the user can select a desensitized identifier "ID number" to confirm the pasted content and authorize the paste target application to request to read the clipboard.
[0301] It can be seen from this that the embodiments of the present application provide explicit protection of privacy visualization, and users can perceive private information, operate private information, and experience private information.
[0302] The following is an introduction to the method of pasting the ID card number of the pasted target application in conjunction with steps 1607-1610.
[0303] 1607: The paste target application selects the identifier "ID number" to confirm the paste.
[0304] It can be understood that the above-mentioned paste target application selects the identifier "ID number" to confirm paste, which is equivalent to the paste target application detecting the paste operation initiated by the user with the selected desensitized identifier "ID number".
[0305] 1608: The paste target application requests the clipboard to read the copied content associated with the identifier “ID number” out of the clipboard.
[0306] It can be understood that when the paste target application obtains the paste operation initiated by the user with the selected desensitized identifier being "ID number", it requests the clipboard to read the copied content associated with the identifier "ID number" out of the clipboard.
[0307] 1609: The clipboard allows pasting and returns the ID number associated with the identifier "ID number" to the paste target application.
[0308] It can be understood that since the paste operation is initiated by the user, the clipboard allows the paste and returns the ID number associated with the "ID number" to the paste target application.
[0309] 1610: The target application pastes the ID number into the input box.
[0310] The following describes a method for a non-target application to request the clipboard to read data in conjunction with steps 1611-1613.
[0311] 1611: Paste non-target application sends a request to read the clipboard.
[0312] In some embodiments, when the paste non-target application recognizes that the clipboard includes copied content, the paste non-target application requests the clipboard to read the copied content out of the clipboard.
[0313] For example, when the shopping application recognizes that the content copied to the clipboard includes the salary information of the user, the shopping application requests the clipboard to read the copied content out of the clipboard.
[0314] 1612: The clipboard sends a message to the non-target application that paste is not allowed and returns empty or an identifier or error code.
[0315] For example, the clipboard returns a message indicating that pasting is not allowed and "paste failed" or a desensitized identifier "ID number" to a non-target application.
[0316] 1613: Pasting to a non-target application fails or only the "ID number" can be read.
[0317] The embodiments of this application are Fig.15On the basis of the embodiment shown, a desensitized identifier is generated according to the identification result of the copied content, and the copied content is associated with the desensitized identifier and securely stored, so that the user can access the corresponding copied content according to the desensitized identifier link. In addition, the embodiment of the present application implements permission control on access to the copied content, avoiding the problem of leakage of the copied content.
[0318] The following uses the electronic device as a mobile phone and the copied content as an ID card number as an example to introduce the data processing method. Fig.17 A schematic diagram of a data processing method according to an embodiment of the present application is shown. Fig.17 The embodiment shown is Fig.15 and Fig.16 The difference between the illustrated embodiments is that, in the embodiments of the present application, when the user performs a deletion operation, the copied content and the corresponding desensitizing mark stored in the clipboard are deleted immediately. Fig.17 The data processing method shown includes:
[0319] It can be understood that steps 1701-1713 of the embodiment of the present application are similar to Fig.16 Steps 1601 - 1613 of the illustrated embodiment correspond one to one and are not described again herein.
[0320] 1701: The user initiates a copy operation (such as copying an ID number).
[0321] 1702: The source application writes the ID number to the clipboard.
[0322] 1703: The clipboard recognizes the ID number.
[0323] 1704: The clipboard generates the identifier "ID number".
[0324] 1705: The clipboard stores the ID number in association with the identifier “ID number”.
[0325] 1706: The user initiates a paste operation (such as pasting an ID number).
[0326] 1707: The paste target application selects the identifier "ID number" to confirm the paste.
[0327] 1708: The paste target application requests the clipboard to read the copied content associated with the identifier “ID number” out of the clipboard.
[0328] 1709: The clipboard allows pasting and returns the ID number associated with the identifier "ID number" to the paste target application.
[0329] 1710: The target application pastes the ID number into the input box.
[0330] 1711: Paste non-target application sends a request to read the clipboard.
[0331] 1712: The clipboard sends a message to the non-target application that paste is not allowed and returns empty or an identifier or error code.
[0332] 1713: Pasting to a non-target application fails or only the "ID number" can be read.
[0333] 1714: The user initiates a deletion operation (such as deleting an ID number).
[0334] For example, the user clicks on the paste target application (such as Notepad) of the mobile phone to delete the ID number "Bxxxxxxxxxxxxxxxxx".
[0335] 1715: Paste the target application and select the identifier "ID number" to confirm deletion.
[0336] The above-mentioned paste target application selects the identifier "ID number" to confirm deletion, which is equivalent to the paste target application detecting that the user selects the identifier "ID number" to confirm deletion.
[0337] 1716: The paste target application requests the clipboard to delete the copied content associated with the identifier “ID number”.
[0338] 1717: The clipboard detected that the ID number has been pasted.
[0339] 1718: The clipboard deletes the ID number and the identifier "ID number".
[0340] In some embodiments, when the time from when the copied data is pasted to the input box corresponding to the paste request meets a time threshold, the corresponding copied data stored in the clipboard is deleted.
[0341] In some embodiments, when the storage time of the copied content in the clipboard meets a time threshold, the copied content is deleted to reduce system memory and prevent the user's personal information from being leaked.
[0342] In the embodiment of the present application, Fig.16 On the basis of the illustrated embodiment, a function of instantly deleting the copied content on the clipboard is provided. When the clipboard detects that the copied content corresponding to the desensitizing mark corresponding to the user's deletion operation has been pasted, the copied content corresponding to the desensitizing mark is deleted together with the desensitizing mark to avoid the problem that the user forgets to delete the copied content and causes the copied content to be leaked, and the copied content (such as the user's personal information) is destroyed immediately after use, preventing it from being tracked by non-paste target applications, and safeguarding the interests of users.
[0343] Fig.18 A schematic diagram of a data processing method according to an embodiment of the present application is shown. Fig.18The difference between the embodiment shown and the above-mentioned embodiment is that, in the embodiment of the present application, when the security protection mode of the clipboard is turned on, when it is recognized that the copied content written to the clipboard contains multiple private information, such as the user's personal information, multiple desensitizing identifiers corresponding to the copied content are generated, and the copied content is associated with the corresponding desensitizing identifiers and stored, so that the copied content has controlled paste protection, and the embodiment of the present application supports selective pasting of multiple desensitizing identifiers. Fig.18 The data processing method shown includes:
[0344] 1801: The user initiates a copy operation (such as copying an ID number or a bank card number).
[0345] For example, a user copies the ID number "Bxxxxxxxxxxxxxxxxx" and the bank card number "Cxxxxxxxxxxxxxxx" in the copy source application (such as a chat application) on the mobile phone.
[0346] 1802: The source application writes the ID card number and bank card number to the clipboard.
[0347] In an embodiment of the present application, when a user initiates a copy operation, the copy source application will write multiple copy contents (such as ID card number, bank card number) into the clipboard in sequence.
[0348] 1803: The clipboard recognizes the ID card number and bank card number.
[0349] In the embodiment of the present application, when the clipboard opens the security protection mode, after obtaining the copied content, such as the ID card number and the bank card number, the copied content and the application identifier of the copy source application are written into the timestamp association record. And identify whether the copied content includes private information, such as identifying whether the copied content is the ID card number or whether the field of the copied content includes the ID card number; identify whether the copied content is the bank card number or whether the field of the copied content includes the bank card number.
[0350] 1804: The clipboard generates the identifier “ID number” and the identifier “bank card number”.
[0351] In an embodiment of the present application, if it is detected that the copied content includes private information, a desensitized mark corresponding to the private information is generated.
[0352] For example, if it is recognized that the ID card number "Bxxxxxxxxxxxxxxxxx" is included in the copied content or the ID card number "Bxxxxxxxxxxxxxxxxx" is included in the field of the copied content, a desensitized identifier "ID card number" is generated; if it is detected that the bank card number "Cxxxxxxxxxxxxxxx" is also included in the copied content or the bank card number "Cxxxxxxxxxxxxxxx" is also included in the field of the copied content, a desensitized identifier "bank card number" is generated. The ID card number "Bxxxxxxxxxxxxxxxxx" is associated with the "ID card number" and stored, and the bank card number "Cxxxxxxxxxxxxxxx" is associated with the "bank card number" and stored.
[0353] In some embodiments, the first desensitizing identifier of the copied content may be associated with the copied content, so that the copied content and each desensitizing identifier corresponding to the copied content have controlled paste protection.
[0354] For example, the copied content includes "Bxxxxxxxxxxxxxxxxx" and "Cxxxxxxxxxxxxxxx", and the desensitized identifiers corresponding to the copied content include "ID number" and "bank card number". Associate the copied content with the "ID number".
[0355] In some embodiments, the copied content may be associated with all the desensitized identifiers of the copied content, so that the copied content and each desensitized identifier corresponding to the copied content have controlled paste protection.
[0356] For example, the copied content includes "Bxxxxxxxxxxxxxxxxx and Cxxxxxxxxxxxxxxx", and the desensitized identifiers corresponding to the copied content include "ID number" and "bank card number". Associate the copied content with the "ID number" and "bank card number".
[0357] 1805: The clipboard stores the ID number in association with the identifier “ID number” and stores the bank card number in association with the identifier “bank card number”.
[0358] In an embodiment of the present application, when the clipboard is running in security protection mode, when it is recognized that the copied content written to the clipboard contains private information (such as user's personal information), a desensitizing identifier corresponding to the copied content is generated, and the copied content is associated with the corresponding desensitizing identifier and stored, so that the copied content has controlled paste protection.
[0359] For example, the clipboard stores the ID number in association with the identifier "ID number" and stores the bank card number in association with "bank card number".
[0360] 1806: The user initiates a paste operation (such as pasting an ID number).
[0361] For the above method of initiating a paste operation (such as pasting an ID card number), see Fig.16 Step 1606 of the illustrated embodiment will not be described in detail here.
[0362] In an embodiment of the present application, when a user initiates a paste operation, there are multiple optional paste identifiers (i.e., desensitized identifier items), each paste identifier is associated with the copied content of the corresponding segment, and the corresponding copied content can be pasted by selecting the paste identifier, such as selecting the paste identifier "ID number" to confirm pasting the ID number, thereby authorizing the paste target application to request to read the clipboard.
[0363] The following is an introduction to the method of requesting the target application to read the ID number in conjunction with steps 1807-1810.
[0364] 1807: The paste target application selects the identifier "ID number" to confirm the paste.
[0365] It can be understood that the above-mentioned paste target application selects the identifier "ID number" to confirm paste, which is equivalent to the paste target application receiving a paste operation initiated by the user with the selected desensitized identifier "ID number".
[0366] 1808: The paste target application requests the clipboard to read the copied content associated with the identifier “ID number” out of the clipboard.
[0367] It can be understood that when the paste target application obtains the paste operation initiated by the user with the selected desensitized identifier being "ID number", it requests the clipboard to read the copied content associated with the identifier "ID number" out of the clipboard.
[0368] 1809: The clipboard allows pasting and returns the ID number associated with the identifier "ID number" to the paste target application.
[0369] It can be understood that since the paste operation is initiated by the user, the clipboard allows the paste and returns the ID number associated with the "ID number" to the paste target application.
[0370] 1810: The target application pastes the ID number into the input box.
[0371] The following describes a method for pasting a non-target application request to read the clipboard in conjunction with steps 1811-1813.
[0372] 1811: Paste non-target application sends a request to read the clipboard.
[0373] In some embodiments, when the paste non-target application recognizes that the clipboard includes copied content, the paste non-target application requests the clipboard to read the copied content out of the clipboard.
[0374] For example, when the shopping application recognizes that the content copied to the clipboard includes the salary information of the user, the shopping application requests the clipboard to read the copied content out of the clipboard.
[0375] 1812: The clipboard sends a message to the non-target application that paste is not allowed and returns empty or an identifier or error code.
[0376] For example, the clipboard returns "Paste failed" and the anonymized identifier "ID number" or null to the non-target application.
[0377] 1813: Pasting to non-target applications fails or only reads "ID number" or "bank card number".
[0378] The embodiments of this application are Fig.16 Based on the embodiment shown, it is possible to identify multiple copied contents and generate corresponding desensitized labels, and the order of the copied contents and the association between the copied contents and the desensitized labels can be maintained, so that the user can select the copied contents that are expected to be pasted from the multiple copied contents according to the paste label (i.e., the desensitized label), thereby improving the user experience. Fig.18 The illustrated embodiment is adaptable to actual application scenarios of copying and pasting, such as single-category single-field, multiple optional fields of the same category, multiple optional fields of multiple categories, and multiple copying and merging.
[0379] Fig.19 A schematic diagram of a data processing method according to an embodiment of the present application is shown. Fig.19 The difference between the shown embodiment and the above embodiment is that, when the clipboard security protection mode is turned on, when it is recognized that the copied content written to the clipboard contains multiple private information, multiple desensitizing identifiers corresponding to the multiple private information contained in the copied content are generated, and a summary desensitizing identifier corresponding to the entire copied content is generated, and the copied content is associated with the desensitizing identifier and the summary desensitizing identifier and stored, so that the copied content has controlled paste protection, and the embodiment of the present application supports the selection of pasting corresponding entire or segmented copied content according to multiple desensitizing identifiers. Fig.19 The data processing method shown includes:
[0380] 1901: The user initiates a copy operation (such as copying an entire paragraph of text).
[0381] For example, a user copies a whole paragraph of text in a copy source application (such as a chat application) of a mobile phone. For example, a user copies a whole paragraph of text including an ID card number "Bxxxxxxxxxxxxxxxxx" and a bank card number "Cxxxxxxxxxxxxxxx" in a chat application of a mobile phone.
[0382] 1902: The copy source app writes the text content to the clipboard.
[0383] In an embodiment of the present application, when a user initiates a copy operation, the copy source application will write multiple copy contents (such as ID card number, bank card number) into the clipboard in sequence.
[0384] 1903: The clipboard recognizes that the text contains the ID card number and bank card number, and divides the text into whole paragraphs and segments.
[0385] 1904: The clipboard generates the identifier "PII", the identifier "ID number", and the identifier "bank card number".
[0386] It can be understood that the label "PII" is a summarized desensitized label corresponding to the text content, the label "ID number" is a desensitized label corresponding to the ID number, and the label "bank card number" is a desensitized label corresponding to the bank card number.
[0387] In an embodiment of the present application, when the clipboard obtains the copied content, the clipboard will perform private information identification (also known as personal information identification) on the copied content, and generate a general desensitization mark and a desensitization mark. For example, it is identified that the copied content includes private information such as an ID card number or a bank card number, or there are multiple private information such as an ID card number and a bank card number in the field of the copied content, then the desensitization marks "ID card number" and "bank card number" associated with the ID card number and the bank card number are generated, and the ID card number and the "ID card number", the bank card number and the "bank card number" are automatically segmented and securely associated and stored in the clipboard, and a general desensitization mark table "PII" is generated and associated with the entire copied content, so that the entire copied content, the ID card number, the bank card number and other private information are all protected by controlled paste.
[0388] 1905: The clipboard associates and stores the text with the identifier "PII", the ID number with the identifier "ID number", and the bank card number with the identifier "bank card number".
[0389] 1906: The user initiates a paste operation (such as pasting a whole paragraph of text or an ID number).
[0390] In an embodiment of the present application, when a user opens a paste target application (such as a shopping application) and initiates a paste operation, the user can select a desensitized identifier "PII" or "ID number" to confirm the pasted content and authorize the paste target application to request to read the clipboard.
[0391] It can be seen from this that the embodiments of the present application provide explicit protection of privacy visualization, and users can perceive private information, operate private information, and experience private information.
[0392] The following introduces the method for the paste target application to request to read the clipboard in conjunction with steps 197-1910.
[0393] 1907: The target application selects the identifier "PII" or "ID number" to confirm the paste.
[0394] It can be understood that the above-mentioned paste target application selects the identifier "PII" or "ID number" to confirm paste, which is equivalent to the paste target application detecting the paste operation initiated by the user with the selected identifier "PII" or "ID number".
[0395] 1908: The paste target application requests the clipboard to read the copied content associated with the identifier "PII" or "ID number" out of the clipboard.
[0396] It can be understood that when the paste target application detects a paste operation initiated by the user with the selected identifier being "PII", it requests to read the copied content associated with the identifier "PII" out of the clipboard; when the paste target application detects a paste operation initiated by the user with the selected identifier being "ID number", it requests to read the copied content associated with the identifier "ID number" out of the clipboard.
[0397] 1909: The clipboard allows pasting and returns the text associated with the identifier "PII" or the social security number associated with the identifier "social security number" to the paste target application.
[0398] It can be understood that since the paste operation is initiated by the user, the clipboard allows the paste and returns the text associated with the identifier "PII" or the ID number associated with the identifier "ID number" to the paste target application.
[0399] It can be understood that when the paste target application requests to read the copied content associated with the identifier "PII" out of the clipboard, the clipboard allows pasting and returns the text associated with the identifier "PII" to the paste target application. When the paste target application requests to read the copied content associated with the identifier "ID number" out of the clipboard, the clipboard allows pasting and returns the ID number associated with the identifier "ID number" to the paste target application.
[0400] 1910: The target application pastes the text or ID number into the input box.
[0401] In some embodiments, after the paste target application obtains the text, the corresponding data in the text can be pasted to the corresponding position according to the mark in the paste target application interface.
[0402] The following describes a method for pasting a non-target application request to read the clipboard in conjunction with steps 1911-1913.
[0403] 1911: Paste non-target application sends a request to read the clipboard.
[0404] In some embodiments, when the paste non-target application recognizes that the clipboard includes copied content, the paste non-target application requests the clipboard to read the copied content out of the clipboard.
[0405] For example, when the shopping application recognizes that the content copied to the clipboard includes the salary information of the user, the shopping application requests the clipboard to read the copied content out of the clipboard.
[0406] 1912: The clipboard sends a message to the non-target application that paste is not allowed and returns empty or an identifier or error code.
[0407] For example, the clipboard returns "Paste failed" and the anonymized identifier "ID number" or null to the non-target application.
[0408] 1913: Pasting to non-target applications fails or only reads "ID number" or "bank card number".
[0409] The embodiments of this application are Fig.15 On the basis of the embodiment shown, a new feature is added to perform generalized identification of the copied content and generate a generalized desensitized mark. In addition, the embodiment of the present application can perform field-based identification of the copied content, so that the user can paste the copied content in whole or in sections according to the generalized desensitized mark and the desensitized mark, thereby improving the user experience.
[0410] In summary, based on the above solution of this application, the clipboard implements access control on the paste request of the paste application, avoiding the abuse of user data. In addition, when pasting data, the user can paste the copied content to the corresponding input box according to the desensitization mark, which improves the user experience.
[0411] The hardware structure of each electronic device mentioned in this application is described below by taking the electronic device 10 as an example. Fig. 20 As shown, the electronic device 10 may include a processor 110, a power module 140, a memory 180, a mobile communication module 130, a wireless communication module 120, a sensor module 190, an audio module 150, a camera 170, an interface module 160, a button 104 and a display screen 105, etc.
[0412] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 10. In other embodiments of the present application, the electronic device 10 may include more or fewer components than shown in the figure, or combine some components, or separate some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0413] The processor 110 may include one or more processing units, for example, a processing module or processing circuit including a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processing (DSP), a microprocessor (MCU), an artificial intelligence (AI) processor, or a programmable logic device (field programmable gate array, FPGA). Different processing units may be independent devices or integrated into one or more processors. A storage unit may be provided in the processor 110 for storing instructions and data. In some embodiments, the storage unit in the processor 110 is a cache memory 180.
[0414] It can be understood that the data processing method in the embodiment of the present application can be executed by the processor 110 of the corresponding electronic device. The power module 140 may include a power supply, a power management component, etc. The power supply may be a battery. The power management component is used to manage the charging of the power supply and the power supply of the power supply to other modules. In some embodiments, the power management component includes a charging management module and a power management module. The charging management module is used to receive charging input from the charger; the power management module is used to connect the power supply, the charging management module and the processor 110. The power management module receives input from the power supply and / or the charging management module, and supplies power to the processor 110, the display screen 105, the camera 170, and the wireless communication module 120.
[0415] The mobile communication module 130 may include, but is not limited to, an antenna, a power amplifier, a filter, a low noise amplifier (LNA), etc. The mobile communication module 130 may provide a solution for wireless communications including 2G / 3G / 4G / 5G applied to the electronic device 10. The mobile communication module 130 may receive electromagnetic waves by an antenna, filter, amplify, and process the received electromagnetic waves, and transmit them to a modulation and demodulation processor for demodulation. The mobile communication module 130 may also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna. In some embodiments, at least some of the functional modules of the mobile communication module 130 may be arranged in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 130 may be arranged in the same device as at least some of the modules of the processor 110.
[0416] The wireless communication module 120 may include an antenna, and transmit and receive electromagnetic waves via the antenna. The wireless communication module 120 may provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication technology (NFC), infrared technology (IR), etc., which are applied to the electronic device 10. The electronic device 10 may communicate with the network and other devices through wireless communication technology.
[0417] It can be understood that in the embodiment of the present application, when the electronic device is a receiving device, the video data and audio data from other electronic devices in the recording group, as well as the recording content label and time stamp information corresponding to each data, can be received through the wireless communication module. And when the electronic device is a sending device, the video data and audio data, as well as the recording content label and time stamp information corresponding to each data, can be sent to other electronic devices in the recording group through the wireless communication module.
[0418] In some embodiments, the mobile communication module 130 and the wireless communication module 120 of the electronic device 10 may also be located in the same module.
[0419] The display screen 105 is used to display a human-computer interaction interface, images, videos, etc. The display screen 105 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 or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a quantum dot light-emitting diode (QLED), etc.
[0420] The sensor module 190 may include a proximity light sensor, a pressure sensor, a gyro sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, and the like.
[0421] The audio module 150 is used to convert digital audio information into an analog audio signal output, or to convert an analog audio input into a digital audio signal. The audio module 150 can also be used to encode and decode audio signals. In some embodiments, the audio module 150 can be arranged in the processor 110, or some functional modules of the audio module 150 can be arranged in the processor 110. In some embodiments, the audio module 150 may include a speaker, an earpiece, a microphone, and an earphone interface. The camera 170 is used to capture static images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the image signal processing (image signal processing, ISP) to convert it into a digital image signal. The electronic device 10 can realize the shooting function through the ISP, the camera 170, the video codec, the graphics processing unit (graphic processing unit, GPU), the display screen 105 and the application processor.
[0422] The interface module 160 includes an external memory interface, a USB interface, and a subscriber identification module (SIM) card interface. The external memory interface can be used to connect an external memory card, such as a MicroSD card, to expand the storage capacity of the electronic device 10. The external memory card communicates with the processor 110 via the external memory interface to implement a data storage function. The universal serial bus interface is used for the electronic device 10 to communicate with other electronic devices. The subscriber identification module card interface is used to communicate with a SIM card installed in the electronic device 10, for example, to read a phone number stored in the SIM card, or to write a phone number into the SIM card.
[0423] In some embodiments, the electronic device 10 further includes a button 104, a motor, an indicator, etc. Among them, the button 104 may include a volume button, an on / off button, etc. The motor is used to make the electronic device 10 produce a vibration effect, for example, when the user's electronic device 10 is called, it vibrates to prompt the user to answer the call of the electronic device 10. The indicator may include a laser indicator, a radio frequency indicator, an LED indicator, etc.
[0424] The various embodiments of the mechanism disclosed in the present application can be implemented in hardware, software, firmware or a combination of these implementation methods. The embodiments of the present application can be implemented as a computer program or program code executed on a programmable system, which includes at least one processor, a storage system (including volatile and non-volatile memory and / or storage elements), at least one input device and at least one output device.
[0425] Program code may be applied to input instructions to perform the functions described herein and generate output information. The output information may be applied to one or more output devices in a known manner. For purposes of this application, a processing system includes any system having a processor such as, for example, a digital signal processor (DSP), a microcontroller, an application specific integrated circuit (ASIC), or a microprocessor.
[0426] Program code can be implemented with high-level programming language or object-oriented programming language to communicate with the processing system. When necessary, program code can also be implemented with assembly language or machine language. In fact, the mechanism described in this application is not limited to the scope of any specific programming language. In either case, the language can be a compiled language or an interpreted language.
[0427] In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried by or stored on one or more temporary or non-temporary machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, the instructions may be distributed over a network or through other computer-readable media. Therefore, the machine-readable medium may include any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computer), including but not limited to floppy disks, optical disks, optical discs, compact disc-readonly memory (CD-ROMs), magneto-optical disks, read-only memory (ROM), random access memory (RAM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), magnetic or optical cards, flash memory, or tangible machine-readable storage for transmitting information using the Internet in electrical, optical, acoustic or other forms of propagation signals (e.g., carrier waves, infrared signals, digital signals, etc.). Therefore, the machine-readable medium includes any type of machine-readable medium suitable for storing or transmitting electronic instructions or information in a form readable by a machine (e.g., a computer).
[0428] In the accompanying drawings, some structural or method features may be shown in a specific arrangement and / or order. However, it should be understood that such a specific arrangement and / or order may not be required. Instead, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. In addition, the inclusion of structural or method features in a particular figure does not mean that such features are required in all embodiments, and in some embodiments, these features may not be included or may be combined with other features.
[0429] It should be noted that the units / modules mentioned in the various device embodiments of the present application are all logical units / modules. Physically, a logical unit / module can be a physical unit / module, or a part of a physical unit / module, or can be implemented as a combination of multiple physical units / modules. The physical implementation method of these logical units / modules themselves is not the most important. The combination of functions implemented by these logical units / modules is the key to solving the technical problems proposed by the present application. In addition, in order to highlight the innovative part of the present application, the above-mentioned device embodiments of the present application do not introduce units / modules that are not closely related to solving the technical problems proposed by the present application, which does not mean that there are no other units / modules in the above-mentioned device embodiments.
[0430] It should be noted that in the examples and description of this patent, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "includes one" does not exclude the presence of other identical elements in the process, method, article or device including the element. Although the present application has been illustrated and described with reference to certain preferred embodiments of the present application, it should be understood by those skilled in the art that various changes may be made to it in form and detail without departing from the spirit and scope of the present application.
Claims
1. A data processing method, applied to an electronic device, characterized in that: The data processing method comprises: detecting a copy operation on first data of a first application, and storing the first data; detecting a paste request of the second application for the first data; Corresponding to the second application satisfying a first condition, the stored first data is sent to the second application, where the first condition includes: the second application is an application pre-authorized by a user.
2. The data processing method according to claim 1, characterized in that: Also includes: Corresponding to the second application not satisfying the first condition, the stored first data is not sent to the second application, and the first condition includes: the second application is the application corresponding to the user's paste operation.
3. The data processing method according to claim 1, characterized in that: Also includes: Corresponding to the second application not satisfying the first condition and determining that the first data includes private information, the stored first data is not sent to the second application.
4. The data processing method according to claim 1, characterized in that: Also includes: Corresponding to the second application not satisfying the first condition and the first data not including private information, the stored first data is sent to the second application.
5. The data processing method according to claim 1, characterized in that: The storing of the first data comprises: Corresponding to determining that the first data includes private information, generating a desensitized identifier of the private information in the first data; The first data is stored in association with a desensitized identifier of the first data.
6. The data processing method according to claim 5, characterized in that: The generating a desensitized identifier of the private information in the first data includes: Corresponding to the first data including N1 types of private information, N2 desensitized identifiers are generated, where N2 is greater than or equal to N1; Wherein, if the N1 is equal to 1, the N2 desensitization identifiers include the desensitization identifiers corresponding to the N1 types of private information; If the N1 is greater than 1, the N2 desensitization identifiers include the desensitization identifiers corresponding to the N1 types of private information and the summary desensitization identifier of the first data.
7. The data processing method according to claim 5, characterized in that: The storing the first data in association with the desensitized identifier of the first data includes: If N2 is equal to 1, the first data is associated with the desensitized identifier of the first data and stored; If N2 is greater than 1, each type of private information in the first data is associated with the corresponding desensitizing identifier and stored, and the generalized desensitizing identifier is associated with the first data and stored.
8. The data processing method according to claim 1, characterized in that: include: Displaying a desensitized mark of the first data; Detecting a user's selection operation on a desensitized identifier of the first data; and The sending the first stored data to the second application includes: Send data corresponding to the desensitized identifier selected by the selection operation in the first data stored to the second application.
9. The data processing method according to claim 1, characterized in that: include: Corresponding to the first data satisfying the second condition, the first data and the associated storage information of the first data are deleted.
10. The data processing method according to claim 9, characterized in that: The second condition includes at least one of the following: Detecting a deletion operation of the first data by a user; The storage time of the first data meets a time threshold.
11. The data processing method according to claim 1, characterized in that: The electronic device includes a third application, and the third application includes a writing module, a storage module, a detection module, and a reading module; wherein, after detecting a copy operation on the first data of the first application, the writing module sends the first data to the storage module; The storage module is used to store the first data; The detection module is used to determine whether the second application satisfies the first condition in response to the paste request, and obtain the first data from the storage module if the second application satisfies the first condition, and send the first data to the reading module; The reading module is used to send the first data to the second application.
12. An electronic device, characterized in that: The device comprises: a memory for storing instructions executed by one or more processors of the electronic device, and the processor, which is one of the one or more processors of the electronic device, for executing the data processing method according to any one of claims 1 to 11.
13. A readable medium, characterized in that The readable medium stores instructions, which, when executed on an electronic device, enable the electronic device to execute the data processing method according to any one of claims 1 to 11.
Citation Information
Cited By
Data processing method, electronic device, and readable medium
EP4660859A1
