Skip to content

Commit

Permalink
fix: Patcher setting BuildOptions too late
Browse files Browse the repository at this point in the history
This causes the Manager to crash, due to a stupid bug in Apktool which is prevented by setting a valid frameworkFolderLocation.
  • Loading branch information
Sculas committed Jun 14, 2022
1 parent d3a580e commit 6a5c873
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/kotlin/app/revanced/patcher/Patcher.kt
Expand Up @@ -51,7 +51,10 @@ class Patcher(private val options: PatcherOptions) {
if (outDir.exists()) outDir.deleteRecursively()
outDir.mkdirs()

val androlib = Androlib()
val androlib = Androlib(BuildOptions().also { buildOptions ->
buildOptions.aaptPath = options.aaptPath
buildOptions.frameworkFolderLocation = options.frameworkFolderLocation
})
val resourceTable = androlib.getResTable(extInputFile, true)

val packageMetadata = PackageMetadata()
Expand Down

0 comments on commit 6a5c873

Please sign in to comment.