Method, device, equipment and medium for opening multiple Android applications

By using the container management module to create and install multiple Android application containers in the Linux system, the problem of logging in to multiple Android application accounts on the device at the same time is solved, achieving timely acquisition of messages and stable management of accounts.

CN114047933BActive Publication Date: 2024-10-29DOUYIN VISION CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202111221721.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-20
Publication Date
2024-10-29
Estimated Expiration
2041-10-20

AI Technical Summary

Technical Problem

The existing technology cannot log in to multiple Android application accounts on one device at the same time, resulting in delayed viewing of messages or missing important messages.

Method used

By using the container management module in the Linux system, it receives the instruction to start the Android target application, queries the number of Android applications in the created container, and creates or installs new containers and applications based on the difference to achieve the simultaneous running of multiple Android applications.

Benefits of technology

It enables you to log in to multiple Android application accounts on one device at the same time, ensuring timely access to messages from different accounts, and avoiding the risk of not checking messages in time or missing important messages.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114047933B_ABST
    Figure CN114047933B_ABST
Patent Text Reader

Abstract

The present invention provides a method, apparatus, device and medium for opening multiple Android applications, wherein the method comprises: receiving an instruction for starting an Android target application, wherein the instruction carries a first number of Android target applications, and the first number is at least two; sending a first query instruction to an Android application module in a container that has been created under a Linux system to obtain a second number of Android target applications in the created container; if the first number is greater than the second number, sending an instruction for installing the Android target application to an Android application module in a container that has not been installed with the Android target application in the created container, and / or sending an instruction for creating a new container to a container creation module based on a difference between the first number and the second number, sending the Android target application to the new container, and sending an instruction for installing the Android target application to the Android application module in the new container.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computers, and in particular to a method, device, equipment and medium for opening multiple Android applications. Background Art

[0002] For the same Android application, there may be a need to log in to multiple accounts at the same time. For example, in order to separate work and life, you need to log in to two WeChat accounts on the same device at the same time.

[0003] However, currently only one WeChat account can be logged in on a device, and when checking messages from different accounts, you need to switch back and forth between WeChat accounts to check messages.

[0004] Since messages from accounts that are not logged in cannot send message reminders, it is easy to cause consequences such as not checking messages in time or missing important messages. Summary of the invention

[0005] The present invention provides a method, device, equipment and medium for opening multiple Android applications, which are used to solve the defect in the prior art that multiple accounts of the same Android application cannot be logged in at the same time, and can ensure that messages of different accounts are obtained in a timely manner.

[0006] In a first aspect, the present invention provides a method for opening multiple Android applications, which is applied to a container management module, comprising: receiving an instruction for starting an Android target application, wherein the instruction carries a first number of the Android target applications, and the first number is at least two; sending a first query instruction to an Android application module in a container created under a Linux system to obtain a second number of the Android target applications in the created container; if the first number is greater than or equal to the second number, sending an instruction to install the Android target application to an Android application module in a container in the created container that does not have the Android target application installed, and / or sending an instruction to create a new container to a container creation module based on a difference between the first number and the second number, sending the Android target application to the new container, and sending an instruction to install the Android target application to the Android application module in the new container.

[0007] The method for opening multiple Android applications provided by the present invention is applied to a container management module and also includes: if the first number is less than the second number, sending a second query instruction to the Android application module in the created container under the Linux system to obtain the third number of the Android target applications installed in the created container; if the first number is greater than the third number, sending an instruction to install the Android target application to the Android application module in the container in the created container where the Android target application is not installed based on the difference between the first number and the second number.

[0008] According to the method for opening multiple Android applications provided by the present invention, it is applied to a container management module and also includes: receiving a startup entry of the Android target application, creating a shortcut of the Android target application on a Linux desktop and configuring startup parameters, wherein the startup parameters include an application entry and a container ID; and / or, sending an instruction to uninstall the Android target application to an Android application module of the container where the Android target application is located; deleting the shortcut of the Android target application in the Linux desktop; and / or, before receiving an instruction to start multiple Android target applications, it also includes: creating a virtual device corresponding to the at least two containers; sending an instruction to create at least two containers to the container creation module; sending an instruction to create a default container to the container creation module; presetting a file directory, and sending the path of the file directory to the container creation module.

[0009] In a second aspect, the present invention also provides a method for opening multiple Android applications, which is applied to an Android application module, comprising: receiving a first query instruction, wherein the query instruction is used to query the second number of Android target applications in a container created under a Linux system; if the first number of Android target applications carried in the instruction for starting the Android target application is greater than the second number, receiving an instruction to install the Android target application, and installing the Android target application.

[0010] The method for opening multiple Android applications provided by the present invention is applied to an Android application module and also includes: if the first number is less than the second number, receiving a second query instruction, the second query instruction being used to query a third number of the Android target applications installed in the created container; if the first number is greater than the third number, receiving an instruction to install the Android target application, and installing the Android target application.

[0011] In a third aspect, the present invention also provides a device for opening multiple Android applications, which is applied to a container management module, comprising: a first receiving unit, which receives an instruction for starting an Android target application, wherein the instruction carries a first number of the Android target applications, and the first number is at least two; a first query unit, which is used to send a first query instruction to an Android application module in a container created under a Linux system to obtain a second number of the Android target applications in the created container; a first processing unit, which is used to send an instruction to install the Android target application to the Android application module in a container in the created container that does not have the Android target application installed if the first number is greater than or equal to the second number, and / or send an instruction to create a new container to the container creation module based on the difference between the first number and the second number, send the Android target application to the new container, and send an instruction to install the Android target application to the Android application module in the new container.

[0012] In a fourth aspect, the present invention also provides a device for opening multiple Android applications, which is applied to an Android application module, and includes: a first receiving unit, used to receive a first query instruction, wherein the query instruction is used to query the second number of Android target applications in a container created under a Linux system; a first processing unit, used to receive an instruction to install the Android target application if the first number of the Android target application carried in the instruction to start the Android target application is greater than the second number, and install the Android target application.

[0013] In a fifth aspect, the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for opening multiple Android applications as described in the first aspect is applied to the steps of a container management module, or the method for opening multiple Android applications as described in the second aspect is applied to the steps of an Android application module.

[0014] In a sixth aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for opening multiple Android applications described in the first aspect, the steps applied to a container management module, or the method for opening multiple Android applications described in the second aspect, the steps applied to an Android application module.

[0015] In the seventh aspect, the present invention also provides a computer program product having executable instructions stored thereon, which, when executed by a processor, enables the processor to implement the method for opening multiple Android applications as described in any one of claims 1 to 3, applied to the steps of a container management module, or the method for opening multiple Android applications as described in any one of claims 4 to 5, applied to the steps of an Android application module.

[0016] The present invention provides a method, device, equipment and medium for opening multiple Android applications, by receiving an instruction for starting an Android target application, wherein the instruction carries a first number of Android target applications, and the first number is at least two; sending a first query instruction to an Android application module in a container created under a Linux system to obtain a second number of Android target applications in the created container; if the first number is greater than the second number, sending an instruction for installing the Android target application to an Android application module in a container in which the Android target application is not installed in the created container, and / or sending an instruction for creating a new container to a container creation module according to the difference between the first number and the second number, sending the Android target application to the new container, and sending an instruction for installing the Android target application to the Android application module in the new container. By installing the same Android application in different containers, it is possible to run multiple Android applications at the same time, meet the requirements of logging into multiple accounts at the same time with the same Android application, and facilitate user operations. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0018] Figure 1 A method for opening multiple Android applications provided by the present invention is a flowchart of an embodiment of a container management module;

[0019] Figure 2 A method for opening multiple Android applications provided by the present invention is a flowchart of an embodiment of an Android application module;

[0020] Figure 3 A schematic diagram of an application scenario provided by the present invention;

[0021] Figure 4A schematic diagram of the structure of a device for opening multiple Android applications provided by the present invention, which is applied to an embodiment of a container management module;

[0022] Figure 5 Another device for opening multiple Android applications provided by the present invention is a schematic diagram of the composition structure of an embodiment of an Android application module;

[0023] Figure 6 It is a schematic diagram of the physical structure of an electronic device provided by the present invention. DETAILED DESCRIPTION

[0024] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0025] In the following embodiments, the Android operating system includes the Android OS released by Google, AOSP, and various derivative systems based on AOSP, such as MIUI, EMUI, One UI, etc.

[0026] In the following embodiments, the Linux operating system, the full name of which is the GNU / Linux operating system, such as Ubuntu, Debian, RedHat, etc. The Linux operating system is not limited to running on a physical machine, but can also be an operating system hosted on other operating systems, such as WSL in Windows system.

