summaryrefslogtreecommitdiff
path: root/java/com/android/dialer
diff options
context:
space:
mode:
authortwyen <twyen@google.com>2017-06-28 13:29:16 -0700
committerBrandon Maxwell <maxwelb@google.com>2017-06-30 14:39:05 -0700
commit431b0c3433405652de195653b48623bb0b0f6f89 (patch)
tree719138554a48a187e6345934298a495b9da429e6 /java/com/android/dialer
parent41e5314a578551fc4611ff145d389184184589ea (diff)
Load dreamchip from assets
b/38149414 building with dreamchip regressed startup time by 400ms. This seems to be caused by linking against the library with cc_library, but the true reason is still unknown. In this CL, dreamchip libraries is stored as an asset instead. During runtime the asset will be copied into the data directory then loaded. Currently the copying happens on the main thread. Whether if it's acceptable to introduce further risk to handle this is to be discussed. Disk IO could already happen before this change. Bug: 38149414 Test: N/A PiperOrigin-RevId: 160444223 Change-Id: I9f098e7b79df113b2992d8590b33f423942716e4
Diffstat (limited to 'java/com/android/dialer')
-rw-r--r--java/com/android/dialer/binary/common/DialerApplication.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/com/android/dialer/binary/common/DialerApplication.java b/java/com/android/dialer/binary/common/DialerApplication.java
index 08666a21c..23032228e 100644
--- a/java/com/android/dialer/binary/common/DialerApplication.java
+++ b/java/com/android/dialer/binary/common/DialerApplication.java
@@ -39,7 +39,7 @@ public abstract class DialerApplication extends Application implements HasRootCo
public void onCreate() {
Trace.beginSection("DialerApplication.onCreate");
if (BuildType.get() == BuildType.BUGFOOD) {
- enableStrictMode();
+ // enableStrictMode();
}
super.onCreate();
new BlockedNumbersAutoMigrator(