OSDN Git Service

Support per-application switch to execute the VM in safe mode.
authorBen Cheng <bccheng@android.com>
Tue, 9 Feb 2010 00:06:32 +0000 (16:06 -0800)
committerBen Cheng <bccheng@android.com>
Wed, 10 Feb 2010 22:51:31 +0000 (14:51 -0800)
commit23085b781e145ed684e7270af1d5ced6800b8eff
tree43629e3d545d343314af074dc66e63f628d780ff
parent60586f2ec65d16d185767fce4311d3ed0e9112ac
Support per-application switch to execute the VM in safe mode.

The new attribute can be set by adding android:safeMode="true"
in AndroidManifest.xml with the SDK.

Tested with pairing locally compiled SDK with Eclipse and verified that the JIT
(the only component currently included in the safe mode) is indeed disabled
with the new attribute.

Bug: 2267583
api/current.xml
core/java/android/content/pm/ApplicationInfo.java
core/java/android/content/pm/PackageParser.java
core/java/android/os/Process.java
core/java/com/android/internal/os/ZygoteConnection.java
core/res/res/values/attrs_manifest.xml
core/res/res/values/public.xml
services/java/com/android/server/am/ActivityManagerService.java