Fix erroneous stream close
This commit is contained in:
parent
ec8fffe61c
commit
c87fdbea0f
@ -189,7 +189,7 @@ abstract class MagiskInstallImpl protected constructor(
|
|||||||
console.add("-- Extracting: $name")
|
console.add("-- Extracting: $name")
|
||||||
|
|
||||||
val extract = File(installDir, name)
|
val extract = File(installDir, name)
|
||||||
decompressedStream().writeTo(extract)
|
extract.outputStream().use { decompressedStream().copyTo(it) }
|
||||||
} else if (entry.name.contains("vbmeta.img")) {
|
} else if (entry.name.contains("vbmeta.img")) {
|
||||||
val rawData = decompressedStream().readBytes()
|
val rawData = decompressedStream().readBytes()
|
||||||
// Valid vbmeta.img should be at least 256 bytes
|
// Valid vbmeta.img should be at least 256 bytes
|
||||||
|
Loading…
Reference in New Issue
Block a user