From 9b9222e8eeac450da9f77e4723e5ca7fc5f48a2c Mon Sep 17 00:00:00 2001 From: tiann <923551233@qq.com> Date: Tue, 26 Jun 2018 16:16:57 +0800 Subject: [PATCH] [VXP]: fix multi-user crash. --- VirtualApp/app/build.gradle | 4 ++-- .../src/main/java/com/lody/virtual/client/VClientImpl.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VirtualApp/app/build.gradle b/VirtualApp/app/build.gradle index 056e28096..10e4546fa 100644 --- a/VirtualApp/app/build.gradle +++ b/VirtualApp/app/build.gradle @@ -28,8 +28,8 @@ android { applicationId "io.va.exposed" minSdkVersion 21 targetSdkVersion 23 - versionCode 120 - versionName "0.12.0" + versionCode 121 + versionName "0.12.1" multiDexEnabled false android { defaultConfig { diff --git a/VirtualApp/lib/src/main/java/com/lody/virtual/client/VClientImpl.java b/VirtualApp/lib/src/main/java/com/lody/virtual/client/VClientImpl.java index a5f7be227..be2f54d10 100644 --- a/VirtualApp/lib/src/main/java/com/lody/virtual/client/VClientImpl.java +++ b/VirtualApp/lib/src/main/java/com/lody/virtual/client/VClientImpl.java @@ -335,7 +335,7 @@ private void bindApplicationNoCheck(String packageName, String processName, Cond if (enableXposed) { VLog.i(TAG, "Xposed is enabled."); ClassLoader originClassLoader = context.getClassLoader(); - ExposedBridge.initOnce(context, data.appInfo, originClassLoader); + ExposedBridge.initOnce(context, data.appInfo, originClassLoader, getUserId(vuid)); List modules = VirtualCore.get().getInstalledApps(0); for (InstalledAppInfo module : modules) { ExposedBridge.loadModule(module.apkPath, module.getOdexFile().getParent(), module.libPath,