Skip to content

Commit effcb5e

Browse files
committed
FIX: network above Android 10
Signed-off-by: tiann <[email protected]>
1 parent acd2ebd commit effcb5e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

VirtualApp/lib/src/main/java/com/lody/virtual/client/ipc/VPackageManager.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
import com.lody.virtual.server.IPackageInstaller;
1919
import com.lody.virtual.server.IPackageManager;
2020

21+
import java.io.File;
2122
import java.util.List;
2223

2324
/**
@@ -184,7 +185,10 @@ public ApplicationInfo getApplicationInfo(String packageName, int flags, int use
184185
return null;
185186
}
186187
final int P = 28;
187-
final String APACHE_LEGACY = "/system/framework/org.apache.http.legacy.boot.jar";
188+
String APACHE_LEGACY = "/system/framework/org.apache.http.legacy.boot.jar";
189+
if (!new File(APACHE_LEGACY).exists()) {
190+
APACHE_LEGACY = "/system/framework/org.apache.http.legacy.jar";
191+
}
188192
if (android.os.Build.VERSION.SDK_INT >= P && info.targetSdkVersion <= P) {
189193
String[] newSharedLibraryFiles;
190194
if (info.sharedLibraryFiles == null) {

0 commit comments

Comments
 (0)