Skip to content

Commit 95dfd8d

Browse files
author
uni7corn
committed
[bugfix][android 9 无网络]:解决虚拟环境无网络的缺陷
当真机环境为 Android9.0 时,虚拟环境中 app的info.targetSdkVersion=28时,无网络访问的缺陷,info.targetSdkVersion<28 应改为 info.targetSdkVersion<=28 Signed-off-by: uni7corn <[email protected]>
1 parent c0c1c70 commit 95dfd8d

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)