The Android system provides a default libc.so, and it will be loaded automatically in every app.
Now I just want to change the libc.so's function abs()
, say, I want abs(any_number)
always returns 0; and the other functions are same as the original libc.so's.
The easiest way is modifying the abs()
function body of libc
project, and rebuilding the modified project. The output is also named libc.so, and embedded in the APK.
Is this way possible?
The Android App launcher will first load the embedded libc.so if any?