How exs6rsict/oneui9.5-pipa works
This repository is an offline audit-and-porting toolkit for bringing One UI 9.5 to the Xiaomi Pad 6 while protecting Linux and Slot B. The documented workflow inventories donor packages and partitions, checks APK compatibility, builds and verifies integrated images, then validates Slot-A-only layout and write plans before device testing. Separate branches cover EROFS verification and on-device diagnostic ZIP collection. Edges follow only the README and shown imports or calls; unsampled subsystems are included where documented, with uncertain wiring omitted.
Main entry points: MainActivity.java Collector interface · port95_build.py System integration build · erofs95.py EROFS repack and verify · lprelayout.py LP relayout validation
Components 19
Donor intake
- Archive audit
scripts/zipaudit.py - Partition extraction
scripts/sparselp.py - Filesystem metadata
scripts/fsmeta.py - APK compatibility
scripts/apkcompat.py
Image integration
- System integration build
scripts/port95_build.py - EROFS repack and verify
scripts/erofs95.py - EROFS issue reproducer
scripts/erofs95_repro.py - Kernel compatibility patches
patches - SELinux permissive tooling
scripts/sepolicy_permissive.py
Slot A safety
- Boot backup
scripts/backup_slot_a_boot.sh - Live layout capture
scripts/dump_live_layout.sh - LP relayout validation
scripts/lprelayout.py - Write plan validation
scripts/flashplan.py
Device diagnostics
- Collector interface
tools/log-reporter/src/com/pipa/port95/logreporter/MainActivity.java - Log collection
tools/log-reporter/src/com/pipa/port95/logreporter/LogCollector.java - Report ZIP access
tools/log-reporter/src/com/pipa/port95/logreporter/ZipProvider.java
Other components
- Porting engineer
- Device user
- Share or save target
Connections 22
- Porting engineer → Archive audit: audits packages
README.md - Porting engineer → Partition extraction: extracts partitions
README.md - Porting engineer → APK compatibility: checks compatibility
README.md - Porting engineer → Filesystem metadata: inspects images
README.md - Porting engineer → System integration build: builds integration
README.md - System integration build → Partition extraction: uses extraction
scripts/port95_build.py - System integration build → EROFS repack and verify: repackages EROFS
- EROFS repack and verify → Filesystem metadata: uses metadata helpers
scripts/erofs95.py - EROFS issue reproducer → EROFS repack and verify: reuses image reader
scripts/erofs95_repro.py - Porting engineer → Kernel compatibility patches: applies fixes
README.md - Porting engineer → SELinux permissive tooling: audits policy
README.md - Porting engineer → Boot backup: backs up boot
README.md - Porting engineer → Live layout capture: captures layout
README.md - Porting engineer → LP relayout validation: validates relayout
README.md - LP relayout validation → Write plan validation: checks write plan
scripts/lprelayout.py - Write plan validation → LP relayout validation: accepts extents
scripts/flashplan.py - Device user → Collector interface: starts collection
tools/log-reporter/src/com/pipa/port95/logreporter/MainActivity.java - Collector interface → Log collection: runs collection
tools/log-reporter/src/com/pipa/port95/logreporter/MainActivity.java - Collector interface → Report ZIP access: gets report URI
tools/log-reporter/src/com/pipa/port95/logreporter/MainActivity.java - Log collection → Report ZIP access: writes report
tools/log-reporter/src/com/pipa/port95/logreporter/ZipProvider.java - Collector interface → Share or save target: shares report
tools/log-reporter/src/com/pipa/port95/logreporter/MainActivity.java - Share or save target → Report ZIP access: reads report
tools/log-reporter/src/com/pipa/port95/logreporter/ZipProvider.java