Method, device, equipment and medium for sharing data among multiple applications

By setting up an independent data storage area in the computing device, the problem of being unable to share data between isolation areas is solved, data interaction between applications is realized, and functional collaboration and development efficiency are improved.

CN118862136APending Publication Date: 2024-10-29BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310477339.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-27
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

In computers, the existence of isolation zones prevents applications in different isolation zones from sharing data, resulting in limited functions between applications, repeated development and waste of resources, affecting development and usage efficiency.

Method used

By setting up an independent data storage area in the computing device to share data between different isolation areas, data security and access rights are ensured through mechanisms such as APIs and trusted lists, and data interaction between applications is achieved.

Benefits of technology

While ensuring data security, it realizes data sharing between different isolation areas, improves functional synergy between applications, reduces repeated development and waste of resources, and improves development and usage efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118862136A_ABST
    Figure CN118862136A_ABST
Patent Text Reader

Abstract

According to the embodiment of the invention, a method, a device, equipment and a medium for sharing data among a plurality of applications are provided. A first application and a second application of the plurality of applications run in a first isolation region and a second isolation region of the computing device, respectively. The method includes writing target data associated with a first application to a first data store of the computing device. The method further includes, in response to receiving a request from a second application for accessing target data, determining whether the second application is allowed to access the first data storage. The method further includes, in response to determining that the second application is allowed to access the first data store, providing the target data to the second application via the first data store. In this way, data intercommunication can be achieved among applications in different isolation areas under the condition that data security of the different isolation areas is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Example embodiments of the present disclosure generally relate to the field of computers, and more particularly, to methods, apparatuses, devices, and computer-readable storage media for sharing data between multiple applications. Background Art

[0002] With the development of technology, the application scope of computers is becoming wider and wider. In the computer field, technicians face many challenges, such as computer viruses, illegal access and other threats. These challenges have always attracted much attention. Whether in terms of economy or security, computer manufacturers, designers and users have a practical need to eliminate these threats.

[0003] Malicious programs may be implanted into applications in computing devices, and these malicious programs may illegally access data in computing devices, thereby posing a security threat. In order to ensure data security, the concept of isolation zones has been proposed. Isolation zones can be deployed in computing devices and applications can be run in isolation zones. At this time, applications can only access various resources within the isolation zone and cannot access resources outside the isolation zone, which improves the security of the device. However, due to the limitations of isolation zones, different applications running in different isolation zones cannot access each other's data, which greatly reduces the performance of the application. At this time, it is expected that data can be shared between multiple applications in a safe and reliable manner. Summary of the invention

[0004] In a first aspect of the present disclosure, a method for sharing data between multiple applications is provided, wherein a first application and a second application of the multiple applications are respectively run in a first isolation area and a second isolation area of ​​a computing device. The method includes: writing target data associated with the first application to a first data storage of the computing device. In response to receiving a request from the second application for accessing the target data, determining whether the second application is allowed to access the first data storage. In response to determining that the second application is allowed to access the first data storage, providing the target data to the second application via the first data storage.

[0005] In a second aspect of the present disclosure, a device for sharing data between multiple applications is provided, wherein a first application and a second application among the multiple applications are respectively run in a first isolation area and a second isolation area of ​​a computing device. The device includes: a writing module configured to write target data associated with the first application to a first data storage of the computing device. A determining module configured to determine whether the second application is allowed to access the first data storage in response to receiving a request for accessing the target data from the second application. A providing module configured to provide the target data to the second application via the first data storage in response to determining that the second application is allowed to access the first data storage.

[0006] In a third aspect of the present disclosure, an electronic device is provided. The device includes at least one processing unit; and at least one memory, the at least one memory is coupled to the at least one processing unit and stores instructions for execution by the at least one processing unit. When the instructions are executed by the at least one processing unit, the device executes the method of the first aspect.

[0007] In a fourth aspect of the present disclosure, a computer-readable storage medium is provided, wherein a computer program is stored on the computer-readable storage medium, and the computer program can be executed by a processor to implement the method of the first aspect.

[0008] It should be understood that the contents described in the summary of the present invention are not intended to limit the key features or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements, wherein:

[0010] Figure 1 A schematic diagram showing an example environment in which embodiments of the present disclosure can be implemented;

[0011] Figure 2 An architectural diagram showing an example for sharing data between multiple applications according to some embodiments of the present disclosure;

[0012] Figure 3 An architectural diagram showing an example of utilizing a Trusted Execution Environment (TEE) according to some embodiments of the present disclosure;

[0013] Figure 4 A flowchart of a method for sharing data between multiple applications according to some embodiments of the present disclosure is shown;

[0014] Figure 5 A block diagram showing an apparatus for sharing data between multiple applications according to some embodiments of the present disclosure; and

[0015] Figure 6 A block diagram of a device capable of implementing various embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0016] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0017] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly prompt the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can autonomously choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.

[0018] As an optional but non-limiting implementation, in response to receiving an active request from the user, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0019] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet the relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0020] It is understandable that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and relevant provisions.

[0021] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0022] In the description of the embodiments of the present disclosure, the term "including" and similar terms should be understood as open inclusion, that is, "including but not limited to". The term "based on" should be understood as "based at least in part on". The term "one embodiment" or "the embodiment" should be understood as "at least one embodiment". The term "some embodiments" should be understood as "at least some embodiments". Other explicit and implicit definitions may be included below. The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may be included below.

[0023] As briefly mentioned above, with regard to the challenges of computer viruses, illegal access and other threats faced by computers, all parties associated with computers have a practical need to eliminate these threats.

