Home
last modified time | relevance | path

Searched refs:image (Results 1 – 25 of 65) sorted by relevance

123

/system/extras/verity/
DBootSignature.java166 public byte[] generateSignableImage(byte[] image) throws IOException { in generateSignableImage() argument
168 byte[] signable = Arrays.copyOf(image, image.length + attrs.length); in generateSignableImage()
170 signable[i+image.length] = attrs[i]; in generateSignableImage()
175 public byte[] sign(byte[] image, PrivateKey key) throws Exception { in sign() argument
176 byte[] signable = generateSignableImage(image); in sign()
180 public boolean verify(byte[] image) throws Exception { in verify() argument
181 if (length.getValue().intValue() != image.length) { in verify()
185 byte[] signable = generateSignableImage(image); in verify()
206 ByteBuffer image = ByteBuffer.wrap(data); in getSignableImageSize() local
207 image.order(ByteOrder.LITTLE_ENDIAN); in getSignableImageSize()
[all …]
DUtils.java285 byte[] image = new byte[(int)length]; in read()
288 offset += fis.read(image, (int)offset, (int)(length - offset)); in read()
291 return image; in read()
/system/extras/verity/fec/tests/
Dfec.py26 def corrupt(image, offset, length): argument
28 f = os.open(image, os.O_WRONLY)
33 def corruptmax(image, roots): argument
34 size = os.stat(image).st_size
42 corrupt(image, offset, max_errors)
44 def encode(image, fec, roots): argument
45 if subprocess.call([ "fec", "--roots= " + str(roots), image, fec ]) != 0:
48 def decode(image, fec, output): argument
49 return subprocess.call([ "fec", "--decode", image, fec, output ])
54 def simg2img(image, output): argument
[all …]
/system/extras/verity/fec/
Dimage.h38 struct image { struct
72 image *ctx; argument
80 extern bool image_load(const std::vector<std::string>& filename, image *ctx);
81 extern bool image_save(const std::string& filename, image *ctx);
83 extern bool image_ecc_new(const std::string& filename, image *ctx);
84 extern bool image_ecc_load(const std::string& filename, image *ctx);
85 extern bool image_ecc_save(image *ctx);
87 extern bool image_process(image_proc_func f, image *ctx);
89 extern void image_init(image *ctx);
90 extern void image_free(image *ctx);
[all …]
Dimage.cpp46 void image_init(image *ctx) in image_init()
51 void image_free(image *ctx) in image_free()
66 static void calculate_rounds(uint64_t size, image *ctx) in calculate_rounds()
82 image *ctx = (image *)priv; in process_chunk()
92 static void file_image_load(const std::vector<int>& fds, image *ctx) in file_image_load()
145 bool image_load(const std::vector<std::string>& filenames, image *ctx) in image_load()
173 bool image_save(const std::string& filename, image *ctx) in image_save()
192 bool image_ecc_new(const std::string& filename, image *ctx) in image_ecc_new()
212 bool image_ecc_load(const std::string& filename, image *ctx) in image_ecc_load()
292 bool image_ecc_save(image *ctx) in image_ecc_save()
[all …]
Dmain.cpp44 struct image *fcx = ctx->ctx; in encode_rs()
61 struct image *fcx = ctx->ctx; in decode_rs()
136 static int print_size(image& ctx) in print_size()
172 static int encode(image& ctx, const std::vector<std::string>& inp_filenames, in encode()
214 static int decode(image& ctx, const std::vector<std::string>& inp_filenames, in decode()
275 image ctx; in main()
DAndroid.bp14 "image.cpp",
/system/update_engine/scripts/
Dbrillo_update_payload338 local image="$1"
342 local magic=$(xxd -p -l4 "${image}")
352 if cgpt show -q -n "${image}" >/dev/null; then
358 die "Couldn't detect the image format of ${image}"
365 local image="$1"
376 --image "${image}" \
404 local image="$1"
414 if unzip -l "${image}" "${path}/${part}.img" >/dev/null; then
420 unzip -p "${image}" "${path_in_zip}/${part}.img" >"${part_file}"
434 unzip -p "${image}" "${path_in_zip}/${part}.map" >"${part_map_file}" \
[all …]
/system/extras/partition_tools/
DREADME.md5 lpmake is a command-line tool for generating a "super" partition image. It can currently generate t…
15 * `-o,--output=FILE` - The output file for writing the image.
21 …--sparse` - If set, the output image will be in sparse format for flashing with fastboot. Otherwis…
22 * `-b,--block-size=N` - When writing a sparse image, the device may require a specific block size. …
23image=[NAME=FILE]` - When writing a sparse image, include the contents of FILE as the data for the…
40 * A path to a non-sparse image from lpmake.
41 * A path to a filesystem image or block device.
49 lpflash writes a non-sparse image from lpmake to a block device. It is intended to be run on the de…
51 Usage: `lpflash /dev/block/sdX /path/to/image/file`
/system/libufdt/utils/
DREADME.md10 `mkdtimg` is a tool for creating the `dtb`/`dtbo` image.
11 You can use `mkdtimg` to pack one or more DTB/DTBO files into an image.
15 This is the layout for `dtb`/`dtbo` image:
66 Use the `create` command to create a `dtb`/`dtbo` image:
75 Each dtb/dtbo `ftbX_filename` will generate a `dt_table_entry` in image.
140 The `cfg_create` command creates an image with a config file in the following
186 the image. Example:
/system/core/fs_mgr/libfs_avb/tests/
Dfs_avb_test_util.cpp147 std::vector<uint8_t> image; in GenerateImage() local
148 image.resize(image_size); in GenerateImage()
150 image[n] = uint8_t(n + start_byte); in GenerateImage()
155 image_path, reinterpret_cast<const char*>(image.data()), image.size()))); in GenerateImage()
/system/core/healthd/
DAndroid.mk190 define _add-charger-image
205 $(eval $(call _add-charger-image,$(_img))))
213 _add-charger-image :=
/system/gsid/
Dgsi_service.cpp667 Image image = { in PreallocateUserdata() local
671 partitions_.emplace(std::make_pair("userdata_gsi", std::move(image))); in PreallocateUserdata()
686 Image image = { in PreallocateSystem() local
690 partitions_.emplace(std::make_pair("system_gsi", std::move(image))); in PreallocateSystem()
868 for (const auto& [name, image] : partitions_) { in SetGsiBootable()
869 if (!image.writer->HasPinnedExtents()) { in SetGsiBootable()
1023 Image* image) { in GetExistingImage() argument
1038 image->writer = std::move(writer); in GetExistingImage()
1039 image->actual_size = actual_size; in GetExistingImage()
1112 for (const auto& [name, image] : partitions_) { in CreateMetadata()
[all …]
Dgsi_service.h108 android::fs_mgr::Partition* partition, const Image& image,
120 int GetExistingImage(const LpMetadata& metadata, const std::string& name, Image* image);
/system/update_engine/update_payload_key/
DREADME2 baked into the system image as part of update_engine install.
/system/apex/apexer/
Druntests.sh92 size=$(avbtool info_image --image ${output_dir}/apex_payload.img | awk '/Image size:/{print $3}')
102 avbtool verify_image --image ${output_dir}/apex_payload.img \
/system/sepolicy/prebuilts/api/29.0/private/
Dgsid.te54 # gsi_tool passes the system image over the adb connection, via stdin.
62 # underlying blocks would be encrypted, and we couldn't mount the GSI image in
80 # install_status - A short string indicating whether a GSI image is bootable.
Dinit.te13 # Files in recovery image are labeled as rootfs.
/system/sepolicy/private/
Dgsid.te54 # gsi_tool passes the system image over the adb connection, via stdin.
62 # underlying blocks would be encrypted, and we couldn't mount the GSI image in
80 # install_status - A short string indicating whether a GSI image is bootable.
Dinit.te13 # Files in recovery image are labeled as rootfs.
/system/core/fastboot/
Dfastboot.cpp1203 void FlashImage(const Image& image, const std::string& slot, fastboot_buffer* buf);
1247 for (const auto& [image, slot] : os_images_) { in Flash()
1253 do_for_partitions(image->part_name, slot, resize_partition, false); in Flash()
1303 for (const auto& [image, slot] : images) { in FlashImages()
1305 int fd = source_.OpenFile(image->img_name); in FlashImages()
1307 if (image->optional_if_no_image) { in FlashImages()
1310 die("could not load '%s': %s", image->img_name, strerror(errno)); in FlashImages()
1312 FlashImage(*image, slot, &buf); in FlashImages()
1316 void FlashAllTool::FlashImage(const Image& image, const std::string& slot, fastboot_buffer* buf) { in FlashImage() argument
1319 if (source_.ReadFile(image.sig_name, &signature_data)) { in FlashImage()
[all …]
/system/timezone/testing/data/test1/apex/
DAndroid.bp31 // image.
/system/timezone/
DREADME.android18 used in the Android system image and distros. Some files are also held by
65 5) Build/flash a device image with the changes and run CTS:
124 3) Build/flash a device image with the changes and run CTS:
/system/core/fastboot/fuzzy_fastboot/
DREADME.md100 will internally expand the image into the individual images for each underlying
129 that the packed image unpacks to. If your device supports hashing partitions, this
137 | packed | The name of the packed test image | The image uploaded to the device. It is searched for…
139 | expect | "okay" or "fail" | If uploading a invalid or garbage image the bootloader should reject …
183 | input | A image filename | Some oem commands require staging …
184 … arg the oem command executed, the second arg the path to the downloaded image. Ex: "python valid…
277 …t_path**: Some oem tests can download an image to the host for validation. This is the location wh…
/system/apex/apexd/
DAndroid.bp260 // image.
275 // Generates an apex with a corrupted filesystem image, which should cause

123