ns.AddPermittedPath("/odm/${LIB}/egl", AsanPath::WITH_DATA_ASAN);
ns.AddPermittedPath("/vendor/${LIB}/hw", AsanPath::WITH_DATA_ASAN);
ns.AddPermittedPath("/vendor/${LIB}/egl", AsanPath::WITH_DATA_ASAN);
- ns.AddPermittedPath("/system/vendor/${LIB}/hw", AsanPath::NONE);
+ if (!is_vndklite) {
+ ns.AddPermittedPath("/system/vendor/${LIB}/hw", AsanPath::NONE);
+ }
ns.AddPermittedPath("/system/vendor/${LIB}/egl", AsanPath::NONE);
- ns.AddPermittedPath("/system/${LIB}/vndk-sp-@{VNDK_VER}/hw",
- AsanPath::WITH_DATA_ASAN);
+ ns.AddPermittedPath("/apex/com.android.vndk.v@{VNDK_VER}/${LIB}/hw",
+ AsanPath::SAME_PATH);
}
ns.GetLink(ctx.GetSystemNamespaceName()).AddSharedLib({"@{LLNDK_LIBRARIES}"});