[0024] One feasible implementation method is to set up an isolation zone for an application (e.g., an application with unknown reliability) in a computer. The isolation zone can provide the resources required by the application, and the application in the isolation zone cannot access other resources outside the isolation zone. Thus, the isolation zone can be used to prevent some applications (e.g., untrusted applications, applications that may damage the system, or applications that may damage other applications, etc.) from maliciously accessing resources outside the isolation zone during operation, thereby preventing these applications from causing harm to computer security. However, the existence of isolation zones results in an application in one isolation zone being unable to access the data of another application in another isolation zone.

[0025] In this way, data of applications in different isolation zones cannot be shared. For example, because applications in an isolation zone cannot receive or provide data to applications in other isolation zones, data sharing between applications cannot be achieved, which seriously limits the functions of applications and may cause duplicate development problems. For example, multiple applications (e.g., photo album applications, chat applications, ..., email applications, etc.) can run in different isolation zones. The chat application may want to access photos in the photo album application, but due to the restrictions of the isolation zone, the chat application cannot access these photos. In order to implement the function of accessing photos, the developers of the chat application have to develop the photo album function themselves.

[0026] At this time, the existence of the isolation zone limits the ability to access and integrate other applications, and does not allow some functions of the application to be implemented by using the data of other applications. Because it is impossible to obtain data from other applications, this leads to problems such as duplicate development and waste of resources, and also affects the development and use efficiency of the application.

[0027] In this regard, in order to at least partially solve the above-mentioned problems, an embodiment of the present disclosure proposes a method for sharing data between multiple applications. Here, a first application and a second application among multiple applications are respectively run in a first isolation zone and a second isolation zone of a computing device. A data storage (also referred to as a first data storage) can be provided in the computing device, and the first data storage can act as an intermediary for sharing data between multiple applications. In order to improve data security, in the initial stage of loading each application, it can be determined whether each application has the right to access the first data storage, for example, by registration, etc., and the first data storage can provide data sharing services for multiple applications that have the right to access. For example, one application can write data to the first data storage, and another application can read the written data from the first data storage. In this way, data sharing can be achieved between different applications located in different isolation zones.

[0028] According to various embodiments of the present disclosure, target data associated with a first application is written to a first data storage of a computing device. If a request for accessing the target data is received from a second application, it is determined whether the second application is allowed to access the first data storage. Further, if it is determined that the second application is allowed to access the first data storage, the target data is provided to the second application via the first data storage.

[0029] In the embodiments of the present disclosure, by using data storage as an intermediary area to store target data, applications in different isolation zones can use the data storage to implement data interaction after being determined to be allowed to access the data storage. Data sharing between applications in different isolation zones can be implemented while ensuring the security of data in different isolation zones.

[0030] Example Environment

[0031] Figure 1 A schematic diagram of an example environment 100 in which embodiments of the present disclosure can be implemented is shown. In the example environment 100, a first isolation zone 120 and a second isolation zone 130 are provided in a computing device 110, wherein the first isolation zone 120 includes a first application 121, and the second isolation zone 130 includes a second application 131. The first application 121 and the second application 131 may be applications that provide different services and functions, respectively. For example, the first application 121 is a photo album application, and the second application 131 may be a chat application or an email application. Alternatively and / or additionally, the two applications may be applications that provide the same services and functions. For example, the first application 121 and the second application 131 are chat applications provided by different developers. As described above, the first isolation zone 120 and the second isolation zone 130 are used to isolate the first application 121 and the second application 131, respectively, to ensure the data security thereof.

[0032] For the convenience of discussion, the first application (eg, first application 121) used herein is an application that provides data, and correspondingly, the second application (eg, second application 131) is an application that obtains data. It should be understood that this is merely exemplary and is not intended to impose any limitation on the application.

[0033] The computing device 110 can be any type of mobile terminal, fixed terminal or portable terminal, including a mobile phone, a desktop computer, a laptop computer, a notebook computer, a netbook computer, a tablet computer, a media computer, a multimedia tablet, a personal communication system (PCS) device, a personal navigation device, a personal digital assistant (PDA), an audio / video player, a digital camera / camcorder, a positioning device, a television receiver, a radio broadcast receiver, an e-book device, a gaming device, or any combination of the foregoing, including accessories and peripherals of these devices or any combination thereof. In some embodiments, the computing device 110 can also support any type of interface for the user (such as a "wearable" circuit, etc.). In some embodiments, such a computing device 110 can also be implemented as various types of computing systems / servers, including but not limited to mainframes, edge computing nodes, computing devices in cloud environments, and the like.

[0034] In some embodiments, such computing device 110 maintains a Linux operating system, which is a Unix-like operating system that can support multiple users, multiple tasks, multiple threads, and multiple CPUs. Alternatively and / or additionally, computing device 110 can use other operating systems. It should be understood that the structure and function of environment 100 are described for exemplary purposes only, and do not imply any limitation on the scope of the present disclosure.

[0035] Example Architecture

[0036] Figure 2 1 shows an architectural diagram of an example 200 for sharing data between multiple applications according to some embodiments of the present disclosure. Example 200 can be implemented at computing device 110. For ease of discussion, reference will be made to Figure 1 The example 200 is described with reference to the environment 100 of FIG.

[0037] refer to Figure 2 ,exist Figure 1The computing device 110 shown includes a first data storage 220 and an application programming interface (API) 210. A technical solution for data sharing can be implemented at the API 210. The first data storage 220 can communicate with the API 210 and an application (e.g., the first application 121 and the second application 131). For example, the first data storage 220 can communicate with the API 210 and receive data from the application or provide data to the application according to the instructions of the API 210. For example, the first data storage 220 can obtain data from the first application 121 according to the instructions of the API 210, and for another example, the first data storage 220 can allow the second application 131 to read data from the first data storage 220 according to the instructions of the API 210. In some scenarios, the first data storage 220 can also be referred to as a data sharing area.

[0038] In some embodiments, the first application 121 may write the target data to be shared to the data storage 220. In the first data storage 220, a Uniform Resource Locator (URL) may be used to point to the written target data. Further, a second data storage 230 (e.g., implemented based on database technology) may be maintained in the computing device 110. The database may store the URL of the target data written by the application.

[0039] For example, after the target data is written to the target address in the first data storage 220, the corresponding URL of the target address can be determined (i.e., the URL points to the target address of the target data in the first data storage 220). The URL can be sent to the second data storage 230 for storage. Further, in the case where other applications expect to call the target data written by the application, the other applications, after requesting and obtaining the URL, use the URL to obtain the target data written by the application from the first data storage 220. In some embodiments, the application can write multiple types of data to the first data storage 220, such as pictures, documents, multimedia files, etc.

[0040] Further, the API 210 may communicate with applications (eg, the first application 121 and the second application 131) and the first data storage 220. For example, the API 210 may communicate with each application to receive a request for reading data from the first data storage 220 or writing data to the first data storage 220.

[0041] In some embodiments, the first data storage 220 is independent of the isolation area (e.g., the first isolation area 120 and the second isolation area 130), in other words, is set outside the isolation area of ​​the application. Thus, not only can each application have equal access to the first data storage 220, but also the first data storage 220 can be managed in an independent manner without interfering with the operation strategies of each isolation area.

[0042] exist Figure 2 In the example 200 shown, isolation zones (e.g., first isolation zone 120 and second isolation zone 130) can be configured for the first application 121 and the second application 131 in the computing device 110, respectively. Isolation zones may include at least one of the following: sandbox, container. Specifically, sandboxes and containers are both isolated operation mechanisms of programs, and their purpose is to limit the runtime access rights of untrusted processes or untrusted codes. Sandboxes and containers, for example, can be a kind of security software, and an application can be put into a sandbox or container for operation. At this time, all files and registries created, modified, and deleted by the application will be redirected by virtualization, that is, all operations are virtual, and real files and registries will not be modified. Therefore, the malicious behavior of untrusted programs in the sandbox can be limited to the sandbox, or only limited operations specified in the trusted list are allowed to be executed in the sandbox. Thus, the use of sandboxes and containers can ensure that destructive means such as viruses cannot modify the key parts of the computing device and protect computer security.

[0043] Further, in order to more clearly discuss the process of sharing data between multiple applications, the first application 121 can be used as an application for storing photos (e.g., an album application) and the second application 131 can be used as an application for sending photos (e.g., a chat application) as an example for explanation. In this case, illustratively, a user using the computing device 110 may want to use the second application 131 to send photos stored in the first application 121 to other users. At this time, the interaction process may include the first application 121 writing photos to the first data storage 220, and the second application 131 reading the written photos from the first data storage 220.

[0044] In order to ensure data security, multiple protection methods can be provided. It should be understood that the various protection methods below can be used in a variety of ways (for example, setting a trusted list, using a first key, using a second key, performing encryption and / or decryption in a TEE, etc.). In the absence of associated constraints (for example, encryption and decryption require the existence of a key as a constraint), the various methods can be used separately. For protection methods with associated constraints, they can be implemented in combination.

[0045] In some embodiments, when multiple protection methods are used simultaneously, such protection methods may also be referred to as multi-layer protection. Accordingly, the various protection methods described later may also be referred to as first-layer protection, second-layer protection, and so on. For example, the first-layer protection may be protection implemented by using an API to determine whether an application is allowed to access the first data storage 220, the second-layer protection may be protection implemented by using the second data storage, the third-layer protection may be protection implemented by using a system key, the fourth-layer protection may be protection implemented by using a trusted execution environment, and the fifth-layer protection may be protection implemented by encrypting the target data set.

[0046] The following specific reference Figure 2 In the case of using the computing device 110 to achieve the above purpose, the first application 120 writes the target data associated with the first application 120 to the first data storage 220 of the computing device 110. In the embodiment of the present disclosure, the first application 121 can write the target data (e.g., photos) stored therein into the first data storage 220 according to the user's operation, so as to be called by the second application 131.

[0047] When the first application 121 desires to write target data into the first data storage 220, the first application 121 may send a data write request to the API 210 to confirm whether the write behavior of the first application 121 is allowed. Accordingly, when the API 210 receives the write request for the first data storage 220 issued by the first application 121, it may determine whether the first application 121 is allowed to access the first data storage 220.

[0048] In some embodiments, whether the first application 121 is allowed to access the first data storage 220 may be determined based on a variety of methods. For example, when each application is loaded at the computing device 110, it may be registered with the trusted list of the computing device 110. Specifically, the first application 121 and the second application 131 may be registered with the trusted list, and both the first application 121 and the second application 131 may access the first data storage 220.

[0049] In some embodiments, a trusted list of applications may be maintained in advance in the computing device 110, and the trusted list at least indicates applications that are allowed to access the first data storage 220. Generally, applications may be maintained and registered in the trusted list through methods such as verification and authorization. At this time, the applications in the trusted list are considered to be trusted. In other words, the applications in the trusted list are safe for the computing device 110.