[0027] In the following embodiments, the Android application module refers to the application management module in Android, such as PackageMangerService, PackageInstaller, etc., which is used to perform the installation of Android applications (such as receiving installation files in the apk, abb and other formats of the application and installing them, receiving the download link of the application to obtain the installation file and install it, receiving the name of the application and other information to wake up the application store and install it), uninstallation, query and other functions.

[0028] In the following embodiments, there are multiple ways to deploy the Android operating system environment in the Linux operating system, including but not limited to LXC, LXD, Docker, etc.

[0029] In the following embodiments, the Linux desktop refers to a specific implementation of the desktop environment of the Linux operating system, including but not limited to KED, GNOME, Unity, MATE, Cinnamon, etc.

[0030] Figure 1 The present invention provides a method for opening multiple Android applications, which is applied to an electronic device, wherein a Linux operating system is run in the electronic device, and a container is deployed in the Linux system to support an Android operating system environment, wherein the Linux system includes a container management module. Figure 1 As shown, the method for opening multiple Android applications includes the following steps:

[0031] S101, receiving an instruction for starting an Android target application, wherein the instruction carries a first number of Android target applications, and the first number is at least two.

[0032] In step S101, the Android target application refers to the Android application that the user wants to start at the same time. The instruction initiated by the user to start the Android target application can be transmitted through the communication protocol module. The communication protocol module is located in the container management module and can realize the communication function through socket, binder, pipe, etc. The first number can be set according to the actual needs of the user. For example, the user needs to log in to 3 accounts on the Android target application at the same time, then the number of multiple Android target applications is 3; the user needs to log in to 5 accounts on the Android target application at the same time, then the number of multiple Android target applications is 5; the user needs to open 4 instances of the same application at the same time, then the number of multiple Android target applications is 4. The embodiment of the present invention is not limited to this.

[0033] S102: Send a first query instruction to the Android application module in the created container under the Linux system to obtain a second number of Android target applications in the created container.

[0034] In step S102, each container has an Android application module, that is, there is a one-to-one correspondence between the Android application module and the container. The second number includes Android target applications installed in the created container and Android target applications that exist but are not installed in the created container (for example, the installation file of the target application exists in the container but is not installed).

[0035] S103: If the first number is greater than the second number, an instruction to install the Android target application is sent to the Android application module in the container in the created container where the Android target application is not installed, and / or based on the difference between the first number and the second number, an instruction to create a new container is sent to the container creation module, the Android target application is sent to the new container, and an instruction to install the Android target application is sent to the Android application module in the new container.

[0036] In step S103, the container in which the Android target application is not installed in the created container refers to a container in which the Android target application already exists but the Android target application is not installed. The container creation module can realize the creation, startup and deletion of the container.

[0037] The creation of containers can be based on LXC technology. LXC is the abbreviation of Linux Containers, which means Linux software container. LXC is an operating system-level virtualization technology and a user space interface for the Linux kernel container function. It packages the application software system into a software container, which contains the code of the application software itself, as well as the required operating system kernel and libraries. Through a unified namespace and shared API, the available hardware resources of different software containers are allocated to create an independent sandbox operating environment for applications, allowing Linux users to easily create and manage system or application containers.

[0038] In the Linux kernel, LXC technology uses the cgroups function to achieve resource segmentation. It also provides the namespace segmentation function, so that the operating system environment seen by the application is segmented into independent intervals, including the process tree, network, user ID and mounted file system. LXC uses the cgroups and namespace functions to provide an independent operating system environment for the application software.

[0039] Based on the design concept of LXC, further container implementation methods such as LXD and Docker were derived.

[0040] When the first number is greater than the second number, that is, when the number of Android target applications that need to be started simultaneously is greater than the number of Android target applications in the created container, there are two possible situations.

[0041] In the first case, an instruction to install the Android target application is first sent to the container in the created container that does not have the Android target application installed, and then, according to the difference between the first number and the second number, an instruction to create a new container corresponding to the difference is sent, the Android target application is sent to the new container, and then an instruction to install the Android target application in the new container is issued. For example, 5 Android target applications need to be opened in the instruction, that is, the first number is 5, and the Android target applications in the created container are 3, that is, the second number is 3, which satisfies the first number greater than the second number. First, an instruction to install the Android target application is sent to the Android application module of the container in the created container that does not have the Android target application installed. At this time, 3 containers in the created container have installed the Android target application; the difference between the first number and the second number is 2, and then an instruction to create 2 new containers is issued; then the Android target application is sent to the 2 new containers respectively, and an instruction to install the Android target application in the 2 new containers is sent. At this time, all containers of the Linux system have installed 5 Android target applications, and multiple openings of the Android target application can be realized.

