mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-06-12 21:27:41 +02:00
Add lz4 support
This commit is contained in:
@ -48,6 +48,7 @@ void unpack(const char* image) {
|
||||
break;
|
||||
case LZOP:
|
||||
sprintf(name, "%s.%s", RAMDISK_FILE, "lzo");
|
||||
printf("Unsupported format! Please decompress manually!\n");
|
||||
break;
|
||||
case XZ:
|
||||
sprintf(name, "%s.%s", RAMDISK_FILE, "xz");
|
||||
@ -59,9 +60,11 @@ void unpack(const char* image) {
|
||||
break;
|
||||
case BZIP2:
|
||||
sprintf(name, "%s.%s", RAMDISK_FILE, "bz2");
|
||||
printf("Unsupported format! Please decompress manually!\n");
|
||||
break;
|
||||
case LZ4:
|
||||
sprintf(name, "%s.%s", RAMDISK_FILE, "lz4");
|
||||
lz4(0, RAMDISK_FILE, ramdisk, hdr.ramdisk_size);
|
||||
break;
|
||||
default:
|
||||
// Never happens
|
||||
|
Reference in New Issue
Block a user