CN106933634A - The installation method of Android application, device and electronic equipment - Google Patents
The installation method of Android application, device and electronic equipment Download PDFInfo
- Publication number
- CN106933634A CN106933634A CN201710149208.3A CN201710149208A CN106933634A CN 106933634 A CN106933634 A CN 106933634A CN 201710149208 A CN201710149208 A CN 201710149208A CN 106933634 A CN106933634 A CN 106933634A
- Authority
- CN
- China
- Prior art keywords
- android application
- virtual machine
- android
- free
- application
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45562—Creating, deleting, cloning virtual machine instances
Abstract
The embodiment of the invention discloses a kind of installation method of Android application, device and electronic equipment, wherein, method includes:In response to a mount request for Android application identical Android application to be installed in current system, whether existing with Android application identical Android application to be installed judge in all virtual machines;When in all virtual machines it is all existing with the Android application identical Android application to be installed when, construct a new virtual machine, the Android application to be installed is installed in new virtual machine;Otherwise, the Android application to be installed is installed in all free virtual machines.The embodiment of the present invention can be by judging to whether there is Android application to be installed in virtual machine, ensure that will not repeat to install identical Android application in same virtual machine, and, it is that new virtual machine is set up in Android application to be installed to answer demand, and user installation multiple same applications and can be while the demand run are met to the full extent.
Description
Technical field
The present invention relates to the Internet, applications technology, especially a kind of installation method of Android application, device and electronic equipment.
Background technology
In the prior art, two identical applications can not be simultaneously run in Android system, when user is want in same peace
In tall and erect system, during two identical application programs of parallel running, because the log-on message in two identical application programs is repeated,
System cannot receive two identical log-on messages of identical application program, and the operation of application program can be caused to fail.
With the Android application identical Android application in current system cannot parallel running, its reason is Android system
System cannot approve the identical log-on message that two identical applications are stated, therefore, in the mounted feelings of specified Android application
Under condition, the identical Android application with specified Android application cannot be successfully registered in current Android system.
The content of the invention
An embodiment of the present invention technical problem to be solved is:One kind is provided and overcomes above mentioned problem or at least part of
The installation method of Android application, device and the electronic equipment that solve the above problems.
According to one aspect of the present invention, a kind of installation method of Android application is the embodiment of the invention provides, including:
In response to a mount request for Android application identical Android application to be installed in current system, judge all
It is whether existing with the Android application identical Android application to be installed in virtual machine;All virtual machines include at least two
Individual virtual machine;
When in all virtual machines it is all existing with the Android application identical Android application to be installed when, construct one it is new
Virtual machine, the Android application to be installed is installed in new virtual machine;
Do not exist the sky with the Android application identical Android application to be installed when having at least one in all virtual machines
During not busy virtual machine, the Android application to be installed is installed in all free virtual machines.
Independent operating between all virtual machines, independent operating between all virtual machines and current system;It is described
Separate between identical Android application in each virtual machine, described each virtual machine should with the identical Android in current system
It is separate between.
It is described that the Android application to be installed is installed to after virtual machine in another embodiment based on the above method,
Also include:
For the Android application to be installed distributes a virtual UID for the correspondence virtual machine, according to the void of the distribution
Intend operations of the UID to the Android application to be installed to be managed.
In another embodiment based on the above method, it is described the Android application to be installed is installed to virtual machine before,
Also include:
According to the mount request of the Android application to be installed, the corresponding installation kit of the Android application to be installed is obtained simultaneously
The configuration file in the installation kit is parsed, the relevant information in the configuration file is obtained.
It is described that the Android application to be installed is installed in virtual machine in another embodiment based on the above method, bag
Include:
Relevant information in the corresponding configuration file of the Android application to be installed obtains the Android to be installed should
Priority assignation information;
Priority assignation is carried out to the Android application to be installed according to the priority assignation information, and is installed to virtual machine
In.
It is described whether existing with the Android to be installed to judge in virtual machine in another embodiment based on the above method
Using identical Android application, including:
Whether the Android of correspondence title has been installed in virtual machine described in the name query according to the Android application to be installed
Using existing in the virtual machine to wait to pacify with described if having installed the Android application of correspondence title in the virtual machine
Dress Android application identical Android application;Otherwise, then do not exist and the Android application identical to be installed in the virtual machine
Android application;
And/or, according to the Android to be installed apply in the virtual machine whether can normal mounting, if described wait to pacify
Dress Android is applied normal mounting is unable in the virtual machine, then existing with the Android application to be installed in the virtual machine
Identical Android application;Otherwise, then do not exist and the Android application identical Android application to be installed in the virtual machine.
In another embodiment based on the above method, when having at least one in all virtual machines in the absence of to be installed with described
It is described that the Android application to be installed is installed to the available free void of institute during the free virtual machine of Android application identical Android application
In in plan machine, including:
A free virtual machine is randomly choosed from all free virtual machines, the Android application to be installed is installed to institute
In stating a free virtual machine of selection;
Or, a maximum free virtual machine of remaining space is obtained from all free virtual machines, will be described to be installed
Android application is installed in the maximum free virtual machine in the space.
It is described that the one of remaining space maximum is obtained from all free virtual machines in another embodiment based on the above method
Individual free virtual machine, including:
The corresponding remaining space of all free virtual machines is obtained respectively, according to remaining space size to all free virtual machines
It is ranked up, obtains a maximum free virtual machine of the remaining space.
According to another aspect of the present invention, the embodiment of the present invention provides a kind of erecting device of Android application, its feature
It is, including:
Using judging unit, in response to Android application identical Android application to be installed in current system
Whether existing with the Android application identical Android application to be installed mount request, judge in all virtual machines;The institute
Having virtual machine includes at least two virtual machines;
Using installation unit, for when all existing with the Android application identical Android to be installed in all virtual machines
Using when, construct a new virtual machine, the Android application to be installed is installed in new virtual machine;When all virtual machines
In when having at least one in the absence of free virtual machine with the Android application identical Android application to be installed, wait to pacify by described
Dress Android application is installed in all free virtual machines.
According to another aspect of the present invention, the embodiment of the present invention also provides a kind of electronic equipment, including as described above
The erecting device of Android application.
The installation method of Android application, device and the electronic equipment provided based on the above embodiment of the present invention, are worked as to overcome
The problem of identical Android application can not be repeated to install in preceding system, there is provided at least two virtual machines, realized within one device
Can be with the identical Android application of parallel running at least three;And by judging to be answered with the presence or absence of Android to be installed in virtual machine
With, it is ensured that will not repeat that identical Android application is installed in same virtual machine, also, it is Android application to be installed to answer demand
New virtual machine is set up, user installation multiple same applications and can be while the demand run are met to the full extent.
Below by drawings and Examples, technical scheme is described in further detail.
Brief description of the drawings
The Description of Drawings embodiments of the invention of a part for specification are constituted, and together with description for explaining
Principle of the invention.
Referring to the drawings, according to following detailed description, the present invention can be more clearly understood from, wherein:
Fig. 1 is the flow chart of installation method one embodiment of Android application of the present invention.
Fig. 2 is the structural representation of erecting device one embodiment of Android application of the present invention.
Fig. 3 is the structural representation of another embodiment of the erecting device of Android application of the present invention.
Fig. 4 is the structural representation of another embodiment of the erecting device of Android application of the present invention.
Specific embodiment
Describe various exemplary embodiments of the invention in detail now with reference to accompanying drawing.It should be noted that:Unless had in addition
Body illustrates that the part and the positioned opposite of step, numerical expression and numerical value for otherwise illustrating in these embodiments do not limit this
The scope of invention.
Simultaneously, it should be appreciated that for the ease of description, the size of the various pieces shown in accompanying drawing is not according to reality
Proportionate relationship draw.
The description only actually at least one exemplary embodiment is illustrative below, never as to the present invention
And its any limitation applied or use.
May be not discussed in detail for technology, method and apparatus known to person of ordinary skill in the relevant, but suitable
In the case of, the technology, method and apparatus should be considered as a part for specification.
It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, therefore, once a certain Xiang Yi
It is defined in individual accompanying drawing, then it need not be further discussed in subsequent accompanying drawing.
The embodiment of the present invention can apply to computer system/server, and it can be with numerous other universal or special calculating
System environments or configuration are operated together.It is suitable to the well-known computing system, the ring that are used together with computer system/server
The example of border and/or configuration is included but is not limited to:Personal computer system, server computer system, thin client, thick client
Machine, hand-held or laptop devices, the system based on microprocessor, Set Top Box, programmable consumer electronics, NetPC Network PC,
Little types Ji calculates machine Xi Tong ﹑ large computer systems and the distributed cloud computing technology environment including any of the above described system, etc..
Computer system/server can be in computer system executable instruction (the such as journey performed by computer system
Sequence module) general linguistic context under describe.Generally, program module can include routine, program, target program, component, logic, number
According to structure etc., they perform specific task or realize specific abstract data type.Computer system/server can be with
Implement in distributed cloud computing environment, in distributed cloud computing environment, task is by by the long-range of communication network links
What reason equipment was performed.In distributed cloud computing environment, program module may be located at the Local or Remote meter including storage device
On calculation system storage medium.
Fig. 1 is the flow chart of installation method one embodiment of Android application of the present invention.As shown in figure 1, the embodiment side
Method includes:
Step 100, in response to a mount request for Android application identical Android application to be installed in current system,
Whether existing with Android application identical Android application to be installed judge in all virtual machines, if it is, performing step 200;
Otherwise, step 300 is performed.
Wherein, all virtual machines include at least two virtual machines, and virtual machine Virtual Machine refer to by software simulation
With complete hardware system function, the entire run system operated in a completely isolated environment.Specifically, installing
During Android application, Android virtual machine can be used, developer is developed Android virtual machine using Android environment for convenience,
User can be made to simulate android system in PC ends (on computer) installation and operation, it is possible to carry out substantially any hand in computer end
The operation that can be carried out on machine, or even computer can also be connected as mobile phone, by mobile phone, assistant detects, and can simulate all
The Android system of official version, and have many money skins and screen form available.
Can also include before step 200:Load the code and resource of Android application to be installed;Will using isolation technology
The corresponding bag name of installation kit of Android application to be installed carries out multiple virtual assigned, and existing skill is breached by multiple virtual assigned
Art can only attend to anything else a limitation for installation kit of attending to anything else installation kit;What is installed in step 200 and step 300 is peace to be installed
Zhuo Yingyong, it is believed that be attending to anything else for the Android application to be installed that is obtained by isolation technology virtual assigned.
Step 200, constructs a new virtual machine, and Android application to be installed is installed in new virtual machine.
Step 300, Android application to be installed is installed in all free virtual machines.
The installation method of the Android application provided based on the above embodiment of the present invention, it is adaptable to several scenes, is mainly used
Scene is included but is not limited to:Business people, multiple No. IM user of Working Life, game player practices small size, difference quotient user, needs
Open many wechats or QQ does the electronic device users such as the user that markets.Phase Tongan City is installed to overcome repeat in current system
The problem of Zhuo Yingyong, there is provided at least two virtual machines, realization within one device can be with the identical of parallel running at least three
Android application;And by judging to whether there is Android application to be installed in virtual machine, it is ensured that will not in same virtual machine
Repeat that identical Android application is installed, also, it is that new virtual machine is set up in Android application to be installed to answer demand, to the full extent
Meet user installation multiple same applications and can use while the demand run, multiple equipment is substituted with multiple virtual machines
Family is lighter and efficient in the communication in mobile Internet epoch.
The above embodiment of the present invention to install multiple identical Android application between also achieve file isolation, process every
From ActivityStack isolation, component isolation and authority isolation etc.;The mode that above-mentioned isolation is each realized is different, generally all
It is that reference system is realized to the isolation principle of bag name, and system includes to the isolation principle of bag name:Distinguished only according to bag name
One application, different bag names have oneself file area, process name, component etc.;It does not interfere with each other, system is done at FrameWork layers
Substantial amounts of work, realizes real isolation, that is to say, that directly cannot be accessed mutually between distinct program;And it is of the invention
In embodiment by the way of light, such as:Entitled com.qihoo.duokai is wrapped, virtual module can be corresponding according to order distribution
Pseudo- bag name com.qihoo.duokai-1, com.qihoo.duokai-2, com.qihoo.duokai-3 ... then basis
Pseudo- bag name is gone to attend to anything else for each Android application and creates single file, process, ActivityStack etc.;Same main bag in fact
Attend to anything else (and different main bag we can do simple authorization check according to bag name) that can be by that particular form accesses mutually, female
Bag refers to the installation kit of the former Android application that can attend to anything else by the multiple Android applications of multiple virtual assigned generation.For each Android
Using inside of attending to anything else, they think oneself or com.qihoo.duokai, and this needs HOOK technologies to go to intercept corresponding interface,
Inside of attending to anything else is allowed to think oneself or com.qihoo.duokai.
In a specific example of the above embodiment of the present invention, independent operating between all virtual machines, all virtual machines
The independent operating between current system;It is separate between identical Android application in each virtual machine, each virtual machine with work as
It is separate between identical Android application in preceding system.
In embodiments of the present invention, due between virtual machine and virtual machine and current system between independent operating, therefore not
Can be in communication with each other between the identical Android application between virtual machine and virtual machine and current system between, completely can be by it
It is managed as different application.
In another embodiment of the installation method of Android application of the present invention, on the basis of the various embodiments described above, also wrap
Include:
For Android application to be installed distributes a virtual UID for correspondence virtual machine, the virtual UID according to distribution is to be installed
The operation of Android application is managed.
Because the Android application run in virtual machine is unknown for current system, current system will not be to this
A little Android applications carry out rights management, therefore, the present embodiment is each Android application installed is assigned with a virtual UID, lead to
Cross the virtual UID to be managed come the operation authority to each Android application, provide the user increase, deletion, cleaning etc. auxiliary
Assist energy, it is ensured that the normal operation of the Android application in virtual machine.
In another embodiment of the installation method of Android application of the present invention, on the basis of the various embodiments described above, in step
Rapid 200 and before Android application to be installed is installed to virtual machine by step 300, can also include:
According to the mount request of Android application to be installed, obtain the corresponding installation kit of Android application to be installed and parse installation
Configuration file in bag, obtains the relevant information in the configuration file.
In Android system, each application software when being installed in Android system, pacified by the installation kit of the application
In Android system, configuration file is included in installation kit, the configuration information in configuration file is correspondingly registered to Android system
In system, the application information such as the required component used and resource in the process of running is stated with to Android system.In the installation kit
Nearly all information related to the application is contained, such as:The title of the application, performance data, user's definition information, configuration
File etc..These information describe the attribute of correspondence application, and ensure its normal operation in systems.
In a specific example of the above embodiment of the present invention, in step 200 and step 300 by Android application to be installed
The process in virtual machine is installed to, can specifically be included:
Relevant information in the corresponding configuration file of Android application to be installed obtains the authority of Android application to be installed
Configuration information;
Priority assignation is carried out to Android application to be installed according to priority assignation information, and is installed in virtual machine.
Each Android application has the authority that it is asked, and the priority assignation information of correspondence institute request permissions is stored in matches somebody with somebody
Put in file, when the Android application is installed, first have to obtain its corresponding priority assignation information, according to priority assignation information pair
The Android application carries out priority assignation, and certainly, in installation process or after installation, user can within the specific limits to this
Priority assignation is modified, so that it more meets the use habit of user;Identical Android applies its authority in different virtual machine
Setting can be with similar and different.
In a specific example of the various embodiments described above of the present invention, whether step 100 judges deposited in a virtual machine
With Android application identical Android application to be installed, can specifically include:
Whether the Android application of correspondence title is installed, such as in the name query virtual machine according to Android application to be installed
The Android application of correspondence title has been installed in fruit virtual machine, then it is existing in the virtual machine to pacify with Android application identical to be installed
Zhuo Yingyong;Otherwise, then do not exist and Android application identical Android application to be installed in the virtual machine.
Generally the installation kit title of same Android application is corresponding with the Apply Names completed after installation, therefore can be with
Judged by title, and most can intuitively be judged whether installed in current virtual machine according to the title of Android application
Android application to be installed.
In a specific example of the various embodiments described above of the present invention, whether step 100 judges deposited in a virtual machine
With Android application identical Android application to be installed, can specifically include:
According to Android to be installed apply in virtual machine whether can normal mounting, if Android to be installed is applied in virtual machine
In be unable to normal mounting, then it is existing with Android application identical Android application to be installed in the virtual machine;Otherwise, then this is virtual
Do not exist and Android application identical Android application to be installed in machine.
Android system cannot approve the identical log-on message that two identical applications are stated, therefore, in specified Android
In the case of mounted, identical Android application cannot be successfully registered in Android system, therefore, it can by whether
Can normal mounting judge whether to be mounted with Android application to be installed in current virtual machine.
In a specific example of the various embodiments described above of the present invention, whether step 100 judges deposited in a virtual machine
With Android application identical Android application to be installed, can specifically include:
Whether the Android application of correspondence title is installed, such as in the name query virtual machine according to Android application to be installed
The Android application of correspondence title has been installed in fruit virtual machine, then it is existing in the virtual machine to pacify with Android application identical to be installed
Zhuo Yingyong;Otherwise, whether applied according to Android to be installed can normal mounting in virtual machine;
It is existing with peace to be installed in the virtual machine if Android to be installed is applied is unable to normal mounting in virtual machine
Zhuo Yingyong identical Android applications;Otherwise, then do not exist and Android application identical Android application to be installed in the virtual machine.
By title and whether can install dual judge whether be mounted with Android application to be installed in the virtual machine, it is ensured that
Judged by title it is inaccurate in the case of, remain to judge whether corresponding Android application has been installed in the virtual machine.
In a still further embodiment of the installation method of Android application of the present invention, on the basis of the various embodiments described above, step
300 can specifically include:
A free virtual machine is randomly choosed from all free virtual machines, Android application to be installed is installed to selection
In one free virtual machine;
Or, a maximum free virtual machine of remaining space is obtained from all free virtual machines, by Android to be installed
In the free virtual machine maximum using the space is installed to.
Solve 's Android application to be installed is installed at least one free virtual machine in the present embodiment
Problem, if current only one of which free virtual machine, then directly Android application to be installed is installed in the free virtual machine
;If there is currently at least two free virtual machines, then appointing in the two schemes that can be provided using the present embodiment
Meaning is a kind of, and any one free virtual machine of selection installs Android application has randomness, can be randomly assigned, or use
Family is selected by operating;The big free virtual machine of selection remaining space can then reach the effect for more optimizing, and make the space of virtual machine
Distribution is not in situation that the virtual machine that has cannot run because remaining space is not enough evenly.
In a specific example of the above embodiment of the present invention, remaining space is obtained from all free virtual machines maximum
A free virtual machine, can specifically include:
The corresponding remaining space of all free virtual machines is obtained respectively, according to remaining space size to all free virtual machines
It is ranked up, obtains a maximum free virtual machine of remaining space.
Free virtual machine is ranked up according to remaining space size in this example, this sequencer procedure can have arrive greatly it is small enter
Row sequence, or have small to being ranked up greatly, after sequence by sequence foremost or least significant end obtains the sky of remaining space maximum
Not busy virtual machine.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above method embodiment can pass through
Programmed instruction related hardware is completed, and foregoing program can be stored in a computer read/write memory medium, the program
Upon execution, the step of including above method embodiment is performed;And foregoing storage medium includes:ROM, RAM, magnetic disc or light
Disk etc. is various can be with the medium of store program codes.
Fig. 2 is the structural representation of erecting device one embodiment of Android application of the present invention.The device of the embodiment can
For realizing above-mentioned each method embodiment of the invention.As shown in Fig. 2 the device of the embodiment includes:
Using judging unit 1, in response to an Android application identical Android application to be installed in current system
Mount request, whether existing with Android application identical Android application to be installed judge in all virtual machines;It is all virtual
Machine includes at least two virtual machines;
Can also include in application judging unit 1 and using between installation unit 3:Virtual module and distribute module, virtually
Module is used to load the code and resource of Android application to be installed;Distribute module is used for should by Android to be installed using isolation technology
With the corresponding bag name of installation kit carry out multiple virtual assigned, breaching prior art by multiple virtual assigned will can only install
Wrap a limitation for installation kit of attending to anything else of attending to anything else.What is installed in application installation unit 3 is Android application to be installed, it is believed that
It is attending to anything else for the Android application to be installed that is obtained by isolation technology virtual assigned.
Using installation unit 3, for being answered with Android application identical Android to be installed when all existing in all virtual machines
Used time, a new virtual machine is constructed, Android application to be installed is installed in new virtual machine;When have in all virtual machines to
During a few free virtual machine not existed with Android application identical Android application to be installed, Android application to be installed is installed
To in all free virtual machines.
The erecting device of the Android application provided based on the above embodiment of the present invention, it is adaptable to several scenes, is mainly used
Scene is included but is not limited to:Business people, multiple No. IM user of Working Life, game player practices small size, difference quotient user, needs
Open many wechats or QQ does the electronic device users such as the user that markets.Phase Tongan City is installed to overcome repeat in current system
The problem of Zhuo Yingyong, there is provided at least two virtual machines, realization within one device can be with the identical of parallel running at least three
Android application;And by judging to whether there is Android application to be installed in virtual machine, it is ensured that will not in same virtual machine
Repeat that identical Android application is installed, also, it is that new virtual machine is set up in Android application to be installed to answer demand, to the full extent
Meet user installation multiple same applications and can be while the demand run;Multiple equipment is substituted with multiple virtual machines, is used
Family is lighter and efficient in the communication in mobile Internet epoch.
The above embodiment of the present invention to install multiple identical Android application between also achieve file isolation, process every
From ActivityStack isolation, component isolation and authority isolation etc.;The mode that above-mentioned isolation is each realized is different, generally all
It is that reference system is realized to the isolation principle of bag name, and system includes to the isolation principle of bag name:Distinguished only according to bag name
One application, different bag names have oneself file area, process name, component etc.;It does not interfere with each other, system is done at FrameWork layers
Substantial amounts of work, realizes real isolation, that is to say, that directly cannot be accessed mutually between distinct program;And it is of the invention
In embodiment by the way of light, such as:Entitled com.qihoo.duokai is wrapped, virtual module can be corresponding according to order distribution
Pseudo- bag name com.qihoo.duokai-1, com.qihoo.duokai-2, com.qihoo.duokai-3 ... then basis
Pseudo- bag name is gone to attend to anything else for each Android application and creates single file, process, ActivityStack etc.;Same main bag in fact
Attend to anything else (and different main bag we can do simple authorization check according to bag name) that can be by that particular form accesses mutually, female
Bag refers to the installation kit of the former Android application that can attend to anything else by the multiple Android applications of multiple virtual assigned generation.For each Android
Using inside of attending to anything else, they think oneself or com.qihoo.duokai, and this needs HOOK technologies to go to intercept corresponding interface,
Inside of attending to anything else is allowed to think oneself or com.qihoo.duokai.
In a specific example of the above embodiment of the present invention, independent operating between all virtual machines, all virtual machines
The independent operating between current system;It is separate between identical Android application in each virtual machine, each virtual machine with work as
It is separate between identical Android application in preceding system.
Fig. 3 is the structural representation of another embodiment of the erecting device of Android application of the present invention.In the various embodiments described above
On the basis of, as shown in figure 3, the present embodiment device, also including identity allocation unit 4, for being distributed for Android application to be installed
The virtual UID user identity of one correspondence virtual machine proves that the virtual UID user identity according to distribution is proved to Android to be installed
The operation of application is managed.
Because the Android application run in virtual machine is unknown for current system, current system will not be to this
A little Android applications carry out rights management, therefore, the present embodiment is each Android application installed is assigned with a virtual UID, lead to
Cross the virtual UID to be managed come the operation authority to each Android application, provide the user increase, deletion, cleaning etc. auxiliary
Assist energy, it is ensured that the normal operation of the Android application in virtual machine.
Fig. 4 is the structural representation of another embodiment of the erecting device of Android application of the present invention.In the various embodiments described above
On the basis of, as shown in figure 4, the present embodiment device, also including installation kit resolution unit 2, for according to Android application to be installed
Mount request, obtain the corresponding installation kit of Android application to be installed and simultaneously parse the configuration file in installation kit, obtain configuration text
Relevant information in part.
In Android system, each application software when being installed in Android system, pacified by the installation kit of the application
In Android system, configuration file is included in installation kit, the configuration information in configuration file is correspondingly registered to Android system
In system, the application information such as the required component used and resource in the process of running is stated with to Android system.In the installation kit
Nearly all information related to the application is contained, such as:The title of the application, performance data, user's definition information, configuration
File etc..These information describe the attribute of correspondence application, and ensure its normal operation in systems.
In a specific example of the above embodiment of the present invention, using installation unit 3 specifically for according to peace to be installed
Relevant information in the corresponding configuration files of Zhuo Yingyong obtains the priority assignation information of Android application to be installed;According to priority assignation
Information carries out priority assignation to Android application to be installed, and is installed in virtual machine.
In a specific example of the various embodiments described above of the present invention, using judging unit 1 specifically for according to be installed
Whether the Android application of correspondence title is installed, if having installed correspondence in virtual machine in the name query virtual machine of Android application
The Android application of title, then it is existing with Android application identical Android application to be installed in virtual machine;Otherwise, then in virtual machine
In the absence of with Android application identical Android application to be installed;
And/or, according to Android to be installed apply in virtual machine whether can normal mounting, if Android to be installed is applied
Normal mounting is unable in virtual machine, then it is existing with Android application identical Android application to be installed in virtual machine;Otherwise, then it is empty
Do not exist and Android application identical Android application to be installed in plan machine.
In a still further embodiment of the erecting device of Android application of the present invention, on the basis of the various embodiments described above, work as institute
Have when having at least one in virtual machine in the absence of free virtual machine with Android application identical Android application to be installed, using peace
Dress unit 3 specifically for:
A free virtual machine is randomly choosed from all free virtual machines, Android application to be installed is installed to selection
In one free virtual machine;
Or, a maximum free virtual machine of remaining space is obtained from all free virtual machines, by Android to be installed
In the free virtual machine maximum using space is installed to.
Solve 's Android application to be installed is installed at least one free virtual machine in the present embodiment
Problem, if current only one of which free virtual machine, then directly Android application to be installed is installed in the free virtual machine
;If there is currently at least two free virtual machines, then appointing in the two schemes that can be provided using the present embodiment
Meaning is a kind of, and any one free virtual machine of selection installs Android application has randomness, can be randomly assigned, or use
Family is selected by operating;The big free virtual machine of selection remaining space can then reach the effect for more optimizing, and make the space of virtual machine
Distribution is not in situation that the virtual machine that has cannot run because remaining space is not enough evenly.
In a specific example of the above embodiment of the present invention, obtained from all free virtual machines using installation unit 3
When obtaining a free virtual machine of remaining space maximum,
Specifically for obtaining the corresponding remaining space of all free virtual machines respectively, according to remaining space size to having time
Not busy virtual machine is ranked up, and obtains a maximum free virtual machine of remaining space.
According to another aspect of the present invention, the embodiment of the present invention also provides a kind of electronic equipment, including above-mentioned any one
The erecting device of the Android application of individual embodiment.
The electronic equipment can be the mobile communication equipments such as mobile phone in a particular application, or other systems have it is exclusive
Electronic equipment.
1st, a kind of installation method of Android application, including:
In response to a mount request for Android application identical Android application to be installed in current system, judge all
It is whether existing with the Android application identical Android application to be installed in virtual machine;All virtual machines include at least two
Individual virtual machine;
When in all virtual machines it is all existing with the Android application identical Android application to be installed when, construct one it is new
Virtual machine, the Android application to be installed is installed in new virtual machine;
Do not exist the sky with the Android application identical Android application to be installed when having at least one in all virtual machines
During not busy virtual machine, the Android application to be installed is installed in all free virtual machines.
2nd, the method according to 1, independent operating between all virtual machines, all virtual machines and current system
Between independent operating;It is separate between identical Android application in described each virtual machine, described each virtual machine with it is current
It is separate between identical Android application in system.
3rd, the method according to 1 or 2, it is described that the Android application to be installed is installed to after virtual machine, also include:
For the Android application to be installed distributes a virtual UID for the correspondence virtual machine, according to the void of the distribution
Intend operations of the UID to the Android application to be installed to be managed.
4th, the method according to 1 to 3 any one, it is described by the Android application to be installed be installed to virtual machine it
Before, also include:
According to the mount request of the Android application to be installed, the corresponding installation kit of the Android application to be installed is obtained simultaneously
The configuration file in the installation kit is parsed, the relevant information in the configuration file is obtained.
5th, the method according to 4, it is described that the Android application to be installed is installed in virtual machine, including:
Relevant information in the corresponding configuration file of the Android application to be installed obtains the Android to be installed should
Priority assignation information;
Priority assignation is carried out to the Android application to be installed according to the priority assignation information, and is installed to virtual machine
In.
6th, the method according to 4 or 5, it is described whether existing with the Android application phase to be installed to judge in virtual machine
Same Android application, including:
Whether the Android of correspondence title has been installed in virtual machine described in the name query according to the Android application to be installed
Using existing in the virtual machine to wait to pacify with described if having installed the Android application of correspondence title in the virtual machine
Dress Android application identical Android application;Otherwise, then do not exist and the Android application identical to be installed in the virtual machine
Android application;
And/or, according to the Android to be installed apply in the virtual machine whether can normal mounting, if described wait to pacify
Dress Android is applied normal mounting is unable in the virtual machine, then existing with the Android application to be installed in the virtual machine
Identical Android application;Otherwise, then do not exist and the Android application identical Android application to be installed in the virtual machine.
7th, the method according to 1 to 6 any one, waits to pacify when having at least one not exist in all virtual machines with described
Fill Android application identical Android application free virtual machine when, it is described by the Android application to be installed be installed to institute it is available free
In in virtual machine, including:
A free virtual machine is randomly choosed from all free virtual machines, the Android application to be installed is installed to institute
In stating a free virtual machine of selection;
Or, a maximum free virtual machine of remaining space is obtained from all free virtual machines, will be described to be installed
Android application is installed in the maximum free virtual machine in the space.
8th, the method according to 7, it is described that a maximum idle void of remaining space is obtained from all free virtual machines
Plan machine, including:
The corresponding remaining space of all free virtual machines is obtained respectively, according to remaining space size to all free virtual machines
It is ranked up, obtains a maximum free virtual machine of the remaining space.
9th, a kind of erecting device of Android application, including:
Using judging unit, in response to Android application identical Android application to be installed in current system
Whether existing with the Android application identical Android application to be installed mount request, judge in all virtual machines;The institute
Having virtual machine includes at least two virtual machines;
Using installation unit, for when all existing with the Android application identical Android to be installed in all virtual machines
Using when, construct a new virtual machine, the Android application to be installed is installed in new virtual machine;When all virtual machines
In when having at least one in the absence of free virtual machine with the Android application identical Android application to be installed, wait to pacify by described
Dress Android application is installed in all free virtual machines.
10th, the device according to 9, independent operating between all virtual machines, all virtual machines and current system
Independent operating between system;It is separate between identical Android application in described each virtual machine, described each virtual machine with work as
It is separate between identical Android application in preceding system.
11st, the device according to 9 or 10, also including identity allocation unit, for being the Android application to be installed point
Virtual UID user identity with a correspondence virtual machine proves that it is right that the virtual UID user identity according to the distribution is proved
The operation of the Android application to be installed is managed.
12nd, the device according to 9 to 11 any one, also including installation kit resolution unit, for waiting to pacify according to
The mount request of Android application is filled, the corresponding installation kit of the Android application to be installed is obtained and is parsed matching somebody with somebody in the installation kit
File is put, the relevant information in the configuration file is obtained.
13rd, the device according to 12, the application installation unit is specifically for according to the Android application pair to be installed
Relevant information in the configuration file answered obtains the priority assignation information of the Android application to be installed;According to the priority assignation
Information carries out priority assignation to the Android application to be installed, and is installed in virtual machine.
14th, the device according to 12 or 13, the application judging unit according to the Android to be installed specifically for answering
Whether the Android application of correspondence title is installed, if having installed right in the virtual machine in virtual machine described in name query
Answer the Android application of title, then it is existing with the Android application identical Android application to be installed in the virtual machine;Otherwise,
Do not exist and the Android application identical Android application to be installed in the virtual machine then;
And/or, according to the Android to be installed apply in the virtual machine whether can normal mounting, if described wait to pacify
Dress Android is applied normal mounting is unable in the virtual machine, then existing with the Android application to be installed in the virtual machine
Identical Android application;Otherwise, then do not exist and the Android application identical Android application to be installed in the virtual machine.
15th, the device according to 9 to 14 any one, treats when having at least one not exist in all virtual machines with described
When the free virtual machine of Android application identical Android application is installed,
The application installation unit specifically for from all free virtual machines randomly choose a free virtual machine, by institute
Android application to be installed is stated to be installed in a free virtual machine of the selection;
Or, a maximum free virtual machine of remaining space is obtained from all free virtual machines, will be described to be installed
Android application is installed in the maximum free virtual machine in the space.
16th, the device according to 15, the application installation unit obtains remaining space most from all free virtual machines
During a big free virtual machine,
Specifically for obtaining the corresponding remaining space of all free virtual machines respectively, according to remaining space size to having time
Not busy virtual machine is ranked up, and obtains a maximum free virtual machine of the remaining space.
17th, a kind of electronic equipment, including the Android application as described in 9 to 16 any one erecting device.
Each embodiment is described by the way of progressive in this specification, and what each embodiment was stressed is and it
The difference of its embodiment, same or analogous part cross-reference between each embodiment.For system embodiment
For, because it is substantially corresponding with embodiment of the method, so description is fairly simple, referring to the portion of embodiment of the method in place of correlation
Defend oneself bright.
Methods and apparatus of the present invention may be achieved in many ways.For example, can by software, hardware, firmware or
Software, hardware, any combinations of firmware realize methods and apparatus of the present invention.The said sequence of the step of for methods described
Order described in detail above is not limited to merely to illustrate, the step of the method for the present invention, it is special unless otherwise
Do not mentionlet alone bright.Additionally, in certain embodiments, also the present invention can be embodied as recording program in the recording medium, these programs
Including the machine readable instructions for realizing the method according to the invention.Thus, the present invention also covering storage is for performing basis
The recording medium of the program of the method for the present invention.
Description of the invention is given for the sake of example and description, and is not exhaustively or by the present invention
It is limited to disclosed form.Many modifications and variations are for the ordinary skill in the art obvious.Select and retouch
State embodiment and be to more preferably illustrate principle of the invention and practical application, and one of ordinary skill in the art is managed
The solution present invention is suitable to the various embodiments with various modifications of special-purpose so as to design.
Claims (10)
1. a kind of installation method of Android application, it is characterised in that including:
In response to a mount request for Android application identical Android application to be installed in current system, judge all virtual
It is whether existing with the Android application identical Android application to be installed in machine;All virtual machines include that at least two is empty
Plan machine;
When in all virtual machines it is all existing with the Android application identical Android application to be installed when, construct a new void
Plan machine, the Android application to be installed is installed in new virtual machine;
Do not exist the free time void with the Android application identical Android application to be installed when having at least one in all virtual machines
During plan machine, the Android application to be installed is installed in all free virtual machines.
2. method according to claim 1, it is characterised in that independent operating between all virtual machines, it is described all
Independent operating between virtual machine and current system;It is separate between identical Android application in described each virtual machine, it is described
It is separate between the Android application identical with current system of each virtual machine.
3. method according to claim 1 and 2, it is characterised in that described that the Android application to be installed is installed to void
After plan machine, also include:
For the Android application to be installed distributes a virtual UID for the correspondence virtual machine, according to the virtual UID of the distribution
Operation to the Android application to be installed is managed.
4. the method according to claims 1 to 3 any one, it is characterised in that described by the Android application to be installed
Before being installed to virtual machine, also include:
According to the mount request of the Android application to be installed, obtain the corresponding installation kit of the Android application to be installed and parse
Configuration file in the installation kit, obtains the relevant information in the configuration file.
5. method according to claim 4, it is characterised in that described that the Android application to be installed is installed to virtual machine
In, including:
Relevant information in the corresponding configuration file of the Android application to be installed obtains the Android application to be installed
Priority assignation information;
Priority assignation is carried out to the Android application to be installed according to the priority assignation information, and is installed in virtual machine.
6. the method according to claim 4 or 5, it is characterised in that it is described judge in virtual machine whether it is existing with it is described
Android application identical Android application to be installed, including:
Whether the Android application of correspondence title has been installed in virtual machine described in the name query according to the Android application to be installed,
It is existing with the Android to be installed in the virtual machine if having installed the Android application of correspondence title in the virtual machine
Using identical Android application;Otherwise, then not existing in the virtual machine should with the Android application identical Android to be installed
With;
And/or, according to the Android to be installed apply in the virtual machine whether can normal mounting, if the peace to be installed
Zhuo Yingyong is unable to normal mounting in the virtual machine, then existing identical with the Android application to be installed in the virtual machine
Android application;Otherwise, then do not exist and the Android application identical Android application to be installed in the virtual machine.
7. the method according to claim 1 to 6 any one, it is characterised in that when having at least one in all virtual machines
During in the absence of free virtual machine with the Android application identical Android application to be installed, it is described should by the Android to be installed
With in be installed in all free virtual machines, including:
A free virtual machine is randomly choosed from all free virtual machines, the Android application to be installed is installed to the choosing
In the free virtual machine selected;
Or, a maximum free virtual machine of remaining space is obtained from all free virtual machines, by the Android to be installed
In the free virtual machine maximum using the space is installed to.
8. method according to claim 7, it is characterised in that described to obtain remaining space most from all free virtual machines
A big free virtual machine, including:
The corresponding remaining space of all free virtual machines is obtained respectively, and all free virtual machines are carried out according to remaining space size
Sequence, obtains a maximum free virtual machine of the remaining space.
9. a kind of erecting device of Android application, it is characterised in that including:
Using judging unit, in response to an installation for Android application identical Android application to be installed in current system
Whether existing with the Android application identical Android application to be installed request, judge in all virtual machines;All void
Plan machine includes at least two virtual machines;
Using installation unit, for when all existing with the Android application identical Android application to be installed in all virtual machines
When, a new virtual machine is constructed, the Android application to be installed is installed in new virtual machine;Have when in all virtual machines
At least one in the absence of free virtual machine with the Android application identical Android application to be installed when, by the peace to be installed
Zhuo Yingyong is installed in all free virtual machines.
10. a kind of electronic equipment, it is characterised in that the erecting device including Android application as claimed in claim 9.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710149208.3A CN106933634A (en) | 2017-03-09 | 2017-03-09 | The installation method of Android application, device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710149208.3A CN106933634A (en) | 2017-03-09 | 2017-03-09 | The installation method of Android application, device and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106933634A true CN106933634A (en) | 2017-07-07 |
Family
ID=59432715
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710149208.3A Pending CN106933634A (en) | 2017-03-09 | 2017-03-09 | The installation method of Android application, device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106933634A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112817748A (en) * | 2021-01-20 | 2021-05-18 | 深圳魔栗科技有限公司 | Task processing method based on android virtual machine and computer equipment |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102760032A (en) * | 2012-03-19 | 2012-10-31 | 联想(北京)有限公司 | Information processing method and electronic device |
CN103136000A (en) * | 2011-11-21 | 2013-06-05 | 财团法人资讯工业策进会 | Method and system of providing application program for virtual machine |
CN103257887A (en) * | 2012-02-16 | 2013-08-21 | 宇龙计算机通信科技(深圳)有限公司 | Terminal and process control method |
US20140282538A1 (en) * | 2013-03-14 | 2014-09-18 | CloudVolumes | Minimizing scsi limitations for virtual machines |
US9117079B1 (en) * | 2013-02-19 | 2015-08-25 | Trend Micro Inc. | Multiple application versions in a single virtual machine |
CN105589747A (en) * | 2016-02-25 | 2016-05-18 | 深圳市创想天空科技股份有限公司 | Method and system for controlling multi-running of application programs |
CN105843668A (en) * | 2016-03-11 | 2016-08-10 | 北京奇虎科技有限公司 | Derived process staying-resident method, derived program generating method and corresponding device |
CN106020943A (en) * | 2016-05-04 | 2016-10-12 | 北京小米移动软件有限公司 | Application program dual-opening method and device |
-
2017
- 2017-03-09 CN CN201710149208.3A patent/CN106933634A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103136000A (en) * | 2011-11-21 | 2013-06-05 | 财团法人资讯工业策进会 | Method and system of providing application program for virtual machine |
CN103257887A (en) * | 2012-02-16 | 2013-08-21 | 宇龙计算机通信科技(深圳)有限公司 | Terminal and process control method |
CN102760032A (en) * | 2012-03-19 | 2012-10-31 | 联想(北京)有限公司 | Information processing method and electronic device |
US9117079B1 (en) * | 2013-02-19 | 2015-08-25 | Trend Micro Inc. | Multiple application versions in a single virtual machine |
US20140282538A1 (en) * | 2013-03-14 | 2014-09-18 | CloudVolumes | Minimizing scsi limitations for virtual machines |
CN105589747A (en) * | 2016-02-25 | 2016-05-18 | 深圳市创想天空科技股份有限公司 | Method and system for controlling multi-running of application programs |
CN105843668A (en) * | 2016-03-11 | 2016-08-10 | 北京奇虎科技有限公司 | Derived process staying-resident method, derived program generating method and corresponding device |
CN106020943A (en) * | 2016-05-04 | 2016-10-12 | 北京小米移动软件有限公司 | Application program dual-opening method and device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112817748A (en) * | 2021-01-20 | 2021-05-18 | 深圳魔栗科技有限公司 | Task processing method based on android virtual machine and computer equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9973571B2 (en) | Migrating legacy applications to a multi-tenant computing environment | |
CN110083455B (en) | Graph calculation processing method, graph calculation processing device, graph calculation processing medium and electronic equipment | |
CN104636077B (en) | Network control techology storage system and method for virtual machine | |
US20120260229A1 (en) | Software tool and method for generating a virtual appliance | |
KR102319172B1 (en) | Platform providing system based on cloud computing and platform provision method using the same | |
CN109656538A (en) | Generation method, device, system, equipment and the medium of application program | |
CN108446225A (en) | Creating device, method and the computer readable storage medium of analog interface | |
CN109145539A (en) | A kind of right management method and electronic equipment of more programming projects | |
US7383300B1 (en) | System and method for language translation within software applications | |
CN104883384B (en) | A kind of method and apparatus for the end ability that client is provided for light application | |
CN107678752A (en) | A kind of task processing method and device towards isomeric group | |
CN107944000A (en) | Flight freight rate update method, device, electronic equipment, storage medium | |
KR102202022B1 (en) | Method for providing digital sinage service using an idle mobile terminal and system therefore | |
US11321090B2 (en) | Serializing and/or deserializing programs with serializable state | |
CN103927216A (en) | Method And System For Managing Virtual Devices | |
CN109857575A (en) | Interface call method, device, electronic equipment and storage medium | |
CN113454594A (en) | Native code generation for cloud services | |
KR20210105378A (en) | How the programming platform's user code works and the platform, node, device, medium | |
CN110362318A (en) | Using dispositions method, device, equipment and storage medium | |
CN108287647A (en) | A kind of application operation method and device | |
CN107844519A (en) | Electronic installation, data base querying scenario generation method and storage medium | |
US10146569B2 (en) | Template based software scans | |
WO2019082015A1 (en) | Search engine optimization techniques | |
US9338229B2 (en) | Relocating an application from a device to a server | |
CN106933634A (en) | The installation method of Android application, device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170707 |