[0042] The second situation is to send an instruction to create a new container corresponding to the number of the difference, send the Android target application to the new container, and then issue an instruction to install the Android target application in the new container. The condition for this situation to occur is that the second number is 0. For example, 5 Android target applications need to be opened in the instruction, that is, the first number is 5, and the Android target application in the created container is 0, that is, the second number is 0, which satisfies the first number greater than the second number. Since the second number is 0, it means that there is no container with the Android target application in the created container, so it is necessary to directly issue an instruction to create a new container. Since the difference between the first number and the second number is 5, an instruction to create 5 new containers is issued; then the Android target application is sent to the 5 new containers respectively, and an instruction to install the Android target application in the 5 new containers is sent. At this time, all containers of the Linux system have installed 5 Android target applications, and multiple openings of Android target applications can be achieved.

[0043] When the first number is equal to the second number, there is a situation where an instruction to install the Android target application is directly sent to the container in the created container where the Android target application is not installed. For example, the instruction needs to open 5 Android target applications, that is, the first number is 5, and the number of Android target applications in the created container is 5, that is, the second number is 5, and the first number is equal to the second number. An instruction to install the Android target application is sent to the Android application module of the container in the created container where the Android target application is not installed. At this time, 5 Android target applications have been installed in the created container under the Linux system, and multiple openings of Android target applications can be realized.

[0044] The method for opening multiple Android applications provided in the present invention is applied to the container management module, by receiving an instruction to start an Android target application, wherein the instruction carries a first number of Android target applications, and the first number is at least two; a first query instruction is sent to the Android application module in the container created under the Linux system to obtain the second number of Android target applications in the created container; if the first number is greater than the second number, an instruction to install the Android target application is sent to the Android application module in the container in which the Android target application is not installed in the created container, and / or according to the difference between the first number and the second number, an instruction to create a new container is sent to the container creation module, the Android target application is sent to the new container, and an instruction to install the Android target application is sent to the Android application module in the new container. By installing the same Android application in different containers, it is possible to run multiple identical Android applications at the same time, meet the requirements of the same Android application logging in to multiple accounts at the same time, multiple accounts for the same game, and multiple identical applications running at the same time, without switching accounts back and forth, which facilitates user operations and avoids situations such as information loss caused by switching accounts back and forth.

[0045] In some optional embodiments, the method for opening multiple Android applications is applied to a container management module and also includes: if the first number is less than the second number, sending a second query instruction to the Android application module in the created container under the Linux system to obtain a third number of installed Android target applications in the created container; if the first number is greater than the third number, sending an instruction to install the Android target application to the Android application module in the container in the created container where the Android target application is not installed based on the difference between the first number and the third number.

[0046] Among them, the first number is less than the second number, that is, the number of Android target applications that need to be opened at the same time is greater than the number of Android target applications in the created container. At this time, it is also necessary to obtain the third number of Android target applications installed in the created container. The first number is greater than the third number, that is, the number of Android target applications that need to be opened at the same time is greater than the number of Android target applications installed in the created container, determine the difference between the first number and the third number, that is, determine the number of Android target applications that still need to be installed, and send installation instructions to the Android application modules of the created containers corresponding to the number of Android target applications that are not installed. For example, the instruction needs to open 3 Android target applications, that is, the first number is 3, and the number of Android target applications in the created container is 5, that is, the second number is 5, which satisfies the first number is less than the second number; the number of Android target applications installed in the created container is 2, that is, the third number is 2, at this time, 2 containers in the created container have installed the Android target application, the difference between the first number and the third number is 1, and an instruction to install the Android target application is sent to the Android application module of a created container that does not have the Android target application installed. At this time, 3 containers in the created container have installed the Android target application, and multiple openings of the Android target application can be achieved.

[0047] If the first number is less than or equal to the third number, that is, the number of Android target applications that meet the requirements of the created container already exists, there is no need to issue any installation instructions, and the created container corresponding to the number of Android target applications can be arbitrarily selected to start the Android target application therein, so that multiple openings of the Android target application can be achieved. For example, the instruction requires the opening of 3 Android target applications, that is, the first number is 3, and the number of Android target applications in the created container is 5, that is, the second number is 5, which satisfies the first number being less than the second number; the number of Android target applications installed in the created container is 5, that is, the third number is 5, and at this time, the created container already has 5 containers with the Android target application installed, and you can choose to start the Android target application in any 3 containers, so that multiple openings of the Android target application can be achieved.

