A kind of collocation method and device for opening application moreTechnical field
The invention belongs to electronic apparatus application technical field, specifically a kind of collocation method and device for opening application more.
Background technology
Mobile phone and mobile intelligent terminal application (app) have turned into the thing being familiar with again during we live only, such as micro-Rich and wechat, has permeated the every nook and cranny of our lives, in this micro- epoch, and step by step affects us and given birth to usThis society living.On their various discussion sound constantly, as they have not been the wars of Sina and Tengxun, intoThe war of the whole people.In these discussion sound, what the author compared approval is such a viewpoint, and microblogging is even more that a media are put downPlatform, and wechat is then a social platform purely.Simply it will also be readily appreciated that microblogging is maximum at the beginning of riseAdvantage is that most abundant information is propagated with most fast speed, up to now, judges popular microblogging still by two data, maximum turnsHair and highest comment.
For wechat so huge colony, it is believed that many machines friends have wechat, QQ of two or the above etc. social softThe account of part, a job number, a private life number.However, many people use two to log in two accounts simultaneouslyPortion's mobile phone is particularly bothered, and toggles account nor easily, especially for many difference quotient users, some do difference quotientUser might have 10 or up to a hundred accounts, for such case need 10 or up to a hundred mobile phones, return switchingAccount is just more troublesome.
The content of the invention
In order to overcome the deficiencies in the prior art, the present invention proposes a kind of collocation method and device for opening application more, solvedUser can not install multiple identical applications to realize the problem of application such as wechat, QQ, game is opened more on same mobile phone, togetherWhen, moreover it is possible to operation influences each other, disturbed between solving each application, and then influences the performance of Android system to even result in extremelyThe problem of machine.
The present invention to achieve the above object, is realized using following technical scheme:
A kind of collocation method for opening application, comprises the following steps more:
Clients of opening obtain virtual engine source bag more;
Decompress the AndroidMainifest.xml configuration files in the virtual engine source bag;
Replace the relevant information such as AndroidMainifest.xml bag name, application name in the virtual engine source bag;
By the virtual engine source packet compression after replacement into apk files;
The apk files are signed.
Further, as optimal technical scheme, open client before virtual engine source bag is obtained more, first will virtually drawHold up source bag and be set as template.
Further, as optimal technical scheme, replaced according to local algorithm in the virtual engine source bagThe relevant informations such as AndroidMainifest.xml bag name, application name.
Further, as optimal technical scheme, in the virtual engine source packet compression after by replacement into before apk files,First configure to specify to attend to anything else and exempt from the application message of installation and operation.
A kind of configuration device for opening application more, including
Acquisition module, for making clients of opening obtain virtual engine source bag more;
Decompression module, for decompressing the AndroidMainifest.xml configuration files in the virtual engine source bag;
Replacement module, bag name, application name for replacing AndroidMainifest.xml in the virtual engine source bagEtc. relevant information;
Compression module, for by the virtual engine source packet compression after replacement into apk files;
Signature blocks, for being signed to the apk files.
Further, as optimal technical scheme, in addition to setting module, obtaining virtual engine for clients of opening moreBefore the bag of source, virtual engine source bag is first set as template.
Further, as optimal technical scheme, in addition to local algoritic module, for replacing the virtual engine source bagThe relevant informations such as middle AndroidMainifest.xml bag name, application name.
Further, as optimal technical scheme, in addition to configuration module, for the virtual engine source bag after by replacementIt is compressed into before apk files, first configures to specify to attend to anything else and exempt from the application message of installation and operation.
The present invention compared with prior art, with advantages below and beneficial effect:
The present invention by providing a kind of collocation method and device for opening application more, based on Android virtual system engine technique,Realize the applications such as wechat, QQ, game to open, user can install multiple identical applications on a mobile phone more, and eachAll be independent space motion between, mutually not shadow noon, do not interfere with each other, comply fully with android reclaim mechanism, Bu HuiyingThe performance of Android system is rung, while situations such as being also not in deadlock;This is based on, the present invention is with mobile InternetForm is the problem of user solves many accounts, substantially increases adventure in daily life comfort level, is conducive to popularizing and promotes.
Brief description of the drawings
Fig. 1 is flow chart of the method for the present invention.
Embodiment
The present invention is described in further detail with reference to embodiment, but the implementation of the present invention is not limited to this.
Embodiment:
As shown in figure 1, a kind of collocation methods for opening application described in the present embodiment, comprise the following steps more:
Clients of opening obtain virtual engine source bag more;
Decompress the AndroidMainifest.xml configuration files in the virtual engine source bag;
Replace the relevant information such as AndroidMainifest.xml bag name, application name in the virtual engine source bag;
Configuration, which specifies to attend to anything else, exempts from the application message of installation and operation;
By the virtual engine source packet compression after replacement into apk files;
The apk files are signed.
It is preferred that, open client before virtual engine source bag is obtained more, virtual engine source bag is first set as template.
It is preferred that, according to local algorithm replace AndroidMainifest.xml in the bag of the virtual engine source bag name,The relevant informations such as application name.
A kind of configuration device for opening application more, including
Acquisition module, for making clients of opening obtain virtual engine source bag more;
Decompression module, for decompressing the AndroidMainifest.xml configuration files in the virtual engine source bag;
Replacement module, bag name, application name for replacing AndroidMainifest.xml in the virtual engine source bagEtc. relevant information;
Compression module, for by the virtual engine source packet compression after replacement into apk files;
Signature blocks, for being signed to the apk files.
It is preferred that, in addition to setting module, for clients of opening before virtual engine source bag is obtained, first will virtually it draw moreHold up source bag and be set as template.
It is preferred that, in addition to local algoritic module, for replacing in the virtual engine source bagThe relevant informations such as AndroidMainifest.xml bag name, application name.
It is preferred that, in addition to configuration module, in the virtual engine source packet compression after by replacement into before apk files,First configure to specify to attend to anything else and exempt from the application message of installation and operation.
In the present embodiment, for as Android mobile phone, android system naturally inherits linux kernelSecurity mechanism, in combination with the concrete application feature of mobile terminal, the present invention has carried out many beneficial improvement and lifting.
The legacy operating system customer-centric such as window and unix/linux, it is assumed that be between user it is incredible,It is more to consider how isolation different user to resource (storage region and user file, region of memory and consumer process, underlying deviceDeng) access.In android system, it is assumed that be incredible, or even the application journey that user voluntarily installs between application softwareSequence be also it is incredible, therefore, it is necessary first to limit the function of application program, that is, by application program be placed in " sandbox " itIt is interior, the isolation between application program is realized, and the authority for allowing or refusing API Calls is set, control application program is to resourceAccess, such as access file, catalogue, network, sensor etc..
Android extends user and the authority mechanism of linux kernel security model, by the user of multi-user operating systemIsolation mech isolation test is dexterously transplanted isolates for application program.In linux, user's mark (UID) recognizes a given user;On Android, a UID then recognizes an application program, distributes UID to it when the application is installed.Application program existsIn equipment in the duration, its UID keeps constant, only limits the use of in permission or limitation application program (and non-user) to device resourceAccess.In this way, Android security mechanism is connected with the security model perfection of linux kernel, different application program differenceBelong to different users, therefore, application program runs on oneself independent process space, and the application program different from UID is naturalResource isolation is formed, an other application program of operating system grade " sandbox " is so just formd.
In addition, between program process, the security between application program and operating system is by (SuSE) Linux OSStandard process level security mechanism is realized.By default, it can not be interacted between application program, operate in answering in process sandboxAuthority is not previously allocated with program, it is impossible to access system or resource.Therefore, answering on operating system is either directly run onWith program, the application program for being also operate in Dalvik virtual machine all obtains same security isolation and protection, is limited in eachIt is not interfere with each other from the application program in " sandbox ", the infringement to system and other applications can be minimized.Android is appliedThe application program that the program of the sandbox of program does not possess mutually trusting relationship is mutually isolated, runs alone, is to pass through " sandbox "Mechanism realize mobile phone and make multiple applications and attend to anything else, do not interfere with each other, being independent of each other uses.
Under many circumstances, the application program from same developer or same Development institution, exists to trust each other and closesSystem.Android system provides a kind of so-called shared UID (SharedUserID) mechanism, makes the application program for possessing trusting relationshipThe same process space can be run on.Generally, this trusting relationship is determined by the digital signature of application program, and needs applicationProgram uses identical UID in manifest files.
The present embodiment is based especially on Android virtual system engine technique, realized by using the above method and deviceThe applications such as wechat, QQ, game open more, and user can install multiple identical applications on a mobile phone, and each apply itBetween be all independent space motion, mutually not shadow noon, do not interfere with each other, comply fully with android reclaim mechanism, do not interfere withThe performance of Android system, while situations such as being also not in deadlock;This is based on, the present invention is with the shape of mobile InternetFormula is the problem of user solves many accounts, substantially increases adventure in daily life comfort level, is conducive to popularizing and promotes.
It is described above, be only presently preferred embodiments of the present invention, any formal limitation not done to the present invention, it is every according toAccording to the present invention technical spirit above example is made any simple modification, equivalent variations, each fall within the present invention protectionWithin the scope of.