Assign all flags during initial package scan or update.

This is a partial revert of ag/16103275.

Bug: 238734637
Fixes: 238734637
Test: atest PackageManagerSettingsTests
Change-Id: Idf50050c5c7603f1127344b502fdd18b4681ebba
3 files changed