|
1 | | -[](https://github.com/asLody/VirtualApp) |
2 | | - |
3 | | -[中国人猛戳这里](CHINESE.md "中文") |
4 | | - |
5 | | -About |
| 1 | +简介 |
6 | 2 | ----- |
7 | | -**VirtualApp** is an open platform for Android that allows you to create a `Virtual Space`, |
8 | | -you can install and run apk inside. Beyond that, VirtualApp is also a `Plugin Framework`, |
9 | | -the plugins running on VirtualApp does not require any constraints. |
10 | | -VirtualApp does **not** require root, it is running on the `local process`. |
| 3 | +**VAExposed** 是基于[VirtualApp](https://github.com/asLody/VirtualApp) 和 [epic](https://github.com/tiann/epic) 在**非ROOT**环境下运行Xposed模块的实现(支持4.0~8.1)。 |
11 | 4 |
|
12 | | -NOTICE |
| 5 | +⚠️ |
13 | 6 | ------- |
14 | | -**This project has been authorized by the business.** |
| 7 | +本项目使用的 VirtualApp 不允许用于商业用途,如果有这个需求,请联系 Lody ([email protected])。 |
15 | 8 |
|
16 | | -**You are not allowed to modify the app module and put to the software market, if you do that, The consequences you know :)** |
| 9 | +使用 |
| 10 | +---------- |
17 | 11 |
|
18 | | -**VirtualApp is not free, If you need to use the lib code, please send email to me :)** |
| 12 | +## 准备 |
19 | 13 |
|
20 | | -Background |
21 | | ----------- |
| 14 | +首先在 [发布页面](https://github.com/android-hacker/VAExposed/releases) 下载最新的VAExposed安装包安装到手机。 |
22 | 15 |
|
23 | | -VirtualApp was born in early 2015, Originally, it is just a simple plugin framework, |
24 | | -But as time goes on, |
25 | | -the compatibility of it is getting better and better. |
26 | | -in the end, it evolved into a `Virtual Container`. |
| 16 | +## 安装模块 |
27 | 17 |
|
| 18 | +打开VAExposed,在里面安装要使用的APP,以及相应的Xposed模块即可。 |
28 | 19 |
|
29 | | -Get started |
30 | | ------------ |
31 | | -If you use latest android studio (version 2.0 or above), please disable `Instant Run`. |
32 | | -Open `Setting | Build,Exception,Deployment`, and disable `Enable Instant Run to hot swap...` |
33 | | - |
34 | | -**Goto your Application and insert the following code:** |
35 | | -```java |
36 | | - @Override |
37 | | - protected void attachBaseContext(Context base) { |
38 | | - super.attachBaseContext(base); |
39 | | - try { |
40 | | - VirtualCore.get().startup(base); |
41 | | - } catch (Throwable e) { |
42 | | - e.printStackTrace(); |
43 | | - } |
44 | | - } |
45 | | -``` |
46 | | - |
47 | | -**Install a virtual App:** |
48 | | -```java |
49 | | - VirtualCore.get().installPackage({APK PATH}, flags); |
50 | | - |
51 | | -``` |
| 20 | +注意:**所有的工作(安装Xposed模块,安装APP)必须在VAExposed中**进行,否则Xposed模块不会有任何作用!比如,将微信直接安装在系统上(而非VAEXposed中),防撤回安装在VAExposed中;或者把微信安装在VAExposed上,防撤回插件直接安装在系统上;或者两者都直接安装在系统上,**均不会起任何作用**。 |
52 | 21 |
|
53 | | -**Launch a virtual App:** |
54 | | -```java |
55 | | - //VirtualApp support multi-user-mode which can run multiple instances of a same app. |
56 | | - //if you don't need this feature, just set `{userId}` to 0. |
57 | | - Intent intent = VirtualCore.get().getLaunchIntent({PackageName}, {userId}); |
58 | | - VActivityManager.get().startActivity(intent, {userId}); |
59 | | -``` |
| 22 | +在VAExposed中安装App有两种方式: |
60 | 23 |
|
61 | | -**Uninstall a virtual App:** |
62 | | -```java |
63 | | - VirtualCore.get().uninstallPackage({PackageName}); |
64 | | -``` |
| 24 | +1. 直接复制已经在系统中安装好的APP,比如如果你系统中装了微信,那么刻意直接复制一份。 |
| 25 | +2. 通过外置存储直接安装APK文件;点主界面的➕,然后选择后面两个TAB即可。 |
65 | 26 |
|
66 | | -More details, please read the source code of demo app, :-) |
| 27 | +在VAExposed中安装Xposed模块,可以跟安装正常的APK一样,以上两种安装App的方式也适用于安装Xposed模块。不过,你也可以通过VAExposed中内置的XposedInstaller来安装和管理模块,跟通常的XposedInstaller使用方式一样;去下载页面,下载安装即可。 |
67 | 28 |
|
68 | | -Documentation |
69 | | -------------- |
70 | 29 |
|
71 | | -VirtualApp currently has **no documentation**, If you are interested in VirtualApp, please send email to me. |
| 30 | +已知问题 |
| 31 | +----------- |
72 | 32 |
|
73 | | -About Author |
| 33 | +1. 使用部分插件在7.0以上会导致对应的APP黑屏,如QX模块,WX模块。 |
| 34 | +2. 微信巫师在7.0以上请使用2.5.5版本。 |
| 35 | +3. 由于暂不支持资源HOOK,部分美化插件无法生效。 |
| 36 | +4. 部分插件的兼容性有问题,比如上帝模式可以作用在QQ,支付宝上;但无法使用在微信上。 |
| 37 | + |
| 38 | +支持和加入 |
74 | 39 | ------------ |
75 | 40 |
|
76 | | - |
| 41 | +目前VAExposed还不完善,如果你对非ROOT下实现Xposed感兴趣;欢迎加入!你可以通过如下方式来支持: |
| 42 | + |
| 43 | +1. 直接贡献代码,提供Feature,修复BUG! |
| 44 | +2. 使用你拥有的手机,安装你常用的Xposed模块,反馈不可用情况;协助帮忙解决兼容性问题! |
| 45 | +3. 提出体验上,功能上的建议,帮助完善VAExposed! |
| 46 | + |
| 47 | +致谢 |
| 48 | +------ |
| 49 | + |
| 50 | +1. [VirtualApp](https://github.com/asLody/VirtualApp) |
| 51 | +2. [Xposed](https://github.com/rovo89/Xposed) |
| 52 | + |
| 53 | + |
0 commit comments