Skip to content

Commit

Permalink
書き換え
Browse files Browse the repository at this point in the history
Signed-off-by: Syuugo <[email protected]>
  • Loading branch information
s1204IT authored Jul 18, 2024
1 parent c8387e0 commit 3a801a5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions mali_shrinker_mmap32.c
Original file line number Diff line number Diff line change
Expand Up @@ -883,18 +883,20 @@ int main() {
fclose(frp);
err(1, "Error seeking to the last byte.");
}
if (fputc(0x01, frp) == EOF) {
if (fwrite("\x01", 1, 1, frp) != 1) {
fclose(frp);
err(1, "Failed to fix byte. (7FFF8:0x01)");
err(1, "Failed to fix byte. (7FFFF:0x01)");
}
fclose(frp);
/*
system("dd if=/data/local/tmp/frp of=/dev/block/by-name/frp");
system("rm -f /data/local/tmp/frp");
printf("Rebooting to bootloader...\n");
sleep(2);
system("reboot bootloader");
printf("Run the following command:");
printf("fastboot flashing unlock\n");
*/
break;
}
}
Expand Down

0 comments on commit 3a801a5

Please sign in to comment.