/bootable/recovery/applypatch/ |
D | applypatch.cpp | 60 PLOG(ERROR) << "Failed to read \"" << filename << "\""; in LoadFileContents() 74 LOG(ERROR) << "Failed to parse target hash \"" << partition.hash << "\""; in ReadPartitionToBuffer() 80 PLOG(ERROR) << "Failed to open eMMC partition \"" << partition << "\""; in ReadPartitionToBuffer() 84 PLOG(ERROR) << "Failed to read " << buffer.size() << " bytes of data for partition " in ReadPartitionToBuffer() 96 LOG(ERROR) << "Partition contents don't have the expected checksum"; in ReadPartitionToBuffer() 105 LOG(ERROR) << "Both of partition contents and backup don't have the expected checksum"; in ReadPartitionToBuffer() 113 PLOG(ERROR) << "Failed to open \"" << filename << "\" for write"; in SaveFileContents() 118 PLOG(ERROR) << "Failed to write " << file->data.size() << " bytes of data to " << filename; in SaveFileContents() 123 PLOG(ERROR) << "Failed to fsync \"" << filename << "\""; in SaveFileContents() 128 PLOG(ERROR) << "Failed to close \"" << filename << "\""; in SaveFileContents() [all …]
|
D | freecache.cpp | 45 PLOG(ERROR) << "Failed to open /proc"; in EliminateOpenFiles() 59 PLOG(ERROR) << "Failed to open " << path; in EliminateOpenFiles() 84 PLOG(ERROR) << "Failed to open " << dirname; in FindExpendableFiles() 140 PLOG(ERROR) << "Failed to statfs " << filename; in FreeSpaceForFile() 147 LOG(ERROR) << "Invalid block size or overflow (sf.f_bsize " << sf.f_bsize << ", sf.f_bavail " in FreeSpaceForFile() 177 LOG(ERROR) << "Invalid arg of bytes_needed: " << bytes_needed; in RemoveFilesInDirectory() 183 PLOG(ERROR) << "Failed to stat " << dirname; in RemoveFilesInDirectory() 187 LOG(ERROR) << dirname << " is not a directory"; in RemoveFilesInDirectory() 193 LOG(ERROR) << "Failed to check free space for " << dirname; in RemoveFilesInDirectory() 231 PLOG(ERROR) << "Failed to delete " << file; in RemoveFilesInDirectory() [all …]
|
D | applypatch_modes.cpp | 42 LOG(ERROR) << "Failed to parse target \"" << target_emmc << "\": " << err; in CheckMode() 52 LOG(ERROR) << "Failed to parse target \"" << target_emmc << "\": " << err; in FlashMode() 63 LOG(ERROR) << "Failed to parse target \"" << target_emmc << "\": " << err; in PatchMode() 69 LOG(ERROR) << "Failed to parse source \"" << source_emmc << "\": " << err; in PatchMode() 75 PLOG(ERROR) << "Failed to read patch file \"" << patch_file << "\""; in PatchMode() 84 PLOG(ERROR) << "Failed to read bonus file \"" << bonus_file << "\""; in PatchMode() 165 LOG(ERROR) << "Invalid argument"; in applypatch_modes() 176 LOG(ERROR) << "bonus file not supported in flash mode"; in applypatch_modes()
|
D | imgdiff.cpp | 343 PLOG(ERROR) << "MakePatch failed to create a temporary file"; in MakePatch() 351 LOG(ERROR) << "bsdiff() failed: " << r; in MakePatch() 357 PLOG(ERROR) << "Failed to open " << ptemp; in MakePatch() 362 PLOG(ERROR) << "Failed to stat patch file " << ptemp; in MakePatch() 370 PLOG(ERROR) << "Failed to read " << ptemp; in MakePatch() 382 LOG(ERROR) << "Attempted to reconstruct non-deflate chunk"; in ReconstructDeflateChunk() 412 LOG(ERROR) << "Failed to initialize deflate: " << ret; in TryReconstruction() 423 LOG(ERROR) << "Failed to deflate: " << ret; in TryReconstruction() 557 PLOG(ERROR) << "Failed to write \"IMGDIFF" << VERSION << "\""; in WritePatchDataToFd() 573 PLOG(ERROR) << "Failed to write " << patch.data_.size() << " bytes patch to patch_fd"; in WritePatchDataToFd() [all …]
|
/bootable/recovery/uncrypt/ |
D | uncrypt.cpp | 147 PLOG(ERROR) << "error seeking to offset " << offset; in write_at_offset() 151 PLOG(ERROR) << "error writing offset " << offset; in write_at_offset() 214 PLOG(ERROR) << "failed to open \"" << uncrypt_path_file << "\""; in FindUncryptPackage() 227 PLOG(ERROR) << "failed to fsync \"" << name << "\""; in RetryFibmap() 231 PLOG(ERROR) << "failed to find block " << head_block; in RetryFibmap() 239 LOG(ERROR) << "fibmap of " << head_block << " always returns 0"; in RetryFibmap() 247 LOG(ERROR) << "failed to remove the existing map file " << map_file << ": " << err; in ProductBlockMap() 253 PLOG(ERROR) << "failed to open " << tmp_map_file; in ProductBlockMap() 259 LOG(ERROR) << "failed to write to socket " << socket; in ProductBlockMap() 265 PLOG(ERROR) << "failed to stat " << path; in ProductBlockMap() [all …]
|
/bootable/recovery/otautil/ |
D | sysutil.cpp | 41 PLOG(ERROR) << "Failed to read " << block_map_path; in ParseBlockMapFile() 47 LOG(ERROR) << "Block map file is too short: " << lines.size(); in ParseBlockMapFile() 56 LOG(ERROR) << "Failed to parse file size and block size: " << lines[1]; in ParseBlockMapFile() 61 LOG(ERROR) << "Invalid size in block map file: size " << file_size << ", blksize " << blksize; in ParseBlockMapFile() 67 LOG(ERROR) << "Failed to parse block map header: " << lines[2]; in ParseBlockMapFile() 74 LOG(ERROR) << "Invalid data in block map file: size " << file_size << ", blksize " << blksize in ParseBlockMapFile() 85 LOG(ERROR) << "failed to parse range " << i << ": " << line; in ParseBlockMapFile() 90 LOG(ERROR) << "Invalid range: " << start << " " << end; in ParseBlockMapFile() 98 LOG(ERROR) << "Invalid ranges: remaining blocks " << remaining_blocks; in ParseBlockMapFile() 108 PLOG(ERROR) << "fstat(" << fd << ") failed"; in MapFD() [all …]
|
D | rangeset.cpp | 35 LOG(ERROR) << "Invalid number of tokens"; in RangeSet() 50 LOG(ERROR) << "Invalid range text: " << range_text; in Parse() 56 LOG(ERROR) << "Failed to parse the number of tokens: " << range_text; in Parse() 60 LOG(ERROR) << "Invalid number of tokens: " << range_text; in Parse() 64 LOG(ERROR) << "Number of tokens must be even: " << range_text; in Parse() 68 LOG(ERROR) << "Mismatching number of tokens: " << range_text; in Parse() 87 LOG(ERROR) << "Empty or negative range: " << range.first << ", " << range.second; in PushBack() 92 LOG(ERROR) << "RangeSet size overflow"; in PushBack() 190 LOG(ERROR) << "Failed to get the sub ranges for start_index " << start_index in GetSubRanges() 234 LOG(ERROR) << "Failed to construct byte ranges to read, start_block: " << start_index in GetSubRanges()
|
/bootable/recovery/install/ |
D | wipe_device.cpp | 45 LOG(ERROR) << "Failed to get ZipArchiveHandle"; in GetWipePartitionList() 59 LOG(ERROR) << "Failed to extract " << RECOVERY_WIPE_ENTRY_NAME << ": " in GetWipePartitionList() 69 PLOG(ERROR) << "failed to read \"" << RECOVERY_WIPE_ON_DEVICE << "\""; in GetWipePartitionList() 93 PLOG(ERROR) << "Failed to open \"" << partition << "\""; in SecureWipePartition() 99 PLOG(ERROR) << "Failed to get partition size"; in SecureWipePartition() 113 PLOG(ERROR) << " Failed"; in SecureWipePartition() 119 PLOG(ERROR) << " Failed"; in SecureWipePartition() 131 LOG(ERROR) << "wipe_package_size is zero"; in ReadWipePackage() 137 PLOG(ERROR) << "Failed to read wipe package" << err_str; in ReadWipePackage() 151 LOG(ERROR) << "Failed to verify package"; in CheckWipePackage() [all …]
|
D | verifier.cpp | 129 LOG(ERROR) << "not big enough to contain footer"; in verify_file() 135 LOG(ERROR) << "Failed to read footer"; in verify_file() 140 LOG(ERROR) << "footer is wrong"; in verify_file() 150 LOG(ERROR) << "signature start: " << signature_start in verify_file() 156 LOG(ERROR) << "Signature start is in the footer"; in verify_file() 166 LOG(ERROR) << "not big enough to contain EOCD"; in verify_file() 177 LOG(ERROR) << "Failed to read EOCD of " << eocd_size << " bytes"; in verify_file() 183 LOG(ERROR) << "signature length doesn't match EOCD marker"; in verify_file() 192 LOG(ERROR) << "EOCD marker occurs after start of EOCD"; in verify_file() 254 LOG(ERROR) << "Could not find signature DER block"; in verify_file() [all …]
|
D | install.cpp | 82 LOG(ERROR) << "Failed to find " << METADATA_PATH; in ReadMetadataFromPackage() 91 LOG(ERROR) << "Failed to extract " << METADATA_PATH << ": " << ErrorCodeString(err); in ReadMetadataFromPackage() 150 LOG(ERROR) << "Package is for source build " << pkg_pre_build << " but expected " in CheckAbSpecificMetadata() 159 LOG(ERROR) << "Package is for source build " << pkg_pre_build_fingerprint << " but expected " in CheckAbSpecificMetadata() 175 LOG(ERROR) << "Update package is older than the current build, expected a build " in CheckAbSpecificMetadata() 182 LOG(ERROR) << "Downgrade package must have a pre-build version set, not allowed."; in CheckAbSpecificMetadata() 199 LOG(ERROR) << "Unexpected ota package type, expects " << expected_ota_type << ", actual " in CheckPackageMetadata() 208 LOG(ERROR) << "Package is for product " << pkg_device << " but expected " << device; in CheckPackageMetadata() 225 LOG(ERROR) << "Package is for serial " << pkg_serial_no; in CheckPackageMetadata() 246 LOG(ERROR) << "Failed to find " << AB_OTA_PAYLOAD_PROPERTIES; in SetUpAbUpdateCommands() [all …]
|
D | adb_install.cpp | 65 LOG(ERROR) << "Failed to parse command in message " << message; in ParseMinadbdCommand() 72 LOG(ERROR) << "Unsupported command code: " << cmd_code; in ParseMinadbdCommand() 85 PLOG(ERROR) << "Failed to write message " << message; in WriteStatusToFd() 160 PLOG(ERROR) << "Failed to read message from minadbd"; in HandleMessageFromMinadbd() 170 LOG(ERROR) << "Unsupported command: " in HandleMessageFromMinadbd() 193 PLOG(ERROR) << "Failed to create epoll"; in ListenAndExecuteMinadbdCommands() 204 PLOG(ERROR) << "Failed to add socket fd to epoll"; in ListenAndExecuteMinadbdCommands() 221 PLOG(ERROR) << "Failed to wait for epoll events"; in ListenAndExecuteMinadbdCommands() 226 LOG(ERROR) << "Timeout waiting for messages from minadbd"; in ListenAndExecuteMinadbdCommands() 286 PLOG(ERROR) << "Failed to create socket"; in CreateMinadbdServiceAndExecuteCommands() [all …]
|
D | package.cpp | 124 LOG(ERROR) << "failed to map file"; in CreateMemoryPackage() 135 PLOG(ERROR) << "Failed to open " << path; in CreateFilePackage() 141 PLOG(ERROR) << "Failed to get the package size"; in CreateFilePackage() 178 LOG(ERROR) << "Out of bound read, offset: " << offset << ", size: " << byte_count in ReadFullyAtOffset() 189 LOG(ERROR) << "Out of bound read, offset: " << start << ", size: " << length in UpdateHashAtOffset() 208 LOG(ERROR) << "Can't open package" << path_ << " : " << ErrorCodeString(err); in GetZipArchiveHandle() 229 LOG(ERROR) << "Out of bound read, offset: " << offset << ", size: " << byte_count in ReadFullyAtOffset() 235 PLOG(ERROR) << "Failed to read " << byte_count << " bytes data at offset " << offset; in ReadFullyAtOffset() 245 LOG(ERROR) << "Out of bound read, offset: " << start << ", size: " << length in UpdateHashAtOffset() 273 LOG(ERROR) << "Can't open package" << path_ << " : " << ErrorCodeString(err); in GetZipArchiveHandle()
|
D | fuse_install.cpp | 53 LOG(ERROR) << "Failed to set BCB message: " << err; in SetSdcardUpdateBootloaderMessage() 63 PLOG(ERROR) << "error opening " << path; in BrowseDirectory() 136 LOG(ERROR) << "Failed to create fuse data provider."; in StartInstallPackageFuse() 177 LOG(ERROR) << "Timed out waiting for the fuse-provided package."; in InstallWithFuseFromPath() 201 LOG(ERROR) << "Error exit from the fuse process: " << WEXITSTATUS(status); in InstallWithFuseFromPath() 210 LOG(ERROR) << "\n-- Couldn't mount " << SDCARD_ROOT << ".\n"; in ApplyFromSdcard() 216 LOG(ERROR) << "\n-- No package file selected.\n"; in ApplyFromSdcard()
|
/bootable/recovery/updater/ |
D | updater_runtime_dynamic_partitions.cpp | 64 LOG(ERROR) << "Unknown device mapper state: " in UnmapPartitionWithSuffixOnDeviceMapper() 91 LOG(ERROR) << "Unknown device mapper state: " in MapPartitionOnDeviceMapper() 110 LOG(ERROR) << "Op " << op() << " expects " << size << " args, got " << actual; in ExpectArgSize() 127 LOG(ERROR) << "Op " << op() << " expects uint64 for argument " << name << ", got " << str; in uint_arg() 145 LOG(ERROR) << "Failed to find partition " << partition_name_suffix in PerformOpResize() 150 LOG(ERROR) << "Cannot unmap " << partition_name_suffix << " before resizing."; in PerformOpResize() 154 LOG(ERROR) << "Failed to resize partition " << partition_name_suffix << " to size " << *size in PerformOpResize() 166 LOG(ERROR) << "Cannot unmap " << partition_name_suffix << " before removing."; in PerformOpRemove() 180 LOG(ERROR) << "Failed to add partition " << partition_name_suffix << " to group " in PerformOpAdd() 194 LOG(ERROR) << "Cannot move partition " << partition_name_suffix << " to group " in PerformOpMove() [all …]
|
D | blockimg.cpp | 87 PLOG(ERROR) << "Failed to unlink: " << last_command_file; in DeleteLastCommandFile() 98 PLOG(ERROR) << "Failed to open " << last_command_file; in ParseLastCommandFile() 109 LOG(ERROR) << "Failed to read: " << last_command_file; in ParseLastCommandFile() 115 LOG(ERROR) << "Unexpected line counts in last command file: " << content; in ParseLastCommandFile() 120 LOG(ERROR) << "Failed to parse integer in: " << lines[0]; in ParseLastCommandFile() 131 PLOG(ERROR) << "Failed to open " << dirname; in FsyncDir() 136 PLOG(ERROR) << "Failed to fsync " << dirname; in FsyncDir() 150 PLOG(ERROR) << "Failed to update last command"; in UpdateLastCommandIndex() 155 PLOG(ERROR) << "Failed to fsync " << last_command_tmp; in UpdateLastCommandIndex() 160 PLOG(ERROR) << "Failed to change owner for " << last_command_tmp; in UpdateLastCommandIndex() [all …]
|
D | target_files.cpp | 31 PLOG(ERROR) << "Failed to lseek64 on the input sparse image"; in SimgToImg() 36 PLOG(ERROR) << "Failed to lseek64 on the output raw image"; in SimgToImg() 43 LOG(ERROR) << "Failed to import the sparse image."; in SimgToImg() 48 PLOG(ERROR) << "Failed to output the raw image file."; in SimgToImg() 82 LOG(ERROR) << "Unexpected token size: " << tokens.size() << std::endl in ParseFstab() 131 LOG(ERROR) << "failed to find " << name << " in the package: " << ErrorCodeString(find_err); in ReadEntryToString() 144 LOG(ERROR) << "failed to read " << name << " from package: " << ErrorCodeString(extract_err); in ReadEntryToString() 162 LOG(ERROR) << "failed to find " << name << " in the package: " << ErrorCodeString(find_err); in ExtractEntryToTempFile() 167 LOG(ERROR) << "Failed to extract zip entry " << name << " : " << ErrorCodeString(status); in ExtractEntryToTempFile() 176 LOG(ERROR) << "failed to open source target file " << path_ << ": " << ErrorCodeString(ret); in Open() [all …]
|
D | updater.cpp | 39 LOG(ERROR) << "Failed to open the command pipe"; in Init() 46 LOG(ERROR) << "failed to map package " << package_filename; in Init() 52 LOG(ERROR) << "failed to open package " << package_filename << ": " in Init() 73 LOG(ERROR) << error_count << " parse errors"; in RunUpdate() 128 LOG(ERROR) << "script aborted (no error message)"; in ParseAndReportErrorCode() 131 LOG(ERROR) << "script aborted: " << state->errmsg; in ParseAndReportErrorCode() 138 LOG(ERROR) << "Failed to parse error code: [" << line << "]"; in ParseAndReportErrorCode() 169 LOG(ERROR) << "failed to find " << entry_name in ReadEntryToString() 178 LOG(ERROR) << "failed to read " << entry_name in ReadEntryToString()
|
D | updater_main.cpp | 62 LOG(ERROR) << "Failed to run the boringssl self tests"; in main() 67 LOG(ERROR) << "unexpected number of arguments: " << argc; in main() 74 LOG(ERROR) << "wrong updater binary API; expected 1, 2, or 3; got " << argv[1]; in main() 80 LOG(ERROR) << "Failed to parse fd in " << argv[2]; in main() 91 LOG(ERROR) << "unexpected argument: " << argv[4]; in main()
|
/bootable/recovery/recovery_utils/ |
D | roots.cpp | 53 LOG(ERROR) << "Failed to read default fstab"; in load_volume_table() 105 LOG(ERROR) << args[0] << " failed with status " << WEXITSTATUS(status); in exec_cmd() 136 LOG(ERROR) << "unknown volume \"" << volume << "\""; in format_volume() 140 LOG(ERROR) << "can't format_volume \"" << volume << "\""; in format_volume() 144 LOG(ERROR) << "can't give path \"" << volume << "\" to format_volume"; in format_volume() 148 LOG(ERROR) << "format_volume: Failed to unmount \"" << v->mount_point << "\""; in format_volume() 152 LOG(ERROR) << "format_volume: fs_type \"" << v->fs_type << "\" unsupported"; in format_volume() 170 PLOG(ERROR) << "format_volume: Failed to open " << v->key_loc; in format_volume() 183 PLOG(ERROR) << "format_volume: failed to open " << v->blk_device; in format_volume() 188 LOG(ERROR) << "get_file_size: invalid size " << length << " for " << v->blk_device; in format_volume() [all …]
|
D | logging.cpp | 63 LOG(ERROR) << "Can't mount " << path; in fopen_path() 78 PLOG(ERROR) << "Failed to fsync " << name; in check_and_fclose() 81 PLOG(ERROR) << "Error in " << name; in check_and_fclose() 123 LOG(ERROR) << "failed to parse uint in " << number; in logrotate() 184 PLOG(ERROR) << "Can't open " << destination; in copy_log_file() 245 PLOG(ERROR) << "Error getting klog size"; in save_kernel_log() 252 PLOG(ERROR) << "Error in reading klog"; in save_kernel_log() 266 PLOG(ERROR) << "Failed to opendir " << CACHE_LOG_DIR; in ReadLogFilesToMemory() 278 PLOG(ERROR) << "Failed to stat " << path; in ReadLogFilesToMemory() 287 PLOG(ERROR) << "Failed to read log file " << path; in ReadLogFilesToMemory() [all …]
|
/bootable/recovery/update_verifier/ |
D | update_verifier.cpp | 97 PLOG(ERROR) << "Failed to scan dir " << DM_PATH_PREFIX; in FindDmPartitions() 101 LOG(ERROR) << "No dm block device found."; in FindDmPartitions() 150 PLOG(ERROR) << "Error reading " << dm_block_device << " for partition " << partition_name; in ReadBlocks() 160 PLOG(ERROR) << "lseek to " << range_start << " failed"; in ReadBlocks() 168 PLOG(ERROR) << "Failed to read blocks " << range_start << " to " << range_end; in ReadBlocks() 194 LOG(ERROR) << "No dm-enabled block device is found."; in VerifyPartitions() 200 LOG(ERROR) << "Failed to find dm block device for " << partition_name; in VerifyPartitions() 217 LOG(ERROR) << care_map_name << " doesn't exist"; in ParseCareMap() 299 LOG(ERROR) << "Failed to reboot."; in reboot_device() 312 LOG(ERROR) << "Error getting bootctrl module."; in update_verifier() [all …]
|
/bootable/recovery/ |
D | recovery_main.cpp | 80 if (severity >= android::base::ERROR && ui != nullptr) { in UiLogger() 98 LOG(ERROR) << err; in get_args() 135 LOG(ERROR) << "Bad boot message: \"" << boot_recovery << "\""; in get_args() 160 LOG(ERROR) << "Failed to set BCB message: " << err; in get_args() 176 LOG(ERROR) << "Can't mount " << LOCALE_FILE; in load_locale_from_cache() 182 PLOG(ERROR) << "Can't read " << LOCALE_FILE; in load_locale_from_cache() 198 PLOG(ERROR) << "Failed to open recovery socket"; in ListenRecoverySocket() 207 PLOG(ERROR) << "Failed to accept socket connection"; in ListenRecoverySocket() 215 PLOG(ERROR) << "Couldn't read from socket"; in ListenRecoverySocket() 226 LOG(ERROR) << "Unrecognized char from socket " << msg; in ListenRecoverySocket() [all …]
|
D | recovery-persist.cpp | 57 PLOG(ERROR) << "Error in " << name; in check_and_fclose() 65 PLOG(ERROR) << "Can't open " << destination; in copy_file() 126 PLOG(ERROR) << "failed to open " << mounts_file; in main() 145 PLOG(ERROR) << "Failed to unlink " << LAST_INSTALL_FILE_IN_CACHE; in main() 168 PLOG(ERROR) << "Failed to unlink " << LAST_INSTALL_FILE; in main()
|
/bootable/recovery/updater_sample/src/com/example/android/systemupdatersample/ |
D | UpdaterState.java | 32 public static final int ERROR = 1; field in UpdaterState 55 .put(IDLE, ImmutableSet.of(IDLE, ERROR, RUNNING)) 56 .put(ERROR, ImmutableSet.of(IDLE)) 58 IDLE, ERROR, PAUSED, REBOOT_REQUIRED, SLOT_SWITCH_REQUIRED)) 59 .put(PAUSED, ImmutableSet.of(ERROR, RUNNING, IDLE)) 60 .put(SLOT_SWITCH_REQUIRED, ImmutableSet.of(ERROR, REBOOT_REQUIRED, IDLE))
|
/bootable/recovery/recovery_ui/ |
D | ethernet_device.cpp | 52 PLOG(ERROR) << "Failed to open socket"; in EthernetDevice() 65 LOG(ERROR) << "Failed to bring up interface"; in PreFastboot() 84 PLOG(ERROR) << "Failed to get interface active flags"; in SetInterfaceFlags() 90 PLOG(ERROR) << "Failed to set interface active flags"; in SetInterfaceFlags() 106 PLOG(ERROR) << "Failed to get interface addresses"; in SetTitleIPv6LinkLocalAddress()
|