Skip to content

Commit

Permalink
FIX: network above Android 10
Browse files Browse the repository at this point in the history
Signed-off-by: tiann <[email protected]>
  • Loading branch information
tiann committed Apr 11, 2020
1 parent acd2ebd commit effcb5e
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import com.lody.virtual.server.IPackageInstaller;
import com.lody.virtual.server.IPackageManager;

import java.io.File;
import java.util.List;

/**
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit effcb5e

Please sign in to comment.