From 431b0c3433405652de195653b48623bb0b0f6f89 Mon Sep 17 00:00:00 2001 From: twyen Date: Wed, 28 Jun 2017 13:29:16 -0700 Subject: 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 --- java/com/android/dialer/binary/common/DialerApplication.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'java/com/android/dialer') 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( -- cgit v1.2.3