Application program dual-opening method and device

An application program and program technology, applied in the field of application program double-opening method and device, capable of solving problems such as hidden dangers of user data security

Active Publication Date: 2016-10-12
BEIJING XIAOMI MOBILE SOFTWARE CO LTD
6 Cites 27 Cited by

AI-Extracted Technical Summary

Problems solved by technology

Since the second resource directory is allocated separately for the dual-open application, and the operation authority is set for the second resource directory by using the identification of the dual-open application and the sub-account, that is to say, only the dual-open application has the authority to th...
View more

Method used

[0095] By receiving a program call request with a specified identifier sent by a third-party application program, a selection prompt box is displayed, so that the user can select one of the original application program and the dual-open application program to call, which improves the flexibility of the call. When using the selection prompt box to select and call the original application program, call the original process involved in the original application program, and the original process uses the data in the first resource directory; when using the selection prompt box to select and call the dual-open application program, call The dual-opening process involved in the dual-opening application program uses the data in the second resource directory to realize the effect of invoking the application program corresponding to the user's selection according to the user's selection.
[0117] After the sub-account is opened, in the process loading space of the sub-account, only the system process that the application installed in the sub-account needs to be called is allowed to be opened. By allowing only the system processes that need to be invoked by the applications installed in the sub-account to be started, the occupation of system resources by system processes that are not associated with dual-open applications in the process loading space of the sub-account is released.
[0152] Optionally, by controlling the dual-open application progr...
View more

Abstract

The invention discloses an application program dual-opening method and device, and belongs to the field of electronic devices. The application program dual-opening method includes: installing a designated original application program in a system through a primary account, allocating a first resource catalog to the original application program, and setting the operation authorization for the first resource catalog through an identification of the original application program and the primary account; and installing a dual-opening application program identical to the original application program in the system through a secondary account, allocating a second resource catalog to the dual-opening application program, and setting the operation authorization for the second resource catalog through an identification of the dual-opening application program and the secondary account, wherein the original application program and the dual-opening application program are permitted to open at the same time, and the identification of the original application program and the identification of the dual-opening application program are identical. The application program dual-opening method and device can solve the problem that user data has potential risks in the relevant technologies, and can improve the security of the user data.

Application Domain

Program initiation/switchingResource allocation

Technology Topic

Data securityAuthorization +5

Image

  • Application program dual-opening method and device
  • Application program dual-opening method and device
  • Application program dual-opening method and device

Examples

  • Experimental program(1)

Example Embodiment

