-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Description
Context
Many banking apps check for mount inconsistencies and I've noticed that forks like MKSU and other root manager like APatch have implemented "litemode" features that allow users to selectively disable mounting operations:
- MKSU nomount and notmpfs implementation: 5ec1cff/KernelSU@76bfccd
- APatch litemode implementation: bmax121/APatch@7760519
Module Compatibility
Most modules don't actually need /system mounting and would still work perfectly with these features enabled. Popular modules like Zygisk-based modules (LSPosed, PlayIntegrity Fix, etc) and Tricky Store would continue to function normally without the system mount operations.
Proposed Features
-
Optional Mounting
- Add the ability to skip overlayfs ext4 image mounting completely
-
Skip Sparse Image
- Add an option to skip the creation/usage of sparse images entirely
-
Skip Tmpfs Mount
- Add an option to skip mounting the temporary filesystem
Benefits
-
Bypass Annoying Banking Apps Detection
- Many banking apps check for mount inconsistencies
- Skipping these operations would allow root functionality while evading common detection techniques
- Users could maintain root access while still using sensitive apps that employ strict detection methods
-
User Flexibility
- Allows users to choose exactly what parts of KernelSU they want active
- Creates a "lite mode" for situations where full module functionality isn't needed
Implementation Suggestion
Similar to how MKSU implemented .notmpfs
and .nomount
flags, or how APatch implemented .litemode_enable
, these options would allow users to customize their KernelSU experience without having to switch to a fork.
Both implementations are lightweight, requiring only simple conditional checks before performing mount operations.