You've already forked ReZygisk
mirror of
https://github.com/PerformanC/ReZygisk.git
synced 2025-09-06 06:37:01 +00:00
Historically "zygisksu" is the ZygiskOnKernelSU (known as Zygisk Next) module id, which due to ReZygisk being a fork of Zygisk Next, was used by it. To avoid conflicts in systems like MMRL, we decided to change it to "rezygisk". This, however, will allow both to be installed in the same system, although causing problems, as a side effect. The old module, with the old module id, must be uninstalled while the new one is installed. closes #113
38 lines
1.5 KiB
JavaScript
38 lines
1.5 KiB
JavaScript
import { exec, toast } from './kernelsu.js'
|
|
|
|
import { getTranslations } from './language.js'
|
|
|
|
const monitor_start = document.getElementById('monitor_start_button')
|
|
const monitor_stop = document.getElementById('monitor_stop_button')
|
|
const monitor_pause = document.getElementById('monitor_pause_button')
|
|
|
|
const monitor_status = document.getElementById('monitor_status');
|
|
|
|
(async () => {
|
|
const sys_lang = localStorage.getItem('/system/language')
|
|
const translations = await getTranslations(sys_lang || 'en_US')
|
|
|
|
if (monitor_start) {
|
|
monitor_start.addEventListener('click', () => {
|
|
if (![ translations.page.actions.status.tracing, translations.page.actions.status.stopping, translations.page.actions.status.stopped ].includes(monitor_status.innerHTML)) return;
|
|
|
|
monitor_status.innerHTML = translations.page.actions.status.tracing
|
|
|
|
exec('/data/adb/modules/rezygisk/bin/zygisk-ptrace64 ctl start')
|
|
})
|
|
|
|
monitor_stop.addEventListener('click', () => {
|
|
monitor_status.innerHTML = translations.page.actions.status.exiting
|
|
|
|
exec('/data/adb/modules/rezygisk/bin/zygisk-ptrace64 ctl exit')
|
|
})
|
|
|
|
monitor_pause.addEventListener('click', () => {
|
|
if (![ translations.page.actions.status.tracing, translations.page.actions.status.stopping, translations.page.actions.status.stopped ].includes(monitor_status.innerHTML)) return;
|
|
|
|
monitor_status.innerHTML = translations.page.actions.status.stopped
|
|
|
|
exec('/data/adb/modules/rezygisk/bin/zygisk-ptrace64 ctl stop')
|
|
})
|
|
}
|
|
})() |