[0050] In some embodiments, after receiving a request from an application (e.g., a write request, a read request), the API 210 may determine whether the application is allowed to access the first data storage 220 by determining whether the application is registered in the trusted list. Further, if the API 210 determines that the application is registered in the trusted list, the API 210 may allow the application to access the first data storage 220. Thus, the application may be screened and a trusted list may be established by pre-registration, and the trusted list may be used to quickly verify the application later to improve data interaction efficiency.

[0051] When receiving the access request from the first application 121 to the first data storage 220, the API 210 may determine whether the first application 121 is registered in the trusted list of the computing device 110. Accordingly, if the first application 121 is registered in the trusted list of the computing device 110, the API 210 allows the first application 121 to access the first data storage 220 to write target data (e.g., photos).

[0052] Specifically, when it is determined that the first application 121 is allowed to access the first data storage 220, the API 210 returns an indication to the first application 121, indicating that the first application 121 can write target data (e.g., photos) to the first data storage 220. Thus, the writing security of the first data storage can be guaranteed, and attacks on the first data storage through behaviors such as writing illegal data can be avoided, thereby affecting the security of the first data storage.

[0053] In some embodiments, in order to write target data to the first data storage 220, the target data may be written to the target address in the first data storage 220, and the target address may be stored in the second data storage 230 of the computing device 110. Specifically, the target data may be written to the target address in the first data storage (e.g., a location in the first data storage allocated to the application for data writing). Further, after the data is written, the target address (e.g., the URL described above) may be stored in the second data storage 230.

[0054] In some embodiments, data writing can be performed by, for example, API 210. For example, the first application 121 provides the target data to be written to API 210. When API 210 determines that the first application 121 is allowed to write, it writes the target data to the target address in the first data storage 220. Further, API 210 can store the target address (or a combination of the target address and the unique identifier) ​​to the second data storage 230 so that other applications can access the target data via the target address. Alternatively and / or additionally, the writing process can be performed by the first application 121 with the assistance of API 210.

[0055] In some embodiments, a unique identifier corresponding to the target data may be determined, and the target address may be managed based on the unique identifier. Accordingly, a combination of the unique identifier and the target address may be stored in the second data storage 230. Thus, when other applications wish to read the target data, they may search the second data storage 230 by the unique identifier of the target data, and thereby obtain the target address of the target data. In this way, the access address of the target data may be quickly obtained, thereby improving the efficiency of obtaining data.

[0056] In some embodiments, the second data storage 230 is similar to the first data storage 220, and the second data storage 230 can be independent of the isolation area (e.g., the first isolation area 120 and the second isolation area 130), in other words, it is set outside the isolation area of ​​the application. In this way, each application can equally access the second data storage 230 and avoid interfering with the protection strategy of each isolation area.

[0057] In some embodiments, to prevent the second data storage 230 from being attacked, protection measures may be configured for the second data storage simultaneously or separately. In some embodiments, when the target address is stored in the second data storage 230 of the computing device 110, a key verification process may be performed. Specifically, the first key of the first application 121 may be used to determine whether the first application 121 is allowed to access the second data storage 230. If it is determined that the first application 121 is allowed to access the second data storage 230, the target address is stored in the second data storage 230.

[0058] Specifically, the first application may be pre-assigned with a first key, in which case the API 210 may determine whether the first application is allowed to access the second data storage 230 by verifying the first key. Specifically, the API 210 may determine whether the first application 121 is allowed to access the second data storage 230 using the first key of the first application 121 (e.g., a predetermined application key app_key). For example, the API 210 may determine whether the received first key matches a pre-stored key pre-agreed with an application in the trusted list.

[0059] Further, when the API 210 determines that the received first key matches the pre-stored key of an application (e.g., the first application 121) in the trusted list, it can be determined that the first application 121 is allowed to access the second data storage 230. Accordingly, the API 210 stores the target address in the second data storage 230. Thus, the protection of the second data storage 230 can be achieved. In some embodiments, when the API 210 determines that the first application 121 is allowed to access the second data storage, a permission indication can be issued to the first application 121 to instruct the first application to store the target address in the second data storage.

[0060] To further improve the security of the access process, in some embodiments, the API 210 can use the system key of the computing device to verify whether the first key is legal. Specifically, the system key of the computing device can be used to decrypt the first key. If it is determined that the decrypted first key is consistent with the pre-stored key of the first application, it is determined that the first application is allowed to access the second data storage. Specifically, the above-mentioned first key can also be encrypted by the system key of the computing device. Accordingly, after obtaining the first key encrypted by the system key of the computing device, the API 210 can decrypt it based on the pre-configured decryption rules to obtain the decrypted first key. Further, when it is determined that the decrypted first key is consistent with the pre-stored key of the first application 121 (for example, the pre-agreed application key of the application in the above-mentioned trusted list), it is determined that the first application 121 is allowed to access the second data storage 230. Thus, by protecting the first key, the security of shared data between applications can be further improved.

[0061] In some embodiments, in order to provide higher security, a verification process can be performed in the TEE to determine whether the decrypted first key is consistent with the pre-stored key. When it is determined that the two are consistent, it is confirmed that the first application is allowed to access the second data storage. Specifically, API 210 can provide the first key to the TEE, which is a trusted, isolated, and independent execution environment. TEE provides a secure and confidential space for private data and sensitive calculations in an untrusted environment, and its security is usually guaranteed by hardware and / or software-related mechanisms. System keys can be maintained in the TEE, and the system keys can be used to verify whether the first key is consistent with the pre-stored key. Further, the TEE can return the verification result to API 210. Accordingly, API 210 can determine whether the first application is allowed to access the second data storage 230 based on the result.

[0062] In some embodiments, the TEE may also be used to generate the first key to improve the security of the first key. For example, the first key of the application may be encrypted in the TEE to obtain the encrypted first key.

