We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 623ee49 commit 6294a23Copy full SHA for 6294a23
VirtualApp/lib/src/main/jni/Foundation/VMPatch.cpp
@@ -427,7 +427,10 @@ void hookAndroidVM(JArrayClass<jobject> javaMethods,
427
}
428
429
measureNativeOffset(isArt);
430
- replaceGetCallingUid(isArt);
+ // 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);
434
replaceOpenDexFileMethod(javaMethods.getElement(OPEN_DEX).get(), isArt,
435
apiLevel);
436
replaceCameraNativeSetupMethod(javaMethods.getElement(CAMERA_SETUP).get(),
@@ -492,4 +495,4 @@ void *getDvmOrArtSOHandle() {
492
495
soInfo = RTLD_DEFAULT;
493
496
494
497
return soInfo;
-}
498
+}
0 commit comments