Data processing method and device, electronic equipment and medium
By receiving and verifying the identity information of the target application in the terminal device, determining whether it exists in the device, and sending pending data when the verification is passed, the problem of low security of cross-device data transmission is solved, and the security of data transmission is improved.
Patent Information
- Application Number
- CN202311396826.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-26
- Publication Date
- 2025-04-29
AI Technical Summary
When different terminal devices conduct cross-device data transmission, the security of the data transmission process is not high, resulting in data being tampered with or lost.
By receiving information verification requests, determining whether the target application is included in the target application based on the identity information of the target application, and sending pending data to it when the target application is included, in order to enhance the security of the application verification process.
This method improves the security of data transmission by verifying the identity information of the application, ensuring that the data is processed only in the trusted target application.
Smart Images

Figure CN119903503A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a data processing method, device, electronic device and medium. Background Art
[0002] With the continuous development of science and technology and the continuous improvement of the economy, in order to facilitate daily life and work, more and more people will choose to use different terminal devices to deal with different problems. The data between different terminal devices is usually not synchronized, so cross-device data transmission is often required. However, when different terminal devices perform cross-device data transmission, the data transmission process is not very secure. Summary of the invention
[0003] In order to overcome the problems existing in the related art, the present disclosure provides an information security verification method, device, electronic device and medium.
[0004] According to a first aspect of an embodiment of the present disclosure, a data processing method is provided, which is applied to a first electronic device. The data processing method includes:
[0005] receiving an information verification request, wherein the information verification request includes first identity information of a target application;
[0006] determining whether the first electronic device includes the target application according to the first identity information;
[0007] In response to the first electronic device including the target application, sending data to be processed to the target application.
[0008] In some exemplary embodiments of the present disclosure, the first identity information includes a first identity identifier of the target application;
[0009] The determining, according to the first identity information, whether the first electronic device includes the target application comprises:
[0010] Determine at least one candidate application according to the first identity;
[0011] determining an application selected from the candidate applications as an application to be verified;
[0012] Acquire second identity information of the application to be verified;
[0013] It is determined whether the application to be verified is the target application according to the first identity information and the second identity information.
[0014] In some exemplary embodiments of the present disclosure, the first identity information further includes a first operating system identifier corresponding to the target application and first signature information of the target application;
[0015] The second identity information includes a second identity identifier of the application to be verified, a second operating system identifier corresponding to the application to be verified, and second signature information of the application to be verified;
[0016] The verifying whether the application to be verified is a target application according to the first identity information and the second identity information includes:
[0017] In response to the first identity identifier matching the second identity identifier, the first operating system identifier matching the second operating system identifier, and the first signature information matching the second signature information, it is determined that the application to be verified is the target application.
[0018] In some exemplary embodiments of the present disclosure, the information verification request also includes the data to be processed.
[0019] In some exemplary embodiments of the present disclosure, the information verification request further includes third identity information of a first application, where the first application is an application that sends the data to be processed;
[0020] The data processing method further includes:
[0021] Obtain fourth identity information of a preset application from the application to be verified, where the preset application is an application corresponding to a data processing type supported by the target application;
[0022] It is determined again whether the application to be verified is the target application according to the third identity information and the fourth identity information.
[0023] In some exemplary embodiments of the present disclosure, the third identity information includes a third identity identifier of the first application, a third operating system identifier corresponding to the first application, and third signature information of the first application;
[0024] The fourth identity information includes a fourth identity identifier of the preset application, a fourth operating system identifier corresponding to the preset application, and fourth signature information of the preset application;
[0025] The determining again whether the application to be verified is the target application according to the third identity information and the fourth identity information comprises:
[0026] In response to the third identity identifier matching the fourth identity identifier, the third operating system identifier matching the fourth operating system identifier, and the third signature information matching the fourth signature information, it is determined that the application to be verified is the target application.
[0027] In some exemplary embodiments of the present disclosure, the data processing method is executed by a first data processing module of a framework layer of an operating system of the first electronic device.
[0028] According to a second aspect of an embodiment of the present disclosure, a data processing method is provided, which is applied to a second electronic device. The data processing method includes:
[0029] receiving a data processing request sent by a first application, wherein the data processing request includes first identity information of a target application;
[0030] An information verification request is sent to the first electronic device, where the information verification request includes the information included in the data processing request.
[0031] In some exemplary embodiments of the present disclosure, the information verification request includes third identity information of the first application;
[0032] The data processing method further includes:
[0033] The third identity information is obtained according to the data processing request.
[0034] In some exemplary embodiments of the present disclosure, the data processing method is executed by a second data processing module of a framework layer of an operating system of the second electronic device.
[0035] According to a third aspect of an embodiment of the present disclosure, a data processing device is provided, which is applied to a first electronic device, and the data processing device includes:
[0036] A first receiving module, configured to receive an information verification request, wherein the information verification request includes first identity information of a target application;
[0037] a verification module, configured to determine whether the first electronic device includes the target application according to the first identity information;
[0038] The first sending module is used to send the to-be-processed data to the target application in response to the first electronic device including the target application.
[0039] According to a fourth aspect of an embodiment of the present disclosure, a data processing device is provided, which is applied to a second electronic device, and the data processing device includes:
[0040] A second receiving module is used to receive a data processing request sent by a first application; the data processing request includes first identity information of a target application;
[0041] The second sending module is used to send an information verification request to the first electronic device, where the information verification request includes the information included in the data processing request.
[0042] According to a fifth aspect of an embodiment of the present disclosure, an electronic device is provided, the electronic device comprising:
[0043] processor;
[0044] a memory for storing processor-executable instructions;
[0045] The processor is configured to execute executable instructions in the memory to implement the data processing method provided in the first aspect of the present disclosure.
[0046] According to the sixth aspect of an embodiment of the present disclosure, a non-temporary computer-readable storage medium is provided, on which executable instructions are stored, characterized in that when the executable instructions are executed by a processor, the data processing method provided in the first aspect of the present disclosure is implemented.
[0047] The above method of the present disclosure has the following beneficial effects: the first electronic device of the present disclosure determines whether the target application is included in the first electronic device based on the first identity information of the target application in the received information verification request, and sends the data to be processed to the target application when the target application is included in the first electronic device. The present disclosure determines whether an electronic device includes a target application that can be trusted by the first application based on the identity information of the target application, and sends the data to be processed to the target application when the target application is included so that the target application can process the data to be processed, thereby enhancing the security of the application verification process and improving the security of data transmission.
[0048] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0050] Figure 1 The invention is a flowchart of a method for processing data according to an exemplary embodiment.
[0051] Figure 2 The invention is a flowchart of a method for processing data according to an exemplary embodiment.
[0052] Figure 3 The invention is a flowchart of a method for processing data according to an exemplary embodiment.
[0053] Figure 4 The invention is a flowchart of a method for processing data according to an exemplary embodiment.
[0054] Figure 5 The invention is a flowchart of a method for processing data according to an exemplary embodiment.
[0055] Figure 6 The invention is a flowchart of a method for processing data according to an exemplary embodiment.
[0056] Figure 7 The invention is a flowchart of a method for processing data according to an exemplary embodiment.
[0057] Figure 8 The invention is a flowchart of a method for processing data according to an exemplary embodiment.
[0058] Fig. 9 It is a schematic diagram of a method for processing data according to an exemplary embodiment.
[0059] Fig.10 The invention is a flowchart of a method for processing data according to an exemplary embodiment.
[0060] Fig.11 It is a schematic diagram of a method for processing data according to an exemplary embodiment.
[0061] Fig.12 It is a block diagram of a data processing device according to an exemplary embodiment.
[0062] Fig.13 It is a block diagram of a data processing device according to an exemplary embodiment.
[0063] Fig.14 It is a block diagram of a data processing system according to an exemplary embodiment.
[0064] Fig.15 is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0065] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0066] With the continuous development of science and technology and the continuous improvement of the economy, in order to facilitate daily life and work, more and more people will choose to use different terminal devices to deal with different problems. For example, you can communicate through mobile phones, complete work through tablets or personal computers, and monitor health through smart watches. The data between different terminal devices is usually not synchronized, so cross-device data transmission is often required. However, different terminal devices may be configured with different mobile operating systems, such as Windows, iOS, Android, Hongmeng, etc., and different mobile operating systems have different ways of verifying data security. It is difficult to use unified rules for security verification. Therefore, when transmitting data across devices, it is easy for data to be tampered with or even lost, and the security of the data transmission process is not high.
[0067] In order to solve the above problems, the present disclosure provides a data processing method, in which the first electronic device of the present disclosure determines whether the target application is included in the first electronic device based on the first identity information of the target application in the received information verification request, and sends the data to be processed to the target application when the target application is included in the first electronic device. The present disclosure determines whether an electronic device includes a target application that can be trusted by the first application based on the identity information of the target application, and sends the data to be processed to the target application when the target application is included so that the target application can process the data to be processed, thereby enhancing the security of the application verification process and improving the security of data transmission.
[0068] The exemplary embodiment of the present disclosure provides a data processing method, which is applied to a first electronic device. Figure 1 As shown, the data processing method shown in the present disclosure includes:
[0069] S101. Receive an information verification request.
[0070] In an exemplary embodiment of the present disclosure, the information verification request received by the first electronic device includes the first identity information of the target application. The first electronic device is an electronic device with an application installed, such as a mobile phone, a tablet computer, a personal computer, a smart wearable device, an Internet of Things (IoT) device, etc. The target application is an application trusted by the first application, and the first identity information is used to characterize the identity of the target application.
[0071] S102: Determine whether the first electronic device includes a target application according to the first identity information.
[0072] After receiving the information verification request, the first electronic device can determine whether the first electronic device includes the target application trusted by the first application based on the first identity information of the target application in the information verification request. For example, based on the first identity information of the target application, it can search in the local application whether there is an application matching the first identity information, and if there is a matching application, the first electronic device can determine that it includes the target application.
[0073] S103: In response to the first electronic device including a target application, sending the data to be processed to the target application.
[0074] If the first electronic device includes a target application, the first electronic device may send the data to be processed to the target application. Similar to the first identity information of the target application, the data to be processed is also provided by the first application.
[0075] The first electronic device of the present disclosure determines whether the target application is included in the first electronic device based on the first identity information of the target application in the received information verification request, and sends the data to be processed to the target application when the target application is included in the first electronic device. The present disclosure determines whether an electronic device includes a target application that can be trusted by the first application based on the identity information of the target application, and sends the data to be processed to the target application when the target application is included so that the target application can process the data to be processed, thereby enhancing the security of the application verification process and improving the security of data transmission.
[0076] The exemplary embodiment of the present disclosure provides a data processing method, which is applied to a second electronic device. Figure 2 As shown, the data processing method shown in the present disclosure includes:
[0077] S201: Receive a data processing request sent by a first application.
[0078] In an exemplary embodiment of the present disclosure, the second electronic device is an electronic device installed with a first application, such as a mobile phone, a tablet computer, a personal computer, a smart wearable device, an Internet of Things (IoT) device, etc. The second electronic device can receive a data processing request sent by the first application, and the data processing request includes the first identity information of the target application.
[0079] S202: Send an information verification request to the first electronic device.
[0080] After receiving the data processing request sent by the first application, the second electronic device may determine the information verification request carrying the first identity information of the target application according to the data processing request, and send the information verification request to the first electronic device.
[0081] The second electronic device of the present invention sends an information verification request including a data processing request to the first electronic device based on the data processing request sent by the first application and including the first identity information of the target application. In this way, the identity information of the target application provided by any application in one electronic device can be used to provide identity authentication information to another electronic device to verify whether the other electronic device includes a target application that can be trusted by any application, thereby enhancing the security of the application verification process.
[0082] The exemplary embodiment of the present disclosure provides a data processing method, which is applied to a first electronic device. Figure 3 As shown, the data processing method shown in the present disclosure includes:
[0083] S301. Receive an information verification request.
[0084] In step S301, a first data processing module of a framework layer of an operating system of a first electronic device may receive an information verification request sent by a second data processing module of a framework layer of an operating system of a second electronic device.
[0085] S302: Determine whether the first electronic device includes a target application according to the first identity information.
[0086] In some embodiments, the first data processing module of the framework layer of the operating system of the first electronic device may determine at least one candidate application according to the first identity identifier of the target application.
[0087] An operating system (OS) is a set of system software programs that manage and control computer operations, use and run hardware and software resources, and provide public services to organize user interactions and interrelationships. Depending on the operating environment, operating systems can be divided into desktop operating systems, mobile operating systems, server operating systems, and embedded operating systems. Common operating systems include Android, iOS, Windows, and real-time operating systems (RTOS).
[0088] The first data processing module can be a system service for the first electronic device. The normal operation of the electronic device is inseparable from the support of the system service. System service refers to a program, routine or process that executes the system function. It is a service that can provide basic functions for electronic devices, maintain the operating system, and manage other programs in the electronic device, especially the underlying (processor, memory, hard disk and other hardware) programs, which can effectively prevent the operating system and other programs from crashing, malfunctioning and other abnormal situations and improve the response speed of the electronic device. In addition, the system service runs in the background and does not occupy the front-end resources of the electronic device. Therefore, when the user uses various functions of the electronic device at the front end, the system service will not affect the operation of the electronic device. At the same time, the system service can detect and prevent computer viruses, malware and other computer instructions or program codes that pose a security threat to electronic devices, ensuring the security of data and privacy in electronic devices. In addition, the system service can also provide update and maintenance functions, perform various automated tasks, such as system backup, data cleaning, scheduled tasks, etc., to ensure that the operating system and application programs can be updated in time to improve the performance of the electronic device and provide users with a better user experience.
[0089] Common system services include file management services, network services, security services, device management services and task scheduling services. Among them, file management services are responsible for managing files and folders in electronic devices, including creating, copying, deleting, moving and other operations on files or folders; network services provide network connections and communication connections for electronic devices, and can realize network configuration, file sharing, remote login and other functions; security services are used to protect electronic devices from threats such as computer viruses, malware and network attacks; device management services are used to manage hardware in electronic devices, including driver installation, hardware configuration, etc.; task scheduling services are used to manage and execute various tasks in electronic devices, such as scheduled backup, system scanning, etc.
[0090] In some embodiments, the first identity information of the target application includes the first identity of the target application, and may also include the first signature information of the target application. Data transmission can be carried out between different electronic devices with the same operating system, or between different devices with different operating systems. In order to further improve the security of data transmission and reduce the possibility of data being transmitted to the wrong electronic device, the first identity information of the target application may also include the first operating system identifier corresponding to the target application. Among them, the first identity of the target application can uniquely represent the identity of the target application, for example, it can be the package name (package_name) of the target application; the first operating system identifier of the target application is the identifier (device_type) of the operating system configured in the electronic device where the target application is installed, for example, it can be Windows, iOS, Android, RTOS, etc.; the first signature information of the target application is the signature (device_package_sig) or signature file of the target application. The application signature is a security mechanism, which is usually set by the developer of the application and cannot be easily changed or forged. Therefore, it can ensure the credibility and integrity of the application, detect whether the application has been modified, and is also used to confirm the identity of the signer. Different applications may have the same signature.
[0091] In step S302, the first data processing module of the framework layer of the operating system of the first electronic device may determine all applications matching each first identity identifier as candidate applications. When there are multiple candidate applications, the first data processing module of the framework layer of the operating system of the first electronic device may display the identity identifiers of the candidate applications on the screen of the first electronic device for user selection, and determine the selected candidate application as the application to be verified.
[0092] For example, the first data processing module of the framework layer of the operating system of the first electronic device determines that the candidate applications are "Xiaomi Sports Health" and "Mi Home" according to the first identity identifier, and the prompt boxes of "Xiaomi Sports Health" and "Mi Home" can be displayed on the screen of the first electronic device. The user hopes that "Mi Home" can process the data of the first application in the second electronic device, and can select "Mi Home" through the screen of the first electronic device. After "Mi Home" is selected, the first data processing module of the framework layer of the operating system of the first electronic device can determine "Mi Home" as the application to be verified.
[0093] After determining the application to be verified, the first data processing module of the framework layer of the operating system of the first electronic device can obtain the second identity information of the application to be verified. In order to enhance the security of information verification and prevent the application to be verified from falsifying identity information, the first data processing module of the framework layer of the operating system of the first electronic device does not obtain the second identity information through the application to be verified, but directly obtains the second identity information of the application to be verified.
[0094] Similar to the first identity information, the second identity information may include the second identity identifier of the application to be verified, the corresponding second operating system identifier, and the second signature information. The second identity identifier of the application to be verified can uniquely represent the identity of the application to be verified, for example, it can be the package name (package_name) of the application to be verified; the second operating system identifier of the application to be verified is the identifier (device_type) of the operating system configured in the electronic device where the application to be verified is installed; the second signature information of the application to be verified is the signature (device_package_sig) or signature file of the target application.
[0095] Taking the Android system as an example, the first data processing module of the framework layer of the operating system of the first electronic device can obtain the identity information of the application through the package manager. For example, after determining the UID (User Identification) of the application, the first data processing module of the framework layer of the operating system of the first electronic device can go to the node of the application to obtain the package name of the application as an identity identifier through packageInfo.packageName, and obtain the installation path of apk (Android Application Package) through applicationInfo.publicSourceDir, and then use the ZipFile and ZipEntry APIs to obtain the three signature files of the apk according to the installation path of the apk. The names of the three signature files are META-INF / MANIFEST.MF, META-INF / CERT.SF and META-INF / CERT.RSA respectively.
[0096] After determining the second identity information of the application to be verified, the first data processing module of the framework layer of the operating system of the first electronic device can determine whether the program to be verified is the target application according to the first identity information of the target application and the second identity information of the application to be verified.
[0097] For example, if the first identity identifier of the target application matches the second identity identifier of the application to be verified, the first operating system identifier corresponding to the target application matches the second operating system identifier of the application to be verified, and the first signature information of the target application matches the second signature information of the application to be verified, the first data processing module of the framework layer of the operating system of the first electronic device can determine that the application to be verified is the target application.
[0098] RTOS refers to an operating system that can receive and process external events or data at a fast enough speed when they are generated, and the results of its processing can control the production process or respond quickly to the processing system within a specified time, dispatch all available resources to complete real-time tasks, and control all real-time tasks to run in a coordinated manner. It is a lightweight operating system, including FreeRTOS, ThreadX, Nuclear, zypher, etc. RTOS usually cannot install applications to run, so when the first operating system identifier corresponding to the target application in the first identity information of the target application is RTOS, the first signature information of the target application is usually empty (null). Therefore, when the operating system of the first electronic device is RTOS, the first data processing module of the framework layer of the operating system of the first electronic device can identify the application to be verified as the target application when the first identity identifier of the target application matches the second identity identifier of the application to be verified, and the first operating system identifier corresponding to the target application matches the second operating system identifier corresponding to the application to be verified.
[0099] S303: In response to the first electronic device including a target application, sending the data to be processed to the target application.
[0100] After determining that the application to be verified is the target application, the first data processing module of the framework layer of the operating system of the first electronic device can determine that the first electronic device includes the target application and send the data to be processed to the target application. If the first electronic device includes the target application, the first electronic device can send the data to be processed to the target application. Similar to the first identity information of the target application, the data to be processed is also provided by the first application. Optionally, the first application can provide a data packet of the data to be processed, or a data identifier of the data to be processed.
[0101] For example, the data identifier of the data to be processed may be a Uniform Resource Identifier (URI). A URI is a string used to identify a specific resource name on the Internet, allowing users to interact with any resource (including local resources and Internet resources) through a specific protocol. HTML (Hyper Text Markup Language) documents, images, video clips, programs, etc. can all be located through URIs.
[0102] In some embodiments, the data processing request sent by the first application carries the data to be processed. After determining that the first electronic device includes the target application, the first electronic device can send the data to be processed in the data processing request to the target application.
[0103] In some embodiments, the data processing request sent by the first application does not carry the data to be processed. After determining that the first electronic device includes the target application, the first electronic device can send a data acquisition request to the second electronic device so that the first application can provide the data to the second electronic device. After the second electronic device sends the data to be processed to the first electronic device, the first electronic device can send the data to be processed to the target application.
[0104] The first data processing module of the framework layer of the application system of the first electronic device disclosed in the present invention determines whether the target application is included in the first electronic device based on the first identity information of the target application in the received information verification request, and sends the data to be processed to the target application when the target application is included in the first electronic device. The present invention determines whether an electronic device includes a target application that can be trusted by the first application based on the identity information of the target application, and sends the data to be processed to the target application when the target application is included so that the target application can process the data to be processed. The entire verification process is implemented through the system service of the electronic device, which enhances the security of the application verification process and improves the security of data transmission.
[0105] The exemplary embodiment of the present disclosure provides a data processing method, which is applied to a second electronic device. Figure 4 As shown, the data processing method shown in the present disclosure includes:
[0106] S401: Receive a data processing request sent by a first application.
[0107] In step S401, the first application may send a data processing request to the second data processing module of the framework layer of the operating system of the second electronic device. Similar to the first data processing module of the framework layer of the operating system of the first electronic device, the second data processing module of the framework layer of the operating system of the second electronic device may provide system services for the second electronic device.
[0108] The data of an application may be processed by multiple other applications, so it is easy to understand that the first identity information of multiple target applications can be included in the data processing request. For example, the first application is "Xiaomi Sports Health", and "Xiaomi Sports Health" hopes that its data can be processed by "Xiaomi Sports Health" and "Mi Home" in other electronic devices. Therefore, the target applications can be "Xiaomi Sports Health" and "Mi Home" in other electronic devices, and the data processing request can include the first identity information of "Xiaomi Sports Health" and the first identity information of "Mi Home" in other electronic devices.
[0109] S402: Send an information verification request to the first electronic device.
[0110] In step S402, the second data processing module of the framework layer of the operating system of the second electronic device may determine an information verification request according to the data processing request, and send the information verification request to the first electronic device.
[0111] The second electronic device of the present invention sends an information verification request including a data processing request to the first electronic device based on the data processing request sent by the first application and including the first identity information of the target application. In this way, the identity information of the target application provided by any application in one electronic device can be used to provide identity authentication information to another electronic device to verify whether the other electronic device includes a target application that can be trusted by any application. The entire verification process is implemented through the system service of the electronic device, thereby enhancing the security of the application verification process.
[0112] The exemplary embodiment of the present disclosure provides a data processing method, which is applied to a first electronic device. Figure 5 As shown, the data processing method shown in the present disclosure includes:
[0113] S501: Receive an information verification request.
[0114] In an exemplary embodiment of the present disclosure, the information verification request also includes the third identity information of the first application. The third identity information of the first application may include the third operating system identifier corresponding to the first application, the third identity identifier of the first application, and the third signature information of the first application. The third identity identifier may uniquely represent the identity of the first application, for example, it may be the package name (package_name) of the first application; the third operating system identifier of the first application may be the identifier (device_type) of the operating system configured in the electronic device on which the first application is installed; and the third signature information of the first application may be the signature (device_package_sig) or signature file of the first application.
[0115] S502: Determine whether the first electronic device includes a target application according to the first identity information.
[0116] Step S502 is the same as that in the above embodiment and will not be described again.
[0117] S503: Obtain fourth identity information of a preset application from the target application.
[0118] After determining that the application to be verified is the target application, the first data processing module of the framework layer of the operating system of the first electronic device can obtain the fourth identity information of the preset application from the target application. The preset application is an application trusted by the application to be verified in the second electronic device, and the application to be verified hopes that it can process the data sent by the trusted preset application. Therefore, the application to be verified can predetermine the fourth identity information of the preset application and provide it to the first data processing module of the framework layer of the operating system of the first electronic device through a data processing request to verify the identity of the first application.
[0119] The fourth identity information of the predetermined application may include a fourth operating system identifier corresponding to the predetermined application, a fourth identity identifier of the predetermined application and fourth signature information of the predetermined application. The fourth identity identifier may uniquely represent the identity of the predetermined application, for example, it may be the package name (package_name) of the predetermined application; the fourth operating system identifier of the predetermined application is the identifier (device_type) of the operating system configured in the electronic device in which the predetermined application is installed; the fourth signature information of the predetermined application is the signature (device_package_sig) or signature file of the predetermined application.
[0120] S504: Determine again whether the application to be verified is the target application according to the third identity information and the fourth identity information.
[0121] In step S504, the first data processing module of the framework layer of the operating system of the first electronic device can determine whether the first program is a predetermined application based on the third identity information of the first application and the fourth identity information of the predetermined application, so as to perform a secondary verification on the application to be verified. In this way, the first data processing module of the framework layer of the operating system of the first electronic device can perform a two-way verification on the application that sends the data to be processed and the application that receives the data to be processed, and improve the security of information verification and data transmission.
[0122] Among them, if the third identity identifier of the first application matches the fourth identity identifier of the predetermined application, the third operating system identifier corresponding to the first application matches the fourth operating system identifier of the predetermined application, and the third signature information of the first application matches the fourth signature information of the predetermined application, the first data processing module of the framework layer of the operating system of the first electronic device can determine that the first application is a predetermined application.
[0123] It is easy to understand that when the operating system of the second electronic device is RTOS, the first data processing module of the framework layer of the operating system of the first electronic device can identify the first application as the predetermined application when the third identity identifier of the first application matches the fourth identity identifier of the predetermined application, and the third operating system identifier corresponding to the first application matches the fourth operating system identifier corresponding to the predetermined application.
[0124] S505: In response to the first electronic device including a target application, send the data to be processed to the target application.
[0125] Step S505 is the same as that in the above embodiment and will not be described in detail here.
[0126] The first electronic device of the present disclosure determines whether the target application is included in the first electronic device based on the first identity information of the target application in the received information verification request, and when the target application is included in the first electronic device, obtains the fourth identity information of the preset application from the target application, and then determines again whether the target application is included in the first electronic device according to the third identity information of the first application and the fourth identity information of the preset application in the information verification request. When both verifications indicate that the target application is included in the first electronic device, the data to be processed is sent to the target application. The present disclosure determines whether an electronic device includes a target application that can be trusted by the first application through a secondary verification method based on the identity information of the target application provided by the first application and the identity information of the first application, and sends the data to be processed to the target application when both verification results indicate that the electronic device includes the target application so that the target application can process the data to be processed. The entire verification process is implemented through the system service of the electronic device, which enhances the security of the application verification process and improves the security of data transmission.
[0127] The exemplary embodiment of the present disclosure provides a data processing method, which is applied to a second electronic device. Figure 6 As shown, the data processing method shown in the present disclosure includes:
[0128] S601: Receive a data processing request sent by a first application.
[0129] Step S601 is the same as that in the above embodiment and will not be described again.
[0130] S602: Obtain third identity information of the first application according to the data processing request.
[0131] In an exemplary embodiment of the present disclosure, the data processing request carries the system identity of the first application that sends the data processing request. Therefore, in this embodiment, the second data processing module of the framework layer of the operating system of the second electronic device can obtain the third identity information of the first application based on the system identity of the first application in the data processing request.
[0132] Similar to the method of obtaining the second identity information of the application to be verified, in order to enhance the security of information verification and prevent the first application from falsifying identity information, the third identity information of the first application is not provided by the first application, but is obtained by the second data processing module of the framework layer of the operating system of the second electronic device. The system identity identifier of the first application can be the UID (User Identification) of the first application, and there is a corresponding relationship between the UID of the first application and the third identity information of the first application. Therefore, the second data processing module of the framework layer of the operating system of the second electronic device can obtain the third identity information of the first application based on the UID of the first application.
[0133] S603: Send an information verification request to the first electronic device.
[0134] After obtaining the third identity information of the first application and the data processing request sent by the first application, the second data processing module of the framework layer of the operating system of the second electronic device can determine the information verification request based on the third identity information of the first application and the data processing request sent by the first application, and send the information verification request to the first data processing module of the framework layer of the operating system of the first electronic device.
[0135] The second electronic device of the present invention sends an information verification request including a data processing request and the identity information of the first application to the first electronic device based on a data processing request sent by the first application and including the first identity information of the target application. In this way, the identity information of the target application provided by any application in one electronic device can be used to provide identity authentication information to another electronic device, so as to secondary verify whether the other electronic device includes the target application that can be trusted by any application. The entire verification process is implemented through the system service of the electronic device, thereby enhancing the security of the application verification process.
[0136] The exemplary embodiment of the present disclosure provides a data processing method, which is applied to a first electronic device and a second electronic device. Figure 7 As shown, the data processing method shown in the present disclosure includes:
[0137] S701: Receive a data processing request sent by a first application.
[0138] In step S701, the first electronic device receives a data processing request sent by the first application program. It is easy to understand that step S701 is the same as the implementation in the above embodiment, and will not be described in detail here.
[0139] S702: Send an information verification request to the first electronic device.
[0140] S703: Receive an information verification request.
[0141] In steps S702-S703, the second electronic device sends an information verification request to the first electronic device. It is easy to understand that steps S702 and S703 are the same as those in the above embodiment, and will not be described in detail here.
[0142] S704: Determine whether the first electronic device includes a target application according to the first identity information.
[0143] In step S704, the first electronic device determines whether the first electronic device includes the target application according to the first identity information of the target application. It is easy to understand that step S704 is the same as the implementation in the above embodiment, and will not be repeated here.
[0144] S705: In response to the first electronic device including a target application, send the data to be processed to the target application.
[0145] In step S705, if the first electronic device includes the target application, the first electronic device sends the data to be processed to the target application. It is easy to understand that step S705 is the same as the implementation in the above embodiment, and will not be repeated here.
[0146] The second electronic device of the present disclosure sends an information verification request including a data processing request to the first electronic device based on a data processing request sent by the first application and including the first identity information of the target application. The first electronic device determines whether the target application is included in the first electronic device based on the first identity information of the target application in the received information verification request, and sends the data to be processed to the target application when the target application is included in the first electronic device. The present disclosure determines whether another electronic device includes a target application that can be trusted by any application in one electronic device based on the identity information of the target application provided by any application in the electronic device, and sends the data to be processed to the target application when the target application is included so that the target application can process the data to be processed, thereby enhancing the security of the application verification process and improving the security of data transmission through the interaction of the two electronic devices.
[0147] The exemplary embodiment of the present disclosure provides a data processing method, which is applied to a first electronic device and a second electronic device. Figure 8 As shown, the data processing method shown in the present disclosure includes:
[0148] S801. Receive a data processing request sent by a first application.
[0149] In step S801, the first application may send a data processing request to the second data processing module of the framework layer of the operating system of the second electronic device. It is easy to understand that step S801 is the same as the implementation in the above embodiment, and will not be repeated here.
[0150] S802: Send an information verification request to the first electronic device.
[0151] In step S802, the second data processing module of the framework layer of the operating system of the second electronic device can send an information verification request to the first data processing module of the framework layer of the operating system of the first electronic device. It is easy to understand that step S802 is the same as the implementation in the above embodiment and will not be repeated here.
[0152] S803: Receive information verification request.
[0153] In step S803, the first data processing module of the framework layer of the operating system of the first electronic device can receive the information verification request sent by the second data processing module of the framework layer of the operating system of the second electronic device. It is easy to understand that step S803 is the same as the implementation method in the above embodiment, and will not be repeated here.
[0154] S804: Determine whether the first electronic device includes a target application according to the first identity information.
[0155] In step S804, the first data processing module of the framework layer of the operating system of the first electronic device can determine at least one candidate application according to the first identity identifier of the target application, and determine the selected candidate application as the application to be verified. Furthermore, the first data processing module of the framework layer of the operating system of the first electronic device can obtain the second identity information of the application to be verified, thereby determining whether the application to be verified is the target application according to the first identity information of the target application and the second identity information of the application to be verified.
[0156] It is easy to understand that step S804 is the same as the implementation in the above embodiment and will not be described again here.
[0157] S805: In response to the first electronic device including a target application, send the data to be processed to the target application.
[0158] After determining that the application to be verified is the target application, the first data processing module of the framework layer of the operating system of the first electronic device can determine that the first electronic device includes the target application and send the data to be processed to the target application. It is easy to understand that step S805 is the same as the implementation in the above embodiment and will not be repeated here.
[0159] Fig. 9The interactive process between the first electronic device and the second electronic device is shown. Fig. 9 APP1 is shown as the first application, APP2 is the target application, APP2' is the application to be verified, identity information 1 is the first identity information of APP2, and identity information 2 is the second identity information of APP2'. APP1 sends a data processing request including identity information 1 of APP2 to the second data processing module (i.e., the second data processing module) of the framework layer of the operating system of the second electronic device, and the second data processing module determines an information verification request according to the data processing request, and sends the information verification request to the first data processing module (i.e., the first data processing module) of the framework layer of the operating system of the first electronic device.
[0160] The first data processing module obtains the identity information 2 of APP2' according to the first identity identifier in the identity information 1 of APP2 in the information verification request sent by the second data processing module, and determines whether APP2' is APP2 according to the identity information 1 of APP2 and the identity information 2 of APP2'. After determining that APP2' is APP2, the second data processing module sends the data to be processed to APP2'.
[0161] The second electronic device of the present disclosure sends an information verification request including a data processing request to the first electronic device based on a data processing request sent by the first application and including the first identity information of the target application. The first electronic device determines whether the target application is included in the first electronic device based on the first identity information of the target application in the received information verification request, and sends the data to be processed to the target application when the target application is included in the first electronic device. The present disclosure determines whether another electronic device includes a target application that can be trusted by any application in one electronic device based on the identity information of the target application provided by any application in the electronic device, and sends the data to be processed to the target application when the target application is included so that the target application can process the data to be processed, thereby enhancing the security of the application verification process and improving the security of data transmission through the interaction of the two electronic devices.
[0162] The exemplary embodiment of the present disclosure provides a data processing method, which is applied to a first electronic device and a second electronic device. Fig.10 As shown, the data processing method shown in the present disclosure includes:
[0163] S1001. Receive a data processing request sent by a first application.
[0164] In step S1001, the first application may send a data processing request to the second data processing module of the framework layer of the operating system of the second electronic device. It is easy to understand that step S1001 is the same as the implementation in the above embodiment, and will not be repeated here.
[0165] S1002. Obtain third identity information of the first application according to the data processing request.
[0166] In step S1002, the second data processing module of the framework layer of the operating system of the second electronic device can obtain the third identity information of the first application according to the data processing request. It is easy to understand that step S1002 is the same as the implementation in the above embodiment and will not be repeated here.
[0167] S1003. Send an information verification request to the first electronic device.
[0168] In step S1003, the second data processing module of the framework layer of the operating system of the second electronic device can send an information verification request to the first data processing module of the framework layer of the operating system of the first electronic device. It is easy to understand that step S1003 is the same as the implementation in the above embodiment and will not be repeated here.
[0169] S1004. Receive information verification request.
[0170] In step S1004, the first data processing module of the framework layer of the operating system of the first electronic device may receive the information verification request sent by the second data processing module of the framework layer of the operating system of the second electronic device. It is easy to understand that step S1004 is the same as the implementation in the above embodiment, and will not be repeated here.
[0171] S1005. Determine whether the first electronic device includes a target application according to the first identity information.
[0172] In step S1005, the first data processing module of the framework layer of the operating system of the first electronic device can determine at least one candidate application according to the first identity identifier of the target application, and determine the selected candidate application as the application to be verified. Furthermore, the first data processing module of the framework layer of the operating system of the first electronic device can obtain the second identity information of the application to be verified, thereby determining whether the application to be verified is the target application according to the first identity information of the target application and the second identity information of the application to be verified.
[0173] It is easy to understand that step S1005 is the same as the implementation in the above embodiment and will not be repeated here.
[0174] S1006: Obtain fourth identity information of a preset application from the target application.
[0175] In step S1006, the first data processing module of the framework layer of the operating system of the first electronic device can obtain the fourth identity information of the preset application sent by the target application. It is easy to understand that step S1006 is the same as the implementation in the above embodiment and will not be repeated here.
[0176] S1007. Determine again whether the application to be verified is the target application according to the third identity information and the fourth identity information.
[0177] In step S1007, the first data processing module of the framework layer of the operating system of the first electronic device can verify again whether the application to be verified is the target application according to the third identity information of the first application and the fourth identity information of the preset application. It is easy to understand that step S1007 is the same as the implementation in the above embodiment, and will not be repeated here.
[0178] S1008. In response to the first electronic device including a target application, send the data to be processed to the target application.
[0179] In step S1008, the first data processing module of the framework layer of the operating system of the first electronic device can determine that the first electronic device includes the target application when re-verifying that the application to be verified is the target application, and send the data to be processed to the target application. It is easy to understand that step S1008 is the same as the implementation in the above embodiment, and will not be repeated here.
[0180] Fig.11 The interactive process between the first electronic device and the second electronic device is shown. Fig.11 APP1 shown is the first application, APP1' is the predetermined application, APP2 is the target application, APP2' is the application to be verified, identity information 1 is the first identity information of APP2, identity information 2 is the second identity information of APP2', identity information 3 is the third identity information of APP1, and identity information 4 is the fourth identity information of APP1'. APP1 sends a data processing request including identity information 1 of APP2 to the second data processing module (i.e., the second data processing module) of the framework layer of the operating system of the second electronic device, and the second data processing module determines the identity information 3 of APP1 according to the data processing request, and determines the information verification request according to the data processing request and the identity information 3 of APP1, thereby sending the information verification request to the first data processing module (i.e., the first data processing module) of the framework layer of the operating system of the first electronic device.
[0181] The first data processing module obtains the identity information 2 of APP2' according to the first identity identifier in the identity information 1 of APP2 in the information verification request sent by the second data processing module, and determines whether APP2' is APP2 according to the identity information 1 of APP2 and the identity information 2 of APP2'. After determining that APP2' is APP2, the second data processing module obtains the identity information 4 of APP1' from APP2', and verifies whether APP1 is APP1' according to the identity information 3 of APP1 in the information verification request and the identity information 4 of APP1'. After both verifications are passed, the second data processing module sends the data to be processed to APP2'.
[0182] The second electronic device of the present disclosure sends an information verification request including a data processing request and the third identity information of the first application to the first electronic device based on a data processing request including the first identity information of the target application sent by the first application. The first electronic device determines whether the target application is included in the first electronic device based on the first identity information of the target application in the received information verification request, and when the target application is included in the first electronic device, obtains the fourth identity information of the preset application from the target application, and then determines again whether the target application is included in the first electronic device according to the third identity information of the first application and the fourth identity information of the preset application. When both verifications indicate that the target application is included in the first electronic device, the data to be processed is sent to the target application. The present disclosure determines whether another electronic device includes a target application that can be trusted by any application based on the identity information of the target application provided by any application in one electronic device, and sends the data to be processed to the target application when the target application is included so that the target application can process the data to be processed, and enhances the security of the application verification process through the interaction of the two electronic devices, and improves the security of data transmission.
[0183] The exemplary embodiment of the present disclosure provides a data processing device, which is applied to a first electronic device. Fig.12 As shown, a block diagram of a data processing system shown in the present disclosure.
[0184] The block diagram includes: a first receiving module 1201 , a verification module 1202 and a first sending module 1203 .
[0185] The first receiving module 1201 is used to receive an information verification request, wherein the information verification request includes the first identity information of the target application. The verification module 1202 is used to determine whether the first electronic device includes the target application according to the first identity information. The first sending module 1203 is used to send the to-be-processed data to the target application in response to the first electronic device including the target application.
[0186] In an exemplary embodiment of the present disclosure, the first identity information includes a first identity identifier of the target application;
[0187] The verification module 1202 is also used to: determine at least one candidate application based on the first identity identifier, determine an application selected from the candidate applications as the application to be verified, obtain second identity information of the application to be verified, and determine whether the application to be verified is the target application based on the first identity information and the second identity information.
[0188] In an exemplary embodiment of the present disclosure, the first identity information further includes a first operating system identifier corresponding to the target application and first signature information of the target application;
[0189] The second identity information includes a second identity identifier of the application to be verified, a second operating system identifier corresponding to the application to be verified, and second signature information of the application to be verified;
[0190] The verification module 1202 is further used to: in response to the first identity identifier matching the second identity identifier, the first operating system identifier matching the second operating system identifier, and the first signature information matching the second signature information, determine that the application to be verified is the target application.
[0191] In an exemplary embodiment of the present disclosure, the information verification request also includes the data to be processed.
[0192] In an exemplary embodiment of the present disclosure, the information verification request further includes third identity information of a first application, where the first application is an application that sends the data to be processed;
[0193] The data processing device further includes: a first acquisition module and a second verification module.
[0194] The first acquisition module is used to obtain fourth identity information of a preset application from the target application, wherein the preset application is an application corresponding to a data processing type supported by the target application. The second verification module is used to determine again whether the application to be verified is the target application based on the third identity information and the fourth identity information.
[0195] In an exemplary embodiment of the present disclosure, the third identity information includes a third identity identifier of the first application, a third operating system identifier corresponding to the first application, and third signature information of the first application;
[0196] The fourth identity information includes a fourth identity identifier of the preset application, a fourth operating system identifier corresponding to the preset application, and fourth signature information of the preset application;
[0197] The root second verification module is also used to: in response to the third identity identifier matching the fourth identity identifier, the third operating system identifier matching the fourth operating system identifier, and the third signature information matching the fourth signature information, determine that the application to be verified is the target application.
[0198] In an exemplary embodiment of the present disclosure, the data processing device is executed by a first data processing module of a framework layer of an operating system of the first electronic device.
[0199] Regarding the data processing device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0200] The exemplary embodiment of the present disclosure provides a data processing device, which is applied to a first electronic device. Fig.13 As shown, a block diagram of a data processing device shown in the present disclosure.
[0201] The block diagram includes: a second receiving module 1301 and a second sending module 1302 .
[0202] The second receiving module 1301 is used to receive a data processing request sent by the first application; the data processing request includes the first identity information of the target application; the second sending module 1302 is used to send an information verification request to the first electronic device, and the information verification request includes the information included in the data processing request.
[0203] In an exemplary embodiment of the present disclosure, the information verification request includes third identity information of the first application;
[0204] The data processing device further includes: a second acquisition module.
[0205] The second acquisition module is used to acquire the third identity information according to the data processing request.
[0206] In an exemplary embodiment of the present disclosure, the data processing device is executed by a second data processing module of the framework layer of the operating system of the second electronic device.
[0207] Regarding the data processing device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0208] The exemplary embodiment of the present disclosure provides a data processing system, which is applied to a first electronic device and a second electronic device. Fig.14 As shown, a block diagram of a data processing system shown in the present disclosure.
[0209] The block diagram includes: a data processing device 14A and a data processing device 14B.
[0210] The data processing device 14A includes: a first receiving module 1401 , a verification module 1402 and a first sending module 1403 .
[0211] The first receiving module 1401 is used to receive an information verification request, wherein the information verification request includes the first identity information of the target application. The verification module 1402 is used to determine whether the first electronic device includes the target application according to the first identity information. The first sending module 1403 is used to send the to-be-processed data to the target application in response to the first electronic device including the target application.
[0212] In an exemplary embodiment of the present disclosure, the first identity information includes a first identity identifier of the target application;
[0213] The verification module 1402 is also used to: determine at least one candidate application based on the first identity identifier, determine an application selected from the candidate applications as the application to be verified, obtain second identity information of the application to be verified, and determine whether the application to be verified is the target application based on the first identity information and the second identity information.
[0214] In an exemplary embodiment of the present disclosure, the first identity information further includes a first operating system identifier corresponding to the target application and first signature information of the target application;
[0215] The second identity information includes a second identity identifier of the application to be verified, a second operating system identifier corresponding to the application to be verified, and second signature information of the application to be verified;
[0216] The verification module 1402 is further used to: in response to the first identity identifier matching the second identity identifier, the first operating system identifier matching the second operating system identifier, and the first signature information matching the second signature information, determine that the application to be verified is the target application.
[0217] In an exemplary embodiment of the present disclosure, the information verification request also includes the data to be processed.
[0218] In an exemplary embodiment of the present disclosure, the information verification request further includes third identity information of a first application, where the first application is an application that sends the data to be processed;
[0219] The data processing device 14A further includes: a first acquisition module and a second verification module.
[0220] The first acquisition module is used to obtain fourth identity information of a preset application from the target application, wherein the preset application is an application corresponding to a data processing type supported by the target application. The second verification module is used to determine again whether the application to be verified is the target application based on the third identity information and the fourth identity information.
[0221] In an exemplary embodiment of the present disclosure, the third identity information includes a third identity identifier of the first application, a third operating system identifier corresponding to the first application, and third signature information of the first application;
[0222] The fourth identity information includes a fourth identity identifier of the preset application, a fourth operating system identifier corresponding to the preset application, and fourth signature information of the preset application;
[0223] The root second verification module is also used to: in response to the third identity identifier matching the fourth identity identifier, the third operating system identifier matching the fourth operating system identifier, and the third signature information matching the fourth signature information, determine that the application to be verified is the target application.
[0224] In an exemplary embodiment of the present disclosure, the data processing device 14A is executed by a first data processing module of a framework layer of an operating system of the first electronic device.
[0225] The data processing device 14B includes: a second receiving module 1404 and a second sending module 1405 .
[0226] The second receiving module 1404 is used to receive a data processing request sent by the first application; the data processing request includes the first identity information of the target application; the second sending module 1405 is used to send an information verification request to the first electronic device, and the information verification request includes the information included in the data processing request.
[0227] In an exemplary embodiment of the present disclosure, the information verification request includes third identity information of the first application;
[0228] The data processing device 14B further includes: a second acquisition module.
[0229] The second acquisition module is used to acquire the third identity information according to the data processing request.
[0230] In an exemplary embodiment of the present disclosure, the data processing device 14B is executed by a second data processing module of the framework layer of the operating system of the second electronic device.
[0231] Regarding the data processing system in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0232] Fig.15 1 is a block diagram of an electronic device 1500 according to an exemplary embodiment. For example, the electronic device 1500 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0233] Reference Fig.15 , the electronic device 1500 may include one or more of the following components: a processing component 1502 , a memory 1504 , a power component 1506 , a multimedia component 1508 , an audio component 1510 , an input / output (I / O) interface 1512 , a sensor component 1514 , and a communication component 1516 .
[0234] The processing component 1502 generally controls the overall operation of the electronic device 1500, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 1502 may include one or more processors 1520 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 1502 may include one or more modules to facilitate the interaction between the processing component 1502 and other components. For example, the processing component 1502 may include a multimedia module to facilitate the interaction between the multimedia component 1508 and the processing component 1502.
[0235] The memory 1504 is configured to store various types of data to support operations on the electronic device 1500. Examples of such data include instructions for any application or method operating on the electronic device 1500, contact data, phone book data, messages, pictures, videos, etc. The memory 1504 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0236] The power supply component 1506 provides power to the various components of the electronic device 1500. The power supply component 1506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 1500.
[0237] The multimedia component 1508 includes a screen that provides an output interface between the electronic device 1500 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 1508 includes a front camera and / or a rear camera. When the electronic device 1500 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0238] The audio component 1510 is configured to output and / or input audio signals. For example, the audio component 1510 includes a microphone (MIC), and when the electronic device 1500 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 1504 or sent via the communication component 1516. In some embodiments, the audio component 1510 also includes a speaker for outputting audio signals.
[0239] I / O interface 1512 provides an interface between processing component 1502 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
[0240] The sensor assembly 1514 includes one or more sensors for providing various aspects of status assessment for the electronic device 1500. For example, the sensor assembly 1514 can detect the open / closed state of the electronic device 1500, the relative positioning of components, such as the display and keypad of the electronic device 1500, and the sensor assembly 1514 can also detect the position change of the electronic device 1500 or a component of the electronic device 1500, the presence or absence of user contact with the electronic device 1500, the orientation or acceleration / deceleration of the electronic device 1500, and the temperature change of the electronic device 1500. The sensor assembly 1514 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1514 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0241] The communication component 1516 is configured to facilitate wired or wireless communication between the electronic device 1500 and other devices. The electronic device 1500 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1516 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1516 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0242] In an exemplary embodiment, the electronic device 1500 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above methods.
[0243] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 1504 including instructions, and the instructions can be executed by the processor 1520 of the electronic device 1500 to complete the above data processing method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0244] A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of an electronic device, enables a processing device of the electronic device to execute a data processing method provided by an exemplary embodiment of the present disclosure.
[0245] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0246] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A data processing method, applied to a first electronic device, characterized in that: The data processing method includes: receiving an information verification request, wherein the information verification request includes first identity information of a target application; determining whether the first electronic device includes the target application according to the first identity information; In response to the first electronic device including the target application, sending data to be processed to the target application.
2. The data processing method according to claim 1, characterized in that: The first identity information includes a first identity identifier of the target application; The determining, according to the first identity information, whether the first electronic device includes the target application comprises: determining at least one candidate application according to the first identity; determining an application selected from the candidate applications as an application to be verified; Obtaining second identity information of the application to be verified; It is determined whether the application to be verified is the target application according to the first identity information and the second identity information.
3. The data processing method according to claim 2, characterized in that: The first identity information also includes a first operating system identifier corresponding to the target application and first signature information of the target application; The second identity information includes a second identity identifier of the application to be verified, a second operating system identifier corresponding to the application to be verified, and second signature information of the application to be verified; The verifying whether the application to be verified is a target application according to the first identity information and the second identity information includes: In response to the first identity identifier matching the second identity identifier, the first operating system identifier matching the second operating system identifier, and the first signature information matching the second signature information, it is determined that the application to be verified is the target application.
4. The data processing method according to claim 1, characterized in that: The information verification request also includes the data to be processed.
5. The data processing method according to claim 3, characterized in that: The information verification request also includes third identity information of the first application, where the first application is the application that sends the data to be processed; The data processing method further includes: Obtain fourth identity information of a preset application from the application to be verified, where the preset application is an application corresponding to a data processing type supported by the target application; It is determined again whether the application to be verified is the target application according to the third identity information and the fourth identity information.
6. The data processing method according to claim 5, characterized in that: The third identity information includes a third identity identifier of the first application, a third operating system identifier corresponding to the first application, and third signature information of the first application; The fourth identity information includes a fourth identity identifier of the preset application, a fourth operating system identifier corresponding to the preset application, and fourth signature information of the preset application; The determining again whether the application to be verified is the target application according to the third identity information and the fourth identity information comprises: In response to the third identity identifier matching the fourth identity identifier, the third operating system identifier matching the fourth operating system identifier, and the third signature information matching the fourth signature information, it is determined that the application to be verified is the target application.
7. The data processing method according to claim 1, characterized in that: The data processing method is executed by a first data processing module of a framework layer of an operating system of the first electronic device.
8. A data processing method, applied to a second electronic device, characterized in that: The data processing method includes: receiving a data processing request sent by a first application, wherein the data processing request includes first identity information of a target application; An information verification request is sent to the first electronic device, where the information verification request includes the information included in the data processing request.
9. The data processing method according to claim 8, characterized in that: The information verification request includes third identity information of the first application; The data processing method further includes: The third identity information is obtained according to the data processing request.
10. The data processing method according to claim 8 or 9, characterized in that: The data processing method is executed by a second data processing module of the framework layer of the operating system of the second electronic device.
11. A data processing device, applied to a first electronic device, characterized in that: The data processing device comprises: A first receiving module, configured to receive an information verification request, wherein the information verification request includes first identity information of a target application; a verification module, configured to determine whether the first electronic device includes the target application according to the first identity information; The first sending module is used to send the to-be-processed data to the target application in response to the first electronic device including the target application.
12. A data processing device, applied to a second electronic device, characterized in that: The data processing device comprises: A second receiving module is used to receive a data processing request sent by a first application; the data processing request includes first identity information of a target application; The second sending module is used to send an information verification request to the first electronic device, where the information verification request includes the information included in the data processing request.
13. An electronic device, characterized in that: The electronic device comprises: processor; a memory for storing processor-executable instructions; The processor is configured to execute executable instructions in the memory to implement the data processing method according to any one of claims 1 to 10.
14. A non-transitory computer-readable storage medium having executable instructions stored thereon, characterized in that: When the executable instruction is executed by a processor, the data processing method according to any one of claims 1 to 10 is implemented.