Skip to content

App crashes when using any module with native hooks. #727

@AnatolyJacobs

Description

@AnatolyJacobs

Steps to reproduce/复现步骤

Install IamNotDeveloper https://github.com/Ranshen1209/ImNotADeveloper
Install NativeDetector https://github.com/reveny/Android-Native-Root-Detector
Add NativeDetector to IamNotDeveloper, Run NativeDetector, The app will crash

Expected behaviour/预期行为

The IamNotDeveloper module is provided as an example only.
The issue isn't specific to this module (IamNotDeveloper) and not specific to this app (NativeDetector). The problem will persist even if all hooks are disabled; the app will still crash.

for example

extern "C" [[gnu::visibility("default")]] [[gnu::used]]
NativeOnModuleLoaded native_init(const NativeAPIEntries *entries) {
//    HookFunType hookFunc = entries->hook_func;
//    hookFunc((void *) __system_property_get, (void *) hooked_system_property_get,
//             reinterpret_cast<void **>(&original_system_property_get));
//    hookFunc((void *) __system_property_find, (void *) hooked_system_property_find,
//             reinterpret_cast<void **>(&original_system_property_find));
    return [](const char *name, void *handle) {};
}

Actual behaviour/实际行为

NativeDetector is running

Xposed Module List/Xposed 模块列表

IamNotDeveloper

Root implementation/Root 方案

Magisk 30.7

System Module List/系统模块列表

BoxForRoot
BusyBox

LSPosed version/LSPosed 版本

3043 (branch veneer)

Android version/Android 版本

Android 15

Version requirement/版本要求

Logs/日志

lspd_log.zip

LSPosed_2026-05-12T17_18_00.643286.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions