# dtechterminal/s23-ultra-tweaks architecture

> Architecture diagram of the GitHub repository dtechterminal/s23-ultra-tweaks, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/dtechterminal/s23-ultra-tweaks
- Repository: https://github.com/dtechterminal/s23-ultra-tweaks

## Overview

s23-ultra-tweaks is a KernelSU module that enables newer Galaxy features on a rooted S23 Ultra. The user selects categories or individual tweaks in the module page; installation applies device-specific changes and helpers that support features at runtime. The README documents connectivity, camera, carrier, and root-hiding capabilities, while sampled source confirms several implementation details. The README excerpt and source samples do not expose the complete apply lifecycle or all tweak implementations, so those relationships are left out rather than inferred.

Main entry points: [`module/customize.sh`](https://github.com/dtechterminal/s23-ultra-tweaks/blob/main/module/customize.sh) (Module apply), [`module/webroot/index.html`](https://github.com/dtechterminal/s23-ultra-tweaks/blob/main/module/webroot/index.html) (Tweak selector), [`device/files`](https://github.com/dtechterminal/s23-ultra-tweaks/tree/main/device/files) (Camera feature tweaks), [`device/files/ins`](https://github.com/dtechterminal/s23-ultra-tweaks/tree/main/device/files/ins) (Carrier configuration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_selection["Module selection"]
  node_page["Tweak selector<br/>[index.html]"]
  node_apply["Module apply<br/>[customize.sh]"]
end

subgraph group_connectivity["Connectivity"]
  node_wonder["Wonder Wi-Fi driver<br/>[wonder_mac80211.c]"]
  node_bwfix["PCIe bandwidth fix<br/>[bwfix.c]"]
  node_mhi["MHI firmware fix<br/>[mhifix.c]"]
  node_mosey["Mosey launcher<br/>[moseyrun.c]"]
end

subgraph group_camera["Camera features"]
  node_camera["Camera feature tweaks"]
  node_cam24["Camera APK patcher<br/>[cam24patch.py]"]
  node_aicore["AI Core stub"]
  node_c2pa["C2PA compatibility shim<br/>[c2pashim.c]"]
end

subgraph group_system["System and compatibility"]
  node_carrier["Carrier configuration"]
  node_omc["OMC codec<br/>[omcdec.c]"]
  node_hideksu["Root hiding<br/>[hidemnt.c]"]
  node_efs["Modem EFS access<br/>[efstool.c]"]
  node_pbflag["Play Services flags<br/>[pbflag.c]"]
end

node_owner(("Rooted S23 user"))

node_owner -->|"selects tweaks"| node_page
node_page -->|"configures"| node_apply
node_apply -.->|"enables Wi-Fi 7"| node_wonder
node_apply -.->|"supports AirDrop"| node_bwfix
node_apply -.->|"supports firmware swap"| node_mhi
node_apply -.->|"launches AirDrop service"| node_mosey
node_apply -.->|"applies camera settings"| node_camera
node_cam24 -->|"generates patch"| node_camera
node_apply -.->|"installs feature stub"| node_aicore
node_apply -.->|"installs compatibility shim"| node_c2pa
node_apply -.->|"applies carrier config"| node_carrier
node_omc -->|"decodes and encodes"| node_carrier
node_apply -.->|"configures mount hiding"| node_hideksu
node_apply -.->|"accesses modem EFS"| node_efs
node_apply -.->|"updates flags"| node_pbflag

click node_page "https://github.com/dtechterminal/s23-ultra-tweaks/blob/main/module/webroot/index.html"
click node_apply "https://github.com/dtechterminal/s23-ultra-tweaks/blob/main/module/customize.sh"
click node_wonder "https://github.com/dtechterminal/s23-ultra-tweaks/blob/main/src/wonder-patch/wonder_mac80211.c"
click node_bwfix "https://github.com/dtechterminal/s23-ultra-tweaks/blob/main/src/bwfix/bwfix.c"
click node_mhi "https://github.com/dtechterminal/s23-ultra-tweaks/blob/main/src/mhifix/mhifix.c"
click node_mosey "https://github.com/dtechterminal/s23-ultra-tweaks/blob/main/src/moseyrun/moseyrun.c"
click node_camera "https://github.com/dtechterminal/s23-ultra-tweaks/tree/main/device/files"
click node_cam24 "https://github.com/dtechterminal/s23-ultra-tweaks/blob/main/tools/cam24patch.py"
click node_aicore "https://github.com/dtechterminal/s23-ultra-tweaks/blob/main/src/aicorestub/java/com/samsung/android/aicore/DownloadService.java"
click node_c2pa "https://github.com/dtechterminal/s23-ultra-tweaks/blob/main/src/c2pashim/c2pashim.c"
click node_carrier "https://github.com/dtechterminal/s23-ultra-tweaks/tree/main/device/files/ins"
click node_omc "https://github.com/dtechterminal/s23-ultra-tweaks/blob/main/src/omcdec/omcdec.c"
click node_hideksu "https://github.com/dtechterminal/s23-ultra-tweaks/blob/main/src/hidemnt/hidemnt.c"
click node_efs "https://github.com/dtechterminal/s23-ultra-tweaks/blob/main/src/efstool/efstool.c"
click node_pbflag "https://github.com/dtechterminal/s23-ultra-tweaks/blob/main/src/pbflag/pbflag.c"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_page,node_apply,node_owner toneBlue
class node_wonder,node_bwfix,node_mhi,node_mosey toneAmber
class node_camera,node_cam24,node_aicore,node_c2pa toneMint
class node_carrier,node_omc,node_hideksu,node_efs,node_pbflag toneRose
```

## Components

### Module selection

- [Tweak selector](https://github.com/dtechterminal/s23-ultra-tweaks/blob/main/module/webroot/index.html): `module/webroot/index.html`
- [Module apply](https://github.com/dtechterminal/s23-ultra-tweaks/blob/main/module/customize.sh): `module/customize.sh`

### Connectivity

- [Wonder Wi-Fi driver](https://github.com/dtechterminal/s23-ultra-tweaks/blob/main/src/wonder-patch/wonder_mac80211.c): `src/wonder-patch/wonder_mac80211.c`
- [PCIe bandwidth fix](https://github.com/dtechterminal/s23-ultra-tweaks/blob/main/src/bwfix/bwfix.c): `src/bwfix/bwfix.c`
- [MHI firmware fix](https://github.com/dtechterminal/s23-ultra-tweaks/blob/main/src/mhifix/mhifix.c): `src/mhifix/mhifix.c`
- [Mosey launcher](https://github.com/dtechterminal/s23-ultra-tweaks/blob/main/src/moseyrun/moseyrun.c): `src/moseyrun/moseyrun.c`

### Camera features

- [Camera feature tweaks](https://github.com/dtechterminal/s23-ultra-tweaks/tree/main/device/files): `device/files`
- [Camera APK patcher](https://github.com/dtechterminal/s23-ultra-tweaks/blob/main/tools/cam24patch.py): `tools/cam24patch.py`
- [AI Core stub](https://github.com/dtechterminal/s23-ultra-tweaks/blob/main/src/aicorestub/java/com/samsung/android/aicore/DownloadService.java): `src/aicorestub/java/com/samsung/android/aicore/DownloadService.java`
- [C2PA compatibility shim](https://github.com/dtechterminal/s23-ultra-tweaks/blob/main/src/c2pashim/c2pashim.c): `src/c2pashim/c2pashim.c`

### System and compatibility

- [Carrier configuration](https://github.com/dtechterminal/s23-ultra-tweaks/tree/main/device/files/ins): `device/files/ins`
- [OMC codec](https://github.com/dtechterminal/s23-ultra-tweaks/blob/main/src/omcdec/omcdec.c): `src/omcdec/omcdec.c`
- [Root hiding](https://github.com/dtechterminal/s23-ultra-tweaks/blob/main/src/hidemnt/hidemnt.c): `src/hidemnt/hidemnt.c`
- [Modem EFS access](https://github.com/dtechterminal/s23-ultra-tweaks/blob/main/src/efstool/efstool.c): `src/efstool/efstool.c`
- [Play Services flags](https://github.com/dtechterminal/s23-ultra-tweaks/blob/main/src/pbflag/pbflag.c): `src/pbflag/pbflag.c`

### Other components

- **Rooted S23 user**

## Connections

- Rooted S23 user → Tweak selector: selects tweaks (evidence: `README.md`)
- Tweak selector → Module apply: configures (evidence: `README.md`)
- Module apply → Wonder Wi-Fi driver: enables Wi-Fi 7
- Module apply → PCIe bandwidth fix: supports AirDrop
- Module apply → MHI firmware fix: supports firmware swap
- Module apply → Mosey launcher: launches AirDrop service
- Module apply → Camera feature tweaks: applies camera settings
- Camera APK patcher → Camera feature tweaks: generates patch (evidence: `tools/cam24patch.py`)
- Module apply → AI Core stub: installs feature stub
- Module apply → C2PA compatibility shim: installs compatibility shim
- Module apply → Carrier configuration: applies carrier config
- OMC codec → Carrier configuration: decodes and encodes (evidence: `src/omcdec/omcdec.c`)
- Module apply → Root hiding: configures mount hiding
- Module apply → Modem EFS access: accesses modem EFS
- Module apply → Play Services flags: updates flags
