[command] /data/local/tmp/ywhy com.transsion.XOSLauncher=extra
[start] pid=18214
[YWHY] Package: com.transsion.XOSLauncher
[YWHY] Mode: extra
[YWHY] Files queued: 3
[YWHY] Files preloaded: 3
[YWHY] Total: 45.22 MB
[YWHY] Time: 245 ms
[exit] code=0
[command] /data/local/tmp/ywhy com.mobile.legends=extra
[start] pid=18414
[YWHY] Package: com.mobile.legends
[YWHY] Mode: extra
[YWHY] Files queued: 38
[YWHY] Files preloaded: 38
[YWHY] Total: 62.40 MB
[YWHY] Time: 118 ms
[exit] code=0
[command] /data/local/tmp/ywhy com.mobile.legends=normal
[start] pid=18545
[YWHY] Package: com.mobile.legends
[YWHY] Mode: normal
[YWHY] Files queued: 34
[YWHY] Files preloaded: 34
[YWHY] Total: 5.69 MB
[YWHY] Time: 55 ms
[exit] code=0
ven
9.3 KB
Function : foreground app detection with non-fullscreen filtering
1. Detects foreground app
2. Ignores non-fullscreen windows
Purpose: SPECTER only wants the app the user is actively using full-screen to trigger profile/Hz switching — not incidental split-screen or floating windows, which could cause false-positive profile switches.
1. Detects foreground app
2. Ignores non-fullscreen windows
Purpose: SPECTER only wants the app the user is actively using full-screen to trigger profile/Hz switching — not incidental split-screen or floating windows, which could cause false-positive profile switches.
ven
10 KB
Changelog
• Reworked the parsing workflow to improve overall execution efficiency.
• Switched to an absolute timeout deadline for more reliable process termination.
• Optimized output parsing using block-based reads with memchr() instead of character-by-character scanning.
• Reduced CPU instructions during parsing by minimizing unnecessary per-byte operations.
• Added early process termination once the target package is found, avoiding unnecessary dumpsys execution.
• Improved response latency by exiting immediately after a successful match.
• Refined buffer management to reduce parsing overhead on large outputs.
• Enhanced timeout handling to prevent extended execution caused by repeated polling.
• Improved robustness and consistency of the command execution flow.
Maintained near-zero idle CPU usage while reducing active processing overhead.
• Minor internal code cleanup and workflow optimizations for better maintainability and performance.