INNER CODE UNIT · JavaScript

_getKernelString

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

async function _getKernelString() {
  const unameCmd = await exec('/system/bin/uname -r')
  if (unameCmd.errno !== 0) {
    toast('Error getting kernel version!')
    return '???'
  }

  if (unameCmd.stdout && unameCmd.stdout.length !== 0) {
    return unameCmd.stdout.trim()
  } else {
    return '???'
  }
}

async function _getAndroidVersion() {
  const androidVersionCmd = await exec('/system/bin/getprop ro.build.version.release')
  if (androidVersionCmd.errno !== 0) {
    toast('Error getting android version!')

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…