From f20c92fe7f952843c8113e3aa57eae9fa613fc27 Mon Sep 17 00:00:00 2001 From: Andy McFadden Date: Mon, 1 Feb 2010 14:39:21 -0800 Subject: Minor clarification. People seem tempted to skip past the introductory material and jump straight to the meaty bits, but the introduction tells you some important things (like how you need to stop/start the framework). --- docs/embedded-vm-control.html | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'docs/embedded-vm-control.html') diff --git a/docs/embedded-vm-control.html b/docs/embedded-vm-control.html index 0b279e812..1e544534a 100644 --- a/docs/embedded-vm-control.html +++ b/docs/embedded-vm-control.html @@ -8,7 +8,7 @@

Controlling the Embedded VM

-

Overview

+

Introduction (read this first!)

The Dalvik VM supports a variety of command-line arguments (use adb shell dalvikvm -help to get a summary), but @@ -31,12 +31,13 @@ with setprop, issuing a shell command on the device like this:

adb shell setprop <name> <value>
-

The Android runtime must be restarted before the changes will take -effect (adb shell stop; adb shell start). This is because the +

The Android runtime must be restarted before the changes will take +effect (adb shell stop; adb shell start). This is because the settings are processed in the "zygote" process, which starts early and stays around "forever". -

You may not be able to set this as an unprivileged user. You can use +

You may not be able to set dalvik.* properties or restart +the system as an unprivileged user. You can use adb root or run the su command from the device shell on "userdebug" builds to become root first. When in doubt,

adb shell getprop <name>
@@ -48,7 +49,7 @@ add a line to /data/local.prop that looks like:

Such changes will survive reboots, but will be lost if the data partition is wiped. (Hint: create a local.prop -on your workstation, then adb push local.prop /data . Or, +on your workstation, then adb push local.prop /data. Or, use one-liners like adb shell "echo name = value >> /data/local.prop" -- note the quotes are important.) -- cgit v1.2.3