VirtualApp App虚拟引擎的开源实现 项目简介
类似LBE平行空间, VirtualApp是一个App虚拟引擎的开源实现。 VirtualApp在你的App进程内创建一个虚拟空间,你可以在虚拟空间内任意的安装、启动和卸载APK, 这一切都与外部隔离,就如同一个沙盒。VirtualApp亦是一个插件化框架,运行在VirtualApp的插件不需要任何的约束。快速开始VirtualApp 使用了 @hide API, 因此你必须使用我们的 android.jar 来替换你已有的那个 (Android-SDK/platforms/android-23/{android.jar}).在你的 AndroidManifest.xml 添加如下代码: <permission
android:name="com.lody.virtual.permission.VIRTUAL_BROADCAST"
android:protectionLevel="signature" />
<uses-permission android:name="com.lody.virtual.permission.VIRTUAL_BROADCAST" />
<service android:name="com.lody.virtual.client.stub.KeepService" android:process=":x"/>
<provider
android:process=":x"
android:authorities="virtual.service.BinderProvider"
android:name="com.lody.virtual.service.BinderProvider"
android:exported="false" />
<activity
android:theme="@android:style/Theme.Translucent.NoTitleBar"
android:name="com.lody.virtual.client.stub.ShortcutHandleActivity" android:exported="true"/>
<activity
android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|uiMode|screenSize|smallestScreenSize|fontScale"
android:name="com.lody.virtual.client.stub.StubActivity$C0" android:process=":p0" >
<meta-data android:name="X-Identity" android:value="Stub-User"/>
</activity>
<provider
android:process=":p0"
android:authorities="virtual.client.stub.StubContentProvider0"
android:name="com.lody.virtual.client.stub.StubContentProvider$C0"
android:exported="false">
<meta-data android:name="X-Identity" android:value="Stub-User"/>
</provider>
<!--and so on-->
android:name="com.lody.virtual.permission.VIRTUAL_BROADCAST"
android:protectionLevel="signature" />
<uses-permission android:name="com.lody.virtual.permission.VIRTUAL_BROADCAST" />
<service android:name="com.lody.virtual.client.stub.KeepService" android:process=":x"/>
<provider
android:process=":x"
android:authorities="virtual.service.BinderProvider"
android:name="com.lody.virtual.service.BinderProvider"
android:exported="false" />
<activity
android:theme="@android:style/Theme.Translucent.NoTitleBar"
android:name="com.lody.virtual.client.stub.ShortcutHandleActivity" android:exported="true"/>
<activity
android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|uiMode|screenSize|smallestScreenSize|fontScale"
android:name="com.lody.virtual.client.stub.StubActivity$C0" android:process=":p0" >
<meta-data android:name="X-Identity" android:value="Stub-User"/>
</activity>
<provider
android:process=":p0"
android:authorities="virtual.client.stub.StubContentProvider0"
android:name="com.lody.virtual.client.stub.StubContentProvider$C0"
android:exported="false">
<meta-data android:name="X-Identity" android:value="Stub-User"/>
</provider>
<!--and so on-->