Skip to content
Commit 35e226b0 authored by Yurii Zubrytskyi's avatar Yurii Zubrytskyi
Browse files

Fix null pointer exception during initialization

PackageManagerService ctor calls
InitAndSystemPackageHelper.initPackages() to create the
OverlayConfig object, but this object is needed inside the
initPackages() call, when parsing an updated system overlay
in ScanPackageHelper.assertPackageIsValid() -> isOverlayMutable

This change uses the OverlayConfig's singleton accessor as a
backup when the member isn't set

Bug: 211469178
Test: install APK from the bug, reboot - no crashloop
Change-Id: I0d2b2fc1317db963980dbd1ca84dc61d2bfec5f5
parent 30afad00
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment