Skip to content

Commit

Permalink
Remove vm hook for Android 11 temporarily
Browse files Browse the repository at this point in the history
Signed-off-by: tiann <twsxtd@gmail.com>
  • Loading branch information
tiann committed Nov 23, 2020
1 parent ed887cf commit db1f190
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions VirtualApp/lib/src/main/jni/Foundation/VMPatch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,10 @@ void hookAndroidVM(JArrayClass<jobject> javaMethods,
"dvmCreateStringFromCstr");
}
}
if (apiLevel >= 30) {
// fixme for Android 11
return;
}
measureNativeOffset(isArt);
// Crash on Q if hook directly by modify entrypoint of function.
// Just skip this step on Q and get never crash
Expand Down

0 comments on commit db1f190

Please sign in to comment.