How rompelhd/termuxrootmods works
Project type and purpose
• This is an open‑source Magisk module (“TermuxRootMods”) that injects custom scripts and binaries into a rooted Android device to enhance the Termux shell environment.
• It packages shell replacements, monitoring and cleaning utilities, plus user‑configurable aliases and prompts.
File structure
• Top‑level packaging:
– META‑INF/com/google/android/update-binary & updater-script: Magisk installer hooks
– module.prop: module metadata
– update.json, LICENSE, changelog.md, README.md
• Custom folder:
– .aliases, .trm, customize.sh – user‑facing prompt and alias configuration deployed (e.g. to /sdcard/)
• System folder (overlay):
– etc/arch/all/*.sh (cleaner.sh, fsu.sh) – architecture‑independent shell scripts
– etc/arch/{armhf,arm64,x86_64}/*.cpp – C++ sources compiled into binaries: servistatus, temps, shell replacement, termuxrootmods
README for insights
• Confirms core features:
– Root shell replacement (bash)
– PS1 prompt customization via .aliases
– Service monitoring (servistatus)
– Temperature monitoring (temps)
– Cache cleaner (cleaner.sh)
• Intended execution context: Termux on rooted Android w/ Magisk v20.4+
Thoroughness
• Directory’s role in the module’s lifecycle (install vs. runtime)
• Distinguish architecture‑independent vs. architecture‑specific resources