java.lang.Object | |
↳ | dalvik.system.Zygote |
This class is deprecated.
this is an internal Dalvik class that is not appropriate for
general use. It will be removed from the public API in a future release.
Provides access to the Dalvik "zygote" feature, which allows a VM instance to be partially initialized and then fork()'d from the partially initialized state.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | DEBUG_ENABLE_ASSERT | enable Java programming language "assert" statements | |||||||||
int | DEBUG_ENABLE_CHECKJNI | enable JNI checks | |||||||||
int | DEBUG_ENABLE_DEBUGGER | enable debugging over JDWP | |||||||||
int | DEBUG_ENABLE_SAFEMODE | disable the JIT compiler |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Forks a new Zygote instance, but does not leave the zygote mode.
| |||||||||||
Forks a new VM instance.
| |||||||||||
This method is deprecated.
use
forkAndSpecialize(int, int, int[], int, int[][])
| |||||||||||
Special method to start the system server process.
| |||||||||||
This method is deprecated.
use
forkSystemServer(int, int, int[], int, int[][])
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object
|
enable Java programming language "assert" statements
enable JNI checks
enable debugging over JDWP
disable the JIT compiler
Forks a new Zygote instance, but does not leave the zygote mode. The current VM must have been started with the -Xzygote flag. The new child is expected to eventually call forkAndSpecialize()
Forks a new VM instance. The current VM must have been started with the -Xzygote flag. NOTE: new instance keeps all root capabilities. The new process is expected to call capset().
uid | the UNIX uid that the new process should setuid() to after fork()ing and and before spawning any threads. |
---|---|
gid | the UNIX gid that the new process should setgid() to after fork()ing and and before spawning any threads. |
gids | null-ok; a list of UNIX gids that the new process should setgroups() to after fork and before spawning any threads. |
debugFlags | bit flags that enable debugging features. |
rlimits | null-ok an array of rlimit tuples, with the second dimension having a length of 3 and representing (resource, rlim_cur, rlim_max). These are set via the posix setrlimit(2) call. |
This method is deprecated.
use forkAndSpecialize(int, int, int[], int, int[][])
Forks a new VM instance.
Special method to start the system server process. In addition to the common actions performed in forkAndSpecialize, the pid of the child process is recorded such that the death of the child process will cause zygote to exit.
uid | the UNIX uid that the new process should setuid() to after fork()ing and and before spawning any threads. |
---|---|
gid | the UNIX gid that the new process should setgid() to after fork()ing and and before spawning any threads. |
gids | null-ok; a list of UNIX gids that the new process should setgroups() to after fork and before spawning any threads. |
debugFlags | bit flags that enable debugging features. |
rlimits | null-ok an array of rlimit tuples, with the second dimension having a length of 3 and representing (resource, rlim_cur, rlim_max). These are set via the posix setrlimit(2) call. |
This method is deprecated.
use forkSystemServer(int, int, int[], int, int[][])
Special method to start the system server process.