How mcfreakky41/pixelos_device_infinix_x6840 works
This repository provides the device configuration and build adaptations for PixelOS Android 16 on the Infinix Smart 20 (X6840/X6840B), rather than the Android source tree itself. The documented workflow places the device and vendor trees into a PixelOS checkout, validates and applies ARM64 host patches, fetches vendor blobs, builds selected images, then flashes them through fastbootd. The README documents these stages and device capabilities; source excerpts are limited to the patch dry-run and encoding checker, so unsampled implementation links are omitted where not documented.
Main entry points: AndroidProducts.mk Product targets · pixelos_X6840.mk PixelOS product · dryrun-arm64-patches.py Patch dry-run · apply-arm64-host.sh Apply host patches
Components 20
Device definition
- Product targets
device/infinix/X6840/AndroidProducts.mk - PixelOS product
device/infinix/X6840/pixelos_X6840.mk - Device configuration
device/infinix/X6840/device.mk - Board configuration
device/infinix/X6840/BoardConfig.mk - Prebuilt kernel
device/infinix/X6840/prebuilt/kernel - Filesystem table
device/infinix/X6840/rootdir/etc/fstab.mt6768 - SELinux policy
device/infinix/X6840/sepolicy - Lunch setup
device/infinix/X6840/vendorsetup.sh
Build preparation
- ARM64 host patches
patches/arm64-host/README.md - Patch dry-run
scripts/dryrun-arm64-patches.py - Apply host patches
scripts/apply-arm64-host.sh - Source tree fixes
scripts/fix-source-tree.sh - Vendor blob fetch
scripts/fetch-blobs.sh - Text encoding check
scripts/check-text-encoding.py
Build and flash
- Image build
- Flashable images
Other components
- ROM builder
- Blob release
- PixelOS source checkout
- Fastbootd device
Connections 22
- ROM builder → PixelOS source checkout: syncs source
README.md - ROM builder → Product targets: places device tree
README.md - Product targets → PixelOS product: selects target
- ROM builder → Patch dry-run: validates patches
README.md - Patch dry-run → Apply host patches: precedes application
README.md - ROM builder → Apply host patches: applies patches
README.md - ROM builder → Source tree fixes: fixes source tree
README.md - ROM builder → Vendor blob fetch: fetches blobs
README.md - Blob release → Vendor blob fetch: provides blobs
README.md - ROM builder → Text encoding check: checks text
- Product targets → Image build: configures target
- PixelOS product → Image build: configures product
- Device configuration → Image build: configures device
- Board configuration → Image build: configures board
- Prebuilt kernel → Image build: supplies kernel
- Filesystem table → Image build: sets partitions
- SELinux policy → Image build: sets policy
- Lunch setup → Image build: registers target
- ROM builder → Image build: builds images
README.md - Image build → Flashable images: produces images
README.md - ROM builder → Fastbootd device: enters fastbootd
README.md - Flashable images → Fastbootd device: flashes selected
README.md