HomeSort by relevance Sort by last modified time
    Searched refs:overlay_apk_path (Results 1 - 14 of 14) sorted by null

  /frameworks/base/cmds/idmap/
idmap.h 23 int idmap_create_path(const char *target_apk_path, const char *overlay_apk_path,
26 int idmap_create_fd(const char *target_apk_path, const char *overlay_apk_path, int fd);
28 int idmap_verify_fd(const char *target_apk_path, const char *overlay_apk_path, int fd);
idmap.cpp 127 int maybe_create_fd(const char *target_apk_path, const char *overlay_apk_path,
145 if (!verify_file_readable(overlay_apk_path)) {
146 ALOGD("error: failed to read apk %s: %s\n", overlay_apk_path, strerror(errno));
150 return idmap_create_fd(target_apk_path, overlay_apk_path, idmap_fd);
153 int maybe_create_path(const char *target_apk_path, const char *overlay_apk_path,
166 if (!verify_file_readable(overlay_apk_path)) {
167 ALOGD("error: failed to read apk %s: %s\n", overlay_apk_path, strerror(errno));
171 return idmap_create_path(target_apk_path, overlay_apk_path, idmap_path);
174 int maybe_verify_fd(const char *target_apk_path, const char *overlay_apk_path,
189 if (!verify_file_readable(overlay_apk_path)) {
    [all...]
create.cpp 75 bool is_idmap_stale_fd(const char *target_apk_path, const char *overlay_apk_path, int idmap_fd)
121 if (cached_overlay_path != overlay_apk_path) {
130 if (get_zip_entry_crc(overlay_apk_path, AssetManager::RESOURCES_FILENAME,
138 bool is_idmap_stale_path(const char *target_apk_path, const char *overlay_apk_path,
151 bool is_stale = is_idmap_stale_fd(target_apk_path, overlay_apk_path, idmap_fd);
156 int create_idmap(const char *target_apk_path, const char *overlay_apk_path,
164 if (get_zip_entry_crc(overlay_apk_path, AssetManager::RESOURCES_FILENAME,
170 bool b = am.createIdmap(target_apk_path, overlay_apk_path, target_crc, overlay_crc,
175 int create_and_write_idmap(const char *target_apk_path, const char *overlay_apk_path,
179 if (!is_idmap_stale_fd(target_apk_path, overlay_apk_path, fd))
    [all...]
scan.cpp 251 char overlay_apk_path[PATH_MAX + 1]; local
252 snprintf(overlay_apk_path, PATH_MAX, "%s/%s", overlay_dir, dirent->d_name);
253 if (stat(overlay_apk_path, &st) < 0) {
260 int priority = parse_apk(overlay_apk_path, target_package_name);
266 idmap_path.appendPath(flatten_path(overlay_apk_path + 1));
269 if (idmap_create_path(target_apk_path, overlay_apk_path, idmap_path.string()) != 0) {
271 target_apk_path, overlay_apk_path, idmap_path.string());
275 Overlay overlay(String8(overlay_apk_path), idmap_path, priority);
  /frameworks/base/cmds/idmap2/idmap2d/
Idmap2Service.h 36 binder::Status getIdmapPath(const std::string& overlay_apk_path, int32_t user_id,
39 binder::Status removeIdmap(const std::string& overlay_apk_path, int32_t user_id,
42 binder::Status verifyIdmap(const std::string& overlay_apk_path, int32_t fulfilled_policies,
46 const std::string& overlay_apk_path, int32_t fulfilled_policies,
Idmap2Service.cpp 69 Status Idmap2Service::getIdmapPath(const std::string& overlay_apk_path,
72 SYSTRACE << "Idmap2Service::getIdmapPath " << overlay_apk_path; local
73 *_aidl_return = Idmap::CanonicalIdmapPathFor(kIdmapCacheDir, overlay_apk_path);
77 Status Idmap2Service::removeIdmap(const std::string& overlay_apk_path,
80 SYSTRACE << "Idmap2Service::removeIdmap " << overlay_apk_path; local
82 const std::string idmap_path = Idmap::CanonicalIdmapPathFor(kIdmapCacheDir, overlay_apk_path);
96 Status Idmap2Service::verifyIdmap(const std::string& overlay_apk_path,
100 SYSTRACE << "Idmap2Service::verifyIdmap " << overlay_apk_path; local
102 const std::string idmap_path = Idmap::CanonicalIdmapPathFor(kIdmapCacheDir, overlay_apk_path);
114 const std::string& overlay_apk_path, int32_t fulfilled_policies
118 SYSTRACE << "Idmap2Service::createIdmap " << target_apk_path << " " << overlay_apk_path; local
    [all...]
  /frameworks/base/cmds/idmap2/idmap2/
Create.cpp 50 std::string overlay_apk_path; local
62 &overlay_apk_path)
97 const std::unique_ptr<const ApkAssets> overlay_apk = ApkAssets::Load(overlay_apk_path);
99 return Error("failed to load apk %s", overlay_apk_path.c_str());
102 const auto idmap = Idmap::FromApkAssets(target_apk_path, *target_apk, overlay_apk_path,
  /frameworks/base/cmds/idmap2/tests/
PrettyPrintVisitorTests.cpp 42 const std::string overlay_apk_path(GetTestDataPath() + "/overlay/overlay.apk");
43 std::unique_ptr<const ApkAssets> overlay_apk = ApkAssets::Load(overlay_apk_path);
47 Idmap::FromApkAssets(target_apk_path, *target_apk, overlay_apk_path, *overlay_apk,
RawPrintVisitorTests.cpp 37 const std::string overlay_apk_path(GetTestDataPath() + "/overlay/overlay.apk");
38 std::unique_ptr<const ApkAssets> overlay_apk = ApkAssets::Load(overlay_apk_path);
42 Idmap::FromApkAssets(target_apk_path, *target_apk, overlay_apk_path, *overlay_apk,
IdmapTests.cpp 172 void CreateIdmap(const StringPiece& target_apk_path, const StringPiece& overlay_apk_path,
178 std::unique_ptr<const ApkAssets> overlay_apk = ApkAssets::Load(overlay_apk_path.to_string());
182 Idmap::FromApkAssets(target_apk_path.to_string(), *target_apk, overlay_apk_path.to_string(),
190 std::string overlay_apk_path = GetTestDataPath() + "/overlay/overlay.apk"; local
191 CreateIdmap(target_apk_path, overlay_apk_path, PolicyFlags::POLICY_PUBLIC,
200 ASSERT_EQ(idmap->GetHeader()->GetOverlayPath(), overlay_apk_path);
201 ASSERT_EQ(idmap->GetHeader()->GetOverlayPath(), overlay_apk_path);
234 std::string overlay_apk_path = GetTestDataPath() + "/system-overlay/system-overlay.apk"; local
235 CreateIdmap(target_apk_path, overlay_apk_path,
264 std::string overlay_apk_path = GetTestDataPath() + "/signature-overlay/signature-overlay.apk" local
292 std::string overlay_apk_path = local
324 std::string overlay_apk_path = local
361 std::string overlay_apk_path = GetTestDataPath() + "\/overlay\/overlay-no-name.apk"; local
398 std::string overlay_apk_path = GetTestDataPath() + "\/overlay\/overlay-no-name.apk"; local
409 std::string overlay_apk_path = local
    [all...]
Idmap2BinaryTests.cpp 55 const std::string& overlay_apk_path) {
61 ASSERT_EQ(idmap.GetHeader()->GetOverlayPath(), overlay_apk_path);
65 #define ASSERT_IDMAP(idmap_ref, target_apk_path, overlay_apk_path) \
67 ASSERT_NO_FATAL_FAILURE(AssertIdmap(idmap_ref, target_apk_path, overlay_apk_path)); \
BinaryStreamVisitorTests.cpp 74 const std::string overlay_apk_path(GetTestDataPath() + "/overlay/overlay.apk");
75 std::unique_ptr<const ApkAssets> overlay_apk = ApkAssets::Load(overlay_apk_path);
79 Idmap::FromApkAssets(target_apk_path, *target_apk, overlay_apk_path, *overlay_apk,
  /frameworks/base/cmds/idmap2/libidmap2/
Idmap.cpp 324 const std::string& overlay_apk_path,
364 const std::unique_ptr<const ZipFile> overlay_zip = ZipFile::Open(overlay_apk_path);
369 auto overlay_info = utils::ExtractOverlayManifestInfo(overlay_apk_path);
397 if (overlay_apk_path.size() > sizeof(header->overlay_path_)) {
402 memcpy(header->overlay_path_, overlay_apk_path.data(), overlay_apk_path.size());
428 LOG(WARNING) << "overlay \"" << overlay_apk_path
440 overlay_apk_path.c_str());
  /frameworks/base/cmds/idmap2/include/idmap2/
Idmap.h 237 const std::string& overlay_apk_path,

Completed in 2343 milliseconds