auto import from //branches/cupcake_rel/...@138607
diff --git a/tools/dexpreopt/dexpreopt.py b/tools/dexpreopt/dexpreopt.py
index 8a80e06..5dde642 100755
--- a/tools/dexpreopt/dexpreopt.py
+++ b/tools/dexpreopt/dexpreopt.py
@@ -95,9 +95,9 @@
or unqualified (and left to exec() to find).
kernel: If set, passed to the emulator as "-kernel".
ramdisk: If set, passed to the emulator as "-ramdisk".
- image: If set, passed to the emulator as "-image".
+ image: If set, passed to the emulator as "-system".
userdata: If set, passed to the emulator as "-initdata" and "-data".
- system: If set, passed to the emulator as "-system".
+ system: If set, passed to the emulator as "-sysdir".
Returns:
A subprocess.Popen that refers to the emulator process, or None if
@@ -107,9 +107,10 @@
args = [exe_name]
if kernel: args += ['-kernel', kernel]
if ramdisk: args += ['-ramdisk', ramdisk]
- if image: args += ['-image', image]
+ if image: args += ['-system', image]
if userdata: args += ['-initdata', userdata, '-data', userdata]
- if system: args += ['-system', system]
+ if system: args += ['-sysdir', system]
+ args += ['-partition-size', '128']
args += ['-no-window', '-netfast', '-noaudio']
_USE_PIPE = True