1 Star 1 Fork 3

李浮生 / VirtualApp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

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.

You are not allowed to modify the app module and put to the software market, if you do that, The consequences you know :)

VirtualApp is not free, If you need to use the lib code, please send email to me :)

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.

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...

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();
        }
    }

Install a virtual App:

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

Launch a virtual App:

    //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});

Uninstall a virtual App:

    VirtualCore.get().uninstallPackage({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.

About Author

Lody (imlody@foxmail.com)

空文件

简介

暂无描述 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/0d/VirtualApp.git
git@gitee.com:0d/VirtualApp.git
0d
VirtualApp
VirtualApp
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891