[0048] For another example, the instruction requires opening three Android target applications, that is, the first number is 3, and the number of Android target applications in the created container is 5, that is, the second number is 5, which satisfies the first number being less than the second number; the number of Android target applications installed in the created container is 3, that is, the third number is 3. At this time, three containers in the created container have the Android target application installed. You can choose to start the Android target application in these three containers, so that multiple openings of the Android target application can be achieved.

[0049] In some optional embodiments, the method for opening multiple Android applications is applied to a container management module and also includes: receiving a startup entry of an Android target application, creating a shortcut of the Android target application on a Linux desktop and configuring startup parameters, the startup parameters including an application entry and a container ID; sending an instruction to uninstall the Android target application to an Android application module corresponding to the Android target application; and deleting the shortcut of the Android target application on the Linux desktop.

[0050] Among them, by receiving the startup entry sent by the Android application module, the startup entry of the Android target application in the corresponding container can be obtained. At the same time, a shortcut of each Android target application in the container is created on the Linux desktop. The shortcut can be an icon of the Android target application. Each Android target application has a corresponding icon. Since the Android target applications started are the same, the corresponding generated icons are also the same. The same Android target applications in different containers can be distinguished by the name of the icon. After creating the shortcut, the startup parameters are configured to start the corresponding Android target application in the container. The instruction to uninstall the Android target application is issued by the user. The user places the cursor on the icon of the Android target application, right-clicks and selects the uninstall option. The container management module can obtain the instruction to uninstall the Android target application, and sends it to the corresponding Android application module according to the container ID of the uninstalled Android target application to realize the uninstallation of the Android target application. After the Android target application is uninstalled, the shortcut of the Android target application in the Linux desktop is deleted accordingly.

[0051] In some optional embodiments, the method for opening multiple Android applications is applied to a container management module, and before receiving an instruction to start multiple Android target applications, it also includes: creating a virtual device corresponding to at least two containers; sending an instruction to create at least two containers to a container creation module; sending an instruction to create a default container to the container creation module; and presetting a file directory, and sending the path of the file directory to the container creation module.

[0052] The virtual device can be a binder virtual device. The binder virtual device implements communication between processes. In a Linux system, there is usually only one binder virtual device. In order to run multiple containers, the corresponding binder virtual device needs to be established before the container is created. At the same time, a dedicated directory for the container needs to be created to isolate the file system used by multiple applications.

[0053] The container management module enables the binder_linux module through the modprobe binder_linux command line, and a binder virtual device can be created through the mount -t binder binder binderfs command.

[0054] The preset file directory is used to store files, applications, parameters or other related information related to the container. The path of the file directory is sent to the container creation module to facilitate the container creation module to obtain the created path when creating the container.

[0055] In order to realize multiple Android applications, at least two containers are created when creating a container, which can ensure that at least two identical Android applications exist in their respective corresponding containers. The default container is used to store Android applications installed by the user by default. In other words, when the user does not specify that an Android application is installed in a specific container, the Android application is installed in the default container.

[0056] Figure 2 A method for opening multiple Android applications provided by the present invention is applied to a flowchart of an embodiment of an Android application module. Figure 2 As shown, the method includes:

[0057] S201, receiving a first query instruction, where the query instruction is used to query a second number of Android target applications in a container that has been created under a Linux system.

[0058] In step S201, the query instruction is sent by the container management module. The description of this step is detailed in step S102, which will not be repeated here.

[0059] S202: If the first number of Android target applications carried in the instruction for starting the Android target application is greater than or equal to the second number, receive an instruction for installing the Android target application, and install the Android target application.

[0060] In step S202, the detailed description of step S202 is given in step S103, which will not be repeated here.

[0061] In some optional embodiments, the method for opening multiple Android applications is applied to an Android application module and also includes: if the first number is less than the second number, receiving a second query instruction, the second query instruction is used to query a third number of installed Android target applications in the created container; if the first number is greater than the third number, receiving an instruction to install the Android target application, and installing the Android target application.

[0062] For detailed description of the above contents, please refer to step S201 and step S202, which will not be repeated here.

