diff options
| author | 2011-09-19 16:52:37 -0700 | |
|---|---|---|
| committer | 2011-09-19 16:52:37 -0700 | |
| commit | 85a61c4d6fedff2f1539e4cfff4b173ce0a28a3f (patch) | |
| tree | 5eb4e81dc032d820d8bfc7409e3edce6c8287aa3 | |
| parent | 6c03850616a6e87de3e1943e47605cc5ebb20e2b (diff) | |
| parent | 553acf0409619ccde09332fb8af3e0b5c7cc4752 (diff) | |
Merge "Only run "core" apps when encrypting device." into ics-factoryrom
| -rw-r--r-- | services/java/com/android/server/SystemServer.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/services/java/com/android/server/SystemServer.java b/services/java/com/android/server/SystemServer.java index 7e28c4f1b26a..977dd6f5d54f 100644 --- a/services/java/com/android/server/SystemServer.java +++ b/services/java/com/android/server/SystemServer.java @@ -64,6 +64,7 @@ import java.util.TimerTask; class ServerThread extends Thread { private static final String TAG = "SystemServer"; + private static final String ENCRYPTING_STATE = "trigger_restart_min_framework"; ContentResolver mContentResolver; @@ -147,9 +148,15 @@ class ServerThread extends Thread { AttributeCache.init(context); Slog.i(TAG, "Package Manager"); + // Only run "core" apps if we're encrypting the device. + String cryptState = SystemProperties.get("vold.decrypt"); + boolean onlyCore = ENCRYPTING_STATE.equals(cryptState); + if (onlyCore) { + Slog.w(TAG, "Detected encryption in progress - only parsing core apps"); + } pm = PackageManagerService.main(context, factoryTest != SystemServer.FACTORY_TEST_OFF, - false); + onlyCore); ActivityManagerService.setSystemProcess(); |