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 { defaultConfig {
minSdk = 28 minSdk = 28
targetSdk = 37 targetSdk = 37
versionCode = 10_12_00 versionCode = 10_12_01
versionName = "1.1.2" versionName = "1.1.2"
vectorDrawables { vectorDrawables {
useSupportLibrary = true useSupportLibrary = true

View file

@ -13,6 +13,7 @@ import org.lsposed.lspatch.share.LSPConfig
import org.lsposed.patch.LSPatch import org.lsposed.patch.LSPatch
import org.lsposed.patch.util.Logger import org.lsposed.patch.util.Logger
import java.io.File import java.io.File
import java.util.*
class InjectShiggyXposedStep : Step() { class InjectShiggyXposedStep : Step() {
override val group: StepGroup = StepGroup.Install override val group: StepGroup = StepGroup.Install
@ -82,7 +83,15 @@ class InjectShiggyXposedStep : Step() {
// FilenameUtils.getBaseName(apkFileName), // FilenameUtils.getBaseName(apkFileName),
// LSPConfig.instance.VERSION_CODE) // 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) val patchedApk = File(tempDir, patchedApkName)
if (patchedApk.exists()) { if (patchedApk.exists()) {