From effcb5e3cc55068ad4af2545efe42ff6c0e83cf5 Mon Sep 17 00:00:00 2001 From: tiann Date: Sat, 11 Apr 2020 13:57:04 +0800 Subject: [PATCH] FIX: network above Android 10 Signed-off-by: tiann --- .../java/com/lody/virtual/client/ipc/VPackageManager.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/VirtualApp/lib/src/main/java/com/lody/virtual/client/ipc/VPackageManager.java b/VirtualApp/lib/src/main/java/com/lody/virtual/client/ipc/VPackageManager.java index a30ad53fe..1f46d97a0 100644 --- a/VirtualApp/lib/src/main/java/com/lody/virtual/client/ipc/VPackageManager.java +++ b/VirtualApp/lib/src/main/java/com/lody/virtual/client/ipc/VPackageManager.java @@ -18,6 +18,7 @@ import com.lody.virtual.server.IPackageInstaller; import com.lody.virtual.server.IPackageManager; +import java.io.File; import java.util.List; /** @@ -184,7 +185,10 @@ public ApplicationInfo getApplicationInfo(String packageName, int flags, int use return null; } final int P = 28; - final String APACHE_LEGACY = "/system/framework/org.apache.http.legacy.boot.jar"; + String APACHE_LEGACY = "/system/framework/org.apache.http.legacy.boot.jar"; + if (!new File(APACHE_LEGACY).exists()) { + APACHE_LEGACY = "/system/framework/org.apache.http.legacy.jar"; + } if (android.os.Build.VERSION.SDK_INT >= P && info.targetSdkVersion <= P) { String[] newSharedLibraryFiles; if (info.sharedLibraryFiles == null) {