Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3d39a99d authored by Jakub Adamek's avatar Jakub Adamek Committed by android-build-merger
Browse files

Search for RRO both in SKU subdir and in vendor/overlay am: 1f36a216

am: 27471b30

Change-Id: I5c8655c5f9abe1375c0d53f48705709331d472d9
parents 74f34c04 27471b30
Loading
Loading
Loading
Loading
+7 −8
Original line number Diff line number Diff line
@@ -186,19 +186,18 @@ static void verifySystemIdmaps()
                argv[argc++] = AssetManager::IDMAP_DIR;

                // Directories to scan for overlays: if OVERLAY_SKU_DIR_PROPERTY is defined,
                // use OVERLAY_DIR/<value of OVERLAY_SKU_DIR_PROPERTY> if exists, otherwise
                // use OVERLAY_DIR if exists.
                // use OVERLAY_DIR/<value of OVERLAY_SKU_DIR_PROPERTY> in addition to OVERLAY_DIR.
                char subdir[PROP_VALUE_MAX];
                int len = __system_property_get(AssetManager::OVERLAY_SKU_DIR_PROPERTY, subdir);
                String8 overlayPath;
                if (len > 0) {
                    overlayPath = String8(AssetManager::OVERLAY_DIR) + "/" + subdir;
                } else {
                    overlayPath = String8(AssetManager::OVERLAY_DIR);
                }
                    String8 overlayPath = String8(AssetManager::OVERLAY_DIR) + "/" + subdir;
                    if (stat(overlayPath.string(), &st) == 0) {
                        argv[argc++] = overlayPath.string();
                    }
                }
                if (stat(AssetManager::OVERLAY_DIR, &st) == 0) {
                    argv[argc++] = AssetManager::OVERLAY_DIR;
                }

                // Finally, invoke idmap (if any overlay directory exists)
                if (argc > 5) {
+1 −1
Original line number Diff line number Diff line
@@ -71,7 +71,7 @@ public:
    static const char* OVERLAY_DIR;
    /*
     * If OVERLAY_SKU_DIR_PROPERTY is set, search for runtime resource overlay
     * APKs in OVERLAY_DIR/<value of OVERLAY_SKU_DIR_PROPERTY> rather than in
     * APKs in OVERLAY_DIR/<value of OVERLAY_SKU_DIR_PROPERTY> in addition to
     * OVERLAY_DIR.
     */
    static const char* OVERLAY_SKU_DIR_PROPERTY;