diff options
author | Andreas Gampe <agampe@google.com> | 2015-09-22 18:27:39 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-09-22 18:27:39 +0000 |
commit | b49245f96233b7f89fb5d4ba52576131ca6fb47a (patch) | |
tree | 8db73d673cc52b671877701686bf77473456fa3f /core | |
parent | 88f92ec5a76c94dcb084ffcc8a4fc36a66bb9ca2 (diff) | |
parent | 06bb908b78e3c790d3db52fef9f2ab0a129e53cd (diff) | |
download | frameworks_base-b49245f96233b7f89fb5d4ba52576131ca6fb47a.zip frameworks_base-b49245f96233b7f89fb5d4ba52576131ca6fb47a.tar.gz frameworks_base-b49245f96233b7f89fb5d4ba52576131ca6fb47a.tar.bz2 |
Merge "Frameworks/base: Propagate boot status to installd" into mnc-dr-dev
Diffstat (limited to 'core')
-rw-r--r-- | core/java/com/android/internal/os/InstallerConnection.java | 7 | ||||
-rw-r--r-- | core/java/com/android/internal/os/ZygoteInit.java | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/core/java/com/android/internal/os/InstallerConnection.java b/core/java/com/android/internal/os/InstallerConnection.java index dcc6a5e..db2b41f 100644 --- a/core/java/com/android/internal/os/InstallerConnection.java +++ b/core/java/com/android/internal/os/InstallerConnection.java @@ -92,14 +92,14 @@ public class InstallerConnection { } public int dexopt(String apkPath, int uid, boolean isPublic, - String instructionSet, int dexoptNeeded) { + String instructionSet, int dexoptNeeded, boolean bootComplete) { return dexopt(apkPath, uid, isPublic, "*", instructionSet, dexoptNeeded, - false, false, null); + false, false, null, bootComplete); } public int dexopt(String apkPath, int uid, boolean isPublic, String pkgName, String instructionSet, int dexoptNeeded, boolean vmSafeMode, - boolean debuggable, String outputPath) { + boolean debuggable, String outputPath, boolean bootComplete) { StringBuilder builder = new StringBuilder("dexopt"); builder.append(' '); builder.append(apkPath); @@ -116,6 +116,7 @@ public class InstallerConnection { builder.append(debuggable ? " 1" : " 0"); builder.append(' '); builder.append(outputPath != null ? outputPath : "!"); + builder.append(bootComplete ? " 1" : " 0"); return execute(builder.toString()); } diff --git a/core/java/com/android/internal/os/ZygoteInit.java b/core/java/com/android/internal/os/ZygoteInit.java index 06919e1..59283bb 100644 --- a/core/java/com/android/internal/os/ZygoteInit.java +++ b/core/java/com/android/internal/os/ZygoteInit.java @@ -477,7 +477,7 @@ public class ZygoteInit { classPathElement, "*", instructionSet, false /* defer */); if (dexoptNeeded != DexFile.NO_DEXOPT_NEEDED) { installer.dexopt(classPathElement, Process.SYSTEM_UID, false, - instructionSet, dexoptNeeded); + instructionSet, dexoptNeeded, false /* boot complete */); } } } catch (IOException ioe) { |