diff options
author | Nicolas Geoffray <ngeoffray@google.com> | 2018-11-13 15:46:27 +0000 |
---|---|---|
committer | Nicolas Geoffray <ngeoffray@google.com> | 2018-11-16 10:25:28 +0000 |
commit | 05461245adfe970a1ef3b0a46f23449d1556faa1 (patch) | |
tree | 62d88151e38f103a1b4781c464c3f6be2b6fd724 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 550b5e68c1ff7563fad1010ae7db22d13eaff66e (diff) |
Check for null in applyDefiningSharedLibraryUpdateLocked.
Handle two cases:
1) We haven't been able to create the shared library. The package manager
still installs the package, but doesn't create the shared library.
2) When installing a shared library, we update shared lib dependency
mappings before scanning. In the case that we're installing a
new shared library, we will not have reference to that shared library in
memory. This change adds a null check to account for such a scenario.
bug: 119438703
bug: 119497540
Test: atest android.os.cts.StaticSharedLibsHostTests#testAppCanSeeOnlyLibrariesItDependOnFullMode
(cherry picked from commit c52d8661f109012bd53cda45b18721f544c0eddd)
Change-Id: Ied5b27be193f575ef05a121b7c5b6361ed52305a
Merged-In: I93d67f79ad0a58acd8cd4cb961cf82ada085821c
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions