Search for RRO both in SKU subdir and in vendor/overlay
am: 1f36a2166b
Change-Id: I3d3a3a5e7c9a39616c7289b6587717d6b37a3bf5
This commit is contained in:
@@ -187,18 +187,17 @@ 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(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)
|
||||
|
||||
@@ -74,7 +74,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;
|
||||
|
||||
Reference in New Issue
Block a user