One more failure mode worth putting next to section 6: if the target's overlayable policy does not match the partition the overlay APK actually landed on, idmap2 silently drops just those entries while the overlay itself still reports as enabled, so dumpsys overlay looks perfectly healthy. Dumping the idmap shows which resource IDs really mapped, which is what separates a policy mismatch from the per-user case in section 7.
Great addition! This is an important distinction between an overlay being enabled and its individual resources actually being mapped.
A partition-policy mismatch is particularly interesting because the overall overlay state may look valid while specific resource overrides are missing.
Checking the generated idmap alongside the target's overlayable policy and the APK's actual partition is a useful diagnostic step.
Thanks for highlighting this. I'll incorporate the distinction into the debugging section.
Firefly Team
One more failure mode worth putting next to section 6: if the target's overlayable policy does not match the partition the overlay APK actually landed on, idmap2 silently drops just those entries while the overlay itself still reports as enabled, so dumpsys overlay looks perfectly healthy. Dumping the idmap shows which resource IDs really mapped, which is what separates a policy mismatch from the per-user case in section 7.