Skip to content

feat: add hooks functionality to HymoFS#8

Draft
Anatdx wants to merge 13 commits intomainfrom
feat/viewhook
Draft

feat: add hooks functionality to HymoFS#8
Anatdx wants to merge 13 commits intomainfrom
feat/viewhook

Conversation

@Anatdx
Copy link
Owner

@Anatdx Anatdx commented Feb 22, 2026

  • Implemented the get_hooks method in HymoFS to retrieve kernel hook status.
  • Updated the main application to display hooks information in the API response.
  • Enhanced the command-line interface to support a new hooks subcommand.
  • Added translations for hooks status in the web UI.
  • Updated the SystemInfo type to include hooks data for better integration with the front-end.

- Implemented the `get_hooks` method in HymoFS to retrieve kernel hook status.
- Updated the main application to display hooks information in the API response.
- Enhanced the command-line interface to support a new `hooks` subcommand.
- Added translations for hooks status in the web UI.
- Updated the SystemInfo type to include hooks data for better integration with the front-end.
…amount scripts

- Changed the symlink creation in customize.sh to use a defined HYMO_MODULE_PATH for consistency.
- Improved logging in metamount.sh to include boot markers and error messages for better debugging and traceability.
- Ensured stderr from hymod execution is redirected to the log file for capturing potential errors before initialization.
- Updated the Logger class to conditionally write to stderr only when no log file is open, preventing output pollution during WebUI or KernelSU executions.
- This change ensures that API JSON remains clean for parsing while maintaining logging functionality when needed.
- Introduced a LogRedirector to redirect clog output to a log file, ensuring that logging is captured instead of being sent to stderr.
- Updated the Logger class to remove the log file path parameter, simplifying initialization.
- Changed command output in various parts of the code to use stderr for error messages instead of stdout, improving clarity and consistency in logging.
- Enhanced API response handling in the web UI to ensure proper output parsing from KernelSU execution.
- Eliminated the LogRedirector structure, redirecting logs directly to stderr instead of clog, aligning with kpm_support style.
- Updated the Logger class to log messages to stderr, ensuring consistent error handling and output capture.
- Enhanced logging throughout the main application to provide clearer status updates and information during execution.
- Introduced a LogRedirector structure to redirect clog output to a log file, enhancing logging capabilities without relying on shell redirection.
- Updated the Logger class to log messages to clog, ensuring consistent logging behavior throughout the application.
- Adjusted main function to initialize logging and provide informative startup messages, improving traceability during execution.
- Added a condition to set the `hymofs_active` flag when HymoFS is enabled, ensuring the module name reflects its active state.
- Improved logging to provide clearer information about the HymoFS enabled status during execution.
- Removed unnecessary logging for boot markers and error messages in metamount.sh to streamline the script.
- Updated the condition for checking hooks in HymoFSPage.tsx to use a more explicit null check, improving code clarity.
- Enhanced the display of hooks status in the web UI to provide a default message when no active hooks are present.
- Updated the output format for hooks in the main function to remove unnecessary quotes, ensuring valid JSON structure.
- Adjusted the hooks response in the "hooks" subcommand to maintain consistency in JSON formatting.
- Introduced a mechanism to check and load the LKM based on the configuration in lkm_autoload.
- Enhanced logging to indicate the start of the metamount process, improving traceability during boot.
- Removed LKM loading logic from post-fs-data.sh to streamline the script and centralize functionality in metamount.sh.
- Eliminated the anti-bootloop check and associated file handling to simplify the script.
- Retained the LKM autoloading functionality while enhancing the logging mechanism for better traceability.
- Adjusted the execution command for hymod to remove the timeout, ensuring immediate execution during the boot process.
- Changed logging level from verbose to info for the hymod startup message to improve clarity.
- Updated default configuration file path from "config.toml" to "config.json" for consistency across the application.
- Redirected output from std::cout to std::cerr in multiple functions to standardize error handling and improve logging practices in the core modules.
- Introduced experimental support for YukiSU integration, allowing HymoFS to be embedded in init_boot for earlier loading.
- Updated Logger class to support file logging, enabling better traceability of log messages.
- Enhanced configuration handling to include new options for HymoFS features such as mount hiding and maps spoofing.
- Improved command output handling in various modules to ensure consistent logging behavior.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant