INNER CODE UNIT · JavaScript
_getModuleNames
PerformanC/ReZygisk · webroot/js/pages/modules/index.js:22
async function _getModuleNames(modules) {
const fullCommand = modules.map((mod) => {
const propPath = `/data/adb/modules/${mod.id}/module.prop`
return `printf % ; if test -f "${propPath}"; then /system/bin/grep '^name=' "${propPath}" | /system/bin/cut -d '=' -f 2- 2>/dev/null || true; else true; fi ; printf "\\n"`
}).join(' ; ')
const result = await exec(fullCommand)
if (result.errno !== 0) {
setError('getModuleNames', 'Failed to execute command to retrieve module list names')
return null
}
return result.stdout.split('\n\n')
}
async function _updateDynamicElement() {