Fix: Set sigbypass level to 0
This commit is contained in:
parent
a5dd6b10ef
commit
bd7201601e
2 changed files with 3 additions and 28 deletions
|
@ -14,8 +14,8 @@ android {
|
||||||
applicationId = "dev.beefers.vendetta.manager"
|
applicationId = "dev.beefers.vendetta.manager"
|
||||||
minSdk = 24
|
minSdk = 24
|
||||||
targetSdk = 33
|
targetSdk = 33
|
||||||
versionCode = 1072
|
versionCode = 1073
|
||||||
versionName = "1.0.72"
|
versionName = "1.0.73"
|
||||||
|
|
||||||
buildConfigField("String", "GIT_BRANCH", "\"${getCurrentBranch()}\"")
|
buildConfigField("String", "GIT_BRANCH", "\"${getCurrentBranch()}\"")
|
||||||
buildConfigField("String", "GIT_COMMIT", "\"${getLatestCommit()}\"")
|
buildConfigField("String", "GIT_COMMIT", "\"${getLatestCommit()}\"")
|
||||||
|
|
|
@ -9,31 +9,6 @@ import java.io.File
|
||||||
|
|
||||||
object Patcher {
|
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(
|
suspend fun patch(
|
||||||
logger: Logger,
|
logger: Logger,
|
||||||
outputDir: File,
|
outputDir: File,
|
||||||
|
@ -47,7 +22,7 @@ object Patcher {
|
||||||
"-o",
|
"-o",
|
||||||
outputDir.absolutePath,
|
outputDir.absolutePath,
|
||||||
"-l",
|
"-l",
|
||||||
"2",
|
"0",
|
||||||
"-v",
|
"-v",
|
||||||
"-m",
|
"-m",
|
||||||
*embeddedModules.toTypedArray(),
|
*embeddedModules.toTypedArray(),
|
||||||
|
|
Loading…
Reference in a new issue