OSDN Git Service

Move DexLoadReporter out of LoadedApk
authorCalin Juravle <calin@google.com>
Tue, 14 Mar 2017 02:02:32 +0000 (19:02 -0700)
committerCalin Juravle <calin@google.com>
Thu, 16 Mar 2017 01:19:10 +0000 (18:19 -0700)
commit37dfc8ee3ec676a0f059a9f9f1ec5d273e78a502
tree16f1cddc1774fa2d834460027bbeebf987171b0b
parent9ed74a81d9112f59ee6b33ee6fb73dd245bc0d4c
Move DexLoadReporter out of LoadedApk

The DexLoadReporter was part of LoadedApk in order to lazily initialize
it when the first class loader of the app was created. However there's
no real association between the two and doing the initialization in
LoadedApk buys us nothing.

Extract the reporter in its own class and set it to BaseDexClassLoader
during bindApplication stage.

Test: boot, and check that loaded dex files are reported

Bug: 32871170
Bug: 26719109
Change-Id: I9a0e734ae4c16d5d0979aa6d0061fbc9b6e144f6
core/java/android/app/ActivityThread.java
core/java/android/app/DexLoadReporter.java [new file with mode: 0644]
core/java/android/app/LoadedApk.java