Skip to content

Commit fb72cde

Browse files
authored
Merge pull request #809 from 2-young-2-simple/vxp
Fix some bugs on
2 parents ec670d0 + 6294a23 commit fb72cde

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

VirtualApp/app/src/main/java/io/virtualapp/sys/InstallerActivity.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ private boolean dealUpdate(List<AppInfoLite> appList) {
179179
}
180180

181181
List<String> magicApps = Arrays.asList(EncodeUtils.decode("Y29tLmxiZS5wYXJhbGxlbA=="), // com.lbe.parallel
182+
EncodeUtils.decode("aW8udmlydHVhbGFwcC5zYW5kdnhwb3NlZA=="), // io.virtualapp.sandvxposed
183+
EncodeUtils.decode("Y29tLnNrLnNwYXRjaA=="), // com.sk.spatch
182184
EncodeUtils.decode("Y29tLnFpaG9vLm1hZ2lj"), // com.qihoo.magic
183185
EncodeUtils.decode("Y29tLmRvdWJsZW9wZW4=")); // com.doubleopen
184186

VirtualApp/lib/src/main/java/com/lody/virtual/client/hook/proxies/am/MethodProxies.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -375,13 +375,8 @@ public String getMethodName() {
375375

376376
@Override
377377
public Object call(Object who, Method method, Object... args) throws Throwable {
378-
String packageName = (String) args[1];
379-
if (Constants.WECHAT_PACKAGE.equals(packageName)) {
380-
// 解决微信界面跳转狂闪的问题
381-
return null;
382-
} else {
383-
return super.call(who, method, args);
384-
}
378+
// Many application crash/darkscreen if not return null.
379+
return null;
385380
}
386381
}
387382

VirtualApp/lib/src/main/jni/Foundation/VMPatch.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,10 @@ void hookAndroidVM(JArrayClass<jobject> javaMethods,
427427
}
428428
}
429429
measureNativeOffset(isArt);
430-
replaceGetCallingUid(isArt);
430+
// Crash on Q if hook directly by modify entrypoint of function.
431+
// Just skip this step on Q and get never crash
432+
if(apiLevel<=28)
433+
replaceGetCallingUid(isArt);
431434
replaceOpenDexFileMethod(javaMethods.getElement(OPEN_DEX).get(), isArt,
432435
apiLevel);
433436
replaceCameraNativeSetupMethod(javaMethods.getElement(CAMERA_SETUP).get(),
@@ -492,4 +495,4 @@ void *getDvmOrArtSOHandle() {
492495
soInfo = RTLD_DEFAULT;
493496
}
494497
return soInfo;
495-
}
498+
}

0 commit comments

Comments
 (0)