Skip to content

Commit

Permalink
support for Xperia 1 generation 5
Browse files Browse the repository at this point in the history
  • Loading branch information
munjeni committed Jul 6, 2023
1 parent 82ff67d commit a4c1fdd
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
17 changes: 15 additions & 2 deletions newflasher.c
Original file line number Diff line number Diff line change
Expand Up @@ -2761,7 +2761,7 @@ int main(int argc, char *argv[])
#endif

printf("--------------------------------------------------------\n");
printf(" %s v%d by Munjeni @ 2017/2020 \n", progname, VERSION);
printf(" %s v%d by Munjeni @ 2017/2023 \n", progname, VERSION);
printf("--------------------------------------------------------\n");

available_mb = get_free_space(working_path);
Expand Down Expand Up @@ -3390,7 +3390,7 @@ int main(int argc, char *argv[])
unsigned int y;
unsigned int unitt_sz;

fprintf(dumpme, "//created with %s v%d by Munjeni @ 2017/2020\n", progname, VERSION);
fprintf(dumpme, "//created with %s v%d by Munjeni @ 2017/2023\n", progname, VERSION);

if (i == 1)
fprintf(dumpme, "//trim partition\n01\n\n");
Expand Down Expand Up @@ -4805,7 +4805,20 @@ int main(int argc, char *argv[])
{
/*printf("%d: %s\n", j, bootdelivery_xml[i][1]);*/
if (strstr(bootdelivery_xml[i][1], searchfor) != NULL)
{
bootdelivery_found = 1;
}
else
{
// support for xperia 1 gen 5, Sony changed bootdeivery xml structure a bit
memset(searchfor, 0, sizeof(searchfor));
snprintf(searchfor, sizeof(searchfor), "PLF_ROOT_HASH=\"%s\"", get_root_key_hash);

if (strstr(bootdelivery_xml[i][1], searchfor) != NULL)
{
bootdelivery_found = 1;
}
}
}

if (bootdelivery_found && strstr(bootdelivery_xml[i][1], searchfor) != NULL)
Expand Down
2 changes: 1 addition & 1 deletion version.h
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define VERSION 55
#define VERSION 57

0 comments on commit a4c1fdd

Please sign in to comment.