Each android app can have multiple set of resources; each set is packaged into a single apk, which is called an overlay, and overlay has priority
Above shows how the Android system looks for a resource. Specifically, when finding a resource via its id (i.e., R.id.xxx), the system will search the overlays according to the overlay priority, and return the first searched one (i.e., if multiple resources has the same id, the one with largest priority is chosen)
RRO Overview
Each android app can have multiple set of resources; each set is packaged into a single apk, which is called an overlay, and overlay has priority
Above shows how the Android system looks for a resource. Specifically, when finding a resource via its id (i.e., R.id.xxx), the system will search the overlays according to the overlay priority, and return the first searched one (i.e., if multiple resources has the same id, the one with largest priority is chosen)
To see all overlays of a same app, use
To enable an overlay of an app, use
References
Overlay Management
OverlayManager and OverlayManagerService
:question::question::question::question::question::question::question::question::question::question: