Merge branch 'kmmiio99o:main' into main

This commit is contained in:
OTKUSteyler 2026-06-09 13:55:29 +02:00 • committed by GitHub
commit 3ba2f9a460
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 2 deletions

View file

@ -25,7 +25,7 @@ android {
defaultConfig {
minSdk = 28
targetSdk = 37
versionCode = 10_12_00
versionCode = 10_12_01
versionName = "1.1.2"
vectorDrawables {
useSupportLibrary = true

View file

@ -13,6 +13,7 @@ import org.lsposed.lspatch.share.LSPConfig
import org.lsposed.patch.LSPatch
import org.lsposed.patch.util.Logger
import java.io.File
import java.util.*
class InjectShiggyXposedStep : Step() {
override val group: StepGroup = StepGroup.Install
@ -82,7 +83,15 @@ class InjectShiggyXposedStep : Step() {
// FilenameUtils.getBaseName(apkFileName),
// LSPConfig.instance.VERSION_CODE)
// )
val patchedApkName = "${baseName}-${LSPConfig.instance.VERSION_CODE}-lspatched.apk"
// Note: LSPatch uses Locale.getDefault() which can produce locale-specific numerals
// (e.g., Arabic numerals on Arabic locales). We must use Locale.US to ensure
// consistent filename matching regardless of device locale.
val patchedApkName = String.format(
Locale.US,
"%s-%d-lspatched.apk",
baseName,
LSPConfig.instance.VERSION_CODE
)
val patchedApk = File(tempDir, patchedApkName)
if (patchedApk.exists()) {