Home | History | Annotate | Download | only in installd

Lines Matching full:c_str

99     return StringPrintf("%s/%s", profile_dir.c_str(), PRIMARY_PROFILE_NAME);
115 if (lgetfilecon(path.c_str(), &before) < 0) {
119 if (selinux_android_restorecon_pkgdir(path.c_str(), seinfo, uid, 0) < 0) {
123 if (lgetfilecon(path.c_str(), &after) < 0) {
133 if (selinux_android_restorecon_pkgdir(path.c_str(), seinfo, uid,
151 return restorecon_app_data_lazy(StringPrintf("%s/%s", parent.c_str(), name), seinfo, uid);
155 if (fs_prepare_dir_strict(path.c_str(), target_mode, uid, uid) != 0) {
164 return prepare_app_dir(StringPrintf("%s/%s", parent.c_str(), name), target_mode, uid);
208 if (fs_prepare_dir_strict(profile_path.c_str(), 0700, uid, uid) != 0) {
214 if (fs_prepare_file_strict(profile_file.c_str(), 0600, uid, uid) != 0) {
223 ref_profile_path.c_str(), 0700, shared_app_gid, shared_app_gid) != 0) {
242 if (getxattr(ce_path.c_str(), kXattrDefault, nullptr, 0) == -1
243 && getxattr(de_path.c_str(), kXattrDefault, nullptr, 0) == -1) {
244 if (setxattr(ce_path.c_str(), kXattrDefault, nullptr, 0, 0) != 0) {
254 if (getxattr(target.c_str(), kXattrDefault, nullptr, 0) == -1) {
261 if (rename(source.c_str(), target.c_str()) != 0) {
271 base::unique_fd ufd(open(profile.c_str(), O_WRONLY | O_NOFOLLOW | O_CLOEXEC));
352 if (access(path.c_str(), F_OK) == 0) {
368 if (access(path.c_str(), F_OK) == 0) {
439 (char*) from.c_str(),
440 (char*) to_parent.c_str()
452 if (selinux_android_restorecon(to.c_str(), SELINUX_ANDROID_RESTORECON_RECURSE) != 0) {
463 if (access(from_ce.c_str(), F_OK) != 0) {
488 argv[6] = (char*) from.c_str();
489 argv[7] = (char*) to.c_str();
501 argv[6] = (char*) from.c_str();
502 argv[7] = (char*) to.c_str();
528 if (delete_dir_contents(to.c_str(), 1, NULL) != 0) {
535 if (delete_dir_contents(to.c_str(), 1, NULL) != 0) {
541 if (delete_dir_contents(to.c_str(), 1, NULL) != 0) {
601 StringPrintf("%s/Android/data", create_data_media_path(uuid, user).c_str()));
639 d = opendir(path.c_str());
1103 fd_t profile_dir_fd = TEMP_FAILURE_RETRY(open(profile_dir.c_str(),
1125 profile_fd = TEMP_FAILURE_RETRY(open(profile_file.c_str(), open_mode | O_NOFOLLOW));
1226 argv[i++] = profile_args[k].c_str();
1339 profman_args.push_back(StringPrintf("--dex-location=%s", dex_location.c_str()));
1347 argv[i++] = profman_arg.c_str();
1386 fd_t output_fd = open(out_file_name.c_str(), O_WRONLY | O_CREAT | O_TRUNC | O_NOFOLLOW);
1388 ALOGE("installd cannot chmod '%s' dump_profile\n", out_file_name.c_str());
1395 const char* full_path = code_full_path.c_str();
1548 // unlink(name.c_str());
1643 clear_reference_profile(pkgname_str.c_str());
1693 [out_path_str]() { unlink(out_path_str.c_str()); });
1735 image_fd.reset(open_output_file(image_path.c_str(),
1738 [image_path]() { unlink(image_path.c_str()); }
1749 image_path.c_str())) {
1755 if (unlink(image_path.c_str()) < 0) {
1876 const char* pkgdir = _pkgdir.c_str();
1877 const char* libsymlink = _libsymlink.c_str();
2061 if (selinux_android_restorecon_pkgdir(path.c_str(), seinfo, uid, seflags) < 0) {
2068 if (selinux_android_restorecon_pkgdir(path.c_str(), seinfo, uid, seflags) < 0) {
2166 if (stat(b_path.c_str(), &s) != 0) {
2174 unlink(b_path.c_str());
2180 if (!unlink_and_rename(b_path.c_str(), a_path.c_str())) {
2182 if (unlink(b_path.c_str()) != 0) {
2230 const std::string b_path = StringPrintf("%s.%s", a_path, slot_suffix.c_str());
2232 a_image_path.c_str(),
2233 c_str());
2248 unlink(a_image_path.c_str());
2255 unlink(b_image_path.c_str());
2287 bool return_value_art = unlink_and_check(create_image_filename(out_path).c_str());