Patching Android ARM64 library initializers for easy Frida instrumentation and debugging
ID: cbda4924-5d48-5d06-ac45-deee0b44d374
STIX ID: report--cbda4924-5d48-5d06-ac45-deee0b44d374
Feed Name: NVISO Labs
This post outlines a technique for converting an Android .so library with an .init_array into a standalone, instrumentable binary: it removes INIT_ARRAY/INIT_ARRAYSZ from the dynamic section using LIEF, adds a symbol for the constructor (INIT0), and renames JNI_OnLoad to avoid automatic invocation. A JNIInvocation-based harness then initializes ART/JNI to load and interact with the library outside an app, and Frida hooks are used to manipulate exported functions to solve a simple crackme—illustrating practical methods for bypassing RASP and improving mobile reverse engineering workflows.
Your team is not currently subscribed to this feed. You must subscribe to it in order to see this post.
