INNER CODE UNIT · JavaScript

_getVersion

PerformanC/ReZygisk · webroot/js/pages/home/index.js:27

async function _getVersion() {
  let moduleProp = await exec('cat /data/adb/modules/rezygisk/module.prop')
  if (moduleProp.errno !== 0) {
    toast('Error getting state of ReZygisk!')

    return;
  }

  let version = '???'
  moduleProp.stdout.split('\n').forEach((line) => {
    if (line.startsWith('version=')) version = line.split('=')[1]
  })

  return version
}

async function _getKernelString() {
  const unameCmd = await exec('/system/bin/uname -r')

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…