INNER CODE UNIT · JavaScript
_getMonitorState
PerformanC/ReZygisk · webroot/js/pages/actions/index.js:5
async function _getMonitorState() {
const stateCmd = await exec('/system/bin/cat /data/adb/rezygisk/state.json')
if (stateCmd.errno !== 0) {
toast('Error getting state of ReZygisk!')
return;
}
try {
const ReZygiskState = JSON.parse(stateCmd.stdout)
return ReZygiskState.monitor.state
} catch {
return null;
}
}
async function _updateDynamicElement() {
const monitor_status = document.getElementById('monitor_status')