summaryrefslogtreecommitdiffstats
path: root/core/java/com
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2015-09-22 18:36:43 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2015-09-22 18:36:43 +0000
commit9ce68b24440a7bc326cad2d09940ccf750eb2b2a (patch)
treef8d53220e55eef5fceb929f06139fb7c241aef83 /core/java/com
parentef44f99d90e81de4dff92d7cdbdb58e6b38fcbd4 (diff)
parentb49245f96233b7f89fb5d4ba52576131ca6fb47a (diff)
downloadframeworks_base-9ce68b24440a7bc326cad2d09940ccf750eb2b2a.zip
frameworks_base-9ce68b24440a7bc326cad2d09940ccf750eb2b2a.tar.gz
frameworks_base-9ce68b24440a7bc326cad2d09940ccf750eb2b2a.tar.bz2
am b49245f9: Merge "Frameworks/base: Propagate boot status to installd" into mnc-dr-dev
* commit 'b49245f96233b7f89fb5d4ba52576131ca6fb47a': Frameworks/base: Propagate boot status to installd
Diffstat (limited to 'core/java/com')
-rw-r--r--core/java/com/android/internal/os/InstallerConnection.java7
-rw-r--r--core/java/com/android/internal/os/ZygoteInit.java2
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) {