Data calling method and electronic equipment

By implementing isolated storage and running spaces for applications on electronic devices, the problem of users being unable to identify malicious applications is solved, security risks are reduced, and data isolation and security are ensured.

CN118690352AActive Publication Date: 2024-09-24HUAWEI TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202310359257.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-03-23
Filing Date
2023-03-31
Publication Date
2024-09-24
Estimated Expiration
2043-03-31

AI Technical Summary

Technical Problem

Users cannot identify malicious applications when they are installed on electronic devices, leading to security risks and malicious applications may obtain sensitive information.

Method used

By implementing isolated storage and running spaces for applications on electronic devices, the data of malicious applications is stored in the isolated space, while the data of normal applications is stored in the public storage space. Malicious applications cannot access or tamper with the data of other applications.

Benefits of technology

It effectively reduces the security risks caused by malicious applications and ensures the isolation and security of data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118690352A
    Figure CN118690352A
Patent Text Reader

Abstract

The invention discloses a data calling method and electronic equipment, and when a first application is an isolation application, the electronic equipment stores data of the first application in a first isolation space of the electronic equipment. And when the second application is the normal application, the electronic equipment stores the data of the second application in a public storage space of the electronic equipment, and the public storage space is the public storage space of the data on the electronic equipment. The first application can only call the data in the first isolation space and cannot call the data in the public storage space when calling the data. The second application can only call the data in the public storage space and cannot call the data in the first isolation space when calling the data. Furthermore, the storage space and the operation space of the first application and the second application are isolated, so that the first application cannot access and tamper data of other applications, and potential safety hazards caused by the first application are reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the technical field of electronic devices, and in particular, to a data calling method and an electronic device. Background Art

[0002] Users will install various applications on electronic devices. When users cannot distinguish whether the application to be installed is a malicious application, they may install the malicious application on the electronic device. After the malicious application is accidentally installed on the electronic device by the user, the malicious application will bring some security risks to the electronic device. For example, the malicious application may obtain sensitive information on the electronic device. Summary of the invention

[0003] The data calling method and electronic device provided in the embodiments of the present application reduce the security risks brought by the application.

[0004] In order to achieve the above-mentioned purpose, the embodiment of the present application adopts the following technical solution.

[0005] In the first aspect, an embodiment of the present application provides a data calling method, the execution subject of the method can be an electronic device, or a component located in the electronic device (for example, a chip, a chip system or a processor, etc.). The following description is taken as an example that the execution subject is an electronic device, and the method includes: the electronic device displays a first interface, and the first interface displays a first control for triggering the isolation of the first application. In response to receiving a first operation on the first control, the electronic device determines that the first application is an isolated application. When the electronic device determines that the first application is an isolated application, the electronic device stores the data of the first application in a first isolation space, and the first isolation space is only used to store the data of the first application. The electronic device receives a first request from the first application, and the first request is used to call data. Based on the first request, when the electronic device determines that the first application is an isolated application, it only calls the data in the first isolation space.

[0006] Isolation can be understood as separation or separation. Isolating the first application can be understood as storing or running the first application separately from other applications. That is, the data of the first application is stored separately from the data of other applications, or the running space of the first application is different from the running space of other applications.

[0007] Among them, isolated applications can be understood as applications with lower security, and normal applications can be understood as applications with higher security. The first isolation space can be understood as the exclusive space of the first application when the first application is an isolated application, and the data of other applications will not be stored in the first isolation space. The public storage space can be understood as the public storage space.

[0008] In an embodiment of the present application, when the first application is an isolated application, the data of the first application is stored in the first isolation space of the electronic device. When the second application is a normal application, the data of the second application is stored in the public storage space of the electronic device, and the public storage space is a public storage space for data on the electronic device. When calling data, the first application can only call the data in the first isolation space and cannot access the data in the public storage space. When calling data, the second application can only call the data in the public storage space and cannot access the data in the first isolation space. Furthermore, the storage space and running space of the first application and the second application are isolated, so that the first application cannot access and tamper with the data of other applications, thereby reducing the security risks brought by the first application.

[0009] In one design scheme, an embodiment of the present application provides a data calling method, the method further comprising: the electronic device receives a second request from a second application, the second request being used to call data. Based on the second request, when the electronic device determines that the second application is a normal application, the electronic device calls the data in the target space, wherein the target space does not include the isolated space, and the isolated space includes the first isolated space. The calling data may include at least one of viewing data, modifying data, and deleting data.

[0010] In one design, an embodiment of the present application provides a data calling method, the method further comprising: the electronic device receives a third request from the first application, the third request being used to add data. The electronic device adds data only in the first isolated space when determining that the first application is an isolated application based on the third request.

[0011] In one design, an embodiment of the present application provides a data calling method, the method further comprising: the electronic device receives a fourth request from a fourth application, the fourth request being used to call data. The electronic device calls the data in the target space based on the fourth request when determining that the fourth application is an isolated application, wherein the target space includes the isolated space, and the isolated space includes the fourth isolated space.

[0012] In one design, an embodiment of the present application provides a data calling method, the method further comprising: the electronic device receives a fifth request from the second application, the fifth request being used to add data. The electronic device adds data only in the target space when determining that the second application is a normal application based on the fifth request.

[0013] In one design, the first interface is an installation interface of the first application, and the first control is an isolated installation control; or, the first interface is a setting interface, and the first control is an isolated setting control. That is, when the first application is installed, the first application can be set as an isolated application, or after the first application is installed on the electronic device, the first application can be set as an isolated application by operating the setting application of the electronic device.

[0014] In one design scheme, the first interface is a setting interface, and the first control is an isolation setting control; when the electronic device determines that the first application is an isolated application, the electronic device stores the data of the first application in a first isolation space. Specifically, when the electronic device determines that the first application is an isolated application, the electronic device migrates the data of the first application stored in the public storage space to the first isolation space.

[0015] In one design, in response to a first operation on a first control, the electronic device determines that the first application is an isolated application, which may be: in response to the first operation on the first control, the electronic device configures first marking information for the first application, and the first marking information is used to mark the first application as an isolated application. In this way, the electronic device can store data of the first application in the first isolated space according to the marking information.

[0016] In this way, by marking the first application as an isolated application, the storage space of the isolated application is independent of the storage space of the normal application, and the running space of the isolated application is independent of the running space of the normal application, thereby achieving the purpose of isolating the isolated application from the normal application and improving security.

[0017] In one design, the method further includes: when the electronic device detects an operation that triggers the release of isolation of the first application, migrating the data of the first application in the first isolation space to the public storage space.

[0018] In one design, the first interface is a setting interface, and the first control is also used to trigger the release of the isolation of the first application. The method also includes: in response to a second operation on the first control on the setting interface, the electronic device configures second marking information for the first application, and the second marking information is used to mark the first application as a normal application. The electronic device migrates the data of the first application in the first isolation space to the public storage space.

[0019] In one design solution, the isolation space also includes a second isolation space, and the second isolation space is used to store data of the third application in an isolated state.

[0020] In one design, the first interface is a setting interface, and a second control for triggering the release of isolation is also displayed on the first interface; and further comprising: in response to the operation of the second control, the electronic device clears the marking information of the first application. The electronic device migrates the data of the first application in the first isolated space to the public storage space.