[0063] Figure 3 An architectural diagram of an example 300 utilizing TEE according to some embodiments of the present disclosure is shown. Figure 3 310 , the first application 121 may send 321 the app_key to the TEE 310. Accordingly, in the TEE 310, the app_key may be encrypted using the system_key (e.g., the system key 311). Further, the TEE 310 returns 322 the encrypted first key to the first application 121. The first application 121 may use the received key to request access to the second data storage 230 from the API 210. Specifically, the first application 121 may send 333 the key to the API 210. Accordingly, the API 210 may provide 334 the key to the TEE 310 for verification.

[0064] For example, the key may be decrypted in TEE 310 and confirmed to be consistent with the pre-stored key. TEE 310 may return 335 the verification result to API 210. The verification process is performed in TEE 310, thereby avoiding and reducing the risk of malicious programs interfering with the verification process, thereby further improving data security.

[0065] The process of the first application 120 writing target data to the first data storage 220 and writing a target address for accessing the target data to the second data storage 230 has been described above. Hereinafter, the process of the second application 131 reading the target data via the target address will be described.

[0066] In the case where the second application 131 requests to read the target data written by the first application 120, the second application 131 may send a request for accessing the target data to the API 210. In an embodiment of the present disclosure, the request may request to obtain the target data from the first data storage 220. Accordingly, the API 210 determines whether the second application 131 is allowed to access the first data storage 220.

[0067] In some embodiments, whether the second application 131 is allowed to access the first data storage 220 can be determined based on a similar manner. For example, it can be implemented using the trusted list described above. Specifically, if it is determined that the second application 131 is registered to the trusted list of the computing device 110, it is determined that the second application 131 is allowed to access the first data storage 220. If it is determined that the second application 131 is not registered to the trusted list of the computing device 110, it is determined that the second application 131 is not allowed to access the first data storage 220.

[0068] Specifically, when the second application 131 is loaded into the computing device, the second application 131 may be registered with the trusted list of the computing device. Subsequently, the trusted list of the computing device 110 may be used to determine whether the second application 131 is allowed to access the first data storage 220. If the trusted list includes the second application 131, the API 210 may determine that the second application 131 is allowed to access the first data storage 220. If the trusted list does not include the second application 131, the API 210 determines that the second application 131 is not allowed to access the first data storage 220. In this way, configuration of read / write permissions for application data (e.g., data stored in the first data storage 220) may be implemented.

[0069] It should be understood that the trusted list may further record multiple types of access rights, such as read-only permission, write-only permission, read-write permission, etc. For example, the trusted list may record: the write permission of the first application 121 to the first data storage 220. Alternatively or additionally, the trusted list may record: the read permission of the second application 131 to the first data storage 220.

[0070] Further, in the case where it is determined that the second application 131 is allowed to access the first data storage 220, the API 210 provides the target data to the second application via the first data storage. In some embodiments, in order to provide the target data to the second application 131, the API 210 obtains the target address from the second data storage 230, and provides the target data to the second application via the target address. Specifically, the API 210 may first verify whether the second application 131 is allowed to access the second data storage 230.

[0071] Similarly, in some embodiments, the API 210 can verify whether the second application 131 is allowed to access the second data storage 230 based on the second key configured for the second application 131. For example, the second application 131 can be verified in a manner similar to verifying the access rights of the first application 121. The second application 131 can use its own second key to perform verification. For example, the second application 131 can send the second key (that is, the encrypted app_key2) to the API 210, and the API 210 can send the second key to the TEE 310 for verification.

[0072] In TEE 310, the system key 311 can be used to decrypt the second key. If the decrypted second key is consistent with the pre-stored key of the second application, it is determined that the second application 131 is allowed to access the second data storage 230. If the two keys are inconsistent, the second application 131 is prohibited from accessing the second data storage 230. The relevant discussion about the first key can be referred to above, and it will not be repeated here. In this way, the security of the second data storage 230 can be improved in a similar way.

[0073] In some embodiments, if it is determined that the second application 131 can access the second data storage 230, the API 210 can search for a target address for storing the target data in the second data storage 230. For example, the search can be performed via a unique identifier of the target data to obtain the corresponding target address. In some embodiments, the API 210 can use the target address to access the first data storage 220 and obtain the target data. Then, the API 210 can return the obtained target data to the second application 131. Alternatively and / or additionally, the API 210 can directly send the target address to the second application 131 and instruct the second application 131 to obtain the target data via the target address.

[0074] In some embodiments, the computing device 110 may protect the target data written to the first data storage 220. For example, the target data at this time may be target data that has been encrypted, and the encrypted target data may be written to the first data storage 220. Specifically, the above encryption process may be performed by different entities, for example, the first application 121, the API 210 and / or other components of the computing device 110 may encrypt the target data. For another example, the target data may be encrypted in the TEE to further ensure the data security of the target data. In the presence of a TEE, the TEE may also be used to encrypt the target data that the application expects to write. That is, before writing the target data to the first data application 220, the application may send the data to the TEE for encryption to further enhance data security.

[0075] In some embodiments, when the target data is encrypted data, a decryption operation is performed on the encrypted target data to obtain the target data; and the target data is provided to the second application 131. Specifically, if the target data is encrypted, the API 210 may provide a key for decryption to the second application 131 for decryption. For another example, the API 210 may perform the decryption operation and then provide the decrypted data to the second application 131. Thus, while ensuring the security of the target data, the target data can be guaranteed to be available to the second application.

[0076] Thus, the second application reads the target data associated with the first application stored in the first data storage, for example, the chat application can read the photos stored in the album application from the first data storage 220. Further, the chat application can send the photos to friends.

[0077] It will be understood that although the above only describes the process of sharing data between multiple applications by taking the photo album application and the chat application as examples of the first application and the second application respectively, the first application and the second application can be any application that desires to share data. For example, the chat application can receive photos from friends and store the photos in the photo album application. For another example, the mail application can access photos in the photo album application and send the photos as attachments, and so on.

[0078] In an embodiment of the present disclosure, the first data storage 220 can be used as an intermediary area to store target data to be shared, so that applications in different isolation zones can use the data storage to achieve data interaction after being determined to be allowed to access the data storage. Further, the second data storage 230 can store a target address for accessing the target data. The access rights of each application to the second data storage 230 can be verified by a secret key, and the target address can be managed in a more reliable manner, thereby improving the security of accessing the target data via the target address. In this way, data intercommunication between applications in different isolation zones can be achieved while ensuring the security of data in different isolation zones.

[0079] Example Process

[0080] Figure 4 A flowchart of a method 400 for sharing data between multiple applications according to some embodiments of the present disclosure is shown, wherein a first application and a second application of the multiple applications are respectively run in a first isolation area and a second isolation area of ​​a computing device. Exemplarily, the method 400 may be Figure 1 The computing device 110 is implemented independently (for example, using the API 210), or is implemented by a combination of the computing device 110 and other computing devices. Figure 1 , Figure 2 The method 400 is described with reference to the illustrated environment.

[0081] At block 410, target data associated with a first application is written to a first data store of a computing device. At block 420, in response to receiving a request from a second application to access the target data, it is determined whether the second application is allowed to access the first data store. At block 430, in response to determining that the second application is allowed to access the first data store, the target data is provided to the second application via the first data store.

[0082] In some embodiments, writing target data to a first data storage includes: in response to receiving a request from a first application to write target data to the first data storage, determining whether the first application is allowed to access the first data storage; and in response to determining that the first application is allowed to access the first data storage, writing the target data to the first data storage.

[0083] In some embodiments, determining whether the first application is allowed to access the first data store includes: determining whether the first application is registered to a trusted list of the computing device; and in response to determining that the first application is registered to the trusted list of the computing device, determining that the first application is allowed to access the first data store.

[0084] In some embodiments, writing the target data to the first data storage includes: writing the target data to a target address in the first data storage; and storing the target address to a second data storage of the computing device.

[0085] In some embodiments, storing the target address to a second data store of the computing device includes: using a first key of the first application, determining whether the first application is allowed to access the second data store; and in response to determining that the first application is allowed to access the second data store, storing the target address to the second data store.

[0086] In some embodiments, determining whether the first application is allowed to access the second data storage includes: decrypting the first key using a system key of the computing device; and in response to determining that the decrypted first key is consistent with a pre-stored key of the first application, determining that the first application is allowed to access the second data storage.

[0087] In some embodiments, determining that the first application is allowed to access the second data storage includes: determining in a trusted execution environment whether the decrypted first key is consistent with a pre-stored key; and in response to determining that the decrypted first key is consistent with the pre-stored key, determining that the first application is allowed to access the second data storage.

[0088] In some embodiments, determining whether the second application is allowed to access the first data storage includes: in response to determining that the second application is registered to a trusted list of the computing device, determining that the second application is allowed to access the first data storage; and in response to determining that the second application is not registered to the trusted list of the computing device, determining that the second application is not allowed to access the first data storage.

[0089] In some embodiments, providing the target data to the second application via the first data store includes: obtaining a target address from the second data store; and providing the target data to the second application via the target address.

[0090] In some embodiments, obtaining the target address from the second data store includes: using a second key of the second application, determining whether the second application is allowed to access the second data store; and in response to determining that the second application is allowed to access the second data store, obtaining the target address from the second data store.

[0091] In some embodiments, determining whether the second application is allowed to access the second data storage includes: decrypting the second key using a system key of the computing device; and in response to determining that the decrypted second key is consistent with a pre-stored key of the second application, determining that the second application is allowed to access the second data storage.

[0092] In some embodiments, the first data store and the second data store are located outside of the first isolation region and the second isolation region at the computing device.

[0093] In some embodiments, writing the target data to the first data store includes writing encrypted target data to the first data store.

[0094] In some embodiments, providing the target data to the second application includes: performing a decryption operation on the encrypted target data to obtain the target data; and providing the target data to the second application.

[0095] In some embodiments, the first isolation area and the second isolation area include at least any of the following: a sandbox, a container.

[0096] Example Apparatus and Electronic Devices

[0097] Figure 5 A schematic structural block diagram of an apparatus 500 for sharing data between multiple applications according to some embodiments of the present disclosure is shown, wherein a first application and a second application in the multiple applications are respectively run in a first isolation area and a second isolation area of ​​a computing device. The apparatus 500 may be implemented as or included in a computing device 110. Each module / component in the apparatus 500 may be implemented by hardware, software, firmware, or any combination thereof.

[0098] As shown, the apparatus 500 includes a writing module 510 configured to write target data associated with a first application to a first data storage of a computing device. The apparatus 500 also includes: a determining module configured to determine whether the second application is allowed to access the first data storage in response to receiving a request for accessing the target data from the second application. The apparatus 500 also includes: a providing module 530 configured to provide the target data to the second application via the first data storage in response to determining that the second application is allowed to access the first data storage.

[0099] In some embodiments, the writing module 510 includes: a first determining submodule configured to determine whether the first application is allowed to access the first data storage in response to receiving a request from the first application to write target data to the first data storage. The writing module 510 also includes: a writing submodule configured to write the target data to the first data storage in response to determining that the first application is allowed to access the first data storage.

[0100] In some embodiments, the first determination submodule is further configured to determine whether the first application is registered to a trusted list of the computing device; and in response to determining that the first application is registered to the trusted list of the computing device, determine that the first application is allowed to access the first data storage.

[0101] In some embodiments, the writing submodule is further configured to write the target data to the target address in the first data storage; and store the target address in the second data storage of the computing device.

[0102] In some embodiments, the writing submodule includes: a first determining unit configured to use a first key of the first application to determine whether the first application is allowed to access the second data storage. The writing submodule also includes: a storage unit configured to store the target address to the second data storage in response to determining that the first application is allowed to access the second data storage.

[0103] In some embodiments, the storage unit includes: a decryption subunit configured to decrypt the first key using a system key of the computing device. The storage unit also includes: a determination subunit configured to determine that the first application is allowed to access the second data storage in response to determining that the decrypted first key is consistent with a pre-stored key of the first application.

[0104] In some embodiments, the determination subunit is further configured to determine whether the decrypted first key is consistent with the pre-stored key in the trusted execution environment; and in response to determining that the decrypted first key is consistent with the pre-stored key, determine that the first application is allowed to access the second data storage.

[0105] In some embodiments, the determination module 520 includes: a second determination submodule configured to determine that the second application is allowed to access the first data storage in response to determining that the second application is registered to the trusted list of the computing device. The second determination submodule is also configured to determine that the second application is not allowed to access the first data storage in response to determining that the second application is not registered to the trusted list of the computing device.

[0106] In some embodiments, the providing module 530 includes: an obtaining submodule configured to obtain the target address from the second data storage. The providing module 530 also includes a providing submodule configured to provide the target data to the second application via the target address.

[0107] In some embodiments, the acquisition submodule includes: a determination unit configured to use a second key of the second application to determine whether the second application is allowed to access the second data storage. The acquisition submodule also includes: an acquisition unit configured to obtain a target address from the second data storage in response to determining that the second application is allowed to access the second data storage.

[0108] In some embodiments, the determining unit is further configured to decrypt the second key using a system key of the computing device; and in response to determining that the decrypted second key is consistent with a pre-stored key of the second application, determine that the second application is allowed to access the second data storage.

[0109] In some embodiments, the first data store and the second data store are located outside of the first isolation region and the second isolation region at the computing device.

[0110] In some embodiments, the writing module 510 is further configured to write the target data to the first data storage, including: writing the encrypted target data to the first data storage.

[0111] In some embodiments, providing the target data to the second application in the providing module 530 includes: performing a decryption operation on the encrypted target data to obtain the target data; and providing the target data to the second application.

[0112] In some embodiments, the first isolation area and the second isolation area include at least any of the following: a sandbox, a container.

[0113] Figure 6 A block diagram illustrating a computing device 600 in which one or more embodiments of the present disclosure may be implemented is shown. It should be understood that Figure 6 The computing device 600 shown is merely exemplary and should not constitute any limitation on the functionality and scope of the embodiments described herein. Figure 6 The computing device 600 shown may be used to implement Figure 1 A computing device 110 is provided.

[0114] like Figure 6 As shown, computing device 600 is in the form of a general-purpose computing device. Components of computing device 600 may include, but are not limited to, one or more processors or processing units 610, memory 620, storage device 630, one or more communication units 640, one or more input devices 650, and one or more output devices 660. Processing unit 610 may be an actual or virtual processor and is capable of performing various processes according to a program stored in memory 620. In a multi-processor system, multiple processing units execute computer executable instructions in parallel to increase the parallel processing capabilities of computing device 600.

[0115] The computing device 600 typically includes a plurality of computer storage media. Such media may be any accessible media that is accessible to the computing device 600, including but not limited to volatile and non-volatile media, removable and non-removable media. The memory 620 may be a volatile memory (e.g., registers, caches, random access memory (RAM)), a non-volatile memory (e.g., a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), flash memory), or some combination thereof. The storage device 630 may be a removable or non-removable medium, and may include a machine-readable medium, such as a flash drive, a disk, or any other medium, which may be capable of being used to store information and / or data (e.g., training data for training) and may be accessed within the computing device 600.

[0116] The computing device 600 may further include additional removable / non-removable, volatile / non-volatile storage media. Figure 6 As shown in , a disk drive for reading or writing from a removable, non-volatile disk (e.g., a "floppy disk") and an optical drive for reading or writing from a removable, non-volatile optical disk may be provided. In these cases, each drive may be connected to the bus (not shown) by one or more data media interfaces. The memory 620 may include a computer program product 625 having one or more program modules that are configured to perform various methods or actions of various embodiments of the present disclosure.

[0117] The communication unit 640 enables communication with other computing devices via a communication medium. Additionally, the functions of the components of the computing device 600 can be implemented in a single computing cluster or multiple computing machines that can communicate via a communication connection. Therefore, the computing device 600 can operate in a networked environment using a logical connection with one or more other servers, a network personal computer (PC), or another network node.

[0118] Input device 650 may be one or more input devices, such as a mouse, keyboard, trackball, etc. Output device 660 may be one or more output devices, such as a display, speaker, printer, etc. Computing device 600 may also communicate with one or more external devices (not shown) through communication unit 640 as needed, such as storage devices, display devices, etc., communicate with one or more devices that allow a user to interact with computing device 600, or communicate with any device that allows computing device 600 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). Such communication may be performed via an input / output (I / O) interface (not shown).

[0119] According to an exemplary implementation of the present disclosure, a computer-readable storage medium is provided, on which computer-executable instructions are stored, wherein the computer-executable instructions are executed by a processor to implement the method described above. According to an exemplary implementation of the present disclosure, a computer program product is also provided, which is tangibly stored on a non-transitory computer-readable medium and includes computer-executable instructions, and the computer-executable instructions are executed by a processor to implement the method described above.

[0120] Various aspects of the present disclosure are described herein with reference to flowcharts and / or block diagrams of methods, devices, equipment, and computer program products implemented according to the present disclosure. It should be understood that each box in the architecture diagram and / or flowchart and / or block diagram, and the combination of boxes in the architecture diagram and / or flowchart and / or block diagram, can be implemented by computer-readable program instructions.

[0121] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the architecture diagram and / or flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the architecture diagram and / or flowchart and / or block diagram.

[0122] Computer-readable program instructions can be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, so that the instructions executed on the computer, other programmable data processing apparatus, or other device implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0123] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple implementations of the present disclosure. In this regard, each square box in the architecture diagram or flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of a module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the architecture diagram and / or block diagram and / or flow chart, and the combination of the square boxes in the architecture diagram and / or block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.

[0124] The above descriptions of various implementations of the present disclosure are exemplary, non-exhaustive, and not limited to the disclosed implementations. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described implementations. The selection of terms used herein is intended to best explain the principles of the implementations, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the various implementations disclosed herein.

Claims

1. A method for sharing data between a plurality of applications, wherein a first application and a second application of the plurality of applications are respectively run in a first isolation area and a second isolation area of ​​a computing device, the method comprising: writing target data associated with the first application to a first data storage of the computing device; In response to receiving a request from the second application for accessing the target data, determining whether the second application is allowed to access the first data store; as well as In response to determining that the second application is allowed to access the first data store, the target data is provided to the second application via the first data store.

2. The method of claim 1 , wherein writing the target data to the first data storage comprises: In response to receiving a request from the first application to write the target data to the first data store, determining whether the first application is allowed to access the first data store; as well as In response to determining that the first application is allowed to access the first data store, the target data is written to the first data store.

3. The method of claim 2, wherein determining whether the first application is allowed to access the first data store comprises: determining whether the first application is registered with a trusted list of the computing device; as well as In response to determining that the first application is registered with a trusted list of the computing device, it is determined that the first application is allowed to access the first data store.

4. The method of claim 1 , wherein writing the target data to the first data storage comprises: Write the target data to the target address in the first data storage; as well as The target address is stored in a second data store of the computing device.

5. The method of claim 4, wherein storing the target address to the second data storage of the computing device comprises: Determining, using a first key of the first application, whether the first application is allowed to access the second data storage; as well as In response to determining that the first application is allowed to access the second data store, the target address is stored in the second data store.

6. The method of claim 5, wherein determining whether the first application is allowed to access the second data store comprises: decrypting the first key using a system key of the computing device; as well as In response to determining that the decrypted first key is consistent with a pre-stored key of the first application, it is determined that the first application is allowed to access the second data storage.

7. The method of claim 6, wherein determining that the first application is allowed to access the second data store comprises: Determining in a trusted execution environment whether the first decrypted key is consistent with the pre-stored key; as well as In response to determining that the decrypted first key is consistent with the pre-stored key, it is determined that the first application is allowed to access the second data storage.

8. The method of claim 4, wherein determining whether the second application is allowed to access the first data store comprises: In response to determining that the second application is registered with a trusted list of the computing device, determining that the second application is allowed to access the first data store; as well as In response to determining that the second application is not registered with the trusted list of the computing device, it is determined that the second application is not allowed to access the first data store.

9. The method of claim 8, wherein providing the target data to the second application via the first data store comprises: Obtaining the target address from the second data storage; as well as The target data is provided to the second application via the target address.

10. The method of claim 9, wherein obtaining the target address from the second data storage comprises: using a second key of the second application, determining whether the second application is allowed to access the second data storage; as well as In response to determining that the second application is allowed to access the second data store, the target address is obtained from the second data store.

11. The method of claim 10, wherein determining whether the second application is allowed to access the second data store comprises: decrypting the second key using a system key of the computing device; as well as In response to determining that the decrypted second key is consistent with the pre-stored key of the second application, it is determined that the second application is allowed to access the second data storage.

12. The method of claim 1, wherein the first data store and the second data store are located outside of the first isolation area and the second isolation area at the computing device.

13. The method of claim 1 , wherein writing the target data to the first data storage comprises: The encrypted target data is written to the first data storage.

14. The method of claim 13, wherein providing the target data to the second application comprises: Performing a decryption operation on the encrypted target data to obtain the target data; as well as The target data is provided to the second application.

15. The method according to claim 1, wherein the first isolation area and the second isolation area include at least any one of the following: a sandbox, a container.

16. An apparatus for sharing data between a plurality of applications, wherein a first application and a second application of the plurality of applications are respectively run in a first isolation area and a second isolation area of ​​a computing device, the apparatus comprising: A writing module configured to write target data associated with the first application to a first data storage of the computing device; a determination module configured to determine, in response to receiving a request from the second application for accessing the target data, whether the second application is allowed to access the first data storage; as well as A providing module is configured to provide the target data to the second application via the first data storage in response to determining that the second application is allowed to access the first data storage.

17. An electronic device comprising: at least one processing unit; as well as At least one memory, the at least one memory being coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, the instructions causing the electronic device to perform the method according to any one of claims 1 to 15 when executed by the at least one processing unit.

18. A computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, causes the processor to implement the method according to any one of claims 1 to 15.