Apply static RRO when parsing Android manifest of a target package
This CL creates idmaps for static RROs right before parsing a target
package. Those idmaps will be used to parse correctly the Android
manifest of the target package.
Later, OverlayManagerService will update each idmap with the correct
gid from the target package app id.
Note that the idmaps generated here will be used by OverlayManagerService
as well until they are outdated (http://ag/2127839).
Additionally a target package should be parsed again if its overlays are
updated to apply the changes.
Test: building succeeded and tested with sailfish-userdebug.
Bug: 37179531
Change-Id: Ie0d5e92ae6e06b2d377ebd4cfdb0a8519b49a944
2 files changed