mirror of
https://github.com/topjohnwu/Magisk.git
synced 2026-06-02 06:03:44 +02:00
magiskboot: Fix tail offset calculation
This commit is contained in:
@@ -915,8 +915,6 @@ void repack(Utf8CStr src_img, Utf8CStr out_img, bool skip_comp) {
|
|||||||
file_align();
|
file_align();
|
||||||
}
|
}
|
||||||
|
|
||||||
off.tail = lseek(fd, 0, SEEK_CUR);
|
|
||||||
|
|
||||||
// Proprietary stuffs
|
// Proprietary stuffs
|
||||||
if (boot.flags[SEANDROID_FLAG]) {
|
if (boot.flags[SEANDROID_FLAG]) {
|
||||||
xwrite(fd, SEANDROID_MAGIC, 16);
|
xwrite(fd, SEANDROID_MAGIC, 16);
|
||||||
@@ -927,6 +925,7 @@ void repack(Utf8CStr src_img, Utf8CStr out_img, bool skip_comp) {
|
|||||||
xwrite(fd, LG_BUMP_MAGIC, 16);
|
xwrite(fd, LG_BUMP_MAGIC, 16);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
off.tail = lseek(fd, 0, SEEK_CUR);
|
||||||
file_align();
|
file_align();
|
||||||
|
|
||||||
// vbmeta
|
// vbmeta
|
||||||
|
|||||||
Reference in New Issue
Block a user