[0063] Figure 3 A schematic diagram of an application scenario provided by the present invention. Figure 3 As shown, the Linux system includes Linux desktop applications, a container management module, container 1, container 2, container 3, and container 4. The user sends an instruction to open 4 more applications 1 to the container management module, and the container management module queries the number of applications 1 in containers 1 to 4. After querying, it is determined that there is one application 1 in each container 1 to 4, that is, there are also 4 applications 1 in the container. The container management module sends an instruction to install application 1 to each container, and the application 1 of each container is installed under the corresponding container respectively. The container management module obtains the installation entry of application 1 under each container, creates a shortcut for each application 1 on the Linux desktop, and configures the startup parameters.

[0064] Figure 4 The present invention provides a device for opening multiple Android applications, which is applied to the structural composition diagram of the container management module embodiment. Figure 4 As shown, the device that opens multiple Android applications includes:

[0065] A first receiving unit 401 receives an instruction for starting an Android target application, wherein the instruction carries a first number of the Android target applications, and the first number is at least two;

[0066] The first query unit 402 is used to send a first query instruction to the Android application module in the created container under the Linux system to obtain the second number of Android target applications in the created container;

[0067] The first processing unit 403 sends an instruction to install the Android target application to the Android application module in the container in the created container where the Android target application is not installed, if the first number is greater than or equal to the second number, and / or sends an instruction to create a new container to the container creation module based on the difference between the first number and the second number, sends the Android target application to the new container, and sends an instruction to install the Android target application to the Android application module in the new container.

[0068] Optionally, the device for opening multiple Android applications is applied to the container management module and further includes:

[0069] The second processing unit is configured to send a second query instruction to the Android application module in the created container under the Linux system to obtain a third number of installed Android target applications in the created container if the first number is less than the second number;

[0070] The third processing unit is used to send an instruction to install the Android target application to the Android application module in the container in which the Android target application is not installed in the created container according to the difference between the first number and the third number if the first number is greater than the third number.

[0071] Optionally, the device for opening multiple Android applications is applied to the container management module and further includes:

[0072] Creating a startup unit for receiving a startup entry of an Android target application, creating a shortcut of the Android target application on a Linux desktop and configuring startup parameters, the startup parameters including an application entry and a container ID; and,

[0073] An uninstall sending unit, used to send an instruction to uninstall the Android target application to the Android application module of the Android target application container;

[0074] The delete unit is used to delete the shortcut of the Android target application in the Linux desktop.

[0075] Figure 5 Another device for opening multiple Android applications provided by the present invention is a schematic diagram of the composition structure of an embodiment of an Android application module. Figure 5 As shown, the device for opening multiple Android applications includes:

[0076] A first receiving unit is used to receive a first query instruction, where the query instruction is used to query a second number of Android target applications in a container that has been created under the Linux system;

[0077] The first processing unit is used to receive an instruction to install the Android target application and install the Android target application if the first number of Android target applications carried in the instruction to start the Android target application is greater than the second number.

[0078] Figure 6 is a schematic diagram of the physical structure of an electronic device provided by the present invention, such as Figure 6 As shown, the electronic device may include: a processor (processor) 601, a communication interface (Communications Interface) 602, a memory (memory) 503 and a communication bus 604, wherein the processor 601, the communication interface 602, and the memory 603 communicate with each other through the communication bus 604. The processor 601 can call the logic instructions in the memory 603 to execute the method of opening multiple Android applications, which is applied to the container management module, or execute the method of opening multiple Android applications, which is applied to the Android application module.

[0079] A method for opening multiple Android applications is applied to a container management module, comprising: receiving an instruction for starting an Android target application, wherein the instruction carries a first number of Android target applications, and the first number is at least two; sending a first query instruction to an Android application module in a container that has been created under a Linux system to obtain a second number of Android target applications in the created container; if the first number is greater than the second number, sending an instruction for installing the Android target application to an Android application module in a container that has not been installed with the Android target application in the created container, and / or sending an instruction for creating a new container to a container creation module based on a difference between the first number and the second number, sending the Android target application to the new container, and sending an instruction for installing the Android target application to the Android application module in the new container.

[0080] A method for opening multiple Android applications is applied to an Android application module, comprising: receiving a first query instruction, the query instruction being used to query the second number of Android target applications in a container that has been created under a Linux system; if the first number of Android target applications carried in an instruction for starting the Android target application is greater than or equal to the second number, receiving an instruction for installing the Android target application, and installing the Android target application.

[0081] In addition, the logic instructions in the above-mentioned memory 603 can be implemented in the form of software function modules and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.

[0082] On the other hand, the present invention also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute a method for opening multiple Android applications, which is applied to a container management module, or execute a method for opening multiple Android applications, which is applied to an Android application module.

