/VirtualApp

Android:实现app双开,再也不用为“两个微信号怎么在同一部手机上登录”的问题发愁了,你也不用为登两个微信而买两部手机了,一部手机一个app就帮你轻松搞定。

Primary LanguageJavaGNU General Public License v3.0GPL-3.0

VA banner

中文说明

About

VirtualApp is an open platform for Android that allows you to create a Virtual Space, you can install and run apk inside. Beyond that, VirtualApp is also a Plugin Framework, the plugins running on VirtualApp does not require any constraints. VirtualApp does not require root, it is running on the local process.

NOTICE

This project has been authorized by the business.

Background

VirtualApp was born in early 2015, Originally, it is just a simple plugin framework, But as time goes on, the compatibility of it is getting better and better. in the end, it evolved into a Virtual Container.

Download Apk

apk download

Get started

If you use latest android studio (version 2.0 or above), please disable Instant Run. Open Setting | Build,Exception,Deployment, and disable Enable Instant Run to hot swap...

1、 Add all permissions your host and your plugins need to use.

2、 Goto your Application and insert the following code:

    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);
        try {
            VirtualCore.get().startup(base);
        } catch (Throwable e) {
            e.printStackTrace();
        }
    }

3、 For Install a virtual App, use this function:

    VirtualCore.get().installApp({APK PATH}, flags);
    

4、 For Launch a virtual App, use this function:

    //VirtualApp support multi-user-mode which can run multiple instances of a same app.
    //if you don't need this feature, just set `{userId}` to 0.
    Intent intent = VirtualCore.get().getLaunchIntent({PackageName}, {userId});
    VActivityManager.get().startActivity(intent, {userId});

5、 For uninstall a virtual App, use this function:

    VirtualCore.get().uninstallApp({PackageName});

6、 If you need to get the details of App, use this function:

    VirtualCore.get().findApp({PackageName});

More details, please read the source code of demo app, :-)

Documentation

VirtualApp currently has no documentation, If you are interested in VirtualApp, please send email to me.

License

GPL 3.0

About Author

Lody (imlody@foxmail.com)

App double open effect pictures

1 2 3 4 5