dalvik.system
Class TouchDex
java.lang.Object
dalvik.system.TouchDex
public class TouchDex
- extends Object
Induce optimization/verification of a set of DEX files.
TODO: This class is public, so SystemServer can access it. This is NOT
the correct long-term solution; once we have a real installer and/or
dalvik-cache manager, this class should be removed.
|
Method Summary |
static void |
main(String[] args)
We continue here in the child process. |
static int |
start(String dexFiles)
Fork a process, make sure the DEX files are prepped, and return
when everything is finished. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TouchDex
public TouchDex()
start
public static int start(String dexFiles)
- Fork a process, make sure the DEX files are prepped, and return
when everything is finished.
The filenames must be the same as will be used when the files are
actually opened, because the dalvik-cache filename is based upon
this filename. (The absolute path to the jar/apk should work.)
- Parameters:
dexFiles - Colon-separated list of DEX files.
- Returns:
- zero on success
main
public static void main(String[] args)
- We continue here in the child process. args[0] can be a colon-separated
path list, or "-" to read from stdin.
Alternatively, if we're invoked directly from the command line we
just start here (skipping the fork/exec stuff).
- Parameters:
args - command line args
Please submit a feedback, bug or feature