Basically i'm debugging a closed source binary on Android and i want to execute some of my code in between which is large enough not to fit in codecave. So is it possible to compile library with my code separately & then calling it from target binary? If yes then how?
My friend suggested me to modify binary header & extend data segment to inject my code. Is it convenient?
I have another one suggestion. I know interface to that closed source binary, then is it possible to write a wrapper binary? For ex, suppose closed source binary is libfoo.so. Then is it possible to write a binary libbar.so which actually loads libfoo.so & sends function calls to libfoo.so
I'm asking this because i've seen some warez programs bundled with some extra dlls & often some wrapper executable.