For being able to kill whatever processes you have to be root. One possible way to kill applications from Java level would be to implement a JNI interface. You would need to implement a native application which runs as root and is able to handle incoming requests. Your native JNI implementation would implement the functionality to talk to this new root process. Of course you have to make sure that the application which executes the kill command is started as root.
Another possibility would be to use socket communication to talk to your native process. If you find an easier way to do this, please let me know. -- Roman Baumgaertner Sr. SW Engineer-OSDC ·T· · ·Mobile· stick together The views, opinions and statements in this email are those of the author solely in their individual capacity, and do not necessarily represent those of T-Mobile USA, Inc. On Jul 14, 5:26 pm, sychee <[email protected]> wrote: > Hi, I am currently writing a program to kill processes that the users > choose to end. From the logCat, I notice that a Signal 9 has been sent > to the application but the process is still running. I am only able to > kill my own process through the code below. I understand that the > kernel only allow killing of processes that have some relation to my > program, but how do I kill other processes other than my own? Please > help. Thank you very much ! > > Below is my code: > > android.os.Process.killProcess(processID); --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

