Reputation: 33
I am creating a softkeyboard for android to play around with ptrace(). I would like to set a fix process id for the application I made. Is it possible to to it so that I can play around android app with ptrace()?
Upvotes: 2
Views: 1524
Reputation: 239031
You cannot do this. The usual approach is to have your application write its process ID to a file when it starts up; the other application can then read that file.
Upvotes: 5