Commit 3f6e78b
authored
Fixes critical installation failures observed on APatch and KernelSU, and cleans up redundant files.
### 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).1 parent ef88196 commit 3f6e78b
3 files changed
Lines changed: 19 additions & 44 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
2 | 3 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
7 | 8 | | |
8 | | - | |
| 9 | + | |
9 | 10 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
18 | 21 | | |
19 | 22 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 23 | + | |
| 24 | + | |
This file was deleted.
This file was deleted.
0 commit comments