mirror of
https://github.com/LSPosed/LSPlant.git
synced 2025-05-04 20:42:02 +08:00
Suppress NSME caused by isJavaDebuggable on 8.1 (#13)
This commit is contained in:
parent
3d2e1f5fc7
commit
d74ca0d4f8
@ -55,6 +55,10 @@ inline auto GetAndroidApiLevel() {
|
||||
|
||||
inline auto IsJavaDebuggable(JNIEnv *env) {
|
||||
static auto kDebuggable = [&env]() {
|
||||
auto sdk_int = GetAndroidApiLevel();
|
||||
if (sdk_int < __ANDROID_API_P__) {
|
||||
return false;
|
||||
}
|
||||
auto runtime_class = JNI_FindClass(env, "dalvik/system/VMRuntime");
|
||||
if (!runtime_class) {
|
||||
LOGE("Failed to find VMRuntime");
|
||||
|
Loading…
x
Reference in New Issue
Block a user