[0039] The exemplary embodiments will be described in detail here, and examples thereof are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with the present disclosure. Rather, they are only examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0040] In the smart system of smart electronic devices, such as Android 5.0, support for multiple accounts is realized. In an intelligent system that supports multiple accounts, multiple accounts of the system are allowed to log in at the same time, and users can use different accounts to install applications separately, and the intelligent system configures independent space for installing applications for each account. Therefore, in order to achieve dual opening of the application, the two accounts supported by the system can be used to install the same application respectively. Generally speaking, the user can specify the application that needs to be dual-opened. For example, the user can specify the application that needs to be dual-opened from the application market provided by the system. After the system obtains the application specified by the user that needs to be dual-opened, it uses a different account to install the application in the system. When a dual-open setting is required for a certain application, the application installed with the main account is called the original application, and the application installed with the sub-account is called the dual-open application.
[0041] figure 1 It is a flowchart of a method for dual opening of applications according to an exemplary embodiment. The method for dual opening of applications is applied to an electronic device. The system of the electronic device supports the setting of a main account and a sub-account. The method for dual opening of applications It can include the following steps.
[0042] In step 101, use the master account to install a designated original application in the system, allocate a first resource directory for the original application, and use the identity of the original application and the master account to set operation permissions for the first resource directory. A resource directory is used to store related information required by the original application installed by the master account when running.
[0043] Use the master account to install the designated original application program in the system, and allocate a first resource directory for the original application program. The first resource directory is used to store relevant information required by the original application program when the original application program runs.
[0044] In order to ensure the data security of the first resource directory, the original application identifier and the master account are used to set the operation authority for the first resource directory. The data in the first resource directory allows only the applications with the identifier opened by the master account to call . It should be noted that, usually for the same application, one account can only install the application once.
[0045] In other words, only the original application has the operation authority to the first resource directory. The operation authority mentioned here includes: reading the stored data in the first resource directory, storing data in the first resource directory, and Delete data in the resource directory, etc.
[0046] In step 102, use the sub-account to install the same dual-open application as the original application in the system, allocate a second resource directory for the dual-open application, and use the identity of the dual-open application and the sub-account to set operations for the second resource directory Permission, the second resource directory is used to store related information required when the dual-open application installed by the sub-account runs.
[0047] Use the sub-account to install the same dual-open application in the system as the original application. For example, if the main account is used to install the original program A in the system, the installation directory of the original program A is obtained, and the dual-open application A is installed virtually in the system using the sub-account.
[0048] A second resource directory is allocated to the dual-open application, and the second resource directory is used to store related information required by the dual-open application when the application is running.
[0049] Since the original application and the dual-open application are the same application, the identity of the original application and the dual-open application is the same, so in order to ensure the data security of the second resource directory, the dual-open application ID and the sub-account are set as the second resource The directory sets operation permissions, and the data in the second resource directory allows only applications with the identifier opened by the sub-account to be called.
[0050] In other words, only the dual-open application has the operation authority for the second resource directory. The operation authority mentioned here includes: reading the stored data in the first resource directory, storing data in the first resource directory, and Deletion of data in a resource directory, etc.
[0051] Among them, the original application and the dual-open application are allowed to be opened at the same time. The opening mentioned here includes background operation and foreground operation. The original application and the dual-open application are allowed to be opened at the same time, including at least the following situations: original application and dual-open The application is running in the background at the same time; or, the original application and the dual-opening application are running in the foreground at the same time, that is, both are displayed on the same user interface; or the original application is running in the foreground and the dual-opening application is running in the background; or, the dual-opening application is running in the background. The application runs in the background and the original application runs in the foreground.
[0052] Optionally, the electronic device detects whether the corresponding original application and the dual-open application have been successfully installed in the system after obtaining the application specified by the user that needs to be installed with dual-opening. If the original application and the dual-open application are not successfully installed in the system, step 101 and step 102 are executed. If the original application has been successfully installed in the system, but the dual-open application has not been installed, step 102 is directly executed. If the system has successfully installed the dual-open application, but the original application is not installed, only perform step 101, use the master account to install the same original application as the dual-open application in the system, and allocate a second resource directory for the dual-open application , Use the identifier of the dual-open application and the sub-account to set the operation authority for the second resource directory, and the second resource directory is used to store the relevant information required by the dual-open application installed by the sub-account when running.
[0053] In addition, this embodiment only involves one main account and one sub-account, but in practical applications, one main account and multiple sub-accounts can be set, and different sub-accounts can be used to install the same applications as the original application. This embodiment This will not be repeated, but it is also within the protection scope of the present disclosure.
[0054] In summary, the dual-opening method for applications provided in the embodiments of the present disclosure uses the master account to install the original application in the system, and uses the sub-account to install the dual-open application in the system, and sets independent and sub-applications for the dual-open application. For the second resource directory corresponding to the account, applications installed under different accounts are allowed to be opened at the same time. Since the second resource directory is separately assigned to the dual-open application, and the identity of the dual-open application and the sub-account are used to set the operation authority for the second resource directory, that is to say, only the dual-open application has the authority to the second resource directory, As a result, the process data of the original application program and the process data of the dual-open application program are isolated; the problem of hidden security risks of user data in related technologies is solved, and the effect of improving user data security is achieved.
[0055] Figure 2A It is a flow chart showing a method for dual opening of an application according to another exemplary embodiment. The method for dual opening of the application is applied to an electronic device. The system of the electronic device supports the setting of a main account and a sub-account. The dual opening of the application The method can include the following steps.
[0056] In step 201, use the master account to install the designated original application in the system, allocate a first resource directory for the original application, and use the identity of the original application and the master account to set operation permissions for the first resource directory. A resource directory is used to store related information required by the original application installed by the master account when running.
[0057] In step 202, use the sub-account to install the same dual-open application as the original application in the system, allocate a second resource directory for the dual-open application, and use the ID of the dual-open application and the sub-account to set operations for the second resource directory Permission, the second resource directory is used to store relevant information required when the dual-open application installed by the sub-account runs.
[0058] For the specific description of step 201 to step 202, please refer to the specific description of step 101 and step 102, which will not be repeated here.
[0059] In step 203, after the dual-open application is successfully installed, a broadcast message is sent to the desktop of the electronic device, and the broadcast message contains the identifier of the dual-open application. After the desktop receives the broadcast message, it is determined whether there is an identifier on the desktop. The desktop shortcut icon of the original application.
[0060] For example, the identification of the original application A and the dual-open application A is a, and after the dual-open application A is successfully installed, the broadcast message carrying the identification a is sent to the desktop. After the desktop receives the broadcast message carrying the identifier a, it is determined whether there is a desktop shortcut icon of the original application with the identifier a on the desktop. Generally speaking, as long as the system has installed the original application A with the mark a by using the master account, it will determine that there is a desktop shortcut icon with the original application with the mark a on the desktop.
[0061] In step 204, when there is a desktop shortcut icon of the original application with the identifier on the desktop, a marked desktop shortcut icon is generated for the dual-open application, and the marked desktop shortcut icon is displayed on the desktop.
[0062] The mark here is used to remind the user that the desktop shortcut icon is the desktop shortcut icon of a dual-open application. For example, Figure 2B It is a schematic diagram showing a desktop shortcut icon with a mark displayed on the desktop according to an exemplary embodiment, such as Figure 2B As shown, there is a desktop shortcut icon 21 of the original application A with the logo on the desktop, a desktop shortcut icon 23 with a mark 22 is generated for the dual-open application, and the desktop shortcut icon 23 with a mark 22 is displayed on the desktop Above, the desktop shortcut icon 23 is the desktop shortcut icon of the dual-open application A.
[0063] Optionally, the desktop shortcut icon of the dual-open application and the desktop shortcut icon of the original application can also be displayed on the "recent tasks" screen, the "recent installation" interface, and the notification bar.
[0064] In summary, the dual-opening method for applications provided in the embodiments of the present disclosure uses the master account to install the original application in the system, and uses the sub-account to install the dual-open application in the system, and sets independent and sub-applications for the dual-open application. For the second resource directory corresponding to the account, applications installed under different accounts are allowed to be opened at the same time. Since the second resource directory is separately assigned to the dual-open application, and the identity of the dual-open application and the sub-account are used to set the operation authority for the second resource directory, that is to say, only the dual-open application has the authority to the second resource directory, As a result, the process data of the original application program and the process data of the dual-open application program are isolated; the problem of hidden security risks of user data in related technologies is solved, and the effect of improving user data security is achieved.
[0065] Optionally, after the dual-open application is successfully installed, a broadcast message is sent to the desktop of the electronic device, and the broadcast message contains the identifier of the dual-open application; after the desktop receives the broadcast message, it is determined whether there is an identifier on the desktop The desktop shortcut icon of the original application; when the desktop shortcut icon of the original application with the logo exists on the desktop, a marked desktop shortcut icon is generated for the dual-open application, and the marked desktop shortcut icon is displayed on the desktop On the desktop. After the dual-open application is successfully installed, a desktop shortcut icon with a mark is generated and displayed on the desktop, so that the user can distinguish the original application from the dual-open application through the mark.
[0066] Optionally, when the sub-account is opened, in the process loading space of the sub-account, only the system processes that need to be called by the application installed by the sub-account are allowed to be opened, and the sub-account’s process loading space is removed from the dual-open application. Occupation of system resources by associated system processes.
[0067] In a multi-user system, the application data storage between the main account and the sub-account is completely isolated, which limits the sharing of data in the SD card public data area between the main account and the sub-account, such as image resources, audio resources, video resources, etc. Sharing of data. Optionally, the data sharing of the public data area between the main account and the sub-account can be done through Figure 2C The several sub-steps shown are realized, Figure 2C It is a flowchart showing a method for sharing data in a common data area between a main account and a sub-account according to an exemplary embodiment.
[0068] In step 205a, when the master account is successfully registered on the system, the first data storage space related to the master account is set for the master account.
[0069] When the master account is successfully registered on the system, the first data storage space related to the master account is set in the SD card for the master account.
[0070] The first data storage space generally includes a first storage subspace used to store designated types of resources, and a second storage subspace used to store non-designated types of resources related to the master account, such as cached data.
[0071] The specified types of resources mentioned here are generally set by developers, and the specified types of resources can be image resources, video resources, voice resources, and so on. This embodiment does not specifically limit this, and can be determined according to actual needs.
[0072] In step 205b, when the sub-account is successfully registered on the system, a second data storage space related to the sub-account is set for the sub-account.
[0073] When the sub-account is successfully registered on the system, the second data storage space related to the sub-account is set in the SD card for the sub-account.
[0074] The second data storage space generally includes a third storage subspace used to store specified type resources, and a fourth storage subspace used to store non-specified type resources related to the main system, such as cached data.
[0075] Generally speaking, the first data storage space and the second data storage space are two independent storage spaces.
[0076] In step 205c, the dual-open application is controlled to store the specified type of resources to be stored in the public directory of the first data storage space, and the dual-open application is controlled to store the non-specified type of resources that need to be stored in the second data storage. In space.
[0077] The public directory mentioned here is the index directory of the aforementioned first storage subspace.
[0078] In order to enable the sub-account and the main account to share the specified type of resources, in this embodiment, when the application under the sub-account needs to store the specified type of resources in the second data storage space, the application under the sub-account is controlled to store the specified type of resources To the public directory in the first data storage space (that is, to store in the first storage subspace); correspondingly, when the application under the sub-account needs to read a specified type of resource, control the application under the sub-account to the first Read the specified type of resources in the public directory in the data storage space.
[0079] When the application under the sub-account needs to store resources of a non-specified type, the application under the control sub-account is controlled to store the non-specified type of resources that need to be stored in the second data storage space, that is, to the fourth storage sub mentioned above. space.
[0080] It can be seen that although the system will set a third storage subspace for the sub-account, in order to ensure that the main account and the sub-account can share the specified type of resources, the third storage subspace does not store data, and the first storage subspace stores Use the specified type of data obtained by the application under the sub-account and the application under the main account.
[0081] Optionally, in actual applications, the second data storage space may not be divided into the third storage subspace and the fourth storage subspace. In this case, the second data storage space is only used for storage under the sub-account Non-specified types of resources involved in the application.
[0082] In step 205d, when the dual-open application needs to access a specified type of resource, the dual-open application is controlled to read from the public directory of the first data storage space.
[0083] By controlling the dual-open application to store the specified type of resources to be stored in the public directory of the first data storage space, and allow the dual-open application to access the specified type of resources from the public directory of the first data storage space Read to realize the sharing of specified types of resources between the main account and the sub-account.
[0084] Optionally, a third-party application needs to call an application. When the original application and the dual-open application corresponding to the application are installed in the system at the same time, you can use such as Figure 2D The several sub-steps shown are realized, Figure 2D It is a flowchart of a method for a third-party application to call the application when the original application and the dual-open application corresponding to an application are installed in the system at the same time according to an exemplary embodiment.
[0085] In step 206a, a program call request carrying a designated identifier sent by a third-party application is received.
[0086] Receive a program call request carrying a designated identifier sent by a third-party application, and determine the application to be called by the third-party application based on the identifier carried in the program call request. If the application corresponding to the identification in the system includes the original application with the identification and the dual-open application with the identification, step 206b is executed.
[0087] For example, the third-party application is a shopping application. After the user confirms the payment, the shopping application sends a program call request carrying the payment application B identifier. After receiving the program call request, if the original payment program B and the dual payment program B are installed in the system at the same time, step 206b is executed.
[0088] In step 206b, a selection prompt box is displayed, and the selection prompt box is used to guide the selection of the original application with the designated identification or the dual-open application with the designated identification.
[0089] Optionally, the selection prompt box includes the desktop shortcut icon of the original application and the desktop shortcut icon of the dual-open application.
[0090] For example, Figure 2E It is a schematic diagram showing a selection prompt box according to an exemplary embodiment, such as Figure 2E As shown, a prompt box 24 is displayed on the interactive interface of the third-party application. The selection prompt box 24 includes the desktop shortcut icon 25 of the original application and the desktop shortcut icon 26 of the dual-open application.
[0091] Optionally, the selection prompt box includes a text prompt corresponding to the original application and a text prompt corresponding to the dual-open application.
[0092] For example, Figure 2F It is another schematic diagram showing a selection prompt box according to an exemplary embodiment, such as Figure 2F As shown, a prompt box 27 is displayed on the interactive interface of the third-party application. The display prompt box 27 includes a text prompt 28 corresponding to the original application and a text prompt 29 corresponding to the dual-open application.
[0093] In step 206c, when the selection prompt box is used to select to call the original application, the original process involved in the original application is called, and the original process uses the data in the first resource directory.
[0094] In step 206d, when the selection prompt box is used to select to call the dual-open application, the dual-open process involved in the dual-open application is called, and the dual-open process uses the data in the second resource directory.
[0095] By receiving a program call request carrying a designated identifier sent by a third-party application, and displaying a selection prompt box, the user can select one from the original application and the dual-open application to call, which improves the flexibility of the call. When the selection prompt box is used to select to call the original application, the original process involved in the original application is called, and the original process uses the data in the first resource directory; when the selection prompt box is used to select to call the dual application, call For the dual-opening process involved in the dual-opening application, the dual-opening process uses the data in the second resource directory; the effect of calling the application corresponding to the user's selection is realized according to the user's selection.
[0096] The following are device embodiments of the present disclosure, which can be used to implement the method embodiments of the present disclosure. For details that are not disclosed in the device embodiments of the present disclosure, please refer to the method embodiments of the present disclosure.
[0097] image 3 It is a block diagram showing a device for dual opening of an application program according to an exemplary embodiment. The device for dual opening of an application program is applied to an electronic device, and the system of the electronic device supports the setting of a main account and a sub-account. The device for dual opening of applications may include: a first setting module 310 and a second setting module 320.
[0098] The first setting module 310 is configured to install a specified original application program in the system using the master account, allocate a first resource directory for the original application program, and use the identity of the original application program and the master account to set operations for the first resource directory Permission, the first resource directory is used to store related information required when the original application installed by the master account runs.
[0099] The second setting module 320 is configured to use the sub-account to install the same dual-open application as the original application in the system, allocate a second resource directory for the dual-open application, and use the identifier of the dual-open application and the sub-account as the second The resource directory sets operation permissions, and the second resource directory is used to store relevant information required when the dual-open application installed by the sub-account runs.
[0100] Among them, the original application and the dual-open application are allowed to be opened at the same time, and the identity of the original application is the same as the identity of the dual-open application.
[0101] In summary, the application dual-opening device provided in the embodiment of the present disclosure uses the master account to install the original application in the system, uses the sub-account to install the dual-open application in the system, and sets independent and sub-applications for the dual-open application. For the second resource directory corresponding to the account, applications installed under different accounts are allowed to be opened at the same time. Since the second resource directory is separately assigned to the dual-open application, and the identity of the dual-open application and the sub-account are used to set the operation authority for the second resource directory, that is to say, only the dual-open application has the authority to the second resource directory, As a result, the process data of the original application program and the process data of the dual-open application program are isolated; the problem of hidden security risks of user data in related technologies is solved, and the effect of improving user data security is achieved.
[0102] Figure 4 It is a block diagram of an apparatus for dual opening of an application program according to another exemplary embodiment. The apparatus for dual opening of an application program is applied to an electronic device, and the system of the electronic device supports the setting of a main account and a sub-account. The device for dual opening of the application may include: a first setting module 401 and a second setting module 402.
[0103] The first setting module 401 is configured to install a specified original application program in the system using the master account, allocate a first resource directory to the original application program, and use the identity of the original application program and the master account to set operations for the first resource directory Permission, the first resource directory is used to store relevant information required when the original application installed by the master account runs.
[0104] Use the master account to install the designated original application program in the system, and allocate a first resource directory for the original application program. The first resource directory is used to store relevant information required by the original application program when the original application program runs.
[0105] In order to ensure the data security of the first resource directory, the original application identifier and the master account are used to set the operation authority for the first resource directory. The data in the first resource directory allows only the applications with the identifier opened by the master account to call . It should be noted that, usually for the same application, one account can only install the application once.
[0106] In other words, only the original application has the operation authority to the first resource directory. The operation authority mentioned here includes: reading the stored data in the first resource directory, storing data in the first resource directory, and Delete data in the resource directory, etc.
[0107] The second setting module 402 is configured to use the sub-account to install the same dual-open application as the original application in the system, allocate a second resource directory for the dual-open application, and use the identifier of the dual-open application and the sub-account as the second The resource directory sets operation permissions, and the second resource directory is used to store relevant information required when the dual-open application installed by the sub-account runs.
[0108] Use the sub-account to install the same dual-open application in the system as the original application. For example, if the main account is used to install the original program A in the system, the installation directory of the original program A is obtained, and the dual-open application A is installed virtually in the system using the sub-account.
[0109] A second resource directory is allocated to the dual-open application, and the second resource directory is used to store related information required by the dual-open application when the application is running.
[0110] Since the original application and the dual-open application are the same application, the identity of the original application and the dual-open application is the same, so in order to ensure the data security of the second resource directory, the dual-open application ID and the sub-account are set as the second resource The directory sets operation permissions, and the data in the second resource directory allows only applications with the identifier opened by the sub-account to be called.
[0111] In other words, only the dual-open application has the operation authority for the second resource directory. The operation authority mentioned here includes: reading the stored data in the first resource directory, storing data in the first resource directory, and Deletion of data in a resource directory, etc.
[0112] Among them, the original application and the dual-open application are allowed to be opened at the same time. The opening mentioned here includes background operation and foreground operation. The original application and the dual-open application are allowed to be opened at the same time, including at least the following situations: original application and dual-open The application is running in the background at the same time; or, the original application and the dual-opening application are running in the foreground at the same time, that is, both are displayed on the same user interface; or the original application is running in the foreground and the dual-opening application is running in the background; or, the dual-opening application is running in the background. The application runs in the background and the original application runs in the foreground.
[0113] Optionally, the electronic device detects whether the corresponding original application and the dual-open application have been successfully installed in the system after obtaining the application specified by the user that needs to be installed with dual-opening. If the original application and the dual-open application are not successfully installed in the system, step 101 and step 102 are executed. If the original application has been successfully installed in the system, but the dual-open application has not been installed, step 102 is directly executed. If the system has successfully installed the dual-open application, but the original application is not installed, only perform step 101, use the master account to install the same original application as the dual-open application in the system, and allocate a second resource directory for the dual-open application , Use the identifier of the dual-open application and the sub-account to set the operation authority for the second resource directory, and the second resource directory is used to store the relevant information required by the dual-open application installed by the sub-account when running.
[0114] In addition, this embodiment only involves one main account and one sub-account, but in practical applications, one main account and multiple sub-accounts can be set, and different sub-accounts can be used to install the same applications as the original application. This embodiment This will not be repeated, but it is also within the protection scope of the present disclosure.
[0115] Optionally, the application dual-opening device also includes:
[0116] The permission module 403 is configured to, when the sub-account is opened, in the process loading space of the sub-account, only the system processes that need to be called by the application installed by the sub-account are allowed to be opened.
[0117] When the sub-account is opened, in the process loading space of the sub-account, only the system processes that need to be called by the application installed by the sub-account are allowed to be opened. By allowing only the system processes that need to be invoked by the application installed by the sub-account, the occupation of system resources by the system processes that are not associated with the dual-open application in the process loading space of the sub-account is released.
[0118] Optionally, the dual-opening device for the application also includes:
[0119] The third setting module 404 is configured to set the first data storage space related to the master account for the master account when the master account is successfully registered on the system.
[0120] When the master account is successfully registered on the system, the first data storage space related to the master account is set in the SD card for the master account.
[0121] The first data storage space generally includes a first storage subspace used to store designated types of resources, and a second storage subspace used to store non-designated types of resources related to the master account, such as cached data.
[0122] The specified types of resources mentioned here are generally set by developers, and the specified types of resources can be image resources, video resources, voice resources, and so on. This embodiment does not specifically limit this, and can be determined according to actual needs.
[0123] The fourth setting module 405 is configured to set a second data storage space related to the sub-account for the sub-account when the sub-account is successfully registered on the system.
[0124] When the sub-account is successfully registered on the system, the second data storage space related to the sub-account is set in the SD card for the sub-account.
[0125] The second data storage space generally includes a third storage subspace used to store specified type resources, and a fourth storage subspace used to store non-specified type resources related to the main system, such as cached data.
[0126] Generally speaking, the first data storage space and the second data storage space are two independent storage spaces.
[0127] The first control module 406 is configured to control the dual-open application to store the specified type of resources that need to be stored in the public directory of the first data storage space, and control the dual-open application to store the non-specified type of resources that need to be stored in the first data storage space. 2. Data storage space.
[0128] The public directory mentioned here is the index directory of the aforementioned first storage subspace.
[0129] In order to enable the sub-account and the main account to share the specified type of resources, in this embodiment, when the application under the sub-account needs to store the specified type of resources in the second data storage space, the application under the sub-account is controlled to store the specified type of resources To the public directory in the first data storage space (that is, to store in the first storage subspace); correspondingly, when the application under the sub-account needs to read a specified type of resource, control the application under the sub-account to the first Read the specified type of resources in the public directory in the data storage space.
[0130] When the application under the sub-account needs to store resources of a non-specified type, the application under the control sub-account is controlled to store the non-specified type of resources that need to be stored in the second data storage space, that is, to the fourth storage sub mentioned above. space.
[0131] It can be seen that although the system will set a third storage subspace for the sub-account, in order to ensure that the main account and the sub-account can share the specified type of resources, the third storage subspace does not store data, and the first storage subspace stores Use the specified type of data obtained by the application under the sub-account and the application under the main account.
[0132] Optionally, in actual applications, the second data storage space may not be divided into the third storage subspace and the fourth storage subspace. In this case, the second data storage space is only used for storage under the sub-account Non-specified types of resources involved in the application.
[0133] The second control module 407 is configured to control the dual-open application to read from the public directory of the first data storage space when the dual-open application needs to access a specified type of resource.
[0134] Optionally, the application dual-opening device also includes:
[0135] The broadcast module 408 is configured to send a broadcast message to the desktop of the electronic device after the dual-open application is successfully installed, and the broadcast message contains the identifier of the dual-open application.
[0136] The determining module 409 is configured to determine whether there is a desktop shortcut icon of the original application with the identifier on the desktop after receiving the broadcast message sent by the broadcast module 408.
[0137] The first display module 410 is configured to generate a marked desktop shortcut icon for the dual-open application when the result determined by the determining module 409 is that there is a desktop shortcut icon of the original application with the mark The desktop shortcut icon of is displayed on the desktop.
[0138] The mark here is used to remind the user that the desktop shortcut icon is the desktop shortcut icon of a dual-open application.
[0139] Optionally, the desktop shortcut icon of the dual-open application and the desktop shortcut icon of the original application can also be displayed on the "recent tasks" screen, the "recent installation" interface, and the notification bar.
[0140] Optionally, the application dual-opening device also includes:
[0141] The receiving module 411 is configured to receive a program call request carrying a designated identifier sent by a third-party application.
[0142] Receive a program call request carrying a designated identifier sent by a third-party application, and determine the application to be called by the third-party application based on the identifier carried in the program call request. If the application corresponding to the identifier in the system includes the original application with the identifier and the dual-open application with the identifier, step 206b is executed.
[0143] The second display module 412 is configured to display a selection prompt box, which is used to guide the selection of the original application with the specified identifier carried in the program call request received by the receiving module 411 or the program call received by the receiving module 411 The dual-open application with the specified identifier carried in the request.
[0144] Optionally, the selection prompt box includes a text prompt corresponding to the original application and a text prompt corresponding to the dual-open application.
[0145] Optionally, the selection prompt box includes the desktop shortcut icon of the original application and the desktop shortcut icon of the dual-open application.
[0146] Optionally, the application dual-opening device also includes:
[0147] The first calling module 413 is configured to call the original process involved in the original application when the selection prompt box displayed by the second display module 412 selects to call the original application, and the original process uses the data in the first resource directory .
[0148] The second calling module 414 is configured to call the dual-opening process involved in the dual-opening application when the selection prompt box displayed by the second display module 412 selects to call the dual-opening application, and the dual-opening process uses the data in the second resource directory .
[0149] In summary, the smart device control device provided in the embodiments of the present disclosure uses the master account to install the original application in the system, uses the sub-account to install the dual-open application in the system, and sets a separate and sub-account for the dual-open application. Corresponding to the second resource directory, applications installed under different accounts are allowed to be opened at the same time. Since the second resource directory is separately assigned to the dual-open application, and the identity of the dual-open application and the sub-account are used to set the operation authority for the second resource directory, that is to say, only the dual-open application has the authority to the second resource directory, As a result, the process data of the original application program and the process data of the dual-open application program are isolated; the problem of hidden security risks of user data in related technologies is solved, and the effect of improving user data security is achieved.
[0150] Optionally, after the dual-open application is successfully installed, a broadcast message is sent to the desktop of the electronic device, the broadcast message contains the identifier of the dual-open application; after the desktop receives the broadcast message, it is determined whether there is an identifier on the desktop Desktop shortcut icon of the original application; when there is a desktop shortcut icon of the original application with the logo on the desktop, a marked desktop shortcut icon is generated for the dual-open application, and the marked desktop shortcut icon is displayed in On the desktop. After the dual-open application is successfully installed, a desktop shortcut icon with a mark is generated and displayed on the desktop, so that the user can distinguish the original application from the dual-open application through the mark.
[0151] Optionally, when the sub-account is opened, in the process loading space of the sub-account, only the system processes that need to be called by the application installed by the sub-account are allowed to be opened, and the sub-account’s process loading space is not compatible with dual-open applications. Occupation of system resources by associated system processes.
[0152] Optionally, by controlling the dual-open application to store the specified type of resources that need to be stored in the public directory of the first data storage space, and allow the dual-open application to access the specified type of resources from the first data storage space Reading in the public directory realizes the sharing of specified types of resources between the main account and the sub-account.
[0153] Optionally, by receiving a program call request carrying a designated identifier sent by a third-party application, a selection prompt box is displayed, so that the user can select one from the original application and the dual-open application to call, which improves the flexibility of the call.
[0154] Optionally, when the selection prompt box is used to select to call the original application, the original process involved in the original application is invoked, and the original process uses the data in the first resource directory; when the selection prompt box is used to select to call the dual application During the program, the double-opening process involved in the double-opening application is called, and the double-opening process uses the data in the second resource directory; the effect of calling the application corresponding to the user's selection according to the user's selection is realized.
[0155] An exemplary embodiment of the present disclosure provides a dual-opening device for applications, which can implement the dual-opening method for applications provided by the present disclosure, and is applied to electronic equipment. The system of the electronic equipment supports the setting of a main account and a sub-account. The program dual opening device includes: a processor, and a memory for storing executable instructions of the processor;
[0156] Among them, the processor is configured as:
[0157] Use the master account to install the designated original application in the system, allocate the first resource directory for the original application, and use the identity of the original application and the master account to set the operation authority for the first resource directory, and the first resource directory is used for Store the relevant information required when the original application installed by the master account runs;
[0158] Use the sub-account to install the same dual-open application as the original application in the system, allocate a second resource directory for the dual-open application, and use the identity of the dual-open application and the sub-account to set the operation authority for the second resource directory. The resource directory is used to store the relevant information required when the dual-open application installed by the sub-account runs;
[0159] Among them, the original application and the dual-open application are allowed to be opened at the same time, and the identity of the original application is the same as the identity of the dual-open application.
[0160] Figure 5 It is a block diagram showing a device for dual-opening applications according to an exemplary embodiment. The device is applied to an electronic device. The system of the electronic device supports the setting of a main account and a sub-account. The electronic device may be a mobile terminal. , Tablet devices, medical equipment, fitness equipment, personal digital assistants, etc.
[0161] Reference Figure 5 , The device 500 may include one or more of the following components: a processing component 502, a memory 504, a power supply component 506, a multimedia component 508, an audio component 510, an input/output (I/O) interface 512, a sensor component 514, and a communication component 516.
[0162] The processing component 502 generally controls the overall operations of the device 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 502 may include one or more processors 520 to execute instructions to complete all or part of the steps of the foregoing method. In addition, the processing component 502 may include one or more modules to facilitate the interaction between the processing component 502 and other components. For example, the processing component 502 may include a multimedia module to facilitate the interaction between the multimedia component 508 and the processing component 502.
[0163] The memory 504 is configured to store various types of data to support operations in the device 500. Examples of these data include instructions for any application or method operating on the device 500, contact data, phone book data, messages, pictures, videos, etc. The memory 504 can be implemented by any type of volatile or non-volatile storage devices or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable and Programmable read only memory (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
[0164] The power supply component 506 provides power to various components of the device 500. The power supply component 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 500.
[0165] The multimedia component 508 includes a screen that provides an output interface between the device 500 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, sliding, and gestures on the touch panel. The touch sensor may not only sense the boundary of the touch or slide action, but also detect the duration and pressure related to the touch or slide operation. In some embodiments, the multimedia component 508 includes a front camera and/or a rear camera. When the device 500 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
[0166] The audio component 510 is configured to output and/or input audio signals. For example, the audio component 510 includes a microphone (MIC), and when the device 500 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive external audio signals. The received audio signal may be further stored in the memory 504 or transmitted via the communication component 516. In some embodiments, the audio component 510 further includes a speaker for outputting audio signals.
[0167] The I/O interface 512 provides an interface between the processing component 502 and a peripheral interface module. The above-mentioned peripheral interface module may be a keyboard, a click wheel, a button, and the like. These buttons may include but are not limited to: home button, volume button, start button, and lock button.
[0168] The sensor component 514 includes one or more sensors for providing the device 500 with various aspects of status assessment. For example, the sensor component 514 can detect the open/close state of the device 500 and the relative positioning of components. For example, the component is the display and the keypad of the device 500. The sensor component 514 can also detect the position change of the device 500 or a component of the device 500. , The presence or absence of contact between the user and the device 500, the orientation or acceleration/deceleration of the device 500, and the temperature change of the device 500. The sensor component 514 may include a proximity sensor configured to detect the presence of nearby objects when there is no physical contact. The sensor component 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.
[0169] The communication component 516 is configured to facilitate wired or wireless communication between the apparatus 500 and other devices. The device 500 can access a wireless network based on a communication standard, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 further includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0170] In an exemplary embodiment, the apparatus 500 may be implemented by one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing equipment (DSPD), programmable logic devices (PLD), field programmable Implemented by a gate array (FPGA), controller, microcontroller, microprocessor, or other electronic components, and used to execute the above-mentioned dual-opening method of application programs.
[0171] In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 504 including instructions, which can be executed by the processor 520 of the device 500 to complete the application dual opening method. For example, the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
[0172] A non-transitory computer-readable storage medium that enables the device 500 to execute when the instructions in the storage medium are executed by the processor of the device 500 figure 1 , Figure 2A , Figure 2C as well as Figure 2D The steps shown in.
[0173] Those skilled in the art will easily think of other embodiments of the present disclosure after considering the description and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptive changes of the present disclosure. These variations, uses, or adaptive changes follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure. . The description and the embodiments are only regarded as exemplary, and the true scope and spirit of the present disclosure are pointed out by the following claims.
[0174] It should be understood that the present disclosure is not limited to the precise structure that has been described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only limited by the appended claims.

PUM

no PUM

Description & Claims & Application Information

We can also present the details of the Description, Claims and Application information to help users get a comprehensive understanding of the technical details of the patent, such as background art, summary of invention, brief description of drawings, description of embodiments, and other original content. On the other hand, users can also determine the specific scope of protection of the technology through the list of claims; as well as understand the changes in the life cycle of the technology with the presentation of the patent timeline. Login to view more.
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products