You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.
yeah,the reason is i do not want magisk to modify my phone's boot partition, and i'm reading the code and trying to strip the code related about magisk in it. what confuse me is the ro.dalvik.vm.native.bridge is reset to 0 after boot ? (after installation, getprop cmd return 0)
what confuse me is the ro.dalvik.vm.native.bridge is reset to 0 after boot ? (after installation, getprop cmd return 0)
It is reset after the system server is started (this part is done in "rirud" and "rirud_java"), or anyone can simply detect Riru by checking this prop.
What Riru do in short:
Modify ro.dalvik.vm.native.bridge to libriruloader.so, so that zygote will "dlopen" it
Load modules
Manage to "hook" nativeForkAnd..and related functions (see jni_hooks.cpp)
Call module functions in nativeForkAnd.. and related functions
Since you can modify the framework codes, steps 1 and 3 are necessary to you.
What you need to do is:
Find somewhere to load the modules
Call module functions in "nativeForkAnd.. functions"(platform/frameworks/base/core/jni/com_android_internal_os_Zygote.cpp)
is there plan or a way to build riru into a rom as part of the compilation process.it would be great if riru can work without magisk,i think
The text was updated successfully, but these errors were encountered: