Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dfe888fd authored by android-build-team Robot's avatar android-build-team Robot
Browse files

Make change and version bump to r_aml_300800400 for mainline module file:...

Make change and version bump to r_aml_300800400 for mainline module file: adb/apex/apex_manifest.json

Change-Id: I116f19c2a51422319f63eaf558b1254977aecb5d
parents f7fbd135 d90301ca
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
{
  "name": "com.android.adbd",
  "version": 300800200
  "version": 300800400
}
+12 −0
Original line number Diff line number Diff line
@@ -136,11 +136,23 @@ static int write_all_blocks(struct sparse_file* s, struct output_file* out) {
  return 0;
}

/*
 * This is a workaround for 32-bit Windows: Limit the block size to 64 MB before
 * fastboot executable binary for windows 64-bit is released (b/156057250).
 */
#define MAX_BACKED_BLOCK_SIZE ((unsigned int) (64UL << 20))

int sparse_file_write(struct sparse_file* s, int fd, bool gz, bool sparse, bool crc) {
  struct backed_block* bb;
  int ret;
  int chunks;
  struct output_file* out;

  for (bb = backed_block_iter_new(s->backed_block_list); bb; bb = backed_block_iter_next(bb)) {
    ret = backed_block_split(s->backed_block_list, bb, MAX_BACKED_BLOCK_SIZE);
    if (ret) return ret;
  }

  chunks = sparse_count_chunks(s);
  out = output_file_open_fd(fd, s->block_size, s->len, gz, sparse, chunks, crc);