VirtualApp是一个App虚拟引擎的完整实现(简称VA
)。
VirtualApp允许你在App内创建一个虚拟空间,你可以在虚拟空间内任意的安装
、启动
和卸载
APK,这一切都与外部隔离,就如同一个沙盒
。
运行在VA
中的APK无需在外部安装,即VA支持免安装运行APK。
VirtualApp已申请国家专利, 并获得软件著作权保护, 当你的行为对项目或是项目作者构成利益冲突时,我们将追究法律责任.
-
将你的Host和Plugins需要的所有权限加入到你的
AndroidManifest.xml
. -
前往你的Application并添加如下代码:
@Override
protected void attachBaseContext(Context base) {
super.attachBaseContext(base);
try {
VirtualCore.getCore().startup(base);
} catch (Throwable e) {
e.printStackTrace();
}
}
- For Install a virtual App, use this function:
VirtualCore.getCore().installApp({APK PATH}, flags);
- For Launch a virtual App, use this function:
VirtualCore.getCore().launchApp({PackageName});
- For uninstall a virtual App, use this function:
VirtualCore.getCore().uninstallApp({PackageName});
- If you need to get the
details of App
, use this function:
VirtualCore.getCore().findApp({PackageName});
https://github.com/prife/VirtualAppDoc
GPL 3.0
Lody ([email protected])