Skip to content

Conversation

@shoey63
Copy link

@shoey63 shoey63 commented Jan 15, 2026

Changes included:

  1. Fixed customize.sh Logic & Pathing:

    • Removed the manual MODPATH definition (which incorrectly resolved to sh on APatch) and manual directory creation.
    • The script now relies on the module manager's native extraction and $MODPATH variable, ensuring cross-manager compatibility and preventing the "empty folder" bug.
  2. Fixed Script Encoding (BOM & CRLF):

    • customize.sh contained a UTF-8 Byte Order Mark (BOM) and Windows (CRLF) line endings.
    • This caused the kernel to fail reading the shebang (#!/system/bin/sh), resulting in "not found" errors during execution. The file has been converted to standard Unix format (LF) without BOM.
    • Proof of error: curl -sL "..." | cat -v showed M-oM-;M-?#!/system/bin/sh.
  3. Improved Config Persistence:

    • Implemented a robust "Wipe & Replace" strategy for user configs.
    • If a user backup is detected (and is not empty), the default config folder—extracted automatically by the manager—is deleted (rm -rf) and replaced with the user's files.
  4. Removed Redundant Boot Scripts:

    • Deleted service.sh and post-fs-data.sh.
    • These scripts contained legacy logic that is no longer required for this fork and caused confusion.

Status: Tested and verified working on APatch and Magisk (Fresh Install & Upgrade scenarios).

- Deleted `post-fs-data.sh`.
   - This script contains broken "backup/restore" logic that failed because the `modules_update` directory is cleared before boot.
   - As per the README, legacy script-based prop fixes have been removed in this fork, rendering these empty/broken scripts unnecessary.
- Deleted `service.sh`.
   - This script contains broken "backup/restore" logic that failed because the `modules_update` directory is cleared before boot.
   - As per the README, legacy script-based prop fixes have been removed in this fork, rendering these empty/broken scripts unnecessary.
1. **Fixed `customize.sh` Logic & Pathing:**
   - Removed the manual `MODPATH` definition (which incorrectly resolved to `sh` on APatch) and manual directory creation.
   - The script now relies on the module manager's native extraction and `$MODPATH` variable, ensuring cross-manager compatibility and preventing the "empty folder" bug.

2. **Fixed Script Encoding (BOM & CRLF):**
   - `customize.sh` contained a UTF-8 Byte Order Mark (BOM) and Windows (CRLF) line endings.
   - This caused the kernel to fail reading the shebang (`#!/system/bin/sh`), resulting in "not found" errors during execution. The file has been converted to standard Unix format (LF) without BOM.
   - *Proof of error:* `curl -sL "..." | cat -v` showed `M-oM-;M-?#!/system/bin/sh`.

3. **Improved Config Persistence:**
   - Implemented a robust "Wipe & Replace" strategy for user configs.
   - If a user backup is detected (and is not empty), the default `config` folder—extracted automatically by the manager—is deleted (`rm -rf`) and replaced with the user's files.
@VisionR1 VisionR1 changed the title Re-open pr #5 Fixes critical installation failures observed on APatch and KernelSU, and cleans up redundant files. Jan 16, 2026
@VisionR1 VisionR1 merged commit 3f6e78b into VisionR1:main Jan 16, 2026
1 check passed
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.

2 participants