mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-10-25 02:19:38 +00:00
magiskboot: add support for lz4 compressed dt (extra)
- legacy devices brought up to Android 10 may now use a compressed dt in a hdr_v0 AOSP dt variant extra section, so detect, decompress and recompress this - so far these have only been done using lz4 compression (latest format revision magic), e.g. LOS 17.1 victara (Moto X)
This commit is contained in:
@@ -303,9 +303,10 @@ struct boot_img {
|
||||
// Flags to indicate the state of current boot image
|
||||
uint16_t flags = 0;
|
||||
|
||||
// The format of kernel and ramdisk
|
||||
// The format of kernel, ramdisk and extra
|
||||
format_t k_fmt;
|
||||
format_t r_fmt;
|
||||
format_t e_fmt;
|
||||
|
||||
/***************************************************
|
||||
* Following pointers points within the mmap region
|
||||
|
||||
Reference in New Issue
Block a user