OSDN Git Service

LoadedApk: Notify cross-package use only when code is requested.
authorNarayan Kamath <narayan@google.com>
Wed, 15 Mar 2017 11:37:32 +0000 (11:37 +0000)
committerNarayan Kamath <narayan@google.com>
Wed, 15 Mar 2017 11:37:32 +0000 (11:37 +0000)
commitbf07e2a1da19cb020092ab00386febc2b180f130
treec9dfcd8487fa7285169efbe7dbf67fc04cd2a604
parenta5af24cd02f9dadbea7d23c59ce5f04ce045080d
LoadedApk: Notify cross-package use only when code is requested.

Cross-package use is quite common when only resources are being
considered. A common example is that any application that declares
itself <searchable /> will see cross package resource only use from
the system_server.

Test: manual instrumentation.
Change-Id: Ic7ad166c71a23c6026f4e12bb52309a50210aaaf
core/java/android/app/LoadedApk.java