[0083] A method for opening multiple Android applications is applied to a container management module, comprising: receiving an instruction for starting an Android target application, wherein the instruction carries a first number of Android target applications, and the first number is at least two; sending a first query instruction to an Android application module in a container that has been created under a Linux system to obtain a second number of Android target applications in the created container; if the first number is greater than the second number, sending an instruction for installing the Android target application to an Android application module in a container that has not been installed with the Android target application in the created container, and / or sending an instruction for creating a new container to a container creation module based on a difference between the first number and the second number, sending the Android target application to the new container, and sending an instruction for installing the Android target application to the Android application module in the new container.

[0084] A method for opening multiple Android applications is applied to an Android application module, comprising: receiving a first query instruction, the query instruction being used to query the second number of Android target applications in a container that has been created under a Linux system; if the first number of Android target applications carried in an instruction for starting the Android target application is greater than or equal to the second number, receiving an instruction for installing the Android target application, and installing the Android target application.

[0085] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a method for executing multiple Android applications, which is applied to a container management module, or a method for executing multiple Android applications, which is applied to an Android application module.

[0086] A method for opening multiple Android applications is applied to a container management module, comprising: receiving an instruction for starting an Android target application, wherein the instruction carries a first number of Android target applications, and the first number is at least two; sending a first query instruction to an Android application module in a container that has been created under a Linux system to obtain a second number of Android target applications in the created container; if the first number is greater than the second number, sending an instruction for installing the Android target application to an Android application module in a container that has not been installed with the Android target application in the created container, and / or sending an instruction for creating a new container to a container creation module based on a difference between the first number and the second number, sending the Android target application to the new container, and sending an instruction for installing the Android target application to the Android application module in the new container.

[0087] A method for opening multiple Android applications is applied to an Android application module, comprising: receiving a first query instruction, the query instruction being used to query the second number of Android target applications in a container that has been created under a Linux system; if the first number of Android target applications carried in an instruction for starting the Android target application is greater than or equal to the second number, receiving an instruction for installing the Android target application, and installing the Android target application.

[0088] The device embodiments described above are merely illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, i.e., they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without paying creative labor.

[0089] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods of each embodiment or some parts of the embodiment.

[0090] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for opening multiple Android applications, applied to a container management module, characterized in that: include: receiving an instruction for starting an Android target application, wherein the instruction carries a first number of the Android target applications, and the first number is at least two; Send a first query instruction to an Android application module in a container that has been created under the Linux system to obtain a second number of the Android target applications in the created container; If the first number is greater than the second number and the second number is non-zero, an instruction to install the Android target application is sent to an Android application module in a container in the created container that does not have the Android target application installed, and according to the difference between the first number and the second number, an instruction to create a new container is sent to a container creation module, the Android target application is sent to the new container, and an instruction to install the Android target application is sent to the Android application module in the new container; If the first number is greater than the second number and the second number is 0, send an instruction to create a new container whose number corresponds to the difference between the first number and the second number, send the Android target application to the new container, and then issue an instruction to install the Android target application in the new container; If the first number is equal to the second number, an instruction to install the Android target application is sent to an Android application module in a container in the created container that does not have the Android target application installed.

2. The method for opening multiple Android applications according to claim 1 is applied to a container management module, characterized in that: Also includes: If the first number is less than the second number, sending a second query instruction to the Android application module in the created container under the Linux system to obtain a third number of the Android target applications installed in the created container; If the first number is greater than the third number, based on the difference between the first number and the third number, an instruction to install the Android target application is sent to the Android application module in the container in the created container where the Android target application is not installed.

3. The method for opening multiple Android applications according to any one of claims 1 to 2 is applied to a container management module, characterized in that: Also includes: Receive the startup entry of the Android target application, create a shortcut of the Android target application on the Linux desktop and configure startup parameters, wherein the startup parameters include the application entry and the container ID; and / or send an instruction to uninstall the Android target application to the Android application module of the container where the Android target application is located; Deleting the shortcut of the Android target application in the Linux desktop; And / or, before receiving the instruction to start multiple Android target applications, the method further includes: Creating virtual devices corresponding to the at least two containers; sending instructions for creating at least two containers to the container creation module; sending instructions for creating a default container to the container creation module; A file directory is preset, and the path of the file directory is sent to the container creation module.

