Skip to content

Commit 3e60c7e

Browse files
committed
Add MMRL version to action and install env
1 parent f3bd723 commit 3e60c7e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/src/main/kotlin/dev/dergoogler/mmrl/compat/impl/BaseModuleManagerImpl.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package dev.dergoogler.mmrl.compat.impl
22

33
//import java.util.zip.ZipFile
44
import android.os.Build
5+
import com.dergoogler.mmrl.BuildConfig
56
import com.dergoogler.mmrl.Compat
67
import com.topjohnwu.superuser.CallbackList
78
import com.topjohnwu.superuser.Shell
@@ -204,6 +205,8 @@ internal abstract class BaseModuleManagerImpl(
204205
): IShell {
205206
val cmds = listOf(
206207
"export MMRL=true",
208+
"export MMRL_VER=${BuildConfig.VERSION_NAME}",
209+
"export MMRL_VER_CODE=${BuildConfig.VERSION_CODE}",
207210
"export BULK_MODULES=\"${bulkModules.joinToString(" ") { it.id }}\"",
208211
cmd
209212
)
@@ -217,6 +220,8 @@ internal abstract class BaseModuleManagerImpl(
217220
val cmds = listOf(
218221
"export PATH=/data/adb/ap/bin:/data/adb/ksu/bin:/data/adb/magisk:\$PATH",
219222
"export MMRL=true",
223+
"export MMRL_VER=${BuildConfig.VERSION_NAME}",
224+
"export MMRL_VER_CODE=${BuildConfig.VERSION_CODE}",
220225
"export BOOTMODE=true",
221226
"export ARCH=${Build.SUPPORTED_ABIS[0]}",
222227
"export API=${Build.VERSION.SDK_INT}",

0 commit comments

Comments
 (0)