Skip to content

Commit ec670d0

Browse files
authored
Merge pull request #811 from uni7corn/vxp
[bugfix][android 9 无网络]:解决虚拟环境无网络的缺陷
2 parents c0c1c70 + 95dfd8d commit ec670d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ public ApplicationInfo getApplicationInfo(String packageName, int flags, int use
185185
}
186186
final int P = 28;
187187
final String APACHE_LEGACY = "/system/framework/org.apache.http.legacy.boot.jar";
188-
if (android.os.Build.VERSION.SDK_INT >= P && info.targetSdkVersion < P) {
188+
if (android.os.Build.VERSION.SDK_INT >= P && info.targetSdkVersion <= P) {
189189
String[] newSharedLibraryFiles;
190190
if (info.sharedLibraryFiles == null) {
191191
newSharedLibraryFiles = new String[]{APACHE_LEGACY};

0 commit comments

Comments
 (0)