Fix: Set sigbypass level to 0

This commit is contained in:
wingio 2023-04-18 14:23:28 -04:00
parent a5dd6b10ef
commit bd7201601e
2 changed files with 3 additions and 28 deletions

View File

@ -14,8 +14,8 @@ android {
applicationId = "dev.beefers.vendetta.manager"
minSdk = 24
targetSdk = 33
versionCode = 1072
versionName = "1.0.72"
versionCode = 1073
versionName = "1.0.73"
buildConfigField("String", "GIT_BRANCH", "\"${getCurrentBranch()}\"")
buildConfigField("String", "GIT_COMMIT", "\"${getLatestCommit()}\"")

View File

@ -9,31 +9,6 @@ import java.io.File
object Patcher {
class Options(
private val config: PatchConfig,
private val outputDir: File,
private val apkPaths: List<String>,
private val embeddedModules: List<String>?
) {
fun toStringArray(): Array<String> {
return buildList {
addAll(apkPaths)
add("-o"); add(outputDir.absolutePath)
if (config.debuggable) add("-d")
add("-l"); add(config.sigBypassLevel.toString())
if (config.useManager) add("--manager")
if (config.overrideVersionCode) add("-r")
add("-v")
embeddedModules?.forEach {
add("-m"); add(it)
}
addAll(arrayOf("-k", Signer.keyStore.absolutePath, "password", "alias", "password"))
}.toTypedArray()
}
}
suspend fun patch(
logger: Logger,
outputDir: File,
@ -47,7 +22,7 @@ object Patcher {
"-o",
outputDir.absolutePath,
"-l",
"2",
"0",
"-v",
"-m",
*embeddedModules.toTypedArray(),