[0021] In this way, by operating the settings application of the electronic device, the first application is marked as an isolated application, so that the storage space of the isolated application is independent of the storage space of the normal application, and the running space of the isolated application is independent of the running space of the normal application, thereby achieving the purpose of isolating the isolated application from the normal application and improving security.

[0022] In this way, by operating the setting application of the electronic device, the first application can be converted between the isolated application and the normal application. The user can flexibly adjust it according to needs, while ensuring security and high practicality.

[0023] In one design, the first isolated space and the public storage space may belong to the same user account. Of course, the first isolated space and the public storage space may also belong to different user accounts.

[0024] In one design solution, the electronic device displays the first interface, which may specifically be: when the electronic device determines that the first application does not meet the trust condition, the electronic device displays the first interface.

[0025] In one design, the first application does not meet the trust condition, including that the download source of the first application does not belong to the download source whitelist, or the download source of the first application belongs to the download source blacklist. The download source whitelist can be understood as a list of allowed download sources, for example, a list of designated malls, such as Huawei Mall. The download source blacklist can be understood as a list of disallowed download sources, for example, websites, other storage devices (such as USB flash drives, mobile hard drives, etc.).

[0026] In one design solution, the first application failing to satisfy the trust condition includes that the trustworthiness of the first application is less than or equal to a first threshold, wherein the trustworthiness of the first application is used to characterize the security of the first application.

[0027] In a second aspect, an embodiment of the present application provides an electronic device, and the electronic device includes: a display module, a determination module, a storage module, a receiving module, and a calling module. Among them, the display module is used to display a first interface, and the first interface displays a first control for triggering the isolation of a first application. The determination module is used to determine that the first application is an isolated application in response to receiving a first operation on the first control. The storage module is used to store the data of the first application in a first isolation space when the first application is determined to be an isolated application, and the first isolation space is only used to store the data of the first application. The receiving module is used to receive a first request from the first application, and the first request is used to call data. The calling module is used to call only the data in the first isolation space when the first application is determined to be an isolated application according to the first request.

[0028] Isolation can be understood as separation or separation. Isolating the first application can be understood as storing or running the first application separately from other applications. That is, the data of the first application is stored separately from the data of other applications, or the running space of the first application is different from the running space of other applications.

[0029] Among them, isolated applications can be understood as applications with lower security, and normal applications can be understood as applications with higher security. The first isolation space can be understood as the exclusive space of the first application when the first application is an isolated application, and the data of other applications will not be stored in the first isolation space. The public storage space can be understood as the public storage space.

[0030] In an embodiment of the present application, when the first application is an isolated application, the data of the first application is stored in the first isolation space of the electronic device. When the second application is a normal application, the data of the second application is stored in the public storage space of the electronic device, and the public storage space is a public storage space for data on the electronic device. When calling data, the first application can only call the data in the first isolation space and cannot access the data in the public storage space. When calling data, the second application can only call the data in the public storage space and cannot access the data in the first isolation space. Furthermore, the storage space and running space of the first application and the second application are isolated, so that the first application cannot access and tamper with the data of other applications, thereby reducing the security risks brought by the first application.

[0031] In one design, the first interface is an installation interface of the first application, and the first control is an isolated installation control; or, the first interface is a setting interface, and the first control is an isolated setting control. That is, when the first application is installed, the first application can be set as an isolated application, or after the first application is installed on the electronic device, the first application can be set as an isolated application by operating the setting application of the electronic device.

[0032] In one design, the receiving module is used to receive a second request from a second application, the second request is used to call data, and the calling module is used to call data in a target space according to the second request when the second application is determined to be a normal application, wherein the target space does not include the isolated space, and the isolated space includes the first isolated space.

[0033] In one design, the electronic device further includes: an adding module; a receiving module for receiving a third request from the first application, the third request being for adding data. The adding module is configured to add data only in the first isolated space when the first application is determined to be an isolated application according to the third request.

[0034] In one design scheme, the first interface is an installation interface of the first application, and the first control is an isolated installation control; or, the first interface is a setting interface, and the first control is an isolated setting control.

[0035] In one design scheme, the first interface is a setting interface, and the first control is an isolation setting control; the storage module is used to: when it is determined that the first application is an isolated application, migrate the data of the first application stored in the public storage space to the first isolation space.

[0036] In one design solution, the determination module is used to: in response to a first operation on a first control, configure first marking information for a first application, where the first marking information is used to mark the first application as an isolated application.

[0037] In this way, by marking the first application as an isolated application, the storage space of the isolated application is independent of the storage space of the normal application, and the running space of the isolated application is independent of the running space of the normal application, thereby achieving the purpose of isolating the isolated application from the normal application and improving security.

[0038] In one design scheme, the electronic device also includes: a migration module; the migration module is used to migrate the data of the first application in the first isolation space to the public storage space when an operation that triggers the release of isolation of the first application is detected.

[0039] In one design scheme, the storage module is used to: in response to a second operation on a first control on a setting interface, configure second marking information for a first application, wherein the second marking information is used to mark the first application as a normal application; and migrate data of the first application in a first isolation space to a public storage space.

[0040] In this way, by operating the setting application of the electronic device, the first application can be converted between the isolated application and the normal application. The user can flexibly adjust it according to needs, while ensuring security and high practicality.

[0041] In one design, the first isolated space and the public storage space may belong to the same user account. Of course, the first isolated space and the public storage space may also belong to different user accounts.

[0042] In one design solution, the isolation space also includes a second isolation space, and the second isolation space is used to store data of the third application in an isolated state.

[0043] In one design solution, the display module is used to display the first interface when it is determined that the first application does not meet the trust condition.

[0044] In one design, the first application does not meet the trust condition, including that the download source of the first application does not belong to the download source whitelist, or the download source of the first application belongs to the download source blacklist. The download source whitelist can be understood as a list of allowed download sources, for example, a list of designated malls, such as Huawei Mall. The download source blacklist can be understood as a list of disallowed download sources, for example, websites, other storage devices (such as USB flash drives, mobile hard drives, etc.).

[0045] In one design solution, the first application failing to satisfy the trust condition includes that the trustworthiness of the first application is less than or equal to a first threshold, wherein the trustworthiness of the first application is used to characterize the security of the first application.

[0046] In a third aspect, an embodiment of the present application provides an electronic device, comprising: one or more processors; and a memory, in which codes are stored; when the codes are executed by the processor, the electronic device executes the method described in the first aspect.

[0047] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which includes computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the method described in the first aspect.

[0048] Among them, the specific implementation methods and corresponding technical effects of each embodiment in the above-mentioned second to fourth aspects can refer to the specific implementation methods and technical effects of the above-mentioned first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 A schematic diagram of an interface installed on an electronic device for XX application;

[0050] Figure 2 This is a schematic diagram of an interface for installing XX application on an electronic device in an embodiment of the present application;

[0051] Figure 3 This is a schematic diagram of an interface for installing XX application on an electronic device in an embodiment of the present application;

[0052] Figure 4 This is a schematic diagram of an interface for installing XX application on an electronic device in an embodiment of the present application;