4. A method for opening multiple Android applications, applied to an Android application module, characterized in that: include: Receive a first query instruction, where the query instruction is used to query a second number of Android target applications in a container that has been created under the Linux system; If the first number of the Android target application carried in the instruction for starting the Android target application is greater than or equal to the second number, receiving an instruction for installing the Android target application, and installing the Android target application; The first number is at least two; Wherein, if the first number is greater than the second number and the second number is non-zero, the Android application module in the container in which the Android target application is not installed in the created container receives an instruction to install the Android target application, and the Android application module in the new container receives an instruction to install the Android target application; the new container is obtained by the container creation module based on the instruction to create a new container according to the difference between the first number and the second number; If the first number is greater than the second number and the second number is 0, the Android application module in the new container receives an instruction to install the Android target application; the new container is obtained by the container creation module based on the instruction to create a new container according to the difference between the first number and the second number; If the first number is equal to the second number, the Android application module in the container in which the Android target application is not installed in the created container receives an instruction to install the Android target application.

5. The method for opening multiple Android applications according to claim 4 is applied to an Android application module, characterized in that: Also includes: If the first number is less than the second number, receiving a second query instruction, where the second query instruction is used to query a third number of the Android target applications installed in the created container; If the first number is greater than the third number, an instruction to install the Android target application is received, and the Android target application is installed.

6. A device for opening multiple Android applications, applied to a container management module, characterized in that: include: A first receiving unit receives an instruction for starting an Android target application, wherein the instruction carries a first number of the Android target applications, and the first number is at least two; A first query unit is used to send a first query instruction to the Android application module in the created container under the Linux system to obtain a second number of the Android target application in the created container; The first processing unit sends an instruction to install the Android target application to an Android application module in a container in the created container that does not have the Android target application installed, if the first number is greater than the second number and the second number is non-zero, and sends an instruction to create a new container to a container creation module based on a difference between the first number and the second number, sends the Android target application to the new container, and sends an instruction to install the Android target application to the Android application module in the new container; If the first number is greater than the second number and the second number is 0, send an instruction to create a new container whose number corresponds to the difference between the first number and the second number, send the Android target application to the new container, and then issue an instruction to install the Android target application in the new container; If the first number is equal to the second number, an instruction to install the Android target application is sent to an Android application module in a container in the created container that does not have the Android target application installed.

7. A device for opening multiple Android applications, applied to an Android application module, characterized in that: include: A first receiving unit, configured to receive a first query instruction, wherein the query instruction is used to query a second number of Android target applications in a container that has been created under the Linux system; A first processing unit is configured to receive an instruction to install the Android target application and install the Android target application if the first number of the Android target application carried in the instruction to start the Android target application is greater than or equal to the second number; The first number is at least two; Wherein, if the first number is greater than the second number and the second number is non-zero, the Android application module in the container in which the Android target application is not installed in the created container receives an instruction to install the Android target application, and the Android application module in the new container receives an instruction to install the Android target application; the new container is obtained by the container creation module based on the instruction to create a new container according to the difference between the first number and the second number; If the first number is greater than the second number and the second number is 0, the Android application module in the new container receives an instruction to install the Android target application; the new container is obtained by the container creation module based on the instruction to create a new container according to the difference between the first number and the second number; If the first number is equal to the second number, the Android application module in the container in which the Android target application is not installed in the created container receives an instruction to install the Android target application.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the method for opening multiple Android applications as described in any one of claims 1 to 3 is applied to the steps of the container management module or the method for opening multiple Android applications as described in any one of claims 4 to 5 is applied to the steps of the Android application module.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by the processor, it implements the method for opening multiple Android applications as described in any one of claims 1 to 3, applied to the steps of the container management module or the method for opening multiple Android applications as described in any one of claims 4 to 5, applied to the steps of the Android application module.

10. A computer program product having executable instructions stored thereon, characterized in that: When the instruction is executed by the processor, the processor implements the method for opening multiple Android applications as described in any one of claims 1 to 3, applied to the steps of the container management module or the method for opening multiple Android applications as described in any one of claims 4 to 5, applied to the steps of the Android application module.

Citation Information

Patent Citations

  • Method and device for simultaneously starting multiple same applications on intelligent terminal

    CN104866342A

  • Multi-Android-system switching method based on Linux container technology

    CN105183551A

  • Method and server for managing mobile devices

    CN105357256A

  • Multi-Android-system container automatic creating and starting method

    CN106095530A

  • Method for simultaneously starting multiple identical application programs of Android system

    CN106095603A