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) {