From ad4d02fdd9b2b258b057383d2a7ad2d4cfc87af9 Mon Sep 17 00:00:00 2001 From: Ryan Mitchell Date: Tue, 23 Apr 2019 03:09:29 -0700 Subject: [PATCH] Fix idmap scan to apply odm and oem policies idmap2 scan was not allowing oem and odm overlays to fulfill the oem and odm overlayable policies. Bug: 129735590 Test: manual Change-Id: I230f72b37b95a997d32f2ef136b6301d970a413c --- cmds/idmap2/idmap2/Scan.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmds/idmap2/idmap2/Scan.cpp b/cmds/idmap2/idmap2/Scan.cpp index fa9a77aa69c6a..83c034b4bc42d 100644 --- a/cmds/idmap2/idmap2/Scan.cpp +++ b/cmds/idmap2/idmap2/Scan.cpp @@ -39,6 +39,8 @@ using android::idmap2::CommandLineOptions; using android::idmap2::Error; using android::idmap2::Idmap; +using android::idmap2::kPolicyOdm; +using android::idmap2::kPolicyOem; using android::idmap2::kPolicyProduct; using android::idmap2::kPolicyPublic; using android::idmap2::kPolicySystem; @@ -93,6 +95,8 @@ Result>> FindApkFiles(const std::vector std::vector PoliciesForPath(const std::string& apk_path) { static const std::vector> values = { + {"/odm/", kPolicyOdm}, + {"/oem/", kPolicyOem}, {"/product/", kPolicyProduct}, {"/system/", kPolicySystem}, {"/vendor/", kPolicyVendor},