[0053] Figure 5 This is a schematic diagram of an interface for installing XX application on an electronic device in an embodiment of the present application;

[0054] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0055] Figure 7-1 A schematic diagram of a flow chart of a data calling method provided in an embodiment of the present application;

[0056] Figure 7-2 A schematic diagram of a flow chart of a data calling method provided in an embodiment of the present application;

[0057] Figure 8 A schematic diagram of a scenario for installing an application on an electronic device provided in an embodiment of the present application;

[0058] Fig. 9A schematic diagram of a scenario of a data calling method provided in an embodiment of the present application;

[0059] Fig.10 A schematic diagram of an application management list provided in an embodiment of the present application;

[0060] Fig.11 A schematic diagram of a system external directory in an electronic device provided in an embodiment of the present application;

[0061] Fig.12 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0062] People need to install various applications on electronic devices. The installation packages of these applications can come from the application market, can be downloaded from the web, or can be installed through other storage devices (such as USB flash drives). Therefore, these applications may be malicious applications (such as applications that carry viruses). When the user cannot tell whether the application to be installed is a malicious application, the user may still install the malicious application on the electronic device under the guidance of the application. After the malicious application is installed on the electronic device, the malicious application may bring some security risks to the electronic device. For example, the malicious application may tamper with sensitive data on the electronic device.

[0063] For example, the electronic device may be a mobile phone. Figure 1 A schematic diagram of the interface for XX application installed on a mobile phone. Figure 1 As shown, the mobile phone 100 is displayed as follows Figure 1 The interface 101 shown in FIG. 1 shows a control 102 for canceling the installation and a control 103 for continuing the installation. The interface 101 also shows a security reminder for the application, which may be “Security reminder: the source of the application has not informed whether the application complies with the Huawei Terminal Quality Inspection and Security Review Standards”. The user can determine whether to continue the installation based on the reminder. If the user continues to install the application, the user clicks Figure 1 The control 103 on the interface 101 shown in FIG. 100 is now executing the operation of installing the XX application. If the user does not want to continue installing the application, the user clicks on the Figure 1 The control 102 on the interface 101 is shown. At this time, the mobile phone 100 does not perform the operation of installing the XX application.

[0064] It can be seen that the user cannot tell whether the above XX application is a malicious application, or if the above XX application is a malicious application and the user insists on installing the above XX application, once these applications are installed on electronic devices, they will bring some security risks to the electronic devices, for example, the application may tamper with sensitive data of the electronic device.

[0065] In order to solve the above problems, an embodiment of the present application provides a data calling method, which includes: when the first application is an isolated application, the electronic device stores the data of the first application in the first isolated space of the electronic device. When the second application is a normal application, the electronic device stores the data of the second application in the public storage space of the electronic device. When calling data, the first application can only call the data in the first isolated space and cannot call the data in the public storage space. When calling data, the second application can only call the data in the public storage space and cannot call the data in the first isolated space. Furthermore, the storage space and running space of the first application and the second application are isolated, so that the first application cannot access and tamper with the data of other applications, thereby reducing the security risks brought by the first application.

[0066] In some examples, when the third application is an isolated application, the electronic device stores the data of the third application in a second isolated space of the electronic device. The second isolated space belongs to the same isolation space as the first isolated space. The second isolated space is isolated from the first isolated space. When calling data, the first application can only call data in the first isolated space, and cannot call data in the second isolated space. When calling data, the third application can only call data in the second isolated space, and cannot call data in the first isolated space. Furthermore, the storage space and running space of the first application and the third application are isolated, so that the first application cannot access and tamper with the data of other applications, thereby reducing the security risks brought by the first application.

[0067] The above-mentioned first isolation space can be understood as an exclusive space for the first application, and data of other applications will not be stored in the first isolation space. Among them, space can be understood as storage space and / or running space. The above-mentioned second isolation space can be understood as an exclusive space for the third application, and data of other applications will not be stored in the second isolation space. The above-mentioned public storage space is a public storage space for storing data of normal applications on electronic devices. The normal application can be understood as an application with higher security. The above-mentioned isolated application can be understood as an application with lower security. No specific limitation is made in the embodiments of the present application, and it needs to be determined according to actual conditions during specific implementation.

[0068] In some examples, the electronic device sets the first application as an isolated application. Specifically, the electronic device displays a first interface, and the first interface displays a first control for triggering the isolation of the first application. In response to receiving an operation on the first control, the electronic device sets the first application as an isolated application and stores the data of the isolated application in the first isolation space. Among them, the first interface can be an installation interface or a setting interface, as described below:

[0069] In some examples, the first interface may be an installation interface of the first application, and correspondingly, the first isolation space may be an isolation installation control. Specifically, a data calling method provided in an embodiment of the present application may include: an electronic device displays an installation interface, and an isolation installation control is displayed on the interface. In response to receiving an operation on the isolation installation control, the electronic device stores the data of the first application in the first isolation space. Exemplary, Figure 2 This is a schematic diagram of an interface of an electronic device provided in an embodiment of the present application. Figure 2 As shown, it is assumed that the first application is XX application. The electronic device 100 displays Figure 2 The installation interface 201 of the XX application shown in the figure displays an isolated installation control 204. When the user clicks the control 204, the electronic device 100 receives the user's click operation. In response to the click operation, the electronic device 100 installs the XX application and stores the data of the XX application in the first isolated space of the electronic device 100.

[0070] In some examples, the electronic device installs the first application in isolation on the electronic device, which can be specifically implemented as follows: the electronic device marks the first application as an isolated application, and stores the data of the isolated application in a first isolation space. Optionally, the first isolation space and the public storage space belong to the same user account. Of course, the first isolation space and the public storage space may also belong to different user accounts. In other examples, the electronic device installs the first application in isolation on the electronic device, which can be specifically implemented as follows: the electronic device installs the first application as an isolated application under a designated account, which is different from other accounts, installs non-isolated applications under other accounts, and installs isolated applications under the designated account.

[0071] In some examples, the first interface may be a settings interface, and correspondingly, the first control may be an isolation settings control. Specifically, a data calling method provided by an embodiment of the present application may include: an electronic device displays a settings interface, and an isolation settings control is displayed on the interface. In response to receiving an operation on the isolation settings control, the electronic device stores the data of the first application in the first isolation space. Exemplary, Figure 3 This is a schematic diagram of an interface of an electronic device provided in an embodiment of the present application. Figure 3 As shown, it is assumed that the first application is XX application. The electronic device 100 displays Figure 3 The setting interface 301 of the XX application shown in the figure is an application management interface, which displays various applications installed on the electronic device, such as XX application, MM application, YY application, ZZ application, SS application and KK application. When the user clicks the option 302 corresponding to the XX application, the interface of the electronic device changes from Figure 3 The interface 301 shown jumps to Figure 4The interface 401 shown is the application information interface of the XX application. The isolation setting option 402 is displayed on the interface 401, and the isolation setting control is displayed as unselected. Figure 4 When the option 402 is shown, the electronic device 100 displays Figure 5 Interface 401 is shown, on which the isolation setting control is displayed as being selected. The electronic device 100 receives a click operation from the user. In response to the click operation, the electronic device 100 marks the XX application as an isolated application and migrates the data of the XX application from the public storage space of the electronic device to the first isolated space of the electronic device 100.

