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

Commit 5de1a991 authored by yingying's avatar yingying
Browse files

AssetManager: Add runtime overlay support for '/system/priv-app'.

Add runtime overlay support in '/system/priv-app', which is newly added
on the new version for some system apps.

Change-Id: I7c8c360cf9b45fd68c206c0f179112d7a7aede9e
parent cb0469c3
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -209,6 +209,7 @@ bool AssetManager::addAssetPath(const String8& path, void** cookie)
    }

    // add overlay packages for /system/framework and /system/app
    // as well as /system/priv-app, which is newly added from kitkat
    if (strncmp(path.string(), "/system/framework/", 18) == 0) {
        // When there is an environment variable for /vendor, this
        // should be changed to something similar to how ANDROID_ROOT
@@ -216,7 +217,8 @@ bool AssetManager::addAssetPath(const String8& path, void** cookie)
        String8 overlayPath("/vendor/overlay/framework/");
        overlayPath.append(path.getPathLeaf());
        addAssetPathForOverlayRes(ap, overlayPath);
    } else if (strncmp(path.string(), "/system/app/", 12) == 0) {
    } else if (strncmp(path.string(), "/system/app/", 12) == 0
        || strncmp(path.string(), "/system/priv-app/", 17) == 0) {
        // When there is an environment variable for /vendor, this
        // should be changed to something similar to how ANDROID_ROOT
        // and ANDROID_DATA are used in this file.