Global Shortcut Events
Overview
Shortcut events encapsulated in the global module; you do not need to distinguish accessibility mode from agent mode.
Agent Node Settings
setAgentSupportNode Set node fetch mode in agent mode
- Set node fetch mode in agent mode
- Applies to agent mode only
- EC Android 11.2.0+
- Call before starting agent service; options 2 and 3 reduce detection signatures
- Option 1 may be detected by ruru as AccessibilityManager.isEnabled; options 2 and others are not
- Option 1 has stronger node capabilities; option 2 is weaker; option 3 disables node service
- @param support 1 = accessibility-like; 2 = shell dump; 3 = no node service
- @return
{boolean}true = success, false = failure
function main() {
setAgentSupportNode("2");
}
main();
setShellDumpCompressed Agent mode dump compression
- Call after agent service has started
- Set whether agent-mode shell dump uses compression
- Compressed mode returns fewer nodes but is faster
- Applies to agent mode only
- @param compressed 1 = compressed, 2 = uncompressed
- @return
{boolean}true on success, false on failure
function main() {
setAgentSupportNode("2")
startEnv()
let a = setShellDumpCompressed(1);
logd("setShellDumpCompressed " + a)
}
main();