How backslashxx/bindhosts works
Key Components to Include:
Root Manager Layer
• APatch
• KernelSU
• Magisk
Core Module Components (Main Layer)
• Three sub-components for the main operational methods:
• Manager Mount
• Bind Mount
• OverlayFS
• Redirect methods as separate components:
• ZN-hostsredirect
• hosts_file_redirect
• open_redirect
Configuration and Control Layer
• WebUI component (webroot folder)
• Index.html, index.js, and styles.css
• Action Button Control
• Configuration Files:
• blacklist.txt
• whitelist.txt
• custom.txt
• sources.txt
Execution Scripts Layer
• action.sh
• bindhosts.sh
• customize.sh
• service.sh
• post-fs-data.sh
• utils.sh
Component Grouping
• Related components using containers or boundaries
• Use clear separation between different layers
[Root Managers Layer]
• ↓
[WebUI & Control Layer] ←→ [Configuration Layer]
• ↓
[Core Module Layer]
• ↓
[Execution Scripts Layer]
Supported operating modes
Level of Detail:
• Keep high-level architecture visible at first glance
• Use expandable/collapsible sections for detailed components
• Maintain clear boundaries between system layers
• Integration points with host system
Remember to:
• File paths for critical components
• Data flow between components
• Permission requirements
• Security-sensitive areas