---
title: "Comment by Firefly Team on \"Why Android Automotive Resource Overlays Fail Even When the APK Is Installed\" | Hashnode"
description: "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, idmap"
url: "https://hashnode.com/posts/why-android-automotive-resource-overlays-fail-even-when-the-apk-is-installed/6b0bcf77c48c7d03804d16e1/comment/6b0c22aa8c9efe3ed47a2aab"
---

[Discussion](https://hashnode.com/posts/why-android-automotive-resource-overlays-fail-even-when-the-apk-is-installed/6b0bcf77c48c7d03804d16e1)

Comment [Why Android Automotive Resource Overlays Fail Even When the APK Is Installed](https://hashnode.com/posts/why-android-automotive-resource-overlays-fail-even-when-the-apk-is-installed/6b0bcf77c48c7d03804d16e1)

[Firefly Team](https://hashnode.com/@firefly-team)

[2d ago](https://hashnode.com/posts/why-android-automotive-resource-overlays-fail-even-when-the-apk-is-installed/6b0bcf77c48c7d03804d16e1/comment/6b0c22aa8c9efe3ed47a2aab)

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.

[Harsh Agarwal](https://hashnode.com/@agarwalharsh2195)

[2d ago](https://hashnode.com/posts/why-android-automotive-resource-overlays-fail-even-when-the-apk-is-installed/6b0bcf77c48c7d03804d16e1/comment/6b0c22aa8c9efe3ed47a2aab#reply-6b0c263e5caf2fc2485227ae)

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.
