Lines Matching refs:overlay_path

81 Status Idmap2Service::getIdmapPath(const std::string& overlay_path,  in getIdmapPath()  argument
84 SYSTRACE << "Idmap2Service::getIdmapPath " << overlay_path; in getIdmapPath()
85 *_aidl_return = Idmap::CanonicalIdmapPathFor(kIdmapCacheDir, overlay_path); in getIdmapPath()
89 Status Idmap2Service::removeIdmap(const std::string& overlay_path, int32_t user_id ATTRIBUTE_UNUSED, in removeIdmap() argument
92 SYSTRACE << "Idmap2Service::removeIdmap " << overlay_path; in removeIdmap()
94 const std::string idmap_path = Idmap::CanonicalIdmapPathFor(kIdmapCacheDir, overlay_path); in removeIdmap()
108 Status Idmap2Service::verifyIdmap(const std::string& target_path, const std::string& overlay_path, in verifyIdmap() argument
112 SYSTRACE << "Idmap2Service::verifyIdmap " << overlay_path; in verifyIdmap()
115 const std::string idmap_path = Idmap::CanonicalIdmapPathFor(kIdmapCacheDir, overlay_path); in verifyIdmap()
132 const auto overlay = OverlayResourceContainer::FromPath(overlay_path); in verifyIdmap()
135 LOG(WARNING) << "failed to load overlay '" << overlay_path << "'"; in verifyIdmap()
151 Status Idmap2Service::createIdmap(const std::string& target_path, const std::string& overlay_path, in createIdmap() argument
156 SYSTRACE << "Idmap2Service::createIdmap " << target_path << " " << overlay_path; in createIdmap()
161 const std::string idmap_path = Idmap::CanonicalIdmapPathFor(kIdmapCacheDir, overlay_path); in createIdmap()
179 const auto overlay = OverlayResourceContainer::FromPath(overlay_path); in createIdmap()
181 return error("failed to load apk overlay '%s'" + overlay_path); in createIdmap()
350 binder::Status Idmap2Service::deleteFabricatedOverlay(const std::string& overlay_path, in deleteFabricatedOverlay() argument
352 SYSTRACE << "Idmap2Service::deleteFabricatedOverlay " << overlay_path; in deleteFabricatedOverlay()
355 if (!UidHasWriteAccessToPath(uid, overlay_path)) { in deleteFabricatedOverlay()
358 overlay_path.c_str(), uid)); in deleteFabricatedOverlay()
361 const std::string idmap_path = Idmap::CanonicalIdmapPathFor(kIdmapCacheDir, overlay_path); in deleteFabricatedOverlay()
368 if (unlink(overlay_path.c_str()) != 0) { in deleteFabricatedOverlay()
370 return error("failed to unlink " + overlay_path + ": " + strerror(errno)); in deleteFabricatedOverlay()
382 binder::Status Idmap2Service::dumpIdmap(const std::string& overlay_path, in dumpIdmap() argument
386 const auto idmap_path = Idmap::CanonicalIdmapPathFor(kIdmapCacheDir, overlay_path); in dumpIdmap()