Skip to content

Commit

Permalink
fix: revert using OutputStream.nullOutputStream
Browse files Browse the repository at this point in the history
Older Android versions don't support this API
  • Loading branch information
oSumAtrIX committed Jun 12, 2023
1 parent c95e6fa commit f02a426
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/kotlin/app/revanced/patcher/Patcher.kt
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,12 @@ class Patcher(private val options: PatcherOptions) {
XmlPullStreamDecoder(
axmlParser, AndrolibResources().resXmlSerializer
).decodeManifest(
extInputFile.directory.getFileInput("AndroidManifest.xml"), OutputStream.nullOutputStream()
extInputFile.directory.getFileInput("AndroidManifest.xml"),
object : OutputStream() {
override fun write(b: Int) {
// do nothing
}
}
)
}
}
Expand Down

0 comments on commit f02a426

Please sign in to comment.