how to inject c code into android os code

I am following tutorial from this forum

"Using Ptrace in the realization of application program to control the Android pl"

 i need to know how can we inject trace to android code which should execute only once to modify the native service manager code.

 It cannot be attached as library to smssender1 application or any other application and call its function from java coding....because it will execute trace program every time the application runs. 

Can you please help me i need to learn this for research. i have to further play with service manager code for my research project but i dont know how to inject the code.


I would be thankful

Started by Naveen Mahmood Fancy at January 22, 2017 - 9:29 PM