[0072] It can be seen that by operating the interface of the electronic device, the first application is marked as an isolated application, and the data of the first application in isolation and non-isolation is stored in different spaces. If the application is a malicious application, the security risks brought by the application can be reduced.

[0073] Among them, the above-mentioned electronic device can be a mobile phone, a tablet computer, a laptop, a notebook computer, an ultra-mobile personal computer (UMPC), a handheld computer, a netbook, a personal digital assistant (PDA), a wearable electronic device and other devices. The specific form of the electronic device is not particularly limited in the embodiments of the present application.

[0074] Figure 6 A structural block diagram of the above electronic device.

[0075] like Figure 6 As shown, the electronic device 100 may include a processor 210, an external memory interface 220, a universal serial bus (USB) interface 230, a charging management module 240, a power management module 241, a battery 242, a memory 250, an antenna 1, a wireless communication module 260, a display screen 270, and a sensor module 280, etc. The sensor module 280 may include a pressure sensor 280A, an acceleration sensor 280B, a touch sensor 280C, etc.

[0076] It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0077] The processor 210 may include one or more processing units, for example, the processor 210 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0078] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.

[0079] The processor 210 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 210 is a cache memory. The memory may store instructions or data that the processor 210 has just used or cyclically used. If the processor 210 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 210, and thus improves the efficiency of the system.

[0080] The charging management module 240 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 240 may receive charging input from a wired charger through the USB interface 230. In some wireless charging embodiments, the charging management module 240 may receive wireless charging input through a wireless charging coil of the electronic device. While the charging management module 240 is charging the battery 242, it may also power the electronic device through the power management module 241.

[0081] The power management module 241 is used to connect the battery 242, the charging management module 240 and the processor 210. The power management module 241 receives input from the battery 242 and / or the charging management module 240, and supplies power to the processor 210, the memory 220, the display screen 270, and the wireless communication module 260. The power management module 241 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 241 can also be set in the processor 210. In other embodiments, the power management module 241 and the charging management module 240 can also be set in the same device.

[0082] The wireless communication function of the electronic device can be implemented through the antenna 1, the wireless communication module 260, the modem processor and the baseband processor.

[0083] Antenna 1 is used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antenna. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.

[0084] The wireless communication module 260 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to electronic devices. The wireless communication module 260 can be one or more devices integrating at least one communication processing module. The wireless communication module 260 receives electromagnetic waves via the antenna 1, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 210. The wireless communication module 260 can also receive the signal to be sent from the processor 210, modulate the frequency of the signal, amplify it, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, the wireless communication module 260 receives application information sent by the server.

[0085] The electronic device implements the display function through a GPU, a display screen 270, and an application processor. The GPU is a microprocessor for image processing, connecting the display screen 270 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 210 may include one or more GPUs that execute program instructions to generate or change display information.

[0086] The display screen 270 is used to display images, videos, etc. The display screen 270 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device may include 1 or N display screens 270, where N is a positive integer greater than 1.

[0087] In some embodiments, display screen 270 displays the following Figure 2 The interface 201 shown in FIG. 201 displays a control 204 for triggering the isolation installation. In some embodiments, the display screen 270 displays the following Figure 3 The interface 301 shown in FIG. 1 shows a control 302 corresponding to the XX application on the interface 301. In some embodiments, the display screen 270 shows the following Figure 4 The interface 401 shown has an isolation option 402 displayed on it.

[0088] The external memory interface 220 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device. The external memory card communicates with the processor 210 through the external memory interface 220 to implement a data storage function. For example, files such as music and videos are saved in the external memory card. In some embodiments, an external storage device is connected through the memory interface 220 to copy the installation package of the application to be installed from the external storage device.

[0089] The memory 250 can be used to store computer executable program codes, which include instructions. The memory 250 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device (such as audio data, a phone book, etc.), etc. In addition, the memory 250 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 210 executes various functional applications and data processing of the electronic device by running instructions stored in the memory 250 and / or instructions stored in a memory provided in the processor.

[0090] The pressure sensor 280A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 280A can be set on the display screen 270. There are many types of pressure sensors 280A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 280A, the capacitance between the electrodes changes. The electronic device determines the intensity of the pressure based on the change in capacitance. When a touch operation acts on the display screen 270, the electronic device detects the touch operation intensity according to the pressure sensor 280A. The electronic device can also calculate the touch position according to the detection signal of the pressure sensor 280A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.

[0091] The acceleration sensor 280B can detect the magnitude of the acceleration of the electronic device in all directions (generally three axes). When the electronic device is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the posture of the electronic device and is applied to applications such as horizontal and vertical screen switching and pedometers.

[0092] The touch sensor 280C is also called a "touch control device". The touch sensor 280C can be set on the display screen 270, and the touch sensor 280C and the display screen 270 form a touch screen, also called a "touch control screen". The touch sensor 280C is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through the display screen 270. In other embodiments, the touch sensor 280C can also be set on the surface of the electronic device, which is different from the position of the display screen 270.

[0093] In some embodiments, the touch sensor 280C detects the user's touch Figure 2 In some embodiments, the touch sensor 280C detects the user's touch on the interface 201 for triggering the isolated mounted control 201. Figure 3 XX on the interface 301 shown in FIG. 302 applies a touch operation to the corresponding control 302. In some embodiments, the touch sensor 280C detects the user's touch operation. Figure 4 and Figure 5 The touch operation of the isolation option 402 on the interface 401 is shown.

[0094] Of course, the electronic device may also include other functional units, which are not limited in the embodiments of the present application.

[0095] In addition, the actions, terms, etc. involved in the various embodiments of the present application can refer to each other without limitation. The names of the messages or parameter names in the messages in the embodiments of the present application are only examples, and other names can also be used in the specific implementation without limitation.

[0096] Figure 7-1 and Figure 7-2 The following is a flow chart of a data calling method provided in an embodiment of the present application. Figure 7-1 and Figure 7-2 As shown, the method can be described in different stages, specifically:

[0097] The first stage is the application installation stage.

[0098] Figure 8 A schematic diagram of a scenario for installing an application in an electronic device provided in an embodiment of the present application. Figure 8As shown, before installing an application (hereinafter referred to as application) on the electronic device 100, the user can first download the installation package of the application. For example: download the installation package of the application from the application market, or the user can copy the installation package of the application from other storage devices, or the user can download the installation package of the application from the website. The embodiment of the present application does not limit the implementation method of downloading the installation package of the application. After downloading the installation package of the application, the user triggers the installation operation. At this time, the electronic device executes S710, specifically:

[0099] S710. The electronic device displays a first interface of a first application, where a first control for triggering isolation of the first application is displayed on the first interface.

[0100] Isolation can be understood as separation or separation. Isolating the first application can be understood as storing or running the first application separately from other applications. That is, the data of the first application is stored separately from the data of other applications, or the running space of the first application is different from the running space of other applications.

[0101] In other words, the data of the first application in an isolated state is located in the first isolation space of the electronic device, and the data of the first application in a non-isolated state is located in the public storage space of the electronic device, and the first isolation space is different from the public storage space.

[0102] The data of the first application may include registration data, installation data, user usage data and other data. At different stages, the data of the first application includes different contents. For example, at the installation stage, the data of the first application may include registration data. Of course, the data of the first application may also include installation data. At the usage stage, the data of the first application may include registration data and user usage data. Of course, the embodiments of the present application are not limited to this.

[0103] The first isolation space may refer to the data storage space of the application in an isolated state. The first isolation space may also be the storage space and running space of the first application in an isolated state. That is to say, the data storage spaces of various isolated applications are different. The public storage space may refer to the public storage space of data on the electronic device, or the data storage space of the application in a non-isolated state. Optionally, the public storage space may also be understood as the data storage space of the first application in a non-isolated state, or the data storage space of all applications in a non-isolated state.

[0104] The first interface may be an installation interface of the application, and the first control may be a control for triggering isolated installation, or a control for triggering installation and isolated operation.

[0105] The display position of the first control on the first interface is not specifically limited. For example, the first control can be located in a side area of ​​the first interface, in which the first control is arranged side by side with other controls.

[0106] Exemplarily, the first control may be an "isolated installation" control. The control is used for the user to trigger an isolated installation operation. Exemplarily, the first interface displayed by the electronic device may be Figure 2 In the interface 201 shown, the first control may be Figure 2 2. The isolated installation control 204 on the interface 201 is shown in FIG.

[0107] In some examples, the electronic device can directly display the first interface, or the electronic device can display the first interface under certain conditions. For example, when the electronic device determines that the first application does not meet the trust condition, the electronic device displays the first interface. The trust condition may include that the download source of the first application belongs to the download source whitelist, or the download source of the first application does not belong to the download source blacklist, or the credibility of the first application is greater than the first threshold. The details are as follows:

[0108] In a specific achievable manner, when the electronic device determines that the download source of the first application does not belong to the download source whitelist, the electronic device displays the first interface. The download source whitelist may be pre-stored by the electronic device, and the download source whitelist may refer to a list of download sources allowed by the electronic device, for example, the allowed download sources include a designated application store, such as Huawei Store.

[0109] In another specific implementation, when the electronic device determines that the download source of the first application belongs to the download source blacklist, the electronic device displays the first interface. The download source blacklist may be pre-stored by the electronic device, and the download source blacklist may refer to a list of download sources that are not allowed by the electronic device. For example, the not allowed download sources may include websites, other storage devices (such as USB flash drives, mobile hard disks), etc.

[0110] In another specific implementation, when the electronic device determines that the credibility of the first application is greater than the first threshold, the electronic device determines that the first application is credible, and at this time, the electronic device displays the second interface, and the first control for triggering the isolated installation is not displayed on the second interface. The first threshold can be a set value, which is not specifically limited here; when the electronic device determines that the credibility of the first application is less than or equal to the first threshold, the electronic device determines that the first application is not credible, and at this time, the electronic device displays the first interface.

[0111] Exemplarily, when the electronic device determines that the first application meets the trust condition, the electronic device displays the following Figure 1The interface 101 shown in FIG. 1 shows a control 102 for canceling the installation operation and a control 103 for triggering the continued installation. When the electronic device determines that the first application does not meet the trust condition, the electronic device displays the following Figure 2 The interface 201 shown displays a control 202 for canceling the installation operation, a control 203 for triggering continued installation, and a control 204 (ie, the first control mentioned above) for triggering isolated installation.

[0112] In a specific implementable manner, the electronic device may generate a prompt message based on the credibility of the first application, and the prompt message is displayed on the interface of the electronic device. For example, when the electronic device determines that the first application does not meet the trust condition, the electronic device generates prompt message one, and the prompt message one may be "Malicious application found" and "Isolated application installation recommended", and the prompt message one may be displayed on the first interface. When the electronic device determines that the first application meets the trust condition, the electronic device generates prompt message two, and the prompt message two may be "Security reminder" and "Normal application installation recommended", and the prompt message two may be displayed on the second interface.

[0113] In a specific implementable manner, the credibility of the first application can be determined based on the source of the first application. Exemplarily, the electronic device determines the source of the first application. When the electronic device determines that the first application originates from the application market, the electronic device determines that the credibility of the first application is greater than a first threshold, so the first application is credible; when the electronic device determines that the first application originates from a website or other storage device, the electronic device determines that the credibility of the first application is less than or equal to the first threshold, so the first application is not credible.

[0114] In a specific implementable manner, the source of the first application can be determined according to the caller of the electronic device's installer. Exemplarily, when the caller of the electronic device's installer is an installation module of an application market, the electronic device determines that the first application originates from the application market; when the caller of the electronic device's installer is a file manager, the electronic device determines that the first application originates from other storage devices; when the caller of the electronic device's installer is a third-party application, the electronic device determines that the first application originates from a third-party provider such as a web page.

[0115] S720. In response to receiving an operation on the first control, the electronic device determines that the first application is an isolated application, and stores data of the first application in a first isolated space.

[0116] The operation may include a click operation or a press operation, etc. The click operation may include a single-click operation or a multi-click operation, which is not specifically limited in the embodiment of the present application.

[0117] After receiving the user's operation on the first control, the electronic device marks the first application as an isolated application. At this time, the electronic device stores the data of the first application in the first isolated space. The following is a detailed description of the specific scenario:

[0118] In the embodiment of the present application, S720 can be implemented in the following manner:

[0119] In a specific implementation manner, S720 may specifically be:

[0120] S721. In response to an operation on a first control, the electronic device configures first marking information for a first application, where the first marking information is used to mark the first application as an isolated application.

[0121] The first interface is an installation interface, and the first control is an isolated installation control. Specifically, when the user clicks the isolated installation control, the application management module of the electronic device marks the first application as an isolated application in the application management list by adding tag information. Based on this, the isolated application can have the following features when running: Fig. 9 The isolated application running space shown. The marking information can be presented in the application management list. The marking information can be Fig.10 The marking symbol shown in can also be a field, such as a bool type field. For example, in the application management list, the default field of a normal application is false, and the default field of an isolated application is true. Of course, it is not limited to this. The marking information can also be presented as a positive integer in the application management list, and the value of the positive integer is associated with the installation time of the application, or in other words, the value of the positive integer can be used to provide timing information for uninstalling the application.

[0122] S722. The electronic device stores data of the first application in the first isolation space according to the first marking information.

[0123] Exemplarily, if the first marking information of the first application is true, the electronic device stores the data of the first application in the first isolation space; if the second marking information of the first application is false, the electronic device stores the data of the first application in the public storage space.

[0124] For example, Fig.11As shown, the electronic device is in the system's external directory (such as / storage / emulated / <User_id> ) configures an isolation space (such as / / Detention Area( / APP Detained / )). The isolation space may include a first isolation space. When the first application is downloaded and installed, it is marked as an isolated application, and the system of the electronic device creates an application directory in the first isolation space, such as / storage / emulated / 0 / Detained / <pkg1>.

[0125] In some examples, the first isolation space and the public storage space may be different spaces under the user space of the same account. Alternatively, the first isolation space may be the user space of the first account, and the public storage space may be the user space of the second account, and the second account is different from the first account. The electronic device may have multiple accounts, each of which corresponds to a storage and / or running space. That is, the storage space of each account is independent of each other, and the running space of each application in each storage space is also independent of each other.

[0126] Of course, in the first stage, if the first application is normally installed on the electronic device, then in the second stage, the first application can be set as an isolated application. Afterwards, the first application can also be set as a normal application. The details are as follows:

[0127] The second stage is the application setting stage. Figure 7-2 As shown:

[0128] S730: The electronic device displays a second interface, where a second control for triggering isolation is displayed on the second interface.

[0129] The second interface may be a setting interface of the application, and of course, may also be other interfaces of the application, such as a user interface of the application, which is not specifically limited in the embodiments of the present application.

[0130] Exemplarily, after the electronic device 100 installs the first application, the user can use the setting application on the electronic device to set the isolation of the first application. Exemplarily, when the user clicks the icon of the setting application on the electronic device, the electronic device starts the setting application and displays the interface of the setting application, which may display the application management control. When the user clicks the application management control, the electronic device 100 displays Figure 3 The interface 301 shown is an application management interface, which displays information of various applications (such as XX application, MM application, YY application, ZZ application, SS application and KK application). The XX application is the first application. When the user clicks on the information 302 of the XX application, the electronic device 100 displays Figure 4 The interface 401 shown has an isolation option 402 displayed thereon.

[0131] like Figure 4 As shown, the isolation option 402 on the electronic device display interface 401 is not selected, indicating that the first application is a normal application. At this time, the mark information of the first application is false, and the data of the first application is stored in the public storage space of the electronic device. Figure 4 When the isolation option 402 is shown, the state of the isolation option 402 is determined by Figure 4 The unchecked state shown changes to Figure 5 At this time, the electronic device will modify the mark information of the first application, and the mark information becomes true, and the first application is converted from a normal application to an isolated application.

[0132] The second control may be Figure 4 The isolation option 402 shown in FIG. 4 is in an unselected state. Of course, the embodiment of the present application is not limited to this.

[0133] S740. In response to receiving an operation on the second control, the electronic device determines that the first application is an isolated application, and stores data of the first application in a first isolated space.

[0134] Exemplarily, the second control is Figure 4 402. When the user clicks Figure 4 When option 402 is shown, the isolation option 402 is presented Figure 5 The selected state is shown in the figure. Fig.11 As described above, ① the electronic device can migrate the data of the first application (such as APP1) to the first isolated space, such as / storage / emulated / 0 / Detained / <pkg1>.

[0135] Of course, you can also set the first application as a normal application on the second interface, such as Figure 7-2 As shown, the details are as follows:

[0136] The data calling method provided in the embodiment of the present application also includes: when the electronic device detects an operation that triggers the release of isolation of the first application, migrating the data of the first application in the first isolation space to the public storage space.

[0137] Exemplarily, the operation of triggering the release of the isolation of the first application may include an operation on a setting interface. Specifically, it may be implemented as follows:

[0138] S750. In response to an operation on the second control, the electronic device migrates the data of the first application in the first isolated space to the public storage space.

[0139] Exemplarily, the second control is Figure 5 The quarantine option 402 is shown in a selected state.

[0140] In a specific implementation, Figure 7-2 As shown, S750 can be specifically implemented as follows:

[0141] S751. In response to an operation on a second control, the electronic device configures second tag information for the first application.

[0142] Continuing with the above example, when the second marking information of the first application becomes true, the electronic device migrates the data of the first application from the first isolated space to the public storage space.

[0143] S752. The electronic device migrates the data of the first application in the first isolated space to the public storage space.

[0144] For example, Figure 5 As shown, when the user clicks Figure 5 When option 402 is shown, the isolation option 402 is presented Figure 4 The unselected state is shown. Fig.11 As shown, the electronic device can migrate the data of the first application from the isolated space directory to the public storage space under the external directory, such as / storage / emulated / 0 / Android / data / <pkg1>.

[0145] The third stage is the application and usage stage.

[0146] As mentioned above, after the data of the first application is stored in the first isolated space, the first application can modify / delete / access / add data of other applications, which can refer to document management applications, such as file managers, clones, and other applications. The other applications can also refer to cross-space applications, such as media library applications. The first application can also modify / delete / access / add data on the electronic device. The following is a detailed description of each case:

[0147] Case 1: The first application requests to call / add data.

[0148] In some examples, such as Figure 7-1 As shown, the data calling method provided in the embodiment of the present application also includes:

[0149] S760: The electronic device receives a first request from a first application, where the first request is used to call data.

[0150] Invoking data may be understood as accessing data, modifying data, or deleting data, etc. The first request carries identification information of the first application.

[0151] S770. When the electronic device determines that the first application is an isolated application based on the first request, the electronic device only calls the data in the first isolated space.

[0152] In a specific implementation, the electronic device can search for the tag information of the first application according to the first request, and the electronic device determines that the tag information of the first application marks the first application as an isolated application. At this time, the electronic device only calls the data in the first isolated space. That is, when the electronic device determines that the first application is an isolated application, the electronic device only calls the data in the first isolated space. Exemplarily, the first isolated space is storage / emulated / 0 / Detained / <pkg1>, the electronic device only calls storage / emulated / 0 / Detained / <pkg1>The data in.

[0153] Exemplarily, it is assumed that the first application calls data through the second application, and the normal application can also call data through the second application. The second application can be understood as a cross-space application, such as a media library application. When the first application requests to call the first data through the media library application, the electronic device determines that the space to which the first data belongs is different from the first isolated space application as an isolated application. At this time, the electronic device changes the access address of the first data and changes it to the first application calling the data in the first isolated space. In this way, the first application accesses the data in the isolated space of the first application through the media library application, and cannot access the data of other applications. For example, the first application is a photo editing application, the media library application is a gallery, and the normal application is a camera. When the user operates the interface of the photo editing application, the photo editing application needs to access the pictures in the gallery. At this time, the electronic device displays the interface of the gallery, on which only the pictures of the photo editing application are displayed, and the pictures collected by the camera are not displayed. In this way, the photo editing application can be relieved from accessing or tampering with the pictures collected by the camera, thereby improving security.

[0154] In some examples, the data calling method provided by the embodiments of the present application further includes:

[0155] S780. The electronic device receives a third request from the first application, where the third request is used to add data.

[0156] S790. When the electronic device determines that the first application is an isolated application based on the third request, the electronic device adds data only in the first isolated space.

[0157] In a specific implementation, the electronic device can search for the tag information of the first application according to the third request, and the electronic device determines that the tag information of the first application marks the first application as an isolated application. At this time, the electronic device only adds data in the first isolated space. That is, when the electronic device determines that the first application is an isolated application, the electronic device only adds data in the first isolated space. Exemplarily, the first isolated space is storage / emulated / 0 / Detained / <pkg1>, the electronic device is only in storage / emulated / 0 / Detained / <pkg1>Add data in .

[0158] In the embodiment of the present application, when the first application is an isolated application, when the first application requests to call data, it can only call the data in the first isolated space, and cannot call the data of other applications. In this way, it can reduce the application's access to or tampering with data in other spaces on the electronic device, and improve the security of data.

[0159] Case 2: The second application requests to call / add data.

[0160] In some examples, the data calling method provided by the embodiments of the present application further includes:

[0161] S761. The electronic device receives a second request from a second application, where the second request is used to call data.

[0162] The second application may be understood as an application other than the first application.

[0163] Invoking data may be understood as accessing data, modifying data, or deleting data, etc. The second request carries identification information of the second application.

[0164] S771. When the electronic device determines that the second application is a normal application based on the second request, it calls the data in the target space, wherein the target space does not include the isolation space, and the isolation space includes the first isolation space.

[0165] In a specific implementation, the electronic device can search for the tag information of the second application according to the second request, and the electronic device determines that the tag information of the second application marks the second application as a normal application. At this time, the electronic device calls the data in the target space. That is, when the electronic device determines that the second application is a normal application, the electronic device calls the data in the target space. Exemplarily, if the target space is / storage / emulated / 0 / Android / data, the electronic device calls the data in / storage / emulated / 0 / Android / data.

[0166] In some embodiments, illustratively, the second application can be a file management application, such as a clone application. The file management application is used to copy application data on an electronic device to other devices. In this way, the second application can copy the data of the first application and store the data in the first isolation space on other devices. The second application can also copy the data of normal applications and store the data in a public storage space on other devices. That is to say, after being called by the second application, the data on the electronic device is migrated to other devices, while the isolated application and the normal application on the other devices remain isolated. Of course, there may be other situations, which are not listed one by one in the embodiments of the present application.

[0167] In some examples, the data calling method provided by the embodiments of the present application further includes:

[0168] S781. The electronic device receives a fourth request from the second application, where the fourth request is used to add data.

[0169] S791. When the electronic device determines that the second application is a normal application based on the fourth request, the electronic device only adds data in the target space.

[0170] In a specific implementable manner, the electronic device can search for the tag information of the second application according to the fourth request, and the electronic device determines that the tag information of the second application marks the second application as a normal application. At this time, the electronic device only adds data in the target space. That is, when the electronic device determines that the second application is a normal application, the electronic device only adds data in the target space. Exemplarily, if the target space is / storage / emulated / 0 / Android / data, the electronic device only adds data in / storage / emulated / 0 / Android / data.

[0171] Unless otherwise specified or there is no logical conflict, the terms and / or descriptions between the various embodiments of the present application are consistent and can be referenced to each other. The technical features in different embodiments can be combined to form new embodiments based on their internal logical relationships.

[0172] The present application also provides an electronic device for implementing any of the above methods. For example, an electronic device is provided that includes a unit (or means) for implementing each step performed by the electronic device in the above method S710-S790. Fig.12 , which is a schematic diagram of an electronic device provided in an embodiment of the present application, the electronic device 100 may include: a display module 1201, a determination module 1204, a storage module 1202, a receiving module 1205 and a calling module 1203, wherein,

[0173] The display module 1201 is used to display a first interface, and the first interface displays a first control for triggering the isolation of the first application. Exemplarily, the display module 1201 can execute the above steps S710 and S730. The display module 1201 can be Figure 6 Display screen 270 shown in .

[0174] The determination module 1204 is used to determine that the first application is an isolated application in response to receiving the first operation on the first control. Exemplarily, the determination module 1204 can execute the above step S721. The determination module 1204 can be Figure 6 The processor 210 shown in .

[0175] The storage module 1202 is used to store the data of the first application in the first isolation space when the first application is determined to be an isolated application. The first isolation space is only used to store the data of the first application. Exemplarily, the storage module 1202 can execute the above steps S720, S740, and S750. The storage module 1202 can be Figure 6 The memory 250 shown in .

[0176] The receiving module 1205 is used to receive a first request from a first application, where the first request is used to call data. Exemplarily, the receiving module 1205 may execute the above-mentioned step S760. The receiving module 1205 may be Figure 6 The processor 210 shown in .

[0177] The calling module 1203 is used to call only the data in the first isolated space according to the first request when the first application is determined to be an isolated application. Exemplarily, the calling module 1203 can execute the above step S770. The calling module 1203 can be Figure 6 The processor 210 shown in .

[0178] In a specific implementation, the receiving module 1205 is used to receive a second request from a second application, where the second request is used to call data. Exemplarily, the receiving module 1205 may execute the above step S761.

[0179] The calling module 1203 is used to call the data in the target space according to the second request when determining that the second application is a normal application, wherein the target space does not include the isolated space and the isolated space includes the first isolated space. Exemplarily, the calling module 1203 may execute the above step S771.

[0180] In some implementations, the electronic device 100 further includes: an adding module 1206; a receiving module 1205 for receiving a third request of the first application, the third request being for adding data. Exemplarily, the receiving module 1205 may execute the above step S780. The adding module is configured to add data only in the first isolation space when the first application is determined to be an isolated application according to the third request. Exemplarily, the adding module 1206 may execute the above step S790.

[0181] In a specific implementation manner, the first interface is an installation interface of the first application, and the first control is an isolated installation control; or, the first interface is a setting interface, and the first control is an isolated setting control.

[0182] In a specific implementation, the first interface is a setting interface, and the first control is an isolation setting control; the storage module 1202 is used to: when it is determined that the first application is an isolated application, migrate the data of the first application stored in the public storage space to the first isolation space.

[0183] In a specific implementation, the determination module 1204 is used to: in response to a first operation on a first control, configure first marking information for a first application, where the first marking information is used to mark the first application as an isolated application.

[0184] In some implementations, the electronic device 100 further includes: a migration module 1207; the migration module 1207 is used to migrate the data of the first application in the first isolation space to the public storage space when an operation that triggers the release of isolation of the first application is detected.

[0185] In a specific implementation, the storage module 1202 is used to: in response to a second operation on the first control on the setting interface, configure second marking information for the first application, the second marking information being used to mark the first application as a normal application; and migrate the data of the first application in the first isolation space to the public storage space.

[0186] In a specific implementation, the isolation space also includes a second isolation space, and the second isolation space is used to store data of the third application in an isolated state.

[0187] In a specific implementation, the display module 1201 is used to: display the first interface when it is determined that the first application does not meet the trust condition.

[0188] In a specific implementation manner, the first application does not meet the trust condition including that the download source of the first application does not belong to the download source whitelist, or the download source of the first application belongs to the download source blacklist.

[0189] In a specific implementation manner, the first application does not meet the trust condition includes that the trustworthiness of the first application is less than or equal to a first threshold, wherein the trustworthiness of the first application is used to characterize the security of the first application.

[0190] In an embodiment of the present application, when the first application is an isolated application, the electronic device stores the data of the first application in the first isolated space of the electronic device. When the second application is a normal application, the electronic device stores the data of the second application in the public storage space of the electronic device, and the public storage space is a public storage space for data on the electronic device. When calling data, the first application can only call data in the first isolated space and cannot call data in the public storage space. When calling data, the second application can only call data in the public storage space and cannot call data in the first isolated space. Furthermore, the storage space and running space of the first application and the second application are isolated, so that the first application cannot access and tamper with the data of other applications, thereby reducing the security risks brought by the first application.

