App: add versionCode to magisk_patched.img filenames

This commit is contained in:
osm0sis 2021-03-21 20:21:45 -03:00 committed by John Wu
parent 7b9a71c9af
commit 4dd3f55407
1 changed files with 1 additions and 1 deletions

View File

@ -255,7 +255,7 @@ abstract class MagiskInstallImpl protected constructor(
val alpha = "abcdefghijklmnopqrstuvwxyz"
val alphaNum = "$alpha${alpha.toUpperCase(Locale.ROOT)}0123456789"
val random = SecureRandom()
val filename = StringBuilder("magisk_patched_").run {
val filename = StringBuilder("magisk_patched-${BuildConfig.VERSION_CODE}_").run {
for (i in 1..5) {
append(alphaNum[random.nextInt(alphaNum.length)])
}