The Activity Manager provide a API : killBackgroundProcesses. And the AMS will call Process.killProcessQuiet to kill the process with uid system. I write a app with system uid, and call Process.kilProcess, but it doesn't work. The process is not killed.So how can I kill a process with system uid ?
--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-platfo...@googlegroups.com.
To post to this group, send email to android-...@googlegroups.com.
Visit this group at http://groups.google.com/group/android-platform.
For more options, visit https://groups.google.com/d/optout.
534 | /*** |
535 | * Prepare the arguments and fork for the system server process. |
536 | */ |
537 | private static boolean startSystemServer() |
538 | throws MethodAndArgsCaller, RuntimeException { |
539 | /** Hardcoded command line to start the system server */ |
540 | String args[] = { |
541 | "--setuid=1000", |
542 | "--setgid=1000", |
543 | "--setgroups=1001,1002,1003,1004,1005,1006,1007,1008,1009,1010,3001,3002,3003", |
544 | "--capabilities=130104352,130104352", |
545 | "--runtime-init", |
546 | "--nice-name=system_server", |
547 | "com.android.server.SystemServer", |
548 | }; |
534/***
535* Prepare the arguments and fork for the system server process.
536*/
537privatestaticbooleanstartSystemServer()
538throwsMethodAndArgsCaller, RuntimeException {
539/** Hardcoded command line to start the system server */
540String args[] = {
541"--setuid=1000",
...
<code style="padding: 0px 0.3em 0px 0px !important; margin: 0px !important; border: 0px !important; outline: 0px !important; background-image: none !important