[0191] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.

[0192] An embodiment of the present application also provides a computer-readable storage medium, including instructions, which, when executed on a computer, enable the computer to execute any of the above methods.

[0193] The embodiment of the present application also provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute any of the above methods.

[0194] An embodiment of the present application also provides a chip, which includes a processor and an interface circuit, the interface circuit is coupled to the processor, the processor is used to run a computer program or instruction to implement the above method, and the interface circuit is used to communicate with other modules outside the chip.

[0195] All or part of any features or steps in the embodiments of the present application can be freely combined, and the combined technical solutions are also within the scope of the present application.

[0196] In the description of this application, unless otherwise specified, " / " means "or", for example, A / B can mean A or B. The "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, "at least one" means one or more, and "plurality" means two or more. The words "first", "second", etc. do not limit the quantity and execution order, and the words "first", "second", etc. do not necessarily limit them to be different.

[0197] In the description of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0198] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0199] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0200] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0201] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0202] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0203] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims

1. A data calling method, applied to an electronic device, characterized in that: The method comprises: Displaying a first interface, where a first control for triggering isolation of a first application is displayed on the first interface; In response to receiving a first operation on the first control, determining that the first application is an isolated application; When it is determined that the first application is an isolated application, storing data of the first application in a first isolated space, where the first isolated space is only used to store data of the first application; receiving a first request from the first application, where the first request is used to call data; According to the first request, when it is determined that the first application is an isolated application, only data in the first isolation space is called.

2. The method according to claim 1, characterized in that Also includes: receiving a second request from a second application, wherein the second request is used to call data; According to the second request, when it is determined that the second application is a normal application, data in a target space is called, wherein the target space does not include an isolated space, and the isolated space includes the first isolated space.

3. The method according to claim 1 or 2, characterized in that: Also includes: receiving a third request from the first application, where the third request is for adding data; According to the third request, when it is determined that the first application is an isolated application, data is added only in the first isolation space.

4. The method according to any one of claims 1 to 3, characterized in that The first interface is an installation interface of the first application, and the first control is an isolated installation control; or, the first interface is a setting interface, and the first control is an isolated setting control.

5. The method according to claim 4, characterized in that The first interface is the setting interface, and the first control is an isolation setting control; When determining that the first application is an isolated application, storing data of the first application in the first isolated space includes: When it is determined that the first application is an isolated application, data of the first application stored in the public storage space is migrated to the first isolated space.

6. The method according to any one of claims 1 to 5, characterized in that In response to the first operation on the first control, determining that the first application is an isolated application includes: In response to a first operation on the first control, first marking information is configured for the first application, where the first marking information is used to mark the first application as an isolated application.

7. The method according to claim 1, characterized in that The method further comprises: When an operation that triggers the release of isolation of the first application is detected, data of the first application in the first isolation space is migrated to a public storage space.

8. The method according to claim 2, characterized in that: The isolation space also includes a second isolation space, and the second isolation space is used to store data of the third application in isolation.

9. The method according to any one of claims 1 to 8, characterized in that The displaying of the first interface includes: When it is determined that the first application does not meet the trust condition, the first interface is displayed.

10. The method according to claim 9, characterized in that The first application does not meet the trustworthy condition including that the download source of the first application does not belong to the download source whitelist, or that the download source of the first application belongs to the download source blacklist.

11. The method according to claim 9 or 10, characterized in that: The first application does not satisfy the trust condition including that the trustworthiness of the first application is less than or equal to a first threshold, wherein the trustworthiness of the first application is used to characterize the security of the first application.

12. An electronic device, characterized in that: The electronic device comprises: a display module, a determination module, a storage module, a receiving module and a calling module, wherein: The display module is used to display a first interface, where a first control for triggering isolation of a first application is displayed on the first interface; The determination module is configured to determine, in response to receiving a first operation on the first control, that the first application is an isolated application; The storage module is used to store the data of the first application in a first isolation space when it is determined that the first application is an isolated application, and the first isolation space is only used to store the data of the first application; The receiving module is used to receive a first request from the first application, where the first request is used to call data; The calling module is used to call only the data in the first isolation space when it is determined that the first application is an isolated application according to the first request.

13. The electronic device according to claim 12, characterized in that: The receiving module is used to receive a second request from a second application, where the second request is used to call data; The calling module is used to call data in a target space according to the second request when it is determined that the second application is a normal application, wherein the target space does not include an isolated space and the isolated space includes the first isolated space.

14. The electronic device according to claim 12 or 13, characterized in that: Also includes: Add modules; The receiving module is used to receive a third request from the first application, where the third request is used to add data; The adding module is used to add data only in the first isolation space when it is determined that the first application is an isolated application according to the third request.

15. The electronic device according to any one of claims 12 to 14, characterized in that: The first interface is an installation interface of the first application, and the first control is an isolated installation control; or, the first interface is a setting interface, and the first control is an isolated setting control.

16. The electronic device according to claim 15, characterized in that: The first interface is the setting interface, the first control is an isolation setting control; and the storage module is used for: When it is determined that the first application is an isolated application, data of the first application stored in the public storage space is migrated to the first isolated space.

17. The electronic device according to any one of claims 12 to 16, characterized in that: The determination module is used for: In response to a first operation on the first control, first marking information is configured for the first application, where the first marking information is used to mark the first application as an isolated application.

18. The electronic device according to claim 12, characterized in that: The electronic device further comprises: a migration module; The migration module is used to migrate the data of the first application in the first isolation space to the public storage space when an operation that triggers the release of isolation of the first application is detected.

19. The electronic device according to claim 13, characterized in that: The isolation space also includes a second isolation space, and the second isolation space is used to store data of the third application in isolation.

20. The electronic device according to any one of claims 12 to 19, characterized in that: The display module is used for: When it is determined that the first application does not meet the trust condition, the first interface is displayed.

21. The electronic device according to claim 20, characterized in that: The first application does not meet the trustworthy condition including that the download source of the first application does not belong to the download source whitelist, or that the download source of the first application belongs to the download source blacklist.

22. The electronic device according to claim 20 or 21, characterized in that: The first application does not satisfy the trust condition including that the trustworthiness of the first application is less than or equal to a first threshold, wherein the trustworthiness of the first application is used to characterize the security of the first application.

23. An electronic device, characterized in that: The electronic device comprises: one or more processors; and a memory, wherein codes are stored in the memory; when the codes are executed by the processor, the electronic device executes the method according to any one of claims 1 to 11.

24. A computer-readable storage medium, characterized in that: The method comprises computer instructions, which, when executed on an electronic device, cause the electronic device to execute the method as claimed in any one of claims 1 to 11.

Citation Information

Patent Citations

  • Isolation method and isolation device for application program

    CN106778291A

  • Multi-task isolation method and device

    CN107103234A

  • Service data isolation method and system

    CN115576916A

  • Computer device and method for isolating untrusted content

    GB201706566D0

  • Application Sandbox to Detect, Remove, and Prevent Malware

    US20080016339A1