File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
app/src/main/kotlin/dev/dergoogler/mmrl/compat/impl Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package dev.dergoogler.mmrl.compat.impl
22
33// import java.util.zip.ZipFile
44import android.os.Build
5+ import com.dergoogler.mmrl.BuildConfig
56import com.dergoogler.mmrl.Compat
67import com.topjohnwu.superuser.CallbackList
78import 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 } " ,
You can’t perform that action at this time.
0 commit comments