Home
last modified time | relevance | path

Searched refs:dex_path (Results 1 – 6 of 6) sorted by relevance

/frameworks/native/cmds/installd/
Ddexopt.cpp1002 static bool validate_dex_path_size(const std::string& dex_path) { in validate_dex_path_size() argument
1003 if (dex_path.size() >= (PKG_PATH_MAX - 8)) { in validate_dex_path_size()
1004 LOG(ERROR) << "dex_path too long: " << dex_path; in validate_dex_path_size()
1219 const std::string& dex_path, bool profile_guided, bool is_public, int uid, in maybe_open_reference_profile() argument
1228 const std::string location = is_secondary_dex ? dex_path : pkgname; in maybe_open_reference_profile()
1412 static bool prepare_secondary_dex_oat_dir(const std::string& dex_path, int uid, in prepare_secondary_dex_oat_dir() argument
1414 unsigned long dirIndex = dex_path.rfind('/'); in prepare_secondary_dex_oat_dir()
1416 LOG(ERROR ) << "Unexpected dir structure for secondary dex " << dex_path; in prepare_secondary_dex_oat_dir()
1419 std::string dex_dir = dex_path.substr(0, dirIndex); in prepare_secondary_dex_oat_dir()
1424 LOG(ERROR) << "Could not prepare oat dir for secondary dex: " << dex_path; in prepare_secondary_dex_oat_dir()
[all …]
Dutils.cpp247 static bool get_secondary_dex_location(const std::string& dex_path, in get_secondary_dex_location() argument
249 size_t dirIndex = dex_path.rfind('/'); in get_secondary_dex_location()
253 if (dirIndex == dex_path.size() - 1) { in get_secondary_dex_location()
256 *out_dir_name = dex_path.substr(0, dirIndex); in get_secondary_dex_location()
257 *out_file_name = dex_path.substr(dirIndex + 1); in get_secondary_dex_location()
803 bool validate_secondary_dex_path(const std::string& pkgname, const std::string& dex_path, in validate_secondary_dex_path() argument
808 if (dex_path.empty()) { return false; } in validate_secondary_dex_path()
810 if (dex_path[0] != '/') { return false; } in validate_secondary_dex_path()
812 if (dex_path[dex_path.size() - 1] == '/') { return false; } in validate_secondary_dex_path()
814 if (dex_path.find("/.") != std::string::npos) { return false; } in validate_secondary_dex_path()
[all …]
Ddexopt.h59 bool reconcile_secondary_dex_file(const std::string& dex_path,
Dutils.h127 bool validate_secondary_dex_path(const std::string& pkgname, const std::string& dex_path,
DInstalldNativeService.cpp1098 char dex_path[PKG_PATH_MAX]; in rmdex() local
1107 if (!create_cache_path(dex_path, path, instruction_set)) { in rmdex()
1111 ALOGV("unlink %s\n", dex_path); in rmdex()
1112 if (unlink(dex_path) < 0) { in rmdex()
1116 return error(StringPrintf("Failed to unlink %s", dex_path)); in rmdex()
/frameworks/native/cmds/installd/tests/
Dinstalld_utils_test.cpp574 const std::string& dex_path, int uid, int storage_flag) { in pass_secondary_dex_validation() argument
575 EXPECT_TRUE(validate_secondary_dex_path(package_name, dex_path, /*volume_uuid*/ nullptr, uid, in pass_secondary_dex_validation()
577 << dex_path << " should be allowed as a valid secondary dex path"; in pass_secondary_dex_validation()
581 const std::string& dex_path, int uid, int storage_flag) { in fail_secondary_dex_validation() argument
582 EXPECT_FALSE(validate_secondary_dex_path(package_name, dex_path, /*volume_uuid*/ nullptr, uid, in fail_secondary_dex_validation()
584 << dex_path << " should not be allowed as a valid secondary dex path"; in fail_secondary_dex_validation()