CN106020943B - Application program double-opening method and device - Google Patents

Application program double-opening method and device Download PDF

Info

Publication number
CN106020943B
CN106020943B CN201610290470.5A CN201610290470A CN106020943B CN 106020943 B CN106020943 B CN 106020943B CN 201610290470 A CN201610290470 A CN 201610290470A CN 106020943 B CN106020943 B CN 106020943B
Authority
CN
China
Prior art keywords
application program
double
account
sub
resource directory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610290470.5A
Other languages
Chinese (zh)
Other versions
CN106020943A (en
Inventor
王乐
李楠
吕曾翔
马骥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201610290470.5A priority Critical patent/CN106020943B/en
Publication of CN106020943A publication Critical patent/CN106020943A/en
Application granted granted Critical
Publication of CN106020943B publication Critical patent/CN106020943B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The disclosure discloses an application program double-opening method and device, and belongs to the field of electronic equipment. The application program double-opening method comprises the following steps: installing a designated original application program in the system by using a main account, distributing a first resource directory for the original application program, and setting an operation authority for the first resource directory by using the identifier of the original application program and the main account; installing a double-opening application program which is the same as the original application program in the system by using the sub-account, distributing a second resource directory for the double-opening application program, and setting operation permission for the second resource directory by using the identifier of the double-opening application program and the sub-account; wherein, the original application program and the double-opening application program are allowed to be opened simultaneously, and the identifier of the original application program is the same as that of the double-opening application program. The problem of user data have the potential safety hazard in the correlation technique is solved, and the effect of improving user data security is achieved.

Description

Application program double-opening method and device
Technical Field
The present disclosure relates to the field of electronic devices, and in particular, to a method and an apparatus for dual-boot of an application.
Background
Common intelligent systems do not support at least two processes for simultaneously starting the same application program by default, namely, do not support the double-opening function of the application program.
However, in practical applications, a user often needs to open an application program doubly, for example, two accounts of the same application program need to be logged in simultaneously, so as to obtain services related to the two accounts respectively. In order to implement dual opening of applications in the above intelligent system, a common solution is to install a virtual machine in the system, and install the applications by using the virtual machine. Because the virtual machine is used as an installation container independent of the system, the application program can be independently installed, so that the original application program installed in the system and the double-open application program installed in the virtual machine can be simultaneously used, and the double-open function of the application program is realized.
However, when the virtual machine is installed in the intelligent system, the intelligent system allocates the resource directory corresponding to the virtual machine application to the virtual machine, and all the application programs installed in the virtual machine have the operation authority for the resource directory, so that the application programs have the authority to access the user data mutually, and the user data has potential safety hazards.
Disclosure of Invention
The disclosure provides an application program double-opening method and device. The technical scheme is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided an application dual-boot method, applied to an electronic device, where a system of the electronic device supports setting a main account and a sub-account, the method including: installing a designated original application program in a system by using a main account, allocating a first resource directory for the original application program, and setting operation permission for the first resource directory by using the identifier of the original application program and the main account, wherein the first resource directory is used for storing relevant information required by the original application program installed by the main account during operation; installing a double-open application program which is the same as the original application program in the system by using a sub-account, allocating a second resource directory for the double-open application program, and setting operation permission for the second resource directory by using the identifier of the double-open application program and the sub-account, wherein the second resource directory is used for storing relevant information required by the double-open application program installed by the sub-account during operation; wherein, the original application program and the double-opening application program are allowed to be opened simultaneously, and the identifier of the original application program is the same as that of the double-opening application program. Because the second resource directory is independently allocated to the double-open application program, and the operation permission is set for the second resource directory by using the identifier and the sub-account of the double-open application program, that is, only the double-open application program has the permission to the second resource directory, the process data of the original application program and the process data of the double-open application program are isolated, the problem that the user data in the related technology has potential safety hazards is solved, and the effect of improving the safety of the user data is achieved.
Optionally, the method further includes: and when the sub-account is opened, only allowing the system process which needs to be called by the application program installed in the sub-account to be opened in the process loading space of the sub-account. And the system process which is not related to the double-opening application program in the process loading space of the sub-account is allowed to be called only by opening the application program installed in the sub-account, so that the occupation of the system resource by the system process which is not related to the double-opening application program is eliminated.
Optionally, the method further includes: when a primary account is successfully registered on a system, setting a first data storage space related to the primary account for the primary account; when the sub-account is successfully registered on the system, setting a second data storage space related to the sub-account for the sub-account; controlling the double-open application program to store the resources of the appointed type to be stored into a public directory of a first data storage space, and controlling the double-open application program to store the resources of the non-appointed type to be stored into a second data storage space; and when the double-opening application program needs to access the resources of the specified type, controlling the double-opening application program to read from the public directory of the first data storage space. The resources of the specified type which need to be stored are controlled to be stored in the public directory of the first data storage space, and the resources of the specified type are allowed to be read from the public directory of the first data storage space when the double-open application program needs to access the resources of the specified type, so that the resources of the specified type are shared between the main account and the sub-account.
Optionally, the method further includes: after the double-open application program is successfully installed, sending a broadcast message to a desktop of the electronic equipment, wherein the broadcast message contains an identifier of the double-open application program; after the desktop receives the broadcast message, judging whether a desktop shortcut icon of the original application program with the identifier exists on the desktop; when the desktop shortcut icon of the original application program with the identifier exists on the desktop, the desktop shortcut icon with the identifier is generated for the double-opening application program, and the desktop shortcut icon with the identifier is displayed on the desktop. After the double-opening application program is successfully installed, the desktop shortcut icon with the mark is generated and displayed on the desktop, so that a user can distinguish the original application program from the double-opening application program through the mark.
Optionally, the method further includes receiving a program call request carrying a specified identifier and sent by a third party application program; and displaying a selection prompt box, wherein the selection prompt box is used for guiding and selecting the original application program with the specified identification or the double-opening application program with the specified identification. By displaying the prompt box, the user can select one from the original application program and the double-opening application program to call, and the calling flexibility is improved.
Optionally, the selection prompt box includes a desktop shortcut icon with the original application program and a desktop shortcut icon with the double-open application program.
Optionally, the method further includes: when the original application program is selected to be called by using the selection prompt box, calling an original process related to the original application program, wherein the original process uses data in a first resource directory; when the selection prompt box is used for selecting and calling the double-opening application program, calling a double-opening process related to the double-opening application program, wherein the double-opening process uses data in a second resource directory; the effect of calling the application program corresponding to the user selection according to the user selection is achieved.
According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for dual opening of an application program, which is applied to an electronic device, a system of which supports setting a main account and a sub account, the apparatus including: a first setting module, configured to install a specified original application program in the system by using the primary account, allocate a first resource directory to the original application program, and set an operation permission for the first resource directory by using an identifier of the original application program and the primary account, where the first resource directory is used to store relevant information required by the original application program installed by the primary account when running; the second setting module is configured to install a double-open application program which is the same as the original application program in the system by using the sub-account, allocate a second resource directory to the double-open application program, and set an operation permission for the second resource directory by using the identifier of the double-open application program and the sub-account, wherein the second resource directory is used for storing relevant information required by the double-open application program installed by the sub-account during operation; wherein the original application and the dual open application are allowed to be opened simultaneously, and the identifier of the original application is the same as the identifier of the dual open application.
Optionally, the apparatus further comprises: and the allowing module is configured to allow only the system process which needs to be called by the application program installed in the sub-account to be opened in the process loading space of the sub-account after the sub-account is opened.
Optionally, the apparatus further comprises: a third setting module configured to set a first data storage space associated with the primary account for the primary account upon successful registration of the primary account on the system; a fourth setting module 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; the first control module is configured to control the dual-open application program to store the specified type of resources to be stored into the public directory of the first data storage space, and control the dual-open application program to store the unspecified type of resources to be stored into the second data storage space; a second control module configured to control the dual-open application to read from the common directory of the first data storage space when the dual-open application needs to access the specified type of resource.
Optionally, the apparatus further comprises: the broadcasting module is configured to send a broadcasting message to the desktop of the electronic device after the dual-open application program is successfully installed, wherein the broadcasting message contains the identification of the dual-open application program; the judging module is configured to judge whether a desktop shortcut icon of the original application program with the identifier exists on the desktop after the desktop receives the broadcast message sent by the broadcasting module; and the first display module is configured to generate a marked desktop shortcut icon for the double-opening application program and display the marked desktop shortcut icon on the desktop when the judgment result of the judgment module indicates that the desktop shortcut icon of the original application program with the identification exists on the desktop.
Optionally, the apparatus further comprises: the receiving module is configured to receive a program calling request which is sent by a third-party application program and carries a specified identifier; and the second display module is configured to display a selection prompt box, and the selection prompt box is used for guiding and selecting the original application program with the specified identification carried by the program calling request received by the receiving module or the double-open application program with the specified identification carried by the program calling request received by the receiving module.
Optionally, the selection prompt box includes a desktop shortcut icon of the original application program and a desktop shortcut icon of the double-opening application program.
Optionally, the apparatus further comprises: the first calling module is configured to call an original process related to the original application program when the original application program is selected to be called by using the selection prompt box displayed by the second display module, and the original process uses data in the first resource directory; and the second calling module is configured to call the double-opening process related to the double-opening application program when the selection prompt box displayed by the second display module is used for selecting and calling the double-opening application program, and the double-opening process uses the data in the second resource directory.
According to a third aspect of the embodiments of the present disclosure, there is provided an apparatus for dual opening of an application program, where the apparatus is applied to an electronic device, and a system of the electronic device supports setting a main account and a sub account, and the apparatus includes:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to:
installing a designated original application program in the system by using the primary account, allocating a first resource directory for the original application program, and setting an operation authority for the first resource directory by using the identifier of the original application program and the primary account, wherein the first resource directory is used for storing relevant information required by the original application program installed by the primary account during operation;
installing a double-open application program which is the same as the original application program in the system by utilizing the sub-account, distributing a second resource directory for the double-open application program, setting operation permission for the second resource directory by utilizing the identifier of the double-open application program and the sub-account, wherein the second resource directory is used for storing relevant information required by the double-open application program installed in the sub-account when in operation,
wherein the original application and the dual open application are allowed to be opened simultaneously, and the identifier of the original application is the same as the identifier of the dual open application.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flow diagram illustrating a method for dual application boot in accordance with an exemplary embodiment;
FIG. 2A is a flow diagram illustrating a method for dual application boot in accordance with another exemplary embodiment;
FIG. 2B is a diagram illustrating a desktop shortcut icon with a label displayed on the desktop in accordance with an exemplary embodiment;
FIG. 2C is a flow diagram illustrating a method of sharing data of a common data area between a primary account and a secondary account in accordance with an exemplary embodiment;
fig. 2D is a flowchart illustrating a method for a third-party application to invoke an application when an original application and a dual-open application corresponding to the application are installed in a system at the same time according to an exemplary embodiment;
FIG. 2E is a diagram illustrating a display selection prompt box according to an exemplary embodiment;
FIG. 2F is a diagram illustrating another display selection prompt box in accordance with an illustrative embodiment;
FIG. 3 is a block diagram illustrating an application dual opening device in accordance with an exemplary embodiment;
FIG. 4 is a block diagram illustrating an application dual opening device in accordance with another exemplary embodiment;
FIG. 5 is a block diagram illustrating an apparatus for dual-boot applications in accordance with an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
In an intelligent system of the intelligent electronic equipment, such as Android 5.0, the support for multiple accounts is realized. In the intelligent system supporting multiple accounts, multiple accounts of the system are allowed to log in simultaneously, a user can install application programs by using different accounts respectively, and the intelligent system configures independent space required for installing the application programs for each account, so that the same application programs can be installed by using two accounts supported by the system respectively in order to realize double opening of the application programs. Generally, the application program requiring double opening can be specified by the user, for example, the user can specify the application program requiring double opening from the application program market provided by the system. After acquiring an application program which is specified by a user and needs to be subjected to double opening, the system utilizes different accounts to install the application program in the system. When the double opening setting needs to be carried out on a certain application program, the application program installed by using the main account is called an original application program, and the application program installed by using the sub account is called a double opening application program.
Fig. 1 is a flowchart illustrating an application dual opening method according to an exemplary embodiment, where the application dual opening method is applied to an electronic device, a system of the electronic device supports setting a main account and a sub-account, and the application dual opening method may include the following steps.
In step 101, a designated original application program is installed in the system by using a primary account, a first resource directory is allocated to the original application program, and an operation authority is set for the first resource directory by using an identifier of the original application program and the primary account, wherein the first resource directory is used for storing relevant information required by the original application program installed by the primary account when the original application program runs.
And installing a designated original application program in the system by using the main account, and allocating a first resource directory for the original application program, wherein the first resource directory is used for storing relevant information required when the original application program runs.
In order to ensure the data security of the first resource directory, the operation authority is set for the first resource directory by using the identifier of the original application program and the primary account, and the data in the first resource directory only allows the application program which is opened by the primary account and has the identifier to call. It should be noted that, usually, for the same application, an account can be installed only once for the application.
That is, only the original application program has the operation right to the first resource directory, where the operation right includes: reading the stored data in the first resource directory, storing data in the first resource directory, deleting data in the first resource directory, and the like.
In step 102, a double-open application program identical to the original application program is installed in the system by using the sub-account, a second resource directory is allocated to the double-open application program, and an operation authority is set for the second resource directory by using the identifier of the double-open application program and the sub-account, wherein the second resource directory is used for storing relevant information required by the double-open application program installed by the sub-account during operation.
And installing the double-open application program which is the same as the original application program in the system by utilizing the sub account. For example, when an original program a is installed in the system by using the main account, an installation directory of the original program a is obtained, and the double-open application a is virtually installed in the system by using the sub-account.
And allocating a second resource directory for the dual-open application program, wherein the second resource directory is used for storing relevant information required by the dual-open application program during operation.
Because the original application program and the double-open application program are the same application program and the identifiers of the original application program and the double-open application program are the same, in order to ensure the data security of the second resource directory, the identifier of the double-open application program and the sub-account are set as the operating permission of the second resource directory, and the data in the second resource directory only allows the application program opened by the sub-account and having the identifier to be called.
That is, only the dual-open application has the operation right to the second resource directory, where the operation right includes: reading the stored data in the first resource directory, storing data in the first resource directory, deleting data in the first resource directory, and the like.
The original application program and the dual-open application program are allowed to be opened simultaneously, wherein the opening includes background operation and foreground operation, and the allowing of the original application program and the dual-open application program to be opened simultaneously at least includes the following conditions: the original application program and the double-open application program run in the background at the same time; or, the original application program and the double-open application program run in the foreground at the same time, namely, both are displayed on the same user interface; or the original application program runs in the foreground, and the double-open application program runs in the background; alternatively, the dual open application runs in the background and the original application runs in the foreground.
Optionally, after acquiring the application program that needs to be installed and double-opened and is specified by the user, the electronic device detects whether the corresponding original application program and the double-opened application program have been successfully installed in the system. 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 is not installed, then step 102 is performed directly. If the system has successfully installed the dual-open application program but does not install the original application program, only step 101 is executed, the original application program which is the same as the dual-open application program is installed in the system by using the main account, a second resource directory is allocated to the dual-open application program, an operation authority is set for the second resource directory by using the identifier of the dual-open application program and the sub-account, and the second resource directory is used for storing relevant information required by the dual-open application program installed by the sub-account during operation.
In addition, the embodiment only relates to one main account and one sub-account, and in practical application, one main account and a plurality of sub-accounts may be set, and different sub-accounts may be used to install the application program that is the same as the original application program, which is not described again in this embodiment, but is also within the protection scope of the present disclosure.
In summary, in the application program double-opening method provided in the embodiment of the present disclosure, the original application program is installed in the system by using the main account, the double-opening application program is installed in the system by using the sub-account, an independent second resource directory corresponding to the sub-account is set for the double-opening application program, and the application programs installed under different accounts are allowed to be opened simultaneously. Because the second resource directory is independently allocated to the double-open application program, and the identifier and the sub-account of the double-open application program are used for setting the operation permission for the second resource directory, that is, only the double-open application program has the permission for the second resource directory, the process data of the original application program and the process data of the double-open application program are isolated; the problem of user data have the potential safety hazard in the correlation technique is solved, and the effect of improving user data security is achieved.
Fig. 2A is a flowchart illustrating an application dual opening method according to another exemplary embodiment, where the application dual opening method is applied to an electronic device whose system supports setting a main account and a sub-account, and the application dual opening method may include the following steps.
In step 201, a designated original application program is installed in the system by using a primary account, a first resource directory is allocated to the original application program, and an operation authority is set for the first resource directory by using an identifier of the original application program and the primary account, wherein the first resource directory is used for storing relevant information required by the original application program installed by the primary account when the original application program runs.
In step 202, a double-open application program identical to the original application program is installed in the system by using the sub-account, a second resource directory is allocated to the double-open application program, and an operation permission is set for the second resource directory by using the identifier of the double-open application program and the sub-account, where the second resource directory is used to store relevant information required by the double-open application program installed by the sub-account during operation.
For the detailed description of step 201 to step 202, reference may be made to the detailed description of step 101 and step 102, which is not described herein again.
In step 203, after the dual-open application is successfully installed, a broadcast message is sent to the desktop of the electronic device, where the broadcast message includes an identifier of the dual-open application, and after the desktop receives the broadcast message, it is determined whether a desktop shortcut icon of the original application having the identifier exists on the desktop.
For example, the original application a and the dual-open application a have an identifier a, and after the dual-open application a is successfully installed, broadcast information carrying the identifier a is sent to the desktop. And after receiving the broadcast message carrying the identifier a, the desktop judges whether a desktop shortcut icon of the original application program with the identifier a exists on the desktop. Generally, as long as the system utilizes the primary account to install the original application a with the identifier a, it is determined that the desktop shortcut icon with the original application with the identifier a exists on the desktop.
In step 204, when the desktop shortcut icon of the original application program with the identifier exists on the desktop, a desktop shortcut icon with a mark is generated for the dual-open application program, and the desktop shortcut icon with the mark is displayed on the desktop.
The mark is used for prompting the user that the desktop shortcut icon is the desktop shortcut icon of the double-opening application program. For example, fig. 2B is a schematic diagram illustrating that a desktop shortcut icon with a mark is displayed on a desktop according to an exemplary embodiment, as shown in fig. 2B, a desktop shortcut icon 21 of an original application a with the mark exists on the desktop, a desktop shortcut icon 23 with a mark 22 is generated for the double-opening application, the desktop shortcut icon 23 with the mark 22 is displayed on the desktop, and the desktop shortcut icon 23 is the desktop shortcut icon of the double-opening application a.
Optionally, the desktop shortcut icon of the dual-open application and the desktop shortcut icon of the original application may also be displayed in positions of a "recent task" screen, a "recent installation" interface, a notification bar, and the like.
In summary, in the application program double-opening method provided in the embodiment of the present disclosure, the original application program is installed in the system by using the main account, the double-opening application program is installed in the system by using the sub-account, an independent second resource directory corresponding to the sub-account is set for the double-opening application program, and the application programs installed under different accounts are allowed to be opened simultaneously. Because the second resource directory is independently allocated to the double-open application program, and the identifier and the sub-account of the double-open application program are used for setting the operation permission for the second resource directory, that is, only the double-open application program has the permission for the second resource directory, the process data of the original application program and the process data of the double-open application program are isolated; the problem of user data have the potential safety hazard in the correlation technique is solved, and the effect of improving user data security is achieved.
Optionally, after the dual-open application program is successfully installed, a broadcast message is sent to the desktop of the electronic device, where the broadcast message includes an identifier of the dual-open application program; after the desktop receives the broadcast message, judging whether a desktop shortcut icon of the original application program with the identifier exists on the desktop; when the desktop shortcut icon of the original application program with the identifier exists on the desktop, the desktop shortcut icon with the identifier is generated for the double-opening application program, and the desktop shortcut icon with the identifier is displayed on the desktop. After the double-opening application program is successfully installed, the desktop shortcut icon with the mark is generated and displayed on the desktop, so that a user can distinguish the original application program from the double-opening application program through the mark.
Optionally, after the sub-account is opened, only the system process that needs to be called for opening the application installed in the sub-account is allowed in the process loading space of the sub-account, and occupation of system resources by the system process unrelated to the dual-open application in the process loading space of the sub-account is eliminated.
Under the multi-user system, the storage of the application data between the main account and the sub-account is completely isolated, which limits the data sharing of the SD card public data area between the main account and the sub-account, such as the sharing of data of picture resources, audio resources, video resources, and the like. Alternatively, sharing data of the common data area between the primary account and the sub-account may be implemented through several sub-steps as shown in fig. 2C, where fig. 2C is a flowchart illustrating a method of sharing data of the common data area between the primary account and the sub-account according to an exemplary embodiment.
In step 205a, upon successful registration of a primary account on the system, a first data storage space associated with the primary account is set for the primary account.
When a primary account is successfully registered on the system, a first data storage space associated with the primary account is set in the SD card for the primary account.
The first data storage space generally comprises a first storage subspace used for storing the specified type of resources and a second storage subspace used for storing the non-specified type of resources related to the primary account, such as cache data and the like.
The specific type of resource is generally set by a developer, and the specific type of resource may be a picture resource, a video resource, a voice resource, and the like. This embodiment does not specifically limit this, and can be determined according to actual needs.
In step 205b, upon successful registration of the sub-account on the system, a second data storage space associated with the sub-account is set for the sub-account.
When the sub-account is successfully registered on the system, a second data storage space related to the sub-account is set in the SD card for the sub-account.
The second data storage space typically includes a third storage sub-space for storing resources of the specified type and a fourth storage sub-space for storing resources of the non-specified type, such as cache data, involved by the host system.
Generally, the first data storage space and the second data storage space are two independent storage spaces.
In step 205c, the dual-open application is controlled to store the specified type of resource to be stored in the common directory of the first data storage space, and the dual-open application is controlled to store the unspecified type of resource to be stored in the second data storage space.
The public directory is referred to as the index directory of the first storage subspace.
In order to enable the sub-account and the main account to share the resources of the specified type, in this embodiment, when the application program under the sub-account needs to store the resources of the specified type into the second data storage space, the application program under the sub-account is controlled to store the resources of the specified type into a common directory in the first data storage space (that is, into the first storage sub-space); correspondingly, when the application program under the sub-account needs to read the resources of the specified type, the application program under the sub-account is controlled to read the resources of the specified type from the public directory in the first data storage space.
When the sub-account application program needs to store the non-specified type of resources, the sub-account application program is controlled to store the non-specified type of resources which need to be stored into the second data storage space, that is, into the fourth storage sub-space.
Therefore, although the system sets the third storage subspace for the sub-account, in order to ensure that the main account and the sub-account can share the resources of the specified type, the third storage subspace does not store data, and the first storage subspace stores the data of the specified type acquired by the application program under the sub-account and the application program under the main account.
Optionally, in an actual application, the second data storage space may not be divided into the third storage subspace and the fourth storage subspace, and in this case, the second data storage space is only used for storing the non-specified type of resource related to the application program under the sub-account.
In step 205d, when the dual open application needs to access the specified type of resource, the dual open application is controlled to read from the common directory of the first data storage space.
The resources of the specified type to be stored are stored in the public directory of the first data storage space by controlling the double-open application program, and the resources of the specified type are allowed to be read from the public directory of the first data storage space when the double-open application program needs to access the resources of the specified type, so that the resources of the specified type are shared between the main account and the sub-account.
Optionally, when the original application program and the dual-open application program corresponding to the application program are installed simultaneously in the system, the third-party application program needs to call the application program, which may be implemented through several sub-steps as shown in fig. 2D, where fig. 2D is a flowchart of a method for the third-party application program to call the application program when the original application program and the dual-open application program corresponding to the application program are installed simultaneously in the system according to an exemplary embodiment.
In step 206a, a program call request carrying a specified identifier sent by a third-party application program is received.
And receiving a program calling request carrying a specified identifier sent by the third-party application program, and determining the application program which is called by the third-party application program according to the identifier carried by the program calling request. If the application corresponding to the identifier in the system includes the original application having the identifier and the dual-open application having the identifier, step 206b is executed.
For example, the third-party application is a shopping application, and after the user confirms payment, the shopping application sends a program call request carrying the identifier of the payment application B. Receiving the program call request, and if the original payment program B and the dual-open payment program B are installed in the system at the same time, executing step 206B.
In step 206b, a selection prompt box is displayed, and the selection prompt box is used for guiding the selection of the original application program with the specified identification or the double-opening application program with the specified identification.
Optionally, the selection prompt box includes a desktop shortcut icon with an original application program and a desktop shortcut icon with a double-open application program.
For example, fig. 2E is a schematic diagram illustrating a selection prompt box according to an exemplary embodiment, and as shown in fig. 2E, a prompt box 24 is displayed on the interactive interface of the third-party application, where the selection prompt box 24 includes a desktop shortcut icon 25 of the original application and a desktop shortcut icon 26 of the dual-open application.
Optionally, the selection prompt box includes a text prompt corresponding to the original application program and a text prompt corresponding to the double-open application program.
For example, fig. 2F is a schematic diagram illustrating another example of displaying a selection prompt box according to an exemplary embodiment, as shown in fig. 2F, a prompt box 27 is displayed on the interactive interface of the third-party application, and the display prompt box 27 includes a text prompt 28 corresponding to the original application and a text prompt 29 corresponding to the double-open application.
In step 206c, when the selection prompt box is used to select to invoke 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.
In step 206d, when the selection prompt box is used to select to call the dual-open application, a dual-open process related to the dual-open application is called, and the dual-open process uses the data in the second resource directory.
By receiving a program calling request which is sent by a third-party application program and carries an appointed identification and displaying a selection prompt box, a user can select one of an original application program and a double-opening application program to call, and the calling flexibility is improved. When the original application program is selected to be called by using the selection prompt box, calling an original process related to the original application program, wherein the original process uses data in a first resource directory; when the selection prompt box is used for selecting and calling the double-opening application program, calling a double-opening process related to the double-opening application program, wherein the double-opening process uses data in a second resource directory; the effect of calling the application program corresponding to the user selection according to the user selection is achieved.
The following are embodiments of the disclosed apparatus that may be used to perform embodiments of the disclosed methods. For details not disclosed in the embodiments of the apparatus of the present disclosure, refer to the embodiments of the method of the present disclosure.
Fig. 3 is a block diagram illustrating an application dual opening apparatus applied to an electronic device whose system supports setting a main account and a sub account according to an exemplary embodiment. The application dual opening apparatus may include: a first setup module 310 and a second setup module 320.
The first setting module 310 is configured to install a designated original application program in the system by using the primary account, allocate a first resource directory for the original application program, and set an operation right for the first resource directory by using the identifier of the original application program and the primary account, where the first resource directory is used to store relevant information required by the original application program installed by the primary account when the original application program runs.
The second setting module 320 is configured to install a dual-open application program identical to the original application program in the system by using the sub-account, allocate a second resource directory to the dual-open application program, and set an operation permission for the second resource directory by using the identifier of the dual-open application program and the sub-account, where the second resource directory is used to store relevant information required by the dual-open application program installed by the sub-account during operation.
Wherein, the original application program and the double-opening application program are allowed to be opened simultaneously, and the identifier of the original application program is the same as that of the double-opening application program.
In summary, in the application dual-opening device provided in the embodiment of the present disclosure, the original application is installed in the system by using the main account, the dual-opening application is installed in the system by using the sub-account, an independent second resource directory corresponding to the sub-account is set for the dual-opening application, and the applications installed in different accounts are allowed to be opened simultaneously. Because the second resource directory is independently allocated to the double-open application program, and the identifier and the sub-account of the double-open application program are used for setting the operation permission for the second resource directory, that is, only the double-open application program has the permission for the second resource directory, the process data of the original application program and the process data of the double-open application program are isolated; the problem of user data have the potential safety hazard in the correlation technique is solved, and the effect of improving user data security is achieved.
Fig. 4 is a block diagram illustrating an application dual opening apparatus applied to an electronic device whose system supports setting a main account and a sub account according to another exemplary embodiment. The application dual opening apparatus may include: a first setup module 401 and a second setup module 402.
The first setting module 401 is configured to install a designated original application program in the system by using the primary account, allocate a first resource directory for the original application program, and set an operation permission for the first resource directory by using the identifier of the original application program and the primary account, where the first resource directory is used to store relevant information required by the original application program installed by the primary account when the original application program runs.
And installing a designated original application program in the system by using the main account, and allocating a first resource directory for the original application program, wherein the first resource directory is used for storing relevant information required when the original application program runs.
In order to ensure the data security of the first resource directory, the operation authority is set for the first resource directory by using the identifier of the original application program and the primary account, and the data in the first resource directory only allows the application program which is opened by the primary account and has the identifier to call. It should be noted that, usually, for the same application, an account can be installed only once for the application.
That is, only the original application program has the operation right to the first resource directory, where the operation right includes: reading the stored data in the first resource directory, storing data in the first resource directory, deleting data in the first resource directory, and the like.
The second setting module 402 is configured to install a dual-open application program identical to the original application program in the system by using the sub-account, allocate a second resource directory to the dual-open application program, and set an operation permission for the second resource directory by using the identifier of the dual-open application program and the sub-account, where the second resource directory is used to store relevant information required by the dual-open application program installed by the sub-account during operation.
And installing the double-open application program which is the same as the original application program in the system by utilizing the sub account. For example, when an original program a is installed in the system by using the main account, an installation directory of the original program a is obtained, and the double-open application a is virtually installed in the system by using the sub-account.
And allocating a second resource directory for the dual-open application program, wherein the second resource directory is used for storing relevant information required by the dual-open application program during operation.
Because the original application program and the double-open application program are the same application program and the identifiers of the original application program and the double-open application program are the same, in order to ensure the data security of the second resource directory, the identifier of the double-open application program and the sub-account are set as the operating permission of the second resource directory, and the data in the second resource directory only allows the application program opened by the sub-account and having the identifier to be called.
That is, only the dual-open application has the operation right to the second resource directory, where the operation right includes: reading the stored data in the first resource directory, storing data in the first resource directory, deleting data in the first resource directory, and the like.
The original application program and the dual-open application program are allowed to be opened simultaneously, wherein the opening includes background operation and foreground operation, and the allowing of the original application program and the dual-open application program to be opened simultaneously at least includes the following conditions: the original application program and the double-open application program run in the background at the same time; or, the original application program and the double-open application program run in the foreground at the same time, namely, both are displayed on the same user interface; or the original application program runs in the foreground, and the double-open application program runs in the background; alternatively, the dual open application runs in the background and the original application runs in the foreground.
Optionally, after acquiring the application program that needs to be installed and double-opened and is specified by the user, the electronic device detects whether the corresponding original application program and the double-opened application program have been successfully installed in the system. 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 is not installed, then step 102 is performed directly. If the system has successfully installed the dual-open application program but does not install the original application program, only step 101 is executed, the original application program which is the same as the dual-open application program is installed in the system by using the main account, a second resource directory is allocated to the dual-open application program, an operation authority is set for the second resource directory by using the identifier of the dual-open application program and the sub-account, and the second resource directory is used for storing relevant information required by the dual-open application program installed by the sub-account during operation.
In addition, the embodiment only relates to one main account and one sub-account, and in practical application, one main account and a plurality of sub-accounts may be set, and different sub-accounts may be used to install the application program that is the same as the original application program, which is not described again in this embodiment, but is also within the protection scope of the present disclosure.
Optionally, the application program dual-opening device further includes:
and the allowing module 403 is configured to allow, in the process loading space of the sub-account, only the system process that needs to be called by the application installed in the sub-account to be opened after the sub-account is opened.
And when the sub-account is opened, only allowing the system process which needs to be called by the application program installed in the sub-account to be opened in the process loading space of the sub-account. And the system process which is not related to the double-opening application program in the process loading space of the sub-account is allowed to be called only by opening the application program installed in the sub-account, so that the occupation of the system resource by the system process which is not related to the double-opening application program is eliminated.
Optionally, the application program dual-opening device further includes:
a third setup module 404 configured to set up a first data storage space associated with the primary account for the primary account upon successful registration of the primary account on the system.
When a primary account is successfully registered on the system, a first data storage space associated with the primary account is set in the SD card for the primary account.
The first data storage space generally comprises a first storage subspace used for storing the specified type of resources and a second storage subspace used for storing the non-specified type of resources related to the primary account, such as cache data and the like.
The specific type of resource is generally set by a developer, and the specific type of resource may be a picture resource, a video resource, a voice resource, and the like. This embodiment does not specifically limit this, and can be determined according to actual needs.
A fourth setup module 405 configured to set up a second data storage space associated with the sub-account for the sub-account when the sub-account is successfully registered on the system.
When the sub-account is successfully registered on the system, a second data storage space related to the sub-account is set in the SD card for the sub-account.
The second data storage space typically includes a third storage sub-space for storing resources of the specified type and a fourth storage sub-space for storing resources of the non-specified type, such as cache data, involved by the host system.
Generally, the first data storage space and the second data storage space are two independent storage spaces.
The first control module 406 is configured to control the dual-open application to store the specified type of resource to be stored in the common directory of the first data storage space, and control the dual-open application to store the unspecified type of resource to be stored in the second data storage space.
The public directory is referred to as the index directory of the first storage subspace.
In order to enable the sub-account and the main account to share the resources of the specified type, in this embodiment, when the application program under the sub-account needs to store the resources of the specified type into the second data storage space, the application program under the sub-account is controlled to store the resources of the specified type into a common directory in the first data storage space (that is, into the first storage sub-space); correspondingly, when the application program under the sub-account needs to read the resources of the specified type, the application program under the sub-account is controlled to read the resources of the specified type from the public directory in the first data storage space.
When the sub-account application program needs to store the non-specified type of resources, the sub-account application program is controlled to store the non-specified type of resources which need to be stored into the second data storage space, that is, into the fourth storage sub-space.
Therefore, although the system sets the third storage subspace for the sub-account, in order to ensure that the main account and the sub-account can share the resources of the specified type, the third storage subspace does not store data, and the first storage subspace stores the data of the specified type acquired by the application program under the sub-account and the application program under the main account.
Optionally, in an actual application, the second data storage space may not be divided into the third storage subspace and the fourth storage subspace, and in this case, the second data storage space is only used for storing the non-specified type of resource related to the application program under the sub-account.
A second control module 407 configured to control the dual open application to read from the common directory of the first data storage space when the dual open application needs to access a specified type of resource.
Optionally, the application program dual-opening device further includes:
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, where the broadcast message includes an identification of the dual-open application.
The determining module 409 is configured to determine whether a desktop shortcut icon of the original application program with the identifier exists on the desktop after the desktop receives the broadcast message sent by the broadcasting module 408.
The first display module 410 is configured to generate a desktop shortcut icon with a mark for a dual-open application when the determination result of the determination module 409 indicates that the desktop shortcut icon of the original application with the mark exists on the desktop, and display the desktop shortcut icon with the mark on the desktop.
The mark is used for prompting the user that the desktop shortcut icon is the desktop shortcut icon of the double-opening application program.
Optionally, the desktop shortcut icon of the dual-open application and the desktop shortcut icon of the original application may also be displayed in positions of a "recent task" screen, a "recent installation" interface, a notification bar, and the like.
Optionally, the application program dual-opening device further includes:
the receiving module 411 is configured to receive a program call request carrying a specified identifier sent by a third-party application program.
And receiving a program calling request carrying a specified identifier sent by the third-party application program, and determining the application program which is called by the third-party application program according to the identifier carried by the program calling request. If the application corresponding to the identifier in the system includes the original application having the identifier and the dual-open application having the identifier, step 206b is executed.
The second display module 412 is configured to display a selection prompt box, where the selection prompt box is used to guide selection of an original application program with a specific identifier carried in the program call request received by the receiving module 411 or a dual-open application program with a specific identifier carried in the program call request received by the receiving module 411.
Optionally, the selection prompt box includes a text prompt corresponding to the original application program and a text prompt corresponding to the double-open application program.
Optionally, the selection prompt box includes a desktop shortcut icon with an original application program and a desktop shortcut icon with a double-open application program.
Optionally, the application program dual-opening device further includes:
the first calling module 413 is configured to, when the selection prompt box displayed by the second display module 412 is used to select to call the original application, call an original process related to the original application, where the original process uses data in the first resource directory.
The second calling module 414 is configured to, when the selection prompt box displayed by the second display module 412 selects to call the dual-open application, call a dual-open process related to the dual-open application, where the dual-open process uses data in the second resource directory.
In summary, in the intelligent device control apparatus provided in the embodiment of the present disclosure, the original application program is installed in the system by using the main account, the dual-open application program is installed in the system by using the sub-account, an independent second resource directory corresponding to the sub-account is set for the dual-open application program, and the application programs installed under different accounts are allowed to be simultaneously opened. Because the second resource directory is independently allocated to the double-open application program, and the identifier and the sub-account of the double-open application program are used for setting the operation permission for the second resource directory, that is, only the double-open application program has the permission for the second resource directory, the process data of the original application program and the process data of the double-open application program are isolated; the problem of user data have the potential safety hazard in the correlation technique is solved, and the effect of improving user data security is achieved.
Optionally, after the dual-open application program is successfully installed, a broadcast message is sent to the desktop of the electronic device, where the broadcast message includes an identifier of the dual-open application program; after the desktop receives the broadcast message, judging whether a desktop shortcut icon of the original application program with the identifier exists on the desktop; when the desktop shortcut icon of the original application program with the identifier exists on the desktop, the desktop shortcut icon with the identifier is generated for the double-opening application program, and the desktop shortcut icon with the identifier is displayed on the desktop. After the double-opening application program is successfully installed, the desktop shortcut icon with the mark is generated and displayed on the desktop, so that a user can distinguish the original application program from the double-opening application program through the mark.
Optionally, after the sub-account is opened, only the system process that needs to be called for opening the application installed in the sub-account is allowed in the process loading space of the sub-account, and occupation of system resources by the system process unrelated to the dual-open application in the process loading space of the sub-account is eliminated.
Optionally, the resources of the specified type to be stored are stored in the public directory of the first data storage space by controlling the dual-open application program, and the resources of the specified type are allowed to be read from the public directory of the first data storage space when the dual-open application program needs to access the resources of the specified type, so that the resources of the specified type are shared between the main account and the sub-account.
Optionally, the selection prompt box is displayed by receiving a program calling request carrying the designated identifier sent by the third-party application program, so that the user can select one of the original application program and the double-open application program for calling, and the calling flexibility is improved.
Optionally, when the selection prompt box is used to select and invoke an original application program, invoking an original process related to the original application program, where the original process uses data in the first resource directory; when the selection prompt box is used for selecting and calling the double-opening application program, calling a double-opening process related to the double-opening application program, wherein the double-opening process uses data in a second resource directory; the effect of calling the application program corresponding to the user selection according to the user selection is achieved.
An exemplary embodiment of the present disclosure provides an application dual-opening device, which can implement the application dual-opening method provided by the present disclosure, and is applied to an electronic device, a system of the electronic device supports setting a main account and a sub-account, and the application dual-opening device includes: a processor, a memory for storing processor-executable instructions;
wherein the processor is configured to:
installing a designated original application program in a system by using a main account, allocating a first resource directory for the original application program, and setting operation permission for the first resource directory by using the identifier of the original application program and the main account, wherein the first resource directory is used for storing relevant information required by the original application program installed by the main account when the original application program runs;
installing a double-open application program which is the same as the original application program in the system by using a sub-account, allocating a second resource directory for the double-open application program, and setting operation permission for the second resource directory by using the identifier of the double-open application program and the sub-account, wherein the second resource directory is used for storing relevant information required by the double-open application program installed by the sub-account during operation;
wherein, the original application program and the double-opening application program are allowed to be opened simultaneously, and the identifier of the original application program is the same as that of the double-opening application program.
Fig. 5 is a block diagram illustrating an apparatus for dual-boot applications, which is applied to an electronic device whose system supports setting up a main account and a sub-account, and which may be a mobile terminal, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like, according to an exemplary embodiment.
Referring to fig. 5, the apparatus 500 may include one or more of the following components: processing component 502, memory 504, power component 506, multimedia component 508, audio component 510, input/output (I/O) interface 512, sensor component 514, and communication component 516.
The processing component 502 generally controls overall operation of the device 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 502 may include one or more processors 520 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 502 can include one or more modules that facilitate interaction between the processing component 502 and other components. For example, the processing component 502 can include a multimedia module to facilitate interaction between the multimedia component 508 and the processing component 502.
The memory 504 is configured to store various types of data to support operations at the apparatus 500. Examples of such data include instructions for any application or method operating on device 500, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 504 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 506 provides power to the various components of the device 500. The power components 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 500.
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 an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 500 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 510 is configured to output and/or input audio signals. For example, audio component 510 includes a Microphone (MIC) configured to receive external audio signals when apparatus 500 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 504 or transmitted via the communication component 516. In some embodiments, audio component 510 further includes a speaker for outputting audio signals.
The I/O interface 512 provides an interface between the processing component 502 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 514 includes one or more sensors for providing various aspects of status assessment for the device 500. For example, the sensor assembly 514 may detect an open/closed state of the apparatus 500, the relative positioning of the components, such as a display and keypad of the apparatus 500, the sensor assembly 514 may also detect a change in the position of the apparatus 500 or a component of the apparatus 500, the presence or absence of user contact with the apparatus 500, orientation or acceleration/deceleration of the apparatus 500, and a change in the temperature of the apparatus 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 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 assembly 514 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 516 is configured to facilitate communication between the apparatus 500 and other devices in a wired or wireless manner. The apparatus 500 may 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 communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 500 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the application dual-boot method described above.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 504 comprising instructions, executable by the processor 520 of the apparatus 500 to perform the application dual-open method described above is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein that, when executed by a processor of apparatus 500, enable apparatus 500 to perform the steps shown in fig. 1, 2A, 2C, and 2D.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (14)

1. The utility model provides an application program double-opening method, which is characterized in that, is applied to the electronic equipment, the system of the electronic equipment supports setting the main account and the sub-account, the method includes:
installing a designated original application program in the system by using the primary account, allocating a first resource directory for the original application program, setting operation permission for the first resource directory by using the identifier of the original application program and the primary account, wherein the first resource directory is used for storing relevant information required by the original application program installed by the primary account during running, the data in the first resource directory allows the application program opened by the primary account and having the identifier of the original application program to be called, and the operation permission at least comprises reading the stored data in the first resource directory, storing the data in the first resource directory and deleting the data in the first resource directory;
installing a double-open application program which is the same as the original application program in the system by using the sub-account, allocating a second resource directory for the double-open application program, setting operation permission for the second resource directory by using the identifier of the double-open application program and the sub-account, wherein the second resource directory is used for storing relevant information required by the double-open application program installed in the sub-account during operation, the data in the second resource directory allows the application program opened by the sub-account and provided with the identifier of the double-open application program to be called, and the operation permission at least comprises reading the stored data in the second resource directory, storing the data in the second resource directory and deleting the data in the second resource directory;
the original application program and the double-open application program are allowed to be started simultaneously, and the identifier of the original application program is the same as that of the double-open application program;
setting a first data storage space related to the primary account for the primary account when the primary account is successfully registered on the system;
when the sub-account is successfully registered on the system, setting a second data storage space related to the sub-account for the sub-account;
controlling the double-open application program to store the resources of the specified type to be stored into the public directory of the first data storage space, and controlling the double-open application program to store the resources of the unspecified type to be stored into the second data storage space;
and when the double-open application program needs to access the resources of the specified type, controlling the double-open application program to read from the public directory of the first data storage space.
2. The method of claim 1, further comprising:
and when the sub-account is opened, only allowing to open the system process which needs to be called by the application program installed in the sub-account in the process loading space of the sub-account.
3. The method of claim 1, further comprising:
after the double-open application program is successfully installed, sending a broadcast message to a desktop of the electronic equipment, wherein the broadcast message contains an identifier of the double-open application program;
after the desktop receives the broadcast message, judging whether a desktop shortcut icon of the original application program with the identifier exists on the desktop;
and when the desktop shortcut icon of the original application program with the identification exists on the desktop, generating a desktop shortcut icon with a mark for the double-opening application program, and displaying the desktop shortcut icon with the mark on the desktop.
4. The method according to any one of claims 1 to 3, further comprising:
receiving a program calling request which is sent by a third-party application program and carries an appointed identification;
and displaying a selection prompt box, wherein the selection prompt box is used for guiding and selecting the original application program with the specified identification or the double-opening application program with the specified identification.
5. The method of claim 4, wherein the selection prompt box comprises a desktop shortcut icon with the original application and a desktop shortcut icon with the dual open application.
6. The method of claim 4, further comprising:
when the original application program is selected to be called by using the selection prompt box, calling an original process related to the original application program, wherein the original process uses data in the first resource directory;
and when the selection prompt box is utilized to select and call the double-opening application program, calling a double-opening process related to the double-opening application program, wherein the double-opening process uses the data in the second resource directory.
7. An application program double-opening device applied to an electronic device, wherein a system of the electronic device supports setting a main account and a sub-account, the device comprises:
a first setting module, configured to install a specified original application program in the system by using the primary account, allocate a first resource directory to the original application program, and set an operation right for the first resource directory by using an identifier of the original application program and the primary account, where the first resource directory is used to store relevant information required when the original application program installed by the primary account runs, data in the first resource directory allows an application program with the identifier of the original application program to be invoked when the primary account is opened, and the operation right at least includes reading stored data in the first resource directory, performing data storage in the first resource directory, and deleting data in the first resource directory;
the second setting module is configured to install a double-open application program which is the same as the original application program in the system by using the sub-account, allocate a second resource directory to the double-open application program, set an operation permission for the second resource directory by using the identifier of the double-open application program and the sub-account, wherein the second resource directory is used for storing relevant information required by the double-open application program installed by the sub-account during running, the data in the second resource directory allows the application program with the identifier of the double-open application program opened by the sub-account to be called, and the operation permission at least comprises reading the stored data in the second resource directory, storing the data in the second resource directory and deleting the data in the second resource directory;
the original application program and the double-open application program are allowed to be started simultaneously, and the identifier of the original application program is the same as that of the double-open application program;
a third setting module configured to set a first data storage space associated with the primary account for the primary account upon successful registration of the primary account on the system;
a fourth setting module 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;
the first control module is configured to control the dual-open application program to store the specified type of resources to be stored into the public directory of the first data storage space, and control the dual-open application program to store the unspecified type of resources to be stored into the second data storage space;
a second control module configured to control the dual-open application to read from the common directory of the first data storage space when the dual-open application needs to access the specified type of resource.
8. The apparatus of claim 7, further comprising:
and the allowing module is configured to allow only the system process which needs to be called by the application program installed in the sub-account to be opened in the process loading space of the sub-account after the sub-account is opened.
9. The apparatus of claim 7, further comprising:
the broadcasting module is configured to send a broadcasting message to the desktop of the electronic device after the dual-open application program is successfully installed, wherein the broadcasting message contains the identification of the dual-open application program;
the judging module is configured to judge whether a desktop shortcut icon of the original application program with the identifier exists on the desktop after the desktop receives the broadcast message sent by the broadcasting module;
and the first display module is configured to generate a marked desktop shortcut icon for the double-opening application program and display the marked desktop shortcut icon on the desktop when the judgment result of the judgment module indicates that the desktop shortcut icon of the original application program with the identification exists on the desktop.
10. The apparatus of any of claims 7 to 9, further comprising:
the receiving module is configured to receive a program calling request which is sent by a third-party application program and carries a specified identifier;
and the second display module is configured to display a selection prompt box, and the selection prompt box is used for guiding and selecting the original application program with the specified identification carried by the program calling request received by the receiving module or the double-open application program with the specified identification carried by the program calling request received by the receiving module.
11. The apparatus of claim 10, wherein the selection prompt box comprises a desktop shortcut icon with the original application and a desktop shortcut icon with the dual open application.
12. The apparatus of claim 10, further comprising:
the first calling module is configured to call an original process related to the original application program when the original application program is selected to be called by using the selection prompt box displayed by the second display module, and the original process uses data in the first resource directory;
and the second calling module is configured to call the double-opening process related to the double-opening application program when the selection prompt box displayed by the second display module is used for selecting and calling the double-opening application program, and the double-opening process uses the data in the second resource directory.
13. An application program double-opening device applied to an electronic device, wherein a system of the electronic device supports setting a main account and a sub-account, the device comprises:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to:
installing a designated original application program in the system by using the primary account, allocating a first resource directory for the original application program, setting operation permission for the first resource directory by using the identifier of the original application program and the primary account, wherein the first resource directory is used for storing relevant information required by the original application program installed by the primary account during running, the data in the first resource directory allows the application program opened by the primary account and having the identifier of the original application program to be called, and the operation permission at least comprises reading the stored data in the first resource directory, storing the data in the first resource directory and deleting the data in the first resource directory;
installing a double-open application program which is the same as the original application program in the system by using the sub-account, allocating a second resource directory for the double-open application program, setting operation permission for the second resource directory by using the identifier of the double-open application program and the sub-account, wherein the second resource directory is used for storing relevant information required by the double-open application program installed in the sub-account during operation, the data in the second resource directory allows the application program opened by the sub-account and provided with the identifier of the double-open application program to be called, and the operation permission at least comprises reading the stored data in the second resource directory, storing the data in the second resource directory and deleting the data in the second resource directory;
the original application program and the double-open application program are allowed to be started simultaneously, and the identifier of the original application program is the same as that of the double-open application program;
setting a first data storage space related to the primary account for the primary account when the primary account is successfully registered on the system;
when the sub-account is successfully registered on the system, setting a second data storage space related to the sub-account for the sub-account;
controlling the double-open application program to store the resources of the specified type to be stored into the public directory of the first data storage space, and controlling the double-open application program to store the resources of the unspecified type to be stored into the second data storage space;
and when the double-open application program needs to access the resources of the specified type, controlling the double-open application program to read from the public directory of the first data storage space.
14. A computer-readable storage medium storing at least one instruction which, when executed by a processor, implements the dual application boot method of any of claims 1-6.
CN201610290470.5A 2016-05-04 2016-05-04 Application program double-opening method and device Active CN106020943B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610290470.5A CN106020943B (en) 2016-05-04 2016-05-04 Application program double-opening method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610290470.5A CN106020943B (en) 2016-05-04 2016-05-04 Application program double-opening method and device

Publications (2)

Publication Number Publication Date
CN106020943A CN106020943A (en) 2016-10-12
CN106020943B true CN106020943B (en) 2020-06-19

Family

ID=57081674

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610290470.5A Active CN106020943B (en) 2016-05-04 2016-05-04 Application program double-opening method and device

Country Status (1)

Country Link
CN (1) CN106020943B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106503157B (en) * 2016-10-24 2020-05-19 宇龙计算机通信科技(深圳)有限公司 Multi-open application system and data sharing access method and system thereof
CN106528141B (en) * 2016-10-28 2019-06-11 宇龙计算机通信科技(深圳)有限公司 Task sweep-out method and system
CN106331178B (en) * 2016-10-28 2019-08-02 宇龙计算机通信科技(深圳)有限公司 A kind of information sharing method and mobile terminal
CN109923544B (en) * 2016-11-08 2022-05-06 华为技术有限公司 Authentication method and electronic equipment
CN106708604B (en) * 2016-12-29 2020-02-11 北京奇虎科技有限公司 Processing method and device for asynchronous call mechanism of android application
CN106843868B (en) * 2017-01-13 2020-09-01 北京安云世纪科技有限公司 Multi-account login method and device and mobile terminal
CN106933634A (en) * 2017-03-09 2017-07-07 北京奇虎科技有限公司 The installation method of Android application, device and electronic equipment
CN106933455B (en) * 2017-03-31 2021-01-15 联想(北京)有限公司 Application icon processing method and processing device
CN107357643B (en) * 2017-06-30 2021-01-29 北京小米移动软件有限公司 Application calling method and device and computer readable storage medium
CN110650129B (en) * 2017-09-20 2022-02-18 青岛海信移动通信技术股份有限公司 Account login method and device and computer readable storage medium
CN107766099B (en) * 2017-09-27 2022-01-25 北京小米移动软件有限公司 Application double-opening method and device
CN109491725B (en) * 2018-11-12 2022-12-27 火烈鸟网络(广州)股份有限公司 Interactive multi-opening method and system of application program, storage medium and electronic equipment
CN111193694B (en) * 2019-07-05 2021-09-28 腾讯科技(深圳)有限公司 Application authorization management method, terminal and medium based on dual-system operating environment
WO2022105359A1 (en) * 2020-11-23 2022-05-27 深圳传音控股股份有限公司 Mobile terminal control method, mobile terminal and storage medium
CN112468647B (en) * 2020-11-23 2022-08-02 深圳传音控股股份有限公司 Control method of mobile terminal, mobile terminal and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102231116A (en) * 2011-07-04 2011-11-02 成都市华为赛门铁克科技有限公司 Application program virtualization installing and loading method and device
US8756608B2 (en) * 2009-07-01 2014-06-17 International Business Machines Corporation Method and system for performance isolation in virtualized environments
CN104516763A (en) * 2015-01-23 2015-04-15 深圳市中兴移动通信有限公司 Starting method and device for application program
CN104866342A (en) * 2015-05-07 2015-08-26 北京数字天域科技有限责任公司 Method and device for simultaneously starting multiple same applications on intelligent terminal
CN105468405A (en) * 2015-11-18 2016-04-06 深圳市创想天空科技股份有限公司 Installation processing method and device of application program

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105224322B (en) * 2015-09-25 2018-10-16 维沃移动通信有限公司 A kind of attend to anything else method and the terminal of application program

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8756608B2 (en) * 2009-07-01 2014-06-17 International Business Machines Corporation Method and system for performance isolation in virtualized environments
CN102231116A (en) * 2011-07-04 2011-11-02 成都市华为赛门铁克科技有限公司 Application program virtualization installing and loading method and device
CN104516763A (en) * 2015-01-23 2015-04-15 深圳市中兴移动通信有限公司 Starting method and device for application program
CN104866342A (en) * 2015-05-07 2015-08-26 北京数字天域科技有限责任公司 Method and device for simultaneously starting multiple same applications on intelligent terminal
CN105468405A (en) * 2015-11-18 2016-04-06 深圳市创想天空科技股份有限公司 Installation processing method and device of application program

Also Published As

Publication number Publication date
CN106020943A (en) 2016-10-12

Similar Documents

Publication Publication Date Title
CN106020943B (en) Application program double-opening method and device
CN107329742B (en) Software development kit calling method and device
CN106170809B (en) Virtual card display method and device
CN107370772B (en) account login method and device and computer readable storage medium
CN105893136B (en) Multitask management method and device
CN106790043B (en) Method and device for sending message in live broadcast application
CN106453052B (en) Message interaction method and device
EP3163834A1 (en) Method and device for equipment control
EP3462367A1 (en) Method and apparatus for displaying application interface
CN111240694A (en) Application detection method, application detection device and storage medium
EP2985697A1 (en) Method and device for controlling router plug-in
EP3255575B1 (en) Application triggering method and device
US11347988B2 (en) Method and device for configuring NFC smart card
CN110166564B (en) Information communication method, terminal and storage medium
CN105760796B (en) Application security processing method and device
CN109885360B (en) Data processing method, device and storage medium
US10558973B2 (en) Method and apparatus for card activation
CN107220008B (en) Storage space reservation method and device
CN107357643B (en) Application calling method and device and computer readable storage medium
CN107070816B (en) Application identification method and device and mobile terminal
CN113805763A (en) Authority authorization method, device and storage medium
CN109194639B (en) Message receiving and processing method, device, terminal and readable storage medium
CN113805978A (en) Authority display method, device and storage medium
CN107402784B (en) Application management method and application management device
CN112035246A (en) Method, device and system for acquiring virtual resources, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant